coreum-js 2.6.5 → 2.6.6
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/README.md +26 -3
- package/dist/main/coreum/index.d.ts +16 -0
- package/dist/main/coreum/index.js +17 -1
- package/dist/main/cosmos/index.d.ts +161 -0
- package/dist/main/cosmos/index.js +162 -1
- package/dist/main/wasm/v1/index.d.ts +77 -0
- package/dist/main/wasm/v1/index.js +78 -1
- package/dist/module/coreum/index.d.ts +16 -0
- package/dist/module/coreum/index.js +17 -1
- package/dist/module/cosmos/index.d.ts +161 -0
- package/dist/module/cosmos/index.js +162 -1
- package/dist/module/wasm/v1/index.d.ts +77 -0
- package/dist/module/wasm/v1/index.js +78 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,9 +21,10 @@ This is the recommended library for integrating a JavaScript/TypeScript app with
|
|
|
21
21
|
|
|
22
22
|
1. [QuickStart](#md:quickstart)
|
|
23
23
|
2. [Usage](#md:usage)
|
|
24
|
-
3. [
|
|
25
|
-
4. [
|
|
26
|
-
5. [
|
|
24
|
+
3. [Transaction Modules](#md:transaction-modules)
|
|
25
|
+
4. [Query for balances](#md:query-balances)
|
|
26
|
+
5. [Submit Transaction](#md:submit-transaction)
|
|
27
|
+
6. [Event Subscription](#md:event-subscription)
|
|
27
28
|
|
|
28
29
|
## Quickstart
|
|
29
30
|
|
|
@@ -94,6 +95,28 @@ subscription.unsubscribe();
|
|
|
94
95
|
const registry = Client.getRegistry();
|
|
95
96
|
```
|
|
96
97
|
|
|
98
|
+
## Transaction Modules
|
|
99
|
+
|
|
100
|
+
_coreum-js_ comes with out-of-the-box modules to create messages compatible with the Cosmos-SDK and Coreum Blockchain.
|
|
101
|
+
|
|
102
|
+
- [Authz](./modules/Authz.html)
|
|
103
|
+
Authorization for accounts to perform actions on behalf of other accounts.
|
|
104
|
+
- [Bank](./modules/Bank.html)
|
|
105
|
+
Token transfer functionalities.
|
|
106
|
+
- [CosmWasm](./modules/CosmWasm.html)
|
|
107
|
+
Smart Contracts functionalities.
|
|
108
|
+
- [Distribution](./modules/Distribution.html)
|
|
109
|
+
Fee distribution, and staking token provision distribution.
|
|
110
|
+
- [Feegrant](./modules/Feegrant.html)
|
|
111
|
+
Grant fee allowances for executing transactions.
|
|
112
|
+
- [FT](./modules/FT.html)
|
|
113
|
+
Token issuance and management functionalities.
|
|
114
|
+
- [NFT](./modules/NFT.html)
|
|
115
|
+
Non-Fungible Tokens minting and management functionalities.
|
|
116
|
+
- [Staking](./modules/Staking.html)
|
|
117
|
+
Proof-of-Stake layer for public blockchains.
|
|
118
|
+
- [Vesting](./modules/Vesting.html)
|
|
119
|
+
|
|
97
120
|
## Query Balances
|
|
98
121
|
|
|
99
122
|
```js
|
|
@@ -16,6 +16,7 @@ export declare const coreumRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
|
16
16
|
*/
|
|
17
17
|
export declare namespace FT {
|
|
18
18
|
/** MsgMint message creator
|
|
19
|
+
* Mints new fungible tokens.
|
|
19
20
|
*
|
|
20
21
|
* @param object Represents the properties available for this MsgMint message.
|
|
21
22
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -40,6 +41,7 @@ export declare namespace FT {
|
|
|
40
41
|
value: FTMsgMint;
|
|
41
42
|
};
|
|
42
43
|
/** MsgIssue message creator
|
|
44
|
+
* Defines a method to issue a new fungible token.
|
|
43
45
|
*
|
|
44
46
|
* @param object Represents the properties available for this MsgIssue message.
|
|
45
47
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -69,6 +71,7 @@ export declare namespace FT {
|
|
|
69
71
|
value: FTMsgIssue;
|
|
70
72
|
};
|
|
71
73
|
/** MsgBurn message creator
|
|
74
|
+
* Burns the specified fungible tokens from senders balance if the sender has enough balance.
|
|
72
75
|
*
|
|
73
76
|
* @param object Represents the properties available for this MsgBurn message.
|
|
74
77
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -93,6 +96,7 @@ export declare namespace FT {
|
|
|
93
96
|
value: FTMsgBurn;
|
|
94
97
|
};
|
|
95
98
|
/** MsgFreeze message creator
|
|
99
|
+
* Freezes a part of the fungible tokens in an account, only if the freezable feature is enabled on that token.
|
|
96
100
|
*
|
|
97
101
|
* @param object Represents the properties available for this MsgIssue message.
|
|
98
102
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -119,6 +123,7 @@ export declare namespace FT {
|
|
|
119
123
|
value: FTMsgFreeze;
|
|
120
124
|
};
|
|
121
125
|
/** MsgGloballyFreeze message creator
|
|
126
|
+
* Freezes fungible token so no operations are allowed with it before unfrozen. This operation is idempotent so global freeze of already frozen token does nothing.
|
|
122
127
|
*
|
|
123
128
|
* @param object Represents the properties available for this MsgGloballyFreeze message.
|
|
124
129
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -134,6 +139,7 @@ export declare namespace FT {
|
|
|
134
139
|
value: FTMsgGloballyFreeze;
|
|
135
140
|
};
|
|
136
141
|
/** MsgGloballyUnfreeze message creator
|
|
142
|
+
* Unfreezes fungible token and unblocks basic operations on it. This operation is idempotent so global unfreezing of non-frozen token does nothing.
|
|
137
143
|
*
|
|
138
144
|
* @param object Represents the properties available for this MsgGloballyUnfreeze message.
|
|
139
145
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -149,6 +155,7 @@ export declare namespace FT {
|
|
|
149
155
|
value: FTMsgGloballyUnfreeze;
|
|
150
156
|
};
|
|
151
157
|
/** MsgUnfreeze message creator
|
|
158
|
+
* Unfreezes a part of the frozen fungible tokens in an account, only if there are such frozen tokens on that account.
|
|
152
159
|
*
|
|
153
160
|
* @param object Represents the properties available for this MsgUnfreeze message.
|
|
154
161
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -175,6 +182,7 @@ export declare namespace FT {
|
|
|
175
182
|
value: FTMsgUnfreeze;
|
|
176
183
|
};
|
|
177
184
|
/** MsgSetWhitelistedLimit message creator
|
|
185
|
+
* Sets the limit of how many tokens a specific account may hold.
|
|
178
186
|
*
|
|
179
187
|
* @param object Represents the properties available for this MsgSetWhitelistedLimit message.
|
|
180
188
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -206,6 +214,7 @@ export declare namespace FT {
|
|
|
206
214
|
*/
|
|
207
215
|
export declare namespace NFT {
|
|
208
216
|
/** MsgMint message creator
|
|
217
|
+
* Mints new non-fungible token in the class.
|
|
209
218
|
*
|
|
210
219
|
* @param object Represents the properties available for this MsgMint message.
|
|
211
220
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -238,6 +247,7 @@ export declare namespace NFT {
|
|
|
238
247
|
value: NFTMsgMint;
|
|
239
248
|
};
|
|
240
249
|
/** MsgAddToWhitelist message creator
|
|
250
|
+
* Sets the account as whitelisted to hold the NFT
|
|
241
251
|
*
|
|
242
252
|
* @param object Represents the properties available for this MsgAddToWhitelist message.
|
|
243
253
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -257,6 +267,7 @@ export declare namespace NFT {
|
|
|
257
267
|
value: NFTMsgAddToWhitelist;
|
|
258
268
|
};
|
|
259
269
|
/** MsgRemoveFromWhitelist message creator
|
|
270
|
+
* Removes an account from whitelisted list of the NFT
|
|
260
271
|
*
|
|
261
272
|
* @param object Represents the properties available for this MsgRemoveFromWhitelist message.
|
|
262
273
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -276,6 +287,7 @@ export declare namespace NFT {
|
|
|
276
287
|
value: NFTMsgRemoveFromWhitelist;
|
|
277
288
|
};
|
|
278
289
|
/** MsgBurn message creator
|
|
290
|
+
* Burns the existing non-fungible token in the class.
|
|
279
291
|
*
|
|
280
292
|
* @param object Represents the properties available for this MsgBurn message.
|
|
281
293
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -293,6 +305,7 @@ export declare namespace NFT {
|
|
|
293
305
|
value: NFTMsgBurn;
|
|
294
306
|
};
|
|
295
307
|
/** MsgFreeze message creator
|
|
308
|
+
* Freezes an NFT
|
|
296
309
|
*
|
|
297
310
|
* @param object Represents the properties available for this MsgFreeze message.
|
|
298
311
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -310,6 +323,7 @@ export declare namespace NFT {
|
|
|
310
323
|
value: NFTMsgFreeze;
|
|
311
324
|
};
|
|
312
325
|
/** MsgUnfreeze message creator
|
|
326
|
+
* Removes the freeze effect already put on an NFT
|
|
313
327
|
*
|
|
314
328
|
* @param object Represents the properties available for this MsgUnfreeze message.
|
|
315
329
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -327,6 +341,7 @@ export declare namespace NFT {
|
|
|
327
341
|
value: NFTMsgUnfreeze;
|
|
328
342
|
};
|
|
329
343
|
/** MsgIssueClass message creator
|
|
344
|
+
* Creates new non-fungible token class.
|
|
330
345
|
*
|
|
331
346
|
* @param object Represents the properties available for this MsgIssueClass message.
|
|
332
347
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -365,6 +380,7 @@ export declare namespace NFT {
|
|
|
365
380
|
value: NFTMsgIssueClass;
|
|
366
381
|
};
|
|
367
382
|
/** MsgSend message creator
|
|
383
|
+
* Represents a message to send a nft from one account to another account.
|
|
368
384
|
*
|
|
369
385
|
* @param object Represents the properties available for this MsgSend message.
|
|
370
386
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -20,6 +20,7 @@ exports.coreumRegistry = [
|
|
|
20
20
|
var FT;
|
|
21
21
|
(function (FT) {
|
|
22
22
|
/** MsgMint message creator
|
|
23
|
+
* Mints new fungible tokens.
|
|
23
24
|
*
|
|
24
25
|
* @param object Represents the properties available for this MsgMint message.
|
|
25
26
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -31,6 +32,7 @@ var FT;
|
|
|
31
32
|
};
|
|
32
33
|
};
|
|
33
34
|
/** MsgIssue message creator
|
|
35
|
+
* Defines a method to issue a new fungible token.
|
|
34
36
|
*
|
|
35
37
|
* @param object Represents the properties available for this MsgIssue message.
|
|
36
38
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -42,6 +44,7 @@ var FT;
|
|
|
42
44
|
};
|
|
43
45
|
};
|
|
44
46
|
/** MsgBurn message creator
|
|
47
|
+
* Burns the specified fungible tokens from senders balance if the sender has enough balance.
|
|
45
48
|
*
|
|
46
49
|
* @param object Represents the properties available for this MsgBurn message.
|
|
47
50
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -53,6 +56,7 @@ var FT;
|
|
|
53
56
|
};
|
|
54
57
|
};
|
|
55
58
|
/** MsgFreeze message creator
|
|
59
|
+
* Freezes a part of the fungible tokens in an account, only if the freezable feature is enabled on that token.
|
|
56
60
|
*
|
|
57
61
|
* @param object Represents the properties available for this MsgIssue message.
|
|
58
62
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -64,6 +68,7 @@ var FT;
|
|
|
64
68
|
};
|
|
65
69
|
};
|
|
66
70
|
/** MsgGloballyFreeze message creator
|
|
71
|
+
* Freezes fungible token so no operations are allowed with it before unfrozen. This operation is idempotent so global freeze of already frozen token does nothing.
|
|
67
72
|
*
|
|
68
73
|
* @param object Represents the properties available for this MsgGloballyFreeze message.
|
|
69
74
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -75,6 +80,7 @@ var FT;
|
|
|
75
80
|
};
|
|
76
81
|
};
|
|
77
82
|
/** MsgGloballyUnfreeze message creator
|
|
83
|
+
* Unfreezes fungible token and unblocks basic operations on it. This operation is idempotent so global unfreezing of non-frozen token does nothing.
|
|
78
84
|
*
|
|
79
85
|
* @param object Represents the properties available for this MsgGloballyUnfreeze message.
|
|
80
86
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -86,6 +92,7 @@ var FT;
|
|
|
86
92
|
};
|
|
87
93
|
};
|
|
88
94
|
/** MsgUnfreeze message creator
|
|
95
|
+
* Unfreezes a part of the frozen fungible tokens in an account, only if there are such frozen tokens on that account.
|
|
89
96
|
*
|
|
90
97
|
* @param object Represents the properties available for this MsgUnfreeze message.
|
|
91
98
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -97,6 +104,7 @@ var FT;
|
|
|
97
104
|
};
|
|
98
105
|
};
|
|
99
106
|
/** MsgSetWhitelistedLimit message creator
|
|
107
|
+
* Sets the limit of how many tokens a specific account may hold.
|
|
100
108
|
*
|
|
101
109
|
* @param object Represents the properties available for this MsgSetWhitelistedLimit message.
|
|
102
110
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -114,6 +122,7 @@ var FT;
|
|
|
114
122
|
var NFT;
|
|
115
123
|
(function (NFT) {
|
|
116
124
|
/** MsgMint message creator
|
|
125
|
+
* Mints new non-fungible token in the class.
|
|
117
126
|
*
|
|
118
127
|
* @param object Represents the properties available for this MsgMint message.
|
|
119
128
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -125,6 +134,7 @@ var NFT;
|
|
|
125
134
|
};
|
|
126
135
|
};
|
|
127
136
|
/** MsgAddToWhitelist message creator
|
|
137
|
+
* Sets the account as whitelisted to hold the NFT
|
|
128
138
|
*
|
|
129
139
|
* @param object Represents the properties available for this MsgAddToWhitelist message.
|
|
130
140
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -136,6 +146,7 @@ var NFT;
|
|
|
136
146
|
};
|
|
137
147
|
};
|
|
138
148
|
/** MsgRemoveFromWhitelist message creator
|
|
149
|
+
* Removes an account from whitelisted list of the NFT
|
|
139
150
|
*
|
|
140
151
|
* @param object Represents the properties available for this MsgRemoveFromWhitelist message.
|
|
141
152
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -147,6 +158,7 @@ var NFT;
|
|
|
147
158
|
};
|
|
148
159
|
};
|
|
149
160
|
/** MsgBurn message creator
|
|
161
|
+
* Burns the existing non-fungible token in the class.
|
|
150
162
|
*
|
|
151
163
|
* @param object Represents the properties available for this MsgBurn message.
|
|
152
164
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -158,6 +170,7 @@ var NFT;
|
|
|
158
170
|
};
|
|
159
171
|
};
|
|
160
172
|
/** MsgFreeze message creator
|
|
173
|
+
* Freezes an NFT
|
|
161
174
|
*
|
|
162
175
|
* @param object Represents the properties available for this MsgFreeze message.
|
|
163
176
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -169,6 +182,7 @@ var NFT;
|
|
|
169
182
|
};
|
|
170
183
|
};
|
|
171
184
|
/** MsgUnfreeze message creator
|
|
185
|
+
* Removes the freeze effect already put on an NFT
|
|
172
186
|
*
|
|
173
187
|
* @param object Represents the properties available for this MsgUnfreeze message.
|
|
174
188
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -180,6 +194,7 @@ var NFT;
|
|
|
180
194
|
};
|
|
181
195
|
};
|
|
182
196
|
/** MsgIssueClass message creator
|
|
197
|
+
* Creates new non-fungible token class.
|
|
183
198
|
*
|
|
184
199
|
* @param object Represents the properties available for this MsgIssueClass message.
|
|
185
200
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -191,6 +206,7 @@ var NFT;
|
|
|
191
206
|
};
|
|
192
207
|
};
|
|
193
208
|
/** MsgSend message creator
|
|
209
|
+
* Represents a message to send a nft from one account to another account.
|
|
194
210
|
*
|
|
195
211
|
* @param object Represents the properties available for this MsgSend message.
|
|
196
212
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
@@ -202,4 +218,4 @@ var NFT;
|
|
|
202
218
|
};
|
|
203
219
|
};
|
|
204
220
|
})(NFT = exports.NFT || (exports.NFT = {}));
|
|
205
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
221
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29yZXVtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLG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0FBQztJQUVGOzs7OztPQUtHO0lBQ1UsY0FBVSxHQUFHLFVBRXhCLE1BQVM7UUFDVCxPQUFPO1lBQ0wsT0FBTyxFQUFFLG9DQUFvQztZQUM3QyxLQUFLLEVBQUUsa0JBQWdCLENBQUMsV0FBVyxDQUFDLE1BQU0sQ0FBQztTQUM1QyxDQUFDO0lBQ0osQ0FBQyxDQUFDO0lBRUY7Ozs7O09BS0c7SUFDVSxRQUFJLEdBQUcsVUFDbEIsTUFBUztRQUVULE9BQU87WUFDTCxPQUFPLEVBQUUsNkJBQTZCO1lBQ3RDLEtBQUssRUFBRSxZQUFVLENBQUMsV0FBVyxDQUFDLE1BQU0sQ0FBQztTQUN0QyxDQUFDO0lBQ0osQ0FBQyxDQUFDO0FBQ0osQ0FBQyxFQXhIZ0IsR0FBRyxHQUFILFdBQUcsS0FBSCxXQUFHLFFBd0huQiJ9
|
|
@@ -9,6 +9,12 @@ import { MsgExec, MsgGrant, MsgRevoke } from "./authz/v1beta1/tx";
|
|
|
9
9
|
* Module to generate the Messages related to the Authz module of the Blockchain
|
|
10
10
|
*/
|
|
11
11
|
export declare namespace Authz {
|
|
12
|
+
/** MsgGrant message creator
|
|
13
|
+
* Grants the provided authorization to the grantee on the granter's account with the provided expiration time. If there is already a grant for the given (granter, grantee, Authorization) triple, then the grant will be overwritten.
|
|
14
|
+
*
|
|
15
|
+
* @param object Represents the properties available for this MsgGrant message.
|
|
16
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
17
|
+
*/
|
|
12
18
|
const Grant: <I extends {
|
|
13
19
|
granter?: string;
|
|
14
20
|
grantee?: string;
|
|
@@ -42,6 +48,12 @@ export declare namespace Authz {
|
|
|
42
48
|
typeUrl: string;
|
|
43
49
|
value: MsgGrant;
|
|
44
50
|
};
|
|
51
|
+
/** MsgExec message creator
|
|
52
|
+
* Attempts to execute the provided messages using authorizations granted to the grantee. Each message should have only one signer corresponding to the granter of the authorization.
|
|
53
|
+
*
|
|
54
|
+
* @param object Represents the properties available for this MsgExec message.
|
|
55
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
56
|
+
*/
|
|
45
57
|
const Exec: <I extends {
|
|
46
58
|
grantee?: string;
|
|
47
59
|
msgs?: {
|
|
@@ -67,6 +79,12 @@ export declare namespace Authz {
|
|
|
67
79
|
typeUrl: string;
|
|
68
80
|
value: MsgExec;
|
|
69
81
|
};
|
|
82
|
+
/** MsgRevoke message creator
|
|
83
|
+
* Revokes any authorization corresponding to the provided method name on the granter's account that has been granted to the grantee.
|
|
84
|
+
*
|
|
85
|
+
* @param object Represents the properties available for this MsgRevoke message.
|
|
86
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
87
|
+
*/
|
|
70
88
|
const Revoke: <I extends {
|
|
71
89
|
granter?: string;
|
|
72
90
|
grantee?: string;
|
|
@@ -84,6 +102,12 @@ export declare namespace Authz {
|
|
|
84
102
|
* Module to generate the Messages related to the Staking module of the Blockchain
|
|
85
103
|
*/
|
|
86
104
|
export declare namespace Staking {
|
|
105
|
+
/** MsgBeginRedelegate message creator
|
|
106
|
+
* Defines a method for performing a redelegation of coins from a delegator and source validator to a destination validator.
|
|
107
|
+
*
|
|
108
|
+
* @param object Represents the properties available for this MsgBeginRedelegate message.
|
|
109
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
110
|
+
*/
|
|
87
111
|
const BeginRedelegate: <I extends {
|
|
88
112
|
delegatorAddress?: string;
|
|
89
113
|
validatorSrcAddress?: string;
|
|
@@ -107,6 +131,11 @@ export declare namespace Staking {
|
|
|
107
131
|
typeUrl: string;
|
|
108
132
|
value: MsgBeginRedelegate;
|
|
109
133
|
};
|
|
134
|
+
/** MsgCancelUnbondingDelegation message creator
|
|
135
|
+
*
|
|
136
|
+
* @param object Represents the properties available for this MsgCancelUnbondingDelegation message.
|
|
137
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
138
|
+
*/
|
|
110
139
|
const CancelUnbondingDelegation: <I extends {
|
|
111
140
|
delegatorAddress?: string;
|
|
112
141
|
validatorAddress?: string;
|
|
@@ -130,6 +159,12 @@ export declare namespace Staking {
|
|
|
130
159
|
typeUrl: string;
|
|
131
160
|
value: MsgCancelUnbondingDelegation;
|
|
132
161
|
};
|
|
162
|
+
/** MsgCreateValidator message creator
|
|
163
|
+
* Defines a method for creating a new validator.
|
|
164
|
+
*
|
|
165
|
+
* @param object Represents the properties available for this MsgCreateValidator message.
|
|
166
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
167
|
+
*/
|
|
133
168
|
const CreateValidator: <I extends {
|
|
134
169
|
description?: {
|
|
135
170
|
moniker?: string;
|
|
@@ -198,6 +233,12 @@ export declare namespace Staking {
|
|
|
198
233
|
typeUrl: string;
|
|
199
234
|
value: MsgCreateValidator;
|
|
200
235
|
};
|
|
236
|
+
/** MsgDelegate message creator
|
|
237
|
+
* Defines a method for performing a delegation of coins from a delegator to a validator.
|
|
238
|
+
*
|
|
239
|
+
* @param object Represents the properties available for this MsgDelegate message.
|
|
240
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
241
|
+
*/
|
|
201
242
|
const Delegate: <I extends {
|
|
202
243
|
delegatorAddress?: string;
|
|
203
244
|
validatorAddress?: string;
|
|
@@ -219,6 +260,12 @@ export declare namespace Staking {
|
|
|
219
260
|
typeUrl: string;
|
|
220
261
|
value: MsgDelegate;
|
|
221
262
|
};
|
|
263
|
+
/** MsgEditValidator message creator
|
|
264
|
+
* Defines a method for editing an existing validator.
|
|
265
|
+
*
|
|
266
|
+
* @param object Represents the properties available for this MsgEditValidator message.
|
|
267
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
268
|
+
*/
|
|
222
269
|
const EditValidator: <I extends {
|
|
223
270
|
description?: {
|
|
224
271
|
moniker?: string;
|
|
@@ -251,6 +298,12 @@ export declare namespace Staking {
|
|
|
251
298
|
typeUrl: string;
|
|
252
299
|
value: MsgEditValidator;
|
|
253
300
|
};
|
|
301
|
+
/** MsgUndelegate message creator
|
|
302
|
+
* Defines a method for performing an undelegation from a delegate and a validator.
|
|
303
|
+
*
|
|
304
|
+
* @param object Represents the properties available for this MsgUndelegate message.
|
|
305
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
306
|
+
*/
|
|
254
307
|
const Undelegate: <I extends {
|
|
255
308
|
delegatorAddress?: string;
|
|
256
309
|
validatorAddress?: string;
|
|
@@ -272,6 +325,11 @@ export declare namespace Staking {
|
|
|
272
325
|
typeUrl: string;
|
|
273
326
|
value: MsgUndelegate;
|
|
274
327
|
};
|
|
328
|
+
/** MsgUpdateParams message creator
|
|
329
|
+
*
|
|
330
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
331
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
332
|
+
*/
|
|
275
333
|
const UpdateParams: <I extends {
|
|
276
334
|
authority?: string;
|
|
277
335
|
params?: {
|
|
@@ -320,6 +378,12 @@ export declare namespace Staking {
|
|
|
320
378
|
* Module to generate the Messages related to the Governance module of the Blockchain
|
|
321
379
|
*/
|
|
322
380
|
export declare namespace Governance {
|
|
381
|
+
/** MsgDeposit message creator
|
|
382
|
+
* Defines a method to add deposit on a specific proposal.
|
|
383
|
+
*
|
|
384
|
+
* @param object Represents the properties available for this MsgDeposit message.
|
|
385
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
386
|
+
*/
|
|
323
387
|
const Deposit: <I extends {
|
|
324
388
|
proposalId?: number;
|
|
325
389
|
depositor?: string;
|
|
@@ -347,6 +411,12 @@ export declare namespace Governance {
|
|
|
347
411
|
typeUrl: string;
|
|
348
412
|
value: MsgDeposit;
|
|
349
413
|
};
|
|
414
|
+
/** MsgSubmitProposal message creator
|
|
415
|
+
* Defines a method to create new proposal given a content.
|
|
416
|
+
*
|
|
417
|
+
* @param object Represents the properties available for this MsgSubmitProposal message.
|
|
418
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
419
|
+
*/
|
|
350
420
|
const SubmitProposal: <I extends {
|
|
351
421
|
content?: {
|
|
352
422
|
typeUrl?: string;
|
|
@@ -383,6 +453,12 @@ export declare namespace Governance {
|
|
|
383
453
|
typeUrl: string;
|
|
384
454
|
value: MsgSubmitProposal;
|
|
385
455
|
};
|
|
456
|
+
/** MsgVote message creator
|
|
457
|
+
* Defines a method to add a vote on a specific proposal.
|
|
458
|
+
*
|
|
459
|
+
* @param object Represents the properties available for this MsgVote message.
|
|
460
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
461
|
+
*/
|
|
386
462
|
const Vote: <I extends {
|
|
387
463
|
proposalId?: number;
|
|
388
464
|
voter?: string;
|
|
@@ -395,6 +471,12 @@ export declare namespace Governance {
|
|
|
395
471
|
typeUrl: string;
|
|
396
472
|
value: MsgVote;
|
|
397
473
|
};
|
|
474
|
+
/** MsgVoteWeighted message creator
|
|
475
|
+
* Defines a method to add a weighted vote on a specific proposal.
|
|
476
|
+
*
|
|
477
|
+
* @param object Represents the properties available for this MsgVoteWeighted message.
|
|
478
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
479
|
+
*/
|
|
398
480
|
const VoteWeighted: <I extends {
|
|
399
481
|
proposalId?: number;
|
|
400
482
|
voter?: string;
|
|
@@ -427,6 +509,12 @@ export declare namespace Governance {
|
|
|
427
509
|
* Module to generate the Messages related to the Feegrant module of the Blockchain
|
|
428
510
|
*/
|
|
429
511
|
export declare namespace Feegrant {
|
|
512
|
+
/** MsgGrantAllowance message creator
|
|
513
|
+
* Grants fee allowance to the grantee on the granter's account with the provided expiration time.
|
|
514
|
+
*
|
|
515
|
+
* @param object Represents the properties available for this MsgGrantAllowance message.
|
|
516
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
517
|
+
*/
|
|
430
518
|
const GrantAllowance: <I extends {
|
|
431
519
|
granter?: string;
|
|
432
520
|
grantee?: string;
|
|
@@ -448,6 +536,12 @@ export declare namespace Feegrant {
|
|
|
448
536
|
typeUrl: string;
|
|
449
537
|
value: MsgGrantAllowance;
|
|
450
538
|
};
|
|
539
|
+
/** MsgRevokeAllowance message creator
|
|
540
|
+
* Revokes any fee allowance of granter's account that has been granted to the grantee.
|
|
541
|
+
*
|
|
542
|
+
* @param object Represents the properties available for this MsgRevokeAllowance message.
|
|
543
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
544
|
+
*/
|
|
451
545
|
const RevokeAllowance: <I extends {
|
|
452
546
|
granter?: string;
|
|
453
547
|
grantee?: string;
|
|
@@ -463,6 +557,12 @@ export declare namespace Feegrant {
|
|
|
463
557
|
* Module to generate the Messages related to the Bank module of the Blockchain
|
|
464
558
|
*/
|
|
465
559
|
export declare namespace Bank {
|
|
560
|
+
/** MsgMultiSend message creator
|
|
561
|
+
* Defines a method for sending coins from some accounts to other accounts.
|
|
562
|
+
*
|
|
563
|
+
* @param object Represents the properties available for this MsgMultiSend message.
|
|
564
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
565
|
+
*/
|
|
466
566
|
const MultiSend: <I extends {
|
|
467
567
|
inputs?: {
|
|
468
568
|
address?: string;
|
|
@@ -551,6 +651,12 @@ export declare namespace Bank {
|
|
|
551
651
|
typeUrl: string;
|
|
552
652
|
value: MsgMultiSend;
|
|
553
653
|
};
|
|
654
|
+
/** MsgSend message creator
|
|
655
|
+
* Defines a method for sending coins from one account to another account.
|
|
656
|
+
*
|
|
657
|
+
* @param object Represents the properties available for this MsgSend message.
|
|
658
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
659
|
+
*/
|
|
554
660
|
const Send: <I extends {
|
|
555
661
|
fromAddress?: string;
|
|
556
662
|
toAddress?: string;
|
|
@@ -578,6 +684,11 @@ export declare namespace Bank {
|
|
|
578
684
|
typeUrl: string;
|
|
579
685
|
value: MsgSend;
|
|
580
686
|
};
|
|
687
|
+
/** MsgSetSendEnabled message creator
|
|
688
|
+
*
|
|
689
|
+
* @param object Represents the properties available for this MsgSetSendEnabled message.
|
|
690
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
691
|
+
*/
|
|
581
692
|
const SetSendEnabled: <I extends {
|
|
582
693
|
authority?: string;
|
|
583
694
|
sendEnabled?: {
|
|
@@ -605,6 +716,11 @@ export declare namespace Bank {
|
|
|
605
716
|
typeUrl: string;
|
|
606
717
|
value: MsgSetSendEnabled;
|
|
607
718
|
};
|
|
719
|
+
/** MsgUpdateParams message creator
|
|
720
|
+
*
|
|
721
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
722
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
723
|
+
*/
|
|
608
724
|
const UpdateParams: <I extends {
|
|
609
725
|
authority?: string;
|
|
610
726
|
params?: {
|
|
@@ -647,6 +763,12 @@ export declare namespace Bank {
|
|
|
647
763
|
* Module to generate the Messages related to the Distribution module of the Blockchain
|
|
648
764
|
*/
|
|
649
765
|
export declare namespace Distribution {
|
|
766
|
+
/** MsgWithdrawDelegatorReward message creator
|
|
767
|
+
* Defines a method to withdraw rewards of delegator from a single validator.
|
|
768
|
+
*
|
|
769
|
+
* @param object Represents the properties available for this MsgWithdrawDelegatorReward message.
|
|
770
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
771
|
+
*/
|
|
650
772
|
const WithdrawDelegatorReward: <I extends {
|
|
651
773
|
delegatorAddress?: string;
|
|
652
774
|
validatorAddress?: string;
|
|
@@ -657,6 +779,11 @@ export declare namespace Distribution {
|
|
|
657
779
|
typeUrl: string;
|
|
658
780
|
value: MsgWithdrawDelegatorReward;
|
|
659
781
|
};
|
|
782
|
+
/** MsgUpdateParams message creator
|
|
783
|
+
*
|
|
784
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
785
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
786
|
+
*/
|
|
660
787
|
const UpdateParams: <I extends {
|
|
661
788
|
authority?: string;
|
|
662
789
|
params?: {
|
|
@@ -682,6 +809,12 @@ export declare namespace Distribution {
|
|
|
682
809
|
typeUrl: string;
|
|
683
810
|
value: DMsgUpdateParams;
|
|
684
811
|
};
|
|
812
|
+
/** MsgWithdrawValidatorCommission message creator
|
|
813
|
+
* Defines a method to withdraw the full commission to the validator address.
|
|
814
|
+
*
|
|
815
|
+
* @param object Represents the properties available for this MsgWithdrawValidatorCommission message.
|
|
816
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
817
|
+
*/
|
|
685
818
|
const WithdrawValidatorCommission: <I extends {
|
|
686
819
|
validatorAddress?: string;
|
|
687
820
|
} & {
|
|
@@ -690,6 +823,11 @@ export declare namespace Distribution {
|
|
|
690
823
|
typeUrl: string;
|
|
691
824
|
value: MsgWithdrawValidatorCommission;
|
|
692
825
|
};
|
|
826
|
+
/** MsgCommunityPoolSpend message creator
|
|
827
|
+
*
|
|
828
|
+
* @param object Represents the properties available for this MsgCommunityPoolSpend message.
|
|
829
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
830
|
+
*/
|
|
693
831
|
const CommunityPoolSpend: <I extends {
|
|
694
832
|
authority?: string;
|
|
695
833
|
recipient?: string;
|
|
@@ -717,6 +855,11 @@ export declare namespace Distribution {
|
|
|
717
855
|
typeUrl: string;
|
|
718
856
|
value: MsgCommunityPoolSpend;
|
|
719
857
|
};
|
|
858
|
+
/** MsgDepositValidatorRewardsPool message creator
|
|
859
|
+
*
|
|
860
|
+
* @param object Represents the properties available for this MsgDepositValidatorRewardsPool message.
|
|
861
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
862
|
+
*/
|
|
720
863
|
const DepositValidatorRewardsPool: <I extends {
|
|
721
864
|
depositor?: string;
|
|
722
865
|
validatorAddress?: string;
|
|
@@ -744,6 +887,12 @@ export declare namespace Distribution {
|
|
|
744
887
|
typeUrl: string;
|
|
745
888
|
value: MsgDepositValidatorRewardsPool;
|
|
746
889
|
};
|
|
890
|
+
/** MsgFundCommunityPool message creator
|
|
891
|
+
* Defines a method to allow an account to directly fund the community pool.
|
|
892
|
+
*
|
|
893
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
894
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
895
|
+
*/
|
|
747
896
|
const FundCommunityPool: <I extends {
|
|
748
897
|
amount?: {
|
|
749
898
|
denom?: string;
|
|
@@ -769,6 +918,12 @@ export declare namespace Distribution {
|
|
|
769
918
|
typeUrl: string;
|
|
770
919
|
value: MsgFundCommunityPool;
|
|
771
920
|
};
|
|
921
|
+
/** MsgSetWithdrawAddress message creator
|
|
922
|
+
* Defines a method to change the withdraw address for a delegator (or validator self-delegation).
|
|
923
|
+
*
|
|
924
|
+
* @param object Represents the properties available for this MsgSetWithdrawAddress message.
|
|
925
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
926
|
+
*/
|
|
772
927
|
const SetWithdrawAddress: <I extends {
|
|
773
928
|
delegatorAddress?: string;
|
|
774
929
|
withdrawAddress?: string;
|
|
@@ -784,6 +939,12 @@ export declare namespace Distribution {
|
|
|
784
939
|
* Module to generate the Messages related to the Vesting module of the Blockchain
|
|
785
940
|
*/
|
|
786
941
|
export declare namespace Vesting {
|
|
942
|
+
/** MsgCreateVestingAccount message creator
|
|
943
|
+
* Defines a method that enables creating a vesting account.
|
|
944
|
+
*
|
|
945
|
+
* @param object Represents the properties available for this MsgCreateVestingAccount message.
|
|
946
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
947
|
+
*/
|
|
787
948
|
const CreateVestingAccount: <I extends {
|
|
788
949
|
fromAddress?: string;
|
|
789
950
|
toAddress?: string;
|