juno-network 0.2.0 → 0.2.1

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 (32) hide show
  1. package/main/codegen/JunoSwap.client.js +1 -1
  2. package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +44 -26
  3. package/main/codegen/cosmos/client.js +20 -9
  4. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +37 -27
  5. package/main/codegen/cosmos/gov/v1/query.lcd.js +12 -10
  6. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +12 -10
  7. package/main/codegen/cosmos/group/v1/query.lcd.js +17 -15
  8. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +39 -29
  9. package/main/codegen/cosmwasm/client.js +28 -12
  10. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +35 -21
  11. package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +25 -13
  12. package/main/codegen/ibc/client.js +28 -12
  13. package/main/codegen/ibc/core/channel/v1/query.lcd.js +40 -32
  14. package/main/codegen/juno/mint/query.lcd.js +30 -18
  15. package/module/codegen/JunoSwap.client.js +1 -1
  16. package/module/codegen/JunoSwap.react-query.js +1 -1
  17. package/module/codegen/contracts.js +1 -1
  18. package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +13 -8
  19. package/module/codegen/cosmos/client.js +12 -2
  20. package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +11 -10
  21. package/module/codegen/cosmos/gov/v1/query.lcd.js +11 -10
  22. package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +11 -10
  23. package/module/codegen/cosmos/group/v1/query.lcd.js +16 -15
  24. package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +20 -19
  25. package/module/codegen/cosmwasm/client.js +16 -2
  26. package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +16 -11
  27. package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +6 -3
  28. package/module/codegen/ibc/client.js +16 -2
  29. package/module/codegen/ibc/core/channel/v1/query.lcd.js +19 -16
  30. package/module/codegen/index.js +1 -1
  31. package/module/codegen/juno/mint/query.lcd.js +3 -3
  32. package/package.json +14 -14
@@ -1,4 +1,5 @@
1
1
  import { LCDClient } from "@osmonauts/lcd";
2
+ import { setPaginationParams } from "@osmonauts/helpers";
2
3
  export class LCDQueryClient extends LCDClient {
3
4
  constructor({
4
5
  restEndpoint
@@ -20,7 +21,7 @@ export class LCDQueryClient extends LCDClient {
20
21
  }
21
22
 
22
23
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
23
- options.params.pagination = params.pagination;
24
+ setPaginationParams(options, params.pagination);
24
25
  }
25
26
 
26
27
  const endpoint = `cosmos/staking/v1beta1/validators`;
@@ -38,7 +39,7 @@ export class LCDQueryClient extends LCDClient {
38
39
  options.params.validator_addr = params.validatorAddr;
39
40
  }
40
41
 
41
- const endpoint = `cosmos/staking/v1beta1/validators/${params.validator_addr}`;
42
+ const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}`;
42
43
  return await this.request(endpoint, options);
43
44
  }
44
45
  /* ValidatorDelegations queries delegate info for given validator. */
@@ -54,10 +55,10 @@ export class LCDQueryClient extends LCDClient {
54
55
  }
55
56
 
56
57
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
57
- options.params.pagination = params.pagination;
58
+ setPaginationParams(options, params.pagination);
58
59
  }
59
60
 
60
- const endpoint = `cosmos/staking/v1beta1/validators/${params.validator_addr}/delegations`;
61
+ const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations`;
61
62
  return await this.request(endpoint, options);
62
63
  }
63
64
  /* ValidatorUnbondingDelegations queries unbonding delegations of a validator. */
@@ -73,10 +74,10 @@ export class LCDQueryClient extends LCDClient {
73
74
  }
74
75
 
75
76
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
76
- options.params.pagination = params.pagination;
77
+ setPaginationParams(options, params.pagination);
77
78
  }
78
79
 
