juno-network 0.2.1 → 0.2.2

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 (72) hide show
  1. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +190 -0
  2. package/main/codegen/cosmos/base/v1beta1/coin.js +268 -0
  3. package/main/codegen/cosmos/bundle.js +4 -4
  4. package/main/codegen/cosmwasm/bundle.js +4 -4
  5. package/main/codegen/ibc/bundle.js +25 -15
  6. package/main/codegen/ibc/client.js +6 -2
  7. package/main/codegen/ibc/core/client/v1/client.js +585 -0
  8. package/main/codegen/ibc/core/client/v1/genesis.js +367 -0
  9. package/main/codegen/ibc/core/client/v1/query.js +1047 -0
  10. package/main/codegen/ibc/core/client/v1/query.lcd.js +381 -0
  11. package/main/codegen/ibc/core/client/v1/query.rpc.query.js +125 -0
  12. package/main/codegen/ibc/core/client/v1/tx.amino.js +149 -0
  13. package/main/codegen/ibc/core/client/v1/tx.js +538 -0
  14. package/main/codegen/ibc/core/client/v1/tx.registry.js +160 -0
  15. package/main/codegen/ibc/core/client/v1/tx.rpc.msg.js +81 -0
  16. package/main/codegen/ibc/lcd.js +21 -6
  17. package/main/codegen/ibc/rpc.query.js +19 -6
  18. package/main/codegen/ibc/rpc.tx.js +19 -6
  19. package/main/codegen/juno/bundle.js +6 -6
  20. package/module/codegen/cosmos/base/query/v1beta1/pagination.js +189 -0
  21. package/module/codegen/cosmos/base/v1beta1/coin.js +268 -0
  22. package/module/codegen/cosmos/bundle.js +4 -4
  23. package/module/codegen/cosmwasm/bundle.js +4 -4
  24. package/module/codegen/ibc/bundle.js +20 -15
  25. package/module/codegen/ibc/client.js +4 -2
  26. package/module/codegen/ibc/core/client/v1/client.js +549 -0
  27. package/module/codegen/ibc/core/client/v1/genesis.js +287 -0
  28. package/module/codegen/ibc/core/client/v1/query.js +1029 -0
  29. package/module/codegen/ibc/core/client/v1/query.lcd.js +128 -0
  30. package/module/codegen/ibc/core/client/v1/query.rpc.query.js +69 -0
  31. package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
  32. package/module/codegen/ibc/core/client/v1/tx.js +544 -0
  33. package/module/codegen/ibc/core/client/v1/tx.registry.js +159 -0
  34. package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +41 -0
  35. package/module/codegen/ibc/lcd.js +5 -0
  36. package/module/codegen/ibc/rpc.query.js +3 -0
  37. package/module/codegen/ibc/rpc.tx.js +3 -0
  38. package/module/codegen/juno/bundle.js +6 -6
  39. package/package.json +3 -2
  40. package/types/codegen/JunoSwap.client.d.ts +1 -1
  41. package/types/codegen/JunoSwap.react-query.d.ts +11 -11
  42. package/types/codegen/JunoSwap.types.d.ts +1 -1
  43. package/types/codegen/contracts.d.ts +5 -5
  44. package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +3 -3
  45. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +79 -0
  46. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +58 -0
  47. package/types/codegen/cosmos/bundle.d.ts +758 -153
  48. package/types/codegen/cosmos/client.d.ts +6 -2
  49. package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +2 -2
  50. package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +2 -2
  51. package/types/codegen/cosmwasm/bundle.d.ts +87 -18
  52. package/types/codegen/cosmwasm/client.d.ts +8 -2
  53. package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +2 -2
  54. package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +2 -2
  55. package/types/codegen/ibc/bundle.d.ts +878 -64
  56. package/types/codegen/ibc/client.d.ts +8 -2
  57. package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +1 -1
  58. package/types/codegen/ibc/core/client/v1/client.d.ts +143 -0
  59. package/types/codegen/ibc/core/client/v1/genesis.d.ts +56 -0
  60. package/types/codegen/ibc/core/client/v1/query.d.ts +263 -0
  61. package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +15 -0
  62. package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +25 -0
  63. package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
  64. package/types/codegen/ibc/core/client/v1/tx.d.ts +131 -0
  65. package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +96 -0
  66. package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +17 -0
  67. package/types/codegen/ibc/lcd.d.ts +3 -0
  68. package/types/codegen/ibc/rpc.query.d.ts +3 -0
  69. package/types/codegen/ibc/rpc.tx.d.ts +3 -0
  70. package/types/codegen/index.d.ts +1 -1
  71. package/types/codegen/juno/bundle.d.ts +6 -6
  72. package/types/codegen/juno/mint/query.lcd.d.ts +3 -3
