@firmachain/firma-js 0.3.3 → 0.3.5
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/dist/index.js +5 -1
- package/dist/sdk/FirmaAuthzService.d.ts +8 -7
- package/dist/sdk/FirmaAuthzService.js +12 -22
- package/dist/sdk/FirmaBankService.js +2 -2
- package/dist/sdk/FirmaChainService.js +1 -1
- package/dist/sdk/FirmaContractService.d.ts +1 -1
- package/dist/sdk/FirmaContractService.js +6 -6
- package/dist/sdk/FirmaCosmWasmCw20.d.ts +2 -2
- package/dist/sdk/FirmaCosmWasmCw20.js +8 -8
- package/dist/sdk/FirmaCosmWasmCw721.d.ts +2 -2
- package/dist/sdk/FirmaCosmWasmCw721.js +12 -12
- package/dist/sdk/FirmaCosmWasmCwBridge.d.ts +1 -1
- package/dist/sdk/FirmaCosmWasmCwBridge.js +8 -8
- package/dist/sdk/FirmaCosmWasmCwMarketplace.d.ts +1 -1
- package/dist/sdk/FirmaCosmWasmCwMarketplace.js +5 -5
- package/dist/sdk/FirmaCosmWasmService.d.ts +1 -1
- package/dist/sdk/FirmaCosmWasmService.js +13 -13
- package/dist/sdk/FirmaDistributionService.d.ts +1 -1
- package/dist/sdk/FirmaDistributionService.js +6 -6
- package/dist/sdk/FirmaFeeGrantService.d.ts +7 -6
- package/dist/sdk/FirmaFeeGrantService.js +9 -26
- package/dist/sdk/FirmaGovService.d.ts +1 -1
- package/dist/sdk/FirmaGovService.js +14 -14
- package/dist/sdk/FirmaIbcService.d.ts +3 -3
- package/dist/sdk/FirmaIbcService.js +11 -8
- package/dist/sdk/FirmaIpfsService.js +1 -1
- package/dist/sdk/FirmaMintService.js +1 -1
- package/dist/sdk/FirmaNftService.d.ts +1 -1
- package/dist/sdk/FirmaNftService.js +6 -6
- package/dist/sdk/FirmaSlashingService.js +1 -1
- package/dist/sdk/FirmaStakingService.d.ts +3 -3
- package/dist/sdk/FirmaStakingService.js +6 -6
- package/dist/sdk/FirmaTokenService.d.ts +1 -1
- package/dist/sdk/FirmaTokenService.js +5 -5
- package/dist/sdk/FirmaUtil.d.ts +25 -24
- package/dist/sdk/FirmaUtil.js +200 -145
- package/dist/sdk/FirmaWalletService.d.ts +6 -7
- package/dist/sdk/FirmaWalletService.js +78 -36
- package/dist/sdk/firmachain/authz/AuthzQueryClient.js +4 -4
- package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +8 -11
- package/dist/sdk/firmachain/authz/AuthzTxTypes.js +6 -10
- package/dist/sdk/firmachain/authz/index.js +5 -1
- package/dist/sdk/firmachain/bank/BankQueryClient.js +5 -5
- package/dist/sdk/firmachain/bank/index.js +5 -1
- package/dist/sdk/firmachain/common/ITxClient.d.ts +2 -4
- package/dist/sdk/firmachain/common/ITxClient.js +20 -92
- package/dist/sdk/firmachain/common/LedgerWallet.d.ts +19 -3
- package/dist/sdk/firmachain/common/LedgerWallet.js +138 -68
- package/dist/sdk/firmachain/common/TendermintQueryClient.js +1 -1
- package/dist/sdk/firmachain/common/TxCommon.d.ts +13 -29
- package/dist/sdk/firmachain/common/accounts.d.ts +1 -1
- package/dist/sdk/firmachain/common/accounts.js +7 -7
- package/dist/sdk/firmachain/{amino → common}/coins.d.ts +2 -14
- package/dist/sdk/firmachain/{amino → common}/coins.js +4 -25
- package/dist/sdk/firmachain/common/index.d.ts +0 -1
- package/dist/sdk/firmachain/common/index.js +5 -4
- package/dist/sdk/firmachain/{amino → common}/wallet.js +15 -11
- package/dist/sdk/firmachain/contract/ContractQueryClient.js +3 -3
- package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +6 -6
- package/dist/sdk/firmachain/contract/index.js +5 -1
- package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +9 -9
- package/dist/sdk/firmachain/cosmwasm/index.js +5 -1
- package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +6 -6
- package/dist/sdk/firmachain/distribution/index.js +5 -1
- package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +3 -3
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +4 -45
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.js +3 -82
- package/dist/sdk/firmachain/feegrant/index.js +5 -1
- package/dist/sdk/firmachain/google/protobuf/any.d.ts +3 -3
- package/dist/sdk/firmachain/google/protobuf/descriptor.d.ts +29 -29
- package/dist/sdk/firmachain/google/protobuf/duration.d.ts +3 -3
- package/dist/sdk/firmachain/gov/GovQueryClient.js +3 -3
- package/dist/sdk/firmachain/gov/index.js +5 -1
- package/dist/sdk/firmachain/ibc/IbcQueryClient.js +2 -2
- package/dist/sdk/firmachain/ibc/index.js +5 -1
- package/dist/sdk/firmachain/mint/MintQueryClient.js +1 -1
- package/dist/sdk/firmachain/mint/index.js +5 -1
- package/dist/sdk/firmachain/nft/NftQueryClient.js +1 -1
- package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +8 -8
- package/dist/sdk/firmachain/nft/index.js +5 -1
- package/dist/sdk/firmachain/slashing/SlashingQueryClient.js +1 -1
- package/dist/sdk/firmachain/slashing/index.js +5 -1
- package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +2 -2
- package/dist/sdk/firmachain/staking/StakingQueryClient.js +10 -9
- package/dist/sdk/firmachain/staking/index.js +5 -1
- package/dist/sdk/firmachain/token/TokenQueryClient.js +1 -1
- package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +11 -11
- package/dist/sdk/firmachain/token/TokenTxTypes.js +1 -1
- package/dist/sdk/firmachain/token/index.js +5 -1
- package/dist/test/00.wallet.test.js +4 -4
- package/dist/test/01.contract_tx.test.js +5 -5
- package/dist/test/02.contract_query.test.js +15 -15
- package/dist/test/03.contract_scenario.test.js +28 -28
- package/dist/test/04.bank_tx.test.js +4 -4
- package/dist/test/05.bank_query.test.js +9 -9
- package/dist/test/06.feegrant_tx.test.js +59 -35
- package/dist/test/07.feegrant_query.test.js +18 -15
- package/dist/test/08.gas_estimate.test.js +110 -70
- package/dist/test/09.ipfs.test.js +4 -4
- package/dist/test/10.nft_tx.test.js +7 -7
- package/dist/test/11.nft_query.test.js +9 -9
- package/dist/test/12.staking_tx.test.js +27 -15
- package/dist/test/13.staking_query.test.js +20 -20
- package/dist/test/14.distribution_tx.test.js +8 -8
- package/dist/test/15.distribution_query.test.js +15 -15
- package/dist/test/16.gov_tx.test.js +17 -17
- package/dist/test/17.gov_query.test.js +19 -19
- package/dist/test/18.util.test.js +105 -63
- package/dist/test/19.chain.test.js +38 -38
- package/dist/test/20.slashing_query.test.js +25 -25
- package/dist/test/21.token_tx.test.js +6 -6
- package/dist/test/22.token_query.test.js +4 -4
- package/dist/test/23.authz_tx.test.js +77 -47
- package/dist/test/24.authz_query.test.js +66 -67
- package/dist/test/25.cosmwasm_tx.test.js +7 -7
- package/dist/test/26.cosmwasm_query.test.js +127 -59
- package/dist/test/{27.arbitary_sign.test.js → 27.arbitrary_sign.test.js} +34 -62
- package/dist/test/28.ibc_tx.test.js +8 -8
- package/dist/test/29.mint_query.test.js +2 -2
- package/dist/test/30.cw20_tx.test.js +20 -20
- package/dist/test/31.cw20_query.test.js +24 -24
- package/dist/test/32.cw721_tx.test.js +19 -19
- package/dist/test/33.cw721_query.test.js +32 -32
- package/dist/test/34.cw_bridge_tx.test.js +19 -19
- package/dist/test/35.cw_bridge_tx_low.test.js +13 -13
- package/dist/test/36.cw_bridge_query.test.js +20 -20
- package/dist/test/37.cw_marketplace_tx.test.js +32 -32
- package/dist/test/38.cw_marketplace_query.test.js +2 -2
- package/dist/test/config_test.d.ts +1 -1
- package/dist/test/config_test.js +2 -2
- package/package.json +9 -10
- package/dist/sdk/firmachain/amino/addresses.d.ts +0 -5
- package/dist/sdk/firmachain/amino/addresses.js +0 -46
- package/dist/sdk/firmachain/amino/aminomsgs.d.ts +0 -291
- package/dist/sdk/firmachain/amino/aminomsgs.js +0 -81
- package/dist/sdk/firmachain/amino/aminotypes.d.ts +0 -22
- package/dist/sdk/firmachain/amino/aminotypes.js +0 -538
- package/dist/sdk/firmachain/amino/encoding.d.ts +0 -33
- package/dist/sdk/firmachain/amino/encoding.js +0 -252
- package/dist/sdk/firmachain/amino/multisig.d.ts +0 -10
- package/dist/sdk/firmachain/amino/multisig.js +0 -42
- package/dist/sdk/firmachain/amino/pubkeys.d.ts +0 -47
- package/dist/sdk/firmachain/amino/pubkeys.js +0 -29
- package/dist/sdk/firmachain/amino/signature.d.ts +0 -16
- package/dist/sdk/firmachain/amino/signature.js +0 -36
- package/dist/sdk/firmachain/amino/signdoc.d.ts +0 -44
- package/dist/sdk/firmachain/amino/signdoc.js +0 -68
- package/dist/sdk/firmachain/amino/signer.d.ts +0 -33
- package/dist/sdk/firmachain/amino/signer.js +0 -2
- package/dist/sdk/firmachain/amino/stdtx.d.ts +0 -15
- package/dist/sdk/firmachain/amino/stdtx.js +0 -17
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.d.ts +0 -22
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +0 -170
- package/dist/sdk/firmachain/common/aminotypes.d.ts +0 -19
- package/dist/sdk/firmachain/common/aminotypes.js +0 -74
- package/dist/sdk/firmachain/common/events.d.ts +0 -32
- package/dist/sdk/firmachain/common/events.js +0 -18
- package/dist/sdk/firmachain/common/fee.d.ts +0 -26
- package/dist/sdk/firmachain/common/fee.js +0 -83
- package/dist/sdk/firmachain/common/modules/auth/queries.d.ts +0 -15
- package/dist/sdk/firmachain/common/modules/auth/queries.js +0 -64
- package/dist/sdk/firmachain/common/modules/authz/aminomessages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/authz/aminomessages.js +0 -15
- package/dist/sdk/firmachain/common/modules/authz/messages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/authz/messages.js +0 -9
- package/dist/sdk/firmachain/common/modules/authz/queries.d.ts +0 -10
- package/dist/sdk/firmachain/common/modules/authz/queries.js +0 -88
- package/dist/sdk/firmachain/common/modules/bank/aminomessages.d.ts +0 -35
- package/dist/sdk/firmachain/common/modules/bank/aminomessages.js +0 -85
- package/dist/sdk/firmachain/common/modules/bank/messages.d.ts +0 -8
- package/dist/sdk/firmachain/common/modules/bank/messages.js +0 -12
- package/dist/sdk/firmachain/common/modules/bank/queries.d.ts +0 -15
- package/dist/sdk/firmachain/common/modules/bank/queries.js +0 -128
- package/dist/sdk/firmachain/common/modules/crisis/aminomessages.d.ts +0 -14
- package/dist/sdk/firmachain/common/modules/crisis/aminomessages.js +0 -11
- package/dist/sdk/firmachain/common/modules/distribution/aminomessages.d.ts +0 -44
- package/dist/sdk/firmachain/common/modules/distribution/aminomessages.js +0 -113
- package/dist/sdk/firmachain/common/modules/distribution/messages.d.ts +0 -8
- package/dist/sdk/firmachain/common/modules/distribution/messages.js +0 -15
- package/dist/sdk/firmachain/common/modules/distribution/queries.d.ts +0 -16
- package/dist/sdk/firmachain/common/modules/distribution/queries.js +0 -171
- package/dist/sdk/firmachain/common/modules/evidence/aminomessages.d.ts +0 -18
- package/dist/sdk/firmachain/common/modules/evidence/aminomessages.js +0 -11
- package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.js +0 -14
- package/dist/sdk/firmachain/common/modules/feegrant/messages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/feegrant/messages.js +0 -8
- package/dist/sdk/firmachain/common/modules/feegrant/queries.d.ts +0 -9
- package/dist/sdk/firmachain/common/modules/feegrant/queries.js +0 -81
- package/dist/sdk/firmachain/common/modules/gov/aminomessages.d.ts +0 -79
- package/dist/sdk/firmachain/common/modules/gov/aminomessages.js +0 -152
- package/dist/sdk/firmachain/common/modules/gov/messages.d.ts +0 -29
- package/dist/sdk/firmachain/common/modules/gov/messages.js +0 -39
- package/dist/sdk/firmachain/common/modules/gov/queries.d.ts +0 -19
- package/dist/sdk/firmachain/common/modules/gov/queries.js +0 -160
- package/dist/sdk/firmachain/common/modules/group/aminomessages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/group/aminomessages.js +0 -8
- package/dist/sdk/firmachain/common/modules/group/messages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/group/messages.js +0 -28
- package/dist/sdk/firmachain/common/modules/ibc/aminomessages.d.ts +0 -38
- package/dist/sdk/firmachain/common/modules/ibc/aminomessages.js +0 -55
- package/dist/sdk/firmachain/common/modules/ibc/messages.d.ts +0 -8
- package/dist/sdk/firmachain/common/modules/ibc/messages.js +0 -32
- package/dist/sdk/firmachain/common/modules/ibc/queries.d.ts +0 -58
- package/dist/sdk/firmachain/common/modules/ibc/queries.js +0 -576
- package/dist/sdk/firmachain/common/modules/index.d.ts +0 -32
- package/dist/sdk/firmachain/common/modules/index.js +0 -101
- package/dist/sdk/firmachain/common/modules/mint/queries.d.ts +0 -21
- package/dist/sdk/firmachain/common/modules/mint/queries.js +0 -95
- package/dist/sdk/firmachain/common/modules/slashing/aminomessages.d.ts +0 -12
- package/dist/sdk/firmachain/common/modules/slashing/aminomessages.js +0 -11
- package/dist/sdk/firmachain/common/modules/slashing/queries.d.ts +0 -10
- package/dist/sdk/firmachain/common/modules/slashing/queries.js +0 -88
- package/dist/sdk/firmachain/common/modules/staking/aminomessages.d.ts +0 -112
- package/dist/sdk/firmachain/common/modules/staking/aminomessages.js +0 -234
- package/dist/sdk/firmachain/common/modules/staking/messages.d.ts +0 -33
- package/dist/sdk/firmachain/common/modules/staking/messages.js +0 -37
- package/dist/sdk/firmachain/common/modules/staking/queries.d.ts +0 -23
- package/dist/sdk/firmachain/common/modules/staking/queries.js +0 -242
- package/dist/sdk/firmachain/common/modules/tx/queries.d.ts +0 -11
- package/dist/sdk/firmachain/common/modules/tx/queries.js +0 -103
- package/dist/sdk/firmachain/common/modules/vesting/aminomessages.d.ts +0 -16
- package/dist/sdk/firmachain/common/modules/vesting/aminomessages.js +0 -56
- package/dist/sdk/firmachain/common/modules/vesting/messages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/vesting/messages.js +0 -7
- package/dist/sdk/firmachain/common/queryclient/index.d.ts +0 -2
- package/dist/sdk/firmachain/common/queryclient/index.js +0 -10
- package/dist/sdk/firmachain/common/queryclient/queryclient.d.ts +0 -75
- package/dist/sdk/firmachain/common/queryclient/queryclient.js +0 -157
- package/dist/sdk/firmachain/common/queryclient/utils.d.ts +0 -33
- package/dist/sdk/firmachain/common/queryclient/utils.js +0 -101
- package/dist/sdk/firmachain/common/search.d.ts +0 -10
- package/dist/sdk/firmachain/common/search.js +0 -7
- package/dist/sdk/firmachain/common/signing.d.ts +0 -15
- package/dist/sdk/firmachain/common/signing.js +0 -87
- package/dist/sdk/firmachain/common/signingstargateclient.d.ts +0 -121
- package/dist/sdk/firmachain/common/signingstargateclient.js +0 -674
- package/dist/sdk/firmachain/common/stargateclient.d.ts +0 -210
- package/dist/sdk/firmachain/common/stargateclient.js +0 -527
- package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +0 -110
- package/dist/sdk/firmachain/google/protobuf/timestamp.js +0 -108
- /package/dist/sdk/firmachain/{amino → common}/paths.d.ts +0 -0
- /package/dist/sdk/firmachain/{amino → common}/paths.js +0 -0
- /package/dist/sdk/firmachain/{amino → common}/wallet.d.ts +0 -0
- /package/dist/test/{27.arbitary_sign.test.d.ts → 27.arbitrary_sign.test.d.ts} +0 -0
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
29
|
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;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -77,7 +77,7 @@ var GovQueryClient = /** @class */ (function () {
|
|
|
77
77
|
return __generator(this, function (_a) {
|
|
78
78
|
switch (_a.label) {
|
|
79
79
|
case 0:
|
|
80
|
-
path = "/cosmos/gov/v1beta1/proposals/"
|
|
80
|
+
path = "/cosmos/gov/v1beta1/proposals/".concat(id, "/tally");
|
|
81
81
|
return [4 /*yield*/, this.axios.get(path)];
|
|
82
82
|
case 1:
|
|
83
83
|
result = _a.sent();
|
|
@@ -107,7 +107,7 @@ var GovQueryClient = /** @class */ (function () {
|
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
path = "/cosmos/gov/v1/proposals/"
|
|
110
|
+
path = "/cosmos/gov/v1/proposals/".concat(id);
|
|
111
111
|
return [4 /*yield*/, this.axios.get(path)];
|
|
112
112
|
case 1:
|
|
113
113
|
result = _a.sent();
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -57,7 +57,7 @@ var IbcQueryClient = /** @class */ (function () {
|
|
|
57
57
|
return __generator(this, function (_a) {
|
|
58
58
|
switch (_a.label) {
|
|
59
59
|
case 0:
|
|
60
|
-
path = "/ibc/core/channel/v1/channels/"
|
|
60
|
+
path = "/ibc/core/channel/v1/channels/".concat(sourceChannel, "/ports/").concat(sourcePort, "/client_state");
|
|
61
61
|
return [4 /*yield*/, this.axios.get(path)];
|
|
62
62
|
case 1:
|
|
63
63
|
result = _a.sent();
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -23,42 +23,42 @@ export interface MsgMintResponse {
|
|
|
23
23
|
}
|
|
24
24
|
export declare const MsgTransfer: {
|
|
25
25
|
encode(message: MsgTransfer, writer?: Writer): Writer;
|
|
26
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
26
|
+
decode(input: Reader | Uint8Array, length?: number): MsgTransfer;
|
|
27
27
|
fromJSON(object: any): MsgTransfer;
|
|
28
28
|
toJSON(message: MsgTransfer): unknown;
|
|
29
29
|
fromPartial(object: DeepPartial<MsgTransfer>): MsgTransfer;
|
|
30
30
|
};
|
|
31
31
|
export declare const MsgTransferResponse: {
|
|
32
32
|
encode(_: MsgTransferResponse, writer?: Writer): Writer;
|
|
33
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
33
|
+
decode(input: Reader | Uint8Array, length?: number): MsgTransferResponse;
|
|
34
34
|
fromJSON(_: any): MsgTransferResponse;
|
|
35
35
|
toJSON(_: MsgTransferResponse): unknown;
|
|
36
36
|
fromPartial(_: DeepPartial<MsgTransferResponse>): MsgTransferResponse;
|
|
37
37
|
};
|
|
38
38
|
export declare const MsgBurn: {
|
|
39
39
|
encode(message: MsgBurn, writer?: Writer): Writer;
|
|
40
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
40
|
+
decode(input: Reader | Uint8Array, length?: number): MsgBurn;
|
|
41
41
|
fromJSON(object: any): MsgBurn;
|
|
42
42
|
toJSON(message: MsgBurn): unknown;
|
|
43
43
|
fromPartial(object: DeepPartial<MsgBurn>): MsgBurn;
|
|
44
44
|
};
|
|
45
45
|
export declare const MsgBurnResponse: {
|
|
46
46
|
encode(message: MsgBurnResponse, writer?: Writer): Writer;
|
|
47
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
47
|
+
decode(input: Reader | Uint8Array, length?: number): MsgBurnResponse;
|
|
48
48
|
fromJSON(object: any): MsgBurnResponse;
|
|
49
49
|
toJSON(message: MsgBurnResponse): unknown;
|
|
50
50
|
fromPartial(object: DeepPartial<MsgBurnResponse>): MsgBurnResponse;
|
|
51
51
|
};
|
|
52
52
|
export declare const MsgMint: {
|
|
53
53
|
encode(message: MsgMint, writer?: Writer): Writer;
|
|
54
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
54
|
+
decode(input: Reader | Uint8Array, length?: number): MsgMint;
|
|
55
55
|
fromJSON(object: any): MsgMint;
|
|
56
56
|
toJSON(message: MsgMint): unknown;
|
|
57
57
|
fromPartial(object: DeepPartial<MsgMint>): MsgMint;
|
|
58
58
|
};
|
|
59
59
|
export declare const MsgMintResponse: {
|
|
60
60
|
encode(message: MsgMintResponse, writer?: Writer): Writer;
|
|
61
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
61
|
+
decode(input: Reader | Uint8Array, length?: number): MsgMintResponse;
|
|
62
62
|
fromJSON(object: any): MsgMintResponse;
|
|
63
63
|
toJSON(message: MsgMintResponse): unknown;
|
|
64
64
|
fromPartial(object: DeepPartial<MsgMintResponse>): MsgMintResponse;
|
|
@@ -79,8 +79,8 @@ export declare class MsgClientImpl implements Msg {
|
|
|
79
79
|
interface Rpc {
|
|
80
80
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
export
|
|
82
|
+
type Builtin = Date | Function | Uint8Array | string | number | undefined;
|
|
83
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
84
84
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
85
85
|
} : Partial<T>;
|
|
86
86
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Pagination } from "../common";
|
|
2
|
-
export interface
|
|
2
|
+
export interface ParamsDataType {
|
|
3
3
|
unbonding_time: string;
|
|
4
4
|
max_validators: number;
|
|
5
5
|
max_entries: number;
|
|
@@ -97,7 +97,7 @@ export declare class StakingQueryClient {
|
|
|
97
97
|
dataList: DelegationInfo[];
|
|
98
98
|
pagination: Pagination;
|
|
99
99
|
}>;
|
|
100
|
-
queryGetParams(): Promise<
|
|
100
|
+
queryGetParams(): Promise<ParamsDataType>;
|
|
101
101
|
queryGetPool(): Promise<PoolDataType>;
|
|
102
102
|
queryValidator(valoperAddress: string): Promise<ValidatorDataType>;
|
|
103
103
|
queryValidators(status: string, paginationKey?: string): Promise<{
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -57,11 +57,12 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
57
57
|
return __generator(this, function (_a) {
|
|
58
58
|
switch (_a.label) {
|
|
59
59
|
case 0:
|
|
60
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
60
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(validatorAddress, "/delegations/").concat(address, "/unbonding_delegation");
|
|
61
61
|
return [4 /*yield*/, this.axios.get(path)];
|
|
62
62
|
case 1:
|
|
63
63
|
result = _a.sent();
|
|
64
64
|
// If there is no data in the list, throw 404 exception.
|
|
65
|
+
//console.log(result);
|
|
65
66
|
return [2 /*return*/, result.data.unbond];
|
|
66
67
|
}
|
|
67
68
|
});
|
|
@@ -73,7 +74,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
73
74
|
return __generator(this, function (_a) {
|
|
74
75
|
switch (_a.label) {
|
|
75
76
|
case 0:
|
|
76
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
77
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(validatorAddress, "/delegations/").concat(address);
|
|
77
78
|
return [4 /*yield*/, this.axios.get(path)];
|
|
78
79
|
case 1:
|
|
79
80
|
result = _a.sent();
|
|
@@ -88,7 +89,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
88
89
|
return __generator(this, function (_a) {
|
|
89
90
|
switch (_a.label) {
|
|
90
91
|
case 0:
|
|
91
|
-
path = "/cosmos/staking/v1beta1/delegators/"
|
|
92
|
+
path = "/cosmos/staking/v1beta1/delegators/".concat(address, "/unbonding_delegations");
|
|
92
93
|
return [4 /*yield*/, this.axios.get(path)];
|
|
93
94
|
case 1:
|
|
94
95
|
result = _a.sent();
|
|
@@ -103,7 +104,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
103
104
|
return __generator(this, function (_a) {
|
|
104
105
|
switch (_a.label) {
|
|
105
106
|
case 0:
|
|
106
|
-
path = "/cosmos/staking/v1beta1/delegators/"
|
|
107
|
+
path = "/cosmos/staking/v1beta1/delegators/".concat(address, "/redelegations");
|
|
107
108
|
return [4 /*yield*/, this.axios.get(path)];
|
|
108
109
|
case 1:
|
|
109
110
|
result = _a.sent();
|
|
@@ -119,7 +120,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
119
120
|
return __generator(this, function (_a) {
|
|
120
121
|
switch (_a.label) {
|
|
121
122
|
case 0:
|
|
122
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
123
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(valoperAddress, "/unbonding_delegations");
|
|
123
124
|
return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey, "pagination.limit": 50 } })];
|
|
124
125
|
case 1:
|
|
125
126
|
result = _a.sent();
|
|
@@ -139,7 +140,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
139
140
|
return __generator(this, function (_a) {
|
|
140
141
|
switch (_a.label) {
|
|
141
142
|
case 0:
|
|
142
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
143
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(valoperAddress, "/delegations");
|
|
143
144
|
return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey, "pagination.limit": 50 } })];
|
|
144
145
|
case 1:
|
|
145
146
|
result = _a.sent();
|
|
@@ -159,7 +160,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
159
160
|
return __generator(this, function (_a) {
|
|
160
161
|
switch (_a.label) {
|
|
161
162
|
case 0:
|
|
162
|
-
path = "/cosmos/staking/v1beta1/delegations/"
|
|
163
|
+
path = "/cosmos/staking/v1beta1/delegations/".concat(address);
|
|
163
164
|
return [4 /*yield*/, this.axios.get(path, { params: { "pagination.key": paginationKey, "pagination.limit": 50 } })];
|
|
164
165
|
case 1:
|
|
165
166
|
result = _a.sent();
|
|
@@ -208,7 +209,7 @@ var StakingQueryClient = /** @class */ (function () {
|
|
|
208
209
|
return __generator(this, function (_a) {
|
|
209
210
|
switch (_a.label) {
|
|
210
211
|
case 0:
|
|
211
|
-
path = "/cosmos/staking/v1beta1/validators/"
|
|
212
|
+
path = "/cosmos/staking/v1beta1/validators/".concat(valoperAddress);
|
|
212
213
|
return [4 /*yield*/, this.axios.get(path)];
|
|
213
214
|
case 1:
|
|
214
215
|
result = _a.sent();
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reader, Writer } from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "
|
|
2
|
+
export declare const protobufPackage = "token";
|
|
3
3
|
export interface MsgCreateToken {
|
|
4
4
|
owner: string;
|
|
5
5
|
name: string;
|
|
@@ -36,56 +36,56 @@ export interface MsgUpdateTokenURIResponse {
|
|
|
36
36
|
}
|
|
37
37
|
export declare const MsgCreateToken: {
|
|
38
38
|
encode(message: MsgCreateToken, writer?: Writer): Writer;
|
|
39
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
39
|
+
decode(input: Reader | Uint8Array, length?: number): MsgCreateToken;
|
|
40
40
|
fromJSON(object: any): MsgCreateToken;
|
|
41
41
|
toJSON(message: MsgCreateToken): unknown;
|
|
42
42
|
fromPartial(object: DeepPartial<MsgCreateToken>): MsgCreateToken;
|
|
43
43
|
};
|
|
44
44
|
export declare const MsgCreateTokenResponse: {
|
|
45
45
|
encode(_: MsgCreateTokenResponse, writer?: Writer): Writer;
|
|
46
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
46
|
+
decode(input: Reader | Uint8Array, length?: number): MsgCreateTokenResponse;
|
|
47
47
|
fromJSON(_: any): MsgCreateTokenResponse;
|
|
48
48
|
toJSON(_: MsgCreateTokenResponse): unknown;
|
|
49
49
|
fromPartial(_: DeepPartial<MsgCreateTokenResponse>): MsgCreateTokenResponse;
|
|
50
50
|
};
|
|
51
51
|
export declare const MsgMint: {
|
|
52
52
|
encode(message: MsgMint, writer?: Writer): Writer;
|
|
53
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
53
|
+
decode(input: Reader | Uint8Array, length?: number): MsgMint;
|
|
54
54
|
fromJSON(object: any): MsgMint;
|
|
55
55
|
toJSON(message: MsgMint): unknown;
|
|
56
56
|
fromPartial(object: DeepPartial<MsgMint>): MsgMint;
|
|
57
57
|
};
|
|
58
58
|
export declare const MsgMintResponse: {
|
|
59
59
|
encode(_: MsgMintResponse, writer?: Writer): Writer;
|
|
60
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
60
|
+
decode(input: Reader | Uint8Array, length?: number): MsgMintResponse;
|
|
61
61
|
fromJSON(_: any): MsgMintResponse;
|
|
62
62
|
toJSON(_: MsgMintResponse): unknown;
|
|
63
63
|
fromPartial(_: DeepPartial<MsgMintResponse>): MsgMintResponse;
|
|
64
64
|
};
|
|
65
65
|
export declare const MsgBurn: {
|
|
66
66
|
encode(message: MsgBurn, writer?: Writer): Writer;
|
|
67
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
67
|
+
decode(input: Reader | Uint8Array, length?: number): MsgBurn;
|
|
68
68
|
fromJSON(object: any): MsgBurn;
|
|
69
69
|
toJSON(message: MsgBurn): unknown;
|
|
70
70
|
fromPartial(object: DeepPartial<MsgBurn>): MsgBurn;
|
|
71
71
|
};
|
|
72
72
|
export declare const MsgBurnResponse: {
|
|
73
73
|
encode(_: MsgBurnResponse, writer?: Writer): Writer;
|
|
74
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
74
|
+
decode(input: Reader | Uint8Array, length?: number): MsgBurnResponse;
|
|
75
75
|
fromJSON(_: any): MsgBurnResponse;
|
|
76
76
|
toJSON(_: MsgBurnResponse): unknown;
|
|
77
77
|
fromPartial(_: DeepPartial<MsgBurnResponse>): MsgBurnResponse;
|
|
78
78
|
};
|
|
79
79
|
export declare const MsgUpdateTokenURI: {
|
|
80
80
|
encode(message: MsgUpdateTokenURI, writer?: Writer): Writer;
|
|
81
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
81
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateTokenURI;
|
|
82
82
|
fromJSON(object: any): MsgUpdateTokenURI;
|
|
83
83
|
toJSON(message: MsgUpdateTokenURI): unknown;
|
|
84
84
|
fromPartial(object: DeepPartial<MsgUpdateTokenURI>): MsgUpdateTokenURI;
|
|
85
85
|
};
|
|
86
86
|
export declare const MsgUpdateTokenURIResponse: {
|
|
87
87
|
encode(_: MsgUpdateTokenURIResponse, writer?: Writer): Writer;
|
|
88
|
-
decode(input: Reader | Uint8Array, length?: number
|
|
88
|
+
decode(input: Reader | Uint8Array, length?: number): MsgUpdateTokenURIResponse;
|
|
89
89
|
fromJSON(_: any): MsgUpdateTokenURIResponse;
|
|
90
90
|
toJSON(_: MsgUpdateTokenURIResponse): unknown;
|
|
91
91
|
fromPartial(_: DeepPartial<MsgUpdateTokenURIResponse>): MsgUpdateTokenURIResponse;
|
|
@@ -109,8 +109,8 @@ export declare class MsgClientImpl implements Msg {
|
|
|
109
109
|
interface Rpc {
|
|
110
110
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
export
|
|
112
|
+
type Builtin = Date | Function | Uint8Array | string | number | undefined;
|
|
113
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
114
114
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
115
115
|
} : Partial<T>;
|
|
116
116
|
export {};
|
|
@@ -13,7 +13,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.MsgClientImpl = exports.MsgUpdateTokenURIResponse = exports.MsgUpdateTokenURI = exports.MsgBurnResponse = exports.MsgBurn = exports.MsgMintResponse = exports.MsgMint = exports.MsgCreateTokenResponse = exports.MsgCreateToken = exports.protobufPackage = void 0;
|
|
15
15
|
var minimal_1 = require("protobufjs/minimal");
|
|
16
|
-
exports.protobufPackage = "
|
|
16
|
+
exports.protobufPackage = "token";
|
|
17
17
|
var baseMsgCreateToken = {
|
|
18
18
|
owner: "",
|
|
19
19
|
name: "",
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -58,7 +58,7 @@ describe('[00. Wallet Test]', function () {
|
|
|
58
58
|
});
|
|
59
59
|
it('fromMnemonic check', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
60
|
return __generator(this, function (_a) {
|
|
61
|
-
chai_1.expect(aliceWallet.getMnemonic()).to.equal(config_test_1.aliceMnemonic);
|
|
61
|
+
(0, chai_1.expect)(aliceWallet.getMnemonic()).to.equal(config_test_1.aliceMnemonic);
|
|
62
62
|
return [2 /*return*/];
|
|
63
63
|
});
|
|
64
64
|
}); });
|
|
@@ -71,7 +71,7 @@ describe('[00. Wallet Test]', function () {
|
|
|
71
71
|
return [4 /*yield*/, firma.Wallet.fromPrivateKey(privateKey)];
|
|
72
72
|
case 1:
|
|
73
73
|
privateKeyFromWallet = (_a.sent()).getPrivateKey();
|
|
74
|
-
chai_1.expect(privateKeyFromWallet).to.equal(privateKey);
|
|
74
|
+
(0, chai_1.expect)(privateKeyFromWallet).to.equal(privateKey);
|
|
75
75
|
return [2 /*return*/];
|
|
76
76
|
}
|
|
77
77
|
});
|
|
@@ -88,7 +88,7 @@ describe('[00. Wallet Test]', function () {
|
|
|
88
88
|
return [4 /*yield*/, wallet.getPubKey()];
|
|
89
89
|
case 2:
|
|
90
90
|
pubkey = _a.sent();
|
|
91
|
-
chai_1.expect(pubkey).to.equal("AvzyjjaXumyGNQR1DRkDdozJge+MPJPFuNaMr+DAK2ks");
|
|
91
|
+
(0, chai_1.expect)(pubkey).to.equal("AvzyjjaXumyGNQR1DRkDdozJge+MPJPFuNaMr+DAK2ks");
|
|
92
92
|
return [2 /*return*/];
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -85,7 +85,7 @@ describe('[01. Contract Tx Test]', function () {
|
|
|
85
85
|
return [4 /*yield*/, firma.Contract.signAndBroadcast(aliceWallet, [tx, tx, tx])];
|
|
86
86
|
case 2:
|
|
87
87
|
result = _a.sent();
|
|
88
|
-
chai_1.expect(result.code).equal(0);
|
|
88
|
+
(0, chai_1.expect)(result.code).equal(0);
|
|
89
89
|
return [2 /*return*/];
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -104,7 +104,7 @@ describe('[01. Contract Tx Test]', function () {
|
|
|
104
104
|
return [4 /*yield*/, firma.Contract.addContractLog(aliceWallet, contractHash, timeStamp, eventName, ownerAddress, jsonString)];
|
|
105
105
|
case 1:
|
|
106
106
|
result = _a.sent();
|
|
107
|
-
chai_1.expect(result.code).equal(0);
|
|
107
|
+
(0, chai_1.expect)(result.code).equal(0);
|
|
108
108
|
return [2 /*return*/];
|
|
109
109
|
}
|
|
110
110
|
});
|
|
@@ -131,7 +131,7 @@ describe('[01. Contract Tx Test]', function () {
|
|
|
131
131
|
return [4 /*yield*/, firma.Contract.signAndBroadcast(aliceWallet, [tx1, tx2, tx3])];
|
|
132
132
|
case 4:
|
|
133
133
|
result = _a.sent();
|
|
134
|
-
chai_1.expect(result.code).equal(0);
|
|
134
|
+
(0, chai_1.expect)(result.code).equal(0);
|
|
135
135
|
return [2 /*return*/];
|
|
136
136
|
}
|
|
137
137
|
});
|
|
@@ -149,7 +149,7 @@ describe('[01. Contract Tx Test]', function () {
|
|
|
149
149
|
return [4 /*yield*/, firma.Contract.createContractFile(aliceWallet, fileHash, timeStamp, ownerList, jsonString)];
|
|
150
150
|
case 1:
|
|
151
151
|
result = _a.sent();
|
|
152
|
-
chai_1.expect(result.code).equal(0);
|
|
152
|
+
(0, chai_1.expect)(result.code).equal(0);
|
|
153
153
|
return [2 /*return*/];
|
|
154
154
|
}
|
|
155
155
|
});
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -93,7 +93,7 @@ describe('[02. Contract Query Test]', function () {
|
|
|
93
93
|
for (i = 0; i < result.dataList.length; i++) {
|
|
94
94
|
totalItemList[index++] = result.dataList[i];
|
|
95
95
|
}
|
|
96
|
-
chai_1.expect(totalItemList.length).to.be.equal(total);
|
|
96
|
+
(0, chai_1.expect)(totalItemList.length).to.be.equal(total);
|
|
97
97
|
return [2 /*return*/];
|
|
98
98
|
}
|
|
99
99
|
});
|
|
@@ -105,8 +105,8 @@ describe('[02. Contract Query Test]', function () {
|
|
|
105
105
|
case 0: return [4 /*yield*/, firma.Contract.getContractLogAll()];
|
|
106
106
|
case 1:
|
|
107
107
|
contractLogList = _a.sent();
|
|
108
|
-
chai_1.expect(contractLogList.dataList.length).to.be.equal(contractLogList.dataList.length);
|
|
109
|
-
chai_1.expect(contractLogList.dataList.length).to.be.greaterThan(0);
|
|
108
|
+
(0, chai_1.expect)(contractLogList.dataList.length).to.be.equal(contractLogList.dataList.length);
|
|
109
|
+
(0, chai_1.expect)(contractLogList.dataList.length).to.be.greaterThan(0);
|
|
110
110
|
return [2 /*return*/];
|
|
111
111
|
}
|
|
112
112
|
});
|
|
@@ -120,7 +120,7 @@ describe('[02. Contract Query Test]', function () {
|
|
|
120
120
|
return [4 /*yield*/, firma.Contract.getContractLog(logId)];
|
|
121
121
|
case 1:
|
|
122
122
|
contractLog = _a.sent();
|
|
123
|
-
chai_1.expect(contractLog.id).to.be.equal(logId);
|
|
123
|
+
(0, chai_1.expect)(contractLog.id).to.be.equal(logId);
|
|
124
124
|
return [2 /*return*/];
|
|
125
125
|
}
|
|
126
126
|
});
|
|
@@ -149,7 +149,7 @@ describe('[02. Contract Query Test]', function () {
|
|
|
149
149
|
for (i = 0; i < result.dataList.length; i++) {
|
|
150
150
|
totalItemList[index++] = result.dataList[i];
|
|
151
151
|
}
|
|
152
|
-
chai_1.expect(totalItemList.length).to.be.equal(total);
|
|
152
|
+
(0, chai_1.expect)(totalItemList.length).to.be.equal(total);
|
|
153
153
|
return [2 /*return*/];
|
|
154
154
|
}
|
|
155
155
|
});
|
|
@@ -161,8 +161,8 @@ describe('[02. Contract Query Test]', function () {
|
|
|
161
161
|
case 0: return [4 /*yield*/, firma.Contract.getContractFileAll()];
|
|
162
162
|
case 1:
|
|
163
163
|
contractFileList = _a.sent();
|
|
164
|
-
chai_1.expect(contractFileList.dataList.length).to.be.equal(contractFileList.dataList.length);
|
|
165
|
-
chai_1.expect(contractFileList.dataList.length).to.be.greaterThan(0);
|
|
164
|
+
(0, chai_1.expect)(contractFileList.dataList.length).to.be.equal(contractFileList.dataList.length);
|
|
165
|
+
(0, chai_1.expect)(contractFileList.dataList.length).to.be.greaterThan(0);
|
|
166
166
|
return [2 /*return*/];
|
|
167
167
|
}
|
|
168
168
|
});
|
|
@@ -181,11 +181,11 @@ describe('[02. Contract Query Test]', function () {
|
|
|
181
181
|
return [4 /*yield*/, firma.Contract.createContractFile(aliceWallet, fileHash, timeStamp, ownerList, jsonString)];
|
|
182
182
|
case 1:
|
|
183
183
|
result = _a.sent();
|
|
184
|
-
chai_1.expect(result.code).equal(0);
|
|
184
|
+
(0, chai_1.expect)(result.code).equal(0);
|
|
185
185
|
return [4 /*yield*/, firma.Contract.getContractFile(fileHash)];
|
|
186
186
|
case 2:
|
|
187
187
|
contractFile = _a.sent();
|
|
188
|
-
chai_1.expect(contractFile.fileHash).to.be.equal(fileHash);
|
|
188
|
+
(0, chai_1.expect)(contractFile.fileHash).to.be.equal(fileHash);
|
|
189
189
|
return [2 /*return*/];
|
|
190
190
|
}
|
|
191
191
|
});
|
|
@@ -199,7 +199,7 @@ describe('[02. Contract Query Test]', function () {
|
|
|
199
199
|
return [4 /*yield*/, firma.Contract.getContractListFromHash(contractHash)];
|
|
200
200
|
case 1:
|
|
201
201
|
idList = _a.sent();
|
|
202
|
-
chai_1.expect(idList.length).to.be.greaterThan(0);
|
|
202
|
+
(0, chai_1.expect)(idList.length).to.be.greaterThan(0);
|
|
203
203
|
return [2 /*return*/];
|
|
204
204
|
}
|
|
205
205
|
});
|
|
@@ -217,15 +217,15 @@ describe('[02. Contract Query Test]', function () {
|
|
|
217
217
|
return [4 /*yield*/, firma.Contract.createContractFile(aliceWallet, fileHash, timeStamp, ownerList, jsonString)];
|
|
218
218
|
case 1:
|
|
219
219
|
result = _a.sent();
|
|
220
|
-
chai_1.expect(result.code).equal(0);
|
|
220
|
+
(0, chai_1.expect)(result.code).equal(0);
|
|
221
221
|
return [4 /*yield*/, firma.Contract.isContractOwner(fileHash, aliceAddress)];
|
|
222
222
|
case 2:
|
|
223
223
|
isOwner = _a.sent();
|
|
224
|
-
chai_1.expect(isOwner).to.be.equal(true);
|
|
224
|
+
(0, chai_1.expect)(isOwner).to.be.equal(true);
|
|
225
225
|
return [4 /*yield*/, firma.Contract.isContractOwner(fileHash, bobAddress)];
|
|
226
226
|
case 3:
|
|
227
227
|
isOwner = _a.sent();
|
|
228
|
-
chai_1.expect(isOwner).to.be.equal(true);
|
|
228
|
+
(0, chai_1.expect)(isOwner).to.be.equal(true);
|
|
229
229
|
return [2 /*return*/];
|
|
230
230
|
}
|
|
231
231
|
});
|
|
@@ -237,7 +237,7 @@ describe('[02. Contract Query Test]', function () {
|
|
|
237
237
|
case 0: return [4 /*yield*/, FirmaUtil_1.FirmaUtil.getFileHash("./test/sample/sample_contract.pdf")];
|
|
238
238
|
case 1:
|
|
239
239
|
fileHash = _a.sent();
|
|
240
|
-
chai_1.expect(fileHash).to.be.equal("61faa15f52f19fc4c4e32e1f1208bf8d6d8134ac0a4b15bcfe05bc420e1aedb0");
|
|
240
|
+
(0, chai_1.expect)(fileHash).to.be.equal("61faa15f52f19fc4c4e32e1f1208bf8d6d8134ac0a4b15bcfe05bc420e1aedb0");
|
|
241
241
|
return [2 /*return*/];
|
|
242
242
|
}
|
|
243
243
|
});
|