juno-network 0.9.0 → 0.10.0
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.
- package/main/codegen/JunoSwap.client.js +1 -1
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
- package/main/codegen/cosmos/gov/v1/query.lcd.js +2 -2
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +2 -2
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +2 -2
- package/main/codegen/helpers.js +1 -1
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +5 -5
- package/main/codegen/ibc/core/client/v1/query.lcd.js +1 -1
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +1 -1
- package/module/codegen/JunoSwap.client.js +1 -1
- package/module/codegen/contracts.js +1 -1
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
- package/module/codegen/cosmos/gov/v1/query.lcd.js +2 -2
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +2 -2
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +2 -2
- package/module/codegen/helpers.js +1 -1
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +5 -5
- package/module/codegen/ibc/core/client/v1/query.lcd.js +1 -1
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +1 -1
- package/module/codegen/index.js +1 -1
- package/package.json +3 -3
- package/src/codegen/JunoSwap.client.ts +1 -1
- package/src/codegen/JunoSwap.types.ts +1 -1
- package/src/codegen/contracts.ts +1 -1
- package/src/codegen/cosmos/client.ts +3 -2
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +1 -1
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +2 -2
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +2 -2
- package/src/codegen/cosmos/rpc.query.ts +2 -2
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +2 -2
- package/src/codegen/cosmwasm/client.ts +3 -2
- package/src/codegen/cosmwasm/rpc.query.ts +2 -2
- package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +2 -2
- package/src/codegen/helpers.ts +1 -1
- package/src/codegen/ibc/client.ts +3 -2
- package/src/codegen/ibc/core/channel/v1/query.lcd.ts +5 -5
- package/src/codegen/ibc/core/client/v1/query.lcd.ts +1 -1
- package/src/codegen/ibc/core/connection/v1/query.lcd.ts +1 -1
- package/src/codegen/ibc/rpc.query.ts +2 -2
- package/src/codegen/index.ts +1 -1
- package/src/codegen/juno/rpc.query.ts +2 -2
@@ -17,7 +17,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
18
18
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
19
19
|
/**
|
20
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
20
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
21
21
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
22
22
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
23
23
|
*/var JunoSwapQueryClient = /*#__PURE__*/(0, _createClass2["default"])(function JunoSwapQueryClient(client, contractAddress) {
|
@@ -156,7 +156,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
156
156
|
while (1) {
|
157
157
|
switch (_context5.prev = _context5.next) {
|
158
158
|
case 0:
|
159
|
-
endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "rewards/").concat(params.validatorAddress);
|
159
|
+
endpoint = "cosmos/distribution/v1beta1/delegators/".concat(params.delegatorAddress, "/rewards/").concat(params.validatorAddress);
|
160
160
|
_context5.next = 3;
|
161
161
|
return this.req.get(endpoint);
|
162
162
|
case 3:
|
@@ -103,7 +103,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
103
103
|
while (1) {
|
104
104
|
switch (_context3.prev = _context3.next) {
|
105
105
|
case 0:
|
106
|
-
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "votes/").concat(params.voter);
|
106
|
+
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/votes/").concat(params.voter);
|
107
107
|
_context3.next = 3;
|
108
108
|
return this.req.get(endpoint);
|
109
109
|
case 3:
|
@@ -187,7 +187,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
187
187
|
while (1) {
|
188
188
|
switch (_context6.prev = _context6.next) {
|
189
189
|
case 0:
|
190
|
-
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "deposits/").concat(params.depositor);
|
190
|
+
endpoint = "cosmos/gov/v1/proposals/".concat(params.proposalId, "/deposits/").concat(params.depositor);
|
191
191
|
_context6.next = 3;
|
192
192
|
return this.req.get(endpoint);
|
193
193
|
case 3:
|
@@ -103,7 +103,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
103
103
|
while (1) {
|
104
104
|
switch (_context3.prev = _context3.next) {
|
105
105
|
case 0:
|
106
|
-
endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "votes/").concat(params.voter);
|
106
|
+
endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "/votes/").concat(params.voter);
|
107
107
|
_context3.next = 3;
|
108
108
|
return this.req.get(endpoint);
|
109
109
|
case 3:
|
@@ -187,7 +187,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
187
187
|
while (1) {
|
188
188
|
switch (_context6.prev = _context6.next) {
|
189
189
|
case 0:
|
190
|
-
endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "deposits/").concat(params.depositor);
|
190
|
+
endpoint = "cosmos/gov/v1beta1/proposals/".concat(params.proposalId, "/deposits/").concat(params.depositor);
|
191
191
|
_context6.next = 3;
|
192
192
|
return this.req.get(endpoint);
|
193
193
|
case 3:
|
@@ -167,7 +167,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
167
167
|
while (1) {
|
168
168
|
switch (_context5.prev = _context5.next) {
|
169
169
|
case 0:
|
170
|
-
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "delegations/").concat(params.delegatorAddr);
|
170
|
+
endpoint = "cosmos/staking/v1beta1/validators/".concat(params.validatorAddr, "/delegations/").concat(params.delegatorAddr);
|
171
171
|
_context5.next = 3;
|
172
172
|
return this.req.get(endpoint);
|
173
173
|
case 3:
|
@@ -357,7 +357,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
357
357
|
while (1) {
|
358
358
|
switch (_context11.prev = _context11.next) {
|
359
359
|
case 0:
|
360
|
-
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "validators/").concat(params.validatorAddr);
|
360
|
+
endpoint = "cosmos/staking/v1beta1/delegators/".concat(params.delegatorAddr, "/validators/").concat(params.validatorAddr);
|
361
361
|
_context11.next = 3;
|
362
362
|
return this.req.get(endpoint);
|
363
363
|
case 3:
|
@@ -159,7 +159,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
159
159
|
while (1) {
|
160
160
|
switch (_context5.prev = _context5.next) {
|
161
161
|
case 0:
|
162
|
-
endpoint = "wasm/v1/contract/".concat(params.address, "raw/").concat(params.queryData);
|
162
|
+
endpoint = "wasm/v1/contract/".concat(params.address, "/raw/").concat(params.queryData);
|
163
163
|
_context5.next = 3;
|
164
164
|
return this.req.get(endpoint);
|
165
165
|
case 3:
|
@@ -185,7 +185,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
185
185
|
while (1) {
|
186
186
|
switch (_context6.prev = _context6.next) {
|
187
187
|
case 0:
|
188
|
-
endpoint = "wasm/v1/contract/".concat(params.address, "smart/").concat(params.queryData);
|
188
|
+
endpoint = "wasm/v1/contract/".concat(params.address, "/smart/").concat(params.queryData);
|
189
189
|
_context6.next = 3;
|
190
190
|
return this.req.get(endpoint);
|
191
191
|
case 3:
|
package/main/codegen/helpers.js
CHANGED
@@ -28,7 +28,7 @@ var _long = _interopRequireDefault(require("long"));
|
|
28
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
29
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
30
30
|
/**
|
31
|
-
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.
|
31
|
+
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.0
|
32
32
|
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
33
33
|
* and run the transpile command or yarn proto command to regenerate this bundle.
|
34
34
|
*/
|
@@ -41,7 +41,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
41
41
|
while (1) {
|
42
42
|
switch (_context.prev = _context.next) {
|
43
43
|
case 0:
|
44
|
-
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "ports/").concat(params.portId);
|
44
|
+
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId);
|
45
45
|
_context.next = 3;
|
46
46
|
return this.req.get(endpoint);
|
47
47
|
case 3:
|
@@ -166,7 +166,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
166
166
|
while (1) {
|
167
167
|
switch (_context5.prev = _context5.next) {
|
168
168
|
case 0:
|
169
|
-
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/consensus_state/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
|
169
|
+
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/consensus_state/revision/").concat(params.revisionNumber, "/height/").concat(params.revisionHeight);
|
170
170
|
_context5.next = 3;
|
171
171
|
return this.req.get(endpoint);
|
172
172
|
case 3:
|
@@ -192,7 +192,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
192
192
|
while (1) {
|
193
193
|
switch (_context6.prev = _context6.next) {
|
194
194
|
case 0:
|
195
|
-
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_commitments/").concat(params.sequence);
|
195
|
+
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_commitments/").concat(params.sequence);
|
196
196
|
_context6.next = 3;
|
197
197
|
return this.req.get(endpoint);
|
198
198
|
case 3:
|
@@ -252,7 +252,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
252
252
|
while (1) {
|
253
253
|
switch (_context8.prev = _context8.next) {
|
254
254
|
case 0:
|
255
|
-
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_receipts/").concat(params.sequence);
|
255
|
+
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_receipts/").concat(params.sequence);
|
256
256
|
_context8.next = 3;
|
257
257
|
return this.req.get(endpoint);
|
258
258
|
case 3:
|
@@ -278,7 +278,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
278
278
|
while (1) {
|
279
279
|
switch (_context9.prev = _context9.next) {
|
280
280
|
case 0:
|
281
|
-
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "packet_acks/").concat(params.sequence);
|
281
|
+
endpoint = "ibc/core/channel/v1/channels/".concat(params.channelId, "/ports/").concat(params.portId, "/packet_acks/").concat(params.sequence);
|
282
282
|
_context9.next = 3;
|
283
283
|
return this.req.get(endpoint);
|
284
284
|
case 3:
|
@@ -107,7 +107,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
107
107
|
if (typeof (params === null || params === void 0 ? void 0 : params.latestHeight) !== "undefined") {
|
108
108
|
options.params.latest_height = params.latestHeight;
|
109
109
|
}
|
110
|
-
endpoint = "ibc/core/client/v1/consensus_states/".concat(params.clientId, "/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
|
110
|
+
endpoint = "ibc/core/client/v1/consensus_states/".concat(params.clientId, "/revision/").concat(params.revisionNumber, "/height/").concat(params.revisionHeight);
|
111
111
|
_context3.next = 5;
|
112
112
|
return this.req.get(endpoint, options);
|
113
113
|
case 5:
|
@@ -152,7 +152,7 @@ var LCDQueryClient = /*#__PURE__*/function () {
|
|
152
152
|
while (1) {
|
153
153
|
switch (_context5.prev = _context5.next) {
|
154
154
|
case 0:
|
155
|
-
endpoint = "ibc/core/connection/v1/connections/".concat(params.connectionId, "/consensus_state/revision/").concat(params.revisionNumber, "height/").concat(params.revisionHeight);
|
155
|
+
endpoint = "ibc/core/connection/v1/connections/".concat(params.connectionId, "/consensus_state/revision/").concat(params.revisionNumber, "/height/").concat(params.revisionHeight);
|
156
156
|
_context5.next = 3;
|
157
157
|
return this.req.get(endpoint);
|
158
158
|
case 3:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
2
2
|
/**
|
3
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
3
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
4
4
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
5
5
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
6
6
|
*/
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
4
|
/**
|
5
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
5
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
6
6
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
7
7
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
8
8
|
*/
|
@@ -55,7 +55,7 @@ export class LCDQueryClient {
|
|
55
55
|
/* DelegationRewards queries the total rewards accrued by a delegation. */
|
56
56
|
|
57
57
|
async delegationRewards(params) {
|
58
|
-
const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}rewards/${params.validatorAddress}`;
|
58
|
+
const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`;
|
59
59
|
return await this.req.get(endpoint);
|
60
60
|
}
|
61
61
|
/* DelegationTotalRewards queries the total rewards accrued by a each
|
@@ -45,7 +45,7 @@ export class LCDQueryClient {
|
|
45
45
|
/* Vote queries voted information based on proposalID, voterAddr. */
|
46
46
|
|
47
47
|
async vote(params) {
|
48
|
-
const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}votes/${params.voter}`;
|
48
|
+
const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`;
|
49
49
|
return await this.req.get(endpoint);
|
50
50
|
}
|
51
51
|
/* Votes queries votes of a given proposal. */
|
@@ -69,7 +69,7 @@ export class LCDQueryClient {
|
|
69
69
|
/* Deposit queries single deposit information based proposalID, depositAddr. */
|
70
70
|
|
71
71
|
async deposit(params) {
|
72
|
-
const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}deposits/${params.depositor}`;
|
72
|
+
const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`;
|
73
73
|
return await this.req.get(endpoint);
|
74
74
|
}
|
75
75
|
/* Deposits queries all deposits of a single proposal. */
|
@@ -45,7 +45,7 @@ export class LCDQueryClient {
|
|
45
45
|
/* Vote queries voted information based on proposalID, voterAddr. */
|
46
46
|
|
47
47
|
async vote(params) {
|
48
|
-
const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}votes/${params.voter}`;
|
48
|
+
const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`;
|
49
49
|
return await this.req.get(endpoint);
|
50
50
|
}
|
51
51
|
/* Votes queries votes of a given proposal. */
|
@@ -69,7 +69,7 @@ export class LCDQueryClient {
|
|
69
69
|
/* Deposit queries single deposit information based proposalID, depositAddr. */
|
70
70
|
|
71
71
|
async deposit(params) {
|
72
|
-
const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}deposits/${params.depositor}`;
|
72
|
+
const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`;
|
73
73
|
return await this.req.get(endpoint);
|
74
74
|
}
|
75
75
|
/* Deposits queries all deposits of a single proposal. */
|
@@ -69,7 +69,7 @@ export class LCDQueryClient {
|
|
69
69
|
/* Delegation queries delegate info for given validator delegator pair. */
|
70
70
|
|
71
71
|
async delegation(params) {
|
72
|
-
const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}delegations/${params.delegatorAddr}`;
|
72
|
+
const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`;
|
73
73
|
return await this.req.get(endpoint);
|
74
74
|
}
|
75
75
|
/* UnbondingDelegation queries unbonding info for given validator delegator
|
@@ -139,7 +139,7 @@ export class LCDQueryClient {
|
|
139
139
|
pair. */
|
140
140
|
|
141
141
|
async delegatorValidator(params) {
|
142
|
-
const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}validators/${params.validatorAddr}`;
|
142
|
+
const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`;
|
143
143
|
return await this.req.get(endpoint);
|
144
144
|
}
|
145
145
|
/* HistoricalInfo queries the historical info for given height. */
|
@@ -61,13 +61,13 @@ export class LCDQueryClient {
|
|
61
61
|
/* RawContractState gets single key from the raw store data of a contract */
|
62
62
|
|
63
63
|
async rawContractState(params) {
|
64
|
-
const endpoint = `wasm/v1/contract/${params.address}raw/${params.queryData}`;
|
64
|
+
const endpoint = `wasm/v1/contract/${params.address}/raw/${params.queryData}`;
|
65
65
|
return await this.req.get(endpoint);
|
66
66
|
}
|
67
67
|
/* SmartContractState get smart query result from the contract */
|
68
68
|
|
69
69
|
async smartContractState(params) {
|
70
|
-
const endpoint = `wasm/v1/contract/${params.address}smart/${params.queryData}`;
|
70
|
+
const endpoint = `wasm/v1/contract/${params.address}/smart/${params.queryData}`;
|
71
71
|
return await this.req.get(endpoint);
|
72
72
|
}
|
73
73
|
/* Code gets the binary code and metadata for a singe wasm code */
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.
|
2
|
+
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.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
|
*/
|
@@ -23,7 +23,7 @@ export class LCDQueryClient {
|
|
23
23
|
/* Channel queries an IBC Channel. */
|
24
24
|
|
25
25
|
async channel(params) {
|
26
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}ports/${params.portId}`;
|
26
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}`;
|
27
27
|
return await this.req.get(endpoint);
|
28
28
|
}
|
29
29
|
/* Channels queries all the IBC channels of a chain. */
|
@@ -64,13 +64,13 @@ export class LCDQueryClient {
|
|
64
64
|
associated with the provided channel identifiers. */
|
65
65
|
|
66
66
|
async channelConsensusState(params) {
|
67
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
67
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
68
68
|
return await this.req.get(endpoint);
|
69
69
|
}
|
70
70
|
/* PacketCommitment queries a stored packet commitment hash. */
|
71
71
|
|
72
72
|
async packetCommitment(params) {
|
73
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_commitments/${params.sequence}`;
|
73
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.sequence}`;
|
74
74
|
return await this.req.get(endpoint);
|
75
75
|
}
|
76
76
|
/* PacketCommitments returns all the packet commitments hashes associated
|
@@ -90,13 +90,13 @@ export class LCDQueryClient {
|
|
90
90
|
queried chain */
|
91
91
|
|
92
92
|
async packetReceipt(params) {
|
93
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_receipts/${params.sequence}`;
|
93
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_receipts/${params.sequence}`;
|
94
94
|
return await this.req.get(endpoint);
|
95
95
|
}
|
96
96
|
/* PacketAcknowledgement queries a stored packet acknowledgement hash. */
|
97
97
|
|
98
98
|
async packetAcknowledgement(params) {
|
99
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_acks/${params.sequence}`;
|
99
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_acks/${params.sequence}`;
|
100
100
|
return await this.req.get(endpoint);
|
101
101
|
}
|
102
102
|
/* PacketAcknowledgements returns all the packet acknowledgements associated
|
@@ -45,7 +45,7 @@ export class LCDQueryClient {
|
|
45
45
|
if (typeof (params === null || params === void 0 ? void 0 : params.latestHeight) !== "undefined") {
|
46
46
|
options.params.latest_height = params.latestHeight;
|
47
47
|
}
|
48
|
-
const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
48
|
+
const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
49
49
|
return await this.req.get(endpoint, options);
|
50
50
|
}
|
51
51
|
/* ConsensusStates queries all the consensus state associated with a given
|
@@ -50,7 +50,7 @@ export class LCDQueryClient {
|
|
50
50
|
connection. */
|
51
51
|
|
52
52
|
async connectionConsensusState(params) {
|
53
|
-
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
53
|
+
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
54
54
|
return await this.req.get(endpoint);
|
55
55
|
}
|
56
56
|
}
|
package/module/codegen/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.
|
2
|
+
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.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.
|
3
|
+
"version": "0.10.0",
|
4
4
|
"description": "juno",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/CosmosContracts/typescript#readme",
|
@@ -58,7 +58,7 @@
|
|
58
58
|
"@babel/plugin-transform-runtime": "7.19.1",
|
59
59
|
"@babel/preset-env": "7.19.4",
|
60
60
|
"@babel/preset-typescript": "^7.18.6",
|
61
|
-
"@osmonauts/telescope": "^0.
|
61
|
+
"@osmonauts/telescope": "^0.76.0",
|
62
62
|
"@protobufs/cosmos": "^0.0.11",
|
63
63
|
"@protobufs/cosmwasm": "^0.0.11",
|
64
64
|
"@protobufs/ibc": "^0.0.11",
|
@@ -90,5 +90,5 @@
|
|
90
90
|
"@osmonauts/lcd": "0.8.0",
|
91
91
|
"protobufjs": "^6.11.2"
|
92
92
|
},
|
93
|
-
"gitHead": "
|
93
|
+
"gitHead": "1835ae4c91f21c44dc24424dc98af3329281d3d2"
|
94
94
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4
4
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
5
5
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4
4
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
5
5
|
*/
|
package/src/codegen/contracts.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file was automatically generated by @cosmwasm/ts-codegen@0.
|
2
|
+
* This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4
4
|
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
|
5
5
|
*/
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
|
2
2
|
import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
3
|
+
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
3
4
|
import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry";
|
4
5
|
import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry";
|
5
6
|
import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry";
|
@@ -36,7 +37,7 @@ export const getSigningCosmosClient = async ({
|
|
36
37
|
rpcEndpoint,
|
37
38
|
signer
|
38
39
|
}: {
|
39
|
-
rpcEndpoint: string;
|
40
|
+
rpcEndpoint: string | HttpEndpoint;
|
40
41
|
signer: OfflineSigner;
|
41
42
|
}) => {
|
42
43
|
const {
|
@@ -68,7 +68,7 @@ export class LCDQueryClient {
|
|
68
68
|
|
69
69
|
|
70
70
|
async delegationRewards(params: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponseSDKType> {
|
71
|
-
const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}rewards/${params.validatorAddress}`;
|
71
|
+
const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`;
|
72
72
|
return await this.req.get<QueryDelegationRewardsResponseSDKType>(endpoint);
|
73
73
|
}
|
74
74
|
/* DelegationTotalRewards queries the total rewards accrued by a each
|
@@ -57,7 +57,7 @@ export class LCDQueryClient {
|
|
57
57
|
|
58
58
|
|
59
59
|
async vote(params: QueryVoteRequest): Promise<QueryVoteResponseSDKType> {
|
60
|
-
const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}votes/${params.voter}`;
|
60
|
+
const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`;
|
61
61
|
return await this.req.get<QueryVoteResponseSDKType>(endpoint);
|
62
62
|
}
|
63
63
|
/* Votes queries votes of a given proposal. */
|
@@ -86,7 +86,7 @@ export class LCDQueryClient {
|
|
86
86
|
|
87
87
|
|
88
88
|
async deposit(params: QueryDepositRequest): Promise<QueryDepositResponseSDKType> {
|
89
|
-
const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}deposits/${params.depositor}`;
|
89
|
+
const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`;
|
90
90
|
return await this.req.get<QueryDepositResponseSDKType>(endpoint);
|
91
91
|
}
|
92
92
|
/* Deposits queries all deposits of a single proposal. */
|
@@ -57,7 +57,7 @@ export class LCDQueryClient {
|
|
57
57
|
|
58
58
|
|
59
59
|
async vote(params: QueryVoteRequest): Promise<QueryVoteResponseSDKType> {
|
60
|
-
const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}votes/${params.voter}`;
|
60
|
+
const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`;
|
61
61
|
return await this.req.get<QueryVoteResponseSDKType>(endpoint);
|
62
62
|
}
|
63
63
|
/* Votes queries votes of a given proposal. */
|
@@ -86,7 +86,7 @@ export class LCDQueryClient {
|
|
86
86
|
|
87
87
|
|
88
88
|
async deposit(params: QueryDepositRequest): Promise<QueryDepositResponseSDKType> {
|
89
|
-
const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}deposits/${params.depositor}`;
|
89
|
+
const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`;
|
90
90
|
return await this.req.get<QueryDepositResponseSDKType>(endpoint);
|
91
91
|
}
|
92
92
|
/* Deposits queries all deposits of a single proposal. */
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
|
1
|
+
import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
3
3
|
export const createRPCQueryClient = async ({
|
4
4
|
rpcEndpoint
|
5
5
|
}: {
|
6
|
-
rpcEndpoint: string;
|
6
|
+
rpcEndpoint: string | HttpEndpoint;
|
7
7
|
}) => {
|
8
8
|
const tmClient = await Tendermint34Client.connect(rpcEndpoint);
|
9
9
|
const client = new QueryClient(tmClient);
|
@@ -85,7 +85,7 @@ export class LCDQueryClient {
|
|
85
85
|
|
86
86
|
|
87
87
|
async delegation(params: QueryDelegationRequest): Promise<QueryDelegationResponseSDKType> {
|
88
|
-
const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}delegations/${params.delegatorAddr}`;
|
88
|
+
const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`;
|
89
89
|
return await this.req.get<QueryDelegationResponseSDKType>(endpoint);
|
90
90
|
}
|
91
91
|
/* UnbondingDelegation queries unbonding info for given validator delegator
|
@@ -171,7 +171,7 @@ export class LCDQueryClient {
|
|
171
171
|
|
172
172
|
|
173
173
|
async delegatorValidator(params: QueryDelegatorValidatorRequest): Promise<QueryDelegatorValidatorResponseSDKType> {
|
174
|
-
const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}validators/${params.validatorAddr}`;
|
174
|
+
const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`;
|
175
175
|
return await this.req.get<QueryDelegatorValidatorResponseSDKType>(endpoint);
|
176
176
|
}
|
177
177
|
/* HistoricalInfo queries the historical info for given height. */
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
|
2
2
|
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
3
|
+
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
3
4
|
import * as cosmwasmWasmV1TxRegistry from "./wasm/v1/tx.registry";
|
4
5
|
import * as cosmwasmWasmV1TxAmino from "./wasm/v1/tx.amino";
|
5
6
|
export const cosmwasmAminoConverters = { ...cosmwasmWasmV1TxAmino.AminoConverter
|
@@ -26,7 +27,7 @@ export const getSigningCosmwasmClient = async ({
|
|
26
27
|
signer,
|
27
28
|
defaultTypes = defaultRegistryTypes
|
28
29
|
}: {
|
29
|
-
rpcEndpoint: string;
|
30
|
+
rpcEndpoint: string | HttpEndpoint;
|
30
31
|
signer: OfflineSigner;
|
31
32
|
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
32
33
|
}) => {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
|
1
|
+
import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
3
3
|
export const createRPCQueryClient = async ({
|
4
4
|
rpcEndpoint
|
5
5
|
}: {
|
6
|
-
rpcEndpoint: string;
|
6
|
+
rpcEndpoint: string | HttpEndpoint;
|
7
7
|
}) => {
|
8
8
|
const tmClient = await Tendermint34Client.connect(rpcEndpoint);
|
9
9
|
const client = new QueryClient(tmClient);
|
@@ -76,14 +76,14 @@ export class LCDQueryClient {
|
|
76
76
|
|
77
77
|
|
78
78
|
async rawContractState(params: QueryRawContractStateRequest): Promise<QueryRawContractStateResponseSDKType> {
|
79
|
-
const endpoint = `wasm/v1/contract/${params.address}raw/${params.queryData}`;
|
79
|
+
const endpoint = `wasm/v1/contract/${params.address}/raw/${params.queryData}`;
|
80
80
|
return await this.req.get<QueryRawContractStateResponseSDKType>(endpoint);
|
81
81
|
}
|
82
82
|
/* SmartContractState get smart query result from the contract */
|
83
83
|
|
84
84
|
|
85
85
|
async smartContractState(params: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponseSDKType> {
|
86
|
-
const endpoint = `wasm/v1/contract/${params.address}smart/${params.queryData}`;
|
86
|
+
const endpoint = `wasm/v1/contract/${params.address}/smart/${params.queryData}`;
|
87
87
|
return await this.req.get<QuerySmartContractStateResponseSDKType>(endpoint);
|
88
88
|
}
|
89
89
|
/* Code gets the binary code and metadata for a singe wasm code */
|
package/src/codegen/helpers.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.
|
2
|
+
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.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
|
*/
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
|
2
2
|
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
3
|
+
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
3
4
|
import * as ibcApplicationsTransferV1TxRegistry from "./applications/transfer/v1/tx.registry";
|
4
5
|
import * as ibcCoreChannelV1TxRegistry from "./core/channel/v1/tx.registry";
|
5
6
|
import * as ibcCoreClientV1TxRegistry from "./core/client/v1/tx.registry";
|
@@ -35,7 +36,7 @@ export const getSigningIbcClient = async ({
|
|
35
36
|
signer,
|
36
37
|
defaultTypes = defaultRegistryTypes
|
37
38
|
}: {
|
38
|
-
rpcEndpoint: string;
|
39
|
+
rpcEndpoint: string | HttpEndpoint;
|
39
40
|
signer: OfflineSigner;
|
40
41
|
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
41
42
|
}) => {
|
@@ -28,7 +28,7 @@ export class LCDQueryClient {
|
|
28
28
|
|
29
29
|
|
30
30
|
async channel(params: QueryChannelRequest): Promise<QueryChannelResponseSDKType> {
|
31
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}ports/${params.portId}`;
|
31
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}`;
|
32
32
|
return await this.req.get<QueryChannelResponseSDKType>(endpoint);
|
33
33
|
}
|
34
34
|
/* Channels queries all the IBC channels of a chain. */
|
@@ -77,14 +77,14 @@ export class LCDQueryClient {
|
|
77
77
|
|
78
78
|
|
79
79
|
async channelConsensusState(params: QueryChannelConsensusStateRequest): Promise<QueryChannelConsensusStateResponseSDKType> {
|
80
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
80
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
81
81
|
return await this.req.get<QueryChannelConsensusStateResponseSDKType>(endpoint);
|
82
82
|
}
|
83
83
|
/* PacketCommitment queries a stored packet commitment hash. */
|
84
84
|
|
85
85
|
|
86
86
|
async packetCommitment(params: QueryPacketCommitmentRequest): Promise<QueryPacketCommitmentResponseSDKType> {
|
87
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_commitments/${params.sequence}`;
|
87
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.sequence}`;
|
88
88
|
return await this.req.get<QueryPacketCommitmentResponseSDKType>(endpoint);
|
89
89
|
}
|
90
90
|
/* PacketCommitments returns all the packet commitments hashes associated
|
@@ -108,14 +108,14 @@ export class LCDQueryClient {
|
|
108
108
|
|
109
109
|
|
110
110
|
async packetReceipt(params: QueryPacketReceiptRequest): Promise<QueryPacketReceiptResponseSDKType> {
|
111
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_receipts/${params.sequence}`;
|
111
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_receipts/${params.sequence}`;
|
112
112
|
return await this.req.get<QueryPacketReceiptResponseSDKType>(endpoint);
|
113
113
|
}
|
114
114
|
/* PacketAcknowledgement queries a stored packet acknowledgement hash. */
|
115
115
|
|
116
116
|
|
117
117
|
async packetAcknowledgement(params: QueryPacketAcknowledgementRequest): Promise<QueryPacketAcknowledgementResponseSDKType> {
|
118
|
-
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_acks/${params.sequence}`;
|
118
|
+
const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_acks/${params.sequence}`;
|
119
119
|
return await this.req.get<QueryPacketAcknowledgementResponseSDKType>(endpoint);
|
120
120
|
}
|
121
121
|
/* PacketAcknowledgements returns all the packet acknowledgements associated
|
@@ -56,7 +56,7 @@ export class LCDQueryClient {
|
|
56
56
|
options.params.latest_height = params.latestHeight;
|
57
57
|
}
|
58
58
|
|
59
|
-
const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
59
|
+
const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
60
60
|
return await this.req.get<QueryConsensusStateResponseSDKType>(endpoint, options);
|
61
61
|
}
|
62
62
|
/* ConsensusStates queries all the consensus state associated with a given
|
@@ -61,7 +61,7 @@ export class LCDQueryClient {
|
|
61
61
|
|
62
62
|
|
63
63
|
async connectionConsensusState(params: QueryConnectionConsensusStateRequest): Promise<QueryConnectionConsensusStateResponseSDKType> {
|
64
|
-
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
|
64
|
+
const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
|
65
65
|
return await this.req.get<QueryConnectionConsensusStateResponseSDKType>(endpoint);
|
66
66
|
}
|
67
67
|
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
|
1
|
+
import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
3
3
|
export const createRPCQueryClient = async ({
|
4
4
|
rpcEndpoint
|
5
5
|
}: {
|
6
|
-
rpcEndpoint: string;
|
6
|
+
rpcEndpoint: string | HttpEndpoint;
|
7
7
|
}) => {
|
8
8
|
const tmClient = await Tendermint34Client.connect(rpcEndpoint);
|
9
9
|
const client = new QueryClient(tmClient);
|
package/src/codegen/index.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.
|
2
|
+
* This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.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
|
*/
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
|
1
|
+
import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
3
3
|
export const createRPCQueryClient = async ({
|
4
4
|
rpcEndpoint
|
5
5
|
}: {
|
6
|
-
rpcEndpoint: string;
|
6
|
+
rpcEndpoint: string | HttpEndpoint;
|
7
7
|
}) => {
|
8
8
|
const tmClient = await Tendermint34Client.connect(rpcEndpoint);
|
9
9
|
const client = new QueryClient(tmClient);
|