coreum-js 2.10.0 → 2.12.0
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/main/client/index.d.ts +2 -1
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/main/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/params.js +14 -6
- package/dist/main/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/main/coreum/asset/ft/v1/query.js +116 -54
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/main/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/nft/v1/params.js +14 -6
- package/dist/main/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/main/coreum/asset/nft/v1/query.js +49 -22
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/main/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/query.js +22 -11
- package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/main/coreum/nft/v1beta1/query.js +83 -39
- package/dist/main/cosmos/extensions/bank.d.ts +8 -8
- package/dist/main/cosmos/extensions/bank.js +2 -2
- package/dist/main/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/main/cosmos/extensions/distribution.js +1 -1
- package/dist/main/cosmos/extensions/gov.d.ts +21 -21
- package/dist/main/cosmos/extensions/gov.js +1 -1
- package/dist/main/cosmos/index.d.ts +12 -21
- package/dist/main/cosmos/index.js +50 -42
- package/dist/main/types/msgs.d.ts +4 -4
- package/dist/main/wasm/v1/authz.d.ts +1 -1
- package/dist/main/wasm/v1/authz.js +1 -1
- package/dist/main/wasm/v1/proposal.d.ts +1 -1
- package/dist/main/wasm/v1/proposal.js +1 -1
- package/dist/main/wasm/v1/tx.d.ts +1 -1
- package/dist/main/wasm/v1/tx.js +1 -1
- package/dist/module/client/index.d.ts +2 -1
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/module/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/params.js +14 -6
- package/dist/module/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/module/coreum/asset/ft/v1/query.js +116 -54
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/module/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/nft/v1/params.js +14 -6
- package/dist/module/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/module/coreum/asset/nft/v1/query.js +49 -22
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/module/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/query.js +22 -11
- package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/module/coreum/nft/v1beta1/query.js +83 -39
- package/dist/module/cosmos/extensions/bank.d.ts +8 -8
- package/dist/module/cosmos/extensions/bank.js +2 -2
- package/dist/module/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/module/cosmos/extensions/distribution.js +1 -1
- package/dist/module/cosmos/extensions/gov.d.ts +21 -21
- package/dist/module/cosmos/extensions/gov.js +1 -1
- package/dist/module/cosmos/index.d.ts +12 -21
- package/dist/module/cosmos/index.js +29 -19
- package/dist/module/types/msgs.d.ts +4 -4
- package/dist/module/wasm/v1/authz.d.ts +1 -1
- package/dist/module/wasm/v1/authz.js +1 -1
- package/dist/module/wasm/v1/proposal.d.ts +1 -1
- package/dist/module/wasm/v1/proposal.js +1 -1
- package/dist/module/wasm/v1/tx.d.ts +1 -1
- package/dist/module/wasm/v1/tx.js +1 -1
- package/package.json +9 -9
- package/dist/main/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/main/cosmos/auth/v1beta1/auth.js +0 -437
- package/dist/main/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/main/cosmos/authz/v1beta1/authz.js +0 -319
- package/dist/main/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/main/cosmos/authz/v1beta1/event.js +0 -162
- package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/main/cosmos/authz/v1beta1/genesis.js +0 -68
- package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/authz/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/main/cosmos/authz/v1beta1/query.js +0 -512
- package/dist/main/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/main/cosmos/authz/v1beta1/tx.js +0 -435
- package/dist/main/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/main/cosmos/bank/v1beta1/authz.js +0 -83
- package/dist/main/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/main/cosmos/bank/v1beta1/bank.js +0 -556
- package/dist/main/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/main/cosmos/bank/v1beta1/genesis.js +0 -207
- package/dist/main/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/bank/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/main/cosmos/bank/v1beta1/query.js +0 -1595
- package/dist/main/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/main/cosmos/bank/v1beta1/tx.js +0 -498
- package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/main/cosmos/base/query/v1beta1/pagination.js +0 -241
- package/dist/main/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/main/cosmos/base/v1beta1/coin.js +0 -241
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.js +0 -172
- package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/main/cosmos/distribution/v1beta1/distribution.js +0 -887
- package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/main/cosmos/distribution/v1beta1/genesis.js +0 -784
- package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/distribution/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/main/cosmos/distribution/v1beta1/query.js +0 -1335
- package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/main/cosmos/distribution/v1beta1/tx.js +0 -824
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.js +0 -412
- package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/main/cosmos/feegrant/v1beta1/genesis.js +0 -66
- package/dist/main/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/feegrant/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/main/cosmos/feegrant/v1beta1/query.js +0 -460
- package/dist/main/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/main/cosmos/feegrant/v1beta1/tx.js +0 -252
- package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/main/cosmos/gov/v1beta1/genesis.js +0 -194
- package/dist/main/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/main/cosmos/gov/v1beta1/gov.js +0 -1037
- package/dist/main/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/gov/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/main/cosmos/gov/v1beta1/query.js +0 -1186
- package/dist/main/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/gov/v1beta1/tx.js +0 -566
- package/dist/main/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/main/cosmos/msg/v1/msg.js +0 -5
- package/dist/main/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/main/cosmos/staking/v1beta1/authz.js +0 -224
- package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/main/cosmos/staking/v1beta1/genesis.js +0 -305
- package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/staking/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/main/cosmos/staking/v1beta1/query.js +0 -2019
- package/dist/main/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/main/cosmos/staking/v1beta1/staking.js +0 -2127
- package/dist/main/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/main/cosmos/staking/v1beta1/tx.js +0 -1141
- package/dist/main/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/main/cosmos/tx/signing/v1beta1/signing.js +0 -546
- package/dist/main/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/main/cosmos/tx/v1beta1/tx.js +0 -1276
- package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/vesting/v1beta1/tx.js +0 -454
- package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/main/cosmos/vesting/v1beta1/vesting.js +0 -498
- package/dist/module/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/module/cosmos/auth/v1beta1/auth.js +0 -427
- package/dist/module/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/module/cosmos/authz/v1beta1/authz.js +0 -309
- package/dist/module/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/module/cosmos/authz/v1beta1/event.js +0 -154
- package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/module/cosmos/authz/v1beta1/genesis.js +0 -61
- package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/authz/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/module/cosmos/authz/v1beta1/query.js +0 -501
- package/dist/module/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/module/cosmos/authz/v1beta1/tx.js +0 -426
- package/dist/module/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/module/cosmos/bank/v1beta1/authz.js +0 -76
- package/dist/module/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/module/cosmos/bank/v1beta1/bank.js +0 -543
- package/dist/module/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/module/cosmos/bank/v1beta1/genesis.js +0 -199
- package/dist/module/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/bank/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/module/cosmos/bank/v1beta1/query.js +0 -1575
- package/dist/module/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/module/cosmos/bank/v1beta1/tx.js +0 -489
- package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/module/cosmos/base/query/v1beta1/pagination.js +0 -233
- package/dist/module/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/module/cosmos/base/v1beta1/coin.js +0 -231
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.js +0 -164
- package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/module/cosmos/distribution/v1beta1/distribution.js +0 -869
- package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/module/cosmos/distribution/v1beta1/genesis.js +0 -770
- package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/distribution/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/module/cosmos/distribution/v1beta1/query.js +0 -1315
- package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/module/cosmos/distribution/v1beta1/tx.js +0 -810
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.js +0 -402
- package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/module/cosmos/feegrant/v1beta1/genesis.js +0 -59
- package/dist/module/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/feegrant/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/module/cosmos/feegrant/v1beta1/query.js +0 -450
- package/dist/module/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/module/cosmos/feegrant/v1beta1/tx.js +0 -245
- package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/module/cosmos/gov/v1beta1/genesis.js +0 -187
- package/dist/module/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/module/cosmos/gov/v1beta1/gov.js +0 -1019
- package/dist/module/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/gov/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/module/cosmos/gov/v1beta1/query.js +0 -1170
- package/dist/module/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/gov/v1beta1/tx.js +0 -556
- package/dist/module/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/module/cosmos/msg/v1/msg.js +0 -2
- package/dist/module/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/module/cosmos/staking/v1beta1/authz.js +0 -214
- package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/module/cosmos/staking/v1beta1/genesis.js +0 -297
- package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/staking/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/module/cosmos/staking/v1beta1/query.js +0 -1995
- package/dist/module/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/module/cosmos/staking/v1beta1/staking.js +0 -2097
- package/dist/module/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/module/cosmos/staking/v1beta1/tx.js +0 -1127
- package/dist/module/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/module/cosmos/tx/signing/v1beta1/signing.js +0 -534
- package/dist/module/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/module/cosmos/tx/v1beta1/tx.js +0 -1258
- package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/vesting/v1beta1/tx.js +0 -446
- package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/module/cosmos/vesting/v1beta1/vesting.js +0 -488
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { PageRequest } from "
|
|
1
|
+
import { PageRequest } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
|
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
|
3
3
|
export declare function setupDistributionExtension(base: QueryClient): {
|
|
4
4
|
distribution: {
|
|
5
5
|
communityPool: () => Promise<{
|
|
6
|
-
pool: import("
|
|
6
|
+
pool: import("cosmjs-types/cosmos/base/v1beta1/coin").DecCoin[];
|
|
7
7
|
}>;
|
|
8
8
|
delegationRewards: (delegator: string, validator: string) => Promise<{
|
|
9
|
-
rewards: import("
|
|
9
|
+
rewards: import("cosmjs-types/cosmos/base/v1beta1/coin").DecCoin[];
|
|
10
10
|
}>;
|
|
11
11
|
delegationTotalRewards: (delegator: string) => Promise<{
|
|
12
|
-
rewards: import("
|
|
13
|
-
total: import("
|
|
12
|
+
rewards: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").DelegationDelegatorReward[];
|
|
13
|
+
total: import("cosmjs-types/cosmos/base/v1beta1/coin").DecCoin[];
|
|
14
14
|
}>;
|
|
15
15
|
delegatorValidators: (delegator: string) => Promise<{
|
|
16
16
|
validators: string[];
|
|
@@ -19,17 +19,17 @@ export declare function setupDistributionExtension(base: QueryClient): {
|
|
|
19
19
|
withdrawAddress: string;
|
|
20
20
|
}>;
|
|
21
21
|
params: () => Promise<{
|
|
22
|
-
params
|
|
22
|
+
params?: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").Params;
|
|
23
23
|
}>;
|
|
24
24
|
validatorCommission: (validator: string) => Promise<{
|
|
25
|
-
commission
|
|
25
|
+
commission?: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorAccumulatedCommission;
|
|
26
26
|
}>;
|
|
27
27
|
validatorOutstandingRewards: (validator: string) => Promise<{
|
|
28
|
-
rewards
|
|
28
|
+
rewards?: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorOutstandingRewards;
|
|
29
29
|
}>;
|
|
30
|
-
validatorSlashes: (validator: string, starting_height:
|
|
31
|
-
slashes: import("
|
|
32
|
-
pagination
|
|
30
|
+
validatorSlashes: (validator: string, starting_height: Long, ending_height: Long, pagination?: PageRequest) => Promise<{
|
|
31
|
+
slashes: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorSlashEvent[];
|
|
32
|
+
pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
33
33
|
}>;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setupDistributionExtension = void 0;
|
|
4
|
-
const query_1 = require("
|
|
4
|
+
const query_1 = require("cosmjs-types/cosmos/distribution/v1beta1/query");
|
|
5
5
|
const stargate_1 = require("@cosmjs/stargate");
|
|
6
6
|
function setupDistributionExtension(base) {
|
|
7
7
|
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ProposalStatus } from "
|
|
2
|
-
import { PageRequest } from "
|
|
1
|
+
import { ProposalStatus } from "cosmjs-types/cosmos/gov/v1beta1/gov";
|
|
2
|
+
import { PageRequest } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
|
|
3
3
|
import { QueryClient } from "@cosmjs/stargate";
|
|
4
4
|
export declare function setupGovExtension(base: QueryClient): {
|
|
5
5
|
gov: {
|
|
6
6
|
params: (parametersType: "deposit" | "tallying" | "voting") => Promise<{
|
|
7
|
-
votingParams
|
|
8
|
-
depositParams
|
|
9
|
-
tallyParams
|
|
7
|
+
votingParams?: import("cosmjs-types/cosmos/gov/v1beta1/gov").VotingParams;
|
|
8
|
+
depositParams?: import("cosmjs-types/cosmos/gov/v1beta1/gov").DepositParams;
|
|
9
|
+
tallyParams?: import("cosmjs-types/cosmos/gov/v1beta1/gov").TallyParams;
|
|
10
10
|
}>;
|
|
11
11
|
proposals: (proposalStatus: ProposalStatus, depositor: string, voter: string, pagination?: PageRequest) => Promise<{
|
|
12
|
-
proposals: import("
|
|
13
|
-
pagination
|
|
12
|
+
proposals: import("cosmjs-types/cosmos/gov/v1beta1/gov").Proposal[];
|
|
13
|
+
pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
14
14
|
}>;
|
|
15
|
-
proposal: (proposal_id:
|
|
16
|
-
proposal
|
|
15
|
+
proposal: (proposal_id: Long) => Promise<{
|
|
16
|
+
proposal?: import("cosmjs-types/cosmos/gov/v1beta1/gov").Proposal;
|
|
17
17
|
}>;
|
|
18
|
-
deposits: (proposal_id:
|
|
19
|
-
deposits: import("
|
|
20
|
-
pagination
|
|
18
|
+
deposits: (proposal_id: Long, pagination?: PageRequest) => Promise<{
|
|
19
|
+
deposits: import("cosmjs-types/cosmos/gov/v1beta1/gov").Deposit[];
|
|
20
|
+
pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
21
21
|
}>;
|
|
22
|
-
deposit: (proposal_id:
|
|
23
|
-
deposit
|
|
22
|
+
deposit: (proposal_id: Long, depositor: string) => Promise<{
|
|
23
|
+
deposit?: import("cosmjs-types/cosmos/gov/v1beta1/gov").Deposit;
|
|
24
24
|
}>;
|
|
25
|
-
tally: (proposal_id:
|
|
26
|
-
tally
|
|
25
|
+
tally: (proposal_id: Long) => Promise<{
|
|
26
|
+
tally?: import("cosmjs-types/cosmos/gov/v1beta1/gov").TallyResult;
|
|
27
27
|
}>;
|
|
28
|
-
votes: (proposal_id:
|
|
29
|
-
votes: import("
|
|
30
|
-
pagination
|
|
28
|
+
votes: (proposal_id: Long, pagination?: PageRequest) => Promise<{
|
|
29
|
+
votes: import("cosmjs-types/cosmos/gov/v1beta1/gov").Vote[];
|
|
30
|
+
pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
31
31
|
}>;
|
|
32
|
-
vote: (proposal_id:
|
|
33
|
-
vote
|
|
32
|
+
vote: (proposal_id: Long, voter: string) => Promise<{
|
|
33
|
+
vote?: import("cosmjs-types/cosmos/gov/v1beta1/gov").Vote;
|
|
34
34
|
}>;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setupGovExtension = void 0;
|
|
4
|
-
const query_1 = require("
|
|
4
|
+
const query_1 = require("cosmjs-types/cosmos/gov/v1beta1/query");
|
|
5
5
|
const stargate_1 = require("@cosmjs/stargate");
|
|
6
6
|
function setupGovExtension(base) {
|
|
7
7
|
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { MsgDeposit, MsgSubmitProposal, MsgVote, MsgVoteWeighted } from "
|
|
2
|
-
import { MsgGrantAllowance, MsgRevokeAllowance } from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { StakingMsgs, DistributionMsgs, BankMsgs, FeegrantMsgs, VestingMsgs,
|
|
9
|
-
export * from "
|
|
1
|
+
import { MsgDeposit, MsgSubmitProposal, MsgVote, MsgVoteWeighted } from "cosmjs-types/cosmos/gov/v1beta1/tx";
|
|
2
|
+
import { MsgGrantAllowance, MsgRevokeAllowance } from "cosmjs-types/cosmos/feegrant/v1beta1/tx";
|
|
3
|
+
import { MsgCommunityPoolSpend, MsgFundCommunityPool, MsgSetWithdrawAddress, MsgUpdateParams as DMsgUpdateParams, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission } from "cosmjs-types/cosmos/distribution/v1beta1/tx";
|
|
4
|
+
import { MsgCreatePeriodicVestingAccount, MsgCreatePermanentLockedAccount, MsgCreateVestingAccount } from "cosmjs-types/cosmos/vesting/v1beta1/tx";
|
|
5
|
+
import { MsgBeginRedelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgDelegate, MsgEditValidator, MsgUndelegate, MsgUpdateParams as SMsgUpdateParams } from "cosmjs-types/cosmos/staking/v1beta1/tx";
|
|
6
|
+
import { MsgExec, MsgGrant, MsgRevoke } from "cosmjs-types/cosmos/authz/v1beta1/tx";
|
|
7
|
+
import { MsgMultiSend, MsgSend, MsgSetSendEnabled, MsgUpdateParams } from "cosmjs-types/cosmos/bank/v1beta1/tx";
|
|
8
|
+
import { StakingMsgs, DistributionMsgs, BankMsgs, FeegrantMsgs, VestingMsgs, GovMsgs } from "../types/msgs";
|
|
9
|
+
export * from "cosmjs-types/cosmos/tx/v1beta1/tx";
|
|
10
10
|
/**
|
|
11
11
|
* Module to generate the Messages related to the Authz module of the Blockchain
|
|
12
12
|
*/
|
|
@@ -17,7 +17,7 @@ export declare namespace Authz {
|
|
|
17
17
|
* @param object Represents the properties available for this MsgGrant message.
|
|
18
18
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
19
19
|
*/
|
|
20
|
-
const Grant: (object:
|
|
20
|
+
const Grant: (object: MsgGrant) => {
|
|
21
21
|
typeUrl: string;
|
|
22
22
|
value: MsgGrant;
|
|
23
23
|
};
|
|
@@ -27,7 +27,7 @@ export declare namespace Authz {
|
|
|
27
27
|
* @param object Represents the properties available for this MsgExec message.
|
|
28
28
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
29
29
|
*/
|
|
30
|
-
const Exec: (object:
|
|
30
|
+
const Exec: (object: MsgExec) => {
|
|
31
31
|
typeUrl: string;
|
|
32
32
|
value: MsgExec;
|
|
33
33
|
};
|
|
@@ -37,7 +37,7 @@ export declare namespace Authz {
|
|
|
37
37
|
* @param object Represents the properties available for this MsgRevoke message.
|
|
38
38
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
39
39
|
*/
|
|
40
|
-
const Revoke: (object:
|
|
40
|
+
const Revoke: (object: MsgRevoke) => {
|
|
41
41
|
typeUrl: string;
|
|
42
42
|
value: MsgRevoke;
|
|
43
43
|
};
|
|
@@ -270,15 +270,6 @@ export declare namespace Distribution {
|
|
|
270
270
|
typeUrl: string;
|
|
271
271
|
value: MsgCommunityPoolSpend;
|
|
272
272
|
};
|
|
273
|
-
/** MsgDepositValidatorRewardsPool message creator
|
|
274
|
-
*
|
|
275
|
-
* @param object Represents the properties available for this MsgDepositValidatorRewardsPool message.
|
|
276
|
-
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
277
|
-
*/
|
|
278
|
-
const DepositValidatorRewardsPool: (object: DistributionMsgs.MsgDepositValidatorRewardsPool) => {
|
|
279
|
-
typeUrl: string;
|
|
280
|
-
value: MsgDepositValidatorRewardsPool;
|
|
281
|
-
};
|
|
282
273
|
/** MsgFundCommunityPool message creator
|
|
283
274
|
* Defines a method to allow an account to directly fund the community pool.
|
|
284
275
|
*
|
|
@@ -15,13 +15,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.Vesting = exports.Distribution = exports.Bank = exports.Feegrant = exports.Governance = exports.Staking = exports.Authz = void 0;
|
|
18
|
-
const tx_1 = require("
|
|
19
|
-
const tx_2 = require("
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const tx_1 = require("cosmjs-types/cosmos/gov/v1beta1/tx");
|
|
19
|
+
const tx_2 = require("cosmjs-types/cosmos/feegrant/v1beta1/tx");
|
|
20
|
+
// import {
|
|
21
|
+
// MsgMultiSend,
|
|
22
|
+
// MsgSend,
|
|
23
|
+
// MsgSetSendEnabled,
|
|
24
|
+
// MsgUpdateParams,
|
|
25
|
+
// } from "./bank/v1beta1/tx";
|
|
26
|
+
const tx_3 = require("cosmjs-types/cosmos/distribution/v1beta1/tx");
|
|
27
|
+
const tx_4 = require("cosmjs-types/cosmos/vesting/v1beta1/tx");
|
|
28
|
+
const tx_5 = require("cosmjs-types/cosmos/staking/v1beta1/tx");
|
|
29
|
+
const tx_6 = require("cosmjs-types/cosmos/authz/v1beta1/tx");
|
|
30
|
+
const tx_7 = require("cosmjs-types/cosmos/bank/v1beta1/tx");
|
|
25
31
|
const authzBaseUrl = "/cosmos.authz.v1beta1.";
|
|
26
32
|
const stakeBaseUrl = "/cosmos.staking.v1beta1.";
|
|
27
33
|
const govBaseUrl = "/cosmos.gov.v1beta1.";
|
|
@@ -29,7 +35,7 @@ const fgBaseUrl = "/cosmos.feegrant.v1beta1.";
|
|
|
29
35
|
const bankBaseUrl = "/cosmos.bank.v1beta1.";
|
|
30
36
|
const distBaseUrl = "/cosmos.distribution.v1beta1.";
|
|
31
37
|
const vestBaseUrl = "/cosmos.vesting.v1beta1.";
|
|
32
|
-
__exportStar(require("
|
|
38
|
+
__exportStar(require("cosmjs-types/cosmos/tx/v1beta1/tx"), exports);
|
|
33
39
|
/**
|
|
34
40
|
* Module to generate the Messages related to the Authz module of the Blockchain
|
|
35
41
|
*/
|
|
@@ -44,7 +50,7 @@ var Authz;
|
|
|
44
50
|
Authz.Grant = function (object) {
|
|
45
51
|
return {
|
|
46
52
|
typeUrl: authzBaseUrl + "MsgGrant",
|
|
47
|
-
value:
|
|
53
|
+
value: tx_6.MsgGrant.fromPartial(object),
|
|
48
54
|
};
|
|
49
55
|
};
|
|
50
56
|
/** MsgExec message creator
|
|
@@ -56,7 +62,7 @@ var Authz;
|
|
|
56
62
|
Authz.Exec = function (object) {
|
|
57
63
|
return {
|
|
58
64
|
typeUrl: authzBaseUrl + "MsgExec",
|
|
59
|
-
value:
|
|
65
|
+
value: tx_6.MsgExec.fromPartial(object),
|
|
60
66
|
};
|
|
61
67
|
};
|
|
62
68
|
/** MsgRevoke message creator
|
|
@@ -68,7 +74,7 @@ var Authz;
|
|
|
68
74
|
Authz.Revoke = function (object) {
|
|
69
75
|
return {
|
|
70
76
|
typeUrl: authzBaseUrl + "MsgRevoke",
|
|
71
|
-
value:
|
|
77
|
+
value: tx_6.MsgRevoke.fromPartial(object),
|
|
72
78
|
};
|
|
73
79
|
};
|
|
74
80
|
})(Authz || (exports.Authz = Authz = {}));
|
|
@@ -86,7 +92,7 @@ var Staking;
|
|
|
86
92
|
Staking.BeginRedelegate = function (object) {
|
|
87
93
|
return {
|
|
88
94
|
typeUrl: stakeBaseUrl + "MsgBeginRedelegate",
|
|
89
|
-
value:
|
|
95
|
+
value: tx_5.MsgBeginRedelegate.fromPartial(object),
|
|
90
96
|
};
|
|
91
97
|
};
|
|
92
98
|
/** MsgCancelUnbondingDelegation message creator
|
|
@@ -97,7 +103,7 @@ var Staking;
|
|
|
97
103
|
Staking.CancelUnbondingDelegation = function (object) {
|
|
98
104
|
return {
|
|
99
105
|
typeUrl: stakeBaseUrl + "MsgCancelUnbondingDelegation",
|
|
100
|
-
value:
|
|
106
|
+
value: tx_5.MsgCancelUnbondingDelegation.fromPartial(object),
|
|
101
107
|
};
|
|
102
108
|
};
|
|
103
109
|
/** MsgCreateValidator message creator
|
|
@@ -109,7 +115,7 @@ var Staking;
|
|
|
109
115
|
Staking.CreateValidator = function (object) {
|
|
110
116
|
return {
|
|
111
117
|
typeUrl: stakeBaseUrl + "MsgCreateValidator",
|
|
112
|
-
value:
|
|
118
|
+
value: tx_5.MsgCreateValidator.fromPartial(object),
|
|
113
119
|
};
|
|
114
120
|
};
|
|
115
121
|
/** MsgDelegate message creator
|
|
@@ -121,7 +127,7 @@ var Staking;
|
|
|
121
127
|
Staking.Delegate = function (object) {
|
|
122
128
|
return {
|
|
123
129
|
typeUrl: stakeBaseUrl + "MsgDelegate",
|
|
124
|
-
value:
|
|
130
|
+
value: tx_5.MsgDelegate.fromPartial(object),
|
|
125
131
|
};
|
|
126
132
|
};
|
|
127
133
|
/** MsgEditValidator message creator
|
|
@@ -133,7 +139,7 @@ var Staking;
|
|
|
133
139
|
Staking.EditValidator = function (object) {
|
|
134
140
|
return {
|
|
135
141
|
typeUrl: stakeBaseUrl + "MsgEditValidator",
|
|
136
|
-
value:
|
|
142
|
+
value: tx_5.MsgEditValidator.fromPartial(object),
|
|
137
143
|
};
|
|
138
144
|
};
|
|
139
145
|
/** MsgUndelegate message creator
|
|
@@ -145,7 +151,7 @@ var Staking;
|
|
|
145
151
|
Staking.Undelegate = function (object) {
|
|
146
152
|
return {
|
|
147
153
|
typeUrl: stakeBaseUrl + "MsgUndelegate",
|
|
148
|
-
value:
|
|
154
|
+
value: tx_5.MsgUndelegate.fromPartial(object),
|
|
149
155
|
};
|
|
150
156
|
};
|
|
151
157
|
/** MsgUpdateParams message creator
|
|
@@ -156,7 +162,7 @@ var Staking;
|
|
|
156
162
|
Staking.UpdateParams = function (object) {
|
|
157
163
|
return {
|
|
158
164
|
typeUrl: stakeBaseUrl + "MsgUpdateParams",
|
|
159
|
-
value:
|
|
165
|
+
value: tx_5.MsgUpdateParams.fromPartial(object),
|
|
160
166
|
};
|
|
161
167
|
};
|
|
162
168
|
})(Staking || (exports.Staking = Staking = {}));
|
|
@@ -258,7 +264,7 @@ var Bank;
|
|
|
258
264
|
Bank.MultiSend = function (object) {
|
|
259
265
|
return {
|
|
260
266
|
typeUrl: bankBaseUrl + "MsgMultiSend",
|
|
261
|
-
value:
|
|
267
|
+
value: tx_7.MsgMultiSend.fromPartial(object),
|
|
262
268
|
};
|
|
263
269
|
};
|
|
264
270
|
/** MsgSend message creator
|
|
@@ -270,7 +276,7 @@ var Bank;
|
|
|
270
276
|
Bank.Send = function (object) {
|
|
271
277
|
return {
|
|
272
278
|
typeUrl: bankBaseUrl + "MsgSend",
|
|
273
|
-
value:
|
|
279
|
+
value: tx_7.MsgSend.fromPartial(object),
|
|
274
280
|
};
|
|
275
281
|
};
|
|
276
282
|
/** MsgSetSendEnabled message creator
|
|
@@ -281,7 +287,7 @@ var Bank;
|
|
|
281
287
|
Bank.SetSendEnabled = function (object) {
|
|
282
288
|
return {
|
|
283
289
|
typeUrl: bankBaseUrl + "MsgSetSendEnabled",
|
|
284
|
-
value:
|
|
290
|
+
value: tx_7.MsgSetSendEnabled.fromPartial(object),
|
|
285
291
|
};
|
|
286
292
|
};
|
|
287
293
|
/** MsgUpdateParams message creator
|
|
@@ -292,7 +298,7 @@ var Bank;
|
|
|
292
298
|
Bank.UpdateParams = function (object) {
|
|
293
299
|
return {
|
|
294
300
|
typeUrl: bankBaseUrl + "MsgUpdateParams",
|
|
295
|
-
value:
|
|
301
|
+
value: tx_7.MsgUpdateParams.fromPartial(object),
|
|
296
302
|
};
|
|
297
303
|
};
|
|
298
304
|
})(Bank || (exports.Bank = Bank = {}));
|
|
@@ -310,7 +316,7 @@ var Distribution;
|
|
|
310
316
|
Distribution.WithdrawDelegatorReward = function (object) {
|
|
311
317
|
return {
|
|
312
318
|
typeUrl: distBaseUrl + "MsgWithdrawDelegatorReward",
|
|
313
|
-
value:
|
|
319
|
+
value: tx_3.MsgWithdrawDelegatorReward.fromPartial(object),
|
|
314
320
|
};
|
|
315
321
|
};
|
|
316
322
|
/** MsgUpdateParams message creator
|
|
@@ -321,7 +327,7 @@ var Distribution;
|
|
|
321
327
|
Distribution.UpdateParams = function (object) {
|
|
322
328
|
return {
|
|
323
329
|
typeUrl: distBaseUrl + "MsgUpdateParams",
|
|
324
|
-
value:
|
|
330
|
+
value: tx_3.MsgUpdateParams.fromPartial(object),
|
|
325
331
|
};
|
|
326
332
|
};
|
|
327
333
|
/** MsgWithdrawValidatorCommission message creator
|
|
@@ -333,7 +339,7 @@ var Distribution;
|
|
|
333
339
|
Distribution.WithdrawValidatorCommission = function (object) {
|
|
334
340
|
return {
|
|
335
341
|
typeUrl: distBaseUrl + "MsgWithdrawValidatorCommission",
|
|
336
|
-
value:
|
|
342
|
+
value: tx_3.MsgWithdrawValidatorCommission.fromPartial(object),
|
|
337
343
|
};
|
|
338
344
|
};
|
|
339
345
|
/** MsgCommunityPoolSpend message creator
|
|
@@ -344,20 +350,22 @@ var Distribution;
|
|
|
344
350
|
Distribution.CommunityPoolSpend = function (object) {
|
|
345
351
|
return {
|
|
346
352
|
typeUrl: distBaseUrl + "MsgCommunityPoolSpend",
|
|
347
|
-
value:
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
/** MsgDepositValidatorRewardsPool message creator
|
|
351
|
-
*
|
|
352
|
-
* @param object Represents the properties available for this MsgDepositValidatorRewardsPool message.
|
|
353
|
-
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
354
|
-
*/
|
|
355
|
-
Distribution.DepositValidatorRewardsPool = function (object) {
|
|
356
|
-
return {
|
|
357
|
-
typeUrl: distBaseUrl + "MsgDepositValidatorRewardsPool",
|
|
358
|
-
value: tx_4.MsgDepositValidatorRewardsPool.fromPartial(object),
|
|
353
|
+
value: tx_3.MsgCommunityPoolSpend.fromPartial(object),
|
|
359
354
|
};
|
|
360
355
|
};
|
|
356
|
+
// /** MsgDepositValidatorRewardsPool message creator
|
|
357
|
+
// *
|
|
358
|
+
// * @param object Represents the properties available for this MsgDepositValidatorRewardsPool message.
|
|
359
|
+
// * @returns A Msg object with the typeUrl and value object for the proper message
|
|
360
|
+
// */
|
|
361
|
+
// export const DepositValidatorRewardsPool = function (
|
|
362
|
+
// object: DistributionMsgs.MsgDepositValidatorRewardsPool
|
|
363
|
+
// ) {
|
|
364
|
+
// return {
|
|
365
|
+
// typeUrl: distBaseUrl + "MsgDepositValidatorRewardsPool",
|
|
366
|
+
// value: MsgDepositValidatorRewardsPool.fromPartial(object),
|
|
367
|
+
// };
|
|
368
|
+
// };
|
|
361
369
|
/** MsgFundCommunityPool message creator
|
|
362
370
|
* Defines a method to allow an account to directly fund the community pool.
|
|
363
371
|
*
|
|
@@ -367,7 +375,7 @@ var Distribution;
|
|
|
367
375
|
Distribution.FundCommunityPool = function (object) {
|
|
368
376
|
return {
|
|
369
377
|
typeUrl: distBaseUrl + "MsgFundCommunityPool",
|
|
370
|
-
value:
|
|
378
|
+
value: tx_3.MsgFundCommunityPool.fromPartial(object),
|
|
371
379
|
};
|
|
372
380
|
};
|
|
373
381
|
/** MsgSetWithdrawAddress message creator
|
|
@@ -379,7 +387,7 @@ var Distribution;
|
|
|
379
387
|
Distribution.SetWithdrawAddress = function (object) {
|
|
380
388
|
return {
|
|
381
389
|
typeUrl: distBaseUrl + "MsgSetWithdrawAddress",
|
|
382
|
-
value:
|
|
390
|
+
value: tx_3.MsgSetWithdrawAddress.fromPartial(object),
|
|
383
391
|
};
|
|
384
392
|
};
|
|
385
393
|
})(Distribution || (exports.Distribution = Distribution = {}));
|
|
@@ -397,19 +405,19 @@ var Vesting;
|
|
|
397
405
|
Vesting.CreateVestingAccount = function (object) {
|
|
398
406
|
return {
|
|
399
407
|
typeUrl: vestBaseUrl + "MsgCreateVestingAccount",
|
|
400
|
-
value:
|
|
408
|
+
value: tx_4.MsgCreateVestingAccount.fromPartial(object),
|
|
401
409
|
};
|
|
402
410
|
};
|
|
403
411
|
Vesting.CreatePeriodicVestingAccount = function (object) {
|
|
404
412
|
return {
|
|
405
413
|
typeUrl: vestBaseUrl + "MsgCreatePeriodicVestingAccount",
|
|
406
|
-
value:
|
|
414
|
+
value: tx_4.MsgCreatePeriodicVestingAccount.fromPartial(object),
|
|
407
415
|
};
|
|
408
416
|
};
|
|
409
417
|
Vesting.CreatePermanentLockedAccount = function (object) {
|
|
410
418
|
return {
|
|
411
419
|
typeUrl: vestBaseUrl + "MsgCreatePermanentLockedAccount",
|
|
412
|
-
value:
|
|
420
|
+
value: tx_4.MsgCreatePermanentLockedAccount.fromPartial(object),
|
|
413
421
|
};
|
|
414
422
|
};
|
|
415
423
|
})(Vesting || (exports.Vesting = Vesting = {}));
|
|
@@ -3,12 +3,12 @@ import { Feature } from "../coreum/asset/ft/v1/token";
|
|
|
3
3
|
import { ClassFeature } from "../coreum/asset/nft/v1/nft";
|
|
4
4
|
import { Any } from "../google/protobuf/any";
|
|
5
5
|
import { AccessConfig, Params as WasmParams } from "cosmjs-types/cosmwasm/wasm/v1/types";
|
|
6
|
-
import { Description, CommissionRates, Params as StakingParams } from "../cosmos/staking/v1beta1/staking";
|
|
7
6
|
import { VoteOption, WeightedVoteOption } from "cosmjs-types/cosmos/gov/v1beta1/gov";
|
|
8
7
|
import { Input, Output, SendEnabled, Params as BankParams } from "cosmjs-types/cosmos/bank/v1beta1/bank";
|
|
9
8
|
import { Params as DistParams } from "cosmjs-types/cosmos/distribution/v1beta1/distribution";
|
|
10
|
-
import { Period } from "
|
|
11
|
-
import { Grant } from "
|
|
9
|
+
import { Period } from "cosmjs-types/cosmos/vesting/v1beta1/vesting";
|
|
10
|
+
import { Grant } from "cosmjs-types/cosmos/authz/v1beta1/authz";
|
|
11
|
+
import { CommissionRates, Description, Params as StakingParams } from "cosmjs-types/cosmos/staking/v1beta1/staking";
|
|
12
12
|
export declare namespace FTMsgs {
|
|
13
13
|
interface MsgIssue {
|
|
14
14
|
issuer: string;
|
|
@@ -330,7 +330,7 @@ export declare namespace AuthzMsgs {
|
|
|
330
330
|
interface MsgGrant {
|
|
331
331
|
granter: string;
|
|
332
332
|
grantee: string;
|
|
333
|
-
grant
|
|
333
|
+
grant?: Grant;
|
|
334
334
|
}
|
|
335
335
|
/**
|
|
336
336
|
* MsgExec attempts to execute the provided messages using
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Coin } from "
|
|
2
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
3
3
|
import { Any } from "../../google/protobuf/any";
|
|
4
4
|
export declare const protobufPackage = "cosmwasm.wasm.v1";
|
|
5
5
|
/**
|
|
@@ -7,7 +7,7 @@ exports.AcceptedMessagesFilter = exports.AcceptedMessageKeysFilter = exports.All
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
const any_1 = require("../../google/protobuf/any");
|
|
12
12
|
exports.protobufPackage = "cosmwasm.wasm.v1";
|
|
13
13
|
function createBaseContractExecutionAuthorization() {
|
|
@@ -7,7 +7,7 @@ exports.StoreAndInstantiateContractProposal = exports.UpdateInstantiateConfigPro
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
const types_1 = require("./types");
|
|
12
12
|
exports.protobufPackage = "cosmwasm.wasm.v1";
|
|
13
13
|
function createBaseStoreCodeProposal() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Coin } from "
|
|
2
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
3
3
|
import { AccessConfig, Params } from "./types";
|
|
4
4
|
export declare const protobufPackage = "cosmwasm.wasm.v1";
|
|
5
5
|
/** MsgStoreCode submit Wasm code to the system */
|
package/dist/main/wasm/v1/tx.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.MsgClientImpl = exports.MsgStoreAndInstantiateContractResponse = exports
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
const types_1 = require("./types");
|
|
12
12
|
exports.protobufPackage = "cosmwasm.wasm.v1";
|
|
13
13
|
function createBaseMsgStoreCode() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoreumNetworkConfig } from "../types/coreum";
|
|
2
2
|
import { EncodeObject, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
|
3
|
+
import { TxRaw } from "../cosmos";
|
|
3
4
|
import { ExtensionWallets, FeeCalculation, ClientQueryClient } from "../types";
|
|
4
5
|
import { DeliverTxResponse, StargateClient } from "@cosmjs/stargate";
|
|
5
6
|
import EventEmitter from "eventemitter3";
|
|
@@ -107,7 +108,7 @@ export declare class Client {
|
|
|
107
108
|
* @param memo An arbitrary string to add as Memo for the transaction
|
|
108
109
|
* @returns TxRaw object to be submitted to the chain
|
|
109
110
|
*/
|
|
110
|
-
signTx(msgs: readonly EncodeObject[], memo?: string): Promise<
|
|
111
|
+
signTx(msgs: readonly EncodeObject[], memo?: string): Promise<TxRaw>;
|
|
111
112
|
/**
|
|
112
113
|
*
|
|
113
114
|
* @param event String describing the event to subscribe to.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Coin } from "
|
|
3
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
4
|
import { Params } from "./params";
|
|
5
5
|
import { Token } from "./token";
|
|
6
6
|
export declare const protobufPackage = "coreum.asset.ft.v1";
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { Coin } from "
|
|
4
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
5
5
|
import { Params } from "./params";
|
|
6
6
|
import { Token } from "./token";
|
|
7
7
|
export const protobufPackage = "coreum.asset.ft.v1";
|
|
8
8
|
function createBaseGenesisState() {
|
|
9
|
-
return {
|
|
9
|
+
return {
|
|
10
|
+
params: undefined,
|
|
11
|
+
tokens: [],
|
|
12
|
+
frozenBalances: [],
|
|
13
|
+
whitelistedBalances: [],
|
|
14
|
+
};
|
|
10
15
|
}
|
|
11
16
|
export const GenesisState = {
|
|
12
17
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -66,7 +71,9 @@ export const GenesisState = {
|
|
|
66
71
|
fromJSON(object) {
|
|
67
72
|
return {
|
|
68
73
|
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
69
|
-
tokens: Array.isArray(object?.tokens)
|
|
74
|
+
tokens: Array.isArray(object?.tokens)
|
|
75
|
+
? object.tokens.map((e) => Token.fromJSON(e))
|
|
76
|
+
: [],
|
|
70
77
|
frozenBalances: Array.isArray(object?.frozenBalances)
|
|
71
78
|
? object.frozenBalances.map((e) => Balance.fromJSON(e))
|
|
72
79
|
: [],
|
|
@@ -77,9 +84,10 @@ export const GenesisState = {
|
|
|
77
84
|
},
|
|
78
85
|
toJSON(message) {
|
|
79
86
|
const obj = {};
|
|
80
|
-
message.params !== undefined &&
|
|
87
|
+
message.params !== undefined &&
|
|
88
|
+
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
81
89
|
if (message.tokens) {
|
|
82
|
-
obj.tokens = message.tokens.map((e) => e ? Token.toJSON(e) : undefined);
|
|
90
|
+
obj.tokens = message.tokens.map((e) => (e ? Token.toJSON(e) : undefined));
|
|
83
91
|
}
|
|
84
92
|
else {
|
|
85
93
|
obj.tokens = [];
|
|
@@ -103,12 +111,15 @@ export const GenesisState = {
|
|
|
103
111
|
},
|
|
104
112
|
fromPartial(object) {
|
|
105
113
|
const message = createBaseGenesisState();
|
|
106
|
-
message.params =
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
message.params =
|
|
115
|
+
object.params !== undefined && object.params !== null
|
|
116
|
+
? Params.fromPartial(object.params)
|
|
117
|
+
: undefined;
|
|
109
118
|
message.tokens = object.tokens?.map((e) => Token.fromPartial(e)) || [];
|
|
110
|
-
message.frozenBalances =
|
|
111
|
-
|
|
119
|
+
message.frozenBalances =
|
|
120
|
+
object.frozenBalances?.map((e) => Balance.fromPartial(e)) || [];
|
|
121
|
+
message.whitelistedBalances =
|
|
122
|
+
object.whitelistedBalances?.map((e) => Balance.fromPartial(e)) || [];
|
|
112
123
|
return message;
|
|
113
124
|
},
|
|
114
125
|
};
|
|
@@ -155,14 +166,16 @@ export const Balance = {
|
|
|
155
166
|
fromJSON(object) {
|
|
156
167
|
return {
|
|
157
168
|
address: isSet(object.address) ? String(object.address) : "",
|
|
158
|
-
coins: Array.isArray(object?.coins)
|
|
169
|
+
coins: Array.isArray(object?.coins)
|
|
170
|
+
? object.coins.map((e) => Coin.fromJSON(e))
|
|
171
|
+
: [],
|
|
159
172
|
};
|
|
160
173
|
},
|
|
161
174
|
toJSON(message) {
|
|
162
175
|
const obj = {};
|
|
163
176
|
message.address !== undefined && (obj.address = message.address);
|
|
164
177
|
if (message.coins) {
|
|
165
|
-
obj.coins = message.coins.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
178
|
+
obj.coins = message.coins.map((e) => (e ? Coin.toJSON(e) : undefined));
|
|
166
179
|
}
|
|
167
180
|
else {
|
|
168
181
|
obj.coins = [];
|