coreum-js 2.6.4 → 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 +92 -0
- package/dist/main/client/index.d.ts +8 -0
- package/dist/main/client/index.js +9 -1
- package/dist/main/coreum/index.d.ts +106 -0
- package/dist/main/coreum/index.js +106 -1
- package/dist/main/cosmos/index.d.ts +182 -0
- package/dist/main/cosmos/index.js +183 -1
- package/dist/main/services/cosmostation.js +2 -3
- package/dist/main/services/keplr.js +2 -3
- package/dist/main/types/core.d.ts +1 -0
- package/dist/main/types/core.js +2 -1
- package/dist/main/types/coreum.d.ts +2 -0
- package/dist/main/types/coreum.js +2 -1
- package/dist/main/utils/calculations.d.ts +14 -6
- package/dist/main/utils/calculations.js +22 -23
- package/dist/main/utils/event.d.ts +0 -1
- package/dist/main/utils/event.js +1 -2
- package/dist/main/utils/ft.d.ts +0 -1
- package/dist/main/utils/ft.js +1 -2
- package/dist/main/wasm/v1/index.d.ts +77 -0
- package/dist/main/wasm/v1/index.js +78 -1
- package/dist/module/client/index.d.ts +8 -0
- package/dist/module/client/index.js +9 -1
- package/dist/module/coreum/index.d.ts +106 -0
- package/dist/module/coreum/index.js +106 -1
- package/dist/module/cosmos/index.d.ts +182 -0
- package/dist/module/cosmos/index.js +183 -1
- package/dist/module/services/cosmostation.js +2 -3
- package/dist/module/services/keplr.js +2 -3
- package/dist/module/types/core.d.ts +1 -0
- package/dist/module/types/core.js +2 -1
- package/dist/module/types/coreum.d.ts +2 -0
- package/dist/module/types/coreum.js +2 -1
- package/dist/module/utils/calculations.d.ts +14 -6
- package/dist/module/utils/calculations.js +19 -19
- package/dist/module/utils/event.d.ts +0 -1
- package/dist/module/utils/event.js +1 -2
- package/dist/module/utils/ft.d.ts +0 -1
- package/dist/module/utils/ft.js +1 -2
- package/dist/module/wasm/v1/index.d.ts +77 -0
- package/dist/module/wasm/v1/index.js +78 -1
- package/package.json +2 -2
|
@@ -2,12 +2,25 @@ import { GeneratedType } from "@cosmjs/proto-signing";
|
|
|
2
2
|
import { MsgSend as NFTMsgSend } from "./nft/v1beta1/tx";
|
|
3
3
|
import { MsgIssueClass as NFTMsgIssueClass, MsgMint as NFTMsgMint, MsgAddToWhitelist as NFTMsgAddToWhitelist, MsgBurn as NFTMsgBurn, MsgRemoveFromWhitelist as NFTMsgRemoveFromWhitelist, MsgFreeze as NFTMsgFreeze, MsgUnfreeze as NFTMsgUnfreeze } from "./asset/nft/v1/tx";
|
|
4
4
|
import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit } from "./asset/ft/v1/tx";
|
|
5
|
+
/** @internal */
|
|
5
6
|
export interface CoreumMessage {
|
|
6
7
|
typeUrl: string;
|
|
7
8
|
value: any;
|
|
8
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Registry of the Custom Messages of the Coreum blockchain
|
|
12
|
+
*/
|
|
9
13
|
export declare const coreumRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
14
|
+
/**
|
|
15
|
+
* Transaction Module for the Fungible Tokens module. (assetft)
|
|
16
|
+
*/
|
|
10
17
|
export declare namespace FT {
|
|
18
|
+
/** MsgMint message creator
|
|
19
|
+
* Mints new fungible tokens.
|
|
20
|
+
*
|
|
21
|
+
* @param object Represents the properties available for this MsgMint message.
|
|
22
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
23
|
+
*/
|
|
11
24
|
const Mint: <I extends {
|
|
12
25
|
sender?: string;
|
|
13
26
|
coin?: {
|
|
@@ -27,6 +40,12 @@ export declare namespace FT {
|
|
|
27
40
|
typeUrl: string;
|
|
28
41
|
value: FTMsgMint;
|
|
29
42
|
};
|
|
43
|
+
/** MsgIssue message creator
|
|
44
|
+
* Defines a method to issue a new fungible token.
|
|
45
|
+
*
|
|
46
|
+
* @param object Represents the properties available for this MsgIssue message.
|
|
47
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
48
|
+
*/
|
|
30
49
|
const Issue: <I extends {
|
|
31
50
|
issuer?: string;
|
|
32
51
|
symbol?: string;
|
|
@@ -51,6 +70,12 @@ export declare namespace FT {
|
|
|
51
70
|
typeUrl: string;
|
|
52
71
|
value: FTMsgIssue;
|
|
53
72
|
};
|
|
73
|
+
/** MsgBurn message creator
|
|
74
|
+
* Burns the specified fungible tokens from senders balance if the sender has enough balance.
|
|
75
|
+
*
|
|
76
|
+
* @param object Represents the properties available for this MsgBurn message.
|
|
77
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
78
|
+
*/
|
|
54
79
|
const Burn: <I extends {
|
|
55
80
|
sender?: string;
|
|
56
81
|
coin?: {
|
|
@@ -70,6 +95,12 @@ export declare namespace FT {
|
|
|
70
95
|
typeUrl: string;
|
|
71
96
|
value: FTMsgBurn;
|
|
72
97
|
};
|
|
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.
|
|
100
|
+
*
|
|
101
|
+
* @param object Represents the properties available for this MsgIssue message.
|
|
102
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
103
|
+
*/
|
|
73
104
|
const Freeze: <I extends {
|
|
74
105
|
sender?: string;
|
|
75
106
|
account?: string;
|
|
@@ -91,6 +122,12 @@ export declare namespace FT {
|
|
|
91
122
|
typeUrl: string;
|
|
92
123
|
value: FTMsgFreeze;
|
|
93
124
|
};
|
|
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.
|
|
127
|
+
*
|
|
128
|
+
* @param object Represents the properties available for this MsgGloballyFreeze message.
|
|
129
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
130
|
+
*/
|
|
94
131
|
const GloballyFreeze: <I extends {
|
|
95
132
|
sender?: string;
|
|
96
133
|
denom?: string;
|
|
@@ -101,6 +138,12 @@ export declare namespace FT {
|
|
|
101
138
|
typeUrl: string;
|
|
102
139
|
value: FTMsgGloballyFreeze;
|
|
103
140
|
};
|
|
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.
|
|
143
|
+
*
|
|
144
|
+
* @param object Represents the properties available for this MsgGloballyUnfreeze message.
|
|
145
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
146
|
+
*/
|
|
104
147
|
const GloballyUnfreeze: <I extends {
|
|
105
148
|
sender?: string;
|
|
106
149
|
denom?: string;
|
|
@@ -111,6 +154,12 @@ export declare namespace FT {
|
|
|
111
154
|
typeUrl: string;
|
|
112
155
|
value: FTMsgGloballyUnfreeze;
|
|
113
156
|
};
|
|
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.
|
|
159
|
+
*
|
|
160
|
+
* @param object Represents the properties available for this MsgUnfreeze message.
|
|
161
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
162
|
+
*/
|
|
114
163
|
const Unfreeze: <I extends {
|
|
115
164
|
sender?: string;
|
|
116
165
|
account?: string;
|
|
@@ -132,6 +181,12 @@ export declare namespace FT {
|
|
|
132
181
|
typeUrl: string;
|
|
133
182
|
value: FTMsgUnfreeze;
|
|
134
183
|
};
|
|
184
|
+
/** MsgSetWhitelistedLimit message creator
|
|
185
|
+
* Sets the limit of how many tokens a specific account may hold.
|
|
186
|
+
*
|
|
187
|
+
* @param object Represents the properties available for this MsgSetWhitelistedLimit message.
|
|
188
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
189
|
+
*/
|
|
135
190
|
const SetWhitelistedLimit: <I extends {
|
|
136
191
|
sender?: string;
|
|
137
192
|
account?: string;
|
|
@@ -154,7 +209,16 @@ export declare namespace FT {
|
|
|
154
209
|
value: FTMsgSetWhitelistedLimit;
|
|
155
210
|
};
|
|
156
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* Transaction Module for the Non-Fungible Tokens modules (assetnft, nftbeta).
|
|
214
|
+
*/
|
|
157
215
|
export declare namespace NFT {
|
|
216
|
+
/** MsgMint message creator
|
|
217
|
+
* Mints new non-fungible token in the class.
|
|
218
|
+
*
|
|
219
|
+
* @param object Represents the properties available for this MsgMint message.
|
|
220
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
221
|
+
*/
|
|
158
222
|
const Mint: <I extends {
|
|
159
223
|
sender?: string;
|
|
160
224
|
classId?: string;
|
|
@@ -182,6 +246,12 @@ export declare namespace NFT {
|
|
|
182
246
|
typeUrl: string;
|
|
183
247
|
value: NFTMsgMint;
|
|
184
248
|
};
|
|
249
|
+
/** MsgAddToWhitelist message creator
|
|
250
|
+
* Sets the account as whitelisted to hold the NFT
|
|
251
|
+
*
|
|
252
|
+
* @param object Represents the properties available for this MsgAddToWhitelist message.
|
|
253
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
254
|
+
*/
|
|
185
255
|
const AddToWhitelist: <I extends {
|
|
186
256
|
sender?: string;
|
|
187
257
|
classId?: string;
|
|
@@ -196,6 +266,12 @@ export declare namespace NFT {
|
|
|
196
266
|
typeUrl: string;
|
|
197
267
|
value: NFTMsgAddToWhitelist;
|
|
198
268
|
};
|
|
269
|
+
/** MsgRemoveFromWhitelist message creator
|
|
270
|
+
* Removes an account from whitelisted list of the NFT
|
|
271
|
+
*
|
|
272
|
+
* @param object Represents the properties available for this MsgRemoveFromWhitelist message.
|
|
273
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
274
|
+
*/
|
|
199
275
|
const RemoveFromWhitelist: <I extends {
|
|
200
276
|
sender?: string;
|
|
201
277
|
classId?: string;
|
|
@@ -210,6 +286,12 @@ export declare namespace NFT {
|
|
|
210
286
|
typeUrl: string;
|
|
211
287
|
value: NFTMsgRemoveFromWhitelist;
|
|
212
288
|
};
|
|
289
|
+
/** MsgBurn message creator
|
|
290
|
+
* Burns the existing non-fungible token in the class.
|
|
291
|
+
*
|
|
292
|
+
* @param object Represents the properties available for this MsgBurn message.
|
|
293
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
294
|
+
*/
|
|
213
295
|
const Burn: <I extends {
|
|
214
296
|
sender?: string;
|
|
215
297
|
classId?: string;
|
|
@@ -222,6 +304,12 @@ export declare namespace NFT {
|
|
|
222
304
|
typeUrl: string;
|
|
223
305
|
value: NFTMsgBurn;
|
|
224
306
|
};
|
|
307
|
+
/** MsgFreeze message creator
|
|
308
|
+
* Freezes an NFT
|
|
309
|
+
*
|
|
310
|
+
* @param object Represents the properties available for this MsgFreeze message.
|
|
311
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
312
|
+
*/
|
|
225
313
|
const Freeze: <I extends {
|
|
226
314
|
sender?: string;
|
|
227
315
|
classId?: string;
|
|
@@ -234,6 +322,12 @@ export declare namespace NFT {
|
|
|
234
322
|
typeUrl: string;
|
|
235
323
|
value: NFTMsgFreeze;
|
|
236
324
|
};
|
|
325
|
+
/** MsgUnfreeze message creator
|
|
326
|
+
* Removes the freeze effect already put on an NFT
|
|
327
|
+
*
|
|
328
|
+
* @param object Represents the properties available for this MsgUnfreeze message.
|
|
329
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
330
|
+
*/
|
|
237
331
|
const Unfreeze: <I extends {
|
|
238
332
|
sender?: string;
|
|
239
333
|
classId?: string;
|
|
@@ -246,6 +340,12 @@ export declare namespace NFT {
|
|
|
246
340
|
typeUrl: string;
|
|
247
341
|
value: NFTMsgUnfreeze;
|
|
248
342
|
};
|
|
343
|
+
/** MsgIssueClass message creator
|
|
344
|
+
* Creates new non-fungible token class.
|
|
345
|
+
*
|
|
346
|
+
* @param object Represents the properties available for this MsgIssueClass message.
|
|
347
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
348
|
+
*/
|
|
249
349
|
const IssueClass: <I extends {
|
|
250
350
|
issuer?: string;
|
|
251
351
|
symbol?: string;
|
|
@@ -279,6 +379,12 @@ export declare namespace NFT {
|
|
|
279
379
|
typeUrl: string;
|
|
280
380
|
value: NFTMsgIssueClass;
|
|
281
381
|
};
|
|
382
|
+
/** MsgSend message creator
|
|
383
|
+
* Represents a message to send a nft from one account to another account.
|
|
384
|
+
*
|
|
385
|
+
* @param object Represents the properties available for this MsgSend message.
|
|
386
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
387
|
+
*/
|
|
282
388
|
const Send: <I extends {
|
|
283
389
|
classId?: string;
|
|
284
390
|
id?: string;
|
|
@@ -3,55 +3,109 @@ import { nftBetaRegistry } from "./nft";
|
|
|
3
3
|
import { MsgSend as NFTMsgSend } from "./nft/v1beta1/tx";
|
|
4
4
|
import { MsgIssueClass as NFTMsgIssueClass, MsgMint as NFTMsgMint, MsgAddToWhitelist as NFTMsgAddToWhitelist, MsgBurn as NFTMsgBurn, MsgRemoveFromWhitelist as NFTMsgRemoveFromWhitelist, MsgFreeze as NFTMsgFreeze, MsgUnfreeze as NFTMsgUnfreeze, } from "./asset/nft/v1/tx";
|
|
5
5
|
import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit, } from "./asset/ft/v1/tx";
|
|
6
|
+
/**
|
|
7
|
+
* Registry of the Custom Messages of the Coreum blockchain
|
|
8
|
+
*/
|
|
6
9
|
export const coreumRegistry = [
|
|
7
10
|
...assetFtRegistry,
|
|
8
11
|
...assetNftRegistry,
|
|
9
12
|
...nftBetaRegistry,
|
|
10
13
|
];
|
|
14
|
+
/**
|
|
15
|
+
* Transaction Module for the Fungible Tokens module. (assetft)
|
|
16
|
+
*/
|
|
11
17
|
export var FT;
|
|
12
18
|
(function (FT) {
|
|
19
|
+
/** MsgMint message creator
|
|
20
|
+
* Mints new fungible tokens.
|
|
21
|
+
*
|
|
22
|
+
* @param object Represents the properties available for this MsgMint message.
|
|
23
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
24
|
+
*/
|
|
13
25
|
FT.Mint = function (object) {
|
|
14
26
|
return {
|
|
15
27
|
typeUrl: "/coreum.asset.ft.v1.MsgMint",
|
|
16
28
|
value: FTMsgMint.fromPartial(object),
|
|
17
29
|
};
|
|
18
30
|
};
|
|
31
|
+
/** MsgIssue message creator
|
|
32
|
+
* Defines a method to issue a new fungible token.
|
|
33
|
+
*
|
|
34
|
+
* @param object Represents the properties available for this MsgIssue message.
|
|
35
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
36
|
+
*/
|
|
19
37
|
FT.Issue = function (object) {
|
|
20
38
|
return {
|
|
21
39
|
typeUrl: "/coreum.asset.ft.v1.MsgIssue",
|
|
22
40
|
value: FTMsgIssue.fromPartial(object),
|
|
23
41
|
};
|
|
24
42
|
};
|
|
43
|
+
/** MsgBurn message creator
|
|
44
|
+
* Burns the specified fungible tokens from senders balance if the sender has enough balance.
|
|
45
|
+
*
|
|
46
|
+
* @param object Represents the properties available for this MsgBurn message.
|
|
47
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
48
|
+
*/
|
|
25
49
|
FT.Burn = function (object) {
|
|
26
50
|
return {
|
|
27
51
|
typeUrl: "/coreum.asset.ft.v1.MsgBurn",
|
|
28
52
|
value: FTMsgBurn.fromPartial(object),
|
|
29
53
|
};
|
|
30
54
|
};
|
|
55
|
+
/** MsgFreeze message creator
|
|
56
|
+
* Freezes a part of the fungible tokens in an account, only if the freezable feature is enabled on that token.
|
|
57
|
+
*
|
|
58
|
+
* @param object Represents the properties available for this MsgIssue message.
|
|
59
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
60
|
+
*/
|
|
31
61
|
FT.Freeze = function (object) {
|
|
32
62
|
return {
|
|
33
63
|
typeUrl: "/coreum.asset.ft.v1.MsgFreeze",
|
|
34
64
|
value: FTMsgFreeze.fromPartial(object),
|
|
35
65
|
};
|
|
36
66
|
};
|
|
67
|
+
/** MsgGloballyFreeze message creator
|
|
68
|
+
* 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.
|
|
69
|
+
*
|
|
70
|
+
* @param object Represents the properties available for this MsgGloballyFreeze message.
|
|
71
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
72
|
+
*/
|
|
37
73
|
FT.GloballyFreeze = function (object) {
|
|
38
74
|
return {
|
|
39
75
|
typeUrl: "/coreum.asset.ft.v1.MsgGloballyFreeze",
|
|
40
76
|
value: FTMsgGloballyFreeze.fromPartial(object),
|
|
41
77
|
};
|
|
42
78
|
};
|
|
79
|
+
/** MsgGloballyUnfreeze message creator
|
|
80
|
+
* Unfreezes fungible token and unblocks basic operations on it. This operation is idempotent so global unfreezing of non-frozen token does nothing.
|
|
81
|
+
*
|
|
82
|
+
* @param object Represents the properties available for this MsgGloballyUnfreeze message.
|
|
83
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
84
|
+
*/
|
|
43
85
|
FT.GloballyUnfreeze = function (object) {
|
|
44
86
|
return {
|
|
45
87
|
typeUrl: "/coreum.asset.ft.v1.MsgGloballyUnfreeze",
|
|
46
88
|
value: FTMsgGloballyUnfreeze.fromPartial(object),
|
|
47
89
|
};
|
|
48
90
|
};
|
|
91
|
+
/** MsgUnfreeze message creator
|
|
92
|
+
* Unfreezes a part of the frozen fungible tokens in an account, only if there are such frozen tokens on that account.
|
|
93
|
+
*
|
|
94
|
+
* @param object Represents the properties available for this MsgUnfreeze message.
|
|
95
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
96
|
+
*/
|
|
49
97
|
FT.Unfreeze = function (object) {
|
|
50
98
|
return {
|
|
51
99
|
typeUrl: "/coreum.asset.ft.v1.MsgUnfreeze",
|
|
52
100
|
value: FTMsgUnfreeze.fromPartial(object),
|
|
53
101
|
};
|
|
54
102
|
};
|
|
103
|
+
/** MsgSetWhitelistedLimit message creator
|
|
104
|
+
* Sets the limit of how many tokens a specific account may hold.
|
|
105
|
+
*
|
|
106
|
+
* @param object Represents the properties available for this MsgSetWhitelistedLimit message.
|
|
107
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
108
|
+
*/
|
|
55
109
|
FT.SetWhitelistedLimit = function (object) {
|
|
56
110
|
return {
|
|
57
111
|
typeUrl: "/coreum.asset.ft.v1.MsgSetWhitelistedLimit",
|
|
@@ -59,50 +113,101 @@ export var FT;
|
|
|
59
113
|
};
|
|
60
114
|
};
|
|
61
115
|
})(FT || (FT = {}));
|
|
116
|
+
/**
|
|
117
|
+
* Transaction Module for the Non-Fungible Tokens modules (assetnft, nftbeta).
|
|
118
|
+
*/
|
|
62
119
|
export var NFT;
|
|
63
120
|
(function (NFT) {
|
|
121
|
+
/** MsgMint message creator
|
|
122
|
+
* Mints new non-fungible token in the class.
|
|
123
|
+
*
|
|
124
|
+
* @param object Represents the properties available for this MsgMint message.
|
|
125
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
126
|
+
*/
|
|
64
127
|
NFT.Mint = function (object) {
|
|
65
128
|
return {
|
|
66
129
|
typeUrl: "/coreum.asset.nft.v1.MsgMint",
|
|
67
130
|
value: NFTMsgMint.fromPartial(object),
|
|
68
131
|
};
|
|
69
132
|
};
|
|
133
|
+
/** MsgAddToWhitelist message creator
|
|
134
|
+
* Sets the account as whitelisted to hold the NFT
|
|
135
|
+
*
|
|
136
|
+
* @param object Represents the properties available for this MsgAddToWhitelist message.
|
|
137
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
138
|
+
*/
|
|
70
139
|
NFT.AddToWhitelist = function (object) {
|
|
71
140
|
return {
|
|
72
141
|
typeUrl: "/coreum.asset.nft.v1.MsgAddToWhitelist",
|
|
73
142
|
value: NFTMsgAddToWhitelist.fromPartial(object),
|
|
74
143
|
};
|
|
75
144
|
};
|
|
145
|
+
/** MsgRemoveFromWhitelist message creator
|
|
146
|
+
* Removes an account from whitelisted list of the NFT
|
|
147
|
+
*
|
|
148
|
+
* @param object Represents the properties available for this MsgRemoveFromWhitelist message.
|
|
149
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
150
|
+
*/
|
|
76
151
|
NFT.RemoveFromWhitelist = function (object) {
|
|
77
152
|
return {
|
|
78
153
|
typeUrl: "/coreum.asset.nft.v1.MsgRemoveFromWhitelist",
|
|
79
154
|
value: NFTMsgRemoveFromWhitelist.fromPartial(object),
|
|
80
155
|
};
|
|
81
156
|
};
|
|
157
|
+
/** MsgBurn message creator
|
|
158
|
+
* Burns the existing non-fungible token in the class.
|
|
159
|
+
*
|
|
160
|
+
* @param object Represents the properties available for this MsgBurn message.
|
|
161
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
162
|
+
*/
|
|
82
163
|
NFT.Burn = function (object) {
|
|
83
164
|
return {
|
|
84
165
|
typeUrl: "/coreum.asset.nft.v1.MsgBurn",
|
|
85
166
|
value: NFTMsgBurn.fromPartial(object),
|
|
86
167
|
};
|
|
87
168
|
};
|
|
169
|
+
/** MsgFreeze message creator
|
|
170
|
+
* Freezes an NFT
|
|
171
|
+
*
|
|
172
|
+
* @param object Represents the properties available for this MsgFreeze message.
|
|
173
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
174
|
+
*/
|
|
88
175
|
NFT.Freeze = function (object) {
|
|
89
176
|
return {
|
|
90
177
|
typeUrl: "/coreum.asset.nft.v1.MsgFreeze",
|
|
91
178
|
value: NFTMsgFreeze.fromPartial(object),
|
|
92
179
|
};
|
|
93
180
|
};
|
|
181
|
+
/** MsgUnfreeze message creator
|
|
182
|
+
* Removes the freeze effect already put on an NFT
|
|
183
|
+
*
|
|
184
|
+
* @param object Represents the properties available for this MsgUnfreeze message.
|
|
185
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
186
|
+
*/
|
|
94
187
|
NFT.Unfreeze = function (object) {
|
|
95
188
|
return {
|
|
96
189
|
typeUrl: "/coreum.asset.nft.v1.MsgUnfreeze",
|
|
97
190
|
value: NFTMsgUnfreeze.fromPartial(object),
|
|
98
191
|
};
|
|
99
192
|
};
|
|
193
|
+
/** MsgIssueClass message creator
|
|
194
|
+
* Creates new non-fungible token class.
|
|
195
|
+
*
|
|
196
|
+
* @param object Represents the properties available for this MsgIssueClass message.
|
|
197
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
198
|
+
*/
|
|
100
199
|
NFT.IssueClass = function (object) {
|
|
101
200
|
return {
|
|
102
201
|
typeUrl: "/coreum.asset.nft.v1.MsgIssueClass",
|
|
103
202
|
value: NFTMsgIssueClass.fromPartial(object),
|
|
104
203
|
};
|
|
105
204
|
};
|
|
205
|
+
/** MsgSend message creator
|
|
206
|
+
* Represents a message to send a nft from one account to another account.
|
|
207
|
+
*
|
|
208
|
+
* @param object Represents the properties available for this MsgSend message.
|
|
209
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
210
|
+
*/
|
|
106
211
|
NFT.Send = function (object) {
|
|
107
212
|
return {
|
|
108
213
|
typeUrl: "/coreum.nft.v1beta1.MsgSend",
|
|
@@ -110,4 +215,4 @@ export var NFT;
|
|
|
110
215
|
};
|
|
111
216
|
};
|
|
112
217
|
})(NFT || (NFT = {}));
|
|
113
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
218
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29yZXVtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUF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