79
- const endpoint = `cosmos/staking/v1beta1/validators/${params.validator_addr}/unbonding_delegations`;
80
+ const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/unbonding_delegations`;
80
81
  return await this.request(endpoint, options);
81
82
  }
82
83
  /* Delegation queries delegate info for given validator delegator pair. */
@@ -95,7 +96,7 @@ export class LCDQueryClient extends LCDClient {
95
96
  options.params.validator_addr = params.validatorAddr;
96
97
  }
97
98
 
98
- const endpoint = `cosmos/staking/v1beta1/validators/${params.validator_addr}delegations/${params.delegator_addr}`;
99
+ const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}delegations/${params.delegatorAddr}`;
99
100
  return await this.request(endpoint, options);
100
101
  }
101
102
  /* UnbondingDelegation queries unbonding info for given validator delegator
@@ -115,7 +116,7 @@ export class LCDQueryClient extends LCDClient {
115
116
  options.params.validator_addr = params.validatorAddr;
116
117
  }
117
118
 
118
- const endpoint = `cosmos/staking/v1beta1/validators/${params.validator_addr}/delegations/${params.delegator_addr}/unbonding_delegation`;
119
+ const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}/unbonding_delegation`;
119
120
  return await this.request(endpoint, options);
120
121
  }
121
122
  /* DelegatorDelegations queries all delegations of a given delegator address. */
@@ -131,10 +132,10 @@ export class LCDQueryClient extends LCDClient {
131
132
  }
132
133
 
133
134
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
134
- options.params.pagination = params.pagination;
135
+ setPaginationParams(options, params.pagination);
135
136
  }
136
137
 
137
- const endpoint = `cosmos/staking/v1beta1/delegations/${params.delegator_addr}`;
138
+ const endpoint = `cosmos/staking/v1beta1/delegations/${params.delegatorAddr}`;
138
139
  return await this.request(endpoint, options);
139
140
  }
140
141
  /* DelegatorUnbondingDelegations queries all unbonding delegations of a given
@@ -151,10 +152,10 @@ export class LCDQueryClient extends LCDClient {
151
152
  }
152
153
 
153
154
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
154
- options.params.pagination = params.pagination;
155
+ setPaginationParams(options, params.pagination);
155
156
  }
156
157
 
157
- const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegator_addr}/unbonding_delegations`;
158
+ const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/unbonding_delegations`;
158
159
  return await this.request(endpoint, options);
159
160
  }
160
161
  /* Redelegations queries redelegations of given address. */
@@ -178,10 +179,10 @@ export class LCDQueryClient extends LCDClient {
178
179
  }
179
180
 
180
181
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
181
- options.params.pagination = params.pagination;
182
+ setPaginationParams(options, params.pagination);
182
183
  }
183
184
 
184
- const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegator_addr}/redelegations`;
185
+ const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/redelegations`;
185
186
  return await this.request(endpoint, options);
186
187
  }
187
188
  /* DelegatorValidators queries all validators info for given delegator
@@ -198,10 +199,10 @@ export class LCDQueryClient extends LCDClient {
198
199
  }
199
200
 
200
201
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
201
- options.params.pagination = params.pagination;
202
+ setPaginationParams(options, params.pagination);
202
203
  }
203
204
 
204
- const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegator_addr}/validators`;
205
+ const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators`;
205
206
  return await this.request(endpoint, options);
206
207
  }
207
208
  /* DelegatorValidator queries validator info for given delegator validator
@@ -221,7 +222,7 @@ export class LCDQueryClient extends LCDClient {
221
222
  options.params.validator_addr = params.validatorAddr;
222
223
  }
223
224
 
224
- const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegator_addr}validators/${params.validator_addr}`;
225
+ const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}validators/${params.validatorAddr}`;
225
226
  return await this.request(endpoint, options);
226
227
  }
227
228
  /* HistoricalInfo queries the historical info for given height. */
