-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from osmosis-labs/trinity/proto
Update proto
- Loading branch information
Showing
14 changed files
with
199 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
package osmosis.meshsecurityprovider; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/protobuf/any.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
|
||
option go_package = "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types"; | ||
|
||
message Params { | ||
string vault_address = 1 [ (gogoproto.moretags) = "yaml:\"vault_address\"" ]; | ||
string native_staking_address = 2 [ (gogoproto.moretags) = "yaml:\"native_staking_address\"" ]; | ||
} | ||
|
||
// GenesisState defines the meshsecurityprovider module's genesis state. | ||
message GenesisState { | ||
// params is the container of meshsecurityprovider parameters. | ||
Params params = 1 [ (gogoproto.nullable) = false ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
package osmosis.meshsecurityprovider; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/api/annotations.proto"; | ||
import "osmosis/meshsecurityprovider/genesis.proto"; | ||
import "osmosis/meshsecurityprovider/tx.proto"; | ||
|
||
option go_package = "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types"; | ||
|
||
service Query { | ||
rpc Params(ParamsRequest) returns (ParamsResponse) { | ||
option (google.api.http).get = "/osmosis/meshsecurityprovider/Params"; | ||
} | ||
} | ||
|
||
//=============================== Params | ||
message ParamsRequest {} | ||
message ParamsResponse { Params params = 1 [ (gogoproto.nullable) = false ]; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
syntax = "proto3"; | ||
package osmosis.meshsecurityprovider; | ||
|
||
import "amino/amino.proto"; | ||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/v1beta1/coin.proto"; | ||
import "cosmos/msg/v1/msg.proto"; | ||
import "osmosis/meshsecurityprovider/genesis.proto"; | ||
|
||
option go_package = "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types"; | ||
option (gogoproto.goproto_getters_all) = false; | ||
|
||
service Msg { | ||
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); | ||
} | ||
|
||
// MsgUpdateParams updates meshsecurityprovider module 's params | ||
message MsgUpdateParams { | ||
option (amino.name) = "meshsecurityprovider/MsgUpdateParams"; | ||
option (cosmos.msg.v1.signer) = "authority"; | ||
|
||
// Authority is the address that controls the module (defaults to x/gov unless | ||
// overwritten). | ||
string authority = 1; | ||
|
||
// params defines the x/meshsecurityprovider parameters to update. | ||
Params params = 2 [ (gogoproto.nullable) = false ]; | ||
|
||
} | ||
|
||
message MsgUpdateParamsResponse {} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.