|
| 1 | +syntax = "proto3"; |
| 2 | + |
| 3 | +import "google/protobuf/any.proto"; |
| 4 | +import "gogoproto/gogo.proto"; |
| 5 | +import "ibc/core/client/v1/client.proto"; |
| 6 | +import "cross/core/tx/Tx.proto"; |
| 7 | +import "cross/core/auth/Auth.proto"; |
| 8 | + |
| 9 | +option go_package = "github.com/datachainlab/cross/x/core/initiator/types"; |
| 10 | +option (gogoproto.goproto_getters_all) = false; |
| 11 | + |
| 12 | +message MsgInitiateTx { |
| 13 | + option (gogoproto.equal) = false; |
| 14 | + option (gogoproto.goproto_getters) = false; |
| 15 | + |
| 16 | + string chain_id = 1; |
| 17 | + uint64 nonce = 2; |
| 18 | + |
| 19 | + Tx.CommitProtocol commit_protocol = 3; |
| 20 | + |
| 21 | + repeated ContractTransaction contract_transactions = 4 [(gogoproto.nullable) = false]; |
| 22 | + |
| 23 | + repeated Account signers = 5 [(gogoproto.nullable) = false]; |
| 24 | + |
| 25 | + ibc.core.client.v1.Height timeout_height = 6 |
| 26 | + [(gogoproto.moretags) = "yaml:\"timeout_height\"", (gogoproto.nullable) = false]; |
| 27 | + |
| 28 | + uint64 timeout_timestamp = 7 |
| 29 | + [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; |
| 30 | +} |
| 31 | + |
| 32 | +message MsgInitiateTxResponse { |
| 33 | + option (gogoproto.equal) = false; |
| 34 | + option (gogoproto.goproto_getters) = false; |
| 35 | + |
| 36 | + bytes txID = 1 [(gogoproto.casttype) = "github.com/datachainlab/cross/x/core/types.TxID"]; |
| 37 | + |
| 38 | + enum InitiateTxStatus { |
| 39 | + option (gogoproto.goproto_enum_prefix) = false; |
| 40 | + |
| 41 | + INITIATE_TX_STATUS_UNKNOWN = 0; |
| 42 | + INITIATE_TX_STATUS_PENDING = 1; |
| 43 | + INITIATE_TX_STATUS_VERIFIED = 2; |
| 44 | + } |
| 45 | + |
| 46 | + InitiateTxStatus status = 2; |
| 47 | +} |
| 48 | + |
| 49 | +message QuerySelfXCCRequest {} |
| 50 | + |
| 51 | +message QuerySelfXCCResponse { |
| 52 | + google.protobuf.Any xcc = 1 [(gogoproto.nullable) = true]; |
| 53 | +} |
| 54 | + |
| 55 | +message ContractTransaction { |
| 56 | + option (gogoproto.equal) = false; |
| 57 | + |
| 58 | + google.protobuf.Any cross_chain_channel = 1 [(gogoproto.nullable) = true]; |
| 59 | + repeated Account signers = 2 [(gogoproto.nullable) = false]; |
| 60 | + bytes call_info = 3 [(gogoproto.casttype) = "github.com/datachainlab/cross/x/core/tx/types.ContractCallInfo"]; |
| 61 | + ReturnValue return_value = 4; |
| 62 | + repeated Link links = 5 [(gogoproto.nullable) = false]; |
| 63 | +} |
| 64 | + |
| 65 | +message Link { |
| 66 | + uint32 src_index = 1; |
| 67 | +} |
| 68 | + |
| 69 | +message GenesisState {} |
| 70 | + |
| 71 | +message InitiateTxState { |
| 72 | + option (gogoproto.equal) = false; |
| 73 | + |
| 74 | + MsgInitiateTxResponse.InitiateTxStatus status = 1; |
| 75 | + |
| 76 | + MsgInitiateTx msg = 2 [(gogoproto.nullable) = false]; |
| 77 | +} |
0 commit comments