juno-network 0.2.5 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +10 -26
  3. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +33 -89
  4. package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +5 -13
  5. package/main/codegen/cosmos/gov/v1/query.lcd.js +31 -79
  6. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +31 -79
  7. package/main/codegen/cosmos/group/v1/query.lcd.js +29 -73
  8. package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +25 -65
  9. package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +5 -13
  10. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +38 -106
  11. package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +5 -13
  12. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +18 -46
  13. package/main/codegen/ibc/core/channel/v1/query.lcd.js +51 -191
  14. package/main/codegen/ibc/core/client/v1/query.lcd.js +16 -48
  15. package/main/codegen/ibc/core/connection/v1/query.lcd.js +20 -60
  16. package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +2 -18
  17. package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +6 -62
  18. package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +1 -9
  19. package/module/codegen/cosmos/gov/v1/query.lcd.js +5 -53
  20. package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +5 -53
  21. package/module/codegen/cosmos/group/v1/query.lcd.js +4 -48
  22. package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +5 -45
  23. package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +1 -9
  24. package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +4 -72
  25. package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +1 -9
  26. package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +3 -31
  27. package/module/codegen/ibc/core/channel/v1/query.lcd.js +9 -149
  28. package/module/codegen/ibc/core/client/v1/query.lcd.js +2 -34
  29. package/module/codegen/ibc/core/connection/v1/query.lcd.js +4 -44
  30. package/module/codegen/index.js +1 -1
  31. package/package.json +5 -5
@@ -31,16 +31,8 @@ export class LCDQueryClient extends LCDClient {
31
31
 
32
32
 
33
33
  async validator(params) {
34
- const options = {
35
- params: {}
36
- };
37
-
38
- if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
39
- options.params.validator_addr = params.validatorAddr;
40
- }
41
-
42
34
  const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}`;
43
- return await this.request(endpoint, options);
35
+ return await this.request(endpoint);
44
36
  }
45
37
  /* ValidatorDelegations queries delegate info for given validator. */
46
38
 
@@ -50,10 +42,6 @@ export class LCDQueryClient extends LCDClient {
50
42
  params: {}
51
43
  };
52
44
 
53
- if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
54
- options.params.validator_addr = params.validatorAddr;
55
- }
56
-
57
45
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
58
46
  setPaginationParams(options, params.pagination);
59
47
  }
@@ -69,10 +57,6 @@ export class LCDQueryClient extends LCDClient {
69
57
  params: {}
70
58
  };
71
59
 
72
- if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
73
- options.params.validator_addr = params.validatorAddr;
74
- }
75
-
76
60
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
77
61
  setPaginationParams(options, params.pagination);
78
62
  }
@@ -84,40 +68,16 @@ export class LCDQueryClient extends LCDClient {
84
68
 
85
69
 
86
70
  async delegation(params) {
87
- const options = {
88
- params: {}
89
- };
90
-
91
- if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
92
- options.params.delegator_addr = params.delegatorAddr;
93
- }
94
-
95
- if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
96
- options.params.validator_addr = params.validatorAddr;
97
- }
98
-
99
71
  const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}delegations/${params.delegatorAddr}`;
100
- return await this.request(endpoint, options);
72
+ return await this.request(endpoint);
101
73
  }
102
74
  /* UnbondingDelegation queries unbonding info for given validator delegator
103
75
  pair. */
104
76
 
105
77
 
