@firmachain/firma-js 0.3.4 → 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 +199 -144
- 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/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
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { Coin } from "./coins";
|
|
2
|
-
import { AminoMsg } from "./signdoc";
|
|
3
|
-
/** A high level transaction of the coin module */
|
|
4
|
-
export interface AminoMsgSend extends AminoMsg {
|
|
5
|
-
readonly type: "cosmos-sdk/MsgSend";
|
|
6
|
-
readonly value: {
|
|
7
|
-
/** Bech32 account address */
|
|
8
|
-
readonly from_address: string;
|
|
9
|
-
/** Bech32 account address */
|
|
10
|
-
readonly to_address: string;
|
|
11
|
-
readonly amount: readonly Coin[];
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare function isAminoMsgSend(msg: AminoMsg): msg is AminoMsgSend;
|
|
15
|
-
interface Input {
|
|
16
|
-
/** Bech32 account address */
|
|
17
|
-
readonly address: string;
|
|
18
|
-
readonly coins: readonly Coin[];
|
|
19
|
-
}
|
|
20
|
-
interface Output {
|
|
21
|
-
/** Bech32 account address */
|
|
22
|
-
readonly address: string;
|
|
23
|
-
readonly coins: readonly Coin[];
|
|
24
|
-
}
|
|
25
|
-
/** A high level transaction of the coin module */
|
|
26
|
-
export interface AminoMsgMultiSend extends AminoMsg {
|
|
27
|
-
readonly type: "cosmos-sdk/MsgMultiSend";
|
|
28
|
-
readonly value: {
|
|
29
|
-
readonly inputs: readonly Input[];
|
|
30
|
-
readonly outputs: readonly Output[];
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export declare function isAminoMsgMultiSend(msg: AminoMsg): msg is AminoMsgMultiSend;
|
|
34
|
-
/** Verifies a particular invariance */
|
|
35
|
-
export interface AminoMsgVerifyInvariant extends AminoMsg {
|
|
36
|
-
readonly type: "cosmos-sdk/MsgVerifyInvariant";
|
|
37
|
-
readonly value: {
|
|
38
|
-
/** Bech32 account address */
|
|
39
|
-
readonly sender: string;
|
|
40
|
-
readonly invariant_module_name: string;
|
|
41
|
-
readonly invariant_route: string;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export declare function isAminoMsgVerifyInvariant(msg: AminoMsg): msg is AminoMsgVerifyInvariant;
|
|
45
|
-
/** Changes the withdraw address for a delegator (or validator self-delegation) */
|
|
46
|
-
export interface AminoMsgSetWithdrawAddress extends AminoMsg {
|
|
47
|
-
readonly type: "cosmos-sdk/MsgModifyWithdrawAddress";
|
|
48
|
-
readonly value: {
|
|
49
|
-
/** Bech32 account address */
|
|
50
|
-
readonly delegator_address: string;
|
|
51
|
-
/** Bech32 account address */
|
|
52
|
-
readonly withdraw_address: string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export declare function isAminoMsgSetWithdrawAddress(msg: AminoMsg): msg is AminoMsgSetWithdrawAddress;
|
|
56
|
-
/** Message for delegation withdraw from a single validator */
|
|
57
|
-
export interface AminoMsgWithdrawDelegatorReward extends AminoMsg {
|
|
58
|
-
readonly type: "cosmos-sdk/MsgWithdrawDelegationReward";
|
|
59
|
-
readonly value: {
|
|
60
|
-
/** Bech32 account address */
|
|
61
|
-
readonly delegator_address: string;
|
|
62
|
-
/** Bech32 account address */
|
|
63
|
-
readonly validator_address: string;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export declare function isAminoMsgWithdrawDelegatorReward(msg: AminoMsg): msg is AminoMsgWithdrawDelegatorReward;
|
|
67
|
-
/** Message for validator withdraw */
|
|
68
|
-
export interface AminoMsgWithdrawValidatorCommission extends AminoMsg {
|
|
69
|
-
readonly type: "cosmos-sdk/MsgWithdrawValidatorCommission";
|
|
70
|
-
readonly value: {
|
|
71
|
-
/** Bech32 account address */
|
|
72
|
-
readonly validator_address: string;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
export declare function isAminoMsgWithdrawValidatorCommission(msg: AminoMsg): msg is AminoMsgWithdrawValidatorCommission;
|
|
76
|
-
/** Allows an account to directly fund the community pool. */
|
|
77
|
-
export interface AminoMsgFundCommunityPool extends AminoMsg {
|
|
78
|
-
readonly type: "cosmos-sdk/MsgFundCommunityPool";
|
|
79
|
-
readonly value: {
|
|
80
|
-
readonly amount: readonly Coin[];
|
|
81
|
-
/** Bech32 account address */
|
|
82
|
-
readonly depositor: string;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export declare function isAminoMsgFundCommunityPool(msg: AminoMsg): msg is AminoMsgFundCommunityPool;
|
|
86
|
-
interface Any {
|
|
87
|
-
readonly type_url: string;
|
|
88
|
-
readonly value: Uint8Array;
|
|
89
|
-
}
|
|
90
|
-
/** Supports submitting arbitrary evidence */
|
|
91
|
-
export interface AminoMsgSubmitEvidence extends AminoMsg {
|
|
92
|
-
readonly type: "cosmos-sdk/MsgSubmitEvidence";
|
|
93
|
-
readonly value: {
|
|
94
|
-
/** Bech32 account address */
|
|
95
|
-
readonly submitter: string;
|
|
96
|
-
readonly evidence: Any;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
export declare function isAminoMsgSubmitEvidence(msg: AminoMsg): msg is AminoMsgSubmitEvidence;
|
|
100
|
-
/** Supports submitting arbitrary proposal content. */
|
|
101
|
-
export interface AminoMsgSubmitProposal extends AminoMsg {
|
|
102
|
-
readonly type: "cosmos-sdk/MsgSubmitProposal";
|
|
103
|
-
readonly value: {
|
|
104
|
-
/**
|
|
105
|
-
* A proposal structure, e.g.
|
|
106
|
-
*
|
|
107
|
-
* ```
|
|
108
|
-
* {
|
|
109
|
-
* type: 'cosmos-sdk/TextProposal',
|
|
110
|
-
* value: {
|
|
111
|
-
* description: 'This proposal proposes to test whether this proposal passes',
|
|
112
|
-
* title: 'Test Proposal'
|
|
113
|
-
* }
|
|
114
|
-
* }
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
readonly content: {
|
|
118
|
-
readonly type: string;
|
|
119
|
-
readonly value: any;
|
|
120
|
-
};
|
|
121
|
-
readonly initial_deposit: readonly Coin[];
|
|
122
|
-
/** Bech32 account address */
|
|
123
|
-
readonly proposer: string;
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
export declare function isAminoMsgSubmitProposal(msg: AminoMsg): msg is AminoMsgSubmitProposal;
|
|
127
|
-
export interface AminoMsgCancelProposal extends AminoMsg {
|
|
128
|
-
readonly type: "cosmos-sdk/MsgCancelProposal";
|
|
129
|
-
readonly value: {
|
|
130
|
-
readonly proposalId: string;
|
|
131
|
-
/** Bech32 account address */
|
|
132
|
-
readonly proposer: string;
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
export declare function isAminoMsgCancelProposal(msg: AminoMsg): msg is AminoMsgCancelProposal;
|
|
136
|
-
/** Casts a vote */
|
|
137
|
-
export interface AminoMsgVote extends AminoMsg {
|
|
138
|
-
readonly type: "cosmos-sdk/MsgVote";
|
|
139
|
-
readonly value: {
|
|
140
|
-
readonly proposal_id: string;
|
|
141
|
-
/** Bech32 account address */
|
|
142
|
-
readonly voter: string;
|
|
143
|
-
/**
|
|
144
|
-
* VoteOption as integer from 0 to 4 🤷
|
|
145
|
-
*
|
|
146
|
-
* @see https://github.com/cosmos/cosmos-sdk/blob/v0.42.9/x/gov/types/gov.pb.go#L38-L49
|
|
147
|
-
*/
|
|
148
|
-
readonly option: number;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
export declare function isAminoMsgVote(msg: AminoMsg): msg is AminoMsgVote;
|
|
152
|
-
/** Submits a deposit to an existing proposal */
|
|
153
|
-
export interface AminoMsgDeposit extends AminoMsg {
|
|
154
|
-
readonly type: "cosmos-sdk/MsgDeposit";
|
|
155
|
-
readonly value: {
|
|
156
|
-
readonly proposal_id: string;
|
|
157
|
-
/** Bech32 account address */
|
|
158
|
-
readonly depositor: string;
|
|
159
|
-
readonly amount: readonly Coin[];
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
export declare function isAminoMsgDeposit(msg: AminoMsg): msg is AminoMsgDeposit;
|
|
163
|
-
/** Unjails a jailed validator */
|
|
164
|
-
export interface AminoMsgUnjail extends AminoMsg {
|
|
165
|
-
readonly type: "cosmos-sdk/MsgUnjail";
|
|
166
|
-
readonly value: {
|
|
167
|
-
/** Bech32 account address */
|
|
168
|
-
readonly validator_addr: string;
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
export declare function isAminoMsgUnjail(msg: AminoMsg): msg is AminoMsgUnjail;
|
|
172
|
-
/** The initial commission rates to be used for creating a validator */
|
|
173
|
-
interface CommissionRates {
|
|
174
|
-
readonly rate: string;
|
|
175
|
-
readonly max_rate: string;
|
|
176
|
-
readonly max_change_rate: string;
|
|
177
|
-
}
|
|
178
|
-
/** A validator description. */
|
|
179
|
-
interface Description {
|
|
180
|
-
readonly moniker: string;
|
|
181
|
-
readonly identity: string;
|
|
182
|
-
readonly website: string;
|
|
183
|
-
readonly security_contact: string;
|
|
184
|
-
readonly details: string;
|
|
185
|
-
}
|
|
186
|
-
/** Creates a new validator. */
|
|
187
|
-
export interface AminoMsgCreateValidator extends AminoMsg {
|
|
188
|
-
readonly type: "cosmos-sdk/MsgCreateValidator";
|
|
189
|
-
readonly value: {
|
|
190
|
-
readonly description: Description;
|
|
191
|
-
readonly commission: CommissionRates;
|
|
192
|
-
readonly min_self_delegation: string;
|
|
193
|
-
/** Bech32 encoded delegator address */
|
|
194
|
-
readonly delegator_address: string;
|
|
195
|
-
/** Bech32 encoded validator address */
|
|
196
|
-
readonly validator_address: string;
|
|
197
|
-
/** Bech32 encoded public key */
|
|
198
|
-
readonly pubkey: string;
|
|
199
|
-
readonly value: Coin;
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
export declare function isAminoMsgCreateValidator(msg: AminoMsg): msg is AminoMsgCreateValidator;
|
|
203
|
-
/** Edits an existing validator. */
|
|
204
|
-
export interface AminoMsgEditValidator extends AminoMsg {
|
|
205
|
-
readonly type: "cosmos-sdk/MsgEditValidator";
|
|
206
|
-
readonly value: {
|
|
207
|
-
readonly description: Description;
|
|
208
|
-
/** Bech32 encoded validator address */
|
|
209
|
-
readonly validator_address: string;
|
|
210
|
-
readonly commission_rate: string;
|
|
211
|
-
readonly min_self_delegation: string;
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
export declare function isAminoMsgEditValidator(msg: AminoMsg): msg is AminoMsgEditValidator;
|
|
215
|
-
/**
|
|
216
|
-
* Performs a delegation from a delegate to a validator.
|
|
217
|
-
*
|
|
218
|
-
* @see https://docs.cosmos.network/master/modules/staking/03_messages.html#msgdelegate
|
|
219
|
-
*/
|
|
220
|
-
export interface AminoMsgDelegate extends AminoMsg {
|
|
221
|
-
readonly type: "cosmos-sdk/MsgDelegate";
|
|
222
|
-
readonly value: {
|
|
223
|
-
/** Bech32 encoded delegator address */
|
|
224
|
-
readonly delegator_address: string;
|
|
225
|
-
/** Bech32 encoded validator address */
|
|
226
|
-
readonly validator_address: string;
|
|
227
|
-
readonly amount: Coin;
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
export declare function isAminoMsgDelegate(msg: AminoMsg): msg is AminoMsgDelegate;
|
|
231
|
-
/** Performs a redelegation from a delegate and source validator to a destination validator */
|
|
232
|
-
export interface AminoMsgBeginRedelegate extends AminoMsg {
|
|
233
|
-
readonly type: "cosmos-sdk/MsgBeginRedelegate";
|
|
234
|
-
readonly value: {
|
|
235
|
-
/** Bech32 encoded delegator address */
|
|
236
|
-
readonly delegator_address: string;
|
|
237
|
-
/** Bech32 encoded source validator address */
|
|
238
|
-
readonly validator_src_address: string;
|
|
239
|
-
/** Bech32 encoded destination validator address */
|
|
240
|
-
readonly validator_dst_address: string;
|
|
241
|
-
readonly amount: Coin;
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
export declare function isAminoMsgBeginRedelegate(msg: AminoMsg): msg is AminoMsgBeginRedelegate;
|
|
245
|
-
/** Performs an undelegation from a delegate and a validator */
|
|
246
|
-
export interface AminoMsgUndelegate extends AminoMsg {
|
|
247
|
-
readonly type: "cosmos-sdk/MsgUndelegate";
|
|
248
|
-
readonly value: {
|
|
249
|
-
/** Bech32 encoded delegator address */
|
|
250
|
-
readonly delegator_address: string;
|
|
251
|
-
/** Bech32 encoded validator address */
|
|
252
|
-
readonly validator_address: string;
|
|
253
|
-
readonly amount: Coin;
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
export declare function isAminoMsgUndelegate(msg: AminoMsg): msg is AminoMsgUndelegate;
|
|
257
|
-
interface AminoHeight {
|
|
258
|
-
/** 0 values must be omitted (https://github.com/cosmos/cosmos-sdk/blob/v0.42.7/x/ibc/core/02-client/types/client.pb.go#L252). */
|
|
259
|
-
readonly revision_number?: string;
|
|
260
|
-
/** 0 values must be omitted (https://github.com/cosmos/cosmos-sdk/blob/v0.42.7/x/ibc/core/02-client/types/client.pb.go#L254). */
|
|
261
|
-
readonly revision_height?: string;
|
|
262
|
-
}
|
|
263
|
-
/** Transfers fungible tokens (i.e Coins) between ICS20 enabled chains */
|
|
264
|
-
export interface AminoMsgTransfer extends AminoMsg {
|
|
265
|
-
readonly type: "cosmos-sdk/MsgTransfer";
|
|
266
|
-
readonly value: {
|
|
267
|
-
readonly source_port: string;
|
|
268
|
-
readonly source_channel: string;
|
|
269
|
-
readonly token?: Coin;
|
|
270
|
-
/** Bech32 account address */
|
|
271
|
-
readonly sender: string;
|
|
272
|
-
/** Bech32 account address */
|
|
273
|
-
readonly receiver: string;
|
|
274
|
-
/**
|
|
275
|
-
* The timeout as a (revision_number, revision_height) pair.
|
|
276
|
-
*
|
|
277
|
-
* This fied is is non-optional (https://github.com/cosmos/cosmos-sdk/blob/v0.42.7/x/ibc/applications/transfer/types/tx.pb.go#L49).
|
|
278
|
-
* In order to not set the timeout height, set it to {}.
|
|
279
|
-
*/
|
|
280
|
-
readonly timeout_height: AminoHeight;
|
|
281
|
-
/**
|
|
282
|
-
* Timeout timestamp (in nanoseconds). The timeout is disabled when set to 0.
|
|
283
|
-
*
|
|
284
|
-
* 0 values must be omitted (https://github.com/cosmos/cosmos-sdk/blob/v0.42.7/x/ibc/applications/transfer/types/tx.pb.go#L52).
|
|
285
|
-
*/
|
|
286
|
-
readonly timeout_timestamp?: string;
|
|
287
|
-
readonly memo?: string;
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
export declare function isAminoMsgTransfer(msg: AminoMsg): msg is AminoMsgTransfer;
|
|
291
|
-
export {};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isAminoMsgTransfer = exports.isAminoMsgUndelegate = exports.isAminoMsgBeginRedelegate = exports.isAminoMsgDelegate = exports.isAminoMsgEditValidator = exports.isAminoMsgCreateValidator = exports.isAminoMsgUnjail = exports.isAminoMsgDeposit = exports.isAminoMsgVote = exports.isAminoMsgCancelProposal = exports.isAminoMsgSubmitProposal = exports.isAminoMsgSubmitEvidence = exports.isAminoMsgFundCommunityPool = exports.isAminoMsgWithdrawValidatorCommission = exports.isAminoMsgWithdrawDelegatorReward = exports.isAminoMsgSetWithdrawAddress = exports.isAminoMsgVerifyInvariant = exports.isAminoMsgMultiSend = exports.isAminoMsgSend = void 0;
|
|
4
|
-
function isAminoMsgSend(msg) {
|
|
5
|
-
return msg.type === "cosmos-sdk/MsgSend";
|
|
6
|
-
}
|
|
7
|
-
exports.isAminoMsgSend = isAminoMsgSend;
|
|
8
|
-
function isAminoMsgMultiSend(msg) {
|
|
9
|
-
return msg.type === "cosmos-sdk/MsgMultiSend";
|
|
10
|
-
}
|
|
11
|
-
exports.isAminoMsgMultiSend = isAminoMsgMultiSend;
|
|
12
|
-
function isAminoMsgVerifyInvariant(msg) {
|
|
13
|
-
return msg.type === "cosmos-sdk/MsgVerifyInvariant";
|
|
14
|
-
}
|
|
15
|
-
exports.isAminoMsgVerifyInvariant = isAminoMsgVerifyInvariant;
|
|
16
|
-
function isAminoMsgSetWithdrawAddress(msg) {
|
|
17
|
-
// NOTE: Type string and names diverge here!
|
|
18
|
-
return msg.type === "cosmos-sdk/MsgModifyWithdrawAddress";
|
|
19
|
-
}
|
|
20
|
-
exports.isAminoMsgSetWithdrawAddress = isAminoMsgSetWithdrawAddress;
|
|
21
|
-
function isAminoMsgWithdrawDelegatorReward(msg) {
|
|
22
|
-
// NOTE: Type string and names diverge here!
|
|
23
|
-
return msg.type === "cosmos-sdk/MsgWithdrawDelegationReward";
|
|
24
|
-
}
|
|
25
|
-
exports.isAminoMsgWithdrawDelegatorReward = isAminoMsgWithdrawDelegatorReward;
|
|
26
|
-
function isAminoMsgWithdrawValidatorCommission(msg) {
|
|
27
|
-
return msg.type === "cosmos-sdk/MsgWithdrawValidatorCommission";
|
|
28
|
-
}
|
|
29
|
-
exports.isAminoMsgWithdrawValidatorCommission = isAminoMsgWithdrawValidatorCommission;
|
|
30
|
-
function isAminoMsgFundCommunityPool(msg) {
|
|
31
|
-
return msg.type === "cosmos-sdk/MsgFundCommunityPool";
|
|
32
|
-
}
|
|
33
|
-
exports.isAminoMsgFundCommunityPool = isAminoMsgFundCommunityPool;
|
|
34
|
-
function isAminoMsgSubmitEvidence(msg) {
|
|
35
|
-
return msg.type === "cosmos-sdk/MsgSubmitEvidence";
|
|
36
|
-
}
|
|
37
|
-
exports.isAminoMsgSubmitEvidence = isAminoMsgSubmitEvidence;
|
|
38
|
-
function isAminoMsgSubmitProposal(msg) {
|
|
39
|
-
return msg.type === "cosmos-sdk/MsgSubmitProposal";
|
|
40
|
-
}
|
|
41
|
-
exports.isAminoMsgSubmitProposal = isAminoMsgSubmitProposal;
|
|
42
|
-
function isAminoMsgCancelProposal(msg) {
|
|
43
|
-
return msg.type === "cosmos-sdk/MsgCancelProposal";
|
|
44
|
-
}
|
|
45
|
-
exports.isAminoMsgCancelProposal = isAminoMsgCancelProposal;
|
|
46
|
-
function isAminoMsgVote(msg) {
|
|
47
|
-
return msg.type === "cosmos-sdk/MsgVote";
|
|
48
|
-
}
|
|
49
|
-
exports.isAminoMsgVote = isAminoMsgVote;
|
|
50
|
-
function isAminoMsgDeposit(msg) {
|
|
51
|
-
return msg.type === "cosmos-sdk/MsgDeposit";
|
|
52
|
-
}
|
|
53
|
-
exports.isAminoMsgDeposit = isAminoMsgDeposit;
|
|
54
|
-
function isAminoMsgUnjail(msg) {
|
|
55
|
-
return msg.type === "cosmos-sdk/MsgUnjail";
|
|
56
|
-
}
|
|
57
|
-
exports.isAminoMsgUnjail = isAminoMsgUnjail;
|
|
58
|
-
function isAminoMsgCreateValidator(msg) {
|
|
59
|
-
return msg.type === "cosmos-sdk/MsgCreateValidator";
|
|
60
|
-
}
|
|
61
|
-
exports.isAminoMsgCreateValidator = isAminoMsgCreateValidator;
|
|
62
|
-
function isAminoMsgEditValidator(msg) {
|
|
63
|
-
return msg.type === "cosmos-sdk/MsgEditValidator";
|
|
64
|
-
}
|
|
65
|
-
exports.isAminoMsgEditValidator = isAminoMsgEditValidator;
|
|
66
|
-
function isAminoMsgDelegate(msg) {
|
|
67
|
-
return msg.type === "cosmos-sdk/MsgDelegate";
|
|
68
|
-
}
|
|
69
|
-
exports.isAminoMsgDelegate = isAminoMsgDelegate;
|
|
70
|
-
function isAminoMsgBeginRedelegate(msg) {
|
|
71
|
-
return msg.type === "cosmos-sdk/MsgBeginRedelegate";
|
|
72
|
-
}
|
|
73
|
-
exports.isAminoMsgBeginRedelegate = isAminoMsgBeginRedelegate;
|
|
74
|
-
function isAminoMsgUndelegate(msg) {
|
|
75
|
-
return msg.type === "cosmos-sdk/MsgUndelegate";
|
|
76
|
-
}
|
|
77
|
-
exports.isAminoMsgUndelegate = isAminoMsgUndelegate;
|
|
78
|
-
function isAminoMsgTransfer(msg) {
|
|
79
|
-
return msg.type === "cosmos-sdk/MsgTransfer";
|
|
80
|
-
}
|
|
81
|
-
exports.isAminoMsgTransfer = isAminoMsgTransfer;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AminoMsg } from "./signdoc";
|
|
2
|
-
import { EncodeObject } from "@cosmjs/proto-signing";
|
|
3
|
-
export interface AminoConverter {
|
|
4
|
-
readonly aminoType: string;
|
|
5
|
-
readonly toAmino: (value: any) => any;
|
|
6
|
-
readonly fromAmino: (value: any) => any;
|
|
7
|
-
}
|
|
8
|
-
interface AminoTypesOptions {
|
|
9
|
-
readonly additions?: Record<string, AminoConverter>;
|
|
10
|
-
readonly prefix?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* A map from Stargate message types as used in the messages's `Any` type
|
|
14
|
-
* to Amino types.
|
|
15
|
-
*/
|
|
16
|
-
export declare class AminoTypes {
|
|
17
|
-
private readonly register;
|
|
18
|
-
constructor({ additions, prefix }?: AminoTypesOptions);
|
|
19
|
-
toAmino({ typeUrl, value }: EncodeObject): AminoMsg;
|
|
20
|
-
fromAmino({ type, value }: AminoMsg): EncodeObject;
|
|
21
|
-
}
|
|
22
|
-
export {};
|