@bze/bzejs 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/package.json +1 -1
  2. package/types/codegen/amino/amino.d.ts +1 -0
  3. package/types/codegen/amino/bundle.d.ts +1 -0
  4. package/types/codegen/beezee/burner/query.d.ts +0 -1
  5. package/types/codegen/beezee/burner/tx.amino.d.ts +3 -3
  6. package/types/codegen/beezee/cointrunk/anon_articles_counter.d.ts +1 -1
  7. package/types/codegen/beezee/cointrunk/article.d.ts +1 -1
  8. package/types/codegen/beezee/cointrunk/events.d.ts +1 -1
  9. package/types/codegen/beezee/cointrunk/genesis.d.ts +1 -1
  10. package/types/codegen/beezee/cointrunk/publisher.d.ts +1 -1
  11. package/types/codegen/beezee/cointrunk/query.d.ts +0 -1
  12. package/types/codegen/beezee/cointrunk/tx.amino.d.ts +6 -6
  13. package/types/codegen/bze/bundle.d.ts +247 -3513
  14. package/types/codegen/confio/proofs.d.ts +439 -0
  15. package/types/codegen/cosmos/app/v1alpha1/config.d.ts +0 -17
  16. package/types/codegen/cosmos/app/v1alpha1/module.d.ts +0 -64
  17. package/types/codegen/cosmos/app/v1alpha1/query.d.ts +0 -1
  18. package/types/codegen/cosmos/auth/v1beta1/auth.d.ts +1 -1
  19. package/types/codegen/cosmos/auth/v1beta1/genesis.d.ts +0 -2
  20. package/types/codegen/cosmos/auth/v1beta1/query.d.ts +0 -6
  21. package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +0 -7
  22. package/types/codegen/cosmos/authz/v1beta1/event.d.ts +0 -6
  23. package/types/codegen/cosmos/authz/v1beta1/query.d.ts +0 -10
  24. package/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts +9 -9
  25. package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +0 -5
  26. package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +0 -37
  27. package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +0 -9
  28. package/types/codegen/cosmos/bank/v1beta1/query.d.ts +0 -34
  29. package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +6 -6
  30. package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +1 -62
  31. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +1 -35
  32. package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +0 -2
  33. package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -63
  34. package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +1 -4
  35. package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +1 -1
  36. package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +0 -2
  37. package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +1 -9
  38. package/types/codegen/cosmos/bundle.d.ts +3223 -41279
  39. package/types/codegen/cosmos/capability/v1beta1/capability.d.ts +1 -1
  40. package/types/codegen/cosmos/capability/v1beta1/genesis.d.ts +1 -8
  41. package/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts +0 -4
  42. package/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts +3 -3
  43. package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +0 -8
  44. package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +0 -6
  45. package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +0 -5
  46. package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +0 -28
  47. package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +0 -21
  48. package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +12 -12
  49. package/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts +1 -1
  50. package/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts +0 -1
  51. package/types/codegen/cosmos/evidence/v1beta1/query.d.ts +0 -5
  52. package/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts +3 -3
  53. package/types/codegen/cosmos/evidence/v1beta1/tx.d.ts +0 -1
  54. package/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -26
  55. package/types/codegen/cosmos/feegrant/v1beta1/query.d.ts +0 -9
  56. package/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts +6 -6
  57. package/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts +0 -5
  58. package/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts +0 -1
  59. package/types/codegen/cosmos/gov/v1/genesis.d.ts +1 -8
  60. package/types/codegen/cosmos/gov/v1/gov.d.ts +4 -69
  61. package/types/codegen/cosmos/gov/v1/query.d.ts +3 -31
  62. package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +15 -15
  63. package/types/codegen/cosmos/gov/v1/tx.d.ts +2 -5
  64. package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +1 -8
  65. package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +5 -74
  66. package/types/codegen/cosmos/gov/v1beta1/query.d.ts +3 -31
  67. package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +12 -12
  68. package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +2 -2
  69. package/types/codegen/cosmos/group/v1/events.d.ts +3 -14
  70. package/types/codegen/cosmos/group/v1/genesis.d.ts +1 -18
  71. package/types/codegen/cosmos/group/v1/query.d.ts +1 -44
  72. package/types/codegen/cosmos/group/v1/tx.amino.d.ts +42 -42
  73. package/types/codegen/cosmos/group/v1/tx.d.ts +5 -85
  74. package/types/codegen/cosmos/group/v1/types.d.ts +8 -150
  75. package/types/codegen/cosmos/mint/v1beta1/genesis.d.ts +0 -2
  76. package/types/codegen/cosmos/mint/v1beta1/mint.d.ts +0 -8
  77. package/types/codegen/cosmos/mint/v1beta1/query.d.ts +0 -3
  78. package/types/codegen/cosmos/nft/v1beta1/genesis.d.ts +0 -3
  79. package/types/codegen/cosmos/nft/v1beta1/nft.d.ts +0 -12
  80. package/types/codegen/cosmos/nft/v1beta1/query.d.ts +0 -1
  81. package/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts +3 -3
  82. package/types/codegen/cosmos/nft/v1beta1/tx.d.ts +0 -4
  83. package/types/codegen/cosmos/orm/v1/orm.d.ts +0 -66
  84. package/types/codegen/cosmos/orm/v1alpha1/schema.d.ts +2 -62
  85. package/types/codegen/cosmos/params/v1beta1/query.d.ts +0 -3
  86. package/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts +0 -15
  87. package/types/codegen/cosmos/slashing/v1beta1/query.d.ts +0 -3
  88. package/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts +1 -16
  89. package/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts +3 -3
  90. package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +2 -27
  91. package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +0 -15
  92. package/types/codegen/cosmos/staking/v1beta1/query.d.ts +0 -41
  93. package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +2 -58
  94. package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +15 -15
  95. package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +0 -6
  96. package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +2 -57
  97. package/types/codegen/cosmos/tx/v1beta1/service.d.ts +4 -58
  98. package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +3 -152
  99. package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +0 -14
  100. package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +6 -6
  101. package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +0 -3
  102. package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +1 -30
  103. package/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts +9 -9
  104. package/types/codegen/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  105. package/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts +1 -1
  106. package/types/codegen/cosmos_proto/bundle.d.ts +12 -12
  107. package/types/codegen/cosmos_proto/cosmos.d.ts +2 -34
  108. package/types/codegen/google/api/http.d.ts +0 -55
  109. package/types/codegen/google/bundle.d.ts +284 -7810
  110. package/types/codegen/google/protobuf/any.d.ts +0 -30
  111. package/types/codegen/google/protobuf/descriptor.d.ts +12 -566
  112. package/types/codegen/google/protobuf/duration.d.ts +1 -14
  113. package/types/codegen/google/protobuf/timestamp.d.ts +1 -12
  114. package/types/codegen/helpers.d.ts +2 -2
  115. package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
  116. package/types/codegen/ibc/applications/transfer/v1/query.d.ts +112 -0
  117. package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
  118. package/types/codegen/ibc/applications/transfer/v1/query.rpc.Query.d.ts +24 -0
  119. package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +61 -0
  120. package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
  121. package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +61 -0
  122. package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
  123. package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
  124. package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +33 -0
  125. package/types/codegen/ibc/bundle.d.ts +4077 -0
  126. package/types/codegen/ibc/client.d.ts +560 -0
  127. package/types/codegen/ibc/core/channel/v1/channel.d.ts +243 -0
  128. package/types/codegen/ibc/core/channel/v1/genesis.d.ts +54 -0
  129. package/types/codegen/ibc/core/channel/v1/query.d.ts +655 -0
  130. package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
  131. package/types/codegen/ibc/core/channel/v1/query.rpc.Query.d.ts +88 -0
  132. package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
  133. package/types/codegen/ibc/core/channel/v1/tx.d.ts +376 -0
  134. package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
  135. package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
  136. package/types/codegen/ibc/core/client/v1/client.d.ts +195 -0
  137. package/types/codegen/ibc/core/client/v1/genesis.d.ts +75 -0
  138. package/types/codegen/ibc/core/client/v1/query.d.ts +352 -0
  139. package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
  140. package/types/codegen/ibc/core/client/v1/query.rpc.Query.d.ts +50 -0
  141. package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
  142. package/types/codegen/ibc/core/client/v1/tx.d.ts +166 -0
  143. package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
  144. package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
  145. package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
  146. package/types/codegen/ibc/core/connection/v1/connection.d.ts +203 -0
  147. package/types/codegen/ibc/core/connection/v1/genesis.d.ts +23 -0
  148. package/types/codegen/ibc/core/connection/v1/query.d.ts +244 -0
  149. package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
  150. package/types/codegen/ibc/core/connection/v1/query.rpc.Query.d.ts +41 -0
  151. package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
  152. package/types/codegen/ibc/core/connection/v1/tx.d.ts +208 -0
  153. package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
  154. package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
  155. package/types/codegen/ibc/core/port/v1/query.d.ts +46 -0
  156. package/types/codegen/ibc/core/port/v1/query.rpc.Query.d.ts +16 -0
  157. package/types/codegen/ibc/core/types/v1/genesis.d.ts +28 -0
  158. package/types/codegen/ibc/lcd.d.ts +75 -0
  159. package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +26 -0
  160. package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +390 -0
  161. package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +390 -0
  162. package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +184 -0
  163. package/types/codegen/ibc/rpc.query.d.ts +243 -0
  164. package/types/codegen/ibc/rpc.tx.d.ts +65 -0
  165. package/types/codegen/ics23/bundle.d.ts +545 -0
  166. package/types/codegen/index.d.ts +5 -2
  167. package/types/codegen/tendermint/abci/types.d.ts +8 -78
  168. package/types/codegen/tendermint/bundle.d.ts +567 -18175
  169. package/types/codegen/tendermint/crypto/proof.d.ts +1 -3
  170. package/types/codegen/tendermint/libs/bits/types.d.ts +1 -1
  171. package/types/codegen/tendermint/p2p/types.d.ts +1 -1
  172. package/types/codegen/tendermint/types/params.d.ts +0 -32
  173. package/types/codegen/tendermint/types/types.d.ts +5 -36
  174. package/types/codegen/tendermint/types/validator.d.ts +1 -1
  175. package/types/codegen/tendermint/version/types.d.ts +1 -1