106
78
  async unbondingDelegation(params) {
107
- const options = {
108
- params: {}
109
- };
110
-
111
- if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
112
- options.params.delegator_addr = params.delegatorAddr;
113
- }
114
-
115
- if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
116
- options.params.validator_addr = params.validatorAddr;
117
- }
118
-
119
79
  const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}/unbonding_delegation`;
120
- return await this.request(endpoint, options);
80
+ return await this.request(endpoint);
121
81
  }
122
82
  /* DelegatorDelegations queries all delegations of a given delegator address. */
123
83
 
@@ -127,10 +87,6 @@ export class LCDQueryClient extends LCDClient {
127
87
  params: {}
128
88
  };
129
89
 
130
- if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
131
- options.params.delegator_addr = params.delegatorAddr;
132
- }
133
-
134
90
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
135
91
  setPaginationParams(options, params.pagination);
136
92
  }
@@ -147,10 +103,6 @@ export class LCDQueryClient extends LCDClient {
147
103
  params: {}
148
104
  };
149
105
 
150
- if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
151
- options.params.delegator_addr = params.delegatorAddr;
152
- }
153
-
154
106
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
155
107
  setPaginationParams(options, params.pagination);
156
108
  }
@@ -166,10 +118,6 @@ export class LCDQueryClient extends LCDClient {
166
118
  params: {}
167
119
  };
168
120
 
169
- if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
170
- options.params.delegator_addr = params.delegatorAddr;
171
- }
172
-
173
121
  if (typeof (params === null || params === void 0 ? void 0 : params.srcValidatorAddr) !== "undefined") {
174
122
  options.params.src_validator_addr = params.srcValidatorAddr;
175
123
  }
@@ -194,10 +142,6 @@ export class LCDQueryClient extends LCDClient {
194
142
  params: {}
195
143
  };
196
144
 
197
- if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
198
- options.params.delegator_addr = params.delegatorAddr;
199
- }
200
-
201
145
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
202
146
  setPaginationParams(options, params.pagination);
203
147
  }
@@ -210,20 +154,8 @@ export class LCDQueryClient extends LCDClient {
210
154
 
211
155
 
212
156
  async delegatorValidator(params) {
213
- const options = {
214
- params: {}
215
- };
216
-
217
- if (typeof (params === null || params === void 0 ? void 0 : params.delegatorAddr) !== "undefined") {
218
- options.params.delegator_addr = params.delegatorAddr;
219
- }
220
-
221
- if (typeof (params === null || params === void 0 ? void 0 : params.validatorAddr) !== "undefined") {
222
- options.params.validator_addr = params.validatorAddr;
223
- }
224
-
225
157
  const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}validators/${params.validatorAddr}`;
226
- return await this.request(endpoint, options);
158
+ return await this.request(endpoint);
227
159
  }
228
160
  /* HistoricalInfo queries the historical info for given height. */
229
161
 
@@ -30,16 +30,8 @@ export class LCDQueryClient extends LCDClient {
30
30
 
31
31
 
32
32
  async upgradedConsensusState(params) {
33
- const options = {
34
- params: {}
35
- };
36
-
37
- if (typeof (params === null || params === void 0 ? void 0 : params.lastHeight) !== "undefined") {
38
- options.params.last_height = params.lastHeight;
39
- }
40
-
41
33
  const endpoint = `cosmos/upgrade/v1beta1/upgraded_consensus_state/${params.lastHeight}`;
42
- return await this.request(endpoint, options);
34
+ return await this.request(endpoint);
43
35
  }
44
36
  /* ModuleVersions queries the list of module versions from state.
45
37
 
@@ -38,10 +38,6 @@ export class LCDQueryClient extends LCDClient {
38
38
  params: {}
39
39
  };
40
40
 
41
- if (typeof (params === null || params === void 0 ? void 0 : params.codeId) !== "undefined") {
42
- options.params.code_id = params.codeId;
43
- }
44
-
45
41
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
46
42
  setPaginationParams(options, params.pagination);
47
43
  }
@@ -68,46 +64,22 @@ export class LCDQueryClient extends LCDClient {
68
64
 
69
65
 
70
66
  async rawContractState(params) {
71
- const options = {
72
- params: {}
73
- };
74
-
75
- if (typeof (params === null || params === void 0 ? void 0 : params.queryData) !== "undefined") {
76
- options.params.query_data = params.queryData;
77
- }
78
-
79
67
  const endpoint = `wasm/v1/contract/${params.address}raw/${params.queryData}`;
80
- return await this.request(endpoint, options);
68
+ return await this.request(endpoint);
81
69
  }
82
70
  /* SmartContractState get smart query result from the contract */
83
71
 
84
72
 
85
73
  async smartContractState(params) {
86
- const options = {
87
- params: {}
88
- };
89
-
90
- if (typeof (params === null || params === void 0 ? void 0 : params.queryData) !== "undefined") {
91
- options.params.query_data = params.queryData;
92
- }
93
-
94
74
  const endpoint = `wasm/v1/contract/${params.address}smart/${params.queryData}`;
95
- return await this.request(endpoint, options);
75
+ return await this.request(endpoint);
96
76
  }
97
77
  /* Code gets the binary code and metadata for a singe wasm code */
98
78
 
99
79
 
100
80
  async code(params) {
101
- const options = {
102
- params: {}
103
- };
104
-
105
- if (typeof (params === null || params === void 0 ? void 0 : params.codeId) !== "undefined") {
106
- options.params.code_id = params.codeId;
107
- }
108
-
109
81
  const endpoint = `cosmwasm/wasm/v1/code/${params.codeId}`;
110
- return await this.request(endpoint, options);
82
+ return await this.request(endpoint);
111
83
  }
112
84
  /* Codes gets the metadata for all stored wasm codes */
113
85
 
@@ -12,20 +12,8 @@ export class LCDQueryClient extends LCDClient {
12
12
 
13
13
 
14
14
  async channel(params) {
15
- const options = {
16
- params: {}
17
- };
18
-
19
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
20
- options.params.port_id = params.portId;
21
- }
22
-
23
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
24
- options.params.channel_id = params.channelId;
25
- }
26
-
27
15
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}ports/${params.portId}`;
28
- return await this.request(endpoint, options);
16
+ return await this.request(endpoint);
29
17
  }
30
18
  /* Channels queries all the IBC channels of a chain. */
31
19
 
@@ -65,67 +53,23 @@ export class LCDQueryClient extends LCDClient {
65
53
 
66
54
 
67
55
  async channelClientState(params) {
68
- const options = {
69
- params: {}
70
- };
71
-
72
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
73
- options.params.port_id = params.portId;
74
- }
75
-
76
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
77
- options.params.channel_id = params.channelId;
78
- }
79
-
80
56
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/client_state`;
81
- return await this.request(endpoint, options);
57
+ return await this.request(endpoint);
82
58
  }
