diff --git a/proto/chainmain/icaauth/v1/genesis.proto b/proto/chainmain/icaauth/v1/genesis.proto deleted file mode 100644 index 5031c9d00..000000000 --- a/proto/chainmain/icaauth/v1/genesis.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; -package chainmain.icaauth.v1; - -import "gogoproto/gogo.proto"; -import "chainmain/icaauth/v1/params.proto"; - -option go_package = "github.com/crypto-org-chain/chain-main/x/icaauth/types"; - -// GenesisState defines the icaauth module's genesis state. -message GenesisState { - // params defines the genesis parameters - Params params = 1 [(gogoproto.nullable) = false]; -} diff --git a/proto/chainmain/icaauth/v1/params.proto b/proto/chainmain/icaauth/v1/params.proto deleted file mode 100644 index c0119cb79..000000000 --- a/proto/chainmain/icaauth/v1/params.proto +++ /dev/null @@ -1,20 +0,0 @@ -syntax = "proto3"; -package chainmain.icaauth.v1; - -import "google/protobuf/duration.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/crypto-org-chain/chain-main/x/icaauth/types"; - -// Params defines the parameters for the module. -message Params { - option (gogoproto.goproto_stringer) = false; - - // minTimeoutDuration defines the minimum value of packet timeout when submitting transactions to host chain on - // behalf of interchain account - google.protobuf.Duration minTimeoutDuration = 1 [ - (gogoproto.moretags) = "yaml:\"min_timeout_duration\"", - (gogoproto.stdduration) = true, - (gogoproto.nullable) = false - ]; -} diff --git a/proto/chainmain/icaauth/v1/query.proto b/proto/chainmain/icaauth/v1/query.proto deleted file mode 100644 index cafdd68da..000000000 --- a/proto/chainmain/icaauth/v1/query.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; -package chainmain.icaauth.v1; - -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "chainmain/icaauth/v1/params.proto"; - -option go_package = "github.com/crypto-org-chain/chain-main/x/icaauth/types"; - -// Query defines the gRPC querier service. -service Query { - // Parameters queries the parameters of the module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/chainmain/icaauth/v1/params"; - } - - // InterchainAccountAddress queries the interchain account address for given `connectionId` and `owner` - rpc InterchainAccountAddress(QueryInterchainAccountAddressRequest) returns (QueryInterchainAccountAddressResponse) { - option (google.api.http).get = "/chainmain/icaauth/v1/interchain_account_address/{connectionId}/{owner}"; - } -} - -// QueryParamsRequest is request type for the Query/Params RPC method. -message QueryParamsRequest {} - -// QueryParamsResponse is response type for the Query/Params RPC method. -message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [(gogoproto.nullable) = false]; -} - -// QueryInterchainAccountAddressRequest defines the request for the InterchainAccountAddress query. -message QueryInterchainAccountAddressRequest { - string connectionId = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""]; - string owner = 2; -} - -// QueryInterchainAccountAddressResponse defines the response for the InterchainAccountAddress query. -message QueryInterchainAccountAddressResponse { - string interchainAccountAddress = 1; -} diff --git a/proto/chainmain/icaauth/v1/tx.proto b/proto/chainmain/icaauth/v1/tx.proto deleted file mode 100644 index f2dcf1d49..000000000 --- a/proto/chainmain/icaauth/v1/tx.proto +++ /dev/null @@ -1,55 +0,0 @@ -syntax = "proto3"; -package chainmain.icaauth.v1; - -import "cosmos/msg/v1/msg.proto"; -import "cosmos_proto/cosmos.proto"; -import "google/protobuf/any.proto"; -import "google/protobuf/duration.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/crypto-org-chain/chain-main/x/icaauth/types"; - -// Msg defines the Msg service. -service Msg { - option (cosmos.msg.v1.service) = true; - // RegisterAccount registers an interchain account on host chain with given `connectionId` - rpc RegisterAccount(MsgRegisterAccount) returns (MsgRegisterAccountResponse); - - // SubmitTx submits a transaction to the host chain on behalf of interchain account - rpc SubmitTx(MsgSubmitTx) returns (MsgSubmitTxResponse); -} - -// MsgRegisterAccount defines the request message for MsgRegisterAccount -message MsgRegisterAccount { - option (cosmos.msg.v1.signer) = "owner"; - // owner represents the owner of the interchain account - string owner = 1; - - // connectionId represents the IBC `connectionId` of the host chain - string connectionId = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""]; - - // version represents the version of the ICA channel - string version = 3; -} - -// MsgRegisterAccountResponse defines the response message for MsgRegisterAccount -message MsgRegisterAccountResponse {} - -// MsgSubmitTx defines the request message for MsgSubmitTx -message MsgSubmitTx { - option (cosmos.msg.v1.signer) = "owner"; - // owner represents the owner of the interchain account - string owner = 1; - - // connectionId represents the IBC `connectionId` of the host chain - string connectionId = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""]; - - // msgs represents the transactions to be submitted to the host chain - repeated google.protobuf.Any msgs = 3 [(cosmos_proto.accepts_interface) = "sdk.Msg"]; - - // timeoutDuration represents the timeout duration for the IBC packet from last block - google.protobuf.Duration timeoutDuration = 4 [(gogoproto.stdduration) = true]; -} - -// MsgSubmitTxResponse defines the response message for MsgSubmitTx -message MsgSubmitTxResponse {}