github.com/okex/exchain@v1.8.0/libs/ibc-go/proto/ibc/applications/interchain_accounts/v1/genesis.proto (about)

     1  syntax = "proto3";
     2  
     3  package ibc.applications.interchain_accounts.v1;
     4  
     5  option go_package = "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types";
     6  
     7  import "gogoproto/gogo.proto";
     8  import "ibc/applications/interchain_accounts/controller/v1/controller.proto";
     9  import "ibc/applications/interchain_accounts/host/v1/host.proto";
    10  
    11  // GenesisState defines the interchain accounts genesis state
    12  message GenesisState {
    13    ControllerGenesisState controller_genesis_state = 1
    14        [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"controller_genesis_state\""];
    15    HostGenesisState host_genesis_state = 2
    16        [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"host_genesis_state\""];
    17  }
    18  
    19  // ControllerGenesisState defines the interchain accounts controller genesis state
    20  message ControllerGenesisState {
    21    repeated ActiveChannel active_channels = 1
    22        [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"active_channels\""];
    23    repeated RegisteredInterchainAccount interchain_accounts = 2
    24        [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"interchain_accounts\""];
    25    repeated string                                           ports  = 3;
    26    ibc.applications.interchain_accounts.controller.v1.Params params = 4 [(gogoproto.nullable) = false];
    27  }
    28  
    29  // HostGenesisState defines the interchain accounts host genesis state
    30  message HostGenesisState {
    31    repeated ActiveChannel active_channels = 1
    32        [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"active_channels\""];
    33    repeated RegisteredInterchainAccount interchain_accounts = 2
    34        [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"interchain_accounts\""];
    35    string                                              port   = 3;
    36    ibc.applications.interchain_accounts.host.v1.Params params = 4 [(gogoproto.nullable) = false];
    37  }
    38  
    39  // ActiveChannel contains a connection ID, port ID and associated active channel ID
    40  message ActiveChannel {
    41    string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""];
    42    string port_id       = 2 [(gogoproto.moretags) = "yaml:\"port_id\""];
    43    string channel_id    = 3 [(gogoproto.moretags) = "yaml:\"channel_id\""];
    44  }
    45  
    46  // RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address
    47  message RegisteredInterchainAccount {
    48    string connection_id   = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""];
    49    string port_id         = 2 [(gogoproto.moretags) = "yaml:\"port_id\""];
    50    string account_address = 3 [(gogoproto.moretags) = "yaml:\"account_address\""];
    51  }