83
59
  /* ChannelConsensusState queries for the consensus state for the channel
84
60
  associated with the provided channel identifiers. */
85
61
 
86
62
 
87
63
  async channelConsensusState(params) {
88
- const options = {
89
- params: {}
90
- };
91
-
92
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
93
- options.params.port_id = params.portId;
94
- }
95
-
96
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
97
- options.params.channel_id = params.channelId;
98
- }
99
-
100
- if (typeof (params === null || params === void 0 ? void 0 : params.revisionNumber) !== "undefined") {
101
- options.params.revision_number = params.revisionNumber;
102
- }
103
-
104
- if (typeof (params === null || params === void 0 ? void 0 : params.revisionHeight) !== "undefined") {
105
- options.params.revision_height = params.revisionHeight;
106
- }
107
-
108
64
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
109
- return await this.request(endpoint, options);
65
+ return await this.request(endpoint);
110
66
  }
111
67
  /* PacketCommitment queries a stored packet commitment hash. */
112
68
 
113
69
 
114
70
  async packetCommitment(params) {
115
- const options = {
116
- params: {}
117
- };
118
-
119
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
120
- options.params.port_id = params.portId;
121
- }
122
-
123
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
124
- options.params.channel_id = params.channelId;
125
- }
126
-
127
71
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_commitments/${params.sequence}`;
128
- return await this.request(endpoint, options);
72
+ return await this.request(endpoint);
129
73
  }
130
74
  /* PacketCommitments returns all the packet commitments hashes associated
131
75
  with a channel. */
@@ -136,14 +80,6 @@ export class LCDQueryClient extends LCDClient {
136
80
  params: {}
137
81
  };
138
82
 
139
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
140
- options.params.port_id = params.portId;
141
- }
142
-
143
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
144
- options.params.channel_id = params.channelId;
145
- }
146
-
147
83
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
148
84
  setPaginationParams(options, params.pagination);
149
85
  }
@@ -156,39 +92,15 @@ export class LCDQueryClient extends LCDClient {
156
92
 
157
93
 
158
94
  async packetReceipt(params) {
159
- const options = {
160
- params: {}
161
- };
162
-
163
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
164
- options.params.port_id = params.portId;
165
- }
166
-
167
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
168
- options.params.channel_id = params.channelId;
169
- }
170
-
171
95
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_receipts/${params.sequence}`;
172
- return await this.request(endpoint, options);
96
+ return await this.request(endpoint);
173
97
  }
174
98
  /* PacketAcknowledgement queries a stored packet acknowledgement hash. */
175
99
 
176
100
 
