@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,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isAminoMsgCreateValidator = exports.isAminoMsgBeginRedelegate = exports.createStakingAminoConverters = exports.setupSlashingExtension = exports.isAminoMsgUnjail = exports.createSlashingAminoConverters = exports.setupMintExtension = exports.setupIbcExtension = exports.isMsgTransferEncodeObject = exports.ibcTypes = exports.isAminoMsgTransfer = exports.createIbcAminoConverters = exports.groupTypes = exports.createGroupAminoConverters = exports.setupGovExtension = exports.isMsgVoteWeightedEncodeObject = exports.isMsgVoteEncodeObject = exports.isMsgSubmitProposalEncodeObject = exports.isMsgDepositEncodeObject = exports.govTypes = exports.isAminoMsgVoteWeighted = exports.isAminoMsgVote = exports.isAminoMsgSubmitProposal = exports.isAminoMsgDeposit = exports.createGovAminoConverters = exports.setupFeegrantExtension = exports.feegrantTypes = exports.createFeegrantAminoConverters = exports.isAminoMsgSubmitEvidence = exports.createEvidenceAminoConverters = exports.setupDistributionExtension = exports.isMsgWithdrawDelegatorRewardEncodeObject = exports.distributionTypes = exports.isAminoMsgWithdrawValidatorCommission = exports.isAminoMsgWithdrawDelegatorReward = exports.isAminoMsgSetWithdrawAddress = exports.isAminoMsgFundCommunityPool = exports.createDistributionAminoConverters = exports.isAminoMsgVerifyInvariant = exports.createCrysisAminoConverters = exports.setupBankExtension = exports.isMsgSendEncodeObject = exports.bankTypes = exports.isAminoMsgSend = exports.isAminoMsgMultiSend = exports.createBankAminoConverters = exports.setupAuthzExtension = exports.authzTypes = exports.createAuthzAminoConverters = exports.setupAuthExtension = void 0;
|
|
4
|
+
exports.vestingTypes = exports.isAminoMsgCreateVestingAccount = exports.createVestingAminoConverters = exports.setupTxExtension = exports.setupStakingExtension = exports.stakingTypes = exports.isMsgUndelegateEncodeObject = exports.isMsgEditValidatorEncodeObject = exports.isMsgDelegateEncodeObject = exports.isMsgCreateValidatorEncodeObject = exports.isMsgCancelUnbondingDelegationEncodeObject = exports.isMsgBeginRedelegateEncodeObject = exports.isAminoMsgUndelegate = exports.isAminoMsgEditValidator = exports.isAminoMsgDelegate = void 0;
|
|
5
|
+
var queries_1 = require("./auth/queries");
|
|
6
|
+
Object.defineProperty(exports, "setupAuthExtension", { enumerable: true, get: function () { return queries_1.setupAuthExtension; } });
|
|
7
|
+
var aminomessages_1 = require("./authz/aminomessages");
|
|
8
|
+
Object.defineProperty(exports, "createAuthzAminoConverters", { enumerable: true, get: function () { return aminomessages_1.createAuthzAminoConverters; } });
|
|
9
|
+
var messages_1 = require("./authz/messages");
|
|
10
|
+
Object.defineProperty(exports, "authzTypes", { enumerable: true, get: function () { return messages_1.authzTypes; } });
|
|
11
|
+
var queries_2 = require("./authz/queries");
|
|
12
|
+
Object.defineProperty(exports, "setupAuthzExtension", { enumerable: true, get: function () { return queries_2.setupAuthzExtension; } });
|
|
13
|
+
var aminomessages_2 = require("./bank/aminomessages");
|
|
14
|
+
Object.defineProperty(exports, "createBankAminoConverters", { enumerable: true, get: function () { return aminomessages_2.createBankAminoConverters; } });
|
|
15
|
+
Object.defineProperty(exports, "isAminoMsgMultiSend", { enumerable: true, get: function () { return aminomessages_2.isAminoMsgMultiSend; } });
|
|
16
|
+
Object.defineProperty(exports, "isAminoMsgSend", { enumerable: true, get: function () { return aminomessages_2.isAminoMsgSend; } });
|
|
17
|
+
var messages_2 = require("./bank/messages");
|
|
18
|
+
Object.defineProperty(exports, "bankTypes", { enumerable: true, get: function () { return messages_2.bankTypes; } });
|
|
19
|
+
Object.defineProperty(exports, "isMsgSendEncodeObject", { enumerable: true, get: function () { return messages_2.isMsgSendEncodeObject; } });
|
|
20
|
+
var queries_3 = require("./bank/queries");
|
|
21
|
+
Object.defineProperty(exports, "setupBankExtension", { enumerable: true, get: function () { return queries_3.setupBankExtension; } });
|
|
22
|
+
var aminomessages_3 = require("./crisis/aminomessages");
|
|
23
|
+
Object.defineProperty(exports, "createCrysisAminoConverters", { enumerable: true, get: function () { return aminomessages_3.createCrysisAminoConverters; } });
|
|
24
|
+
Object.defineProperty(exports, "isAminoMsgVerifyInvariant", { enumerable: true, get: function () { return aminomessages_3.isAminoMsgVerifyInvariant; } });
|
|
25
|
+
var aminomessages_4 = require("./distribution/aminomessages");
|
|
26
|
+
Object.defineProperty(exports, "createDistributionAminoConverters", { enumerable: true, get: function () { return aminomessages_4.createDistributionAminoConverters; } });
|
|
27
|
+
Object.defineProperty(exports, "isAminoMsgFundCommunityPool", { enumerable: true, get: function () { return aminomessages_4.isAminoMsgFundCommunityPool; } });
|
|
28
|
+
Object.defineProperty(exports, "isAminoMsgSetWithdrawAddress", { enumerable: true, get: function () { return aminomessages_4.isAminoMsgSetWithdrawAddress; } });
|
|
29
|
+
Object.defineProperty(exports, "isAminoMsgWithdrawDelegatorReward", { enumerable: true, get: function () { return aminomessages_4.isAminoMsgWithdrawDelegatorReward; } });
|
|
30
|
+
Object.defineProperty(exports, "isAminoMsgWithdrawValidatorCommission", { enumerable: true, get: function () { return aminomessages_4.isAminoMsgWithdrawValidatorCommission; } });
|
|
31
|
+
var messages_3 = require("./distribution/messages");
|
|
32
|
+
Object.defineProperty(exports, "distributionTypes", { enumerable: true, get: function () { return messages_3.distributionTypes; } });
|
|
33
|
+
Object.defineProperty(exports, "isMsgWithdrawDelegatorRewardEncodeObject", { enumerable: true, get: function () { return messages_3.isMsgWithdrawDelegatorRewardEncodeObject; } });
|
|
34
|
+
var queries_4 = require("./distribution/queries");
|
|
35
|
+
Object.defineProperty(exports, "setupDistributionExtension", { enumerable: true, get: function () { return queries_4.setupDistributionExtension; } });
|
|
36
|
+
var aminomessages_5 = require("./evidence/aminomessages");
|
|
37
|
+
Object.defineProperty(exports, "createEvidenceAminoConverters", { enumerable: true, get: function () { return aminomessages_5.createEvidenceAminoConverters; } });
|
|
38
|
+
Object.defineProperty(exports, "isAminoMsgSubmitEvidence", { enumerable: true, get: function () { return aminomessages_5.isAminoMsgSubmitEvidence; } });
|
|
39
|
+
var aminomessages_6 = require("./feegrant/aminomessages");
|
|
40
|
+
Object.defineProperty(exports, "createFeegrantAminoConverters", { enumerable: true, get: function () { return aminomessages_6.createFeegrantAminoConverters; } });
|
|
41
|
+
var messages_4 = require("./feegrant/messages");
|
|
42
|
+
Object.defineProperty(exports, "feegrantTypes", { enumerable: true, get: function () { return messages_4.feegrantTypes; } });
|
|
43
|
+
var queries_5 = require("./feegrant/queries");
|
|
44
|
+
Object.defineProperty(exports, "setupFeegrantExtension", { enumerable: true, get: function () { return queries_5.setupFeegrantExtension; } });
|
|
45
|
+
var aminomessages_7 = require("./gov/aminomessages");
|
|
46
|
+
Object.defineProperty(exports, "createGovAminoConverters", { enumerable: true, get: function () { return aminomessages_7.createGovAminoConverters; } });
|
|
47
|
+
Object.defineProperty(exports, "isAminoMsgDeposit", { enumerable: true, get: function () { return aminomessages_7.isAminoMsgDeposit; } });
|
|
48
|
+
Object.defineProperty(exports, "isAminoMsgSubmitProposal", { enumerable: true, get: function () { return aminomessages_7.isAminoMsgSubmitProposal; } });
|
|
49
|
+
Object.defineProperty(exports, "isAminoMsgVote", { enumerable: true, get: function () { return aminomessages_7.isAminoMsgVote; } });
|
|
50
|
+
Object.defineProperty(exports, "isAminoMsgVoteWeighted", { enumerable: true, get: function () { return aminomessages_7.isAminoMsgVoteWeighted; } });
|
|
51
|
+
var messages_5 = require("./gov/messages");
|
|
52
|
+
Object.defineProperty(exports, "govTypes", { enumerable: true, get: function () { return messages_5.govTypes; } });
|
|
53
|
+
Object.defineProperty(exports, "isMsgDepositEncodeObject", { enumerable: true, get: function () { return messages_5.isMsgDepositEncodeObject; } });
|
|
54
|
+
Object.defineProperty(exports, "isMsgSubmitProposalEncodeObject", { enumerable: true, get: function () { return messages_5.isMsgSubmitProposalEncodeObject; } });
|
|
55
|
+
Object.defineProperty(exports, "isMsgVoteEncodeObject", { enumerable: true, get: function () { return messages_5.isMsgVoteEncodeObject; } });
|
|
56
|
+
Object.defineProperty(exports, "isMsgVoteWeightedEncodeObject", { enumerable: true, get: function () { return messages_5.isMsgVoteWeightedEncodeObject; } });
|
|
57
|
+
var queries_6 = require("./gov/queries");
|
|
58
|
+
Object.defineProperty(exports, "setupGovExtension", { enumerable: true, get: function () { return queries_6.setupGovExtension; } });
|
|
59
|
+
var aminomessages_8 = require("./group/aminomessages");
|
|
60
|
+
Object.defineProperty(exports, "createGroupAminoConverters", { enumerable: true, get: function () { return aminomessages_8.createGroupAminoConverters; } });
|
|
61
|
+
var messages_6 = require("./group/messages");
|
|
62
|
+
Object.defineProperty(exports, "groupTypes", { enumerable: true, get: function () { return messages_6.groupTypes; } });
|
|
63
|
+
var aminomessages_9 = require("./ibc/aminomessages");
|
|
64
|
+
Object.defineProperty(exports, "createIbcAminoConverters", { enumerable: true, get: function () { return aminomessages_9.createIbcAminoConverters; } });
|
|
65
|
+
Object.defineProperty(exports, "isAminoMsgTransfer", { enumerable: true, get: function () { return aminomessages_9.isAminoMsgTransfer; } });
|
|
66
|
+
var messages_7 = require("./ibc/messages");
|
|
67
|
+
Object.defineProperty(exports, "ibcTypes", { enumerable: true, get: function () { return messages_7.ibcTypes; } });
|
|
68
|
+
Object.defineProperty(exports, "isMsgTransferEncodeObject", { enumerable: true, get: function () { return messages_7.isMsgTransferEncodeObject; } });
|
|
69
|
+
var queries_7 = require("./ibc/queries");
|
|
70
|
+
Object.defineProperty(exports, "setupIbcExtension", { enumerable: true, get: function () { return queries_7.setupIbcExtension; } });
|
|
71
|
+
var queries_8 = require("./mint/queries");
|
|
72
|
+
Object.defineProperty(exports, "setupMintExtension", { enumerable: true, get: function () { return queries_8.setupMintExtension; } });
|
|
73
|
+
var aminomessages_10 = require("./slashing/aminomessages");
|
|
74
|
+
Object.defineProperty(exports, "createSlashingAminoConverters", { enumerable: true, get: function () { return aminomessages_10.createSlashingAminoConverters; } });
|
|
75
|
+
Object.defineProperty(exports, "isAminoMsgUnjail", { enumerable: true, get: function () { return aminomessages_10.isAminoMsgUnjail; } });
|
|
76
|
+
var queries_9 = require("./slashing/queries");
|
|
77
|
+
Object.defineProperty(exports, "setupSlashingExtension", { enumerable: true, get: function () { return queries_9.setupSlashingExtension; } });
|
|
78
|
+
var aminomessages_11 = require("./staking/aminomessages");
|
|
79
|
+
Object.defineProperty(exports, "createStakingAminoConverters", { enumerable: true, get: function () { return aminomessages_11.createStakingAminoConverters; } });
|
|
80
|
+
Object.defineProperty(exports, "isAminoMsgBeginRedelegate", { enumerable: true, get: function () { return aminomessages_11.isAminoMsgBeginRedelegate; } });
|
|
81
|
+
Object.defineProperty(exports, "isAminoMsgCreateValidator", { enumerable: true, get: function () { return aminomessages_11.isAminoMsgCreateValidator; } });
|
|
82
|
+
Object.defineProperty(exports, "isAminoMsgDelegate", { enumerable: true, get: function () { return aminomessages_11.isAminoMsgDelegate; } });
|
|
83
|
+
Object.defineProperty(exports, "isAminoMsgEditValidator", { enumerable: true, get: function () { return aminomessages_11.isAminoMsgEditValidator; } });
|
|
84
|
+
Object.defineProperty(exports, "isAminoMsgUndelegate", { enumerable: true, get: function () { return aminomessages_11.isAminoMsgUndelegate; } });
|
|
85
|
+
var messages_8 = require("./staking/messages");
|
|
86
|
+
Object.defineProperty(exports, "isMsgBeginRedelegateEncodeObject", { enumerable: true, get: function () { return messages_8.isMsgBeginRedelegateEncodeObject; } });
|
|
87
|
+
Object.defineProperty(exports, "isMsgCancelUnbondingDelegationEncodeObject", { enumerable: true, get: function () { return messages_8.isMsgCancelUnbondingDelegationEncodeObject; } });
|
|
88
|
+
Object.defineProperty(exports, "isMsgCreateValidatorEncodeObject", { enumerable: true, get: function () { return messages_8.isMsgCreateValidatorEncodeObject; } });
|
|
89
|
+
Object.defineProperty(exports, "isMsgDelegateEncodeObject", { enumerable: true, get: function () { return messages_8.isMsgDelegateEncodeObject; } });
|
|
90
|
+
Object.defineProperty(exports, "isMsgEditValidatorEncodeObject", { enumerable: true, get: function () { return messages_8.isMsgEditValidatorEncodeObject; } });
|
|
91
|
+
Object.defineProperty(exports, "isMsgUndelegateEncodeObject", { enumerable: true, get: function () { return messages_8.isMsgUndelegateEncodeObject; } });
|
|
92
|
+
Object.defineProperty(exports, "stakingTypes", { enumerable: true, get: function () { return messages_8.stakingTypes; } });
|
|
93
|
+
var queries_10 = require("./staking/queries");
|
|
94
|
+
Object.defineProperty(exports, "setupStakingExtension", { enumerable: true, get: function () { return queries_10.setupStakingExtension; } });
|
|
95
|
+
var queries_11 = require("./tx/queries");
|
|
96
|
+
Object.defineProperty(exports, "setupTxExtension", { enumerable: true, get: function () { return queries_11.setupTxExtension; } });
|
|
97
|
+
var aminomessages_12 = require("./vesting/aminomessages");
|
|
98
|
+
Object.defineProperty(exports, "createVestingAminoConverters", { enumerable: true, get: function () { return aminomessages_12.createVestingAminoConverters; } });
|
|
99
|
+
Object.defineProperty(exports, "isAminoMsgCreateVestingAccount", { enumerable: true, get: function () { return aminomessages_12.isAminoMsgCreateVestingAccount; } });
|
|
100
|
+
var messages_9 = require("./vesting/messages");
|
|
101
|
+
Object.defineProperty(exports, "vestingTypes", { enumerable: true, get: function () { return messages_9.vestingTypes; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Decimal } from "@cosmjs/math";
|
|
2
|
+
import { Params } from "cosmjs-types/cosmos/mint/v1beta1/mint";
|
|
3
|
+
import { QueryClient } from "../../queryclient";
|
|
4
|
+
/**
|
|
5
|
+
* Like Params from "cosmjs-types/cosmos/mint/v1beta1/mint"
|
|
6
|
+
* but using decimal types.
|
|
7
|
+
*/
|
|
8
|
+
export interface MintParams extends Pick<Params, "blocksPerYear" | "mintDenom"> {
|
|
9
|
+
readonly goalBonded: Decimal;
|
|
10
|
+
readonly inflationMin: Decimal;
|
|
11
|
+
readonly inflationMax: Decimal;
|
|
12
|
+
readonly inflationRateChange: Decimal;
|
|
13
|
+
}
|
|
14
|
+
export interface MintExtension {
|
|
15
|
+
readonly mint: {
|
|
16
|
+
readonly params: () => Promise<MintParams>;
|
|
17
|
+
readonly inflation: () => Promise<Decimal>;
|
|
18
|
+
readonly annualProvisions: () => Promise<Decimal>;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare function setupMintExtension(base: QueryClient): MintExtension;
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.setupMintExtension = void 0;
|
|
40
|
+
var utils_1 = require("@cosmjs/utils");
|
|
41
|
+
var query_1 = require("cosmjs-types/cosmos/mint/v1beta1/query");
|
|
42
|
+
var queryclient_1 = require("../../queryclient");
|
|
43
|
+
function setupMintExtension(base) {
|
|
44
|
+
var _this = this;
|
|
45
|
+
var rpc = queryclient_1.createProtobufRpcClient(base);
|
|
46
|
+
// Use this service to get easy typed access to query methods
|
|
47
|
+
// This cannot be used for proof verification
|
|
48
|
+
var queryService = new query_1.QueryClientImpl(rpc);
|
|
49
|
+
return {
|
|
50
|
+
mint: {
|
|
51
|
+
params: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
52
|
+
var params;
|
|
53
|
+
return __generator(this, function (_a) {
|
|
54
|
+
switch (_a.label) {
|
|
55
|
+
case 0: return [4 /*yield*/, queryService.Params({})];
|
|
56
|
+
case 1:
|
|
57
|
+
params = (_a.sent()).params;
|
|
58
|
+
utils_1.assert(params);
|
|
59
|
+
return [2 /*return*/, {
|
|
60
|
+
blocksPerYear: params.blocksPerYear,
|
|
61
|
+
goalBonded: queryclient_1.decodeCosmosSdkDecFromProto(params.goalBonded),
|
|
62
|
+
inflationMin: queryclient_1.decodeCosmosSdkDecFromProto(params.inflationMin),
|
|
63
|
+
inflationMax: queryclient_1.decodeCosmosSdkDecFromProto(params.inflationMax),
|
|
64
|
+
inflationRateChange: queryclient_1.decodeCosmosSdkDecFromProto(params.inflationRateChange),
|
|
65
|
+
mintDenom: params.mintDenom,
|
|
66
|
+
}];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}); },
|
|
70
|
+
inflation: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
71
|
+
var inflation;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
switch (_a.label) {
|
|
74
|
+
case 0: return [4 /*yield*/, queryService.Inflation({})];
|
|
75
|
+
case 1:
|
|
76
|
+
inflation = (_a.sent()).inflation;
|
|
77
|
+
return [2 /*return*/, queryclient_1.decodeCosmosSdkDecFromProto(inflation)];
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}); },
|
|
81
|
+
annualProvisions: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
82
|
+
var annualProvisions;
|
|
83
|
+
return __generator(this, function (_a) {
|
|
84
|
+
switch (_a.label) {
|
|
85
|
+
case 0: return [4 /*yield*/, queryService.AnnualProvisions({})];
|
|
86
|
+
case 1:
|
|
87
|
+
annualProvisions = (_a.sent()).annualProvisions;
|
|
88
|
+
return [2 /*return*/, queryclient_1.decodeCosmosSdkDecFromProto(annualProvisions)];
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}); },
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
exports.setupMintExtension = setupMintExtension;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AminoMsg } from "@cosmjs/amino";
|
|
2
|
+
import { AminoConverters } from "../../aminotypes";
|
|
3
|
+
/** Unjails a jailed validator */
|
|
4
|
+
export interface AminoMsgUnjail extends AminoMsg {
|
|
5
|
+
readonly type: "cosmos-sdk/MsgUnjail";
|
|
6
|
+
readonly value: {
|
|
7
|
+
/** Bech32 account address */
|
|
8
|
+
readonly validator_addr: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function isAminoMsgUnjail(msg: AminoMsg): msg is AminoMsgUnjail;
|
|
12
|
+
export declare function createSlashingAminoConverters(): AminoConverters;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSlashingAminoConverters = exports.isAminoMsgUnjail = void 0;
|
|
4
|
+
function isAminoMsgUnjail(msg) {
|
|
5
|
+
return msg.type === "cosmos-sdk/MsgUnjail";
|
|
6
|
+
}
|
|
7
|
+
exports.isAminoMsgUnjail = isAminoMsgUnjail;
|
|
8
|
+
function createSlashingAminoConverters() {
|
|
9
|
+
throw new Error("Not implemented");
|
|
10
|
+
}
|
|
11
|
+
exports.createSlashingAminoConverters = createSlashingAminoConverters;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QueryParamsResponse, QuerySigningInfoResponse, QuerySigningInfosResponse } from "cosmjs-types/cosmos/slashing/v1beta1/query";
|
|
2
|
+
import { QueryClient } from "../../queryclient";
|
|
3
|
+
export interface SlashingExtension {
|
|
4
|
+
readonly slashing: {
|
|
5
|
+
signingInfo: (consAddress: string) => Promise<QuerySigningInfoResponse>;
|
|
6
|
+
signingInfos: (paginationKey?: Uint8Array) => Promise<QuerySigningInfosResponse>;
|
|
7
|
+
params: () => Promise<QueryParamsResponse>;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare function setupSlashingExtension(base: QueryClient): SlashingExtension;
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.setupSlashingExtension = void 0;
|
|
40
|
+
var query_1 = require("cosmjs-types/cosmos/slashing/v1beta1/query");
|
|
41
|
+
var queryclient_1 = require("../../queryclient");
|
|
42
|
+
function setupSlashingExtension(base) {
|
|
43
|
+
var _this = this;
|
|
44
|
+
var rpc = queryclient_1.createProtobufRpcClient(base);
|
|
45
|
+
var queryService = new query_1.QueryClientImpl(rpc);
|
|
46
|
+
return {
|
|
47
|
+
slashing: {
|
|
48
|
+
signingInfo: function (consAddress) { return __awaiter(_this, void 0, void 0, function () {
|
|
49
|
+
var response;
|
|
50
|
+
return __generator(this, function (_a) {
|
|
51
|
+
switch (_a.label) {
|
|
52
|
+
case 0: return [4 /*yield*/, queryService.SigningInfo({
|
|
53
|
+
consAddress: consAddress,
|
|
54
|
+
})];
|
|
55
|
+
case 1:
|
|
56
|
+
response = _a.sent();
|
|
57
|
+
return [2 /*return*/, response];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}); },
|
|
61
|
+
signingInfos: function (paginationKey) { return __awaiter(_this, void 0, void 0, function () {
|
|
62
|
+
var response;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
switch (_a.label) {
|
|
65
|
+
case 0: return [4 /*yield*/, queryService.SigningInfos({
|
|
66
|
+
pagination: queryclient_1.createPagination(paginationKey),
|
|
67
|
+
})];
|
|
68
|
+
case 1:
|
|
69
|
+
response = _a.sent();
|
|
70
|
+
return [2 /*return*/, response];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}); },
|
|
74
|
+
params: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
75
|
+
var response;
|
|
76
|
+
return __generator(this, function (_a) {
|
|
77
|
+
switch (_a.label) {
|
|
78
|
+
case 0: return [4 /*yield*/, queryService.Params({})];
|
|
79
|
+
case 1:
|
|
80
|
+
response = _a.sent();
|
|
81
|
+
return [2 /*return*/, response];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}); },
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
exports.setupSlashingExtension = setupSlashingExtension;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { AminoMsg, Coin, Pubkey } from "@cosmjs/amino";
|
|
2
|
+
import { AminoConverter } from "../..";
|
|
3
|
+
/** The initial commission rates to be used for creating a validator */
|
|
4
|
+
interface CommissionRates {
|
|
5
|
+
readonly rate: string;
|
|
6
|
+
readonly max_rate: string;
|
|
7
|
+
readonly max_change_rate: string;
|
|
8
|
+
}
|
|
9
|
+
/** A validator description. */
|
|
10
|
+
interface Description {
|
|
11
|
+
readonly moniker: string;
|
|
12
|
+
readonly identity: string;
|
|
13
|
+
readonly website: string;
|
|
14
|
+
readonly security_contact: string;
|
|
15
|
+
readonly details: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function protoDecimalToJson(decimal: string): string;
|
|
18
|
+
/** Creates a new validator. */
|
|
19
|
+
export interface AminoMsgCreateValidator extends AminoMsg {
|
|
20
|
+
readonly type: "cosmos-sdk/MsgCreateValidator";
|
|
21
|
+
readonly value: {
|
|
22
|
+
readonly description: Description;
|
|
23
|
+
readonly commission: CommissionRates;
|
|
24
|
+
readonly min_self_delegation: string;
|
|
25
|
+
/** Bech32 encoded delegator address */
|
|
26
|
+
readonly delegator_address: string;
|
|
27
|
+
/** Bech32 encoded validator address */
|
|
28
|
+
readonly validator_address: string;
|
|
29
|
+
/** Public key */
|
|
30
|
+
readonly pubkey: Pubkey;
|
|
31
|
+
readonly value: Coin;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare function isAminoMsgCreateValidator(msg: AminoMsg): msg is AminoMsgCreateValidator;
|
|
35
|
+
/** Edits an existing validator. */
|
|
36
|
+
export interface AminoMsgEditValidator extends AminoMsg {
|
|
37
|
+
readonly type: "cosmos-sdk/MsgEditValidator";
|
|
38
|
+
readonly value: {
|
|
39
|
+
readonly description: Description;
|
|
40
|
+
/** Bech32 encoded validator address */
|
|
41
|
+
readonly validator_address: string;
|
|
42
|
+
/**
|
|
43
|
+
* The new value for the comission rate.
|
|
44
|
+
*
|
|
45
|
+
* An empty string in the protobuf document means "do not change".
|
|
46
|
+
* In Amino JSON this empty string becomes undefined (omitempty)
|
|
47
|
+
*/
|
|
48
|
+
readonly commission_rate: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The new value for the comission rate.
|
|
51
|
+
*
|
|
52
|
+
* An empty string in the protobuf document means "do not change".
|
|
53
|
+
* In Amino JSON this empty string becomes undefined (omitempty)
|
|
54
|
+
*/
|
|
55
|
+
readonly min_self_delegation: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export declare function isAminoMsgEditValidator(msg: AminoMsg): msg is AminoMsgEditValidator;
|
|
59
|
+
/**
|
|
60
|
+
* Performs a delegation from a delegate to a validator.
|
|
61
|
+
*
|
|
62
|
+
* @see https://docs.cosmos.network/master/modules/staking/03_messages.html#msgdelegate
|
|
63
|
+
*/
|
|
64
|
+
export interface AminoMsgDelegate extends AminoMsg {
|
|
65
|
+
readonly type: "cosmos-sdk/MsgDelegate";
|
|
66
|
+
readonly value: {
|
|
67
|
+
/** Bech32 encoded delegator address */
|
|
68
|
+
readonly delegator_address: string;
|
|
69
|
+
/** Bech32 encoded validator address */
|
|
70
|
+
readonly validator_address: string;
|
|
71
|
+
readonly amount: Coin;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export declare function isAminoMsgDelegate(msg: AminoMsg): msg is AminoMsgDelegate;
|
|
75
|
+
/** Performs a redelegation from a delegate and source validator to a destination validator */
|
|
76
|
+
export interface AminoMsgBeginRedelegate extends AminoMsg {
|
|
77
|
+
readonly type: "cosmos-sdk/MsgBeginRedelegate";
|
|
78
|
+
readonly value: {
|
|
79
|
+
/** Bech32 encoded delegator address */
|
|
80
|
+
readonly delegator_address: string;
|
|
81
|
+
/** Bech32 encoded source validator address */
|
|
82
|
+
readonly validator_src_address: string;
|
|
83
|
+
/** Bech32 encoded destination validator address */
|
|
84
|
+
readonly validator_dst_address: string;
|
|
85
|
+
readonly amount: Coin;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export declare function isAminoMsgBeginRedelegate(msg: AminoMsg): msg is AminoMsgBeginRedelegate;
|
|
89
|
+
/** Performs an undelegation from a delegate and a validator */
|
|
90
|
+
export interface AminoMsgUndelegate extends AminoMsg {
|
|
91
|
+
readonly type: "cosmos-sdk/MsgUndelegate";
|
|
92
|
+
readonly value: {
|
|
93
|
+
/** Bech32 encoded delegator address */
|
|
94
|
+
readonly delegator_address: string;
|
|
95
|
+
/** Bech32 encoded validator address */
|
|
96
|
+
readonly validator_address: string;
|
|
97
|
+
readonly amount: Coin;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export declare function isAminoMsgUndelegate(msg: AminoMsg): msg is AminoMsgUndelegate;
|
|
101
|
+
export interface AminoMsgCancelUnbondingDelegation extends AminoMsg {
|
|
102
|
+
readonly type: "cosmos-sdk/MsgCancelUnbondingDelegation";
|
|
103
|
+
readonly value: {
|
|
104
|
+
readonly delegator_address: string;
|
|
105
|
+
readonly validator_address: string;
|
|
106
|
+
readonly amount: Coin;
|
|
107
|
+
readonly creation_height: string;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export declare function isAminoMsgCancelUnbondingDelegation(msg: AminoMsg): msg is AminoMsgCancelUnbondingDelegation;
|
|
111
|
+
export declare function createStakingAminoConverters(): Record<string, AminoConverter>;
|
|
112
|
+
export {};
|