coreum-js 2.5.11 → 2.5.13
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/cosmos/authz/v1beta1/authz.d.ts +167 -0
- package/dist/main/cosmos/authz/v1beta1/authz.js +320 -0
- package/dist/main/cosmos/authz/v1beta1/event.d.ts +80 -0
- package/dist/main/cosmos/authz/v1beta1/event.js +163 -0
- package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +121 -0
- package/dist/main/cosmos/authz/v1beta1/genesis.js +69 -0
- package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +128 -0
- package/dist/main/cosmos/authz/v1beta1/pagination.js +228 -0
- package/dist/main/cosmos/authz/v1beta1/query.d.ts +616 -0
- package/dist/main/cosmos/authz/v1beta1/query.js +513 -0
- package/dist/main/cosmos/authz/v1beta1/tx.d.ts +264 -0
- package/dist/main/cosmos/authz/v1beta1/tx.js +436 -0
- package/dist/main/cosmos/index.d.ts +307 -0
- package/dist/main/cosmos/index.js +72 -2
- package/dist/main/cosmos/staking/v1beta1/authz.d.ts +145 -0
- package/dist/main/cosmos/staking/v1beta1/authz.js +225 -0
- package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +899 -0
- package/dist/main/cosmos/staking/v1beta1/genesis.js +306 -0
- package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +128 -0
- package/dist/main/cosmos/staking/v1beta1/pagination.js +228 -0
- package/dist/main/cosmos/staking/v1beta1/query.d.ts +4165 -0
- package/dist/main/cosmos/staking/v1beta1/query.js +2020 -0
- package/dist/main/cosmos/staking/v1beta1/staking.d.ts +2059 -0
- package/dist/main/cosmos/staking/v1beta1/staking.js +2128 -0
- package/dist/main/cosmos/staking/v1beta1/tx.d.ts +748 -0
- package/dist/main/cosmos/staking/v1beta1/tx.js +1142 -0
- package/dist/main/tendermint/abci/types.d.ts +7075 -0
- package/dist/main/tendermint/abci/types.js +4934 -0
- package/dist/main/tendermint/crypto/keys.d.ts +38 -0
- package/dist/main/tendermint/crypto/keys.js +118 -0
- package/dist/main/tendermint/crypto/proof.d.ts +226 -0
- package/dist/main/tendermint/crypto/proof.js +427 -0
- package/dist/main/tendermint/types/params.d.ts +313 -0
- package/dist/main/tendermint/types/params.js +488 -0
- package/dist/main/tendermint/types/types.d.ts +1970 -0
- package/dist/main/tendermint/types/types.js +1602 -0
- package/dist/main/tendermint/types/validator.d.ts +277 -0
- package/dist/main/tendermint/types/validator.js +303 -0
- package/dist/main/tendermint/version/types.d.ts +71 -0
- package/dist/main/tendermint/version/types.js +162 -0
- package/dist/module/cosmos/authz/v1beta1/authz.d.ts +167 -0
- package/dist/module/cosmos/authz/v1beta1/authz.js +310 -0
- package/dist/module/cosmos/authz/v1beta1/event.d.ts +80 -0
- package/dist/module/cosmos/authz/v1beta1/event.js +155 -0
- package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +121 -0
- package/dist/module/cosmos/authz/v1beta1/genesis.js +62 -0
- package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +128 -0
- package/dist/module/cosmos/authz/v1beta1/pagination.js +220 -0
- package/dist/module/cosmos/authz/v1beta1/query.d.ts +616 -0
- package/dist/module/cosmos/authz/v1beta1/query.js +502 -0
- package/dist/module/cosmos/authz/v1beta1/tx.d.ts +264 -0
- package/dist/module/cosmos/authz/v1beta1/tx.js +427 -0
- package/dist/module/cosmos/index.d.ts +307 -0
- package/dist/module/cosmos/index.js +71 -1
- package/dist/module/cosmos/staking/v1beta1/authz.d.ts +145 -0
- package/dist/module/cosmos/staking/v1beta1/authz.js +215 -0
- package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +899 -0
- package/dist/module/cosmos/staking/v1beta1/genesis.js +298 -0
- package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +128 -0
- package/dist/module/cosmos/staking/v1beta1/pagination.js +220 -0
- package/dist/module/cosmos/staking/v1beta1/query.d.ts +4165 -0
- package/dist/module/cosmos/staking/v1beta1/query.js +1996 -0
- package/dist/module/cosmos/staking/v1beta1/staking.d.ts +2059 -0
- package/dist/module/cosmos/staking/v1beta1/staking.js +2098 -0
- package/dist/module/cosmos/staking/v1beta1/tx.d.ts +748 -0
- package/dist/module/cosmos/staking/v1beta1/tx.js +1128 -0
- package/dist/module/tendermint/abci/types.d.ts +7075 -0
- package/dist/module/tendermint/abci/types.js +4878 -0
- package/dist/module/tendermint/crypto/keys.d.ts +38 -0
- package/dist/module/tendermint/crypto/keys.js +111 -0
- package/dist/module/tendermint/crypto/proof.d.ts +226 -0
- package/dist/module/tendermint/crypto/proof.js +416 -0
- package/dist/module/tendermint/types/params.d.ts +313 -0
- package/dist/module/tendermint/types/params.js +477 -0
- package/dist/module/tendermint/types/types.d.ts +1970 -0
- package/dist/module/tendermint/types/types.js +1581 -0
- package/dist/module/tendermint/types/validator.d.ts +277 -0
- package/dist/module/tendermint/types/validator.js +294 -0
- package/dist/module/tendermint/version/types.d.ts +71 -0
- package/dist/module/tendermint/version/types.js +154 -0
- package/package.json +2 -2
|
@@ -3,6 +3,313 @@ import { MsgGrantAllowance, MsgRevokeAllowance } from "./feegrant/v1beta1/tx";
|
|
|
3
3
|
import { MsgMultiSend, MsgSend, MsgSetSendEnabled, MsgUpdateParams } from "./bank/v1beta1/tx";
|
|
4
4
|
import { MsgCommunityPoolSpend, MsgDepositValidatorRewardsPool, MsgFundCommunityPool, MsgSetWithdrawAddress, MsgUpdateParams as DMsgUpdateParams, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission } from "./distribution/v1beta1/tx";
|
|
5
5
|
import { MsgCreatePeriodicVestingAccount, MsgCreatePermanentLockedAccount, MsgCreateVestingAccount } from "./vesting/v1beta1/tx";
|
|
6
|
+
import { MsgBeginRedelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgDelegate, MsgEditValidator, MsgUndelegate, MsgUpdateParams as SMsgUpdateParams } from "./staking/v1beta1/tx";
|
|
7
|
+
import { MsgExec, MsgGrant, MsgRevoke } from "./authz/v1beta1/tx";
|
|
8
|
+
export declare namespace Authz {
|
|
9
|
+
const Grant: <I extends {
|
|
10
|
+
granter?: string;
|
|
11
|
+
grantee?: string;
|
|
12
|
+
grant?: {
|
|
13
|
+
authorization?: {
|
|
14
|
+
typeUrl?: string;
|
|
15
|
+
value?: Uint8Array;
|
|
16
|
+
};
|
|
17
|
+
expiration?: Date;
|
|
18
|
+
};
|
|
19
|
+
} & {
|
|
20
|
+
granter?: string;
|
|
21
|
+
grantee?: string;
|
|
22
|
+
grant?: {
|
|
23
|
+
authorization?: {
|
|
24
|
+
typeUrl?: string;
|
|
25
|
+
value?: Uint8Array;
|
|
26
|
+
};
|
|
27
|
+
expiration?: Date;
|
|
28
|
+
} & {
|
|
29
|
+
authorization?: {
|
|
30
|
+
typeUrl?: string;
|
|
31
|
+
value?: Uint8Array;
|
|
32
|
+
} & {
|
|
33
|
+
typeUrl?: string;
|
|
34
|
+
value?: Uint8Array;
|
|
35
|
+
} & { [K in Exclude<keyof I["grant"]["authorization"], keyof import("../google/protobuf/any").Any>]: never; };
|
|
36
|
+
expiration?: Date;
|
|
37
|
+
} & { [K_1 in Exclude<keyof I["grant"], keyof import("./authz/v1beta1/authz").Grant>]: never; };
|
|
38
|
+
} & { [K_2 in Exclude<keyof I, keyof MsgGrant>]: never; }>(object: I) => {
|
|
39
|
+
typeUrl: string;
|
|
40
|
+
value: MsgGrant;
|
|
41
|
+
};
|
|
42
|
+
const Exec: <I extends {
|
|
43
|
+
grantee?: string;
|
|
44
|
+
msgs?: {
|
|
45
|
+
typeUrl?: string;
|
|
46
|
+
value?: Uint8Array;
|
|
47
|
+
}[];
|
|
48
|
+
} & {
|
|
49
|
+
grantee?: string;
|
|
50
|
+
msgs?: {
|
|
51
|
+
typeUrl?: string;
|
|
52
|
+
value?: Uint8Array;
|
|
53
|
+
}[] & ({
|
|
54
|
+
typeUrl?: string;
|
|
55
|
+
value?: Uint8Array;
|
|
56
|
+
} & {
|
|
57
|
+
typeUrl?: string;
|
|
58
|
+
value?: Uint8Array;
|
|
59
|
+
} & { [K in Exclude<keyof I["msgs"][number], keyof import("../google/protobuf/any").Any>]: never; })[] & { [K_1 in Exclude<keyof I["msgs"], keyof {
|
|
60
|
+
typeUrl?: string;
|
|
61
|
+
value?: Uint8Array;
|
|
62
|
+
}[]>]: never; };
|
|
63
|
+
} & { [K_2 in Exclude<keyof I, keyof MsgExec>]: never; }>(object: I) => {
|
|
64
|
+
typeUrl: string;
|
|
65
|
+
value: MsgExec;
|
|
66
|
+
};
|
|
67
|
+
const Revoke: <I extends {
|
|
68
|
+
granter?: string;
|
|
69
|
+
grantee?: string;
|
|
70
|
+
msgTypeUrl?: string;
|
|
71
|
+
} & {
|
|
72
|
+
granter?: string;
|
|
73
|
+
grantee?: string;
|
|
74
|
+
msgTypeUrl?: string;
|
|
75
|
+
} & { [K in Exclude<keyof I, keyof MsgRevoke>]: never; }>(object: I) => {
|
|
76
|
+
typeUrl: string;
|
|
77
|
+
value: MsgRevoke;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export declare namespace Staking {
|
|
81
|
+
const BeginRedelegate: <I extends {
|
|
82
|
+
delegatorAddress?: string;
|
|
83
|
+
validatorSrcAddress?: string;
|
|
84
|
+
validatorDstAddress?: string;
|
|
85
|
+
amount?: {
|
|
86
|
+
denom?: string;
|
|
87
|
+
amount?: string;
|
|
88
|
+
};
|
|
89
|
+
} & {
|
|
90
|
+
delegatorAddress?: string;
|
|
91
|
+
validatorSrcAddress?: string;
|
|
92
|
+
validatorDstAddress?: string;
|
|
93
|
+
amount?: {
|
|
94
|
+
denom?: string;
|
|
95
|
+
amount?: string;
|
|
96
|
+
} & {
|
|
97
|
+
denom?: string;
|
|
98
|
+
amount?: string;
|
|
99
|
+
} & { [K in Exclude<keyof I["amount"], keyof import("./base/v1beta1/coin").Coin>]: never; };
|
|
100
|
+
} & { [K_1 in Exclude<keyof I, keyof MsgBeginRedelegate>]: never; }>(object: I) => {
|
|
101
|
+
typeUrl: string;
|
|
102
|
+
value: MsgBeginRedelegate;
|
|
103
|
+
};
|
|
104
|
+
const CancelUnbondingDelegation: <I extends {
|
|
105
|
+
delegatorAddress?: string;
|
|
106
|
+
validatorAddress?: string;
|
|
107
|
+
amount?: {
|
|
108
|
+
denom?: string;
|
|
109
|
+
amount?: string;
|
|
110
|
+
};
|
|
111
|
+
creationHeight?: number;
|
|
112
|
+
} & {
|
|
113
|
+
delegatorAddress?: string;
|
|
114
|
+
validatorAddress?: string;
|
|
115
|
+
amount?: {
|
|
116
|
+
denom?: string;
|
|
117
|
+
amount?: string;
|
|
118
|
+
} & {
|
|
119
|
+
denom?: string;
|
|
120
|
+
amount?: string;
|
|
121
|
+
} & { [K in Exclude<keyof I["amount"], keyof import("./base/v1beta1/coin").Coin>]: never; };
|
|
122
|
+
creationHeight?: number;
|
|
123
|
+
} & { [K_1 in Exclude<keyof I, keyof MsgCancelUnbondingDelegation>]: never; }>(object: I) => {
|
|
124
|
+
typeUrl: string;
|
|
125
|
+
value: MsgCancelUnbondingDelegation;
|
|
126
|
+
};
|
|
127
|
+
const CreateValidator: <I extends {
|
|
128
|
+
description?: {
|
|
129
|
+
moniker?: string;
|
|
130
|
+
identity?: string;
|
|
131
|
+
website?: string;
|
|
132
|
+
securityContact?: string;
|
|
133
|
+
details?: string;
|
|
134
|
+
};
|
|
135
|
+
commission?: {
|
|
136
|
+
rate?: string;
|
|
137
|
+
maxRate?: string;
|
|
138
|
+
maxChangeRate?: string;
|
|
139
|
+
};
|
|
140
|
+
minSelfDelegation?: string;
|
|
141
|
+
delegatorAddress?: string;
|
|
142
|
+
validatorAddress?: string;
|
|
143
|
+
pubkey?: {
|
|
144
|
+
typeUrl?: string;
|
|
145
|
+
value?: Uint8Array;
|
|
146
|
+
};
|
|
147
|
+
value?: {
|
|
148
|
+
denom?: string;
|
|
149
|
+
amount?: string;
|
|
150
|
+
};
|
|
151
|
+
} & {
|
|
152
|
+
description?: {
|
|
153
|
+
moniker?: string;
|
|
154
|
+
identity?: string;
|
|
155
|
+
website?: string;
|
|
156
|
+
securityContact?: string;
|
|
157
|
+
details?: string;
|
|
158
|
+
} & {
|
|
159
|
+
moniker?: string;
|
|
160
|
+
identity?: string;
|
|
161
|
+
website?: string;
|
|
162
|
+
securityContact?: string;
|
|
163
|
+
details?: string;
|
|
164
|
+
} & { [K in Exclude<keyof I["description"], keyof import("./staking/v1beta1/staking").Description>]: never; };
|
|
165
|
+
commission?: {
|
|
166
|
+
rate?: string;
|
|
167
|
+
maxRate?: string;
|
|
168
|
+
maxChangeRate?: string;
|
|
169
|
+
} & {
|
|
170
|
+
rate?: string;
|
|
171
|
+
maxRate?: string;
|
|
172
|
+
maxChangeRate?: string;
|
|
173
|
+
} & { [K_1 in Exclude<keyof I["commission"], keyof import("./staking/v1beta1/staking").CommissionRates>]: never; };
|
|
174
|
+
minSelfDelegation?: string;
|
|
175
|
+
delegatorAddress?: string;
|
|
176
|
+
validatorAddress?: string;
|
|
177
|
+
pubkey?: {
|
|
178
|
+
typeUrl?: string;
|
|
179
|
+
value?: Uint8Array;
|
|
180
|
+
} & {
|
|
181
|
+
typeUrl?: string;
|
|
182
|
+
value?: Uint8Array;
|
|
183
|
+
} & { [K_2 in Exclude<keyof I["pubkey"], keyof import("../google/protobuf/any").Any>]: never; };
|
|
184
|
+
value?: {
|
|
185
|
+
denom?: string;
|
|
186
|
+
amount?: string;
|
|
187
|
+
} & {
|
|
188
|
+
denom?: string;
|
|
189
|
+
amount?: string;
|
|
190
|
+
} & { [K_3 in Exclude<keyof I["value"], keyof import("./base/v1beta1/coin").Coin>]: never; };
|
|
191
|
+
} & { [K_4 in Exclude<keyof I, keyof MsgCreateValidator>]: never; }>(object: I) => {
|
|
192
|
+
typeUrl: string;
|
|
193
|
+
value: MsgCreateValidator;
|
|
194
|
+
};
|
|
195
|
+
const Delegate: <I extends {
|
|
196
|
+
delegatorAddress?: string;
|
|
197
|
+
validatorAddress?: string;
|
|
198
|
+
amount?: {
|
|
199
|
+
denom?: string;
|
|
200
|
+
amount?: string;
|
|
201
|
+
};
|
|
202
|
+
} & {
|
|
203
|
+
delegatorAddress?: string;
|
|
204
|
+
validatorAddress?: string;
|
|
205
|
+
amount?: {
|
|
206
|
+
denom?: string;
|
|
207
|
+
amount?: string;
|
|
208
|
+
} & {
|
|
209
|
+
denom?: string;
|
|
210
|
+
amount?: string;
|
|
211
|
+
} & { [K in Exclude<keyof I["amount"], keyof import("./base/v1beta1/coin").Coin>]: never; };
|
|
212
|
+
} & { [K_1 in Exclude<keyof I, keyof MsgDelegate>]: never; }>(object: I) => {
|
|
213
|
+
typeUrl: string;
|
|
214
|
+
value: MsgDelegate;
|
|
215
|
+
};
|
|
216
|
+
const EditValidator: <I extends {
|
|
217
|
+
description?: {
|
|
218
|
+
moniker?: string;
|
|
219
|
+
identity?: string;
|
|
220
|
+
website?: string;
|
|
221
|
+
securityContact?: string;
|
|
222
|
+
details?: string;
|
|
223
|
+
};
|
|
224
|
+
validatorAddress?: string;
|
|
225
|
+
commissionRate?: string;
|
|
226
|
+
minSelfDelegation?: string;
|
|
227
|
+
} & {
|
|
228
|
+
description?: {
|
|
229
|
+
moniker?: string;
|
|
230
|
+
identity?: string;
|
|
231
|
+
website?: string;
|
|
232
|
+
securityContact?: string;
|
|
233
|
+
details?: string;
|
|
234
|
+
} & {
|
|
235
|
+
moniker?: string;
|
|
236
|
+
identity?: string;
|
|
237
|
+
website?: string;
|
|
238
|
+
securityContact?: string;
|
|
239
|
+
details?: string;
|
|
240
|
+
} & { [K in Exclude<keyof I["description"], keyof import("./staking/v1beta1/staking").Description>]: never; };
|
|
241
|
+
validatorAddress?: string;
|
|
242
|
+
commissionRate?: string;
|
|
243
|
+
minSelfDelegation?: string;
|
|
244
|
+
} & { [K_1 in Exclude<keyof I, keyof MsgEditValidator>]: never; }>(object: I) => {
|
|
245
|
+
typeUrl: string;
|
|
246
|
+
value: MsgEditValidator;
|
|
247
|
+
};
|
|
248
|
+
const Undelegate: <I extends {
|
|
249
|
+
delegatorAddress?: string;
|
|
250
|
+
validatorAddress?: string;
|
|
251
|
+
amount?: {
|
|
252
|
+
denom?: string;
|
|
253
|
+
amount?: string;
|
|
254
|
+
};
|
|
255
|
+
} & {
|
|
256
|
+
delegatorAddress?: string;
|
|
257
|
+
validatorAddress?: string;
|
|
258
|
+
amount?: {
|
|
259
|
+
denom?: string;
|
|
260
|
+
amount?: string;
|
|
261
|
+
} & {
|
|
262
|
+
denom?: string;
|
|
263
|
+
amount?: string;
|
|
264
|
+
} & { [K in Exclude<keyof I["amount"], keyof import("./base/v1beta1/coin").Coin>]: never; };
|
|
265
|
+
} & { [K_1 in Exclude<keyof I, keyof MsgUndelegate>]: never; }>(object: I) => {
|
|
266
|
+
typeUrl: string;
|
|
267
|
+
value: MsgUndelegate;
|
|
268
|
+
};
|
|
269
|
+
const UpdateParams: <I extends {
|
|
270
|
+
authority?: string;
|
|
271
|
+
params?: {
|
|
272
|
+
unbondingTime?: {
|
|
273
|
+
seconds?: number;
|
|
274
|
+
nanos?: number;
|
|
275
|
+
};
|
|
276
|
+
maxValidators?: number;
|
|
277
|
+
maxEntries?: number;
|
|
278
|
+
historicalEntries?: number;
|
|
279
|
+
bondDenom?: string;
|
|
280
|
+
minCommissionRate?: string;
|
|
281
|
+
};
|
|
282
|
+
} & {
|
|
283
|
+
authority?: string;
|
|
284
|
+
params?: {
|
|
285
|
+
unbondingTime?: {
|
|
286
|
+
seconds?: number;
|
|
287
|
+
nanos?: number;
|
|
288
|
+
};
|
|
289
|
+
maxValidators?: number;
|
|
290
|
+
maxEntries?: number;
|
|
291
|
+
historicalEntries?: number;
|
|
292
|
+
bondDenom?: string;
|
|
293
|
+
minCommissionRate?: string;
|
|
294
|
+
} & {
|
|
295
|
+
unbondingTime?: {
|
|
296
|
+
seconds?: number;
|
|
297
|
+
nanos?: number;
|
|
298
|
+
} & {
|
|
299
|
+
seconds?: number;
|
|
300
|
+
nanos?: number;
|
|
301
|
+
} & { [K in Exclude<keyof I["params"]["unbondingTime"], keyof import("../google/protobuf/duration").Duration>]: never; };
|
|
302
|
+
maxValidators?: number;
|
|
303
|
+
maxEntries?: number;
|
|
304
|
+
historicalEntries?: number;
|
|
305
|
+
bondDenom?: string;
|
|
306
|
+
minCommissionRate?: string;
|
|
307
|
+
} & { [K_1 in Exclude<keyof I["params"], keyof import("./staking/v1beta1/staking").Params>]: never; };
|
|
308
|
+
} & { [K_2 in Exclude<keyof I, keyof SMsgUpdateParams>]: never; }>(object: I) => {
|
|
309
|
+
typeUrl: string;
|
|
310
|
+
value: SMsgUpdateParams;
|
|
311
|
+
};
|
|
312
|
+
}
|
|
6
313
|
export declare namespace Governance {
|
|
7
314
|
const Deposit: <I extends {
|
|
8
315
|
proposalId?: number;
|
|
@@ -3,11 +3,81 @@ import { MsgGrantAllowance, MsgRevokeAllowance } from "./feegrant/v1beta1/tx";
|
|
|
3
3
|
import { MsgMultiSend, MsgSend, MsgSetSendEnabled, MsgUpdateParams, } from "./bank/v1beta1/tx";
|
|
4
4
|
import { MsgCommunityPoolSpend, MsgDepositValidatorRewardsPool, MsgFundCommunityPool, MsgSetWithdrawAddress, MsgUpdateParams as DMsgUpdateParams, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, } from "./distribution/v1beta1/tx";
|
|
5
5
|
import { MsgCreatePeriodicVestingAccount, MsgCreatePermanentLockedAccount, MsgCreateVestingAccount, } from "./vesting/v1beta1/tx";
|
|
6
|
+
import { MsgBeginRedelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgDelegate, MsgEditValidator, MsgUndelegate, MsgUpdateParams as SMsgUpdateParams, } from "./staking/v1beta1/tx";
|
|
7
|
+
import { MsgExec, MsgGrant, MsgRevoke } from "./authz/v1beta1/tx";
|
|
8
|
+
const authzBaseUrl = "/cosmos.authz.v1beta1.";
|
|
9
|
+
const stakeBaseUrl = "/cosmos.staking.v1beta1.";
|
|
6
10
|
const govBaseUrl = "/cosmos.gov.v1beta1.";
|
|
7
11
|
const fgBaseUrl = "/cosmos.feegrant.v1beta1.";
|
|
8
12
|
const bankBaseUrl = "/cosmos.bank.v1beta1.";
|
|
9
13
|
const distBaseUrl = "/cosmos.distribution.v1beta1.";
|
|
10
14
|
const vestBaseUrl = "/cosmos.vesting.v1beta1.";
|
|
15
|
+
export var Authz;
|
|
16
|
+
(function (Authz) {
|
|
17
|
+
Authz.Grant = function (object) {
|
|
18
|
+
return {
|
|
19
|
+
typeUrl: authzBaseUrl + "MsgGrant",
|
|
20
|
+
value: MsgGrant.fromPartial(object),
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
Authz.Exec = function (object) {
|
|
24
|
+
return {
|
|
25
|
+
typeUrl: authzBaseUrl + "MsgExec",
|
|
26
|
+
value: MsgExec.fromPartial(object),
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
Authz.Revoke = function (object) {
|
|
30
|
+
return {
|
|
31
|
+
typeUrl: authzBaseUrl + "MsgRevoke",
|
|
32
|
+
value: MsgRevoke.fromPartial(object),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
})(Authz || (Authz = {}));
|
|
36
|
+
export var Staking;
|
|
37
|
+
(function (Staking) {
|
|
38
|
+
Staking.BeginRedelegate = function (object) {
|
|
39
|
+
return {
|
|
40
|
+
typeUrl: stakeBaseUrl + "MsgBeginRedelegate",
|
|
41
|
+
value: MsgBeginRedelegate.fromPartial(object),
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
Staking.CancelUnbondingDelegation = function (object) {
|
|
45
|
+
return {
|
|
46
|
+
typeUrl: stakeBaseUrl + "MsgCancelUnbondingDelegation",
|
|
47
|
+
value: MsgCancelUnbondingDelegation.fromPartial(object),
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
Staking.CreateValidator = function (object) {
|
|
51
|
+
return {
|
|
52
|
+
typeUrl: stakeBaseUrl + "MsgCreateValidator",
|
|
53
|
+
value: MsgCreateValidator.fromPartial(object),
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
Staking.Delegate = function (object) {
|
|
57
|
+
return {
|
|
58
|
+
typeUrl: stakeBaseUrl + "MsgDelegate",
|
|
59
|
+
value: MsgDelegate.fromPartial(object),
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
Staking.EditValidator = function (object) {
|
|
63
|
+
return {
|
|
64
|
+
typeUrl: stakeBaseUrl + "MsgEditValidator",
|
|
65
|
+
value: MsgEditValidator.fromPartial(object),
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
Staking.Undelegate = function (object) {
|
|
69
|
+
return {
|
|
70
|
+
typeUrl: stakeBaseUrl + "MsgUndelegate",
|
|
71
|
+
value: MsgUndelegate.fromPartial(object),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
Staking.UpdateParams = function (object) {
|
|
75
|
+
return {
|
|
76
|
+
typeUrl: stakeBaseUrl + "MsgUpdateParams",
|
|
77
|
+
value: SMsgUpdateParams.fromPartial(object),
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
})(Staking || (Staking = {}));
|
|
11
81
|
export var Governance;
|
|
12
82
|
(function (Governance) {
|
|
13
83
|
Governance.Deposit = function (object) {
|
|
@@ -143,4 +213,4 @@ export var Vesting;
|
|
|
143
213
|
};
|
|
144
214
|
};
|
|
145
215
|
})(Vesting || (Vesting = {}));
|
|
146
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
216
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29zbW9zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxVQUFVLEVBQ1YsaUJBQWlCLEVBQ2pCLE9BQU8sRUFDUCxlQUFlLEdBR2hCLE1BQU0sa0JBQWtCLENBQUM7QUFFMUIsT0FBTyxFQUFFLGlCQUFp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sQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDO1NBQzNELENBQUM7SUFDSixDQUFDLENBQUM7QUFDSixDQUFDLEVBM0JnQixPQUFPLEtBQVAsT0FBTyxRQTJCdkIifQ==
|
|
@@ -0,0 +1,145 @@
|
|
|
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 {};
|