coreum-js 2.6.9 → 2.7.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/CHANGELOG.md +345 -0
- package/dist/main/coreum/index.d.ts +17 -235
- package/dist/main/coreum/index.js +1 -1
- package/dist/main/cosmos/index.d.ts +31 -766
- package/dist/main/cosmos/index.js +1 -1
- package/dist/main/types/msgs.d.ts +672 -0
- package/dist/main/types/msgs.js +3 -0
- package/dist/main/wasm/v1/index.d.ts +13 -266
- package/dist/main/wasm/v1/index.js +1 -1
- package/dist/module/coreum/index.d.ts +17 -235
- package/dist/module/coreum/index.js +1 -1
- package/dist/module/cosmos/index.d.ts +31 -766
- package/dist/module/cosmos/index.js +1 -1
- package/dist/module/types/msgs.d.ts +672 -0
- package/dist/module/types/msgs.js +2 -0
- package/dist/module/wasm/v1/index.d.ts +13 -266
- package/dist/module/wasm/v1/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,672 @@
|
|
|
1
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
2
|
+
import { Feature } from "../coreum/asset/ft/v1/token";
|
|
3
|
+
import { ClassFeature } from "../coreum/asset/nft/v1/nft";
|
|
4
|
+
import { Any } from "../google/protobuf/any";
|
|
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
|
+
import { VoteOption, WeightedVoteOption } from "cosmjs-types/cosmos/gov/v1beta1/gov";
|
|
8
|
+
import { Input, Output, SendEnabled, Params as BankParams } from "cosmjs-types/cosmos/bank/v1beta1/bank";
|
|
9
|
+
import { Params as DistParams } from "cosmjs-types/cosmos/distribution/v1beta1/distribution";
|
|
10
|
+
import { Period } from "../cosmos/vesting/v1beta1/vesting";
|
|
11
|
+
import { Grant } from "../cosmos/authz/v1beta1/authz";
|
|
12
|
+
export declare namespace FTMsgs {
|
|
13
|
+
interface MsgIssue {
|
|
14
|
+
issuer: string;
|
|
15
|
+
symbol: string;
|
|
16
|
+
subunit: string;
|
|
17
|
+
precision: number;
|
|
18
|
+
initialAmount: string;
|
|
19
|
+
description: string;
|
|
20
|
+
features: Feature[];
|
|
21
|
+
/**
|
|
22
|
+
* burn_rate is a number between 0 and 1 which will be multiplied by send amount to determine
|
|
23
|
+
* burn_amount. This value will be burnt on top of the send amount.
|
|
24
|
+
*/
|
|
25
|
+
burnRate: string;
|
|
26
|
+
/**
|
|
27
|
+
* send_commission_rate is a number between 0 and 1 which will be multiplied by send amount to determine
|
|
28
|
+
* amount sent to the token issuer account.
|
|
29
|
+
*/
|
|
30
|
+
sendCommissionRate: string;
|
|
31
|
+
}
|
|
32
|
+
interface MsgMint {
|
|
33
|
+
sender: string;
|
|
34
|
+
coin?: Coin;
|
|
35
|
+
}
|
|
36
|
+
interface MsgBurn {
|
|
37
|
+
sender: string;
|
|
38
|
+
coin?: Coin;
|
|
39
|
+
}
|
|
40
|
+
interface MsgFreeze {
|
|
41
|
+
sender: string;
|
|
42
|
+
account: string;
|
|
43
|
+
coin?: Coin;
|
|
44
|
+
}
|
|
45
|
+
interface MsgUnfreeze {
|
|
46
|
+
sender: string;
|
|
47
|
+
account: string;
|
|
48
|
+
coin?: Coin;
|
|
49
|
+
}
|
|
50
|
+
interface MsgGloballyFreeze {
|
|
51
|
+
sender: string;
|
|
52
|
+
denom: string;
|
|
53
|
+
}
|
|
54
|
+
interface MsgGloballyUnfreeze {
|
|
55
|
+
sender: string;
|
|
56
|
+
denom: string;
|
|
57
|
+
}
|
|
58
|
+
interface MsgSetWhitelistedLimit {
|
|
59
|
+
sender: string;
|
|
60
|
+
account: string;
|
|
61
|
+
coin?: Coin;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export declare namespace NFTMsgs {
|
|
65
|
+
/** MsgSend represents a message to send a nft from one account to another account. */
|
|
66
|
+
interface MsgSend {
|
|
67
|
+
/** class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 */
|
|
68
|
+
classId: string;
|
|
69
|
+
/** id defines the unique identification of nft */
|
|
70
|
+
id: string;
|
|
71
|
+
/** sender is the address of the owner of nft */
|
|
72
|
+
sender: string;
|
|
73
|
+
/** receiver is the receiver address of nft */
|
|
74
|
+
receiver: string;
|
|
75
|
+
}
|
|
76
|
+
/** MsgIssueClass defines message for the IssueClass method. */
|
|
77
|
+
interface MsgIssueClass {
|
|
78
|
+
issuer: string;
|
|
79
|
+
symbol: string;
|
|
80
|
+
name: string;
|
|
81
|
+
description: string;
|
|
82
|
+
uri: string;
|
|
83
|
+
uriHash: string;
|
|
84
|
+
data?: Any;
|
|
85
|
+
features: ClassFeature[];
|
|
86
|
+
royaltyRate: string;
|
|
87
|
+
}
|
|
88
|
+
/** MsgMint defines message for the Mint method. */
|
|
89
|
+
interface MsgMint {
|
|
90
|
+
sender: string;
|
|
91
|
+
classId: string;
|
|
92
|
+
id: string;
|
|
93
|
+
uri: string;
|
|
94
|
+
uriHash: string;
|
|
95
|
+
data?: Any;
|
|
96
|
+
}
|
|
97
|
+
/** MsgBurn defines message for the Burn method. */
|
|
98
|
+
interface MsgBurn {
|
|
99
|
+
sender: string;
|
|
100
|
+
classId: string;
|
|
101
|
+
id: string;
|
|
102
|
+
}
|
|
103
|
+
interface MsgFreeze {
|
|
104
|
+
sender: string;
|
|
105
|
+
classId: string;
|
|
106
|
+
id: string;
|
|
107
|
+
}
|
|
108
|
+
interface MsgUnfreeze {
|
|
109
|
+
sender: string;
|
|
110
|
+
classId: string;
|
|
111
|
+
id: string;
|
|
112
|
+
}
|
|
113
|
+
interface MsgAddToWhitelist {
|
|
114
|
+
sender: string;
|
|
115
|
+
classId: string;
|
|
116
|
+
id: string;
|
|
117
|
+
account: string;
|
|
118
|
+
}
|
|
119
|
+
interface MsgRemoveFromWhitelist {
|
|
120
|
+
sender: string;
|
|
121
|
+
classId: string;
|
|
122
|
+
id: string;
|
|
123
|
+
account: string;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export declare namespace CWMsgs {
|
|
127
|
+
/** MsgStoreCode submit Wasm code to the system */
|
|
128
|
+
interface MsgStoreCode {
|
|
129
|
+
/** Sender is the actor that signed the messages */
|
|
130
|
+
sender: string;
|
|
131
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
132
|
+
wasmByteCode: Uint8Array;
|
|
133
|
+
/**
|
|
134
|
+
* InstantiatePermission access control to apply on contract creation,
|
|
135
|
+
* optional
|
|
136
|
+
*/
|
|
137
|
+
instantiatePermission: AccessConfig | undefined;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* MsgInstantiateContract create a new smart contract instance for the given
|
|
141
|
+
* code id.
|
|
142
|
+
*/
|
|
143
|
+
interface MsgInstantiateContract {
|
|
144
|
+
/** Sender is the that actor that signed the messages */
|
|
145
|
+
sender: string;
|
|
146
|
+
/** Admin is an optional address that can execute migrations */
|
|
147
|
+
admin: string;
|
|
148
|
+
/** CodeID is the reference to the stored WASM code */
|
|
149
|
+
codeId: number;
|
|
150
|
+
/** Label is optional metadata to be stored with a contract instance. */
|
|
151
|
+
label: string;
|
|
152
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
153
|
+
msg: Uint8Array;
|
|
154
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
155
|
+
funds: Coin[];
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract
|
|
159
|
+
* request type.
|
|
160
|
+
*
|
|
161
|
+
* Since: 0.40
|
|
162
|
+
*/
|
|
163
|
+
interface MsgStoreAndInstantiateContract {
|
|
164
|
+
/** Authority is the address of the governance account. */
|
|
165
|
+
authority: string;
|
|
166
|
+
/** WASMByteCode can be raw or gzip compressed */
|
|
167
|
+
wasmByteCode: Uint8Array;
|
|
168
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
|
169
|
+
instantiatePermission: AccessConfig | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* UnpinCode code on upload, optional. As default the uploaded contract is
|
|
172
|
+
* pinned to cache.
|
|
173
|
+
*/
|
|
174
|
+
unpinCode: boolean;
|
|
175
|
+
/** Admin is an optional address that can execute migrations */
|
|
176
|
+
admin: string;
|
|
177
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
|
178
|
+
label: string;
|
|
179
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
180
|
+
msg: Uint8Array;
|
|
181
|
+
/**
|
|
182
|
+
* Funds coins that are transferred from the authority account to the contract
|
|
183
|
+
* on instantiation
|
|
184
|
+
*/
|
|
185
|
+
funds: Coin[];
|
|
186
|
+
/** Source is the URL where the code is hosted */
|
|
187
|
+
source: string;
|
|
188
|
+
/**
|
|
189
|
+
* Builder is the docker image used to build the code deterministically, used
|
|
190
|
+
* for smart contract verification
|
|
191
|
+
*/
|
|
192
|
+
builder: string;
|
|
193
|
+
/**
|
|
194
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
|
195
|
+
* contract verification
|
|
196
|
+
*/
|
|
197
|
+
codeHash: Uint8Array;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* MsgUnpinCodes is the MsgUnpinCodes request type.
|
|
201
|
+
*
|
|
202
|
+
* Since: 0.40
|
|
203
|
+
*/
|
|
204
|
+
interface MsgUnpinCodes {
|
|
205
|
+
/** Authority is the address of the governance account. */
|
|
206
|
+
authority: string;
|
|
207
|
+
/** CodeIDs references the WASM codes */
|
|
208
|
+
codeIds: number[];
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* MsgPinCodes is the MsgPinCodes request type.
|
|
212
|
+
*
|
|
213
|
+
* Since: 0.40
|
|
214
|
+
*/
|
|
215
|
+
interface MsgPinCodes {
|
|
216
|
+
/** Authority is the address of the governance account. */
|
|
217
|
+
authority: string;
|
|
218
|
+
/** CodeIDs references the new WASM codes */
|
|
219
|
+
codeIds: number[];
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* MsgSudoContract is the MsgSudoContract request type.
|
|
223
|
+
*
|
|
224
|
+
* Since: 0.40
|
|
225
|
+
*/
|
|
226
|
+
interface MsgSudoContract {
|
|
227
|
+
/** Authority is the address of the governance account. */
|
|
228
|
+
authority: string;
|
|
229
|
+
/** Contract is the address of the smart contract */
|
|
230
|
+
contract: string;
|
|
231
|
+
/** Msg json encoded message to be passed to the contract as sudo */
|
|
232
|
+
msg: Uint8Array;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* MsgUpdateParams is the MsgUpdateParams request type.
|
|
236
|
+
*
|
|
237
|
+
* Since: 0.40
|
|
238
|
+
*/
|
|
239
|
+
interface MsgUpdateParams {
|
|
240
|
+
/** Authority is the address of the governance account. */
|
|
241
|
+
authority: string;
|
|
242
|
+
/**
|
|
243
|
+
* params defines the x/wasm parameters to update.
|
|
244
|
+
*
|
|
245
|
+
* NOTE: All parameters must be supplied.
|
|
246
|
+
*/
|
|
247
|
+
params: WasmParams | undefined;
|
|
248
|
+
}
|
|
249
|
+
/** MsgUpdateInstantiateConfig updates instantiate config for a smart contract */
|
|
250
|
+
interface MsgUpdateInstantiateConfig {
|
|
251
|
+
/** Sender is the that actor that signed the messages */
|
|
252
|
+
sender: string;
|
|
253
|
+
/** CodeID references the stored WASM code */
|
|
254
|
+
codeId: number;
|
|
255
|
+
/** NewInstantiatePermission is the new access control */
|
|
256
|
+
newInstantiatePermission: AccessConfig | undefined;
|
|
257
|
+
}
|
|
258
|
+
/** MsgClearAdmin removes any admin stored for a smart contract */
|
|
259
|
+
interface MsgClearAdmin {
|
|
260
|
+
/** Sender is the actor that signed the messages */
|
|
261
|
+
sender: string;
|
|
262
|
+
/** Contract is the address of the smart contract */
|
|
263
|
+
contract: string;
|
|
264
|
+
}
|
|
265
|
+
/** MsgUpdateAdmin sets a new admin for a smart contract */
|
|
266
|
+
interface MsgUpdateAdmin {
|
|
267
|
+
/** Sender is the that actor that signed the messages */
|
|
268
|
+
sender: string;
|
|
269
|
+
/** NewAdmin address to be set */
|
|
270
|
+
newAdmin: string;
|
|
271
|
+
/** Contract is the address of the smart contract */
|
|
272
|
+
contract: string;
|
|
273
|
+
}
|
|
274
|
+
/** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */
|
|
275
|
+
interface MsgMigrateContract {
|
|
276
|
+
/** Sender is the that actor that signed the messages */
|
|
277
|
+
sender: string;
|
|
278
|
+
/** Contract is the address of the smart contract */
|
|
279
|
+
contract: string;
|
|
280
|
+
/** CodeID references the new WASM code */
|
|
281
|
+
codeId: number;
|
|
282
|
+
/** Msg json encoded message to be passed to the contract on migration */
|
|
283
|
+
msg: Uint8Array;
|
|
284
|
+
}
|
|
285
|
+
/** MsgExecuteContract submits the given message data to a smart contract */
|
|
286
|
+
interface MsgExecuteContract {
|
|
287
|
+
/** Sender is the that actor that signed the messages */
|
|
288
|
+
sender: string;
|
|
289
|
+
/** Contract is the address of the smart contract */
|
|
290
|
+
contract: string;
|
|
291
|
+
/** Msg json encoded message to be passed to the contract */
|
|
292
|
+
msg: Uint8Array;
|
|
293
|
+
/** Funds coins that are transferred to the contract on execution */
|
|
294
|
+
funds: Coin[];
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* MsgInstantiateContract2 create a new smart contract instance for the given
|
|
298
|
+
* code id with a predicable address.
|
|
299
|
+
*/
|
|
300
|
+
interface MsgInstantiateContract2 {
|
|
301
|
+
/** Sender is the that actor that signed the messages */
|
|
302
|
+
sender: string;
|
|
303
|
+
/** Admin is an optional address that can execute migrations */
|
|
304
|
+
admin: string;
|
|
305
|
+
/** CodeID is the reference to the stored WASM code */
|
|
306
|
+
codeId: number;
|
|
307
|
+
/** Label is optional metadata to be stored with a contract instance. */
|
|
308
|
+
label: string;
|
|
309
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
|
310
|
+
msg: Uint8Array;
|
|
311
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
|
312
|
+
funds: Coin[];
|
|
313
|
+
/** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
|
|
314
|
+
salt: Uint8Array;
|
|
315
|
+
/**
|
|
316
|
+
* FixMsg include the msg value into the hash for the predictable address.
|
|
317
|
+
* Default is false
|
|
318
|
+
*/
|
|
319
|
+
fixMsg: boolean;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
export declare namespace AuthzMsgs {
|
|
323
|
+
/**
|
|
324
|
+
* MsgGrant is a request type for Grant method. It declares authorization to the grantee
|
|
325
|
+
* on behalf of the granter with the provided expiration time.
|
|
326
|
+
*/
|
|
327
|
+
interface MsgGrant {
|
|
328
|
+
granter: string;
|
|
329
|
+
grantee: string;
|
|
330
|
+
grant: Grant | undefined;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* MsgExec attempts to execute the provided messages using
|
|
334
|
+
* authorizations granted to the grantee. Each message should have only
|
|
335
|
+
* one signer corresponding to the granter of the authorization.
|
|
336
|
+
*/
|
|
337
|
+
interface MsgExec {
|
|
338
|
+
grantee: string;
|
|
339
|
+
/**
|
|
340
|
+
* Execute Msg.
|
|
341
|
+
* The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
|
|
342
|
+
* triple and validate it.
|
|
343
|
+
*/
|
|
344
|
+
msgs: Any[];
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* MsgRevoke revokes any authorization with the provided sdk.Msg type on the
|
|
348
|
+
* granter's account with that has been granted to the grantee.
|
|
349
|
+
*/
|
|
350
|
+
interface MsgRevoke {
|
|
351
|
+
granter: string;
|
|
352
|
+
grantee: string;
|
|
353
|
+
msgTypeUrl: string;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
export declare namespace StakingMsgs {
|
|
357
|
+
/** MsgCreateValidator defines a SDK message for creating a new validator. */
|
|
358
|
+
interface MsgCreateValidator {
|
|
359
|
+
description: Description | undefined;
|
|
360
|
+
commission: CommissionRates | undefined;
|
|
361
|
+
minSelfDelegation: string;
|
|
362
|
+
/**
|
|
363
|
+
* Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
|
|
364
|
+
* The validator address bytes and delegator address bytes refer to the same account while creating validator (defer
|
|
365
|
+
* only in bech32 notation).
|
|
366
|
+
*
|
|
367
|
+
* @deprecated
|
|
368
|
+
*/
|
|
369
|
+
delegatorAddress: string;
|
|
370
|
+
validatorAddress: string;
|
|
371
|
+
pubkey: Any | undefined;
|
|
372
|
+
value: Coin | undefined;
|
|
373
|
+
}
|
|
374
|
+
/** MsgEditValidator defines a SDK message for editing an existing validator. */
|
|
375
|
+
interface MsgEditValidator {
|
|
376
|
+
description: Description | undefined;
|
|
377
|
+
validatorAddress: string;
|
|
378
|
+
/**
|
|
379
|
+
* We pass a reference to the new commission rate and min self delegation as
|
|
380
|
+
* it's not mandatory to update. If not updated, the deserialized rate will be
|
|
381
|
+
* zero with no way to distinguish if an update was intended.
|
|
382
|
+
* REF: #2373
|
|
383
|
+
*/
|
|
384
|
+
commissionRate: string;
|
|
385
|
+
minSelfDelegation: string;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* MsgDelegate defines a SDK message for performing a delegation of coins
|
|
389
|
+
* from a delegator to a validator.
|
|
390
|
+
*/
|
|
391
|
+
interface MsgDelegate {
|
|
392
|
+
delegatorAddress: string;
|
|
393
|
+
validatorAddress: string;
|
|
394
|
+
amount: Coin | undefined;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* MsgBeginRedelegate defines a SDK message for performing a redelegation
|
|
398
|
+
* of coins from a delegator and source validator to a destination validator.
|
|
399
|
+
*/
|
|
400
|
+
interface MsgBeginRedelegate {
|
|
401
|
+
delegatorAddress: string;
|
|
402
|
+
validatorSrcAddress: string;
|
|
403
|
+
validatorDstAddress: string;
|
|
404
|
+
amount: Coin | undefined;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* MsgUndelegate defines a SDK message for performing an undelegation from a
|
|
408
|
+
* delegate and a validator.
|
|
409
|
+
*/
|
|
410
|
+
interface MsgUndelegate {
|
|
411
|
+
delegatorAddress: string;
|
|
412
|
+
validatorAddress: string;
|
|
413
|
+
amount: Coin | undefined;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
|
|
417
|
+
*
|
|
418
|
+
* Since: cosmos-sdk 0.46
|
|
419
|
+
*/
|
|
420
|
+
interface MsgCancelUnbondingDelegation {
|
|
421
|
+
delegatorAddress: string;
|
|
422
|
+
validatorAddress: string;
|
|
423
|
+
/** amount is always less than or equal to unbonding delegation entry balance */
|
|
424
|
+
amount: Coin | undefined;
|
|
425
|
+
/** creation_height is the height which the unbonding took place. */
|
|
426
|
+
creationHeight: number;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
430
|
+
*
|
|
431
|
+
* Since: cosmos-sdk 0.47
|
|
432
|
+
*/
|
|
433
|
+
interface MsgUpdateParams {
|
|
434
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
435
|
+
authority: string;
|
|
436
|
+
/**
|
|
437
|
+
* params defines the x/staking parameters to update.
|
|
438
|
+
*
|
|
439
|
+
* NOTE: All parameters must be supplied.
|
|
440
|
+
*/
|
|
441
|
+
params: StakingParams | undefined;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
export declare namespace GovMsgs {
|
|
445
|
+
/**
|
|
446
|
+
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
|
447
|
+
* proposal Content.
|
|
448
|
+
*/
|
|
449
|
+
interface MsgSubmitProposal {
|
|
450
|
+
/** content is the proposal's content. */
|
|
451
|
+
content: Any | undefined;
|
|
452
|
+
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
453
|
+
initialDeposit: Coin[];
|
|
454
|
+
/** proposer is the account address of the proposer. */
|
|
455
|
+
proposer: string;
|
|
456
|
+
}
|
|
457
|
+
/** MsgVote defines a message to cast a vote. */
|
|
458
|
+
interface MsgVote {
|
|
459
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
460
|
+
proposalId: number;
|
|
461
|
+
/** voter is the voter address for the proposal. */
|
|
462
|
+
voter: string;
|
|
463
|
+
/** option defines the vote option. */
|
|
464
|
+
option: VoteOption;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* MsgVoteWeighted defines a message to cast a vote.
|
|
468
|
+
*
|
|
469
|
+
* Since: cosmos-sdk 0.43
|
|
470
|
+
*/
|
|
471
|
+
interface MsgVoteWeighted {
|
|
472
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
473
|
+
proposalId: number;
|
|
474
|
+
/** voter is the voter address for the proposal. */
|
|
475
|
+
voter: string;
|
|
476
|
+
/** options defines the weighted vote options. */
|
|
477
|
+
options: WeightedVoteOption[];
|
|
478
|
+
}
|
|
479
|
+
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
480
|
+
interface MsgDeposit {
|
|
481
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
482
|
+
proposalId: number;
|
|
483
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
484
|
+
depositor: string;
|
|
485
|
+
/** amount to be deposited by depositor. */
|
|
486
|
+
amount: Coin[];
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
export declare namespace FeegrantMsgs {
|
|
490
|
+
/**
|
|
491
|
+
* MsgGrantAllowance adds permission for Grantee to spend up to Allowance
|
|
492
|
+
* of fees from the account of Granter.
|
|
493
|
+
*/
|
|
494
|
+
interface MsgGrantAllowance {
|
|
495
|
+
/** granter is the address of the user granting an allowance of their funds. */
|
|
496
|
+
granter: string;
|
|
497
|
+
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
|
498
|
+
grantee: string;
|
|
499
|
+
/** allowance can be any of basic, periodic, allowed fee allowance. */
|
|
500
|
+
allowance: Any | undefined;
|
|
501
|
+
}
|
|
502
|
+
/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */
|
|
503
|
+
interface MsgRevokeAllowance {
|
|
504
|
+
/** granter is the address of the user granting an allowance of their funds. */
|
|
505
|
+
granter: string;
|
|
506
|
+
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
|
507
|
+
grantee: string;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
export declare namespace BankMsgs {
|
|
511
|
+
/** MsgSend represents a message to send coins from one account to another. */
|
|
512
|
+
interface MsgSend {
|
|
513
|
+
fromAddress: string;
|
|
514
|
+
toAddress: string;
|
|
515
|
+
amount: Coin[];
|
|
516
|
+
}
|
|
517
|
+
/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */
|
|
518
|
+
interface MsgMultiSend {
|
|
519
|
+
/**
|
|
520
|
+
* Inputs, despite being `repeated`, only allows one sender input. This is
|
|
521
|
+
* checked in MsgMultiSend's ValidateBasic.
|
|
522
|
+
*/
|
|
523
|
+
inputs: Input[];
|
|
524
|
+
outputs: Output[];
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
528
|
+
*
|
|
529
|
+
* Since: cosmos-sdk 0.47
|
|
530
|
+
*/
|
|
531
|
+
interface MsgUpdateParams {
|
|
532
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
533
|
+
authority: string;
|
|
534
|
+
/**
|
|
535
|
+
* params defines the x/bank parameters to update.
|
|
536
|
+
*
|
|
537
|
+
* NOTE: All parameters must be supplied.
|
|
538
|
+
*/
|
|
539
|
+
params: BankParams | undefined;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* MsgSetSendEnabled is the Msg/SetSendEnabled request type.
|
|
543
|
+
*
|
|
544
|
+
* Only entries to add/update/delete need to be included.
|
|
545
|
+
* Existing SendEnabled entries that are not included in this
|
|
546
|
+
* message are left unchanged.
|
|
547
|
+
*
|
|
548
|
+
* Since: cosmos-sdk 0.47
|
|
549
|
+
*/
|
|
550
|
+
interface MsgSetSendEnabled {
|
|
551
|
+
authority: string;
|
|
552
|
+
/** send_enabled is the list of entries to add or update. */
|
|
553
|
+
sendEnabled: SendEnabled[];
|
|
554
|
+
/**
|
|
555
|
+
* use_default_for is a list of denoms that should use the params.default_send_enabled value.
|
|
556
|
+
* Denoms listed here will have their SendEnabled entries deleted.
|
|
557
|
+
* If a denom is included that doesn't have a SendEnabled entry,
|
|
558
|
+
* it will be ignored.
|
|
559
|
+
*/
|
|
560
|
+
useDefaultFor: string[];
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
export declare namespace DistributionMsgs {
|
|
564
|
+
/**
|
|
565
|
+
* MsgSetWithdrawAddress sets the withdraw address for
|
|
566
|
+
* a delegator (or validator self-delegation).
|
|
567
|
+
*/
|
|
568
|
+
interface MsgSetWithdrawAddress {
|
|
569
|
+
delegatorAddress: string;
|
|
570
|
+
withdrawAddress: string;
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
|
574
|
+
* from a single validator.
|
|
575
|
+
*/
|
|
576
|
+
interface MsgWithdrawDelegatorReward {
|
|
577
|
+
delegatorAddress: string;
|
|
578
|
+
validatorAddress: string;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
|
582
|
+
* address.
|
|
583
|
+
*/
|
|
584
|
+
interface MsgWithdrawValidatorCommission {
|
|
585
|
+
validatorAddress: string;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* MsgFundCommunityPool allows an account to directly
|
|
589
|
+
* fund the community pool.
|
|
590
|
+
*/
|
|
591
|
+
interface MsgFundCommunityPool {
|
|
592
|
+
amount: Coin[];
|
|
593
|
+
depositor: string;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
597
|
+
*
|
|
598
|
+
* Since: cosmos-sdk 0.47
|
|
599
|
+
*/
|
|
600
|
+
interface MsgUpdateParams {
|
|
601
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
602
|
+
authority: string;
|
|
603
|
+
/**
|
|
604
|
+
* params defines the x/distribution parameters to update.
|
|
605
|
+
*
|
|
606
|
+
* NOTE: All parameters must be supplied.
|
|
607
|
+
*/
|
|
608
|
+
params: DistParams | undefined;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
612
|
+
* pool to another account. This message is typically executed via a governance
|
|
613
|
+
* proposal with the governance module being the executing authority.
|
|
614
|
+
*
|
|
615
|
+
* Since: cosmos-sdk 0.47
|
|
616
|
+
*/
|
|
617
|
+
interface MsgCommunityPoolSpend {
|
|
618
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
619
|
+
authority: string;
|
|
620
|
+
recipient: string;
|
|
621
|
+
amount: Coin[];
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* DepositValidatorRewardsPool defines the request structure to provide
|
|
625
|
+
* additional rewards to delegators from a specific validator.
|
|
626
|
+
*
|
|
627
|
+
* Since: cosmos-sdk 0.48
|
|
628
|
+
*/
|
|
629
|
+
interface MsgDepositValidatorRewardsPool {
|
|
630
|
+
depositor: string;
|
|
631
|
+
validatorAddress: string;
|
|
632
|
+
amount: Coin[];
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
export declare namespace VestingMsgs {
|
|
636
|
+
/**
|
|
637
|
+
* MsgCreateVestingAccount defines a message that enables creating a vesting
|
|
638
|
+
* account.
|
|
639
|
+
*/
|
|
640
|
+
interface MsgCreateVestingAccount {
|
|
641
|
+
fromAddress: string;
|
|
642
|
+
toAddress: string;
|
|
643
|
+
amount: Coin[];
|
|
644
|
+
/** end of vesting as unix time (in seconds). */
|
|
645
|
+
endTime: number;
|
|
646
|
+
delayed: boolean;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* MsgCreatePermanentLockedAccount defines a message that enables creating a permanent
|
|
650
|
+
* locked account.
|
|
651
|
+
*
|
|
652
|
+
* Since: cosmos-sdk 0.46
|
|
653
|
+
*/
|
|
654
|
+
interface MsgCreatePermanentLockedAccount {
|
|
655
|
+
fromAddress: string;
|
|
656
|
+
toAddress: string;
|
|
657
|
+
amount: Coin[];
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* MsgCreateVestingAccount defines a message that enables creating a vesting
|
|
661
|
+
* account.
|
|
662
|
+
*
|
|
663
|
+
* Since: cosmos-sdk 0.46
|
|
664
|
+
*/
|
|
665
|
+
interface MsgCreatePeriodicVestingAccount {
|
|
666
|
+
fromAddress: string;
|
|
667
|
+
toAddress: string;
|
|
668
|
+
/** start of vesting as unix time (in seconds). */
|
|
669
|
+
startTime: number;
|
|
670
|
+
vestingPeriods: Period[];
|
|
671
|
+
}
|
|
672
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXNncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90eXBlcy9tc2dzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|