coreum-js 2.6.8 → 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/client/index.d.ts +31 -1
- package/dist/main/client/index.js +101 -3
- 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/index.d.ts +1 -0
- package/dist/main/index.js +15 -2
- package/dist/main/types/msgs.d.ts +672 -0
- package/dist/main/types/msgs.js +3 -0
- package/dist/main/types/signing.d.ts +6 -1
- package/dist/main/types/signing.js +1 -1
- package/dist/main/utils/wallet.d.ts +2 -0
- package/dist/main/utils/wallet.js +18 -2
- package/dist/main/wasm/v1/index.d.ts +15 -266
- package/dist/main/wasm/v1/index.js +17 -2
- package/dist/module/client/index.d.ts +31 -1
- package/dist/module/client/index.js +104 -5
- 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/index.d.ts +1 -0
- package/dist/module/index.js +2 -1
- package/dist/module/types/msgs.d.ts +672 -0
- package/dist/module/types/msgs.js +2 -0
- package/dist/module/types/signing.d.ts +6 -1
- package/dist/module/types/signing.js +1 -1
- package/dist/module/utils/wallet.d.ts +2 -0
- package/dist/module/utils/wallet.js +16 -1
- package/dist/module/wasm/v1/index.d.ts +15 -266
- package/dist/module/wasm/v1/index.js +16 -1
- package/package.json +2 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OfflineDirectSigner } from "@cosmjs/proto-signing";
|
|
2
2
|
import { CoreumPrefixes } from "../types/coreum";
|
|
3
|
+
import { MultisigAccount } from "../types";
|
|
3
4
|
/**
|
|
4
5
|
*
|
|
5
6
|
* @param address String representing an address on the Coreum blockchain
|
|
@@ -13,3 +14,4 @@ export declare const isValidCoreumAddress: (address: string) => boolean;
|
|
|
13
14
|
* @returns A wallet with the default hdPath for the Coreum Blockchain, and with the selected prefix.
|
|
14
15
|
*/
|
|
15
16
|
export declare const generateWalletFromMnemonic: (mnemonic: string, prefix: CoreumPrefixes) => Promise<OfflineDirectSigner>;
|
|
17
|
+
export declare const generateMultisigFromPubkeys: (pubkeys: string[], threshold: number, prefix: string) => MultisigAccount;
|
|
@@ -2,6 +2,7 @@ import { DirectSecp256k1HdWallet, } from "@cosmjs/proto-signing";
|
|
|
2
2
|
import { stringToPath } from "@cosmjs/crypto";
|
|
3
3
|
import { bech32 } from "bech32";
|
|
4
4
|
import { CoreumPrefixes } from "../types/coreum";
|
|
5
|
+
import { createMultisigThresholdPubkey, pubkeyToAddress } from "@cosmjs/amino";
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
7
8
|
* @param address String representing an address on the Coreum blockchain
|
|
@@ -35,4 +36,18 @@ export const generateWalletFromMnemonic = async (mnemonic, prefix) => {
|
|
|
35
36
|
});
|
|
36
37
|
return wallet;
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
+
export const generateMultisigFromPubkeys = (pubkeys, threshold, prefix) => {
|
|
40
|
+
const secpPubkeys = pubkeys.map((p) => {
|
|
41
|
+
return {
|
|
42
|
+
type: "tendermint/PubKeySecp256k1",
|
|
43
|
+
value: p,
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
const multisigPubkey = createMultisigThresholdPubkey(secpPubkeys, threshold);
|
|
47
|
+
return {
|
|
48
|
+
pubkey: multisigPubkey,
|
|
49
|
+
address: pubkeyToAddress(multisigPubkey, prefix),
|
|
50
|
+
threshold,
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FsbGV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWxzL3dhbGxldC50cyJd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FBTSxHQUFHLE1BQU0sdUJBQXVCLENBQUMsWUFBWSxDQUFDLFFBQVEsRUFBRTtRQUNsRSxNQUFNO1FBQ04sT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0tBQ2hDLENBQUMsQ0FBQztJQUVILE9BQU8sTUFBTSxDQUFDO0FBQ2hCLENBQUMsQ0FBQztBQUVGLE1BQU0sQ0FBQyxNQUFNLDJCQUEyQixHQUFHLENBQ3pDLE9BQWlCLEVBQ2pCLFNBQWlCLEVBQ2pCLE1BQWMsRUFDRyxFQUFFO0lBQ25CLE1BQU0sV0FBVyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLEVBQUUsRUFBRTtRQUNwQyxPQUFPO1lBQ0wsSUFBSSxFQUFFLDRCQUE0QjtZQUNsQyxLQUFLLEVBQUUsQ0FBQztTQUNULENBQUM7SUFDSixDQUFDLENBQUMsQ0FBQztJQUVILE1BQU0sY0FBYyxHQUFHLDZCQUE2QixDQUFDLFdBQVcsRUFBRSxTQUFTLENBQUMsQ0FBQztJQUU3RSxPQUFPO1FBQ0wsTUFBTSxFQUFFLGNBQWM7UUFDdEIsT0FBTyxFQUFFLGVBQWUsQ0FBQyxjQUFjLEVBQUUsTUFBTSxDQUFDO1FBQ2hELFNBQVM7S0FDVixDQUFDO0FBQ0osQ0FBQyxDQUFDIn0=
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
1
2
|
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract } from "./tx";
|
|
3
|
+
export declare const cosmwasmRegistry: ReadonlyArray<[string, GeneratedType]>;
|
|
2
4
|
/**
|
|
3
5
|
* Transaction Module for the Smart Contracts Module (wasm)
|
|
4
6
|
*/
|
|
@@ -8,58 +10,7 @@ export declare namespace CosmWasm {
|
|
|
8
10
|
* @param object Represents the properties available for this MsgStoreAndInstantiateContract message.
|
|
9
11
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
10
12
|
*/
|
|
11
|
-
const StoreAndInstantiateContract:
|
|
12
|
-
authority?: string;
|
|
13
|
-
wasmByteCode?: Uint8Array;
|
|
14
|
-
instantiatePermission?: {
|
|
15
|
-
permission?: import("./types").AccessType;
|
|
16
|
-
address?: string;
|
|
17
|
-
addresses?: string[];
|
|
18
|
-
};
|
|
19
|
-
unpinCode?: boolean;
|
|
20
|
-
admin?: string;
|
|
21
|
-
label?: string;
|
|
22
|
-
msg?: Uint8Array;
|
|
23
|
-
funds?: {
|
|
24
|
-
denom?: string;
|
|
25
|
-
amount?: string;
|
|
26
|
-
}[];
|
|
27
|
-
source?: string;
|
|
28
|
-
builder?: string;
|
|
29
|
-
codeHash?: Uint8Array;
|
|
30
|
-
} & {
|
|
31
|
-
authority?: string;
|
|
32
|
-
wasmByteCode?: Uint8Array;
|
|
33
|
-
instantiatePermission?: {
|
|
34
|
-
permission?: import("./types").AccessType;
|
|
35
|
-
address?: string;
|
|
36
|
-
addresses?: string[];
|
|
37
|
-
} & {
|
|
38
|
-
permission?: import("./types").AccessType;
|
|
39
|
-
address?: string;
|
|
40
|
-
addresses?: string[] & string[] & { [K in Exclude<keyof I["instantiatePermission"]["addresses"], keyof string[]>]: never; };
|
|
41
|
-
} & { [K_1 in Exclude<keyof I["instantiatePermission"], keyof import("./types").AccessConfig>]: never; };
|
|
42
|
-
unpinCode?: boolean;
|
|
43
|
-
admin?: string;
|
|
44
|
-
label?: string;
|
|
45
|
-
msg?: Uint8Array;
|
|
46
|
-
funds?: {
|
|
47
|
-
denom?: string;
|
|
48
|
-
amount?: string;
|
|
49
|
-
}[] & ({
|
|
50
|
-
denom?: string;
|
|
51
|
-
amount?: string;
|
|
52
|
-
} & {
|
|
53
|
-
denom?: string;
|
|
54
|
-
amount?: string;
|
|
55
|
-
} & { [K_2 in Exclude<keyof I["funds"][number], keyof import("../../cosmos/base/v1beta1/coin").Coin>]: never; })[] & { [K_3 in Exclude<keyof I["funds"], keyof {
|
|
56
|
-
denom?: string;
|
|
57
|
-
amount?: string;
|
|
58
|
-
}[]>]: never; };
|
|
59
|
-
source?: string;
|
|
60
|
-
builder?: string;
|
|
61
|
-
codeHash?: Uint8Array;
|
|
62
|
-
} & { [K_4 in Exclude<keyof I, keyof MsgStoreAndInstantiateContract>]: never; }>(object: I) => {
|
|
13
|
+
const StoreAndInstantiateContract: (object: MsgStoreAndInstantiateContract) => {
|
|
63
14
|
typeUrl: string;
|
|
64
15
|
value: MsgStoreAndInstantiateContract;
|
|
65
16
|
};
|
|
@@ -68,13 +19,7 @@ export declare namespace CosmWasm {
|
|
|
68
19
|
* @param object Represents the properties available for this MsgUnpinCodes message.
|
|
69
20
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
70
21
|
*/
|
|
71
|
-
const UnpinCodes:
|
|
72
|
-
authority?: string;
|
|
73
|
-
codeIds?: number[];
|
|
74
|
-
} & {
|
|
75
|
-
authority?: string;
|
|
76
|
-
codeIds?: number[] & number[] & { [K in Exclude<keyof I["codeIds"], keyof number[]>]: never; };
|
|
77
|
-
} & { [K_1 in Exclude<keyof I, keyof MsgUnpinCodes>]: never; }>(object: I) => {
|
|
22
|
+
const UnpinCodes: (object: MsgUnpinCodes) => {
|
|
78
23
|
typeUrl: string;
|
|
79
24
|
value: MsgUnpinCodes;
|
|
80
25
|
};
|
|
@@ -83,13 +28,7 @@ export declare namespace CosmWasm {
|
|
|
83
28
|
* @param object Represents the properties available for this MsgPinCodes message.
|
|
84
29
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
85
30
|
*/
|
|
86
|
-
const PinCodes:
|
|
87
|
-
authority?: string;
|
|
88
|
-
codeIds?: number[];
|
|
89
|
-
} & {
|
|
90
|
-
authority?: string;
|
|
91
|
-
codeIds?: number[] & number[] & { [K in Exclude<keyof I["codeIds"], keyof number[]>]: never; };
|
|
92
|
-
} & { [K_1 in Exclude<keyof I, keyof MsgPinCodes>]: never; }>(object: I) => {
|
|
31
|
+
const PinCodes: (object: MsgPinCodes) => {
|
|
93
32
|
typeUrl: string;
|
|
94
33
|
value: MsgPinCodes;
|
|
95
34
|
};
|
|
@@ -98,15 +37,7 @@ export declare namespace CosmWasm {
|
|
|
98
37
|
* @param object Represents the properties available for this MsgSudoContract message.
|
|
99
38
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
100
39
|
*/
|
|
101
|
-
const SudoContract:
|
|
102
|
-
authority?: string;
|
|
103
|
-
contract?: string;
|
|
104
|
-
msg?: Uint8Array;
|
|
105
|
-
} & {
|
|
106
|
-
authority?: string;
|
|
107
|
-
contract?: string;
|
|
108
|
-
msg?: Uint8Array;
|
|
109
|
-
} & { [K in Exclude<keyof I, keyof MsgSudoContract>]: never; }>(object: I) => {
|
|
40
|
+
const SudoContract: (object: MsgSudoContract) => {
|
|
110
41
|
typeUrl: string;
|
|
111
42
|
value: MsgSudoContract;
|
|
112
43
|
};
|
|
@@ -115,38 +46,7 @@ export declare namespace CosmWasm {
|
|
|
115
46
|
* @param object Represents the properties available for this MsgUpdateParams message.
|
|
116
47
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
117
48
|
*/
|
|
118
|
-
const UpdateParams:
|
|
119
|
-
authority?: string;
|
|
120
|
-
params?: {
|
|
121
|
-
codeUploadAccess?: {
|
|
122
|
-
permission?: import("./types").AccessType;
|
|
123
|
-
address?: string;
|
|
124
|
-
addresses?: string[];
|
|
125
|
-
};
|
|
126
|
-
instantiateDefaultPermission?: import("./types").AccessType;
|
|
127
|
-
};
|
|
128
|
-
} & {
|
|
129
|
-
authority?: string;
|
|
130
|
-
params?: {
|
|
131
|
-
codeUploadAccess?: {
|
|
132
|
-
permission?: import("./types").AccessType;
|
|
133
|
-
address?: string;
|
|
134
|
-
addresses?: string[];
|
|
135
|
-
};
|
|
136
|
-
instantiateDefaultPermission?: import("./types").AccessType;
|
|
137
|
-
} & {
|
|
138
|
-
codeUploadAccess?: {
|
|
139
|
-
permission?: import("./types").AccessType;
|
|
140
|
-
address?: string;
|
|
141
|
-
addresses?: string[];
|
|
142
|
-
} & {
|
|
143
|
-
permission?: import("./types").AccessType;
|
|
144
|
-
address?: string;
|
|
145
|
-
addresses?: string[] & string[] & { [K in Exclude<keyof I["params"]["codeUploadAccess"]["addresses"], keyof string[]>]: never; };
|
|
146
|
-
} & { [K_1 in Exclude<keyof I["params"]["codeUploadAccess"], keyof import("./types").AccessConfig>]: never; };
|
|
147
|
-
instantiateDefaultPermission?: import("./types").AccessType;
|
|
148
|
-
} & { [K_2 in Exclude<keyof I["params"], keyof import("./types").Params>]: never; };
|
|
149
|
-
} & { [K_3 in Exclude<keyof I, keyof MsgUpdateParams>]: never; }>(object: I) => {
|
|
49
|
+
const UpdateParams: (object: MsgUpdateParams) => {
|
|
150
50
|
typeUrl: string;
|
|
151
51
|
value: MsgUpdateParams;
|
|
152
52
|
};
|
|
@@ -155,27 +55,7 @@ export declare namespace CosmWasm {
|
|
|
155
55
|
* @param object Represents the properties available for this MsgUpdateInstantiateConfig message.
|
|
156
56
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
157
57
|
*/
|
|
158
|
-
const UpdateInstantiateConfig:
|
|
159
|
-
sender?: string;
|
|
160
|
-
codeId?: number;
|
|
161
|
-
newInstantiatePermission?: {
|
|
162
|
-
permission?: import("./types").AccessType;
|
|
163
|
-
address?: string;
|
|
164
|
-
addresses?: string[];
|
|
165
|
-
};
|
|
166
|
-
} & {
|
|
167
|
-
sender?: string;
|
|
168
|
-
codeId?: number;
|
|
169
|
-
newInstantiatePermission?: {
|
|
170
|
-
permission?: import("./types").AccessType;
|
|
171
|
-
address?: string;
|
|
172
|
-
addresses?: string[];
|
|
173
|
-
} & {
|
|
174
|
-
permission?: import("./types").AccessType;
|
|
175
|
-
address?: string;
|
|
176
|
-
addresses?: string[] & string[] & { [K in Exclude<keyof I["newInstantiatePermission"]["addresses"], keyof string[]>]: never; };
|
|
177
|
-
} & { [K_1 in Exclude<keyof I["newInstantiatePermission"], keyof import("./types").AccessConfig>]: never; };
|
|
178
|
-
} & { [K_2 in Exclude<keyof I, keyof MsgUpdateInstantiateConfig>]: never; }>(object: I) => {
|
|
58
|
+
const UpdateInstantiateConfig: (object: MsgUpdateInstantiateConfig) => {
|
|
179
59
|
typeUrl: string;
|
|
180
60
|
value: MsgUpdateInstantiateConfig;
|
|
181
61
|
};
|
|
@@ -186,27 +66,7 @@ export declare namespace CosmWasm {
|
|
|
186
66
|
* @param object Represents the properties available for this MsgStoreCode message.
|
|
187
67
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
188
68
|
*/
|
|
189
|
-
const StoreCode:
|
|
190
|
-
sender?: string;
|
|
191
|
-
wasmByteCode?: Uint8Array;
|
|
192
|
-
instantiatePermission?: {
|
|
193
|
-
permission?: import("./types").AccessType;
|
|
194
|
-
address?: string;
|
|
195
|
-
addresses?: string[];
|
|
196
|
-
};
|
|
197
|
-
} & {
|
|
198
|
-
sender?: string;
|
|
199
|
-
wasmByteCode?: Uint8Array;
|
|
200
|
-
instantiatePermission?: {
|
|
201
|
-
permission?: import("./types").AccessType;
|
|
202
|
-
address?: string;
|
|
203
|
-
addresses?: string[];
|
|
204
|
-
} & {
|
|
205
|
-
permission?: import("./types").AccessType;
|
|
206
|
-
address?: string;
|
|
207
|
-
addresses?: string[] & string[] & { [K in Exclude<keyof I["instantiatePermission"]["addresses"], keyof string[]>]: never; };
|
|
208
|
-
} & { [K_1 in Exclude<keyof I["instantiatePermission"], keyof import("./types").AccessConfig>]: never; };
|
|
209
|
-
} & { [K_2 in Exclude<keyof I, keyof MsgStoreCode>]: never; }>(object: I) => {
|
|
69
|
+
const StoreCode: (object: MsgStoreCode) => {
|
|
210
70
|
typeUrl: string;
|
|
211
71
|
value: MsgStoreCode;
|
|
212
72
|
};
|
|
@@ -217,36 +77,7 @@ export declare namespace CosmWasm {
|
|
|
217
77
|
* @param object Represents the properties available for this MsgInstantiateContract message.
|
|
218
78
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
219
79
|
*/
|
|
220
|
-
const InstantiateContract:
|
|
221
|
-
sender?: string;
|
|
222
|
-
admin?: string;
|
|
223
|
-
codeId?: number;
|
|
224
|
-
label?: string;
|
|
225
|
-
msg?: Uint8Array;
|
|
226
|
-
funds?: {
|
|
227
|
-
denom?: string;
|
|
228
|
-
amount?: string;
|
|
229
|
-
}[];
|
|
230
|
-
} & {
|
|
231
|
-
sender?: string;
|
|
232
|
-
admin?: string;
|
|
233
|
-
codeId?: number;
|
|
234
|
-
label?: string;
|
|
235
|
-
msg?: Uint8Array;
|
|
236
|
-
funds?: {
|
|
237
|
-
denom?: string;
|
|
238
|
-
amount?: string;
|
|
239
|
-
}[] & ({
|
|
240
|
-
denom?: string;
|
|
241
|
-
amount?: string;
|
|
242
|
-
} & {
|
|
243
|
-
denom?: string;
|
|
244
|
-
amount?: string;
|
|
245
|
-
} & { [K in Exclude<keyof I["funds"][number], keyof import("../../cosmos/base/v1beta1/coin").Coin>]: never; })[] & { [K_1 in Exclude<keyof I["funds"], keyof {
|
|
246
|
-
denom?: string;
|
|
247
|
-
amount?: string;
|
|
248
|
-
}[]>]: never; };
|
|
249
|
-
} & { [K_2 in Exclude<keyof I, keyof MsgInstantiateContract>]: never; }>(object: I) => {
|
|
80
|
+
const InstantiateContract: (object: MsgInstantiateContract) => {
|
|
250
81
|
typeUrl: string;
|
|
251
82
|
value: MsgInstantiateContract;
|
|
252
83
|
};
|
|
@@ -256,40 +87,7 @@ export declare namespace CosmWasm {
|
|
|
256
87
|
* @param object Represents the properties available for this MsgInstantiateContract2 message.
|
|
257
88
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
258
89
|
*/
|
|
259
|
-
const InstantiateContract2:
|
|
260
|
-
sender?: string;
|
|
261
|
-
admin?: string;
|
|
262
|
-
codeId?: number;
|
|
263
|
-
label?: string;
|
|
264
|
-
msg?: Uint8Array;
|
|
265
|
-
funds?: {
|
|
266
|
-
denom?: string;
|
|
267
|
-
amount?: string;
|
|
268
|
-
}[];
|
|
269
|
-
salt?: Uint8Array;
|
|
270
|
-
fixMsg?: boolean;
|
|
271
|
-
} & {
|
|
272
|
-
sender?: string;
|
|
273
|
-
admin?: string;
|
|
274
|
-
codeId?: number;
|
|
275
|
-
label?: string;
|
|
276
|
-
msg?: Uint8Array;
|
|
277
|
-
funds?: {
|
|
278
|
-
denom?: string;
|
|
279
|
-
amount?: string;
|
|
280
|
-
}[] & ({
|
|
281
|
-
denom?: string;
|
|
282
|
-
amount?: string;
|
|
283
|
-
} & {
|
|
284
|
-
denom?: string;
|
|
285
|
-
amount?: string;
|
|
286
|
-
} & { [K in Exclude<keyof I["funds"][number], keyof import("../../cosmos/base/v1beta1/coin").Coin>]: never; })[] & { [K_1 in Exclude<keyof I["funds"], keyof {
|
|
287
|
-
denom?: string;
|
|
288
|
-
amount?: string;
|
|
289
|
-
}[]>]: never; };
|
|
290
|
-
salt?: Uint8Array;
|
|
291
|
-
fixMsg?: boolean;
|
|
292
|
-
} & { [K_2 in Exclude<keyof I, keyof MsgInstantiateContract2>]: never; }>(object: I) => {
|
|
90
|
+
const InstantiateContract2: (object: MsgInstantiateContract2) => {
|
|
293
91
|
typeUrl: string;
|
|
294
92
|
value: MsgInstantiateContract2;
|
|
295
93
|
};
|
|
@@ -299,13 +97,7 @@ export declare namespace CosmWasm {
|
|
|
299
97
|
* @param object Represents the properties available for this MsgClearAdmin message.
|
|
300
98
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
301
99
|
*/
|
|
302
|
-
const ClearAdmin:
|
|
303
|
-
sender?: string;
|
|
304
|
-
contract?: string;
|
|
305
|
-
} & {
|
|
306
|
-
sender?: string;
|
|
307
|
-
contract?: string;
|
|
308
|
-
} & { [K in Exclude<keyof I, keyof MsgClearAdmin>]: never; }>(object: I) => {
|
|
100
|
+
const ClearAdmin: (object: MsgClearAdmin) => {
|
|
309
101
|
typeUrl: string;
|
|
310
102
|
value: MsgClearAdmin;
|
|
311
103
|
};
|
|
@@ -315,15 +107,7 @@ export declare namespace CosmWasm {
|
|
|
315
107
|
* @param object Represents the properties available for this MsgUpdateAdmin message.
|
|
316
108
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
317
109
|
*/
|
|
318
|
-
const UpdateAdmin:
|
|
319
|
-
sender?: string;
|
|
320
|
-
newAdmin?: string;
|
|
321
|
-
contract?: string;
|
|
322
|
-
} & {
|
|
323
|
-
sender?: string;
|
|
324
|
-
newAdmin?: string;
|
|
325
|
-
contract?: string;
|
|
326
|
-
} & { [K in Exclude<keyof I, keyof MsgUpdateAdmin>]: never; }>(object: I) => {
|
|
110
|
+
const UpdateAdmin: (object: MsgUpdateAdmin) => {
|
|
327
111
|
typeUrl: string;
|
|
328
112
|
value: MsgUpdateAdmin;
|
|
329
113
|
};
|
|
@@ -333,32 +117,7 @@ export declare namespace CosmWasm {
|
|
|
333
117
|
* @param object Represents the properties available for this MsgExecuteContract message.
|
|
334
118
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
335
119
|
*/
|
|
336
|
-
const ExecuteContract:
|
|
337
|
-
sender?: string;
|
|
338
|
-
contract?: string;
|
|
339
|
-
msg?: Uint8Array;
|
|
340
|
-
funds?: {
|
|
341
|
-
denom?: string;
|
|
342
|
-
amount?: string;
|
|
343
|
-
}[];
|
|
344
|
-
} & {
|
|
345
|
-
sender?: string;
|
|
346
|
-
contract?: string;
|
|
347
|
-
msg?: Uint8Array;
|
|
348
|
-
funds?: {
|
|
349
|
-
denom?: string;
|
|
350
|
-
amount?: string;
|
|
351
|
-
}[] & ({
|
|
352
|
-
denom?: string;
|
|
353
|
-
amount?: string;
|
|
354
|
-
} & {
|
|
355
|
-
denom?: string;
|
|
356
|
-
amount?: string;
|
|
357
|
-
} & { [K in Exclude<keyof I["funds"][number], keyof import("../../cosmos/base/v1beta1/coin").Coin>]: never; })[] & { [K_1 in Exclude<keyof I["funds"], keyof {
|
|
358
|
-
denom?: string;
|
|
359
|
-
amount?: string;
|
|
360
|
-
}[]>]: never; };
|
|
361
|
-
} & { [K_2 in Exclude<keyof I, keyof MsgExecuteContract>]: never; }>(object: I) => {
|
|
120
|
+
const ExecuteContract: (object: MsgExecuteContract) => {
|
|
362
121
|
typeUrl: string;
|
|
363
122
|
value: MsgExecuteContract;
|
|
364
123
|
};
|
|
@@ -368,17 +127,7 @@ export declare namespace CosmWasm {
|
|
|
368
127
|
* @param object Represents the properties available for this MsgMigrateContract message.
|
|
369
128
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
370
129
|
*/
|
|
371
|
-
const MigrateContract:
|
|
372
|
-
sender?: string;
|
|
373
|
-
contract?: string;
|
|
374
|
-
codeId?: number;
|
|
375
|
-
msg?: Uint8Array;
|
|
376
|
-
} & {
|
|
377
|
-
sender?: string;
|
|
378
|
-
contract?: string;
|
|
379
|
-
codeId?: number;
|
|
380
|
-
msg?: Uint8Array;
|
|
381
|
-
} & { [K in Exclude<keyof I, keyof MsgMigrateContract>]: never; }>(object: I) => {
|
|
130
|
+
const MigrateContract: (object: MsgMigrateContract) => {
|
|
382
131
|
typeUrl: string;
|
|
383
132
|
value: MsgMigrateContract;
|
|
384
133
|
};
|
|
@@ -1,5 +1,20 @@
|
|
|
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
|
+
export const cosmwasmRegistry = [
|
|
4
|
+
[baseUrl + "MsgStoreAndInstantiateContract", MsgStoreAndInstantiateContract],
|
|
5
|
+
[baseUrl + "MsgUpdateParams", MsgUpdateParams],
|
|
6
|
+
[baseUrl + "MsgSudoContract", MsgSudoContract],
|
|
7
|
+
[baseUrl + "MsgUnpinCodes", MsgUnpinCodes],
|
|
8
|
+
[baseUrl + "MsgPinCodes", MsgPinCodes],
|
|
9
|
+
[baseUrl + "MsgStoreCode", MsgStoreCode],
|
|
10
|
+
[baseUrl + "MsgInstantiateContract", MsgInstantiateContract],
|
|
11
|
+
[baseUrl + "MsgInstantiateContract2", MsgInstantiateContract2],
|
|
12
|
+
[baseUrl + "MsgExecuteContract", MsgExecuteContract],
|
|
13
|
+
[baseUrl + "MsgMigrateContract", MsgMigrateContract],
|
|
14
|
+
[baseUrl + "MsgUpdateAdmin", MsgUpdateAdmin],
|
|
15
|
+
[baseUrl + "MsgClearAdmin", MsgClearAdmin],
|
|
16
|
+
[baseUrl + "MsgUpdateInstantiateConfig", MsgUpdateInstantiateConfig],
|
|
17
|
+
];
|
|
3
18
|
/**
|
|
4
19
|
* Transaction Module for the Smart Contracts Module (wasm)
|
|
5
20
|
*/
|
|
@@ -158,4 +173,4 @@ export var CosmWasm;
|
|
|
158
173
|
};
|
|
159
174
|
};
|
|
160
175
|
})(CosmWasm || (CosmWasm = {}));
|
|
161
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
176
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvd2FzbS92MS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQ0wsWUFBWSxFQUNaLHNCQUFzQixFQUN0Qix1QkFBdUIsRUFDdkIsa0JBQWtCLEVBQ2xCLGtCQUFrQixFQUNsQixjQUFjLEVBQ2QsYUFBYSxFQUNiLDBCQUEwQixFQUMxQixlQUFlLEVBQ2YsZUFBZSxFQUNmLFdBQVcsRUFDWC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FBVyxHQUFHLFVBQVUsTUFBc0I7UUFDekQsT0FBTztZQUNMLE9BQU8sRUFBRSxPQUFPLEdBQUcsZ0JBQWdCO1lBQ25DLEtBQUssRUFBRSxjQUFjLENBQUMsV0FBVyxDQUFDLE1BQU0sQ0FBQztTQUMxQyxDQUFDO0lBQ0osQ0FBQyxDQUFDO0lBRUY7Ozs7O09BS0c7SUFDVSx3QkFBZSxHQUFHLFVBQVUsTUFBMEI7UUFDakUsT0FBTztZQUNMLE9BQU8sRUFBRSxPQUFPLEdBQUcsb0JBQW9CO1lBQ3ZDLEtBQUssRUFBRSxrQkFBa0IsQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDO1NBQzlDLENBQUM7SUFDSixDQUFDLENBQUM7SUFFRjs7Ozs7T0FLRztJQUNVLHdCQUFlLEdBQUcsVUFBVSxNQUEwQjtRQUNqRSxPQUFPO1lBQ0wsT0FBTyxFQUFFLE9BQU8sR0FBRyxvQkFBb0I7WUFDdkMsS0FBSyxFQUFFLGtCQUFrQixDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUM7U0FDOUMsQ0FBQztJQUNKLENBQUMsQ0FBQztBQUNKLENBQUMsRUEzS2dCLFFBQVEsS0FBUixRQUFRLFFBMkt4QiJ9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coreum-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
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",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@cosmjs/amino": "^0.30.1",
|
|
28
28
|
"@cosmjs/cosmwasm-stargate": "^0.30.1",
|
|
29
29
|
"@cosmjs/crypto": "^0.30.1",
|
|
30
|
+
"@cosmjs/encoding": "^0.30.1",
|
|
30
31
|
"@cosmjs/math": "^0.30.1",
|
|
31
32
|
"@cosmjs/proto-signing": "^0.30.1",
|
|
32
33
|
"@cosmjs/stargate": "^0.30.1",
|