@@ -1,5 +1,11 @@
1
- import { OfflineSigner, GeneratedType } from "@cosmjs/proto-signing";
2
- import { SigningStargateClient } from "@cosmjs/stargate";
1
+ import { OfflineSigner, GeneratedType, Registry } from "@cosmjs/proto-signing";
2
+ import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
3
+ export declare const getSigningIbcClientOptions: ({ defaultTypes }?: {
4
+ defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
5
+ }) => {
6
+ registry: Registry;
7
+ aminoTypes: AminoTypes;
8
+ };
3
9
  export declare const getSigningIbcClient: ({ rpcEndpoint, signer, defaultTypes }: {
4
10
  rpcEndpoint: string;
5
11
  signer: OfflineSigner;
@@ -5,7 +5,7 @@ export declare class LCDQueryClient extends LCDClient {
5
5
  restEndpoint: any;
6
6
  });
7
7
  channel(params: QueryChannelRequest): Promise<QueryChannelResponse>;
8
- channels(params: QueryChannelsRequest): Promise<QueryChannelsResponse>;
8
+ channels(params?: QueryChannelsRequest): Promise<QueryChannelsResponse>;
9
9
  connectionChannels(params: QueryConnectionChannelsRequest): Promise<QueryConnectionChannelsResponse>;
10
10
  channelClientState(params: QueryChannelClientStateRequest): Promise<QueryChannelClientStateResponse>;
11
11
  channelConsensusState(params: QueryChannelConsensusStateRequest): Promise<QueryChannelConsensusStateResponse>;
@@ -0,0 +1,143 @@
1
+ import { Any } from "../../../../google/protobuf/any";
2
+ import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade";
3
+ import * as _m0 from "protobufjs/minimal";
4
+ import { DeepPartial, Long } from "@osmonauts/helpers";
5
+ /**
6
+ * IdentifiedClientState defines a client state with an additional client
7
+ * identifier field.
8
+ */
9
+ export interface IdentifiedClientState {
10
+ /** client identifier */
11
+ clientId: string;
12
+ /** client state */
13
+ clientState: Any;
14
+ }
15
+ /**
16
+ * ConsensusStateWithHeight defines a consensus state with an additional height
17
+ * field.
18
+ */
19
+ export interface ConsensusStateWithHeight {
20
+ /** consensus state height */
21
+ height: Height;
22
+ /** consensus state */
23
+ consensusState: Any;
24
+ }
25
+ /**
26
+ * ClientConsensusStates defines all the stored consensus states for a given
27
+ * client.
28
+ */
29
+ export interface ClientConsensusStates {
30
+ /** client identifier */
31
+ clientId: string;
32
+ /** consensus states and their heights associated with the client */
33
+ consensusStates: ConsensusStateWithHeight[];
34
+ }
35
+ /**
36
+ * ClientUpdateProposal is a governance proposal. If it passes, the substitute
37
+ * client's latest consensus state is copied over to the subject client. The proposal
38
+ * handler may fail if the subject and the substitute do not match in client and
39
+ * chain parameters (with exception to latest height, frozen height, and chain-id).
40
+ */
41
+ export interface ClientUpdateProposal {
42
+ /** the title of the update proposal */
43
+ title: string;
44
+ /** the description of the proposal */
45
+ description: string;
46
+ /** the client identifier for the client to be updated if the proposal passes */
47
+ subjectClientId: string;
48
+ /**
49
+ * the substitute client identifier for the client standing in for the subject
50
+ * client
51
+ */
52
+ substituteClientId: string;
53
+ }
54
+ /**
55
+ * UpgradeProposal is a gov Content type for initiating an IBC breaking
56
+ * upgrade.
57
+ */
58
+ export interface UpgradeProposal {
59
+ title: string;
60
+ description: string;
61
+ plan: Plan;
62
+ /**
63
+ * An UpgradedClientState must be provided to perform an IBC breaking upgrade.
64
+ * This will make the chain commit to the correct upgraded (self) client state
65
+ * before the upgrade occurs, so that connecting chains can verify that the
66
+ * new upgraded client is valid by verifying a proof on the previous version
67
+ * of the chain. This will allow IBC connections to persist smoothly across
68
+ * planned chain upgrades
69
+ */
70
+ upgradedClientState: Any;
71
+ }
72
+ /**
73
+ * Height is a monotonically increasing data type
74
+ * that can be compared against another Height for the purposes of updating and
75
+ * freezing clients
76
+ *
77
+ * Normally the RevisionHeight is incremented at each height while keeping
78
+ * RevisionNumber the same. However some consensus algorithms may choose to
79
+ * reset the height in certain conditions e.g. hard forks, state-machine
80
+ * breaking changes In these cases, the RevisionNumber is incremented so that
81
+ * height continues to be monitonically increasing even as the RevisionHeight
82
+ * gets reset
83
+ */
84
+ export interface Height {
85
+ /** the revision that the client is currently on */
86
+ revisionNumber: Long;
87
+ /** the height within the given revision */
88
+ revisionHeight: Long;
89
+ }
90
+ /** Params defines the set of IBC light client parameters. */
91
+ export interface Params {
92
+ /** allowed_clients defines the list of allowed client state types. */
93
+ allowedClients: string[];
94
+ }
95
+ export declare const IdentifiedClientState: {
96
+ encode(message: IdentifiedClientState, writer?: _m0.Writer): _m0.Writer;
97
+ decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedClientState;
98
+ fromJSON(object: any): IdentifiedClientState;
99
+ toJSON(message: IdentifiedClientState): unknown;
100
+ fromPartial(object: DeepPartial<IdentifiedClientState>): IdentifiedClientState;
101
+ };
102
+ export declare const ConsensusStateWithHeight: {
103
+ encode(message: ConsensusStateWithHeight, writer?: _m0.Writer): _m0.Writer;
104
+ decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusStateWithHeight;
105
+ fromJSON(object: any): ConsensusStateWithHeight;
106
+ toJSON(message: ConsensusStateWithHeight): unknown;
107
+ fromPartial(object: DeepPartial<ConsensusStateWithHeight>): ConsensusStateWithHeight;
108
+ };
109
+ export declare const ClientConsensusStates: {
110
+ encode(message: ClientConsensusStates, writer?: _m0.Writer): _m0.Writer;
111
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClientConsensusStates;
112
+ fromJSON(object: any): ClientConsensusStates;
113
+ toJSON(message: ClientConsensusStates): unknown;
114
+ fromPartial(object: DeepPartial<ClientConsensusStates>): ClientConsensusStates;
115
+ };
116
+ export declare const ClientUpdateProposal: {
117
+ encode(message: ClientUpdateProposal, writer?: _m0.Writer): _m0.Writer;
118
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClientUpdateProposal;
119
+ fromJSON(object: any): ClientUpdateProposal;
120
+ toJSON(message: ClientUpdateProposal): unknown;
121
+ fromPartial(object: DeepPartial<ClientUpdateProposal>): ClientUpdateProposal;
122
+ };
123
+ export declare const UpgradeProposal: {
124
+ encode(message: UpgradeProposal, writer?: _m0.Writer): _m0.Writer;
125
+ decode(input: _m0.Reader | Uint8Array, length?: number): UpgradeProposal;
126
+ fromJSON(object: any): UpgradeProposal;
127
+ toJSON(message: UpgradeProposal): unknown;
128
+ fromPartial(object: DeepPartial<UpgradeProposal>): UpgradeProposal;
129
+ };
130
+ export declare const Height: {
131
+ encode(message: Height, writer?: _m0.Writer): _m0.Writer;
132
+ decode(input: _m0.Reader | Uint8Array, length?: number): Height;
133
+ fromJSON(object: any): Height;
134
+ toJSON(message: Height): unknown;
135
+ fromPartial(object: DeepPartial<Height>): Height;
136
+ };
137
+ export declare const Params: {
138
+ encode(message: Params, writer?: _m0.Writer): _m0.Writer;
139
+ decode(input: _m0.Reader | Uint8Array, length?: number): Params;
140
+ fromJSON(object: any): Params;
141
+ toJSON(message: Params): unknown;
142
+ fromPartial(object: DeepPartial<Params>): Params;
143
+ };
@@ -0,0 +1,56 @@
1
+ import { IdentifiedClientState, ClientConsensusStates, Params } from "./client";
2
+ import * as _m0 from "protobufjs/minimal";
3
+ import { Long, DeepPartial } from "@osmonauts/helpers";
4
+ /** GenesisState defines the ibc client submodule's genesis state. */
5
+ export interface GenesisState {
6
+ /** client states with their corresponding identifiers */
7
+ clients: IdentifiedClientState[];
8
+ /** consensus states from each client */
9
+ clientsConsensus: ClientConsensusStates[];
10
+ /** metadata from each client */
11
+ clientsMetadata: IdentifiedGenesisMetadata[];
12
+ params: Params;
13
+ /** create localhost on initialization */
14
+ createLocalhost: boolean;
15
+ /** the sequence for the next generated client identifier */
16
+ nextClientSequence: Long;
17
+ }
18
+ /**
19
+ * GenesisMetadata defines the genesis type for metadata that clients may return
20
+ * with ExportMetadata
21
+ */
22
+ export interface GenesisMetadata {
23
+ /** store key of metadata without clientID-prefix */
24
+ key: Uint8Array;
25
+ /** metadata value */
26
+ value: Uint8Array;
27
+ }
28
+ /**
29
+ * IdentifiedGenesisMetadata has the client metadata with the corresponding
30
+ * client id.
31
+ */
32
+ export interface IdentifiedGenesisMetadata {
33
+ clientId: string;
34
+ clientMetadata: GenesisMetadata[];
35
+ }
36
+ export declare const GenesisState: {
37
+ encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
38
+ decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
39
+ fromJSON(object: any): GenesisState;
40
+ toJSON(message: GenesisState): unknown;
41
+ fromPartial(object: DeepPartial<GenesisState>): GenesisState;
42
+ };
43
+ export declare const GenesisMetadata: {
44
+ encode(message: GenesisMetadata, writer?: _m0.Writer): _m0.Writer;
45
+ decode(input: _m0.Reader | Uint8Array, length?: number): GenesisMetadata;
46
+ fromJSON(object: any): GenesisMetadata;
47
+ toJSON(message: GenesisMetadata): unknown;
48
+ fromPartial(object: DeepPartial<GenesisMetadata>): GenesisMetadata;
49
+ };
50
+ export declare const IdentifiedGenesisMetadata: {
51
+ encode(message: IdentifiedGenesisMetadata, writer?: _m0.Writer): _m0.Writer;
52
+ decode(input: _m0.Reader | Uint8Array, length?: number): IdentifiedGenesisMetadata;
53
+ fromJSON(object: any): IdentifiedGenesisMetadata;
54
+ toJSON(message: IdentifiedGenesisMetadata): unknown;
55
+ fromPartial(object: DeepPartial<IdentifiedGenesisMetadata>): IdentifiedGenesisMetadata;
56
+ };
@@ -0,0 +1,263 @@
1
+ import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
2
+ import { Any } from "../../../../google/protobuf/any";
3
+ import { Height, IdentifiedClientState, ConsensusStateWithHeight, Params } from "./client";
4
+ import * as _m0 from "protobufjs/minimal";
5
+ import { DeepPartial, Long } from "@osmonauts/helpers";
6
+ /**
7
+ * QueryClientStateRequest is the request type for the Query/ClientState RPC
8
+ * method
9
+ */
10
+ export interface QueryClientStateRequest {
11
+ /** client state unique identifier */
12
+ clientId: string;
13
+ }
14
+ /**
15
+ * QueryClientStateResponse is the response type for the Query/ClientState RPC
16
+ * method. Besides the client state, it includes a proof and the height from
17
+ * which the proof was retrieved.
18
+ */
19
+ export interface QueryClientStateResponse {
20
+ /** client state associated with the request identifier */
21
+ clientState: Any;
22
+ /** merkle proof of existence */
23
+ proof: Uint8Array;
24
+ /** height at which the proof was retrieved */
25
+ proofHeight: Height;
26
+ }
27
+ /**
28
+ * QueryClientStatesRequest is the request type for the Query/ClientStates RPC
29
+ * method
30
+ */
31
+ export interface QueryClientStatesRequest {
32
+ /** pagination request */
33
+ pagination: PageRequest;
34
+ }
35
+ /**
36
+ * QueryClientStatesResponse is the response type for the Query/ClientStates RPC
37
+ * method.
38
+ */
39
+ export interface QueryClientStatesResponse {
40
+ /** list of stored ClientStates of the chain. */
41
+ clientStates: IdentifiedClientState[];
42
+ /** pagination response */
43
+ pagination: PageResponse;
44
+ }
45
+ /**
46
+ * QueryConsensusStateRequest is the request type for the Query/ConsensusState
47
+ * RPC method. Besides the consensus state, it includes a proof and the height
48
+ * from which the proof was retrieved.
49
+ */
50
+ export interface QueryConsensusStateRequest {
51
+ /** client identifier */
52
+ clientId: string;
53
+ /** consensus state revision number */
54
+ revisionNumber: Long;
55
+ /** consensus state revision height */
56
+ revisionHeight: Long;
57
+ /**
58
+ * latest_height overrrides the height field and queries the latest stored
59
+ * ConsensusState
60
+ */
61
+ latestHeight: boolean;
62
+ }
63
+ /**
64
+ * QueryConsensusStateResponse is the response type for the Query/ConsensusState
65
+ * RPC method
66
+ */
67
+ export interface QueryConsensusStateResponse {
68
+ /** consensus state associated with the client identifier at the given height */
69
+ consensusState: Any;
70
+ /** merkle proof of existence */
71
+ proof: Uint8Array;
72
+ /** height at which the proof was retrieved */
73
+ proofHeight: Height;
74
+ }
75
+ /**
76
+ * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
77
+ * RPC method.
78
+ */
79
+ export interface QueryConsensusStatesRequest {
80
+ /** client identifier */
81
+ clientId: string;
82
+ /** pagination request */
83
+ pagination: PageRequest;
84
+ }
85
+ /**
86
+ * QueryConsensusStatesResponse is the response type for the
87
+ * Query/ConsensusStates RPC method
88
+ */
89
+ export interface QueryConsensusStatesResponse {
90
+ /** consensus states associated with the identifier */
91
+ consensusStates: ConsensusStateWithHeight[];
92
+ /** pagination response */
93
+ pagination: PageResponse;
94
+ }
95
+ /**
96
+ * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC
97
+ * method
98
+ */
99
+ export interface QueryClientStatusRequest {
100
+ /** client unique identifier */
101
+ clientId: string;
102
+ }
103
+ /**
104
+ * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC
105
+ * method. It returns the current status of the IBC client.
106
+ */
107
+ export interface QueryClientStatusResponse {
108
+ status: string;
109
+ }
110
+ /**
111
+ * QueryClientParamsRequest is the request type for the Query/ClientParams RPC
112
+ * method.
113
+ */
114
+ export interface QueryClientParamsRequest {
115
+ }
116
+ /**
117
+ * QueryClientParamsResponse is the response type for the Query/ClientParams RPC
118
+ * method.
119
+ */
120
+ export interface QueryClientParamsResponse {
121
+ /** params defines the parameters of the module. */
122
+ params: Params;
123
+ }
124
+ /**
125
+ * QueryUpgradedClientStateRequest is the request type for the
126
+ * Query/UpgradedClientState RPC method
127
+ */
128
+ export interface QueryUpgradedClientStateRequest {
129
+ }
130
+ /**
131
+ * QueryUpgradedClientStateResponse is the response type for the
132
+ * Query/UpgradedClientState RPC method.
133
+ */
134
+ export interface QueryUpgradedClientStateResponse {
135
+ /** client state associated with the request identifier */
136
+ upgradedClientState: Any;
137
+ }
138
+ /**
139
+ * QueryUpgradedConsensusStateRequest is the request type for the
140
+ * Query/UpgradedConsensusState RPC method
141
+ */
142
+ export interface QueryUpgradedConsensusStateRequest {
143
+ }
144
+ /**
145
+ * QueryUpgradedConsensusStateResponse is the response type for the
146
+ * Query/UpgradedConsensusState RPC method.
147
+ */
148
+ export interface QueryUpgradedConsensusStateResponse {
149
+ /** Consensus state associated with the request identifier */
150
+ upgradedConsensusState: Any;
151
+ }
152
+ export declare const QueryClientStateRequest: {
153
+ encode(message: QueryClientStateRequest, writer?: _m0.Writer): _m0.Writer;
154
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStateRequest;
155
+ fromJSON(object: any): QueryClientStateRequest;
156
+ toJSON(message: QueryClientStateRequest): unknown;
157
+ fromPartial(object: DeepPartial<QueryClientStateRequest>): QueryClientStateRequest;
158
+ };
159
+ export declare const QueryClientStateResponse: {
160
+ encode(message: QueryClientStateResponse, writer?: _m0.Writer): _m0.Writer;
161
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStateResponse;
162
+ fromJSON(object: any): QueryClientStateResponse;
163
+ toJSON(message: QueryClientStateResponse): unknown;
164
+ fromPartial(object: DeepPartial<QueryClientStateResponse>): QueryClientStateResponse;
165
+ };
166
+ export declare const QueryClientStatesRequest: {
167
+ encode(message: QueryClientStatesRequest, writer?: _m0.Writer): _m0.Writer;
168
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatesRequest;
169
+ fromJSON(object: any): QueryClientStatesRequest;
170
+ toJSON(message: QueryClientStatesRequest): unknown;
171
+ fromPartial(object: DeepPartial<QueryClientStatesRequest>): QueryClientStatesRequest;
172
+ };
173
+ export declare const QueryClientStatesResponse: {
174
+ encode(message: QueryClientStatesResponse, writer?: _m0.Writer): _m0.Writer;
175
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatesResponse;
176
+ fromJSON(object: any): QueryClientStatesResponse;
177
+ toJSON(message: QueryClientStatesResponse): unknown;
178
+ fromPartial(object: DeepPartial<QueryClientStatesResponse>): QueryClientStatesResponse;
179
+ };
180
+ export declare const QueryConsensusStateRequest: {
181
+ encode(message: QueryConsensusStateRequest, writer?: _m0.Writer): _m0.Writer;
182
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateRequest;
183
+ fromJSON(object: any): QueryConsensusStateRequest;
184
+ toJSON(message: QueryConsensusStateRequest): unknown;
185
+ fromPartial(object: DeepPartial<QueryConsensusStateRequest>): QueryConsensusStateRequest;
186
+ };
187
+ export declare const QueryConsensusStateResponse: {
188
+ encode(message: QueryConsensusStateResponse, writer?: _m0.Writer): _m0.Writer;
189
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateResponse;
190
+ fromJSON(object: any): QueryConsensusStateResponse;
191
+ toJSON(message: QueryConsensusStateResponse): unknown;
192
+ fromPartial(object: DeepPartial<QueryConsensusStateResponse>): QueryConsensusStateResponse;
193
+ };
194
+ export declare const QueryConsensusStatesRequest: {
195
+ encode(message: QueryConsensusStatesRequest, writer?: _m0.Writer): _m0.Writer;
196
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStatesRequest;
197
+ fromJSON(object: any): QueryConsensusStatesRequest;
198
+ toJSON(message: QueryConsensusStatesRequest): unknown;
199
+ fromPartial(object: DeepPartial<QueryConsensusStatesRequest>): QueryConsensusStatesRequest;
200
+ };
201
+ export declare const QueryConsensusStatesResponse: {
202
+ encode(message: QueryConsensusStatesResponse, writer?: _m0.Writer): _m0.Writer;
203
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStatesResponse;
204
+ fromJSON(object: any): QueryConsensusStatesResponse;
205
+ toJSON(message: QueryConsensusStatesResponse): unknown;
206
+ fromPartial(object: DeepPartial<QueryConsensusStatesResponse>): QueryConsensusStatesResponse;
207
+ };
208
+ export declare const QueryClientStatusRequest: {
209
+ encode(message: QueryClientStatusRequest, writer?: _m0.Writer): _m0.Writer;
210
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatusRequest;
211
+ fromJSON(object: any): QueryClientStatusRequest;
212
+ toJSON(message: QueryClientStatusRequest): unknown;
213
+ fromPartial(object: DeepPartial<QueryClientStatusRequest>): QueryClientStatusRequest;
214
+ };
215
+ export declare const QueryClientStatusResponse: {
216
+ encode(message: QueryClientStatusResponse, writer?: _m0.Writer): _m0.Writer;
217
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatusResponse;
218
+ fromJSON(object: any): QueryClientStatusResponse;
219
+ toJSON(message: QueryClientStatusResponse): unknown;
220
+ fromPartial(object: DeepPartial<QueryClientStatusResponse>): QueryClientStatusResponse;
221
+ };
222
+ export declare const QueryClientParamsRequest: {
223
+ encode(_: QueryClientParamsRequest, writer?: _m0.Writer): _m0.Writer;
224
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientParamsRequest;
225
+ fromJSON(_: any): QueryClientParamsRequest;
226
+ toJSON(_: QueryClientParamsRequest): unknown;
227
+ fromPartial(_: DeepPartial<QueryClientParamsRequest>): QueryClientParamsRequest;
228
+ };
229
+ export declare const QueryClientParamsResponse: {
230
+ encode(message: QueryClientParamsResponse, writer?: _m0.Writer): _m0.Writer;
231
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientParamsResponse;
232
+ fromJSON(object: any): QueryClientParamsResponse;
233
+ toJSON(message: QueryClientParamsResponse): unknown;
234
+ fromPartial(object: DeepPartial<QueryClientParamsResponse>): QueryClientParamsResponse;
235
+ };
236
+ export declare const QueryUpgradedClientStateRequest: {
237
+ encode(_: QueryUpgradedClientStateRequest, writer?: _m0.Writer): _m0.Writer;
238
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedClientStateRequest;
239
+ fromJSON(_: any): QueryUpgradedClientStateRequest;
240
+ toJSON(_: QueryUpgradedClientStateRequest): unknown;
241
+ fromPartial(_: DeepPartial<QueryUpgradedClientStateRequest>): QueryUpgradedClientStateRequest;
242
+ };
243
+ export declare const QueryUpgradedClientStateResponse: {
244
+ encode(message: QueryUpgradedClientStateResponse, writer?: _m0.Writer): _m0.Writer;
245
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedClientStateResponse;
246
+ fromJSON(object: any): QueryUpgradedClientStateResponse;
247
+ toJSON(message: QueryUpgradedClientStateResponse): unknown;
248
+ fromPartial(object: DeepPartial<QueryUpgradedClientStateResponse>): QueryUpgradedClientStateResponse;
249
+ };
250
+ export declare const QueryUpgradedConsensusStateRequest: {
251
+ encode(_: QueryUpgradedConsensusStateRequest, writer?: _m0.Writer): _m0.Writer;
252
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest;
253
+ fromJSON(_: any): QueryUpgradedConsensusStateRequest;
254
+ toJSON(_: QueryUpgradedConsensusStateRequest): unknown;
255
+ fromPartial(_: DeepPartial<QueryUpgradedConsensusStateRequest>): QueryUpgradedConsensusStateRequest;
256
+ };
257
+ export declare const QueryUpgradedConsensusStateResponse: {
258
+ encode(message: QueryUpgradedConsensusStateResponse, writer?: _m0.Writer): _m0.Writer;
259
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse;
260
+ fromJSON(object: any): QueryUpgradedConsensusStateResponse;
261
+ toJSON(message: QueryUpgradedConsensusStateResponse): unknown;
262
+ fromPartial(object: DeepPartial<QueryUpgradedConsensusStateResponse>): QueryUpgradedConsensusStateResponse;
263
+ };
@@ -0,0 +1,15 @@
1
+ import { LCDClient } from "@osmonauts/lcd";
2
+ import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query";
3
+ export declare class LCDQueryClient extends LCDClient {
4
+ constructor({ restEndpoint }: {
5
+ restEndpoint: any;
6
+ });
7
+ clientState(params: QueryClientStateRequest): Promise<QueryClientStateResponse>;
8
+ clientStates(params?: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
9
+ consensusState(params: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
10
+ consensusStates(params: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
11
+ clientStatus(params: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
12
+ clientParams(_params?: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
13
+ upgradedClientState(_params?: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
14
+ upgradedConsensusState(_params?: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
15
+ }
@@ -0,0 +1,25 @@
1
+ import { Rpc } from "@osmonauts/helpers";
2
+ import { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query";
3
+ /** Query defines the RPC service */
4
+ export interface Query {
5
+ clientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse>;
6
+ clientStates(request: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
7
+ consensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
8
+ consensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
9
+ clientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
10
+ clientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
11
+ upgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
12
+ upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
13
+ }
14
+ export declare class QueryClientImpl implements Query {
15
+ private readonly rpc;
16
+ constructor(rpc: Rpc);
17
+ clientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse>;
18
+ clientStates(request: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
19
+ consensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
20
+ consensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
21
+ clientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
22
+ clientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
23
+ upgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
24
+ upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
25
+ }
@@ -0,0 +1,77 @@
1
+ import { AminoMsg } from "@cosmjs/amino";
2
+ import { MsgCreateClient, MsgUpdateClient, MsgUpgradeClient, MsgSubmitMisbehaviour } from "./tx";
3
+ export interface AminoMsgCreateClient extends AminoMsg {
4
+ type: "cosmos-sdk/MsgCreateClient";
5
+ value: {
6
+ client_state: {
7
+ type_url: string;
8
+ value: Uint8Array;
9
+ };
10
+ consensus_state: {
11
+ type_url: string;
12
+ value: Uint8Array;
13
+ };
14
+ signer: string;
15
+ };
16
+ }
17
+ export interface AminoMsgUpdateClient extends AminoMsg {
18
+ type: "cosmos-sdk/MsgUpdateClient";
19
+ value: {
20
+ client_id: string;
21
+ header: {
22
+ type_url: string;
23
+ value: Uint8Array;
24
+ };
25
+ signer: string;
26
+ };
27
+ }
28
+ export interface AminoMsgUpgradeClient extends AminoMsg {
29
+ type: "cosmos-sdk/MsgUpgradeClient";
30
+ value: {
31
+ client_id: string;
32
+ client_state: {
33
+ type_url: string;
34
+ value: Uint8Array;
35
+ };
36
+ consensus_state: {
37
+ type_url: string;
38
+ value: Uint8Array;
39
+ };
40
+ proof_upgrade_client: Uint8Array;
41
+ proof_upgrade_consensus_state: Uint8Array;
42
+ signer: string;
43
+ };
44
+ }
45
+ export interface AminoMsgSubmitMisbehaviour extends AminoMsg {
46
+ type: "cosmos-sdk/MsgSubmitMisbehaviour";
47
+ value: {
48
+ client_id: string;
49
+ misbehaviour: {
50
+ type_url: string;
51
+ value: Uint8Array;
52
+ };
53
+ signer: string;
54
+ };
55
+ }
56
+ export declare const AminoConverter: {
57
+ "/ibc.core.client.v1.MsgCreateClient": {
58
+ aminoType: string;
59
+ toAmino: ({ clientState, consensusState, signer }: MsgCreateClient) => AminoMsgCreateClient["value"];
60
+ fromAmino: ({ client_state, consensus_state, signer }: AminoMsgCreateClient["value"]) => MsgCreateClient;
61
+ };
62
+ "/ibc.core.client.v1.MsgUpdateClient": {
63
+ aminoType: string;
64
+ toAmino: ({ clientId, header, signer }: MsgUpdateClient) => AminoMsgUpdateClient["value"];
65
+ fromAmino: ({ client_id, header, signer }: AminoMsgUpdateClient["value"]) => MsgUpdateClient;
66
+ };
67
+ "/ibc.core.client.v1.MsgUpgradeClient": {
68
+ aminoType: string;
69
+ toAmino: ({ clientId, clientState, consensusState, proofUpgradeClient, proofUpgradeConsensusState, signer }: MsgUpgradeClient) => AminoMsgUpgradeClient["value"];
70
+ fromAmino: ({ client_id, client_state, consensus_state, proof_upgrade_client, proof_upgrade_consensus_state, signer }: AminoMsgUpgradeClient["value"]) => MsgUpgradeClient;
71
+ };
72
+ "/ibc.core.client.v1.MsgSubmitMisbehaviour": {
73
+ aminoType: string;
74
+ toAmino: ({ clientId, misbehaviour, signer }: MsgSubmitMisbehaviour) => AminoMsgSubmitMisbehaviour["value"];
75
+ fromAmino: ({ client_id, misbehaviour, signer }: AminoMsgSubmitMisbehaviour["value"]) => MsgSubmitMisbehaviour;
76
+ };
77
+ };