@firmachain/firma-js 0.2.20 → 0.2.24
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 +18 -16
- package/dist/sdk/FirmaConfig.js +63 -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 +37 -26
- package/dist/sdk/FirmaUtil.js +230 -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 +87 -94
- package/dist/sdk/firmachain/common/TxCommon.js +18 -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 +56 -55
|
@@ -1,94 +1,87 @@
|
|
|
1
|
-
/// <reference types="long" />
|
|
2
|
-
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
3
|
-
import { Any } from "../google/protobuf/any";
|
|
4
|
-
export interface StdFee {
|
|
5
|
-
amount: Coin[];
|
|
6
|
-
gas: string;
|
|
7
|
-
granter: string;
|
|
8
|
-
}
|
|
9
|
-
export interface BasicFeeGrantOption {
|
|
10
|
-
spendLimit?: number;
|
|
11
|
-
expiration?: Date;
|
|
12
|
-
}
|
|
13
|
-
export interface PeriodicFeeGrantOption {
|
|
14
|
-
basicSpendLimit?: number;
|
|
15
|
-
basicExpiration?: Date;
|
|
16
|
-
periodSeconds: number;
|
|
17
|
-
periodSpendLimit: number;
|
|
18
|
-
periodCanSpend: number;
|
|
19
|
-
periodReset: Date;
|
|
20
|
-
}
|
|
21
|
-
export declare const DefaultBasicFeeGrantOption: {
|
|
22
|
-
spendLimit: undefined;
|
|
23
|
-
expiration: undefined;
|
|
24
|
-
};
|
|
25
|
-
export interface TxMisc {
|
|
26
|
-
memo?: string;
|
|
27
|
-
fee?: number;
|
|
28
|
-
gas?: number;
|
|
29
|
-
feeGranter?: string;
|
|
30
|
-
}
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
memo: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
commission
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
export interface SoftwareUpgradePlan {
|
|
89
|
-
name: string;
|
|
90
|
-
time?: Date;
|
|
91
|
-
height?: Long;
|
|
92
|
-
info?: string;
|
|
93
|
-
upgradedClientState?: Any;
|
|
94
|
-
}
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
3
|
+
import { Any } from "../google/protobuf/any";
|
|
4
|
+
export interface StdFee {
|
|
5
|
+
amount: Coin[];
|
|
6
|
+
gas: string;
|
|
7
|
+
granter: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BasicFeeGrantOption {
|
|
10
|
+
spendLimit?: number;
|
|
11
|
+
expiration?: Date;
|
|
12
|
+
}
|
|
13
|
+
export interface PeriodicFeeGrantOption {
|
|
14
|
+
basicSpendLimit?: number;
|
|
15
|
+
basicExpiration?: Date;
|
|
16
|
+
periodSeconds: number;
|
|
17
|
+
periodSpendLimit: number;
|
|
18
|
+
periodCanSpend: number;
|
|
19
|
+
periodReset: Date;
|
|
20
|
+
}
|
|
21
|
+
export declare const DefaultBasicFeeGrantOption: {
|
|
22
|
+
spendLimit: undefined;
|
|
23
|
+
expiration: undefined;
|
|
24
|
+
};
|
|
25
|
+
export interface TxMisc {
|
|
26
|
+
memo?: string;
|
|
27
|
+
fee?: number;
|
|
28
|
+
gas?: number;
|
|
29
|
+
feeGranter?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface SignAndBroadcastOptions {
|
|
32
|
+
fee: StdFee;
|
|
33
|
+
memo: string;
|
|
34
|
+
}
|
|
35
|
+
export interface MsgCreateValidator {
|
|
36
|
+
description?: Description;
|
|
37
|
+
commission?: CommissionRates;
|
|
38
|
+
minSelfDelegation: string;
|
|
39
|
+
delegatorAddress: string;
|
|
40
|
+
validatorAddress: string;
|
|
41
|
+
value: Number;
|
|
42
|
+
}
|
|
43
|
+
export interface CommissionRates {
|
|
44
|
+
/** rate is the commission rate charged to delegators, as a fraction. */
|
|
45
|
+
rate: string;
|
|
46
|
+
/** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */
|
|
47
|
+
maxRate: string;
|
|
48
|
+
/** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */
|
|
49
|
+
maxChangeRate: string;
|
|
50
|
+
}
|
|
51
|
+
export interface Description {
|
|
52
|
+
/** moniker defines a human-readable name for the validator. */
|
|
53
|
+
moniker: string;
|
|
54
|
+
/** identity defines an optional identity signature (ex. UPort or Keybase). */
|
|
55
|
+
identity: string;
|
|
56
|
+
/** website defines an optional website link. */
|
|
57
|
+
website: string;
|
|
58
|
+
/** security_contact defines an optional email for security contact. */
|
|
59
|
+
securityContact: string;
|
|
60
|
+
/** details define other optional details. */
|
|
61
|
+
details: string;
|
|
62
|
+
}
|
|
63
|
+
export declare enum VotingOption {
|
|
64
|
+
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
|
65
|
+
VOTE_OPTION_UNSPECIFIED = 0,
|
|
66
|
+
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
|
67
|
+
VOTE_OPTION_YES = 1,
|
|
68
|
+
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
|
69
|
+
VOTE_OPTION_ABSTAIN = 2,
|
|
70
|
+
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
|
71
|
+
VOTE_OPTION_NO = 3,
|
|
72
|
+
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
|
73
|
+
VOTE_OPTION_NO_WITH_VETO = 4,
|
|
74
|
+
UNRECOGNIZED = -1
|
|
75
|
+
}
|
|
76
|
+
export interface ParamChangeOption {
|
|
77
|
+
subspace: string;
|
|
78
|
+
key: string;
|
|
79
|
+
value: string;
|
|
80
|
+
}
|
|
81
|
+
export interface SoftwareUpgradePlan {
|
|
82
|
+
name: string;
|
|
83
|
+
time?: Date;
|
|
84
|
+
height?: Long;
|
|
85
|
+
info?: string;
|
|
86
|
+
upgradedClientState?: Any;
|
|
87
|
+
}
|
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VotingOption = exports.
|
|
4
|
-
exports.DefaultBasicFeeGrantOption = { spendLimit: undefined, expiration: undefined };
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
exports.getSignAndBroadcastOption = getSignAndBroadcastOption;
|
|
20
|
-
exports.DefaultTxMisc = { memo: "", fee: 200000, gas: 200000, feeGranter: "" };
|
|
21
|
-
var VotingOption;
|
|
22
|
-
(function (VotingOption) {
|
|
23
|
-
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
|
24
|
-
VotingOption[VotingOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED";
|
|
25
|
-
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
|
26
|
-
VotingOption[VotingOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES";
|
|
27
|
-
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
|
28
|
-
VotingOption[VotingOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN";
|
|
29
|
-
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
|
30
|
-
VotingOption[VotingOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO";
|
|
31
|
-
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
|
32
|
-
VotingOption[VotingOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO";
|
|
33
|
-
VotingOption[VotingOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
34
|
-
})(VotingOption = exports.VotingOption || (exports.VotingOption = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VotingOption = exports.DefaultBasicFeeGrantOption = void 0;
|
|
4
|
+
exports.DefaultBasicFeeGrantOption = { spendLimit: undefined, expiration: undefined };
|
|
5
|
+
var VotingOption;
|
|
6
|
+
(function (VotingOption) {
|
|
7
|
+
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
|
8
|
+
VotingOption[VotingOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED";
|
|
9
|
+
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
|
10
|
+
VotingOption[VotingOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES";
|
|
11
|
+
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
|
12
|
+
VotingOption[VotingOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN";
|
|
13
|
+
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
|
14
|
+
VotingOption[VotingOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO";
|
|
15
|
+
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
|
16
|
+
VotingOption[VotingOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO";
|
|
17
|
+
VotingOption[VotingOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
+
})(VotingOption = exports.VotingOption || (exports.VotingOption = {}));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Pubkey } from "@cosmjs/amino";
|
|
2
|
-
import { Any } from "../google/protobuf/any";
|
|
3
|
-
export interface Account {
|
|
4
|
-
/** Bech32 account address */
|
|
5
|
-
readonly address: string;
|
|
6
|
-
readonly pubkey: Pubkey | null;
|
|
7
|
-
readonly accountNumber: number;
|
|
8
|
-
readonly sequence: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Takes an `Any` encoded account from the chain and extracts some common
|
|
12
|
-
* `Account` information from it. This is supposed to support the most relevant
|
|
13
|
-
* common Cosmos SDK account types. If you need support for exotic account types,
|
|
14
|
-
* you'll need to write your own account decoder.
|
|
15
|
-
*/
|
|
16
|
-
export declare function accountFromAny(input: Any): Account;
|
|
1
|
+
import { Pubkey } from "@cosmjs/amino";
|
|
2
|
+
import { Any } from "../google/protobuf/any";
|
|
3
|
+
export interface Account {
|
|
4
|
+
/** Bech32 account address */
|
|
5
|
+
readonly address: string;
|
|
6
|
+
readonly pubkey: Pubkey | null;
|
|
7
|
+
readonly accountNumber: number;
|
|
8
|
+
readonly sequence: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Takes an `Any` encoded account from the chain and extracts some common
|
|
12
|
+
* `Account` information from it. This is supposed to support the most relevant
|
|
13
|
+
* common Cosmos SDK account types. If you need support for exotic account types,
|
|
14
|
+
* you'll need to write your own account decoder.
|
|
15
|
+
*/
|
|
16
|
+
export declare function accountFromAny(input: Any): Account;
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accountFromAny = void 0;
|
|
4
|
-
var math_1 = require("@cosmjs/math");
|
|
5
|
-
var proto_signing_1 = require("@cosmjs/proto-signing");
|
|
6
|
-
var auth_1 = require("cosmjs-types/cosmos/auth/v1beta1/auth");
|
|
7
|
-
var vesting_1 = require("cosmjs-types/cosmos/vesting/v1beta1/vesting");
|
|
8
|
-
function uint64FromProto(input) {
|
|
9
|
-
return math_1.Uint64.fromString(input.toString());
|
|
10
|
-
}
|
|
11
|
-
function accountFromBaseAccount(input) {
|
|
12
|
-
var address = input.address, pubKey = input.pubKey, accountNumber = input.accountNumber, sequence = input.sequence;
|
|
13
|
-
var pubkey = proto_signing_1.decodePubkey(pubKey);
|
|
14
|
-
return {
|
|
15
|
-
address: address,
|
|
16
|
-
pubkey: pubkey,
|
|
17
|
-
accountNumber: uint64FromProto(accountNumber).toNumber(),
|
|
18
|
-
sequence: uint64FromProto(sequence).toNumber(),
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Takes an `Any` encoded account from the chain and extracts some common
|
|
23
|
-
* `Account` information from it. This is supposed to support the most relevant
|
|
24
|
-
* common Cosmos SDK account types. If you need support for exotic account types,
|
|
25
|
-
* you'll need to write your own account decoder.
|
|
26
|
-
*/
|
|
27
|
-
function accountFromAny(input) {
|
|
28
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
29
|
-
var typeUrl = input.typeUrl, value = input.value;
|
|
30
|
-
switch (typeUrl) {
|
|
31
|
-
// auth
|
|
32
|
-
case "/cosmos.auth.v1beta1.BaseAccount":
|
|
33
|
-
return accountFromBaseAccount(auth_1.BaseAccount.decode(value));
|
|
34
|
-
case "/cosmos.auth.v1beta1.ModuleAccount":
|
|
35
|
-
{
|
|
36
|
-
var baseAccount = auth_1.ModuleAccount.decode(value).baseAccount;
|
|
37
|
-
return accountFromBaseAccount(baseAccount);
|
|
38
|
-
}
|
|
39
|
-
// vesting
|
|
40
|
-
case "/cosmos.vesting.v1beta1.BaseVestingAccount":
|
|
41
|
-
{
|
|
42
|
-
var baseAccount = (_a = vesting_1.BaseVestingAccount.decode(value)) === null || _a === void 0 ? void 0 : _a.baseAccount;
|
|
43
|
-
return accountFromBaseAccount(baseAccount);
|
|
44
|
-
}
|
|
45
|
-
case "/cosmos.vesting.v1beta1.ContinuousVestingAccount":
|
|
46
|
-
{
|
|
47
|
-
var baseAccount = (_c = (_b = vesting_1.ContinuousVestingAccount.decode(value)) === null || _b === void 0 ? void 0 : _b.baseVestingAccount) === null || _c === void 0 ? void 0 : _c.baseAccount;
|
|
48
|
-
return accountFromBaseAccount(baseAccount);
|
|
49
|
-
}
|
|
50
|
-
case "/cosmos.vesting.v1beta1.DelayedVestingAccount":
|
|
51
|
-
{
|
|
52
|
-
var baseAccount = (_e = (_d = vesting_1.DelayedVestingAccount.decode(value)) === null || _d === void 0 ? void 0 : _d.baseVestingAccount) === null || _e === void 0 ? void 0 : _e.baseAccount;
|
|
53
|
-
return accountFromBaseAccount(baseAccount);
|
|
54
|
-
}
|
|
55
|
-
case "/cosmos.vesting.v1beta1.PeriodicVestingAccount":
|
|
56
|
-
{
|
|
57
|
-
var baseAccount = (_g = (_f = vesting_1.PeriodicVestingAccount.decode(value)) === null || _f === void 0 ? void 0 : _f.baseVestingAccount) === null || _g === void 0 ? void 0 : _g.baseAccount;
|
|
58
|
-
return accountFromBaseAccount(baseAccount);
|
|
59
|
-
}
|
|
60
|
-
default:
|
|
61
|
-
throw new Error("Unsupported type: '" + typeUrl + "'");
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
exports.accountFromAny = accountFromAny;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountFromAny = void 0;
|
|
4
|
+
var math_1 = require("@cosmjs/math");
|
|
5
|
+
var proto_signing_1 = require("@cosmjs/proto-signing");
|
|
6
|
+
var auth_1 = require("cosmjs-types/cosmos/auth/v1beta1/auth");
|
|
7
|
+
var vesting_1 = require("cosmjs-types/cosmos/vesting/v1beta1/vesting");
|
|
8
|
+
function uint64FromProto(input) {
|
|
9
|
+
return math_1.Uint64.fromString(input.toString());
|
|
10
|
+
}
|
|
11
|
+
function accountFromBaseAccount(input) {
|
|
12
|
+
var address = input.address, pubKey = input.pubKey, accountNumber = input.accountNumber, sequence = input.sequence;
|
|
13
|
+
var pubkey = proto_signing_1.decodePubkey(pubKey);
|
|
14
|
+
return {
|
|
15
|
+
address: address,
|
|
16
|
+
pubkey: pubkey,
|
|
17
|
+
accountNumber: uint64FromProto(accountNumber).toNumber(),
|
|
18
|
+
sequence: uint64FromProto(sequence).toNumber(),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Takes an `Any` encoded account from the chain and extracts some common
|
|
23
|
+
* `Account` information from it. This is supposed to support the most relevant
|
|
24
|
+
* common Cosmos SDK account types. If you need support for exotic account types,
|
|
25
|
+
* you'll need to write your own account decoder.
|
|
26
|
+
*/
|
|
27
|
+
function accountFromAny(input) {
|
|
28
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
29
|
+
var typeUrl = input.typeUrl, value = input.value;
|
|
30
|
+
switch (typeUrl) {
|
|
31
|
+
// auth
|
|
32
|
+
case "/cosmos.auth.v1beta1.BaseAccount":
|
|
33
|
+
return accountFromBaseAccount(auth_1.BaseAccount.decode(value));
|
|
34
|
+
case "/cosmos.auth.v1beta1.ModuleAccount":
|
|
35
|
+
{
|
|
36
|
+
var baseAccount = auth_1.ModuleAccount.decode(value).baseAccount;
|
|
37
|
+
return accountFromBaseAccount(baseAccount);
|
|
38
|
+
}
|
|
39
|
+
// vesting
|
|
40
|
+
case "/cosmos.vesting.v1beta1.BaseVestingAccount":
|
|
41
|
+
{
|
|
42
|
+
var baseAccount = (_a = vesting_1.BaseVestingAccount.decode(value)) === null || _a === void 0 ? void 0 : _a.baseAccount;
|
|
43
|
+
return accountFromBaseAccount(baseAccount);
|
|
44
|
+
}
|
|
45
|
+
case "/cosmos.vesting.v1beta1.ContinuousVestingAccount":
|
|
46
|
+
{
|
|
47
|
+
var baseAccount = (_c = (_b = vesting_1.ContinuousVestingAccount.decode(value)) === null || _b === void 0 ? void 0 : _b.baseVestingAccount) === null || _c === void 0 ? void 0 : _c.baseAccount;
|
|
48
|
+
return accountFromBaseAccount(baseAccount);
|
|
49
|
+
}
|
|
50
|
+
case "/cosmos.vesting.v1beta1.DelayedVestingAccount":
|
|
51
|
+
{
|
|
52
|
+
var baseAccount = (_e = (_d = vesting_1.DelayedVestingAccount.decode(value)) === null || _d === void 0 ? void 0 : _d.baseVestingAccount) === null || _e === void 0 ? void 0 : _e.baseAccount;
|
|
53
|
+
return accountFromBaseAccount(baseAccount);
|
|
54
|
+
}
|
|
55
|
+
case "/cosmos.vesting.v1beta1.PeriodicVestingAccount":
|
|
56
|
+
{
|
|
57
|
+
var baseAccount = (_g = (_f = vesting_1.PeriodicVestingAccount.decode(value)) === null || _f === void 0 ? void 0 : _f.baseVestingAccount) === null || _g === void 0 ? void 0 : _g.baseAccount;
|
|
58
|
+
return accountFromBaseAccount(baseAccount);
|
|
59
|
+
}
|
|
60
|
+
default:
|
|
61
|
+
throw new Error("Unsupported type: '" + typeUrl + "'");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.accountFromAny = accountFromAny;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TxCommon';
|
|
2
|
-
export * from './QueryCommon';
|
|
1
|
+
export * from './TxCommon';
|
|
2
|
+
export * from './QueryCommon';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./TxCommon"), exports);
|
|
14
|
-
__exportStar(require("./QueryCommon"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./TxCommon"), exports);
|
|
14
|
+
__exportStar(require("./QueryCommon"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
2
|
-
import { SignMode } from "cosmjs-types/cosmos/tx/signing/v1beta1/signing";
|
|
3
|
-
import { SignDoc } from "cosmjs-types/cosmos/tx/v1beta1/tx";
|
|
4
|
-
import { Any } from "../google/protobuf/any";
|
|
5
|
-
export declare function makeAuthInfoBytes(signers: ReadonlyArray<{
|
|
6
|
-
readonly pubkey: Any;
|
|
7
|
-
readonly sequence: number;
|
|
8
|
-
}>, feeAmount: readonly Coin[], gasLimit: number, granter: string, signMode?: SignMode): Uint8Array;
|
|
9
|
-
export declare function makeSignDoc(bodyBytes: Uint8Array, authInfoBytes: Uint8Array, chainId: string, accountNumber: number): SignDoc;
|
|
10
|
-
export declare function makeSignBytes({ accountNumber, authInfoBytes, bodyBytes, chainId }: SignDoc): Uint8Array;
|
|
1
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
2
|
+
import { SignMode } from "cosmjs-types/cosmos/tx/signing/v1beta1/signing";
|
|
3
|
+
import { SignDoc } from "cosmjs-types/cosmos/tx/v1beta1/tx";
|
|
4
|
+
import { Any } from "../google/protobuf/any";
|
|
5
|
+
export declare function makeAuthInfoBytes(signers: ReadonlyArray<{
|
|
6
|
+
readonly pubkey: Any;
|
|
7
|
+
readonly sequence: number;
|
|
8
|
+
}>, feeAmount: readonly Coin[], gasLimit: number, granter: string, signMode?: SignMode): Uint8Array;
|
|
9
|
+
export declare function makeSignDoc(bodyBytes: Uint8Array, authInfoBytes: Uint8Array, chainId: string, accountNumber: number): SignDoc;
|
|
10
|
+
export declare function makeSignBytes({ accountNumber, authInfoBytes, bodyBytes, chainId }: SignDoc): Uint8Array;
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
-
if (!m) return o;
|
|
5
|
-
var i = m.call(o), r, ar = [], e;
|
|
6
|
-
try {
|
|
7
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
-
}
|
|
9
|
-
catch (error) { e = { error: error }; }
|
|
10
|
-
finally {
|
|
11
|
-
try {
|
|
12
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
-
}
|
|
14
|
-
finally { if (e) throw e.error; }
|
|
15
|
-
}
|
|
16
|
-
return ar;
|
|
17
|
-
};
|
|
18
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
19
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
20
|
-
to[j] = from[i];
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.makeSignBytes = exports.makeSignDoc = exports.makeAuthInfoBytes = void 0;
|
|
28
|
-
var signing_1 = require("cosmjs-types/cosmos/tx/signing/v1beta1/signing");
|
|
29
|
-
var tx_1 = require("cosmjs-types/cosmos/tx/v1beta1/tx");
|
|
30
|
-
var long_1 = __importDefault(require("long"));
|
|
31
|
-
function makeSignerInfos(signers, signMode) {
|
|
32
|
-
return signers.map(function (_a) {
|
|
33
|
-
var pubkey = _a.pubkey, sequence = _a.sequence;
|
|
34
|
-
return ({
|
|
35
|
-
publicKey: pubkey,
|
|
36
|
-
modeInfo: {
|
|
37
|
-
single: { mode: signMode },
|
|
38
|
-
},
|
|
39
|
-
sequence: long_1.default.fromNumber(sequence),
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function makeAuthInfoBytes(signers, feeAmount, gasLimit, granter, signMode) {
|
|
44
|
-
if (signMode === void 0) { signMode = signing_1.SignMode.SIGN_MODE_DIRECT; }
|
|
45
|
-
var authInfo = {
|
|
46
|
-
signerInfos: makeSignerInfos(signers, signMode),
|
|
47
|
-
fee: {
|
|
48
|
-
amount: __spreadArray([], __read(feeAmount)),
|
|
49
|
-
gasLimit: long_1.default.fromNumber(gasLimit),
|
|
50
|
-
granter: granter,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
return tx_1.AuthInfo.encode(tx_1.AuthInfo.fromPartial(authInfo)).finish();
|
|
54
|
-
}
|
|
55
|
-
exports.makeAuthInfoBytes = makeAuthInfoBytes;
|
|
56
|
-
function makeSignDoc(bodyBytes, authInfoBytes, chainId, accountNumber) {
|
|
57
|
-
return {
|
|
58
|
-
bodyBytes: bodyBytes,
|
|
59
|
-
authInfoBytes: authInfoBytes,
|
|
60
|
-
chainId: chainId,
|
|
61
|
-
accountNumber: long_1.default.fromNumber(accountNumber),
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
exports.makeSignDoc = makeSignDoc;
|
|
65
|
-
function makeSignBytes(_a) {
|
|
66
|
-
var accountNumber = _a.accountNumber, authInfoBytes = _a.authInfoBytes, bodyBytes = _a.bodyBytes, chainId = _a.chainId;
|
|
67
|
-
var signDoc = tx_1.SignDoc.fromPartial({
|
|
68
|
-
accountNumber: accountNumber,
|
|
69
|
-
authInfoBytes: authInfoBytes,
|
|
70
|
-
bodyBytes: bodyBytes,
|
|
71
|
-
chainId: chainId,
|
|
72
|
-
});
|
|
73
|
-
return tx_1.SignDoc.encode(signDoc).finish();
|
|
74
|
-
}
|
|
75
|
-
exports.makeSignBytes = makeSignBytes;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
+
if (!m) return o;
|
|
5
|
+
var i = m.call(o), r, ar = [], e;
|
|
6
|
+
try {
|
|
7
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
+
}
|
|
9
|
+
catch (error) { e = { error: error }; }
|
|
10
|
+
finally {
|
|
11
|
+
try {
|
|
12
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
+
}
|
|
14
|
+
finally { if (e) throw e.error; }
|
|
15
|
+
}
|
|
16
|
+
return ar;
|
|
17
|
+
};
|
|
18
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
19
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
20
|
+
to[j] = from[i];
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.makeSignBytes = exports.makeSignDoc = exports.makeAuthInfoBytes = void 0;
|
|
28
|
+
var signing_1 = require("cosmjs-types/cosmos/tx/signing/v1beta1/signing");
|
|
29
|
+
var tx_1 = require("cosmjs-types/cosmos/tx/v1beta1/tx");
|
|
30
|
+
var long_1 = __importDefault(require("long"));
|
|
31
|
+
function makeSignerInfos(signers, signMode) {
|
|
32
|
+
return signers.map(function (_a) {
|
|
33
|
+
var pubkey = _a.pubkey, sequence = _a.sequence;
|
|
34
|
+
return ({
|
|
35
|
+
publicKey: pubkey,
|
|
36
|
+
modeInfo: {
|
|
37
|
+
single: { mode: signMode },
|
|
38
|
+
},
|
|
39
|
+
sequence: long_1.default.fromNumber(sequence),
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function makeAuthInfoBytes(signers, feeAmount, gasLimit, granter, signMode) {
|
|
44
|
+
if (signMode === void 0) { signMode = signing_1.SignMode.SIGN_MODE_DIRECT; }
|
|
45
|
+
var authInfo = {
|
|
46
|
+
signerInfos: makeSignerInfos(signers, signMode),
|
|
47
|
+
fee: {
|
|
48
|
+
amount: __spreadArray([], __read(feeAmount)),
|
|
49
|
+
gasLimit: long_1.default.fromNumber(gasLimit),
|
|
50
|
+
granter: granter,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
return tx_1.AuthInfo.encode(tx_1.AuthInfo.fromPartial(authInfo)).finish();
|
|
54
|
+
}
|
|
55
|
+
exports.makeAuthInfoBytes = makeAuthInfoBytes;
|
|
56
|
+
function makeSignDoc(bodyBytes, authInfoBytes, chainId, accountNumber) {
|
|
57
|
+
return {
|
|
58
|
+
bodyBytes: bodyBytes,
|
|
59
|
+
authInfoBytes: authInfoBytes,
|
|
60
|
+
chainId: chainId,
|
|
61
|
+
accountNumber: long_1.default.fromNumber(accountNumber),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.makeSignDoc = makeSignDoc;
|
|
65
|
+
function makeSignBytes(_a) {
|
|
66
|
+
var accountNumber = _a.accountNumber, authInfoBytes = _a.authInfoBytes, bodyBytes = _a.bodyBytes, chainId = _a.chainId;
|
|
67
|
+
var signDoc = tx_1.SignDoc.fromPartial({
|
|
68
|
+
accountNumber: accountNumber,
|
|
69
|
+
authInfoBytes: authInfoBytes,
|
|
70
|
+
bodyBytes: bodyBytes,
|
|
71
|
+
chainId: chainId,
|
|
72
|
+
});
|
|
73
|
+
return tx_1.SignDoc.encode(signDoc).finish();
|
|
74
|
+
}
|
|
75
|
+
exports.makeSignBytes = makeSignBytes;
|