@@ -234,14 +235,14 @@ export class LCDQueryClient extends LCDClient {
234
235
  /* Pool queries the pool info. */
235
236
 
236
237
 
237
- async pool(params) {
238
+ async pool(_params = {}) {
238
239
  const endpoint = `cosmos/staking/v1beta1/pool`;
239
240
  return await this.request(endpoint);
240
241
  }
241
242
  /* Parameters queries the staking parameters. */
242
243
 
243
244
 
244
- async params(params) {
245
+ async params(_params = {}) {
245
246
  const endpoint = `cosmos/staking/v1beta1/params`;
246
247
  return await this.request(endpoint);
247
248
  }
@@ -8,13 +8,27 @@ import { Registry } from "@cosmjs/proto-signing";
8
8
  import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
9
9
  import * as cosmwasmWasmV1TxRegistry from "./wasm/v1/tx.registry";
10
10
  import * as cosmwasmWasmV1TxAmino from "./wasm/v1/tx.amino";
11
+ export const getSigningCosmwasmClientOptions = ({
12
+ defaultTypes = defaultRegistryTypes
13
+ } = {}) => {
14
+ const registry = new Registry([...defaultTypes, ...cosmwasmWasmV1TxRegistry.registry]);
15
+ const aminoTypes = new AminoTypes(_objectSpread({}, cosmwasmWasmV1TxAmino.AminoConverter));
16
+ return {
17
+ registry,
18
+ aminoTypes
19
+ };
20
+ };
11
21
  export const getSigningCosmwasmClient = async ({
12
22
  rpcEndpoint,
13
23
  signer,
14
24
  defaultTypes = defaultRegistryTypes
15
25
  }) => {
16
- const registry = new Registry([...defaultTypes, ...cosmwasmWasmV1TxRegistry.registry]);
17
- const aminoTypes = new AminoTypes(_objectSpread({}, cosmwasmWasmV1TxAmino.AminoConverter));
26
+ const {
27
+ registry,
28
+ aminoTypes
29
+ } = getSigningCosmwasmClientOptions({
30
+ defaultTypes
31
+ });
18
32
  const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
19
33
  registry,
20
34
  aminoTypes
@@ -1,4 +1,5 @@
1
1
  import { LCDClient } from "@osmonauts/lcd";
2
+ import { setPaginationParams } from "@osmonauts/helpers";
2
3
  export class LCDQueryClient extends LCDClient {
3
4
  constructor({
4
5
  restEndpoint
@@ -23,7 +24,7 @@ export class LCDQueryClient extends LCDClient {
23
24
  };
24
25
 
25
26
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
26
- options.params.pagination = params.pagination;
27
+ setPaginationParams(options, params.pagination);
27
28
  }
28
29
 
29
30
  const endpoint = `cosmwasm/wasm/v1/contract/${params.address}/history`;
@@ -42,10 +43,10 @@ export class LCDQueryClient extends LCDClient {
42
43
  }
43
44
 
44
45
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
45
- options.params.pagination = params.pagination;
46
+ setPaginationParams(options, params.pagination);
46
47
  }
47
48
 
48
- const endpoint = `cosmwasm/wasm/v1/code/${params.code_id}/contracts`;
49
+ const endpoint = `cosmwasm/wasm/v1/code/${params.codeId}/contracts`;
49
50
  return await this.request(endpoint, options);
50
51
  }
51
52
  /* AllContractState gets all raw store data for a single contract */
@@ -57,7 +58,7 @@ export class LCDQueryClient extends LCDClient {
57
58
  };
58
59
 
59
60
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
60
- options.params.pagination = params.pagination;
61
+ setPaginationParams(options, params.pagination);
61
62
  }
62
63
 
63
64
  const endpoint = `cosmwasm/wasm/v1/contract/${params.address}/state`;
@@ -75,7 +76,7 @@ export class LCDQueryClient extends LCDClient {
75
76
  options.params.query_data = params.queryData;
76
77
  }
77
78
 
78
- const endpoint = `wasm/v1/contract/${params.address}raw/${params.query_data}`;
79
+ const endpoint = `wasm/v1/contract/${params.address}raw/${params.queryData}`;
79
80
  return await this.request(endpoint, options);
80
81
  }
81
82
  /* SmartContractState get smart query result from the contract */
@@ -90,7 +91,7 @@ export class LCDQueryClient extends LCDClient {
90
91
  options.params.query_data = params.queryData;
91
92
  }
92
93
 
93
- const endpoint = `wasm/v1/contract/${params.address}smart/${params.query_data}`;
94
+ const endpoint = `wasm/v1/contract/${params.address}smart/${params.queryData}`;
94
95
  return await this.request(endpoint, options);
95
96
  }
96
97
  /* Code gets the binary code and metadata for a singe wasm code */
@@ -105,19 +106,21 @@ export class LCDQueryClient extends LCDClient {
105
106
  options.params.code_id = params.codeId;
106
107
  }
107
108
 
108
- const endpoint = `cosmwasm/wasm/v1/code/${params.code_id}`;
109
+ const endpoint = `cosmwasm/wasm/v1/code/${params.codeId}`;
109
110
  return await this.request(endpoint, options);
110
111
  }
