@firmachain/firma-js 0.2.64 → 0.3.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.
- package/README.md +1 -1
- package/dist/sdk/FirmaAuthzService.d.ts +8 -8
- package/dist/sdk/FirmaAuthzService.js +12 -6
- package/dist/sdk/FirmaBankService.d.ts +4 -4
- package/dist/sdk/FirmaContractService.d.ts +4 -4
- package/dist/sdk/FirmaCosmWasmCw20.d.ts +14 -14
- package/dist/sdk/FirmaCosmWasmCw721.d.ts +14 -14
- package/dist/sdk/FirmaCosmWasmCwBridge.d.ts +9 -9
- package/dist/sdk/FirmaCosmWasmCwMarketplace.d.ts +8 -8
- package/dist/sdk/FirmaCosmWasmService.d.ts +8 -8
- package/dist/sdk/FirmaCosmWasmService.js +2 -3
- package/dist/sdk/FirmaDistributionService.d.ts +6 -6
- package/dist/sdk/FirmaFeeGrantService.d.ts +4 -4
- package/dist/sdk/FirmaGovService.d.ts +27 -16
- package/dist/sdk/FirmaGovService.js +305 -195
- package/dist/sdk/FirmaIbcService.d.ts +3 -4
- package/dist/sdk/FirmaIbcService.js +5 -2
- package/dist/sdk/FirmaNftService.d.ts +5 -5
- package/dist/sdk/FirmaStakingService.d.ts +6 -6
- package/dist/sdk/FirmaTokenService.d.ts +5 -5
- package/dist/sdk/FirmaUtil.d.ts +1 -1
- package/dist/sdk/FirmaUtil.js +12 -14
- package/dist/sdk/firmachain/amino/addresses.js +1 -1
- package/dist/sdk/firmachain/amino/aminomsgs.d.ts +10 -0
- package/dist/sdk/firmachain/amino/aminomsgs.js +5 -1
- package/dist/sdk/firmachain/amino/aminotypes.js +27 -10
- package/dist/sdk/firmachain/amino/coins.d.ts +14 -2
- package/dist/sdk/firmachain/amino/coins.js +26 -5
- package/dist/sdk/firmachain/amino/encoding.d.ts +10 -1
- package/dist/sdk/firmachain/amino/encoding.js +21 -3
- package/dist/sdk/firmachain/amino/signdoc.d.ts +21 -3
- package/dist/sdk/firmachain/amino/signdoc.js +37 -11
- package/dist/sdk/firmachain/amino/signer.d.ts +2 -1
- package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +7 -6
- package/dist/sdk/firmachain/authz/AuthzTxTypes.js +7 -6
- package/dist/sdk/firmachain/bank/BankQueryClient.js +1 -1
- package/dist/sdk/firmachain/common/CommonTxClient.js +11 -9
- package/dist/sdk/firmachain/common/ITxClient.d.ts +6 -6
- package/dist/sdk/firmachain/common/ITxClient.js +82 -24
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.d.ts +4 -9
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +37 -32
- package/dist/sdk/firmachain/common/LedgerWallet.js +4 -8
- package/dist/sdk/firmachain/common/TxCommon.d.ts +1 -2
- package/dist/sdk/firmachain/common/accounts.d.ts +7 -3
- package/dist/sdk/firmachain/common/accounts.js +28 -33
- package/dist/sdk/firmachain/common/aminotypes.d.ts +19 -0
- package/dist/sdk/firmachain/common/aminotypes.js +74 -0
- package/dist/sdk/firmachain/common/events.d.ts +32 -0
- package/dist/sdk/firmachain/common/events.js +18 -0
- package/dist/sdk/firmachain/common/fee.d.ts +26 -0
- package/dist/sdk/firmachain/common/fee.js +83 -0
- package/dist/sdk/firmachain/common/index.d.ts +1 -0
- package/dist/sdk/firmachain/common/index.js +3 -0
- package/dist/sdk/firmachain/common/modules/auth/queries.d.ts +15 -0
- package/dist/sdk/firmachain/common/modules/auth/queries.js +64 -0
- package/dist/sdk/firmachain/common/modules/authz/aminomessages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/authz/aminomessages.js +15 -0
- package/dist/sdk/firmachain/common/modules/authz/messages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/authz/messages.js +9 -0
- package/dist/sdk/firmachain/common/modules/authz/queries.d.ts +10 -0
- package/dist/sdk/firmachain/common/modules/authz/queries.js +88 -0
- package/dist/sdk/firmachain/common/modules/bank/aminomessages.d.ts +35 -0
- package/dist/sdk/firmachain/common/modules/bank/aminomessages.js +85 -0
- package/dist/sdk/firmachain/common/modules/bank/messages.d.ts +8 -0
- package/dist/sdk/firmachain/common/modules/bank/messages.js +12 -0
- package/dist/sdk/firmachain/common/modules/bank/queries.d.ts +15 -0
- package/dist/sdk/firmachain/common/modules/bank/queries.js +128 -0
- package/dist/sdk/firmachain/common/modules/crisis/aminomessages.d.ts +14 -0
- package/dist/sdk/firmachain/common/modules/crisis/aminomessages.js +11 -0
- package/dist/sdk/firmachain/common/modules/distribution/aminomessages.d.ts +44 -0
- package/dist/sdk/firmachain/common/modules/distribution/aminomessages.js +113 -0
- package/dist/sdk/firmachain/common/modules/distribution/messages.d.ts +8 -0
- package/dist/sdk/firmachain/common/modules/distribution/messages.js +15 -0
- package/dist/sdk/firmachain/common/modules/distribution/queries.d.ts +16 -0
- package/dist/sdk/firmachain/common/modules/distribution/queries.js +171 -0
- package/dist/sdk/firmachain/common/modules/evidence/aminomessages.d.ts +18 -0
- package/dist/sdk/firmachain/common/modules/evidence/aminomessages.js +11 -0
- package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.js +14 -0
- package/dist/sdk/firmachain/common/modules/feegrant/messages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/feegrant/messages.js +8 -0
- package/dist/sdk/firmachain/common/modules/feegrant/queries.d.ts +9 -0
- package/dist/sdk/firmachain/common/modules/feegrant/queries.js +81 -0
- package/dist/sdk/firmachain/common/modules/gov/aminomessages.d.ts +79 -0
- package/dist/sdk/firmachain/common/modules/gov/aminomessages.js +152 -0
- package/dist/sdk/firmachain/common/modules/gov/messages.d.ts +29 -0
- package/dist/sdk/firmachain/common/modules/gov/messages.js +38 -0
- package/dist/sdk/firmachain/common/modules/gov/queries.d.ts +19 -0
- package/dist/sdk/firmachain/common/modules/gov/queries.js +160 -0
- package/dist/sdk/firmachain/common/modules/group/aminomessages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/group/aminomessages.js +8 -0
- package/dist/sdk/firmachain/common/modules/group/messages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/group/messages.js +28 -0
- package/dist/sdk/firmachain/common/modules/ibc/aminomessages.d.ts +38 -0
- package/dist/sdk/firmachain/common/modules/ibc/aminomessages.js +55 -0
- package/dist/sdk/firmachain/common/modules/ibc/messages.d.ts +8 -0
- package/dist/sdk/firmachain/common/modules/ibc/messages.js +32 -0
- package/dist/sdk/firmachain/common/modules/ibc/queries.d.ts +58 -0
- package/dist/sdk/firmachain/common/modules/ibc/queries.js +576 -0
- package/dist/sdk/firmachain/common/modules/index.d.ts +32 -0
- package/dist/sdk/firmachain/common/modules/index.js +101 -0
- package/dist/sdk/firmachain/common/modules/mint/queries.d.ts +21 -0
- package/dist/sdk/firmachain/common/modules/mint/queries.js +95 -0
- package/dist/sdk/firmachain/common/modules/slashing/aminomessages.d.ts +12 -0
- package/dist/sdk/firmachain/common/modules/slashing/aminomessages.js +11 -0
- package/dist/sdk/firmachain/common/modules/slashing/queries.d.ts +10 -0
- package/dist/sdk/firmachain/common/modules/slashing/queries.js +88 -0
- package/dist/sdk/firmachain/common/modules/staking/aminomessages.d.ts +112 -0
- package/dist/sdk/firmachain/common/modules/staking/aminomessages.js +234 -0
- package/dist/sdk/firmachain/common/modules/staking/messages.d.ts +33 -0
- package/dist/sdk/firmachain/common/modules/staking/messages.js +37 -0
- package/dist/sdk/firmachain/common/modules/staking/queries.d.ts +23 -0
- package/dist/sdk/firmachain/common/modules/staking/queries.js +242 -0
- package/dist/sdk/firmachain/common/modules/tx/queries.d.ts +11 -0
- package/dist/sdk/firmachain/common/modules/tx/queries.js +103 -0
- package/dist/sdk/firmachain/common/modules/vesting/aminomessages.d.ts +16 -0
- package/dist/sdk/firmachain/common/modules/vesting/aminomessages.js +56 -0
- package/dist/sdk/firmachain/common/modules/vesting/messages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/vesting/messages.js +7 -0
- package/dist/sdk/firmachain/common/queryclient/index.d.ts +2 -0
- package/dist/sdk/firmachain/common/queryclient/index.js +10 -0
- package/dist/sdk/firmachain/common/queryclient/queryclient.d.ts +75 -0
- package/dist/sdk/firmachain/common/queryclient/queryclient.js +157 -0
- package/dist/sdk/firmachain/common/queryclient/utils.d.ts +33 -0
- package/dist/sdk/firmachain/common/queryclient/utils.js +101 -0
- package/dist/sdk/firmachain/common/search.d.ts +10 -0
- package/dist/sdk/firmachain/common/search.js +7 -0
- package/dist/sdk/firmachain/common/signing.d.ts +8 -3
- package/dist/sdk/firmachain/common/signing.js +24 -12
- package/dist/sdk/firmachain/common/signingstargateclient.d.ts +107 -30
- package/dist/sdk/firmachain/common/signingstargateclient.js +445 -128
- package/dist/sdk/firmachain/common/stargateclient.d.ts +184 -20
- package/dist/sdk/firmachain/common/stargateclient.js +351 -35
- package/dist/sdk/firmachain/contract/ContractTxClient.d.ts +2 -2
- package/dist/sdk/firmachain/contract/ContractTxClient.js +4 -4
- package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +1 -1
- package/dist/sdk/firmachain/contract/ContractTxTypes.js +3 -3
- package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +1 -1
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +5 -5
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.js +10 -8
- package/dist/sdk/firmachain/google/protobuf/any.d.ts +3 -2
- package/dist/sdk/firmachain/google/protobuf/any.js +2 -1
- package/dist/sdk/firmachain/google/protobuf/duration.d.ts +3 -2
- package/dist/sdk/firmachain/google/protobuf/duration.js +2 -1
- package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +3 -2
- package/dist/sdk/firmachain/google/protobuf/timestamp.js +2 -1
- package/dist/sdk/firmachain/gov/GovQueryClient.d.ts +13 -1
- package/dist/sdk/firmachain/gov/GovQueryClient.js +9 -2
- package/dist/sdk/firmachain/gov/GovTxClient.d.ts +12 -0
- package/dist/sdk/firmachain/gov/GovTxClient.js +11 -1
- package/dist/sdk/firmachain/nft/NftTxClient.d.ts +3 -3
- package/dist/sdk/firmachain/nft/NftTxClient.js +6 -6
- package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +1 -1
- package/dist/sdk/firmachain/nft/NftTxTypes.js +4 -4
- package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +1 -0
- package/dist/sdk/firmachain/staking/StakingQueryClient.js +0 -1
- package/dist/sdk/firmachain/token/TokenTxClient.d.ts +4 -4
- package/dist/sdk/firmachain/token/TokenTxClient.js +8 -8
- package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +1 -1
- package/dist/sdk/firmachain/token/TokenTxTypes.js +5 -5
- package/dist/test/00.wallet.test.js +15 -9
- package/dist/test/01.contract_tx.test.js +53 -45
- package/dist/test/02.contract_query.test.js +54 -31
- package/dist/test/03.contract_scenario.test.js +170 -326
- package/dist/test/04.bank_tx.test.js +58 -59
- package/dist/test/05.bank_query.test.js +51 -56
- package/dist/test/06.feegrant_tx.test.js +74 -89
- package/dist/test/07.feegrant_query.test.js +69 -27
- package/dist/test/08.gas_estimate.test.js +422 -392
- package/dist/test/09.ipfs.test.js +3 -3
- package/dist/test/10.nft_tx.test.js +108 -76
- package/dist/test/11.nft_query.test.js +41 -46
- package/dist/test/12.staking_tx.test.js +81 -98
- package/dist/test/13.staking_query.test.js +66 -12
- package/dist/test/14.distribution_tx.test.js +69 -78
- package/dist/test/15.distribution_query.test.js +81 -57
- package/dist/test/16.gov_tx.test.js +247 -107
- package/dist/test/17.gov_query.test.js +48 -9
- package/dist/test/18.util.test.js +6 -1
- package/dist/test/19.chain.test.js +50 -4
- package/dist/test/20.slashing_query.test.js +31 -1
- package/dist/test/21.token_tx.test.js +48 -56
- package/dist/test/22.token_query.test.js +24 -20
- package/dist/test/23.authz_tx.test.js +119 -240
- package/dist/test/24.authz_query.test.js +116 -56
- package/dist/test/25.cosmwasm_tx.test.js +95 -57
- package/dist/test/26.cosmwasm_query.test.js +66 -26
- package/dist/test/27.arbitary_sign.test.js +59 -67
- package/dist/test/28.ibc_tx.test.js +29 -17
- package/dist/test/29.mint_query.test.js +2 -0
- package/dist/test/30.cw20_tx.test.js +161 -226
- package/dist/test/31.cw20_query.test.js +183 -37
- package/dist/test/32.cw721_tx.test.js +147 -149
- package/dist/test/33.cw721_query.test.js +188 -36
- package/dist/test/34.cw_bridge_tx.test.js +266 -155
- package/dist/test/35.cw_bridge_tx_low.test.js +221 -81
- package/dist/test/36.cw_bridge_query.test.js +157 -21
- package/dist/test/37.cw_marketplace_tx.test.js +22 -22
- package/dist/test/38.cw_marketplace_query.test.js +9 -9
- package/dist/test/config_test.d.ts +10 -4
- package/dist/test/config_test.js +16 -9
- package/dist/test/config_test.sample.d.ts +11 -0
- package/dist/test/config_test.sample.js +14 -0
- package/package.json +9 -7
- package/dist/sdk/firmachain/common/signingaminostargateclient.d.ts +0 -50
- package/dist/sdk/firmachain/common/signingaminostargateclient.js +0 -267
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
39
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
40
|
+
if (!m) return o;
|
|
41
|
+
var i = m.call(o), r, ar = [], e;
|
|
42
|
+
try {
|
|
43
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
44
|
+
}
|
|
45
|
+
catch (error) { e = { error: error }; }
|
|
46
|
+
finally {
|
|
47
|
+
try {
|
|
48
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
49
|
+
}
|
|
50
|
+
finally { if (e) throw e.error; }
|
|
51
|
+
}
|
|
52
|
+
return ar;
|
|
53
|
+
};
|
|
54
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
55
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
56
|
+
to[j] = from[i];
|
|
57
|
+
return to;
|
|
58
|
+
};
|
|
59
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60
|
+
exports.setupIbcExtension = void 0;
|
|
61
|
+
var query_1 = require("cosmjs-types/ibc/applications/transfer/v1/query");
|
|
62
|
+
var query_2 = require("cosmjs-types/ibc/core/channel/v1/query");
|
|
63
|
+
var query_3 = require("cosmjs-types/ibc/core/client/v1/query");
|
|
64
|
+
var query_4 = require("cosmjs-types/ibc/core/connection/v1/query");
|
|
65
|
+
var tendermint_1 = require("cosmjs-types/ibc/lightclients/tendermint/v1/tendermint");
|
|
66
|
+
var queryclient_1 = require("../../queryclient");
|
|
67
|
+
function decodeTendermintClientStateAny(clientState) {
|
|
68
|
+
if ((clientState === null || clientState === void 0 ? void 0 : clientState.typeUrl) !== "/ibc.lightclients.tendermint.v1.ClientState") {
|
|
69
|
+
throw new Error("Unexpected client state type: " + (clientState === null || clientState === void 0 ? void 0 : clientState.typeUrl));
|
|
70
|
+
}
|
|
71
|
+
return tendermint_1.ClientState.decode(clientState.value);
|
|
72
|
+
}
|
|
73
|
+
function decodeTendermintConsensusStateAny(clientState) {
|
|
74
|
+
if ((clientState === null || clientState === void 0 ? void 0 : clientState.typeUrl) !== "/ibc.lightclients.tendermint.v1.ConsensusState") {
|
|
75
|
+
throw new Error("Unexpected client state type: " + (clientState === null || clientState === void 0 ? void 0 : clientState.typeUrl));
|
|
76
|
+
}
|
|
77
|
+
return tendermint_1.ConsensusState.decode(clientState.value);
|
|
78
|
+
}
|
|
79
|
+
function setupIbcExtension(base) {
|
|
80
|
+
var _this = this;
|
|
81
|
+
var rpc = queryclient_1.createProtobufRpcClient(base);
|
|
82
|
+
// Use these services to get easy typed access to query methods
|
|
83
|
+
// These cannot be used for proof verification
|
|
84
|
+
var channelQueryService = new query_2.QueryClientImpl(rpc);
|
|
85
|
+
var clientQueryService = new query_3.QueryClientImpl(rpc);
|
|
86
|
+
var connectionQueryService = new query_4.QueryClientImpl(rpc);
|
|
87
|
+
var transferQueryService = new query_1.QueryClientImpl(rpc);
|
|
88
|
+
return {
|
|
89
|
+
ibc: {
|
|
90
|
+
channel: {
|
|
91
|
+
channel: function (portId, channelId) { return __awaiter(_this, void 0, void 0, function () {
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
return [2 /*return*/, channelQueryService.Channel({
|
|
94
|
+
portId: portId,
|
|
95
|
+
channelId: channelId,
|
|
96
|
+
})];
|
|
97
|
+
});
|
|
98
|
+
}); },
|
|
99
|
+
channels: function (paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
100
|
+
return __generator(this, function (_a) {
|
|
101
|
+
return [2 /*return*/, channelQueryService.Channels({
|
|
102
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
103
|
+
})];
|
|
104
|
+
});
|
|
105
|
+
}); },
|
|
106
|
+
allChannels: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
+
var channels, response, key;
|
|
108
|
+
var _a;
|
|
109
|
+
return __generator(this, function (_b) {
|
|
110
|
+
switch (_b.label) {
|
|
111
|
+
case 0:
|
|
112
|
+
channels = [];
|
|
113
|
+
_b.label = 1;
|
|
114
|
+
case 1: return [4 /*yield*/, channelQueryService.Channels({
|
|
115
|
+
pagination: queryclient_1.createPagination(key),
|
|
116
|
+
})];
|
|
117
|
+
case 2:
|
|
118
|
+
response = _b.sent();
|
|
119
|
+
channels.push.apply(channels, __spreadArray([], __read(response.channels)));
|
|
120
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
121
|
+
_b.label = 3;
|
|
122
|
+
case 3:
|
|
123
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
124
|
+
_b.label = 4;
|
|
125
|
+
case 4: return [2 /*return*/, query_2.QueryChannelsResponse.fromPartial({
|
|
126
|
+
channels: channels,
|
|
127
|
+
height: response.height,
|
|
128
|
+
})];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}); },
|
|
132
|
+
connectionChannels: function (connection, paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
133
|
+
return __generator(this, function (_a) {
|
|
134
|
+
return [2 /*return*/, channelQueryService.ConnectionChannels({
|
|
135
|
+
connection: connection,
|
|
136
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
137
|
+
})];
|
|
138
|
+
});
|
|
139
|
+
}); },
|
|
140
|
+
allConnectionChannels: function (connection) { return __awaiter(_this, void 0, void 0, function () {
|
|
141
|
+
var channels, response, key;
|
|
142
|
+
var _a;
|
|
143
|
+
return __generator(this, function (_b) {
|
|
144
|
+
switch (_b.label) {
|
|
145
|
+
case 0:
|
|
146
|
+
channels = [];
|
|
147
|
+
_b.label = 1;
|
|
148
|
+
case 1: return [4 /*yield*/, channelQueryService.ConnectionChannels({
|
|
149
|
+
connection: connection,
|
|
150
|
+
pagination: queryclient_1.createPagination(key),
|
|
151
|
+
})];
|
|
152
|
+
case 2:
|
|
153
|
+
response = _b.sent();
|
|
154
|
+
channels.push.apply(channels, __spreadArray([], __read(response.channels)));
|
|
155
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
156
|
+
_b.label = 3;
|
|
157
|
+
case 3:
|
|
158
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
159
|
+
_b.label = 4;
|
|
160
|
+
case 4: return [2 /*return*/, query_2.QueryConnectionChannelsResponse.fromPartial({
|
|
161
|
+
channels: channels,
|
|
162
|
+
height: response.height,
|
|
163
|
+
})];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}); },
|
|
167
|
+
clientState: function (portId, channelId) { return __awaiter(_this, void 0, void 0, function () {
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
return [2 /*return*/, channelQueryService.ChannelClientState({
|
|
170
|
+
portId: portId,
|
|
171
|
+
channelId: channelId,
|
|
172
|
+
})];
|
|
173
|
+
});
|
|
174
|
+
}); },
|
|
175
|
+
consensusState: function (portId, channelId, revisionNumber, revisionHeight) { return __awaiter(_this, void 0, void 0, function () {
|
|
176
|
+
return __generator(this, function (_a) {
|
|
177
|
+
return [2 /*return*/, channelQueryService.ChannelConsensusState({
|
|
178
|
+
portId: portId,
|
|
179
|
+
channelId: channelId,
|
|
180
|
+
revisionNumber: BigInt(revisionNumber),
|
|
181
|
+
revisionHeight: BigInt(revisionHeight),
|
|
182
|
+
})];
|
|
183
|
+
});
|
|
184
|
+
}); },
|
|
185
|
+
packetCommitment: function (portId, channelId, sequence) { return __awaiter(_this, void 0, void 0, function () {
|
|
186
|
+
return __generator(this, function (_a) {
|
|
187
|
+
return [2 /*return*/, channelQueryService.PacketCommitment({
|
|
188
|
+
portId: portId,
|
|
189
|
+
channelId: channelId,
|
|
190
|
+
sequence: queryclient_1.longify(sequence),
|
|
191
|
+
})];
|
|
192
|
+
});
|
|
193
|
+
}); },
|
|
194
|
+
packetCommitments: function (portId, channelId, paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
return [2 /*return*/, channelQueryService.PacketCommitments({
|
|
197
|
+
channelId: channelId,
|
|
198
|
+
portId: portId,
|
|
199
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
200
|
+
})];
|
|
201
|
+
});
|
|
202
|
+
}); },
|
|
203
|
+
allPacketCommitments: function (portId, channelId) { return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
+
var commitments, response, key;
|
|
205
|
+
var _a;
|
|
206
|
+
return __generator(this, function (_b) {
|
|
207
|
+
switch (_b.label) {
|
|
208
|
+
case 0:
|
|
209
|
+
commitments = [];
|
|
210
|
+
_b.label = 1;
|
|
211
|
+
case 1: return [4 /*yield*/, channelQueryService.PacketCommitments({
|
|
212
|
+
channelId: channelId,
|
|
213
|
+
portId: portId,
|
|
214
|
+
pagination: queryclient_1.createPagination(key),
|
|
215
|
+
})];
|
|
216
|
+
case 2:
|
|
217
|
+
response = _b.sent();
|
|
218
|
+
commitments.push.apply(commitments, __spreadArray([], __read(response.commitments)));
|
|
219
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
220
|
+
_b.label = 3;
|
|
221
|
+
case 3:
|
|
222
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
223
|
+
_b.label = 4;
|
|
224
|
+
case 4: return [2 /*return*/, query_2.QueryPacketCommitmentsResponse.fromPartial({
|
|
225
|
+
commitments: commitments,
|
|
226
|
+
height: response.height,
|
|
227
|
+
})];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}); },
|
|
231
|
+
packetReceipt: function (portId, channelId, sequence) { return __awaiter(_this, void 0, void 0, function () {
|
|
232
|
+
return __generator(this, function (_a) {
|
|
233
|
+
return [2 /*return*/, channelQueryService.PacketReceipt({
|
|
234
|
+
portId: portId,
|
|
235
|
+
channelId: channelId,
|
|
236
|
+
sequence: queryclient_1.longify(sequence),
|
|
237
|
+
})];
|
|
238
|
+
});
|
|
239
|
+
}); },
|
|
240
|
+
packetAcknowledgement: function (portId, channelId, sequence) { return __awaiter(_this, void 0, void 0, function () {
|
|
241
|
+
return __generator(this, function (_a) {
|
|
242
|
+
return [2 /*return*/, channelQueryService.PacketAcknowledgement({
|
|
243
|
+
portId: portId,
|
|
244
|
+
channelId: channelId,
|
|
245
|
+
sequence: queryclient_1.longify(sequence),
|
|
246
|
+
})];
|
|
247
|
+
});
|
|
248
|
+
}); },
|
|
249
|
+
packetAcknowledgements: function (portId, channelId, paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
250
|
+
var request;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
request = query_2.QueryPacketAcknowledgementsRequest.fromPartial({
|
|
253
|
+
portId: portId,
|
|
254
|
+
channelId: channelId,
|
|
255
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
256
|
+
});
|
|
257
|
+
return [2 /*return*/, channelQueryService.PacketAcknowledgements(request)];
|
|
258
|
+
});
|
|
259
|
+
}); },
|
|
260
|
+
allPacketAcknowledgements: function (portId, channelId) { return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
+
var acknowledgements, response, key, request;
|
|
262
|
+
var _a;
|
|
263
|
+
return __generator(this, function (_b) {
|
|
264
|
+
switch (_b.label) {
|
|
265
|
+
case 0:
|
|
266
|
+
acknowledgements = [];
|
|
267
|
+
_b.label = 1;
|
|
268
|
+
case 1:
|
|
269
|
+
request = query_2.QueryPacketAcknowledgementsRequest.fromPartial({
|
|
270
|
+
channelId: channelId,
|
|
271
|
+
portId: portId,
|
|
272
|
+
pagination: queryclient_1.createPagination(key),
|
|
273
|
+
});
|
|
274
|
+
return [4 /*yield*/, channelQueryService.PacketAcknowledgements(request)];
|
|
275
|
+
case 2:
|
|
276
|
+
response = _b.sent();
|
|
277
|
+
acknowledgements.push.apply(acknowledgements, __spreadArray([], __read(response.acknowledgements)));
|
|
278
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
279
|
+
_b.label = 3;
|
|
280
|
+
case 3:
|
|
281
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
282
|
+
_b.label = 4;
|
|
283
|
+
case 4: return [2 /*return*/, query_2.QueryPacketAcknowledgementsResponse.fromPartial({
|
|
284
|
+
acknowledgements: acknowledgements,
|
|
285
|
+
height: response.height,
|
|
286
|
+
})];
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}); },
|
|
290
|
+
unreceivedPackets: function (portId, channelId, packetCommitmentSequences) { return __awaiter(_this, void 0, void 0, function () {
|
|
291
|
+
return __generator(this, function (_a) {
|
|
292
|
+
return [2 /*return*/, channelQueryService.UnreceivedPackets({
|
|
293
|
+
portId: portId,
|
|
294
|
+
channelId: channelId,
|
|
295
|
+
packetCommitmentSequences: packetCommitmentSequences.map(function (s) { return BigInt(s); }),
|
|
296
|
+
})];
|
|
297
|
+
});
|
|
298
|
+
}); },
|
|
299
|
+
unreceivedAcks: function (portId, channelId, packetAckSequences) { return __awaiter(_this, void 0, void 0, function () {
|
|
300
|
+
return __generator(this, function (_a) {
|
|
301
|
+
return [2 /*return*/, channelQueryService.UnreceivedAcks({
|
|
302
|
+
portId: portId,
|
|
303
|
+
channelId: channelId,
|
|
304
|
+
packetAckSequences: packetAckSequences.map(function (s) { return BigInt(s); }),
|
|
305
|
+
})];
|
|
306
|
+
});
|
|
307
|
+
}); },
|
|
308
|
+
nextSequenceReceive: function (portId, channelId) { return __awaiter(_this, void 0, void 0, function () {
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
return [2 /*return*/, channelQueryService.NextSequenceReceive({
|
|
311
|
+
portId: portId,
|
|
312
|
+
channelId: channelId,
|
|
313
|
+
})];
|
|
314
|
+
});
|
|
315
|
+
}); },
|
|
316
|
+
},
|
|
317
|
+
client: {
|
|
318
|
+
state: function (clientId) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
319
|
+
return [2 /*return*/, clientQueryService.ClientState({ clientId: clientId })];
|
|
320
|
+
}); }); },
|
|
321
|
+
states: function (paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
322
|
+
return __generator(this, function (_a) {
|
|
323
|
+
return [2 /*return*/, clientQueryService.ClientStates({
|
|
324
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
325
|
+
})];
|
|
326
|
+
});
|
|
327
|
+
}); },
|
|
328
|
+
allStates: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
329
|
+
var clientStates, response, key;
|
|
330
|
+
var _a;
|
|
331
|
+
return __generator(this, function (_b) {
|
|
332
|
+
switch (_b.label) {
|
|
333
|
+
case 0:
|
|
334
|
+
clientStates = [];
|
|
335
|
+
_b.label = 1;
|
|
336
|
+
case 1: return [4 /*yield*/, clientQueryService.ClientStates({
|
|
337
|
+
pagination: queryclient_1.createPagination(key),
|
|
338
|
+
})];
|
|
339
|
+
case 2:
|
|
340
|
+
response = _b.sent();
|
|
341
|
+
clientStates.push.apply(clientStates, __spreadArray([], __read(response.clientStates)));
|
|
342
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
343
|
+
_b.label = 3;
|
|
344
|
+
case 3:
|
|
345
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
346
|
+
_b.label = 4;
|
|
347
|
+
case 4: return [2 /*return*/, query_3.QueryClientStatesResponse.fromPartial({
|
|
348
|
+
clientStates: clientStates,
|
|
349
|
+
})];
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
}); },
|
|
353
|
+
consensusState: function (clientId, consensusHeight) { return __awaiter(_this, void 0, void 0, function () {
|
|
354
|
+
return __generator(this, function (_a) {
|
|
355
|
+
return [2 /*return*/, clientQueryService.ConsensusState(query_3.QueryConsensusStateRequest.fromPartial({
|
|
356
|
+
clientId: clientId,
|
|
357
|
+
revisionHeight: consensusHeight !== undefined ? BigInt(consensusHeight) : undefined,
|
|
358
|
+
latestHeight: consensusHeight === undefined,
|
|
359
|
+
}))];
|
|
360
|
+
});
|
|
361
|
+
}); },
|
|
362
|
+
consensusStates: function (clientId, paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
363
|
+
return __generator(this, function (_a) {
|
|
364
|
+
return [2 /*return*/, clientQueryService.ConsensusStates({
|
|
365
|
+
clientId: clientId,
|
|
366
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
367
|
+
})];
|
|
368
|
+
});
|
|
369
|
+
}); },
|
|
370
|
+
allConsensusStates: function (clientId) { return __awaiter(_this, void 0, void 0, function () {
|
|
371
|
+
var consensusStates, response, key;
|
|
372
|
+
var _a;
|
|
373
|
+
return __generator(this, function (_b) {
|
|
374
|
+
switch (_b.label) {
|
|
375
|
+
case 0:
|
|
376
|
+
consensusStates = [];
|
|
377
|
+
_b.label = 1;
|
|
378
|
+
case 1: return [4 /*yield*/, clientQueryService.ConsensusStates({
|
|
379
|
+
clientId: clientId,
|
|
380
|
+
pagination: queryclient_1.createPagination(key),
|
|
381
|
+
})];
|
|
382
|
+
case 2:
|
|
383
|
+
response = _b.sent();
|
|
384
|
+
consensusStates.push.apply(consensusStates, __spreadArray([], __read(response.consensusStates)));
|
|
385
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
386
|
+
_b.label = 3;
|
|
387
|
+
case 3:
|
|
388
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
389
|
+
_b.label = 4;
|
|
390
|
+
case 4: return [2 /*return*/, query_3.QueryConsensusStatesResponse.fromPartial({
|
|
391
|
+
consensusStates: consensusStates,
|
|
392
|
+
})];
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
}); },
|
|
396
|
+
params: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
397
|
+
return [2 /*return*/, clientQueryService.ClientParams({})];
|
|
398
|
+
}); }); },
|
|
399
|
+
stateTm: function (clientId) { return __awaiter(_this, void 0, void 0, function () {
|
|
400
|
+
var response;
|
|
401
|
+
return __generator(this, function (_a) {
|
|
402
|
+
switch (_a.label) {
|
|
403
|
+
case 0: return [4 /*yield*/, clientQueryService.ClientState({ clientId: clientId })];
|
|
404
|
+
case 1:
|
|
405
|
+
response = _a.sent();
|
|
406
|
+
return [2 /*return*/, decodeTendermintClientStateAny(response.clientState)];
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
}); },
|
|
410
|
+
statesTm: function (paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
411
|
+
var clientStates;
|
|
412
|
+
return __generator(this, function (_a) {
|
|
413
|
+
switch (_a.label) {
|
|
414
|
+
case 0: return [4 /*yield*/, clientQueryService.ClientStates({
|
|
415
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
416
|
+
})];
|
|
417
|
+
case 1:
|
|
418
|
+
clientStates = (_a.sent()).clientStates;
|
|
419
|
+
return [2 /*return*/, clientStates.map(function (_a) {
|
|
420
|
+
var clientState = _a.clientState;
|
|
421
|
+
return decodeTendermintClientStateAny(clientState);
|
|
422
|
+
})];
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
}); },
|
|
426
|
+
allStatesTm: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
427
|
+
var clientStates, response, key;
|
|
428
|
+
var _a;
|
|
429
|
+
return __generator(this, function (_b) {
|
|
430
|
+
switch (_b.label) {
|
|
431
|
+
case 0:
|
|
432
|
+
clientStates = [];
|
|
433
|
+
_b.label = 1;
|
|
434
|
+
case 1: return [4 /*yield*/, clientQueryService.ClientStates({
|
|
435
|
+
pagination: queryclient_1.createPagination(key),
|
|
436
|
+
})];
|
|
437
|
+
case 2:
|
|
438
|
+
response = _b.sent();
|
|
439
|
+
clientStates.push.apply(clientStates, __spreadArray([], __read(response.clientStates)));
|
|
440
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
441
|
+
_b.label = 3;
|
|
442
|
+
case 3:
|
|
443
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
444
|
+
_b.label = 4;
|
|
445
|
+
case 4: return [2 /*return*/, clientStates.map(function (_a) {
|
|
446
|
+
var clientState = _a.clientState;
|
|
447
|
+
return decodeTendermintClientStateAny(clientState);
|
|
448
|
+
})];
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
}); },
|
|
452
|
+
consensusStateTm: function (clientId, consensusHeight) { return __awaiter(_this, void 0, void 0, function () {
|
|
453
|
+
var response;
|
|
454
|
+
return __generator(this, function (_a) {
|
|
455
|
+
switch (_a.label) {
|
|
456
|
+
case 0: return [4 /*yield*/, clientQueryService.ConsensusState(query_3.QueryConsensusStateRequest.fromPartial({
|
|
457
|
+
clientId: clientId,
|
|
458
|
+
revisionHeight: consensusHeight === null || consensusHeight === void 0 ? void 0 : consensusHeight.revisionHeight,
|
|
459
|
+
revisionNumber: consensusHeight === null || consensusHeight === void 0 ? void 0 : consensusHeight.revisionNumber,
|
|
460
|
+
latestHeight: consensusHeight === undefined,
|
|
461
|
+
}))];
|
|
462
|
+
case 1:
|
|
463
|
+
response = _a.sent();
|
|
464
|
+
return [2 /*return*/, decodeTendermintConsensusStateAny(response.consensusState)];
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
}); },
|
|
468
|
+
},
|
|
469
|
+
connection: {
|
|
470
|
+
connection: function (connectionId) { return __awaiter(_this, void 0, void 0, function () {
|
|
471
|
+
return __generator(this, function (_a) {
|
|
472
|
+
return [2 /*return*/, connectionQueryService.Connection({
|
|
473
|
+
connectionId: connectionId,
|
|
474
|
+
})];
|
|
475
|
+
});
|
|
476
|
+
}); },
|
|
477
|
+
connections: function (paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
478
|
+
return __generator(this, function (_a) {
|
|
479
|
+
return [2 /*return*/, connectionQueryService.Connections({
|
|
480
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
481
|
+
})];
|
|
482
|
+
});
|
|
483
|
+
}); },
|
|
484
|
+
allConnections: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
485
|
+
var connections, response, key;
|
|
486
|
+
var _a;
|
|
487
|
+
return __generator(this, function (_b) {
|
|
488
|
+
switch (_b.label) {
|
|
489
|
+
case 0:
|
|
490
|
+
connections = [];
|
|
491
|
+
_b.label = 1;
|
|
492
|
+
case 1: return [4 /*yield*/, connectionQueryService.Connections({
|
|
493
|
+
pagination: queryclient_1.createPagination(key),
|
|
494
|
+
})];
|
|
495
|
+
case 2:
|
|
496
|
+
response = _b.sent();
|
|
497
|
+
connections.push.apply(connections, __spreadArray([], __read(response.connections)));
|
|
498
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
499
|
+
_b.label = 3;
|
|
500
|
+
case 3:
|
|
501
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
502
|
+
_b.label = 4;
|
|
503
|
+
case 4: return [2 /*return*/, query_4.QueryConnectionsResponse.fromPartial({
|
|
504
|
+
connections: connections,
|
|
505
|
+
height: response.height,
|
|
506
|
+
})];
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
}); },
|
|
510
|
+
clientConnections: function (clientId) { return __awaiter(_this, void 0, void 0, function () {
|
|
511
|
+
return __generator(this, function (_a) {
|
|
512
|
+
return [2 /*return*/, connectionQueryService.ClientConnections({
|
|
513
|
+
clientId: clientId,
|
|
514
|
+
})];
|
|
515
|
+
});
|
|
516
|
+
}); },
|
|
517
|
+
clientState: function (connectionId) { return __awaiter(_this, void 0, void 0, function () {
|
|
518
|
+
return __generator(this, function (_a) {
|
|
519
|
+
return [2 /*return*/, connectionQueryService.ConnectionClientState({
|
|
520
|
+
connectionId: connectionId,
|
|
521
|
+
})];
|
|
522
|
+
});
|
|
523
|
+
}); },
|
|
524
|
+
consensusState: function (connectionId, revisionHeight) { return __awaiter(_this, void 0, void 0, function () {
|
|
525
|
+
return __generator(this, function (_a) {
|
|
526
|
+
return [2 /*return*/, connectionQueryService.ConnectionConsensusState(query_4.QueryConnectionConsensusStateRequest.fromPartial({
|
|
527
|
+
connectionId: connectionId,
|
|
528
|
+
revisionHeight: BigInt(revisionHeight),
|
|
529
|
+
}))];
|
|
530
|
+
});
|
|
531
|
+
}); },
|
|
532
|
+
},
|
|
533
|
+
transfer: {
|
|
534
|
+
denomTrace: function (hash) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
535
|
+
return [2 /*return*/, transferQueryService.DenomTrace({ hash: hash })];
|
|
536
|
+
}); }); },
|
|
537
|
+
denomTraces: function (paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
538
|
+
return __generator(this, function (_a) {
|
|
539
|
+
return [2 /*return*/, transferQueryService.DenomTraces({
|
|
540
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
541
|
+
})];
|
|
542
|
+
});
|
|
543
|
+
}); },
|
|
544
|
+
allDenomTraces: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
545
|
+
var denomTraces, response, key;
|
|
546
|
+
var _a;
|
|
547
|
+
return __generator(this, function (_b) {
|
|
548
|
+
switch (_b.label) {
|
|
549
|
+
case 0:
|
|
550
|
+
denomTraces = [];
|
|
551
|
+
_b.label = 1;
|
|
552
|
+
case 1: return [4 /*yield*/, transferQueryService.DenomTraces({
|
|
553
|
+
pagination: queryclient_1.createPagination(key),
|
|
554
|
+
})];
|
|
555
|
+
case 2:
|
|
556
|
+
response = _b.sent();
|
|
557
|
+
denomTraces.push.apply(denomTraces, __spreadArray([], __read(response.denomTraces)));
|
|
558
|
+
key = (_a = response.pagination) === null || _a === void 0 ? void 0 : _a.nextKey;
|
|
559
|
+
_b.label = 3;
|
|
560
|
+
case 3:
|
|
561
|
+
if (key && key.length) return [3 /*break*/, 1];
|
|
562
|
+
_b.label = 4;
|
|
563
|
+
case 4: return [2 /*return*/, query_1.QueryDenomTracesResponse.fromPartial({
|
|
564
|
+
denomTraces: denomTraces,
|
|
565
|
+
})];
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
}); },
|
|
569
|
+
params: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
570
|
+
return [2 /*return*/, transferQueryService.Params({})];
|
|
571
|
+
}); }); },
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
exports.setupIbcExtension = setupIbcExtension;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { AuthExtension, setupAuthExtension } from "./auth/queries";
|
|
2
|
+
export { createAuthzAminoConverters } from "./authz/aminomessages";
|
|
3
|
+
export { authzTypes } from "./authz/messages";
|
|
4
|
+
export { setupAuthzExtension } from "./authz/queries";
|
|
5
|
+
export { AminoMsgMultiSend, AminoMsgSend, createBankAminoConverters, isAminoMsgMultiSend, isAminoMsgSend, } from "./bank/aminomessages";
|
|
6
|
+
export { bankTypes, isMsgSendEncodeObject, MsgSendEncodeObject } from "./bank/messages";
|
|
7
|
+
export { BankExtension, setupBankExtension } from "./bank/queries";
|
|
8
|
+
export { AminoMsgVerifyInvariant, createCrysisAminoConverters, isAminoMsgVerifyInvariant, } from "./crisis/aminomessages";
|
|
9
|
+
export { AminoMsgFundCommunityPool, AminoMsgSetWithdrawAddress, AminoMsgWithdrawDelegatorReward, AminoMsgWithdrawValidatorCommission, createDistributionAminoConverters, isAminoMsgFundCommunityPool, isAminoMsgSetWithdrawAddress, isAminoMsgWithdrawDelegatorReward, isAminoMsgWithdrawValidatorCommission, } from "./distribution/aminomessages";
|
|
10
|
+
export { distributionTypes, isMsgWithdrawDelegatorRewardEncodeObject, MsgWithdrawDelegatorRewardEncodeObject, } from "./distribution/messages";
|
|
11
|
+
export { DistributionExtension, setupDistributionExtension } from "./distribution/queries";
|
|
12
|
+
export { AminoMsgSubmitEvidence, createEvidenceAminoConverters, isAminoMsgSubmitEvidence, } from "./evidence/aminomessages";
|
|
13
|
+
export { createFeegrantAminoConverters } from "./feegrant/aminomessages";
|
|
14
|
+
export { feegrantTypes } from "./feegrant/messages";
|
|
15
|
+
export { FeegrantExtension, setupFeegrantExtension } from "./feegrant/queries";
|
|
16
|
+
export { AminoMsgDeposit, AminoMsgSubmitProposal, AminoMsgVote, AminoMsgVoteWeighted, createGovAminoConverters, isAminoMsgDeposit, isAminoMsgSubmitProposal, isAminoMsgVote, isAminoMsgVoteWeighted, } from "./gov/aminomessages";
|
|
17
|
+
export { govTypes, isMsgDepositEncodeObject, isMsgSubmitProposalEncodeObject, isMsgVoteEncodeObject, isMsgVoteWeightedEncodeObject, MsgDepositEncodeObject, MsgSubmitProposalEncodeObject, MsgVoteEncodeObject, MsgVoteWeightedEncodeObject, } from "./gov/messages";
|
|
18
|
+
export { GovExtension, GovParamsType, GovProposalId, setupGovExtension } from "./gov/queries";
|
|
19
|
+
export { createGroupAminoConverters } from "./group/aminomessages";
|
|
20
|
+
export { groupTypes } from "./group/messages";
|
|
21
|
+
export { AminoMsgTransfer, createIbcAminoConverters, isAminoMsgTransfer } from "./ibc/aminomessages";
|
|
22
|
+
export { ibcTypes, isMsgTransferEncodeObject, MsgTransferEncodeObject } from "./ibc/messages";
|
|
23
|
+
export { IbcExtension, setupIbcExtension } from "./ibc/queries";
|
|
24
|
+
export { MintExtension, MintParams, setupMintExtension } from "./mint/queries";
|
|
25
|
+
export { AminoMsgUnjail, createSlashingAminoConverters, isAminoMsgUnjail } from "./slashing/aminomessages";
|
|
26
|
+
export { setupSlashingExtension, SlashingExtension } from "./slashing/queries";
|
|
27
|
+
export { AminoMsgBeginRedelegate, AminoMsgCreateValidator, AminoMsgDelegate, AminoMsgEditValidator, AminoMsgUndelegate, createStakingAminoConverters, isAminoMsgBeginRedelegate, isAminoMsgCreateValidator, isAminoMsgDelegate, isAminoMsgEditValidator, isAminoMsgUndelegate, } from "./staking/aminomessages";
|
|
28
|
+
export { isMsgBeginRedelegateEncodeObject, isMsgCancelUnbondingDelegationEncodeObject, isMsgCreateValidatorEncodeObject, isMsgDelegateEncodeObject, isMsgEditValidatorEncodeObject, isMsgUndelegateEncodeObject, MsgBeginRedelegateEncodeObject, MsgCancelUnbondingDelegationEncodeObject, MsgCreateValidatorEncodeObject, MsgDelegateEncodeObject, MsgEditValidatorEncodeObject, MsgUndelegateEncodeObject, stakingTypes, } from "./staking/messages";
|
|
29
|
+
export { setupStakingExtension, StakingExtension } from "./staking/queries";
|
|
30
|
+
export { setupTxExtension, TxExtension } from "./tx/queries";
|
|
31
|
+
export { AminoMsgCreateVestingAccount, createVestingAminoConverters, isAminoMsgCreateVestingAccount, } from "./vesting/aminomessages";
|
|
32
|
+
export { vestingTypes } from "./vesting/messages";
|