177
101
  async packetAcknowledgement(params) {
178
- const options = {
179
- params: {}
180
- };
181
-
182
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
183
- options.params.port_id = params.portId;
184
- }
185
-
186
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
187
- options.params.channel_id = params.channelId;
188
- }
189
-
190
102
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_acks/${params.sequence}`;
191
- return await this.request(endpoint, options);
103
+ return await this.request(endpoint);
192
104
  }
193
105
  /* PacketAcknowledgements returns all the packet acknowledgements associated
194
106
  with a channel. */
@@ -199,14 +111,6 @@ export class LCDQueryClient extends LCDClient {
199
111
  params: {}
200
112
  };
201
113
 
202
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
203
- options.params.port_id = params.portId;
204
- }
205
-
206
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
207
- options.params.channel_id = params.channelId;
208
- }
209
-
210
114
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
211
115
  setPaginationParams(options, params.pagination);
212
116
  }
@@ -223,67 +127,23 @@ export class LCDQueryClient extends LCDClient {
223
127
 
224
128
 
225
129
  async unreceivedPackets(params) {
226
- const options = {
227
- params: {}
228
- };
229
-
230
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
231
- options.params.port_id = params.portId;
232
- }
233
-
234
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
235
- options.params.channel_id = params.channelId;
236
- }
237
-
238
- if (typeof (params === null || params === void 0 ? void 0 : params.packetCommitmentSequences) !== "undefined") {
239
- options.params.packet_commitment_sequences = params.packetCommitmentSequences;
240
- }
241
-
242
130
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.packetCommitmentSequences}/unreceived_packets`;
243
- return await this.request(endpoint, options);
131
+ return await this.request(endpoint);
244
132
  }
245
133
  /* UnreceivedAcks returns all the unreceived IBC acknowledgements associated
246
134
  with a channel and sequences. */
247
135
 
248
136
 
249
137
  async unreceivedAcks(params) {
250
- const options = {
251
- params: {}
252
- };
253
-
254
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
255
- options.params.port_id = params.portId;
256
- }
257
-
258
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
259
- options.params.channel_id = params.channelId;
260
- }
261
-
262
- if (typeof (params === null || params === void 0 ? void 0 : params.packetAckSequences) !== "undefined") {
263
- options.params.packet_ack_sequences = params.packetAckSequences;
264
- }
265
-
266
138
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.packetAckSequences}/unreceived_acks`;
267
- return await this.request(endpoint, options);
139
+ return await this.request(endpoint);
268
140
  }
269
141
  /* NextSequenceReceive returns the next receive sequence for a given channel. */
270
142
 
271
143
 
272
144
  async nextSequenceReceive(params) {
273
- const options = {
274
- params: {}
275
- };
276
-
277
- if (typeof (params === null || params === void 0 ? void 0 : params.portId) !== "undefined") {
278
- options.params.port_id = params.portId;
279
- }
280
-
281
- if (typeof (params === null || params === void 0 ? void 0 : params.channelId) !== "undefined") {
282
- options.params.channel_id = params.channelId;
283
- }
284
-
285
145
  const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/next_sequence`;
286
- return await this.request(endpoint, options);
146
+ return await this.request(endpoint);
287
147
  }
288
148
 
289
149
  }
@@ -12,16 +12,8 @@ export class LCDQueryClient extends LCDClient {
12
12
 
13
13
 
14
14
  async clientState(params) {
15
- const options = {
16
- params: {}
17
- };
18
-
19
- if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
20
- options.params.client_id = params.clientId;
21
- }
22
-
23
15
  const endpoint = `ibc/core/client/v1/client_states/${params.clientId}`;
24
- return await this.request(endpoint, options);
16
+ return await this.request(endpoint);
25
17
  }
26
18
  /* ClientStates queries all the IBC light clients of a chain. */
27
19
 
@@ -49,18 +41,6 @@ export class LCDQueryClient extends LCDClient {
49
41
  params: {}
50
42
  };
51
43
 
52
- if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
53
- options.params.client_id = params.clientId;
54
- }
55
-
56
- if (typeof (params === null || params === void 0 ? void 0 : params.revisionNumber) !== "undefined") {
57
- options.params.revision_number = params.revisionNumber;
58
- }
59
-
60
- if (typeof (params === null || params === void 0 ? void 0 : params.revisionHeight) !== "undefined") {
61
- options.params.revision_height = params.revisionHeight;
62
- }
63
-
64
44
  if (typeof (params === null || params === void 0 ? void 0 : params.latestHeight) !== "undefined") {
65
45
  options.params.latest_height = params.latestHeight;
66
46
  }
@@ -77,10 +57,6 @@ export class LCDQueryClient extends LCDClient {
77
57
  params: {}
78
58
  };
79
59
 
80
- if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
81
- options.params.client_id = params.clientId;
82
- }
83
-
84
60
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
85
61
  setPaginationParams(options, params.pagination);
86
62
  }
@@ -92,16 +68,8 @@ export class LCDQueryClient extends LCDClient {
92
68
 
93
69
 
94
70
  async clientStatus(params) {
95
- const options = {
96
- params: {}
97
- };
98
-
99
- if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
100
- options.params.client_id = params.clientId;
101
- }
102
-
103
71
  const endpoint = `ibc/core/client/v1/client_status/${params.clientId}`;
104
- return await this.request(endpoint, options);
72
+ return await this.request(endpoint);
105
73
  }