111
112
  /* Codes gets the metadata for all stored wasm codes */
112
113
 
113
114
 
114
- async codes(params) {
115
+ async codes(params = {
116
+ pagination: undefined
117
+ }) {
115
118
  const options = {
116
119
  params: {}
117
120
  };
118
121
 
119
122
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
120
- options.params.pagination = params.pagination;
123
+ setPaginationParams(options, params.pagination);
121
124
  }
122
125
 
123
126
  const endpoint = `cosmwasm/wasm/v1/code`;
@@ -126,13 +129,15 @@ export class LCDQueryClient extends LCDClient {
126
129
  /* PinnedCodes gets the pinned code ids */
127
130
 
128
131
 
129
- async pinnedCodes(params) {
132
+ async pinnedCodes(params = {
133
+ pagination: undefined
134
+ }) {
130
135
  const options = {
131
136
  params: {}
132
137
  };
133
138
 
134
139
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
135
- options.params.pagination = params.pagination;
140
+ setPaginationParams(options, params.pagination);
136
141
  }
137
142
 
138
143
  const endpoint = `cosmwasm/wasm/v1/codes/pinned`;
@@ -1,4 +1,5 @@
1
1
  import { LCDClient } from "@osmonauts/lcd";
2
+ import { setPaginationParams } from "@osmonauts/helpers";
2
3
  export class LCDQueryClient extends LCDClient {
3
4
  constructor({
4
5
  restEndpoint
@@ -17,13 +18,15 @@ export class LCDQueryClient extends LCDClient {
17
18
  /* DenomTraces queries all denomination traces. */
18
19
 
19
20
 
20
- async denomTraces(params) {
21
+ async denomTraces(params = {
22
+ pagination: undefined
23
+ }) {
21
24
  const options = {
22
25
  params: {}
23
26
  };
24
27
 
25
28
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
26
- options.params.pagination = params.pagination;
29
+ setPaginationParams(options, params.pagination);
27
30
  }
28
31
 
29
32
  const endpoint = `ibc/apps/transfer/v1/denom_traces`;
@@ -32,7 +35,7 @@ export class LCDQueryClient extends LCDClient {
32
35
  /* Params queries all parameters of the ibc-transfer module. */
33
36
 
34
37
 
35
- async params(params) {
38
+ async params(_params = {}) {
36
39
  const endpoint = `ibc/apps/transfer/v1/params`;
37
40
  return await this.request(endpoint);
38
41
  }
@@ -10,13 +10,27 @@ import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1
10
10
  import * as ibcCoreChannelV1TxRegistry from "./core/channel/v1/tx.registry";
11
11
  import * as ibcApplicationsTransferV1TxAmino from "./applications/transfer/v1/tx.amino";
12
12
  import * as ibcCoreChannelV1TxAmino from "./core/channel/v1/tx.amino";
13
+ export const getSigningIbcClientOptions = ({
14
+ defaultTypes = defaultRegistryTypes
15
+ } = {}) => {
16
+ const registry = new Registry([...defaultTypes, ...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreChannelV1TxRegistry.registry]);
17
+ const aminoTypes = new AminoTypes(_objectSpread(_objectSpread({}, ibcApplicationsTransferV1TxAmino.AminoConverter), ibcCoreChannelV1TxAmino.AminoConverter));
18
+ return {
19
+ registry,
20
+ aminoTypes
21
+ };
22
+ };
13
23
  export const getSigningIbcClient = async ({
14
24
  rpcEndpoint,
15
25
  signer,
16
26
  defaultTypes = defaultRegistryTypes
17
27
  }) => {
18
- const registry = new Registry([...defaultTypes, ...ibcApplicationsTransferV1TxRegistry.registry, ...ibcCoreChannelV1TxRegistry.registry]);
19
- const aminoTypes = new AminoTypes(_objectSpread(_objectSpread({}, ibcApplicationsTransferV1TxAmino.AminoConverter), ibcCoreChannelV1TxAmino.AminoConverter));
28
+ const {
29
+ registry,
30
+ aminoTypes
31
+ } = getSigningIbcClientOptions({
32
+ defaultTypes
33
+ });
20
34
  const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
21
35
  registry,
22
36
  aminoTypes
@@ -1,4 +1,5 @@
1
1
  import { LCDClient } from "@osmonauts/lcd";
2
+ import { setPaginationParams } from "@osmonauts/helpers";
2
3
  export class LCDQueryClient extends LCDClient {
3
4
  constructor({
4
5
  restEndpoint
@@ -23,19 +24,21 @@ export class LCDQueryClient extends LCDClient {
23
24
  options.params.channel_id = params.channelId;
24
25
  }
25
26
 
26
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}ports/${params.port_id}`;
27
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}ports/${params.portId}`;
27
28
  return await this.request(endpoint, options);
28
29
  }
29
30
  /* Channels queries all the IBC channels of a chain. */
30
31
 
31
32
 
32
- async channels(params) {
33
+ async channels(params = {
34
+ pagination: undefined
35
+ }) {
33
36
  const options = {
34
37
  params: {}
35
38
  };
36
39
 
37
40
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
38
- options.params.pagination = params.pagination;
41
+ setPaginationParams(options, params.pagination);
39
42
  }
40
43
 
41
44
  const endpoint = `ibc/core/channel/v1/channels`;
@@ -51,7 +54,7 @@ export class LCDQueryClient extends LCDClient {
51
54
  };
52
55
 
53
56
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
54
- options.params.pagination = params.pagination;
57
+ setPaginationParams(options, params.pagination);
55
58
  }
56
59
 
57
60
  const endpoint = `ibc/core/channel/v1/connections/${params.connection}/channels`;
@@ -74,7 +77,7 @@ export class LCDQueryClient extends LCDClient {
74
77
  options.params.channel_id = params.channelId;
75
78
  }
76
79
 
77
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}/client_state`;
80
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/client_state`;
78
81
  return await this.request(endpoint, options);
79
82
  }
80
83
  /* ChannelConsensusState queries for the consensus state for the channel
@@ -102,7 +105,7 @@ export class LCDQueryClient extends LCDClient {
102
105
  options.params.revision_height = params.revisionHeight;
103
106
  }
104
107
 
105
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}/consensus_state/revision/${params.revision_number}height/${params.revision_height}`;
108
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
106
109
  return await this.request(endpoint, options);
107
110
  }
108
111
  /* PacketCommitment queries a stored packet commitment hash. */
@@ -121,7 +124,7 @@ export class LCDQueryClient extends LCDClient {
121
124
  options.params.channel_id = params.channelId;
122
125
  }
123
126
 
124
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}packet_commitments/${params.sequence}`;
127
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_commitments/${params.sequence}`;
125
128
  return await this.request(endpoint, options);
126
129
  }
127
130
  /* PacketCommitments returns all the packet commitments hashes associated
@@ -142,10 +145,10 @@ export class LCDQueryClient extends LCDClient {
142
145
  }
143
146
 
144
147
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
145
- options.params.pagination = params.pagination;
148
+ setPaginationParams(options, params.pagination);
146
149
  }
147
150
 
148
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}/packet_commitments`;
151
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments`;
149
152
  return await this.request(endpoint, options);
150
153
  }
151
154
  /* PacketReceipt queries if a given packet sequence has been received on the
@@ -165,7 +168,7 @@ export class LCDQueryClient extends LCDClient {
165
168
  options.params.channel_id = params.channelId;
166
169
  }
167
170
 
168
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}packet_receipts/${params.sequence}`;
171
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_receipts/${params.sequence}`;
169
172
  return await this.request(endpoint, options);
170
173
  }
171
174
  /* PacketAcknowledgement queries a stored packet acknowledgement hash. */
@@ -184,7 +187,7 @@ export class LCDQueryClient extends LCDClient {
184
187
  options.params.channel_id = params.channelId;
185
188
  }
186
189
 
187
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}packet_acks/${params.sequence}`;
190
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_acks/${params.sequence}`;
188
191
  return await this.request(endpoint, options);
189
192
  }
190
193
  /* PacketAcknowledgements returns all the packet acknowledgements associated
@@ -205,14 +208,14 @@ export class LCDQueryClient extends LCDClient {
205
208
  }
206
209
 
207
210
  if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
208
- options.params.pagination = params.pagination;
211
+ setPaginationParams(options, params.pagination);
209
212
  }
210
213
 
211
214
  if (typeof (params === null || params === void 0 ? void 0 : params.packetCommitmentSequences) !== "undefined") {
212
215
  options.params.packet_commitment_sequences = params.packetCommitmentSequences;
213
216
  }
214
217
 
215
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}/packet_acknowledgements`;
218
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_acknowledgements`;
216
219
  return await this.request(endpoint, options);
217
220
  }
218
221
  /* UnreceivedPackets returns all the unreceived IBC packets associated with a
@@ -236,7 +239,7 @@ export class LCDQueryClient extends LCDClient {
236
239
  options.params.packet_commitment_sequences = params.packetCommitmentSequences;
237
240
  }
238
241
 
239
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}/packet_commitments/${params.packet_commitment_sequences}/unreceived_packets`;
242
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.packetCommitmentSequences}/unreceived_packets`;
240
243
  return await this.request(endpoint, options);
241
244
  }
242
245
  /* UnreceivedAcks returns all the unreceived IBC acknowledgements associated
@@ -260,7 +263,7 @@ export class LCDQueryClient extends LCDClient {
260
263
  options.params.packet_ack_sequences = params.packetAckSequences;
261
264
  }
262
265
 
263
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}/packet_commitments/${params.packet_ack_sequences}/unreceived_acks`;
266
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.packetAckSequences}/unreceived_acks`;
264
267
  return await this.request(endpoint, options);
265
268
  }
266
269
  /* NextSequenceReceive returns the next receive sequence for a given channel. */
@@ -279,7 +282,7 @@ export class LCDQueryClient extends LCDClient {
279
282
  options.params.channel_id = params.channelId;
280
283
  }
281
284
 
282
- const endpoint = `ibc/core/channel/v1/channels/${params.channel_id}/ports/${params.port_id}/next_sequence`;
285
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/next_sequence`;
283
286
  return await this.request(endpoint, options);
284
287
  }
285
288
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @osmonauts/telescope@0.14.2
2
+ * This file and any referenced files were automatically generated by @osmonauts/telescope@0.18.2
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
  */
@@ -10,21 +10,21 @@ export class LCDQueryClient extends LCDClient {
10
10
  /* Params returns the total set of minting parameters. */
11
11
 
12
12
 
13
- async params(params) {
13
+ async params(_params = {}) {
14
14
  const endpoint = `cosmos/mint/v1beta1/params`;
15
15
  return await this.request(endpoint);
16
16
  }
17
17
  /* Inflation returns the current minting inflation value. */
18
18
 
19
19
 
20
- async inflation(params) {
20
+ async inflation(_params = {}) {
21
21
  const endpoint = `cosmos/mint/v1beta1/inflation`;
22
22
  return await this.request(endpoint);
23
23
  }
24
24
  /* AnnualProvisions current minting annual provisions value. */
25
25
 
26
26
 
27
- async annualProvisions(params) {
27
+ async annualProvisions(_params = {}) {
28
28
  const endpoint = `cosmos/mint/v1beta1/annual_provisions`;
29
29
  return await this.request(endpoint);
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juno-network",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "juno",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/CosmosContracts/typescript#readme",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/cli": "7.18.10",
48
- "@babel/core": "7.18.10",
48
+ "@babel/core": "7.18.13",
49
49
  "@babel/eslint-parser": "^7.18.9",
50
50
  "@babel/node": "^7.18.10",
51
51
  "@babel/plugin-proposal-class-properties": "7.18.6",
@@ -57,17 +57,17 @@
57
57
  "@babel/plugin-transform-runtime": "7.18.10",
58
58
  "@babel/preset-env": "7.18.10",
59
59
  "@babel/preset-typescript": "^7.18.6",
60
- "@osmonauts/telescope": "^0.14.2",
60
+ "@osmonauts/telescope": "^0.18.2",
61
61
  "@protobufs/cosmos": "^0.0.11",
62
62
  "@protobufs/cosmwasm": "^0.0.11",
63
63
  "@protobufs/ibc": "^0.0.11",
64
64
  "@protobufs/juno": "^0.0.14",
65
- "@types/jest": "^28.1.6",
65
+ "@types/jest": "^28.1.7",
66
66
  "babel-core": "7.0.0-bridge.0",
67
67
  "babel-jest": "28.1.3",
68
68
  "babel-watch": "^7.0.0",
69
69
  "cross-env": "^7.0.2",
70
- "eslint": "8.21.0",
70
+ "eslint": "8.22.0",
71
71
  "eslint-config-prettier": "^8.5.0",
72
72
  "eslint-plugin-prettier": "^4.2.1",
73
73
  "jest": "^28.1.3",
@@ -76,19 +76,19 @@
76
76
  "prettier": "^2.7.1",
77
77
  "regenerator-runtime": "^0.13.7",
78
78
  "rimraf": "^3.0.2",
79
- "ts-jest": "^28.0.7",
79
+ "ts-jest": "^28.0.8",
80
80
  "typescript": "^4.7.4"
81
81
  },
82
82
  "dependencies": {
83
83
  "@babel/runtime": "^7.18.9",
84
- "@cosmjs/amino": "0.28.11",
85
- "@cosmjs/cosmwasm-stargate": "^0.28.11",
86
- "@cosmjs/proto-signing": "0.28.11",
87
- "@cosmjs/stargate": "0.28.11",
88
- "@cosmjs/tendermint-rpc": "^0.28.11",
89
- "@osmonauts/helpers": "^0.4.1",
90
- "@tanstack/react-query": "^4.1.3",
84
+ "@cosmjs/amino": "0.28.13",
85
+ "@cosmjs/cosmwasm-stargate": "^0.28.13",
86
+ "@cosmjs/proto-signing": "0.28.13",
87
+ "@cosmjs/stargate": "0.28.13",
88
+ "@cosmjs/tendermint-rpc": "^0.28.13",
89
+ "@osmonauts/helpers": "^0.4.3",
90
+ "@tanstack/react-query": "^4.2.1",
91
91
  "protobufjs": "^6.11.2"
92
92
  },
93
- "gitHead": "a7ff58dc2fc53644009b4ba8c012da6cda0bfab0"
93
+ "gitHead": "73fceefed53a113cac7b9d7923a2f63ecee32bf1"
94
94
  }