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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
2
|
* @param events Subscription events
|
|
4
3
|
* @returns A well-defined object showcasing all the events of a subscription
|
|
5
4
|
*/
|
|
@@ -20,4 +19,4 @@ export const parseSubscriptionEvents = (events) => {
|
|
|
20
19
|
});
|
|
21
20
|
return parsedEvents;
|
|
22
21
|
};
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUE7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sdUJBQXVCLEdBQUcsQ0FBQyxNQUEwQixFQUFFLEVBQUU7SUFDcEUsSUFBSSxZQUFZLEdBQVEsRUFBRSxDQUFDO0lBRTNCLE1BQU0sQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsS0FBSyxFQUFFLEVBQUU7UUFDbkMsTUFBTSxDQUFDLEdBQUcsRUFBRSxLQUFLLENBQUMsR0FBRyxLQUFLLENBQUM7UUFFM0IsTUFBTSxRQUFRLEdBQWEsR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUMxQyxNQUFNLElBQUksR0FBRyxRQUFRLENBQUMsR0FBRyxFQUFZLENBQUM7UUFDdEMsTUFBTSxRQUFRLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUVwQyxZQUFZLENBQUMsUUFBUSxDQUFDLEdBQUcsWUFBWSxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUV0RCxJQUFJO1lBQ0YsWUFBWSxDQUFDLFFBQVEsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDckQ7UUFBQyxPQUFPLENBQUMsRUFBRTtZQUNWLFlBQVksQ0FBQyxRQUFRLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDekM7SUFDSCxDQUFDLENBQUMsQ0FBQztJQUVILE9BQU8sWUFBWSxDQUFDO0FBQ3RCLENBQUMsQ0FBQyJ9
|
package/dist/module/utils/ft.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Feature } from "../coreum/asset/ft/v1/token";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
3
|
* @param features An array of Feature.
|
|
5
4
|
* @returns An object defining which features are enabled/disabled with boolean
|
|
6
5
|
*/
|
|
@@ -12,4 +11,4 @@ export const parseTokenFeatures = (features) => {
|
|
|
12
11
|
whitelisting: features.includes(Feature["whitelisting"]),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvZnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBRXREOzs7R0FHRztBQUNILE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFHLENBQUMsUUFBbUIsRUFBRSxFQUFFO0lBQ3hELE9BQU87UUFDTCxPQUFPLEVBQUUsUUFBUSxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDOUMsUUFBUSxFQUFFLFFBQVEsQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ2hELE9BQU8sRUFBRSxRQUFRLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUM5QyxZQUFZLEVBQUUsUUFBUSxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUM7S0FDekQsQ0FBQztBQUNKLENBQUMsQ0FBQyJ9
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract } from "./tx";
|
|
2
|
+
/**
|
|
3
|
+
* Transaction Module for the Smart Contracts Module (wasm)
|
|
4
|
+
*/
|
|
2
5
|
export declare namespace CosmWasm {
|
|
6
|
+
/** MsgStoreAndInstantiateContract message creator
|
|
7
|
+
*
|
|
8
|
+
* @param object Represents the properties available for this MsgStoreAndInstantiateContract message.
|
|
9
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
10
|
+
*/
|
|
3
11
|
const StoreAndInstantiateContract: <I extends {
|
|
4
12
|
authority?: string;
|
|
5
13
|
wasmByteCode?: Uint8Array;
|
|
@@ -55,6 +63,11 @@ export declare namespace CosmWasm {
|
|
|
55
63
|
typeUrl: string;
|
|
56
64
|
value: MsgStoreAndInstantiateContract;
|
|
57
65
|
};
|
|
66
|
+
/** MsgUnpinCodes message creator
|
|
67
|
+
*
|
|
68
|
+
* @param object Represents the properties available for this MsgUnpinCodes message.
|
|
69
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
70
|
+
*/
|
|
58
71
|
const UnpinCodes: <I extends {
|
|
59
72
|
authority?: string;
|
|
60
73
|
codeIds?: number[];
|
|
@@ -65,6 +78,11 @@ export declare namespace CosmWasm {
|
|
|
65
78
|
typeUrl: string;
|
|
66
79
|
value: MsgUnpinCodes;
|
|
67
80
|
};
|
|
81
|
+
/** MsgPinCodes message creator
|
|
82
|
+
*
|
|
83
|
+
* @param object Represents the properties available for this MsgPinCodes message.
|
|
84
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
85
|
+
*/
|
|
68
86
|
const PinCodes: <I extends {
|
|
69
87
|
authority?: string;
|
|
70
88
|
codeIds?: number[];
|
|
@@ -75,6 +93,11 @@ export declare namespace CosmWasm {
|
|
|
75
93
|
typeUrl: string;
|
|
76
94
|
value: MsgPinCodes;
|
|
77
95
|
};
|
|
96
|
+
/** MsgSudoContract message creator
|
|
97
|
+
*
|
|
98
|
+
* @param object Represents the properties available for this MsgSudoContract message.
|
|
99
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
100
|
+
*/
|
|
78
101
|
const SudoContract: <I extends {
|
|
79
102
|
authority?: string;
|
|
80
103
|
contract?: string;
|
|
@@ -87,6 +110,11 @@ export declare namespace CosmWasm {
|
|
|
87
110
|
typeUrl: string;
|
|
88
111
|
value: MsgSudoContract;
|
|
89
112
|
};
|
|
113
|
+
/** MsgUpdateParams message creator
|
|
114
|
+
*
|
|
115
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
116
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
117
|
+
*/
|
|
90
118
|
const UpdateParams: <I extends {
|
|
91
119
|
authority?: string;
|
|
92
120
|
params?: {
|
|
@@ -122,6 +150,11 @@ export declare namespace CosmWasm {
|
|
|
122
150
|
typeUrl: string;
|
|
123
151
|
value: MsgUpdateParams;
|
|
124
152
|
};
|
|
153
|
+
/** MsgUpdateInstantiateConfig message creator
|
|
154
|
+
*
|
|
155
|
+
* @param object Represents the properties available for this MsgUpdateInstantiateConfig message.
|
|
156
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
157
|
+
*/
|
|
125
158
|
const UpdateInstantiateConfig: <I extends {
|
|
126
159
|
sender?: string;
|
|
127
160
|
codeId?: number;
|
|
@@ -146,6 +179,13 @@ export declare namespace CosmWasm {
|
|
|
146
179
|
typeUrl: string;
|
|
147
180
|
value: MsgUpdateInstantiateConfig;
|
|
148
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* MsgStoreCode message creator
|
|
184
|
+
* Submit Wasm code to the system
|
|
185
|
+
*
|
|
186
|
+
* @param object Represents the properties available for this MsgStoreCode message.
|
|
187
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
188
|
+
*/
|
|
149
189
|
const StoreCode: <I extends {
|
|
150
190
|
sender?: string;
|
|
151
191
|
wasmByteCode?: Uint8Array;
|
|
@@ -170,6 +210,13 @@ export declare namespace CosmWasm {
|
|
|
170
210
|
typeUrl: string;
|
|
171
211
|
value: MsgStoreCode;
|
|
172
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
* MsgInstantiateContract message creator
|
|
215
|
+
* Creates a new smart contract instance for the given code id.
|
|
216
|
+
*
|
|
217
|
+
* @param object Represents the properties available for this MsgInstantiateContract message.
|
|
218
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
219
|
+
*/
|
|
173
220
|
const InstantiateContract: <I extends {
|
|
174
221
|
sender?: string;
|
|
175
222
|
admin?: string;
|
|
@@ -203,6 +250,12 @@ export declare namespace CosmWasm {
|
|
|
203
250
|
typeUrl: string;
|
|
204
251
|
value: MsgInstantiateContract;
|
|
205
252
|
};
|
|
253
|
+
/** MsgInstantiateContract2 message creator
|
|
254
|
+
* Creates a new smart contract instance for the given code id with a predictable address
|
|
255
|
+
*
|
|
256
|
+
* @param object Represents the properties available for this MsgInstantiateContract2 message.
|
|
257
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
258
|
+
*/
|
|
206
259
|
const InstantiateContract2: <I extends {
|
|
207
260
|
sender?: string;
|
|
208
261
|
admin?: string;
|
|
@@ -240,6 +293,12 @@ export declare namespace CosmWasm {
|
|
|
240
293
|
typeUrl: string;
|
|
241
294
|
value: MsgInstantiateContract2;
|
|
242
295
|
};
|
|
296
|
+
/** MsgClearAdmin message creator
|
|
297
|
+
* Removes any admin stored for a smart contract
|
|
298
|
+
*
|
|
299
|
+
* @param object Represents the properties available for this MsgClearAdmin message.
|
|
300
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
301
|
+
*/
|
|
243
302
|
const ClearAdmin: <I extends {
|
|
244
303
|
sender?: string;
|
|
245
304
|
contract?: string;
|
|
@@ -250,6 +309,12 @@ export declare namespace CosmWasm {
|
|
|
250
309
|
typeUrl: string;
|
|
251
310
|
value: MsgClearAdmin;
|
|
252
311
|
};
|
|
312
|
+
/** MsgUpdateAdmin message creator
|
|
313
|
+
* Sets a new admin for a smart contract
|
|
314
|
+
*
|
|
315
|
+
* @param object Represents the properties available for this MsgUpdateAdmin message.
|
|
316
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
317
|
+
*/
|
|
253
318
|
const UpdateAdmin: <I extends {
|
|
254
319
|
sender?: string;
|
|
255
320
|
newAdmin?: string;
|
|
@@ -262,6 +327,12 @@ export declare namespace CosmWasm {
|
|
|
262
327
|
typeUrl: string;
|
|
263
328
|
value: MsgUpdateAdmin;
|
|
264
329
|
};
|
|
330
|
+
/** MsgExecuteContract message creator
|
|
331
|
+
* Submits the given message data to a smart contract
|
|
332
|
+
*
|
|
333
|
+
* @param object Represents the properties available for this MsgExecuteContract message.
|
|
334
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
335
|
+
*/
|
|
265
336
|
const ExecuteContract: <I extends {
|
|
266
337
|
sender?: string;
|
|
267
338
|
contract?: string;
|
|
@@ -291,6 +362,12 @@ export declare namespace CosmWasm {
|
|
|
291
362
|
typeUrl: string;
|
|
292
363
|
value: MsgExecuteContract;
|
|
293
364
|
};
|
|
365
|
+
/** MsgMigrateContract message creator
|
|
366
|
+
* Runs a code upgrade/ downgrade for a smart contract
|
|
367
|
+
*
|
|
368
|
+
* @param object Represents the properties available for this MsgMigrateContract message.
|
|
369
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
370
|
+
*/
|
|
294
371
|
const MigrateContract: <I extends {
|
|
295
372
|
sender?: string;
|
|
296
373
|
contract?: string;
|
|
@@ -1,79 +1,156 @@
|
|
|
1
1
|
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract, } from "./tx";
|
|
2
2
|
const baseUrl = "/cosmwasm.wasm.v1.";
|
|
3
|
+
/**
|
|
4
|
+
* Transaction Module for the Smart Contracts Module (wasm)
|
|
5
|
+
*/
|
|
3
6
|
export var CosmWasm;
|
|
4
7
|
(function (CosmWasm) {
|
|
8
|
+
/** MsgStoreAndInstantiateContract message creator
|
|
9
|
+
*
|
|
10
|
+
* @param object Represents the properties available for this MsgStoreAndInstantiateContract message.
|
|
11
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
12
|
+
*/
|
|
5
13
|
CosmWasm.StoreAndInstantiateContract = function (object) {
|
|
6
14
|
return {
|
|
7
15
|
typeUrl: baseUrl + "MsgStoreAndInstantiateContract",
|
|
8
16
|
value: MsgStoreAndInstantiateContract.fromPartial(object),
|
|
9
17
|
};
|
|
10
18
|
};
|
|
19
|
+
/** MsgUnpinCodes message creator
|
|
20
|
+
*
|
|
21
|
+
* @param object Represents the properties available for this MsgUnpinCodes message.
|
|
22
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
23
|
+
*/
|
|
11
24
|
CosmWasm.UnpinCodes = function (object) {
|
|
12
25
|
return {
|
|
13
26
|
typeUrl: baseUrl + "MsgUnpinCodes",
|
|
14
27
|
value: MsgUnpinCodes.fromPartial(object),
|
|
15
28
|
};
|
|
16
29
|
};
|
|
30
|
+
/** MsgPinCodes message creator
|
|
31
|
+
*
|
|
32
|
+
* @param object Represents the properties available for this MsgPinCodes message.
|
|
33
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
34
|
+
*/
|
|
17
35
|
CosmWasm.PinCodes = function (object) {
|
|
18
36
|
return {
|
|
19
37
|
typeUrl: baseUrl + "MsgPinCodes",
|
|
20
38
|
value: MsgPinCodes.fromPartial(object),
|
|
21
39
|
};
|
|
22
40
|
};
|
|
41
|
+
/** MsgSudoContract message creator
|
|
42
|
+
*
|
|
43
|
+
* @param object Represents the properties available for this MsgSudoContract message.
|
|
44
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
45
|
+
*/
|
|
23
46
|
CosmWasm.SudoContract = function (object) {
|
|
24
47
|
return {
|
|
25
48
|
typeUrl: baseUrl + "MsgSudoContract",
|
|
26
49
|
value: MsgSudoContract.fromPartial(object),
|
|
27
50
|
};
|
|
28
51
|
};
|
|
52
|
+
/** MsgUpdateParams message creator
|
|
53
|
+
*
|
|
54
|
+
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
55
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
56
|
+
*/
|
|
29
57
|
CosmWasm.UpdateParams = function (object) {
|
|
30
58
|
return {
|
|
31
59
|
typeUrl: baseUrl + "MsgUpdateParams",
|
|
32
60
|
value: MsgUpdateParams.fromPartial(object),
|
|
33
61
|
};
|
|
34
62
|
};
|
|
63
|
+
/** MsgUpdateInstantiateConfig message creator
|
|
64
|
+
*
|
|
65
|
+
* @param object Represents the properties available for this MsgUpdateInstantiateConfig message.
|
|
66
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
67
|
+
*/
|
|
35
68
|
CosmWasm.UpdateInstantiateConfig = function (object) {
|
|
36
69
|
return {
|
|
37
70
|
typeUrl: baseUrl + "MsgUpdateInstantiateConfig",
|
|
38
71
|
value: MsgUpdateInstantiateConfig.fromPartial(object),
|
|
39
72
|
};
|
|
40
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* MsgStoreCode message creator
|
|
76
|
+
* Submit Wasm code to the system
|
|
77
|
+
*
|
|
78
|
+
* @param object Represents the properties available for this MsgStoreCode message.
|
|
79
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
80
|
+
*/
|
|
41
81
|
CosmWasm.StoreCode = function (object) {
|
|
42
82
|
return {
|
|
43
83
|
typeUrl: baseUrl + "MsgStoreCode",
|
|
44
84
|
value: MsgStoreCode.fromPartial(object),
|
|
45
85
|
};
|
|
46
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* MsgInstantiateContract message creator
|
|
89
|
+
* Creates a new smart contract instance for the given code id.
|
|
90
|
+
*
|
|
91
|
+
* @param object Represents the properties available for this MsgInstantiateContract message.
|
|
92
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
93
|
+
*/
|
|
47
94
|
CosmWasm.InstantiateContract = function (object) {
|
|
48
95
|
return {
|
|
49
96
|
typeUrl: baseUrl + "MsgInstantiateContract",
|
|
50
97
|
value: MsgInstantiateContract.fromPartial(object),
|
|
51
98
|
};
|
|
52
99
|
};
|
|
100
|
+
/** MsgInstantiateContract2 message creator
|
|
101
|
+
* Creates a new smart contract instance for the given code id with a predictable address
|
|
102
|
+
*
|
|
103
|
+
* @param object Represents the properties available for this MsgInstantiateContract2 message.
|
|
104
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
105
|
+
*/
|
|
53
106
|
CosmWasm.InstantiateContract2 = function (object) {
|
|
54
107
|
return {
|
|
55
108
|
typeUrl: baseUrl + "MsgInstantiateContract2",
|
|
56
109
|
value: MsgInstantiateContract2.fromPartial(object),
|
|
57
110
|
};
|
|
58
111
|
};
|
|
112
|
+
/** MsgClearAdmin message creator
|
|
113
|
+
* Removes any admin stored for a smart contract
|
|
114
|
+
*
|
|
115
|
+
* @param object Represents the properties available for this MsgClearAdmin message.
|
|
116
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
117
|
+
*/
|
|
59
118
|
CosmWasm.ClearAdmin = function (object) {
|
|
60
119
|
return {
|
|
61
120
|
typeUrl: baseUrl + "MsgClearAdmin",
|
|
62
121
|
value: MsgClearAdmin.fromPartial(object),
|
|
63
122
|
};
|
|
64
123
|
};
|
|
124
|
+
/** MsgUpdateAdmin message creator
|
|
125
|
+
* Sets a new admin for a smart contract
|
|
126
|
+
*
|
|
127
|
+
* @param object Represents the properties available for this MsgUpdateAdmin message.
|
|
128
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
129
|
+
*/
|
|
65
130
|
CosmWasm.UpdateAdmin = function (object) {
|
|
66
131
|
return {
|
|
67
132
|
typeUrl: baseUrl + "MsgUpdateAdmin",
|
|
68
133
|
value: MsgUpdateAdmin.fromPartial(object),
|
|
69
134
|
};
|
|
70
135
|
};
|
|
136
|
+
/** MsgExecuteContract message creator
|
|
137
|
+
* Submits the given message data to a smart contract
|
|
138
|
+
*
|
|
139
|
+
* @param object Represents the properties available for this MsgExecuteContract message.
|
|
140
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
141
|
+
*/
|
|
71
142
|
CosmWasm.ExecuteContract = function (object) {
|
|
72
143
|
return {
|
|
73
144
|
typeUrl: baseUrl + "MsgExecuteContract",
|
|
74
145
|
value: MsgExecuteContract.fromPartial(object),
|
|
75
146
|
};
|
|
76
147
|
};
|
|
148
|
+
/** MsgMigrateContract message creator
|
|
149
|
+
* Runs a code upgrade/ downgrade for a smart contract
|
|
150
|
+
*
|
|
151
|
+
* @param object Represents the properties available for this MsgMigrateContract message.
|
|
152
|
+
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
153
|
+
*/
|
|
77
154
|
CosmWasm.MigrateContract = function (object) {
|
|
78
155
|
return {
|
|
79
156
|
typeUrl: baseUrl + "MsgMigrateContract",
|
|
@@ -81,4 +158,4 @@ export var CosmWasm;
|
|
|
81
158
|
};
|
|
82
159
|
};
|
|
83
160
|
})(CosmWasm || (CosmWasm = {}));
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
161
|
+
//# sourceM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ZDLEtBQUssRUFBRSxrQkFBa0IsQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDO1NBQzlDLENBQUM7SUFDSixDQUFDLENBQUM7QUFDSixDQUFDLEVBL0xnQixRQUFRLEtBQVIsUUFBUSxRQStMeEIifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coreum-js",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.6",
|
|
4
4
|
"description": "JS/TS Library to to easily make use of the Coreum Blockchain",
|
|
5
5
|
"main": "dist/main/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"build:version": "npm run build && standard-version && git add -A",
|
|
11
11
|
"build:main": "npx tsc -p tsconfig.json",
|
|
12
12
|
"build:module": "npx tsc -p tsconfig.module.json",
|
|
13
|
-
"generate:docs": "npx typedoc --
|
|
13
|
+
"generate:docs": "npx typedoc --excludeInternal src/index.ts"
|
|
14
14
|
},
|
|
15
15
|
"pre-commit": [
|
|
16
16
|
"build:version"
|