@firmachain/firma-js 0.2.20 → 0.2.21
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/LICENSE +20 -20
- package/README.md +136 -136
- package/dist/index.d.ts +4 -4
- package/dist/index.js +16 -16
- package/dist/sdk/FirmaBankService.d.ts +15 -15
- package/dist/sdk/FirmaBankService.js +211 -211
- package/dist/sdk/FirmaChainService.d.ts +8 -8
- package/dist/sdk/FirmaChainService.js +86 -86
- package/dist/sdk/FirmaConfig.d.ts +16 -16
- package/dist/sdk/FirmaConfig.js +55 -55
- package/dist/sdk/FirmaContractService.d.ts +31 -30
- package/dist/sdk/FirmaContractService.js +413 -394
- package/dist/sdk/FirmaDistributionService.d.ts +31 -31
- package/dist/sdk/FirmaDistributionService.js +524 -524
- package/dist/sdk/FirmaFeeGrantService.d.ts +21 -21
- package/dist/sdk/FirmaFeeGrantService.js +341 -341
- package/dist/sdk/FirmaGovService.d.ts +35 -35
- package/dist/sdk/FirmaGovService.js +775 -775
- package/dist/sdk/FirmaIpfsService.d.ts +12 -12
- package/dist/sdk/FirmaIpfsService.js +185 -185
- package/dist/sdk/FirmaMobileSDK.d.ts +27 -27
- package/dist/sdk/FirmaMobileSDK.js +45 -45
- package/dist/sdk/FirmaNftService.d.ts +31 -28
- package/dist/sdk/FirmaNftService.js +372 -390
- package/dist/sdk/FirmaSDK.d.ts +29 -29
- package/dist/sdk/FirmaSDK.js +48 -48
- package/dist/sdk/FirmaSlashingService.d.ts +9 -9
- package/dist/sdk/FirmaSlashingService.js +105 -105
- package/dist/sdk/FirmaStakingService.d.ts +34 -34
- package/dist/sdk/FirmaStakingService.js +604 -604
- package/dist/sdk/FirmaTokenService.d.ts +26 -26
- package/dist/sdk/FirmaTokenService.js +416 -416
- package/dist/sdk/FirmaUtil.d.ts +26 -26
- package/dist/sdk/FirmaUtil.js +210 -210
- package/dist/sdk/FirmaWalletService.d.ts +36 -36
- package/dist/sdk/FirmaWalletService.js +309 -309
- package/dist/sdk/firmachain/amino/addresses.d.ts +5 -5
- package/dist/sdk/firmachain/amino/addresses.js +46 -46
- package/dist/sdk/firmachain/amino/aminomsgs.d.ts +281 -281
- package/dist/sdk/firmachain/amino/aminomsgs.js +77 -77
- package/dist/sdk/firmachain/amino/aminotypes.d.ts +22 -22
- package/dist/sdk/firmachain/amino/aminotypes.js +521 -521
- package/dist/sdk/firmachain/amino/coins.d.ts +30 -30
- package/dist/sdk/firmachain/amino/coins.js +69 -69
- package/dist/sdk/firmachain/amino/encoding.d.ts +24 -24
- package/dist/sdk/firmachain/amino/encoding.js +234 -234
- package/dist/sdk/firmachain/amino/multisig.d.ts +10 -10
- package/dist/sdk/firmachain/amino/multisig.js +42 -42
- package/dist/sdk/firmachain/amino/paths.d.ts +6 -6
- package/dist/sdk/firmachain/amino/paths.js +18 -18
- package/dist/sdk/firmachain/amino/pubkeys.d.ts +47 -47
- package/dist/sdk/firmachain/amino/pubkeys.js +29 -29
- package/dist/sdk/firmachain/amino/secp256k1hdwallet.d.ts +94 -94
- package/dist/sdk/firmachain/amino/secp256k1hdwallet.js +437 -437
- package/dist/sdk/firmachain/amino/secp256k1wallet.d.ts +23 -23
- package/dist/sdk/firmachain/amino/secp256k1wallet.js +141 -141
- package/dist/sdk/firmachain/amino/signature.d.ts +16 -16
- package/dist/sdk/firmachain/amino/signature.js +36 -36
- package/dist/sdk/firmachain/amino/signdoc.d.ts +26 -26
- package/dist/sdk/firmachain/amino/signdoc.js +42 -42
- package/dist/sdk/firmachain/amino/signer.d.ts +33 -33
- package/dist/sdk/firmachain/amino/signer.js +2 -2
- package/dist/sdk/firmachain/amino/stdtx.d.ts +15 -15
- package/dist/sdk/firmachain/amino/stdtx.js +17 -17
- package/dist/sdk/firmachain/amino/wallet.d.ts +32 -32
- package/dist/sdk/firmachain/amino/wallet.js +132 -132
- package/dist/sdk/firmachain/bank/BankQueryClient.d.ts +12 -12
- package/dist/sdk/firmachain/bank/BankQueryClient.js +116 -116
- package/dist/sdk/firmachain/bank/BankTxClient.d.ts +17 -17
- package/dist/sdk/firmachain/bank/BankTxClient.js +40 -40
- package/dist/sdk/firmachain/bank/index.d.ts +3 -3
- package/dist/sdk/firmachain/bank/index.js +15 -15
- package/dist/sdk/firmachain/common/ITxClient.d.ts +15 -15
- package/dist/sdk/firmachain/common/ITxClient.js +102 -102
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.d.ts +27 -27
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +165 -165
- package/dist/sdk/firmachain/common/LedgerWallet.d.ts +14 -14
- package/dist/sdk/firmachain/common/LedgerWallet.js +147 -147
- package/dist/sdk/firmachain/common/QueryCommon.d.ts +4 -4
- package/dist/sdk/firmachain/common/QueryCommon.js +2 -2
- package/dist/sdk/firmachain/common/TendermintQueryClient.d.ts +42 -42
- package/dist/sdk/firmachain/common/TendermintQueryClient.js +108 -108
- package/dist/sdk/firmachain/common/TxCommon.d.ts +94 -94
- package/dist/sdk/firmachain/common/TxCommon.js +34 -34
- package/dist/sdk/firmachain/common/accounts.d.ts +16 -16
- package/dist/sdk/firmachain/common/accounts.js +64 -64
- package/dist/sdk/firmachain/common/index.d.ts +2 -2
- package/dist/sdk/firmachain/common/index.js +14 -14
- package/dist/sdk/firmachain/common/signing.d.ts +10 -10
- package/dist/sdk/firmachain/common/signing.js +75 -75
- package/dist/sdk/firmachain/common/signingstargateclient.d.ts +37 -37
- package/dist/sdk/firmachain/common/signingstargateclient.js +298 -298
- package/dist/sdk/firmachain/common/stargateclient.d.ts +46 -46
- package/dist/sdk/firmachain/common/stargateclient.js +211 -211
- package/dist/sdk/firmachain/contract/ContractQueryClient.d.ts +32 -31
- package/dist/sdk/firmachain/contract/ContractQueryClient.js +156 -141
- package/dist/sdk/firmachain/contract/ContractTxClient.d.ts +17 -17
- package/dist/sdk/firmachain/contract/ContractTxClient.js +40 -40
- package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +69 -69
- package/dist/sdk/firmachain/contract/ContractTxTypes.js +483 -483
- package/dist/sdk/firmachain/contract/index.d.ts +3 -3
- package/dist/sdk/firmachain/contract/index.js +15 -15
- package/dist/sdk/firmachain/distribution/DistributionQueryClient.d.ts +18 -18
- package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +167 -167
- package/dist/sdk/firmachain/distribution/DistributionTxClient.d.ts +27 -27
- package/dist/sdk/firmachain/distribution/DistributionTxClient.js +48 -48
- package/dist/sdk/firmachain/distribution/index.d.ts +3 -3
- package/dist/sdk/firmachain/distribution/index.js +15 -15
- package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.d.ts +17 -17
- package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +86 -86
- package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.d.ts +17 -17
- package/dist/sdk/firmachain/feegrant/FeeGrantTxClient.js +40 -40
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +76 -76
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.js +194 -194
- package/dist/sdk/firmachain/feegrant/index.d.ts +2 -2
- package/dist/sdk/firmachain/feegrant/index.js +15 -15
- package/dist/sdk/firmachain/google/protobuf/any.d.ts +128 -128
- package/dist/sdk/firmachain/google/protobuf/any.js +106 -106
- package/dist/sdk/firmachain/google/protobuf/descriptor.d.ts +996 -996
- package/dist/sdk/firmachain/google/protobuf/descriptor.js +5329 -5329
- package/dist/sdk/firmachain/google/protobuf/duration.d.ts +91 -91
- package/dist/sdk/firmachain/google/protobuf/duration.js +107 -107
- package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +109 -109
- package/dist/sdk/firmachain/google/protobuf/timestamp.js +107 -107
- package/dist/sdk/firmachain/gov/GovQueryClient.d.ts +61 -61
- package/dist/sdk/firmachain/gov/GovQueryClient.js +152 -152
- package/dist/sdk/firmachain/gov/GovTxClient.d.ts +22 -22
- package/dist/sdk/firmachain/gov/GovTxClient.js +44 -44
- package/dist/sdk/firmachain/gov/index.d.ts +3 -3
- package/dist/sdk/firmachain/gov/index.js +15 -15
- package/dist/sdk/firmachain/nft/NftQueryClient.d.ts +20 -17
- package/dist/sdk/firmachain/nft/NftQueryClient.js +125 -121
- package/dist/sdk/firmachain/nft/NftTxClient.d.ts +22 -22
- package/dist/sdk/firmachain/nft/NftTxClient.js +44 -44
- package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +86 -86
- package/dist/sdk/firmachain/nft/NftTxTypes.js +424 -424
- package/dist/sdk/firmachain/nft/index.d.ts +3 -3
- package/dist/sdk/firmachain/nft/index.js +15 -15
- package/dist/sdk/firmachain/slashing/SlashingQueryClient.d.ts +22 -22
- package/dist/sdk/firmachain/slashing/SlashingQueryClient.js +101 -101
- package/dist/sdk/firmachain/slashing/index.d.ts +2 -2
- package/dist/sdk/firmachain/slashing/index.js +14 -14
- package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +93 -93
- package/dist/sdk/firmachain/staking/StakingQueryClient.js +223 -223
- package/dist/sdk/firmachain/staking/StakingTxClient.d.ts +32 -32
- package/dist/sdk/firmachain/staking/StakingTxClient.js +52 -52
- package/dist/sdk/firmachain/staking/index.d.ts +3 -3
- package/dist/sdk/firmachain/staking/index.js +15 -15
- package/dist/sdk/firmachain/token/TokenQueryClient.d.ts +24 -24
- package/dist/sdk/firmachain/token/TokenQueryClient.js +106 -106
- package/dist/sdk/firmachain/token/TokenTxClient.d.ts +27 -27
- package/dist/sdk/firmachain/token/TokenTxClient.js +48 -48
- package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +116 -116
- package/dist/sdk/firmachain/token/TokenTxTypes.js +685 -685
- package/dist/sdk/firmachain/token/index.d.ts +3 -3
- package/dist/sdk/firmachain/token/index.js +15 -15
- package/package.json +54 -54
|
@@ -1,77 +1,77 @@
|
|
|
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.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 isAminoMsgVote(msg) {
|
|
43
|
-
return msg.type === "cosmos-sdk/MsgVote";
|
|
44
|
-
}
|
|
45
|
-
exports.isAminoMsgVote = isAminoMsgVote;
|
|
46
|
-
function isAminoMsgDeposit(msg) {
|
|
47
|
-
return msg.type === "cosmos-sdk/MsgDeposit";
|
|
48
|
-
}
|
|
49
|
-
exports.isAminoMsgDeposit = isAminoMsgDeposit;
|
|
50
|
-
function isAminoMsgUnjail(msg) {
|
|
51
|
-
return msg.type === "cosmos-sdk/MsgUnjail";
|
|
52
|
-
}
|
|
53
|
-
exports.isAminoMsgUnjail = isAminoMsgUnjail;
|
|
54
|
-
function isAminoMsgCreateValidator(msg) {
|
|
55
|
-
return msg.type === "cosmos-sdk/MsgCreateValidator";
|
|
56
|
-
}
|
|
57
|
-
exports.isAminoMsgCreateValidator = isAminoMsgCreateValidator;
|
|
58
|
-
function isAminoMsgEditValidator(msg) {
|
|
59
|
-
return msg.type === "cosmos-sdk/MsgEditValidator";
|
|
60
|
-
}
|
|
61
|
-
exports.isAminoMsgEditValidator = isAminoMsgEditValidator;
|
|
62
|
-
function isAminoMsgDelegate(msg) {
|
|
63
|
-
return msg.type === "cosmos-sdk/MsgDelegate";
|
|
64
|
-
}
|
|
65
|
-
exports.isAminoMsgDelegate = isAminoMsgDelegate;
|
|
66
|
-
function isAminoMsgBeginRedelegate(msg) {
|
|
67
|
-
return msg.type === "cosmos-sdk/MsgBeginRedelegate";
|
|
68
|
-
}
|
|
69
|
-
exports.isAminoMsgBeginRedelegate = isAminoMsgBeginRedelegate;
|
|
70
|
-
function isAminoMsgUndelegate(msg) {
|
|
71
|
-
return msg.type === "cosmos-sdk/MsgUndelegate";
|
|
72
|
-
}
|
|
73
|
-
exports.isAminoMsgUndelegate = isAminoMsgUndelegate;
|
|
74
|
-
function isAminoMsgTransfer(msg) {
|
|
75
|
-
return msg.type === "cosmos-sdk/MsgTransfer";
|
|
76
|
-
}
|
|
77
|
-
exports.isAminoMsgTransfer = isAminoMsgTransfer;
|
|
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.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 isAminoMsgVote(msg) {
|
|
43
|
+
return msg.type === "cosmos-sdk/MsgVote";
|
|
44
|
+
}
|
|
45
|
+
exports.isAminoMsgVote = isAminoMsgVote;
|
|
46
|
+
function isAminoMsgDeposit(msg) {
|
|
47
|
+
return msg.type === "cosmos-sdk/MsgDeposit";
|
|
48
|
+
}
|
|
49
|
+
exports.isAminoMsgDeposit = isAminoMsgDeposit;
|
|
50
|
+
function isAminoMsgUnjail(msg) {
|
|
51
|
+
return msg.type === "cosmos-sdk/MsgUnjail";
|
|
52
|
+
}
|
|
53
|
+
exports.isAminoMsgUnjail = isAminoMsgUnjail;
|
|
54
|
+
function isAminoMsgCreateValidator(msg) {
|
|
55
|
+
return msg.type === "cosmos-sdk/MsgCreateValidator";
|
|
56
|
+
}
|
|
57
|
+
exports.isAminoMsgCreateValidator = isAminoMsgCreateValidator;
|
|
58
|
+
function isAminoMsgEditValidator(msg) {
|
|
59
|
+
return msg.type === "cosmos-sdk/MsgEditValidator";
|
|
60
|
+
}
|
|
61
|
+
exports.isAminoMsgEditValidator = isAminoMsgEditValidator;
|
|
62
|
+
function isAminoMsgDelegate(msg) {
|
|
63
|
+
return msg.type === "cosmos-sdk/MsgDelegate";
|
|
64
|
+
}
|
|
65
|
+
exports.isAminoMsgDelegate = isAminoMsgDelegate;
|
|
66
|
+
function isAminoMsgBeginRedelegate(msg) {
|
|
67
|
+
return msg.type === "cosmos-sdk/MsgBeginRedelegate";
|
|
68
|
+
}
|
|
69
|
+
exports.isAminoMsgBeginRedelegate = isAminoMsgBeginRedelegate;
|
|
70
|
+
function isAminoMsgUndelegate(msg) {
|
|
71
|
+
return msg.type === "cosmos-sdk/MsgUndelegate";
|
|
72
|
+
}
|
|
73
|
+
exports.isAminoMsgUndelegate = isAminoMsgUndelegate;
|
|
74
|
+
function isAminoMsgTransfer(msg) {
|
|
75
|
+
return msg.type === "cosmos-sdk/MsgTransfer";
|
|
76
|
+
}
|
|
77
|
+
exports.isAminoMsgTransfer = isAminoMsgTransfer;
|
|
@@ -1,22 +1,22 @@
|
|
|
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 {};
|
|
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 {};
|