@@ -0,0 +1,60 @@
1
+ import { GeneratedType, Registry } from "@cosmjs/proto-signing";
2
+ import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, GeneratedType]>;
4
+ export declare const load: (protoRegistry: Registry) => void;
5
+ export declare const MessageComposer: {
6
+ encoded: {
7
+ createClient(value: MsgCreateClient): {
8
+ typeUrl: string;
9
+ value: Uint8Array;
10
+ };
11
+ updateClient(value: MsgUpdateClient): {
12
+ typeUrl: string;
13
+ value: Uint8Array;
14
+ };
15
+ upgradeClient(value: MsgUpgradeClient): {
16
+ typeUrl: string;
17
+ value: Uint8Array;
18
+ };
19
+ submitMisbehaviour(value: MsgSubmitMisbehaviour): {
20
+ typeUrl: string;
21
+ value: Uint8Array;
22
+ };
23
+ };
24
+ withTypeUrl: {
25
+ createClient(value: MsgCreateClient): {
26
+ typeUrl: string;
27
+ value: MsgCreateClient;
28
+ };
29
+ updateClient(value: MsgUpdateClient): {
30
+ typeUrl: string;
31
+ value: MsgUpdateClient;
32
+ };
33
+ upgradeClient(value: MsgUpgradeClient): {
34
+ typeUrl: string;
35
+ value: MsgUpgradeClient;
36
+ };
37
+ submitMisbehaviour(value: MsgSubmitMisbehaviour): {
38
+ typeUrl: string;
39
+ value: MsgSubmitMisbehaviour;
40
+ };
41
+ };
42
+ fromPartial: {
43
+ createClient(value: MsgCreateClient): {
44
+ typeUrl: string;
45
+ value: MsgCreateClient;
46
+ };
47
+ updateClient(value: MsgUpdateClient): {
48
+ typeUrl: string;
49
+ value: MsgUpdateClient;
50
+ };
51
+ upgradeClient(value: MsgUpgradeClient): {
52
+ typeUrl: string;
53
+ value: MsgUpgradeClient;
54
+ };
55
+ submitMisbehaviour(value: MsgSubmitMisbehaviour): {
56
+ typeUrl: string;
57
+ value: MsgSubmitMisbehaviour;
58
+ };
59
+ };
60
+ };
@@ -0,0 +1,21 @@
1
+ import { Rpc } from "../../../../helpers";
2
+ import { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx";
3
+ /** Msg defines the ibc/client Msg service. */
4
+ export interface Msg {
5
+ /** CreateClient defines a rpc handler method for MsgCreateClient. */
6
+ createClient(request: MsgCreateClient): Promise<MsgCreateClientResponse>;
7
+ /** UpdateClient defines a rpc handler method for MsgUpdateClient. */
8
+ updateClient(request: MsgUpdateClient): Promise<MsgUpdateClientResponse>;
9
+ /** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */
10
+ upgradeClient(request: MsgUpgradeClient): Promise<MsgUpgradeClientResponse>;
11
+ /** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */
12
+ submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise<MsgSubmitMisbehaviourResponse>;
13
+ }
14
+ export declare class MsgClientImpl implements Msg {
15
+ private readonly rpc;
16
+ constructor(rpc: Rpc);
17
+ createClient(request: MsgCreateClient): Promise<MsgCreateClientResponse>;
18
+ updateClient(request: MsgUpdateClient): Promise<MsgUpdateClientResponse>;
19
+ upgradeClient(request: MsgUpgradeClient): Promise<MsgUpgradeClientResponse>;
20
+ submitMisbehaviour(request: MsgSubmitMisbehaviour): Promise<MsgSubmitMisbehaviourResponse>;
21
+ }
@@ -0,0 +1,89 @@
1
+ import { CommitmentProof, CommitmentProofSDKType } from "../../../../confio/proofs";
2
+ import * as _m0 from "protobufjs/minimal";
3
+ import { DeepPartial } from "../../../../helpers";
4
+ /**
5
+ * MerkleRoot defines a merkle root hash.
6
+ * In the Cosmos SDK, the AppHash of a block header becomes the root.
7
+ */
8
+ export interface MerkleRoot {
9
+ hash: Uint8Array;
10
+ }
11
+ /**
12
+ * MerkleRoot defines a merkle root hash.
13
+ * In the Cosmos SDK, the AppHash of a block header becomes the root.
14
+ */
15
+ export interface MerkleRootSDKType {
16
+ hash: Uint8Array;
17
+ }
18
+ /**
19
+ * MerklePrefix is merkle path prefixed to the key.
20
+ * The constructed key from the Path and the key will be append(Path.KeyPath,
21
+ * append(Path.KeyPrefix, key...))
22
+ */
23
+ export interface MerklePrefix {
24
+ keyPrefix: Uint8Array;
25
+ }
26
+ /**
27
+ * MerklePrefix is merkle path prefixed to the key.
28
+ * The constructed key from the Path and the key will be append(Path.KeyPath,
29
+ * append(Path.KeyPrefix, key...))
30
+ */
31
+ export interface MerklePrefixSDKType {
32
+ key_prefix: Uint8Array;
33
+ }
34
+ /**
35
+ * MerklePath is the path used to verify commitment proofs, which can be an
36
+ * arbitrary structured object (defined by a commitment type).
37
+ * MerklePath is represented from root-to-leaf
38
+ */
39
+ export interface MerklePath {
40
+ keyPath: string[];
41
+ }
42
+ /**
43
+ * MerklePath is the path used to verify commitment proofs, which can be an
44
+ * arbitrary structured object (defined by a commitment type).
45
+ * MerklePath is represented from root-to-leaf
46
+ */
47
+ export interface MerklePathSDKType {
48
+ key_path: string[];
49
+ }
50
+ /**
51
+ * MerkleProof is a wrapper type over a chain of CommitmentProofs.
52
+ * It demonstrates membership or non-membership for an element or set of
53
+ * elements, verifiable in conjunction with a known commitment root. Proofs
54
+ * should be succinct.
55
+ * MerkleProofs are ordered from leaf-to-root
56
+ */
57
+ export interface MerkleProof {
58
+ proofs: CommitmentProof[];
59
+ }
60
+ /**
61
+ * MerkleProof is a wrapper type over a chain of CommitmentProofs.
62
+ * It demonstrates membership or non-membership for an element or set of
63
+ * elements, verifiable in conjunction with a known commitment root. Proofs
64
+ * should be succinct.
65
+ * MerkleProofs are ordered from leaf-to-root
66
+ */
67
+ export interface MerkleProofSDKType {
68
+ proofs: CommitmentProofSDKType[];
69
+ }
70
+ export declare const MerkleRoot: {
71
+ encode(message: MerkleRoot, writer?: _m0.Writer): _m0.Writer;
72
+ decode(input: _m0.Reader | Uint8Array, length?: number): MerkleRoot;
73
+ fromPartial(object: DeepPartial<MerkleRoot>): MerkleRoot;
74
+ };
75
+ export declare const MerklePrefix: {
76
+ encode(message: MerklePrefix, writer?: _m0.Writer): _m0.Writer;
77
+ decode(input: _m0.Reader | Uint8Array, length?: number): MerklePrefix;
78
+ fromPartial(object: DeepPartial<MerklePrefix>): MerklePrefix;
79
+ };
80
+ export declare const MerklePath: {
81
+ encode(message: MerklePath, writer?: _m0.Writer): _m0.Writer;
82
+ decode(input: _m0.Reader | Uint8Array, length?: number): MerklePath;
83
+ fromPartial(object: DeepPartial<MerklePath>): MerklePath;
84
+ };
85
+ export declare const MerkleProof: {
86
+ encode(message: MerkleProof, writer?: _m0.Writer): _m0.Writer;
87
+ decode(input: _m0.Reader | Uint8Array, length?: number): MerkleProof;
88
+ fromPartial(object: DeepPartial<MerkleProof>): MerkleProof;
89
+ };
@@ -0,0 +1,203 @@
1
+ import { MerklePrefix, MerklePrefixSDKType } from "../../commitment/v1/commitment";
2
+ import { Long, DeepPartial } from "../../../../helpers";
3
+ import * as _m0 from "protobufjs/minimal";
4
+ /**
5
+ * State defines if a connection is in one of the following states:
6
+ * 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 connection end has just started the opening handshake. */
12
+ STATE_INIT = 1,
13
+ /**
14
+ * STATE_TRYOPEN - A connection end has acknowledged the handshake step on the counterparty
15
+ * chain.
16
+ */
17
+ STATE_TRYOPEN = 2,
18
+ /** STATE_OPEN - A connection end has completed the handshake. */
19
+ STATE_OPEN = 3,
20
+ UNRECOGNIZED = -1
21
+ }
22
+ export declare const StateSDKType: typeof State;
23
+ export declare function stateFromJSON(object: any): State;
24
+ export declare function stateToJSON(object: State): string;
25
+ /**
26
+ * ConnectionEnd defines a stateful object on a chain connected to another
27
+ * separate one.
28
+ * NOTE: there must only be 2 defined ConnectionEnds to establish
29
+ * a connection between two chains.
30
+ */
31
+ export interface ConnectionEnd {
32
+ /** client associated with this connection. */
33
+ clientId: string;
34
+ /**
35
+ * IBC version which can be utilised to determine encodings or protocols for
36
+ * channels or packets utilising this connection.
37
+ */
38
+ versions: Version[];
39
+ /** current state of the connection end. */
40
+ state: State;
41
+ /** counterparty chain associated with this connection. */
42
+ counterparty?: Counterparty;
43
+ /**
44
+ * delay period that must pass before a consensus state can be used for
45
+ * packet-verification NOTE: delay period logic is only implemented by some
46
+ * clients.
47
+ */
48
+ delayPeriod: Long;
49
+ }
50
+ /**
51
+ * ConnectionEnd defines a stateful object on a chain connected to another
52
+ * separate one.
53
+ * NOTE: there must only be 2 defined ConnectionEnds to establish
54
+ * a connection between two chains.
55
+ */
56
+ export interface ConnectionEndSDKType {
57
+ client_id: string;
58
+ versions: VersionSDKType[];
59
+ state: State;
60
+ counterparty?: CounterpartySDKType;
61
+ delay_period: Long;
62
+ }
63
+ /**
64
+ * IdentifiedConnection defines a connection with additional connection
65
+ * identifier field.
66
+ */
67
+ export interface IdentifiedConnection {
68
+ /** connection identifier. */
69
+ id: string;
70
+ /** client associated with this connection. */
71
+ clientId: string;
72
+ /**
73
+ * IBC version which can be utilised to determine encodings or protocols for
74
+ * channels or packets utilising this connection
75
+ */
76
+ versions: Version[];
77
+ /** current state of the connection end. */
78
+ state: State;
79
+ /** counterparty chain associated with this connection. */
80
+ counterparty?: Counterparty;
81
+ /** delay period associated with this connection. */
82
+ delayPeriod: Long;
83
+ }
84
+ /**
85
+ * IdentifiedConnection defines a connection with additional connection
86
+ * identifier field.
87
+ */
88
+ export interface IdentifiedConnectionSDKType {
89
+ id: string;
90
+ client_id: string;
91
+ versions: VersionSDKType[];
92
+ state: State;
93
+ counterparty?: CounterpartySDKType;
94
+ delay_period: Long;
95
+ }
96
+ /** Counterparty defines the counterparty chain associated with a connection end. */
97
+ export interface Counterparty {
98
+ /**
99
+ * identifies the client on the counterparty chain associated with a given
100
+ * connection.
101
+ */
102
+ clientId: string;
103
+ /**
104
+ * identifies the connection end on the counterparty chain associated with a
105
+ * given connection.
106
+ */
107
+ connectionId: string;
108
+ /** commitment merkle prefix of the counterparty chain. */
109
+ prefix?: MerklePrefix;
110
+ }
111
+ /** Counterparty defines the counterparty chain associated with a connection end. */
112
+ export interface CounterpartySDKType {
113
+ client_id: string;
114
+ connection_id: string;
115
+ prefix?: MerklePrefixSDKType;
116
+ }
117
+ /** ClientPaths define all the connection paths for a client state. */
118
+ export interface ClientPaths {
119
+ /** list of connection paths */
120
+ paths: string[];
121
+ }
122
+ /** ClientPaths define all the connection paths for a client state. */
123
+ export interface ClientPathsSDKType {
124
+ paths: string[];
125
+ }
126
+ /** ConnectionPaths define all the connection paths for a given client state. */
127
+ export interface ConnectionPaths {
128
+ /** client state unique identifier */
129
+ clientId: string;
130
+ /** list of connection paths */
131
+ paths: string[];
132
+ }
133
+ /** ConnectionPaths define all the connection paths for a given client state. */
134
+ export interface ConnectionPathsSDKType {
135
+ client_id: string;
136
+ paths: string[];
137
+ }
138
+ /**
139
+ * Version defines the versioning scheme used to negotiate the IBC verison in
140
+ * the connection handshake.
141
+ */
142
+ export interface Version {
143
+ /** unique version identifier */
144
+ identifier: string;
145
+ /** list of features compatible with the specified identifier */
146
+ features: string[];
147
+ }
148
+ /**
149
+ * Version defines the versioning scheme used to negotiate the IBC verison in
150
+ * the connection handshake.
151
+ */
152
+ export interface VersionSDKType {
153
+ identifier: string;
154
+ features: string[];
155
+ }
156
+ /** Params defines the set of Connection parameters. */
157
+ export interface Params {
158
+ /**
159
+ * maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the
160
+ * largest amount of time that the chain might reasonably take to produce the next block under normal operating
161
+ * conditions. A safe choice is 3-5x the expected time per block.
162
+ */
163
+ maxExpectedTimePerBlock: Long;
164
+ }
165
+ /** Params defines the set of Connection parameters. */
166
+ export interface ParamsSDKType {
167
+ max_expected_time_per_block: Long;
168
+ }
169
+ export declare const ConnectionEnd: {
170
+ encode(message: ConnectionEnd, writer?: _m0.Writer): _m0.Writer;
171
+ decode(input: _m0.Reader | Uint8Array, length?: number): ConnectionEnd;
172
+ fromPartial(object: DeepPartial<ConnectionEnd>): ConnectionEnd;
173
+ };
174
+ export declare const IdentifiedConnection: {
175
+ encode(message: IdentifiedConnection, writer?: _m0.Writer): _m0.Writer;
176
+ decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedConnection;
177
+ fromPartial(object: DeepPartial<IdentifiedConnection>): IdentifiedConnection;
178
+ };
179
+ export declare const Counterparty: {
180
+ encode(message: Counterparty, writer?: _m0.Writer): _m0.Writer;
181
+ decode(input: _m0.Reader | Uint8Array, length?: number): Counterparty;
182
+ fromPartial(object: DeepPartial<Counterparty>): Counterparty;
183
+ };
184
+ export declare const ClientPaths: {
185
+ encode(message: ClientPaths, writer?: _m0.Writer): _m0.Writer;
186
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClientPaths;
187
+ fromPartial(object: DeepPartial<ClientPaths>): ClientPaths;
188
+ };
189
+ export declare const ConnectionPaths: {
190
+ encode(message: ConnectionPaths, writer?: _m0.Writer): _m0.Writer;
191
+ decode(input: _m0.Reader | Uint8Array, length?: number): ConnectionPaths;
192
+ fromPartial(object: DeepPartial<ConnectionPaths>): ConnectionPaths;
193
+ };
194
+ export declare const Version: {
195
+ encode(message: Version, writer?: _m0.Writer): _m0.Writer;
196
+ decode(input: _m0.Reader | Uint8Array, length?: number): Version;
197
+ fromPartial(object: DeepPartial<Version>): Version;
198
+ };
199
+ export declare const Params: {
200
+ encode(message: Params, writer?: _m0.Writer): _m0.Writer;
201
+ decode(input: _m0.Reader | Uint8Array, length?: number): Params;
202
+ fromPartial(object: DeepPartial<Params>): Params;
203
+ };
@@ -0,0 +1,23 @@
1
+ import { IdentifiedConnection, IdentifiedConnectionSDKType, ConnectionPaths, ConnectionPathsSDKType, Params, ParamsSDKType } from "./connection";
2
+ import { Long, DeepPartial } from "../../../../helpers";
3
+ import * as _m0 from "protobufjs/minimal";
4
+ /** GenesisState defines the ibc connection submodule's genesis state. */
5
+ export interface GenesisState {
6
+ connections: IdentifiedConnection[];
7
+ clientConnectionPaths: ConnectionPaths[];
8
+ /** the sequence for the next generated connection identifier */
9
+ nextConnectionSequence: Long;
10
+ params?: Params;
11
+ }
12
+ /** GenesisState defines the ibc connection submodule's genesis state. */
13
+ export interface GenesisStateSDKType {
14
+ connections: IdentifiedConnectionSDKType[];
15
+ client_connection_paths: ConnectionPathsSDKType[];
16
+ next_connection_sequence: Long;
17
+ params?: ParamsSDKType;
18
+ }
19
+ export declare const GenesisState: {
20
+ encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
22
+ fromPartial(object: DeepPartial<GenesisState>): GenesisState;
23
+ };
@@ -0,0 +1,244 @@
1
+ import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination";
2
+ import { ConnectionEnd, ConnectionEndSDKType, IdentifiedConnection, IdentifiedConnectionSDKType } from "./connection";
3
+ import { Height, HeightSDKType, IdentifiedClientState, IdentifiedClientStateSDKType } from "../../client/v1/client";
4
+ import { Any, AnySDKType } from "../../../../google/protobuf/any";
5
+ import * as _m0 from "protobufjs/minimal";
6
+ import { DeepPartial, Long } from "../../../../helpers";
7
+ /**
8
+ * QueryConnectionRequest is the request type for the Query/Connection RPC
9
+ * method
10
+ */
11
+ export interface QueryConnectionRequest {
12
+ /** connection unique identifier */
13
+ connectionId: string;
14
+ }
15
+ /**
16
+ * QueryConnectionRequest is the request type for the Query/Connection RPC
17
+ * method
18
+ */
19
+ export interface QueryConnectionRequestSDKType {
20
+ connection_id: string;
21
+ }
22
+ /**
23
+ * QueryConnectionResponse is the response type for the Query/Connection RPC
24
+ * method. Besides the connection end, it includes a proof and the height from
25
+ * which the proof was retrieved.
26
+ */
27
+ export interface QueryConnectionResponse {
28
+ /** connection associated with the request identifier */
29
+ connection?: ConnectionEnd;
30
+ /** merkle proof of existence */
31
+ proof: Uint8Array;
32
+ /** height at which the proof was retrieved */
33
+ proofHeight?: Height;
34
+ }
35
+ /**
36
+ * QueryConnectionResponse is the response type for the Query/Connection RPC
37
+ * method. Besides the connection end, it includes a proof and the height from
38
+ * which the proof was retrieved.
39
+ */
40
+ export interface QueryConnectionResponseSDKType {
41
+ connection?: ConnectionEndSDKType;
42
+ proof: Uint8Array;
43
+ proof_height?: HeightSDKType;
44
+ }
45
+ /**
46
+ * QueryConnectionsRequest is the request type for the Query/Connections RPC
47
+ * method
48
+ */
49
+ export interface QueryConnectionsRequest {
50
+ pagination?: PageRequest;
51
+ }
52
+ /**
53
+ * QueryConnectionsRequest is the request type for the Query/Connections RPC
54
+ * method
55
+ */
56
+ export interface QueryConnectionsRequestSDKType {
57
+ pagination?: PageRequestSDKType;
58
+ }
59
+ /**
60
+ * QueryConnectionsResponse is the response type for the Query/Connections RPC
61
+ * method.
62
+ */
63
+ export interface QueryConnectionsResponse {
64
+ /** list of stored connections of the chain. */
65
+ connections: IdentifiedConnection[];
66
+ /** pagination response */
67
+ pagination?: PageResponse;
68
+ /** query block height */
69
+ height?: Height;
70
+ }
71
+ /**
72
+ * QueryConnectionsResponse is the response type for the Query/Connections RPC
73
+ * method.
74
+ */
75
+ export interface QueryConnectionsResponseSDKType {
76
+ connections: IdentifiedConnectionSDKType[];
77
+ pagination?: PageResponseSDKType;
78
+ height?: HeightSDKType;
79
+ }
80
+ /**
81
+ * QueryClientConnectionsRequest is the request type for the
82
+ * Query/ClientConnections RPC method
83
+ */
84
+ export interface QueryClientConnectionsRequest {
85
+ /** client identifier associated with a connection */
86
+ clientId: string;
87
+ }
88
+ /**
89
+ * QueryClientConnectionsRequest is the request type for the
90
+ * Query/ClientConnections RPC method
91
+ */
92
+ export interface QueryClientConnectionsRequestSDKType {
93
+ client_id: string;
94
+ }
95
+ /**
96
+ * QueryClientConnectionsResponse is the response type for the
97
+ * Query/ClientConnections RPC method
98
+ */
99
+ export interface QueryClientConnectionsResponse {
100
+ /** slice of all the connection paths associated with a client. */
101
+ connectionPaths: string[];
102
+ /** merkle proof of existence */
103
+ proof: Uint8Array;
104
+ /** height at which the proof was generated */
105
+ proofHeight?: Height;
106
+ }
107
+ /**
108
+ * QueryClientConnectionsResponse is the response type for the
109
+ * Query/ClientConnections RPC method
110
+ */
111
+ export interface QueryClientConnectionsResponseSDKType {
112
+ connection_paths: string[];
113
+ proof: Uint8Array;
114
+ proof_height?: HeightSDKType;
115
+ }
116
+ /**
117
+ * QueryConnectionClientStateRequest is the request type for the
118
+ * Query/ConnectionClientState RPC method
119
+ */
120
+ export interface QueryConnectionClientStateRequest {
121
+ /** connection identifier */
122
+ connectionId: string;
123
+ }
124
+ /**
125
+ * QueryConnectionClientStateRequest is the request type for the
126
+ * Query/ConnectionClientState RPC method
127
+ */
128
+ export interface QueryConnectionClientStateRequestSDKType {
129
+ connection_id: string;
130
+ }
131
+ /**
132
+ * QueryConnectionClientStateResponse is the response type for the
133
+ * Query/ConnectionClientState RPC method
134
+ */
135
+ export interface QueryConnectionClientStateResponse {
136
+ /** client state associated with the channel */
137
+ identifiedClientState?: IdentifiedClientState;
138
+ /** merkle proof of existence */
139
+ proof: Uint8Array;
140
+ /** height at which the proof was retrieved */
141
+ proofHeight?: Height;
142
+ }
143
+ /**
144
+ * QueryConnectionClientStateResponse is the response type for the
145
+ * Query/ConnectionClientState RPC method
146
+ */
147
+ export interface QueryConnectionClientStateResponseSDKType {
148
+ identified_client_state?: IdentifiedClientStateSDKType;
149
+ proof: Uint8Array;
150
+ proof_height?: HeightSDKType;
151
+ }
152
+ /**
153
+ * QueryConnectionConsensusStateRequest is the request type for the
154
+ * Query/ConnectionConsensusState RPC method
155
+ */
156
+ export interface QueryConnectionConsensusStateRequest {
157
+ /** connection identifier */
158
+ connectionId: string;
159
+ revisionNumber: Long;
160
+ revisionHeight: Long;
161
+ }
162
+ /**
163
+ * QueryConnectionConsensusStateRequest is the request type for the
164
+ * Query/ConnectionConsensusState RPC method
165
+ */
166
+ export interface QueryConnectionConsensusStateRequestSDKType {
167
+ connection_id: string;
168
+ revision_number: Long;
169
+ revision_height: Long;
170
+ }
171
+ /**
172
+ * QueryConnectionConsensusStateResponse is the response type for the
173
+ * Query/ConnectionConsensusState RPC method
174
+ */
175
+ export interface QueryConnectionConsensusStateResponse {
176
+ /** consensus state associated with the channel */
177
+ consensusState?: Any;
178
+ /** client ID associated with the consensus state */
179
+ clientId: string;
180
+ /** merkle proof of existence */
181
+ proof: Uint8Array;
182
+ /** height at which the proof was retrieved */
183
+ proofHeight?: Height;
184
+ }
185
+ /**
186
+ * QueryConnectionConsensusStateResponse is the response type for the
187
+ * Query/ConnectionConsensusState RPC method
188
+ */
189
+ export interface QueryConnectionConsensusStateResponseSDKType {
190
+ consensus_state?: AnySDKType;
191
+ client_id: string;
192
+ proof: Uint8Array;
193
+ proof_height?: HeightSDKType;
194
+ }
195
+ export declare const QueryConnectionRequest: {
196
+ encode(message: QueryConnectionRequest, writer?: _m0.Writer): _m0.Writer;
197
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionRequest;
198
+ fromPartial(object: DeepPartial<QueryConnectionRequest>): QueryConnectionRequest;
199
+ };
200
+ export declare const QueryConnectionResponse: {
201
+ encode(message: QueryConnectionResponse, writer?: _m0.Writer): _m0.Writer;
202
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionResponse;
203
+ fromPartial(object: DeepPartial<QueryConnectionResponse>): QueryConnectionResponse;
204
+ };
205
+ export declare const QueryConnectionsRequest: {
206
+ encode(message: QueryConnectionsRequest, writer?: _m0.Writer): _m0.Writer;
207
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionsRequest;
208
+ fromPartial(object: DeepPartial<QueryConnectionsRequest>): QueryConnectionsRequest;
209
+ };
210
+ export declare const QueryConnectionsResponse: {
211
+ encode(message: QueryConnectionsResponse, writer?: _m0.Writer): _m0.Writer;
212
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionsResponse;
213
+ fromPartial(object: DeepPartial<QueryConnectionsResponse>): QueryConnectionsResponse;
214
+ };
215
+ export declare const QueryClientConnectionsRequest: {
216
+ encode(message: QueryClientConnectionsRequest, writer?: _m0.Writer): _m0.Writer;
217
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientConnectionsRequest;
218
+ fromPartial(object: DeepPartial<QueryClientConnectionsRequest>): QueryClientConnectionsRequest;
219
+ };
220
+ export declare const QueryClientConnectionsResponse: {
221
+ encode(message: QueryClientConnectionsResponse, writer?: _m0.Writer): _m0.Writer;
222
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientConnectionsResponse;
223
+ fromPartial(object: DeepPartial<QueryClientConnectionsResponse>): QueryClientConnectionsResponse;
224
+ };
225
+ export declare const QueryConnectionClientStateRequest: {
226
+ encode(message: QueryConnectionClientStateRequest, writer?: _m0.Writer): _m0.Writer;
227
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionClientStateRequest;
228
+ fromPartial(object: DeepPartial<QueryConnectionClientStateRequest>): QueryConnectionClientStateRequest;
229
+ };
230
+ export declare const QueryConnectionClientStateResponse: {
231
+ encode(message: QueryConnectionClientStateResponse, writer?: _m0.Writer): _m0.Writer;
232
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionClientStateResponse;
233
+ fromPartial(object: DeepPartial<QueryConnectionClientStateResponse>): QueryConnectionClientStateResponse;
234
+ };
235
+ export declare const QueryConnectionConsensusStateRequest: {
236
+ encode(message: QueryConnectionConsensusStateRequest, writer?: _m0.Writer): _m0.Writer;
237
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionConsensusStateRequest;
238
+ fromPartial(object: DeepPartial<QueryConnectionConsensusStateRequest>): QueryConnectionConsensusStateRequest;
239
+ };
240
+ export declare const QueryConnectionConsensusStateResponse: {
241
+ encode(message: QueryConnectionConsensusStateResponse, writer?: _m0.Writer): _m0.Writer;
242
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionConsensusStateResponse;
243
+ fromPartial(object: DeepPartial<QueryConnectionConsensusStateResponse>): QueryConnectionConsensusStateResponse;
244
+ };
@@ -0,0 +1,13 @@
1
+ import { LCDClient } from "@osmonauts/lcd";
2
+ import { QueryConnectionRequest, QueryConnectionResponseSDKType, QueryConnectionsRequest, QueryConnectionsResponseSDKType, QueryClientConnectionsRequest, QueryClientConnectionsResponseSDKType, QueryConnectionClientStateRequest, QueryConnectionClientStateResponseSDKType, QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateResponseSDKType } from "./query";
3
+ export declare class LCDQueryClient {
4
+ req: LCDClient;
5
+ constructor({ requestClient }: {
6
+ requestClient: LCDClient;
7
+ });
8
+ connection(params: QueryConnectionRequest): Promise<QueryConnectionResponseSDKType>;
9
+ connections(params?: QueryConnectionsRequest): Promise<QueryConnectionsResponseSDKType>;
10
+ clientConnections(params: QueryClientConnectionsRequest): Promise<QueryClientConnectionsResponseSDKType>;
11
+ connectionClientState(params: QueryConnectionClientStateRequest): Promise<QueryConnectionClientStateResponseSDKType>;
12
+ connectionConsensusState(params: QueryConnectionConsensusStateRequest): Promise<QueryConnectionConsensusStateResponseSDKType>;
13
+ }