Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add icamauth proto #2949

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions libs/ibc-go/proto/icamauth/v1beta1/query.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
syntax = "proto3";

package gaia.icamauth.v1beta1;

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";

option go_package = "github.com/okx/exchain/x/icamauth/types";

// Query defines the gRPC querier service.
service Query {
// QueryInterchainAccount returns the interchain account for given owner address on a given connection pair
rpc InterchainAccount(QueryInterchainAccountRequest) returns (QueryInterchainAccountResponse) {
option (google.api.http).get = "/gaia/icamauth/v1beta1/interchain_account/owner/{owner}/connection/{connection_id}";
}
}

// QueryInterchainAccountRequest is the request type for the Query/InterchainAccountAddress RPC
message QueryInterchainAccountRequest {
string owner = 1;
string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""];
}

// QueryInterchainAccountResponse the response type for the Query/InterchainAccountAddress RPC
message QueryInterchainAccountResponse {
string interchain_account_address = 1 [(gogoproto.moretags) = "yaml:\"interchain_account_address\""];
}
42 changes: 42 additions & 0 deletions libs/ibc-go/proto/icamauth/v1beta1/tx.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
syntax = "proto3";

package gaia.icamauth.v1beta1;

option go_package = "github.com/okx/exchain/x/icamauth/types";

import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";

// Msg defines the ica Msg service.
service Msg {
// Register defines a rpc handler for MsgRegisterAccount
rpc RegisterAccount(MsgRegisterAccount) returns (MsgRegisterAccountResponse);
// SubmitTx defines a rpc handler for MsgSubmitTx
rpc SubmitTx(MsgSubmitTx) returns (MsgSubmitTxResponse);
}

// MsgRegisterAccount defines the payload for Msg/RegisterAccount
message MsgRegisterAccount {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

string owner = 1;
string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""];
string version = 3;
}

// MsgRegisterAccountResponse defines the response for Msg/RegisterAccount
message MsgRegisterAccountResponse {}

// MsgSubmitTx defines the payload for Msg/SubmitTx
message MsgSubmitTx {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

string owner = 1;
string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""];
google.protobuf.Any msg = 3;
}

// MsgSubmitTxResponse defines the response for Msg/SubmitTx
message MsgSubmitTxResponse {}