juno-network 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/types/codegen/JunoSwap.client.d.ts +122 -0
- package/types/codegen/JunoSwap.types.d.ts +142 -0
- package/types/codegen/confio/proofs.d.ts +495 -0
- package/types/codegen/contracts.d.ts +12 -0
- package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
- package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
- package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +32 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
- package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
- package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
- package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
- package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +57 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
- package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
- package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
- package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
- package/types/codegen/cosmos/bundle.d.ts +25545 -0
- package/types/codegen/cosmos/client.d.ts +473 -0
- package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
- package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
- package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
- package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
- package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
- package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
- package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
- package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
- package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +51 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
- package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
- package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
- package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
- package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
- package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +44 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
- package/types/codegen/cosmos/lcd.d.ts +28 -0
- package/types/codegen/cosmos/rpc.query.d.ts +97 -0
- package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
- package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
- package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
- package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +80 -0
- package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
- package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
- package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +36 -0
- package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +43 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
- package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
- package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
- package/types/codegen/cosmwasm/bundle.d.ts +5227 -0
- package/types/codegen/cosmwasm/client.d.ts +120 -0
- package/types/codegen/cosmwasm/lcd.d.ts +33 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
- package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
- package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +48 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
- package/types/codegen/gogoproto/bundle.d.ts +1 -0
- package/types/codegen/gogoproto/gogo.d.ts +1 -0
- package/types/codegen/google/bundle.d.ts +8939 -0
- package/types/codegen/google/protobuf/any.d.ts +237 -0
- package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
- package/types/codegen/google/protobuf/duration.d.ts +161 -0
- package/types/codegen/google/protobuf/empty.d.ts +33 -0
- package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
- package/types/codegen/helpers.d.ts +82 -0
- package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
- package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
- package/types/codegen/ibc/bundle.d.ts +21744 -0
- package/types/codegen/ibc/client.d.ts +559 -0
- package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
- package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
- package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
- package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
- package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +88 -0
- package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
- package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
- package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
- package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
- package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
- package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +50 -0
- package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
- package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
- package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
- package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
- package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
- package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
- package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
- package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +41 -0
- package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
- package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
- package/types/codegen/ibc/lcd.d.ts +46 -0
- package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
- package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
- package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
- package/types/codegen/ibc/rpc.query.d.ts +148 -0
- package/types/codegen/ibc/rpc.tx.d.ts +44 -0
- package/types/codegen/ics23/bundle.d.ts +545 -0
- package/types/codegen/index.d.ts +18 -0
- package/types/codegen/juno/bundle.d.ts +723 -0
- package/types/codegen/juno/lcd.d.ts +31 -0
- package/types/codegen/juno/mint/genesis.d.ts +22 -0
- package/types/codegen/juno/mint/mint.d.ts +44 -0
- package/types/codegen/juno/mint/query.d.ts +99 -0
- package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
- package/types/codegen/juno/mint/query.rpc.query.d.ts +24 -0
- package/types/codegen/juno/rpc.query.d.ts +104 -0
- package/types/codegen/tendermint/abci/types.d.ts +902 -0
- package/types/codegen/tendermint/bundle.d.ts +19673 -0
- package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
- package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
- package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
- package/types/codegen/tendermint/p2p/types.d.ts +87 -0
- package/types/codegen/tendermint/types/block.d.ts +21 -0
- package/types/codegen/tendermint/types/evidence.d.ts +70 -0
- package/types/codegen/tendermint/types/params.d.ts +181 -0
- package/types/codegen/tendermint/types/types.d.ts +326 -0
- package/types/codegen/tendermint/types/validator.d.ts +48 -0
- package/types/codegen/tendermint/version/types.d.ts +48 -0
- package/types/index.d.ts +1 -0
@@ -0,0 +1,313 @@
|
|
1
|
+
import { Height, HeightSDKType } from "../../client/v1/client";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { DeepPartial, Long } from "../../../../helpers";
|
4
|
+
/**
|
5
|
+
* State defines if a channel is in one of the following states:
|
6
|
+
* CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
7
|
+
*/
|
8
|
+
export declare enum State {
|
9
|
+
/** STATE_UNINITIALIZED_UNSPECIFIED - Default State */
|
10
|
+
STATE_UNINITIALIZED_UNSPECIFIED = 0,
|
11
|
+
/** STATE_INIT - A channel has just started the opening handshake. */
|
12
|
+
STATE_INIT = 1,
|
13
|
+
/** STATE_TRYOPEN - A channel has acknowledged the handshake step on the counterparty chain. */
|
14
|
+
STATE_TRYOPEN = 2,
|
15
|
+
/**
|
16
|
+
* STATE_OPEN - A channel has completed the handshake. Open channels are
|
17
|
+
* ready to send and receive packets.
|
18
|
+
*/
|
19
|
+
STATE_OPEN = 3,
|
20
|
+
/**
|
21
|
+
* STATE_CLOSED - A channel has been closed and can no longer be used to send or receive
|
22
|
+
* packets.
|
23
|
+
*/
|
24
|
+
STATE_CLOSED = 4,
|
25
|
+
UNRECOGNIZED = -1
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* State defines if a channel is in one of the following states:
|
29
|
+
* CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
30
|
+
*/
|
31
|
+
export declare enum StateSDKType {
|
32
|
+
/** STATE_UNINITIALIZED_UNSPECIFIED - Default State */
|
33
|
+
STATE_UNINITIALIZED_UNSPECIFIED = 0,
|
34
|
+
/** STATE_INIT - A channel has just started the opening handshake. */
|
35
|
+
STATE_INIT = 1,
|
36
|
+
/** STATE_TRYOPEN - A channel has acknowledged the handshake step on the counterparty chain. */
|
37
|
+
STATE_TRYOPEN = 2,
|
38
|
+
/**
|
39
|
+
* STATE_OPEN - A channel has completed the handshake. Open channels are
|
40
|
+
* ready to send and receive packets.
|
41
|
+
*/
|
42
|
+
STATE_OPEN = 3,
|
43
|
+
/**
|
44
|
+
* STATE_CLOSED - A channel has been closed and can no longer be used to send or receive
|
45
|
+
* packets.
|
46
|
+
*/
|
47
|
+
STATE_CLOSED = 4,
|
48
|
+
UNRECOGNIZED = -1
|
49
|
+
}
|
50
|
+
export declare function stateFromJSON(object: any): State;
|
51
|
+
export declare function stateToJSON(object: State): string;
|
52
|
+
/** Order defines if a channel is ORDERED or UNORDERED */
|
53
|
+
export declare enum Order {
|
54
|
+
/** ORDER_NONE_UNSPECIFIED - zero-value for channel ordering */
|
55
|
+
ORDER_NONE_UNSPECIFIED = 0,
|
56
|
+
/**
|
57
|
+
* ORDER_UNORDERED - packets can be delivered in any order, which may differ from the order in
|
58
|
+
* which they were sent.
|
59
|
+
*/
|
60
|
+
ORDER_UNORDERED = 1,
|
61
|
+
/** ORDER_ORDERED - packets are delivered exactly in the order which they were sent */
|
62
|
+
ORDER_ORDERED = 2,
|
63
|
+
UNRECOGNIZED = -1
|
64
|
+
}
|
65
|
+
/** Order defines if a channel is ORDERED or UNORDERED */
|
66
|
+
export declare enum OrderSDKType {
|
67
|
+
/** ORDER_NONE_UNSPECIFIED - zero-value for channel ordering */
|
68
|
+
ORDER_NONE_UNSPECIFIED = 0,
|
69
|
+
/**
|
70
|
+
* ORDER_UNORDERED - packets can be delivered in any order, which may differ from the order in
|
71
|
+
* which they were sent.
|
72
|
+
*/
|
73
|
+
ORDER_UNORDERED = 1,
|
74
|
+
/** ORDER_ORDERED - packets are delivered exactly in the order which they were sent */
|
75
|
+
ORDER_ORDERED = 2,
|
76
|
+
UNRECOGNIZED = -1
|
77
|
+
}
|
78
|
+
export declare function orderFromJSON(object: any): Order;
|
79
|
+
export declare function orderToJSON(object: Order): string;
|
80
|
+
/**
|
81
|
+
* Channel defines pipeline for exactly-once packet delivery between specific
|
82
|
+
* modules on separate blockchains, which has at least one end capable of
|
83
|
+
* sending packets and one end capable of receiving packets.
|
84
|
+
*/
|
85
|
+
export interface Channel {
|
86
|
+
/** current state of the channel end */
|
87
|
+
state: State;
|
88
|
+
/** whether the channel is ordered or unordered */
|
89
|
+
ordering: Order;
|
90
|
+
/** counterparty channel end */
|
91
|
+
counterparty?: Counterparty;
|
92
|
+
/**
|
93
|
+
* list of connection identifiers, in order, along which packets sent on
|
94
|
+
* this channel will travel
|
95
|
+
*/
|
96
|
+
connectionHops: string[];
|
97
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
98
|
+
version: string;
|
99
|
+
}
|
100
|
+
/**
|
101
|
+
* Channel defines pipeline for exactly-once packet delivery between specific
|
102
|
+
* modules on separate blockchains, which has at least one end capable of
|
103
|
+
* sending packets and one end capable of receiving packets.
|
104
|
+
*/
|
105
|
+
export interface ChannelSDKType {
|
106
|
+
/** current state of the channel end */
|
107
|
+
state: StateSDKType;
|
108
|
+
/** whether the channel is ordered or unordered */
|
109
|
+
ordering: OrderSDKType;
|
110
|
+
/** counterparty channel end */
|
111
|
+
counterparty?: CounterpartySDKType;
|
112
|
+
/**
|
113
|
+
* list of connection identifiers, in order, along which packets sent on
|
114
|
+
* this channel will travel
|
115
|
+
*/
|
116
|
+
connection_hops: string[];
|
117
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
118
|
+
version: string;
|
119
|
+
}
|
120
|
+
/**
|
121
|
+
* IdentifiedChannel defines a channel with additional port and channel
|
122
|
+
* identifier fields.
|
123
|
+
*/
|
124
|
+
export interface IdentifiedChannel {
|
125
|
+
/** current state of the channel end */
|
126
|
+
state: State;
|
127
|
+
/** whether the channel is ordered or unordered */
|
128
|
+
ordering: Order;
|
129
|
+
/** counterparty channel end */
|
130
|
+
counterparty?: Counterparty;
|
131
|
+
/**
|
132
|
+
* list of connection identifiers, in order, along which packets sent on
|
133
|
+
* this channel will travel
|
134
|
+
*/
|
135
|
+
connectionHops: string[];
|
136
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
137
|
+
version: string;
|
138
|
+
/** port identifier */
|
139
|
+
portId: string;
|
140
|
+
/** channel identifier */
|
141
|
+
channelId: string;
|
142
|
+
}
|
143
|
+
/**
|
144
|
+
* IdentifiedChannel defines a channel with additional port and channel
|
145
|
+
* identifier fields.
|
146
|
+
*/
|
147
|
+
export interface IdentifiedChannelSDKType {
|
148
|
+
/** current state of the channel end */
|
149
|
+
state: StateSDKType;
|
150
|
+
/** whether the channel is ordered or unordered */
|
151
|
+
ordering: OrderSDKType;
|
152
|
+
/** counterparty channel end */
|
153
|
+
counterparty?: CounterpartySDKType;
|
154
|
+
/**
|
155
|
+
* list of connection identifiers, in order, along which packets sent on
|
156
|
+
* this channel will travel
|
157
|
+
*/
|
158
|
+
connection_hops: string[];
|
159
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
160
|
+
version: string;
|
161
|
+
/** port identifier */
|
162
|
+
port_id: string;
|
163
|
+
/** channel identifier */
|
164
|
+
channel_id: string;
|
165
|
+
}
|
166
|
+
/** Counterparty defines a channel end counterparty */
|
167
|
+
export interface Counterparty {
|
168
|
+
/** port on the counterparty chain which owns the other end of the channel. */
|
169
|
+
portId: string;
|
170
|
+
/** channel end on the counterparty chain */
|
171
|
+
channelId: string;
|
172
|
+
}
|
173
|
+
/** Counterparty defines a channel end counterparty */
|
174
|
+
export interface CounterpartySDKType {
|
175
|
+
/** port on the counterparty chain which owns the other end of the channel. */
|
176
|
+
port_id: string;
|
177
|
+
/** channel end on the counterparty chain */
|
178
|
+
channel_id: string;
|
179
|
+
}
|
180
|
+
/** Packet defines a type that carries data across different chains through IBC */
|
181
|
+
export interface Packet {
|
182
|
+
/**
|
183
|
+
* number corresponds to the order of sends and receives, where a Packet
|
184
|
+
* with an earlier sequence number must be sent and received before a Packet
|
185
|
+
* with a later sequence number.
|
186
|
+
*/
|
187
|
+
sequence: Long;
|
188
|
+
/** identifies the port on the sending chain. */
|
189
|
+
sourcePort: string;
|
190
|
+
/** identifies the channel end on the sending chain. */
|
191
|
+
sourceChannel: string;
|
192
|
+
/** identifies the port on the receiving chain. */
|
193
|
+
destinationPort: string;
|
194
|
+
/** identifies the channel end on the receiving chain. */
|
195
|
+
destinationChannel: string;
|
196
|
+
/** actual opaque bytes transferred directly to the application module */
|
197
|
+
data: Uint8Array;
|
198
|
+
/** block height after which the packet times out */
|
199
|
+
timeoutHeight?: Height;
|
200
|
+
/** block timestamp (in nanoseconds) after which the packet times out */
|
201
|
+
timeoutTimestamp: Long;
|
202
|
+
}
|
203
|
+
/** Packet defines a type that carries data across different chains through IBC */
|
204
|
+
export interface PacketSDKType {
|
205
|
+
/**
|
206
|
+
* number corresponds to the order of sends and receives, where a Packet
|
207
|
+
* with an earlier sequence number must be sent and received before a Packet
|
208
|
+
* with a later sequence number.
|
209
|
+
*/
|
210
|
+
sequence: Long;
|
211
|
+
/** identifies the port on the sending chain. */
|
212
|
+
source_port: string;
|
213
|
+
/** identifies the channel end on the sending chain. */
|
214
|
+
source_channel: string;
|
215
|
+
/** identifies the port on the receiving chain. */
|
216
|
+
destination_port: string;
|
217
|
+
/** identifies the channel end on the receiving chain. */
|
218
|
+
destination_channel: string;
|
219
|
+
/** actual opaque bytes transferred directly to the application module */
|
220
|
+
data: Uint8Array;
|
221
|
+
/** block height after which the packet times out */
|
222
|
+
timeout_height?: HeightSDKType;
|
223
|
+
/** block timestamp (in nanoseconds) after which the packet times out */
|
224
|
+
timeout_timestamp: Long;
|
225
|
+
}
|
226
|
+
/**
|
227
|
+
* PacketState defines the generic type necessary to retrieve and store
|
228
|
+
* packet commitments, acknowledgements, and receipts.
|
229
|
+
* Caller is responsible for knowing the context necessary to interpret this
|
230
|
+
* state as a commitment, acknowledgement, or a receipt.
|
231
|
+
*/
|
232
|
+
export interface PacketState {
|
233
|
+
/** channel port identifier. */
|
234
|
+
portId: string;
|
235
|
+
/** channel unique identifier. */
|
236
|
+
channelId: string;
|
237
|
+
/** packet sequence. */
|
238
|
+
sequence: Long;
|
239
|
+
/** embedded data that represents packet state. */
|
240
|
+
data: Uint8Array;
|
241
|
+
}
|
242
|
+
/**
|
243
|
+
* PacketState defines the generic type necessary to retrieve and store
|
244
|
+
* packet commitments, acknowledgements, and receipts.
|
245
|
+
* Caller is responsible for knowing the context necessary to interpret this
|
246
|
+
* state as a commitment, acknowledgement, or a receipt.
|
247
|
+
*/
|
248
|
+
export interface PacketStateSDKType {
|
249
|
+
/** channel port identifier. */
|
250
|
+
port_id: string;
|
251
|
+
/** channel unique identifier. */
|
252
|
+
channel_id: string;
|
253
|
+
/** packet sequence. */
|
254
|
+
sequence: Long;
|
255
|
+
/** embedded data that represents packet state. */
|
256
|
+
data: Uint8Array;
|
257
|
+
}
|
258
|
+
/**
|
259
|
+
* Acknowledgement is the recommended acknowledgement format to be used by
|
260
|
+
* app-specific protocols.
|
261
|
+
* NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
|
262
|
+
* conflicts with other protobuf message formats used for acknowledgements.
|
263
|
+
* The first byte of any message with this format will be the non-ASCII values
|
264
|
+
* `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
|
265
|
+
* https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope
|
266
|
+
*/
|
267
|
+
export interface Acknowledgement {
|
268
|
+
result?: Uint8Array;
|
269
|
+
error?: string;
|
270
|
+
}
|
271
|
+
/**
|
272
|
+
* Acknowledgement is the recommended acknowledgement format to be used by
|
273
|
+
* app-specific protocols.
|
274
|
+
* NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
|
275
|
+
* conflicts with other protobuf message formats used for acknowledgements.
|
276
|
+
* The first byte of any message with this format will be the non-ASCII values
|
277
|
+
* `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
|
278
|
+
* https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope
|
279
|
+
*/
|
280
|
+
export interface AcknowledgementSDKType {
|
281
|
+
result?: Uint8Array;
|
282
|
+
error?: string;
|
283
|
+
}
|
284
|
+
export declare const Channel: {
|
285
|
+
encode(message: Channel, writer?: _m0.Writer): _m0.Writer;
|
286
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Channel;
|
287
|
+
fromPartial(object: DeepPartial<Channel>): Channel;
|
288
|
+
};
|
289
|
+
export declare const IdentifiedChannel: {
|
290
|
+
encode(message: IdentifiedChannel, writer?: _m0.Writer): _m0.Writer;
|
291
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedChannel;
|
292
|
+
fromPartial(object: DeepPartial<IdentifiedChannel>): IdentifiedChannel;
|
293
|
+
};
|
294
|
+
export declare const Counterparty: {
|
295
|
+
encode(message: Counterparty, writer?: _m0.Writer): _m0.Writer;
|
296
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Counterparty;
|
297
|
+
fromPartial(object: DeepPartial<Counterparty>): Counterparty;
|
298
|
+
};
|
299
|
+
export declare const Packet: {
|
300
|
+
encode(message: Packet, writer?: _m0.Writer): _m0.Writer;
|
301
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Packet;
|
302
|
+
fromPartial(object: DeepPartial<Packet>): Packet;
|
303
|
+
};
|
304
|
+
export declare const PacketState: {
|
305
|
+
encode(message: PacketState, writer?: _m0.Writer): _m0.Writer;
|
306
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PacketState;
|
307
|
+
fromPartial(object: DeepPartial<PacketState>): PacketState;
|
308
|
+
};
|
309
|
+
export declare const Acknowledgement: {
|
310
|
+
encode(message: Acknowledgement, writer?: _m0.Writer): _m0.Writer;
|
311
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Acknowledgement;
|
312
|
+
fromPartial(object: DeepPartial<Acknowledgement>): Acknowledgement;
|
313
|
+
};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { IdentifiedChannel, IdentifiedChannelSDKType, PacketState, PacketStateSDKType } from "./channel";
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
3
|
+
import { Long, DeepPartial } from "../../../../helpers";
|
4
|
+
/** GenesisState defines the ibc channel submodule's genesis state. */
|
5
|
+
export interface GenesisState {
|
6
|
+
channels: IdentifiedChannel[];
|
7
|
+
acknowledgements: PacketState[];
|
8
|
+
commitments: PacketState[];
|
9
|
+
receipts: PacketState[];
|
10
|
+
sendSequences: PacketSequence[];
|
11
|
+
recvSequences: PacketSequence[];
|
12
|
+
ackSequences: PacketSequence[];
|
13
|
+
/** the sequence for the next generated channel identifier */
|
14
|
+
nextChannelSequence: Long;
|
15
|
+
}
|
16
|
+
/** GenesisState defines the ibc channel submodule's genesis state. */
|
17
|
+
export interface GenesisStateSDKType {
|
18
|
+
channels: IdentifiedChannelSDKType[];
|
19
|
+
acknowledgements: PacketStateSDKType[];
|
20
|
+
commitments: PacketStateSDKType[];
|
21
|
+
receipts: PacketStateSDKType[];
|
22
|
+
send_sequences: PacketSequenceSDKType[];
|
23
|
+
recv_sequences: PacketSequenceSDKType[];
|
24
|
+
ack_sequences: PacketSequenceSDKType[];
|
25
|
+
/** the sequence for the next generated channel identifier */
|
26
|
+
next_channel_sequence: Long;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* PacketSequence defines the genesis type necessary to retrieve and store
|
30
|
+
* next send and receive sequences.
|
31
|
+
*/
|
32
|
+
export interface PacketSequence {
|
33
|
+
portId: string;
|
34
|
+
channelId: string;
|
35
|
+
sequence: Long;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* PacketSequence defines the genesis type necessary to retrieve and store
|
39
|
+
* next send and receive sequences.
|
40
|
+
*/
|
41
|
+
export interface PacketSequenceSDKType {
|
42
|
+
port_id: string;
|
43
|
+
channel_id: string;
|
44
|
+
sequence: Long;
|
45
|
+
}
|
46
|
+
export declare const GenesisState: {
|
47
|
+
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
49
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
50
|
+
};
|
51
|
+
export declare const PacketSequence: {
|
52
|
+
encode(message: PacketSequence, writer?: _m0.Writer): _m0.Writer;
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PacketSequence;
|
54
|
+
fromPartial(object: DeepPartial<PacketSequence>): PacketSequence;
|
55
|
+
};
|