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,145 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
3
|
-
export declare const protobufPackage = "cosmos.staking.v1beta1";
|
|
4
|
-
/**
|
|
5
|
-
* AuthorizationType defines the type of staking module authorization type
|
|
6
|
-
*
|
|
7
|
-
* Since: cosmos-sdk 0.43
|
|
8
|
-
*/
|
|
9
|
-
export declare enum AuthorizationType {
|
|
10
|
-
/** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */
|
|
11
|
-
AUTHORIZATION_TYPE_UNSPECIFIED = 0,
|
|
12
|
-
/** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */
|
|
13
|
-
AUTHORIZATION_TYPE_DELEGATE = 1,
|
|
14
|
-
/** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */
|
|
15
|
-
AUTHORIZATION_TYPE_UNDELEGATE = 2,
|
|
16
|
-
/** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */
|
|
17
|
-
AUTHORIZATION_TYPE_REDELEGATE = 3,
|
|
18
|
-
/** AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION - AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation */
|
|
19
|
-
AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION = 4,
|
|
20
|
-
UNRECOGNIZED = -1
|
|
21
|
-
}
|
|
22
|
-
export declare function authorizationTypeFromJSON(object: any): AuthorizationType;
|
|
23
|
-
export declare function authorizationTypeToJSON(object: AuthorizationType): string;
|
|
24
|
-
/**
|
|
25
|
-
* StakeAuthorization defines authorization for delegate/undelegate/redelegate.
|
|
26
|
-
*
|
|
27
|
-
* Since: cosmos-sdk 0.43
|
|
28
|
-
*/
|
|
29
|
-
export interface StakeAuthorization {
|
|
30
|
-
/**
|
|
31
|
-
* max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
|
|
32
|
-
* empty, there is no spend limit and any amount of coins can be delegated.
|
|
33
|
-
*/
|
|
34
|
-
maxTokens: Coin | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
|
|
37
|
-
* account.
|
|
38
|
-
*/
|
|
39
|
-
allowList?: StakeAuthorization_Validators | undefined;
|
|
40
|
-
/** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */
|
|
41
|
-
denyList?: StakeAuthorization_Validators | undefined;
|
|
42
|
-
/** authorization_type defines one of AuthorizationType. */
|
|
43
|
-
authorizationType: AuthorizationType;
|
|
44
|
-
}
|
|
45
|
-
/** Validators defines list of validator addresses. */
|
|
46
|
-
export interface StakeAuthorization_Validators {
|
|
47
|
-
address: string[];
|
|
48
|
-
}
|
|
49
|
-
export declare const StakeAuthorization: {
|
|
50
|
-
encode(message: StakeAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StakeAuthorization;
|
|
52
|
-
fromJSON(object: any): StakeAuthorization;
|
|
53
|
-
toJSON(message: StakeAuthorization): unknown;
|
|
54
|
-
create<I extends {
|
|
55
|
-
maxTokens?: {
|
|
56
|
-
denom?: string;
|
|
57
|
-
amount?: string;
|
|
58
|
-
};
|
|
59
|
-
allowList?: {
|
|
60
|
-
address?: string[];
|
|
61
|
-
};
|
|
62
|
-
denyList?: {
|
|
63
|
-
address?: string[];
|
|
64
|
-
};
|
|
65
|
-
authorizationType?: AuthorizationType;
|
|
66
|
-
} & {
|
|
67
|
-
maxTokens?: {
|
|
68
|
-
denom?: string;
|
|
69
|
-
amount?: string;
|
|
70
|
-
} & {
|
|
71
|
-
denom?: string;
|
|
72
|
-
amount?: string;
|
|
73
|
-
} & { [K in Exclude<keyof I["maxTokens"], keyof Coin>]: never; };
|
|
74
|
-
allowList?: {
|
|
75
|
-
address?: string[];
|
|
76
|
-
} & {
|
|
77
|
-
address?: string[] & string[] & { [K_1 in Exclude<keyof I["allowList"]["address"], keyof string[]>]: never; };
|
|
78
|
-
} & { [K_2 in Exclude<keyof I["allowList"], "address">]: never; };
|
|
79
|
-
denyList?: {
|
|
80
|
-
address?: string[];
|
|
81
|
-
} & {
|
|
82
|
-
address?: string[] & string[] & { [K_3 in Exclude<keyof I["denyList"]["address"], keyof string[]>]: never; };
|
|
83
|
-
} & { [K_4 in Exclude<keyof I["denyList"], "address">]: never; };
|
|
84
|
-
authorizationType?: AuthorizationType;
|
|
85
|
-
} & { [K_5 in Exclude<keyof I, keyof StakeAuthorization>]: never; }>(base?: I): StakeAuthorization;
|
|
86
|
-
fromPartial<I_1 extends {
|
|
87
|
-
maxTokens?: {
|
|
88
|
-
denom?: string;
|
|
89
|
-
amount?: string;
|
|
90
|
-
};
|
|
91
|
-
allowList?: {
|
|
92
|
-
address?: string[];
|
|
93
|
-
};
|
|
94
|
-
denyList?: {
|
|
95
|
-
address?: string[];
|
|
96
|
-
};
|
|
97
|
-
authorizationType?: AuthorizationType;
|
|
98
|
-
} & {
|
|
99
|
-
maxTokens?: {
|
|
100
|
-
denom?: string;
|
|
101
|
-
amount?: string;
|
|
102
|
-
} & {
|
|
103
|
-
denom?: string;
|
|
104
|
-
amount?: string;
|
|
105
|
-
} & { [K_6 in Exclude<keyof I_1["maxTokens"], keyof Coin>]: never; };
|
|
106
|
-
allowList?: {
|
|
107
|
-
address?: string[];
|
|
108
|
-
} & {
|
|
109
|
-
address?: string[] & string[] & { [K_7 in Exclude<keyof I_1["allowList"]["address"], keyof string[]>]: never; };
|
|
110
|
-
} & { [K_8 in Exclude<keyof I_1["allowList"], "address">]: never; };
|
|
111
|
-
denyList?: {
|
|
112
|
-
address?: string[];
|
|
113
|
-
} & {
|
|
114
|
-
address?: string[] & string[] & { [K_9 in Exclude<keyof I_1["denyList"]["address"], keyof string[]>]: never; };
|
|
115
|
-
} & { [K_10 in Exclude<keyof I_1["denyList"], "address">]: never; };
|
|
116
|
-
authorizationType?: AuthorizationType;
|
|
117
|
-
} & { [K_11 in Exclude<keyof I_1, keyof StakeAuthorization>]: never; }>(object: I_1): StakeAuthorization;
|
|
118
|
-
};
|
|
119
|
-
export declare const StakeAuthorization_Validators: {
|
|
120
|
-
encode(message: StakeAuthorization_Validators, writer?: _m0.Writer): _m0.Writer;
|
|
121
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StakeAuthorization_Validators;
|
|
122
|
-
fromJSON(object: any): StakeAuthorization_Validators;
|
|
123
|
-
toJSON(message: StakeAuthorization_Validators): unknown;
|
|
124
|
-
create<I extends {
|
|
125
|
-
address?: string[];
|
|
126
|
-
} & {
|
|
127
|
-
address?: string[] & string[] & { [K in Exclude<keyof I["address"], keyof string[]>]: never; };
|
|
128
|
-
} & { [K_1 in Exclude<keyof I, "address">]: never; }>(base?: I): StakeAuthorization_Validators;
|
|
129
|
-
fromPartial<I_1 extends {
|
|
130
|
-
address?: string[];
|
|
131
|
-
} & {
|
|
132
|
-
address?: string[] & string[] & { [K_2 in Exclude<keyof I_1["address"], keyof string[]>]: never; };
|
|
133
|
-
} & { [K_3 in Exclude<keyof I_1, "address">]: never; }>(object: I_1): StakeAuthorization_Validators;
|
|
134
|
-
};
|
|
135
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
136
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
137
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
138
|
-
} : Partial<T>;
|
|
139
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
140
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
141
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
142
|
-
} & {
|
|
143
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
144
|
-
};
|
|
145
|
-
export {};
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StakeAuthorization_Validators = exports.StakeAuthorization = exports.authorizationTypeToJSON = exports.authorizationTypeFromJSON = exports.AuthorizationType = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const coin_1 = require("../../base/v1beta1/coin");
|
|
10
|
-
exports.protobufPackage = "cosmos.staking.v1beta1";
|
|
11
|
-
/**
|
|
12
|
-
* AuthorizationType defines the type of staking module authorization type
|
|
13
|
-
*
|
|
14
|
-
* Since: cosmos-sdk 0.43
|
|
15
|
-
*/
|
|
16
|
-
var AuthorizationType;
|
|
17
|
-
(function (AuthorizationType) {
|
|
18
|
-
/** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */
|
|
19
|
-
AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNSPECIFIED"] = 0] = "AUTHORIZATION_TYPE_UNSPECIFIED";
|
|
20
|
-
/** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */
|
|
21
|
-
AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_DELEGATE"] = 1] = "AUTHORIZATION_TYPE_DELEGATE";
|
|
22
|
-
/** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */
|
|
23
|
-
AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_UNDELEGATE"] = 2] = "AUTHORIZATION_TYPE_UNDELEGATE";
|
|
24
|
-
/** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */
|
|
25
|
-
AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_REDELEGATE"] = 3] = "AUTHORIZATION_TYPE_REDELEGATE";
|
|
26
|
-
/** AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION - AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation */
|
|
27
|
-
AuthorizationType[AuthorizationType["AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION"] = 4] = "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION";
|
|
28
|
-
AuthorizationType[AuthorizationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
29
|
-
})(AuthorizationType || (exports.AuthorizationType = AuthorizationType = {}));
|
|
30
|
-
function authorizationTypeFromJSON(object) {
|
|
31
|
-
switch (object) {
|
|
32
|
-
case 0:
|
|
33
|
-
case "AUTHORIZATION_TYPE_UNSPECIFIED":
|
|
34
|
-
return AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED;
|
|
35
|
-
case 1:
|
|
36
|
-
case "AUTHORIZATION_TYPE_DELEGATE":
|
|
37
|
-
return AuthorizationType.AUTHORIZATION_TYPE_DELEGATE;
|
|
38
|
-
case 2:
|
|
39
|
-
case "AUTHORIZATION_TYPE_UNDELEGATE":
|
|
40
|
-
return AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE;
|
|
41
|
-
case 3:
|
|
42
|
-
case "AUTHORIZATION_TYPE_REDELEGATE":
|
|
43
|
-
return AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE;
|
|
44
|
-
case 4:
|
|
45
|
-
case "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION":
|
|
46
|
-
return AuthorizationType.AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION;
|
|
47
|
-
case -1:
|
|
48
|
-
case "UNRECOGNIZED":
|
|
49
|
-
default:
|
|
50
|
-
return AuthorizationType.UNRECOGNIZED;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.authorizationTypeFromJSON = authorizationTypeFromJSON;
|
|
54
|
-
function authorizationTypeToJSON(object) {
|
|
55
|
-
switch (object) {
|
|
56
|
-
case AuthorizationType.AUTHORIZATION_TYPE_UNSPECIFIED:
|
|
57
|
-
return "AUTHORIZATION_TYPE_UNSPECIFIED";
|
|
58
|
-
case AuthorizationType.AUTHORIZATION_TYPE_DELEGATE:
|
|
59
|
-
return "AUTHORIZATION_TYPE_DELEGATE";
|
|
60
|
-
case AuthorizationType.AUTHORIZATION_TYPE_UNDELEGATE:
|
|
61
|
-
return "AUTHORIZATION_TYPE_UNDELEGATE";
|
|
62
|
-
case AuthorizationType.AUTHORIZATION_TYPE_REDELEGATE:
|
|
63
|
-
return "AUTHORIZATION_TYPE_REDELEGATE";
|
|
64
|
-
case AuthorizationType.AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION:
|
|
65
|
-
return "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION";
|
|
66
|
-
case AuthorizationType.UNRECOGNIZED:
|
|
67
|
-
default:
|
|
68
|
-
return "UNRECOGNIZED";
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.authorizationTypeToJSON = authorizationTypeToJSON;
|
|
72
|
-
function createBaseStakeAuthorization() {
|
|
73
|
-
return { maxTokens: undefined, allowList: undefined, denyList: undefined, authorizationType: 0 };
|
|
74
|
-
}
|
|
75
|
-
exports.StakeAuthorization = {
|
|
76
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
77
|
-
if (message.maxTokens !== undefined) {
|
|
78
|
-
coin_1.Coin.encode(message.maxTokens, writer.uint32(10).fork()).ldelim();
|
|
79
|
-
}
|
|
80
|
-
if (message.allowList !== undefined) {
|
|
81
|
-
exports.StakeAuthorization_Validators.encode(message.allowList, writer.uint32(18).fork()).ldelim();
|
|
82
|
-
}
|
|
83
|
-
if (message.denyList !== undefined) {
|
|
84
|
-
exports.StakeAuthorization_Validators.encode(message.denyList, writer.uint32(26).fork()).ldelim();
|
|
85
|
-
}
|
|
86
|
-
if (message.authorizationType !== 0) {
|
|
87
|
-
writer.uint32(32).int32(message.authorizationType);
|
|
88
|
-
}
|
|
89
|
-
return writer;
|
|
90
|
-
},
|
|
91
|
-
decode(input, length) {
|
|
92
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
-
const message = createBaseStakeAuthorization();
|
|
95
|
-
while (reader.pos < end) {
|
|
96
|
-
const tag = reader.uint32();
|
|
97
|
-
switch (tag >>> 3) {
|
|
98
|
-
case 1:
|
|
99
|
-
if (tag !== 10) {
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
message.maxTokens = coin_1.Coin.decode(reader, reader.uint32());
|
|
103
|
-
continue;
|
|
104
|
-
case 2:
|
|
105
|
-
if (tag !== 18) {
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
message.allowList = exports.StakeAuthorization_Validators.decode(reader, reader.uint32());
|
|
109
|
-
continue;
|
|
110
|
-
case 3:
|
|
111
|
-
if (tag !== 26) {
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
message.denyList = exports.StakeAuthorization_Validators.decode(reader, reader.uint32());
|
|
115
|
-
continue;
|
|
116
|
-
case 4:
|
|
117
|
-
if (tag !== 32) {
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
message.authorizationType = reader.int32();
|
|
121
|
-
continue;
|
|
122
|
-
}
|
|
123
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
reader.skipType(tag & 7);
|
|
127
|
-
}
|
|
128
|
-
return message;
|
|
129
|
-
},
|
|
130
|
-
fromJSON(object) {
|
|
131
|
-
return {
|
|
132
|
-
maxTokens: isSet(object.maxTokens) ? coin_1.Coin.fromJSON(object.maxTokens) : undefined,
|
|
133
|
-
allowList: isSet(object.allowList) ? exports.StakeAuthorization_Validators.fromJSON(object.allowList) : undefined,
|
|
134
|
-
denyList: isSet(object.denyList) ? exports.StakeAuthorization_Validators.fromJSON(object.denyList) : undefined,
|
|
135
|
-
authorizationType: isSet(object.authorizationType) ? authorizationTypeFromJSON(object.authorizationType) : 0,
|
|
136
|
-
};
|
|
137
|
-
},
|
|
138
|
-
toJSON(message) {
|
|
139
|
-
const obj = {};
|
|
140
|
-
message.maxTokens !== undefined && (obj.maxTokens = message.maxTokens ? coin_1.Coin.toJSON(message.maxTokens) : undefined);
|
|
141
|
-
message.allowList !== undefined &&
|
|
142
|
-
(obj.allowList = message.allowList ? exports.StakeAuthorization_Validators.toJSON(message.allowList) : undefined);
|
|
143
|
-
message.denyList !== undefined &&
|
|
144
|
-
(obj.denyList = message.denyList ? exports.StakeAuthorization_Validators.toJSON(message.denyList) : undefined);
|
|
145
|
-
message.authorizationType !== undefined &&
|
|
146
|
-
(obj.authorizationType = authorizationTypeToJSON(message.authorizationType));
|
|
147
|
-
return obj;
|
|
148
|
-
},
|
|
149
|
-
create(base) {
|
|
150
|
-
return exports.StakeAuthorization.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
151
|
-
},
|
|
152
|
-
fromPartial(object) {
|
|
153
|
-
var _a;
|
|
154
|
-
const message = createBaseStakeAuthorization();
|
|
155
|
-
message.maxTokens = (object.maxTokens !== undefined && object.maxTokens !== null)
|
|
156
|
-
? coin_1.Coin.fromPartial(object.maxTokens)
|
|
157
|
-
: undefined;
|
|
158
|
-
message.allowList = (object.allowList !== undefined && object.allowList !== null)
|
|
159
|
-
? exports.StakeAuthorization_Validators.fromPartial(object.allowList)
|
|
160
|
-
: undefined;
|
|
161
|
-
message.denyList = (object.denyList !== undefined && object.denyList !== null)
|
|
162
|
-
? exports.StakeAuthorization_Validators.fromPartial(object.denyList)
|
|
163
|
-
: undefined;
|
|
164
|
-
message.authorizationType = (_a = object.authorizationType) !== null && _a !== void 0 ? _a : 0;
|
|
165
|
-
return message;
|
|
166
|
-
},
|
|
167
|
-
};
|
|
168
|
-
function createBaseStakeAuthorization_Validators() {
|
|
169
|
-
return { address: [] };
|
|
170
|
-
}
|
|
171
|
-
exports.StakeAuthorization_Validators = {
|
|
172
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
173
|
-
for (const v of message.address) {
|
|
174
|
-
writer.uint32(10).string(v);
|
|
175
|
-
}
|
|
176
|
-
return writer;
|
|
177
|
-
},
|
|
178
|
-
decode(input, length) {
|
|
179
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
180
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
181
|
-
const message = createBaseStakeAuthorization_Validators();
|
|
182
|
-
while (reader.pos < end) {
|
|
183
|
-
const tag = reader.uint32();
|
|
184
|
-
switch (tag >>> 3) {
|
|
185
|
-
case 1:
|
|
186
|
-
if (tag !== 10) {
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
message.address.push(reader.string());
|
|
190
|
-
continue;
|
|
191
|
-
}
|
|
192
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
reader.skipType(tag & 7);
|
|
196
|
-
}
|
|
197
|
-
return message;
|
|
198
|
-
},
|
|
199
|
-
fromJSON(object) {
|
|
200
|
-
return { address: Array.isArray(object === null || object === void 0 ? void 0 : object.address) ? object.address.map((e) => String(e)) : [] };
|
|
201
|
-
},
|
|
202
|
-
toJSON(message) {
|
|
203
|
-
const obj = {};
|
|
204
|
-
if (message.address) {
|
|
205
|
-
obj.address = message.address.map((e) => e);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
obj.address = [];
|
|
209
|
-
}
|
|
210
|
-
return obj;
|
|
211
|
-
},
|
|
212
|
-
create(base) {
|
|
213
|
-
return exports.StakeAuthorization_Validators.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
214
|
-
},
|
|
215
|
-
fromPartial(object) {
|
|
216
|
-
var _a;
|
|
217
|
-
const message = createBaseStakeAuthorization_Validators();
|
|
218
|
-
message.address = ((_a = object.address) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
219
|
-
return message;
|
|
220
|
-
},
|
|
221
|
-
};
|
|
222
|
-
function isSet(value) {
|
|
223
|
-
return value !== null && value !== undefined;
|
|
224
|
-
}
|