106
74
  /* ClientParams queries all parameters of the ibc client. */
107
75
 
@@ -12,16 +12,8 @@ export class LCDQueryClient extends LCDClient {
12
12
 
13
13
 
14
14
  async connection(params) {
15
- const options = {
16
- params: {}
17
- };
18
-
19
- if (typeof (params === null || params === void 0 ? void 0 : params.connectionId) !== "undefined") {
20
- options.params.connection_id = params.connectionId;
21
- }
22
-
23
15
  const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}`;
24
- return await this.request(endpoint, options);
16
+ return await this.request(endpoint);
25
17
  }
26
18
  /* Connections queries all the IBC connections of a chain. */
27
19
 
@@ -45,56 +37,24 @@ export class LCDQueryClient extends LCDClient {
45
37
 
46
38
 
47
39
  async clientConnections(params) {
48
- const options = {
49
- params: {}
50
- };
51
-
52
- if (typeof (params === null || params === void 0 ? void 0 : params.clientId) !== "undefined") {
53
- options.params.client_id = params.clientId;
54
- }
55
-
56
40
  const endpoint = `ibc/core/connection/v1/client_connections/${params.clientId}`;
57
- return await this.request(endpoint, options);
41
+ return await this.request(endpoint);
58
42
  }
59
43
  /* ConnectionClientState queries the client state associated with the
60
44
  connection. */
61
45
 
62
46
 
63
47
  async connectionClientState(params) {
64
- const options = {
65
- params: {}
66
- };
67
-
68
- if (typeof (params === null || params === void 0 ? void 0 : params.connectionId) !== "undefined") {
69
- options.params.connection_id = params.connectionId;
70
- }
71
-
72
48
  const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/client_state`;
73
- return await this.request(endpoint, options);
49
+ return await this.request(endpoint);
74
50
  }
75
51
  /* ConnectionConsensusState queries the consensus state associated with the
76
52
  connection. */
77
53
 
78
54
 
79
55
  async connectionConsensusState(params) {
80
- const options = {
81
- params: {}
82
- };
83
-
84
- if (typeof (params === null || params === void 0 ? void 0 : params.connectionId) !== "undefined") {
85
- options.params.connection_id = params.connectionId;
86
- }
87
-
88
- if (typeof (params === null || params === void 0 ? void 0 : params.revisionNumber) !== "undefined") {
89
- options.params.revision_number = params.revisionNumber;
90
- }
91
-
92
- if (typeof (params === null || params === void 0 ? void 0 : params.revisionHeight) !== "undefined") {
93
- options.params.revision_height = params.revisionHeight;
94
- }
95
-
96
56
  const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
97
- return await this.request(endpoint, options);
57
+ return await this.request(endpoint);
98
58
  }
99
59
 
100
60
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @osmonauts/telescope@0.18.8
2
+ * This file and any referenced files were automatically generated by @osmonauts/telescope@0.19.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or yarn proto command to regenerate this bundle.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juno-network",
3
- "version": "0.2.5",
3
+ "version": "0.2.8",
4
4
  "description": "juno",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/CosmosContracts/typescript#readme",
@@ -57,7 +57,7 @@
57
57
  "@babel/plugin-transform-runtime": "7.18.10",
58
58
  "@babel/preset-env": "7.19.0",
59
59
  "@babel/preset-typescript": "^7.18.6",
60
- "@osmonauts/telescope": "^0.18.8",
60
+ "@osmonauts/telescope": "^0.19.0",
61
61
  "@protobufs/cosmos": "^0.0.11",
62
62
  "@protobufs/cosmwasm": "^0.0.11",
63
63
  "@protobufs/ibc": "^0.0.11",
@@ -76,8 +76,8 @@
76
76
  "prettier": "^2.7.1",
77
77
  "regenerator-runtime": "^0.13.7",
78
78
  "rimraf": "^3.0.2",
79
- "ts-jest": "^28.0.8",
80
- "typescript": "^4.8.2"
79
+ "ts-jest": "^29.0.0",
80
+ "typescript": "^4.8.3"
81
81
  },
82
82
  "dependencies": {
83
83
  "@babel/runtime": "^7.19.0",
@@ -91,5 +91,5 @@
91
91
  "@tanstack/react-query": "^4.2.3",
92
92
  "protobufjs": "^6.11.2"
93
93
  },
94
- "gitHead": "f7d5d0958c87231d4924c6fa3f8745958875b2df"
94
+ "gitHead": "34e7771693af17a825049ceb8b7f8b62aceab390"
95
95
  }