@locuschain/lib 0.2.5 → 0.2.7
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/dist/accounts/index.amd.js +1 -1
- package/dist/accounts/index.cjs.cjs +1 -1
- package/dist/accounts/index.esm.js +1 -1
- package/dist/autogen/actions/public/calculateAvailableByForward.d.cts +4 -0
- package/dist/autogen/actions/public/calculateAvailableByForward.d.mts +4 -0
- package/dist/autogen/actions/public/calculateAvailableByForwardList.d.cts +4 -0
- package/dist/autogen/actions/public/calculateAvailableByForwardList.d.mts +4 -0
- package/dist/autogen/actions/public/getHoldTxDir.d.cts +3 -0
- package/dist/autogen/actions/public/getHoldTxDir.d.mts +3 -0
- package/dist/autogen/actions/public/getHoldTxFlushSeq.d.cts +3 -0
- package/dist/autogen/actions/public/getHoldTxFlushSeq.d.mts +3 -0
- package/dist/autogen/actions/public/getLaunchCommand.d.cts +3 -0
- package/dist/autogen/actions/public/getLaunchCommand.d.mts +3 -0
- package/dist/autogen/actions/public/getNodeVersion.d.cts +3 -0
- package/dist/autogen/actions/public/getNodeVersion.d.mts +3 -0
- package/dist/autogen/actions/public/index.d.cts +9 -2
- package/dist/autogen/actions/public/index.d.mts +9 -2
- package/dist/autogen/actions/public/shutdown.d.cts +3 -0
- package/dist/autogen/actions/public/shutdown.d.mts +3 -0
- package/dist/autogen/actions/public/upliftProofW.d.cts +4 -0
- package/dist/autogen/actions/public/upliftProofW.d.mts +4 -0
- package/dist/autogen/actions/public/verifyProofW.d.cts +3 -0
- package/dist/autogen/actions/public/verifyProofW.d.mts +3 -0
- package/dist/autogen/index.amd.js +13 -3
- package/dist/autogen/index.cjs.cjs +14 -4
- package/dist/autogen/index.esm.js +3 -3
- package/dist/autogen/publicActions.d.cts +13 -4
- package/dist/autogen/publicActions.d.mts +13 -4
- package/dist/autogen/rpc-api-spec.d.cts +21 -6
- package/dist/autogen/rpc-api-spec.d.mts +21 -6
- package/dist/autogen/types/common/{forward-spent-item.d.cts → forward-available-item.d.cts} +1 -1
- package/dist/autogen/types/common/{forward-spent-item.d.mts → forward-available-item.d.mts} +1 -1
- package/dist/autogen/types/common/index.d.cts +1 -1
- package/dist/autogen/types/common/index.d.mts +1 -1
- package/dist/autogen/types/rpc/index.d.cts +12 -4
- package/dist/autogen/types/rpc/index.d.mts +12 -4
- package/dist/autogen/types/rpc/params-calculate-available-by-forward-list.d.cts +3 -0
- package/dist/autogen/types/rpc/params-calculate-available-by-forward-list.d.mts +3 -0
- package/dist/autogen/types/rpc/{params-calculate-spent-by-forward.d.cts → params-calculate-available-by-forward.d.cts} +1 -1
- package/dist/autogen/types/rpc/{params-calculate-spent-by-forward.d.mts → params-calculate-available-by-forward.d.mts} +1 -1
- package/dist/autogen/types/rpc/params-uplift-proof-w.d.cts +6 -0
- package/dist/autogen/types/rpc/params-uplift-proof-w.d.mts +6 -0
- package/dist/autogen/types/rpc/params-verify-proof-w.d.cts +6 -0
- package/dist/autogen/types/rpc/params-verify-proof-w.d.mts +6 -0
- package/dist/autogen/types/rpc/rpc-calculate-available-by-forward-list-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-calculate-available-by-forward-list-result.d.mts +4 -0
- package/dist/autogen/types/rpc/{rpc-calculate-spent-by-forward-result.d.cts → rpc-calculate-available-by-forward-result.d.cts} +1 -1
- package/dist/autogen/types/rpc/{rpc-calculate-spent-by-forward-result.d.mts → rpc-calculate-available-by-forward-result.d.mts} +1 -1
- package/dist/autogen/types/rpc/rpc-get-hold-tx-dir-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-hold-tx-dir-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-hold-tx-flush-seq-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-get-hold-tx-flush-seq-result.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-get-launch-command-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-get-launch-command-result.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-get-node-status-result.d.cts +1 -0
- package/dist/autogen/types/rpc/rpc-get-node-status-result.d.mts +1 -0
- package/dist/autogen/types/rpc/rpc-get-node-version-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-node-version-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-proof-wresult.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-proof-wresult.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-shutdown-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-shutdown-result.d.mts +3 -0
- package/dist/autogen/wasm/lclib.wasm +0 -0
- package/dist/autogen/wasm.d.cts +3 -0
- package/dist/autogen/wasm.d.mts +3 -0
- package/dist/chunks/{debugWalletActions-D3FUuxE6.js → debugWalletActions-BYqoNvYZ.js} +71 -8
- package/dist/chunks/{debugWalletActions-A_93DKNp.js → debugWalletActions-DNB4coHM.js} +63 -7
- package/dist/chunks/{debugWalletActions-DTcup4BP.cjs → debugWalletActions-WhGBP-BW.cjs} +71 -8
- package/dist/chunks/{keystore-B86UzV8A.js → keystore-BPU22XT-.js} +1 -1
- package/dist/chunks/{keystore-BUskzeOs.cjs → keystore-DS8JZhXs.cjs} +1 -1
- package/dist/chunks/{keystore-y1JlFTKh.js → keystore-JnuLzkLn.js} +1 -1
- package/dist/chunks/{wasm-CLXJDrJA.js → wasm-CU215LGW.js} +10 -1
- package/dist/chunks/{wasm-BYOKRR31.cjs → wasm-dbtq7eri.cjs} +12 -0
- package/dist/chunks/{wasm-CkFW222S.js → wasm-gROtmFm6.js} +12 -0
- package/dist/clients/createLocusPublicClient.d.cts +9 -2
- package/dist/clients/createLocusPublicClient.d.mts +9 -2
- package/dist/clients/index.amd.js +1 -1
- package/dist/clients/index.cjs.cjs +1 -1
- package/dist/clients/index.esm.js +1 -1
- package/dist/contracts/index.amd.js +1 -1
- package/dist/contracts/index.cjs.cjs +1 -1
- package/dist/contracts/index.esm.js +1 -1
- package/dist/index.amd.js +1 -1
- package/dist/index.cjs.cjs +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/utils/index.amd.js +4 -1
- package/dist/utils/index.cjs.cjs +5 -2
- package/dist/utils/index.esm.js +3 -3
- package/package.json +1 -1
- package/dist/autogen/actions/public/calculateSpentByForward.d.cts +0 -4
- package/dist/autogen/actions/public/calculateSpentByForward.d.mts +0 -4
- package/dist/autogen/actions/public/calculateSpentByForwardList.d.cts +0 -4
- package/dist/autogen/actions/public/calculateSpentByForwardList.d.mts +0 -4
- package/dist/autogen/types/rpc/params-calculate-spent-by-forward-list.d.cts +0 -3
- package/dist/autogen/types/rpc/params-calculate-spent-by-forward-list.d.mts +0 -3
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-list-result.d.cts +0 -4
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-list-result.d.mts +0 -4
|
@@ -15,16 +15,16 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
// Automatically generated file. DO NOT EDIT.
|
|
18
|
-
function
|
|
18
|
+
function calculateAvailableByForward(client, param) {
|
|
19
19
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
return client.request({ method: '
|
|
20
|
+
return client.request({ method: 'locus_calculateAvailableByForward', params: [param] });
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// Automatically generated file. DO NOT EDIT.
|
|
25
|
-
function
|
|
25
|
+
function calculateAvailableByForwardList(client, param) {
|
|
26
26
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
return client.request({ method: '
|
|
27
|
+
return client.request({ method: 'locus_calculateAvailableByForwardList', params: [param] });
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -112,6 +112,20 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
// Automatically generated file. DO NOT EDIT.
|
|
116
|
+
function getHoldTxDir(client) {
|
|
117
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return client.request({ method: 'locus_getHoldTxDir', params: [] });
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Automatically generated file. DO NOT EDIT.
|
|
123
|
+
function getHoldTxFlushSeq(client) {
|
|
124
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
return client.request({ method: 'locus_getHoldTxFlushSeq', params: [] });
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
115
129
|
// Automatically generated file. DO NOT EDIT.
|
|
116
130
|
function getIdentityProof(client, param) {
|
|
117
131
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -126,6 +140,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
126
140
|
});
|
|
127
141
|
}
|
|
128
142
|
|
|
143
|
+
// Automatically generated file. DO NOT EDIT.
|
|
144
|
+
function getLaunchCommand(client) {
|
|
145
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
return client.request({ method: 'locus_getLaunchCommand', params: [] });
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
129
150
|
// Automatically generated file. DO NOT EDIT.
|
|
130
151
|
function getMontInfoList(client, param) {
|
|
131
152
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -140,6 +161,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
140
161
|
});
|
|
141
162
|
}
|
|
142
163
|
|
|
164
|
+
// Automatically generated file. DO NOT EDIT.
|
|
165
|
+
function getNodeVersion(client) {
|
|
166
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
return client.request({ method: 'locus_getNodeVersion', params: [] });
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
143
171
|
// Automatically generated file. DO NOT EDIT.
|
|
144
172
|
function getOwnerBalance(client) {
|
|
145
173
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -231,6 +259,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
231
259
|
});
|
|
232
260
|
}
|
|
233
261
|
|
|
262
|
+
// Automatically generated file. DO NOT EDIT.
|
|
263
|
+
function shutdown(client) {
|
|
264
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
return client.request({ method: 'locus_shutdown', params: [] });
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
234
269
|
// Automatically generated file. DO NOT EDIT.
|
|
235
270
|
function subscribeAddress(client, params) {
|
|
236
271
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -238,6 +273,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
238
273
|
});
|
|
239
274
|
}
|
|
240
275
|
|
|
276
|
+
// Automatically generated file. DO NOT EDIT.
|
|
277
|
+
function upliftProofW(client, params) {
|
|
278
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
return client.request({ method: 'locus_upliftProofW', params: [params] });
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
|
|
241
283
|
// Automatically generated file. DO NOT EDIT.
|
|
242
284
|
function uploadAccountTxs(client, param) {
|
|
243
285
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -266,6 +308,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
266
308
|
});
|
|
267
309
|
}
|
|
268
310
|
|
|
311
|
+
// Automatically generated file. DO NOT EDIT.
|
|
312
|
+
function verifyProofW(client, params) {
|
|
313
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
return client.request({ method: 'locus_verifyProofW', params: [params] });
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
269
318
|
// Automatically generated file. DO NOT EDIT.
|
|
270
319
|
function verifyTxListWitness(client, params) {
|
|
271
320
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -277,8 +326,8 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
277
326
|
const publicActions = (client) => ({
|
|
278
327
|
accountHeightsToDownload: (param) => accountHeightsToDownload(client, param),
|
|
279
328
|
accountHeightsToUpload: (param) => accountHeightsToUpload(client, param),
|
|
280
|
-
|
|
281
|
-
|
|
329
|
+
calculateAvailableByForward: (param) => calculateAvailableByForward(client, param),
|
|
330
|
+
calculateAvailableByForwardList: (param) => calculateAvailableByForwardList(client, param),
|
|
282
331
|
clientMessage: (param) => clientMessage(client, param),
|
|
283
332
|
downloadAccountTxs: (param) => downloadAccountTxs(client, param),
|
|
284
333
|
echo: (str) => echo$1(client, str),
|
|
@@ -291,10 +340,14 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
291
340
|
getAccountTokenList: (params) => getAccountTokenList(client, params),
|
|
292
341
|
getConciseNodeStatus: () => getConciseNodeStatus(client),
|
|
293
342
|
getGenesisAccount: () => getGenesisAccount(client),
|
|
343
|
+
getHoldTxDir: () => getHoldTxDir(client),
|
|
344
|
+
getHoldTxFlushSeq: () => getHoldTxFlushSeq(client),
|
|
294
345
|
getIdentityProof: (param) => getIdentityProof(client, param),
|
|
295
346
|
getInactiveTxList: (param) => getInactiveTxList(client, param),
|
|
347
|
+
getLaunchCommand: () => getLaunchCommand(client),
|
|
296
348
|
getMontInfoList: (param) => getMontInfoList(client, param),
|
|
297
349
|
getNodeStatus: () => getNodeStatus(client),
|
|
350
|
+
getNodeVersion: () => getNodeVersion(client),
|
|
298
351
|
getOwnerBalance: () => getOwnerBalance(client),
|
|
299
352
|
getRoundState: (param) => getRoundState(client, param),
|
|
300
353
|
getRoundStatesList: (param) => getRoundStatesList(client, param),
|
|
@@ -308,11 +361,14 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
308
361
|
queryAddress: (params) => queryAddress(client, params),
|
|
309
362
|
readTxListWitness: (params) => readTxListWitness(client, params),
|
|
310
363
|
setHost: (param) => setHost(client, param),
|
|
364
|
+
shutdown: () => shutdown(client),
|
|
311
365
|
subscribeAddress: (params) => subscribeAddress(client, params),
|
|
366
|
+
upliftProofW: (params) => upliftProofW(client, params),
|
|
312
367
|
uploadAccountTxs: (param) => uploadAccountTxs(client, param),
|
|
313
368
|
verifyAndSignChallenge: (param) => verifyAndSignChallenge(client, param),
|
|
314
369
|
verifyIdentityProof: (param) => verifyIdentityProof(client, param),
|
|
315
370
|
verifyLatestStoredDataProof: (params) => verifyLatestStoredDataProof(client, params),
|
|
371
|
+
verifyProofW: (params) => verifyProofW(client, params),
|
|
316
372
|
verifyTxListWitness: (params) => verifyTxListWitness(client, params),
|
|
317
373
|
});
|
|
318
374
|
|
|
@@ -971,8 +1027,8 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
971
1027
|
exports.balanceList = balanceList;
|
|
972
1028
|
exports.becomeGuest = becomeGuest;
|
|
973
1029
|
exports.becomeHost = becomeHost;
|
|
974
|
-
exports.
|
|
975
|
-
exports.
|
|
1030
|
+
exports.calculateAvailableByForward = calculateAvailableByForward;
|
|
1031
|
+
exports.calculateAvailableByForwardList = calculateAvailableByForwardList;
|
|
976
1032
|
exports.callContract = callContract;
|
|
977
1033
|
exports.callVme = callVme;
|
|
978
1034
|
exports.changeKey = changeKey;
|
|
@@ -1009,15 +1065,19 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
1009
1065
|
exports.getConciseNodeStatus = getConciseNodeStatus;
|
|
1010
1066
|
exports.getGenesisAccount = getGenesisAccount;
|
|
1011
1067
|
exports.getGuestsInfo = getGuestsInfo;
|
|
1068
|
+
exports.getHoldTxDir = getHoldTxDir;
|
|
1069
|
+
exports.getHoldTxFlushSeq = getHoldTxFlushSeq;
|
|
1012
1070
|
exports.getHomeShard = getHomeShard;
|
|
1013
1071
|
exports.getIdentityProof = getIdentityProof;
|
|
1014
1072
|
exports.getImportAccount = getImportAccount;
|
|
1015
1073
|
exports.getImportAccountLog = getImportAccountLog;
|
|
1016
1074
|
exports.getInactiveTxList = getInactiveTxList;
|
|
1017
1075
|
exports.getKeys = getKeys;
|
|
1076
|
+
exports.getLaunchCommand = getLaunchCommand;
|
|
1018
1077
|
exports.getMontInfoList = getMontInfoList;
|
|
1019
1078
|
exports.getNodeBlocks = getNodeBlocks;
|
|
1020
1079
|
exports.getNodeStatus = getNodeStatus;
|
|
1080
|
+
exports.getNodeVersion = getNodeVersion;
|
|
1021
1081
|
exports.getOwnerBalance = getOwnerBalance;
|
|
1022
1082
|
exports.getPeerPool = getPeerPool;
|
|
1023
1083
|
exports.getPeersInfo = getPeersInfo;
|
|
@@ -1050,6 +1110,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
1050
1110
|
exports.setHost = setHost;
|
|
1051
1111
|
exports.setImportAccountTx = setImportAccountTx;
|
|
1052
1112
|
exports.setReliableNode = setReliableNode;
|
|
1113
|
+
exports.shutdown = shutdown;
|
|
1053
1114
|
exports.subscribeAddress = subscribeAddress;
|
|
1054
1115
|
exports.transfer = transfer;
|
|
1055
1116
|
exports.transferAllRes = transferAllRes;
|
|
@@ -1057,10 +1118,12 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
1057
1118
|
exports.transferCoin = transferCoin;
|
|
1058
1119
|
exports.transferToken = transferToken;
|
|
1059
1120
|
exports.unlockStake = unlockStake;
|
|
1121
|
+
exports.upliftProofW = upliftProofW;
|
|
1060
1122
|
exports.uploadAccountTxs = uploadAccountTxs;
|
|
1061
1123
|
exports.verifyAndSignChallenge = verifyAndSignChallenge;
|
|
1062
1124
|
exports.verifyIdentityProof = verifyIdentityProof;
|
|
1063
1125
|
exports.verifyLatestStoredDataProof = verifyLatestStoredDataProof;
|
|
1126
|
+
exports.verifyProofW = verifyProofW;
|
|
1064
1127
|
exports.verifyTxListWitness = verifyTxListWitness;
|
|
1065
1128
|
exports.viewVme = viewVme;
|
|
1066
1129
|
exports.walletActions = walletActions;
|
|
@@ -17,16 +17,16 @@ function accountHeightsToUpload(client, param) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// Automatically generated file. DO NOT EDIT.
|
|
20
|
-
function
|
|
20
|
+
function calculateAvailableByForward(client, param) {
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
return client.request({ method: '
|
|
22
|
+
return client.request({ method: 'locus_calculateAvailableByForward', params: [param] });
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// Automatically generated file. DO NOT EDIT.
|
|
27
|
-
function
|
|
27
|
+
function calculateAvailableByForwardList(client, param) {
|
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
return client.request({ method: '
|
|
29
|
+
return client.request({ method: 'locus_calculateAvailableByForwardList', params: [param] });
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -114,6 +114,20 @@ function getGenesisAccount(client) {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
// Automatically generated file. DO NOT EDIT.
|
|
118
|
+
function getHoldTxDir(client) {
|
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
return client.request({ method: 'locus_getHoldTxDir', params: [] });
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Automatically generated file. DO NOT EDIT.
|
|
125
|
+
function getHoldTxFlushSeq(client) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
return client.request({ method: 'locus_getHoldTxFlushSeq', params: [] });
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
117
131
|
// Automatically generated file. DO NOT EDIT.
|
|
118
132
|
function getIdentityProof(client, param) {
|
|
119
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -128,6 +142,13 @@ function getInactiveTxList(client, param) {
|
|
|
128
142
|
});
|
|
129
143
|
}
|
|
130
144
|
|
|
145
|
+
// Automatically generated file. DO NOT EDIT.
|
|
146
|
+
function getLaunchCommand(client) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
return client.request({ method: 'locus_getLaunchCommand', params: [] });
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
|
|
131
152
|
// Automatically generated file. DO NOT EDIT.
|
|
132
153
|
function getMontInfoList(client, param) {
|
|
133
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -142,6 +163,13 @@ function getNodeStatus(client) {
|
|
|
142
163
|
});
|
|
143
164
|
}
|
|
144
165
|
|
|
166
|
+
// Automatically generated file. DO NOT EDIT.
|
|
167
|
+
function getNodeVersion(client) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
return client.request({ method: 'locus_getNodeVersion', params: [] });
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
145
173
|
// Automatically generated file. DO NOT EDIT.
|
|
146
174
|
function getOwnerBalance(client) {
|
|
147
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -233,6 +261,13 @@ function setHost(client, param) {
|
|
|
233
261
|
});
|
|
234
262
|
}
|
|
235
263
|
|
|
264
|
+
// Automatically generated file. DO NOT EDIT.
|
|
265
|
+
function shutdown(client) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
return client.request({ method: 'locus_shutdown', params: [] });
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
|
|
236
271
|
// Automatically generated file. DO NOT EDIT.
|
|
237
272
|
function subscribeAddress(client, params) {
|
|
238
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -240,6 +275,13 @@ function subscribeAddress(client, params) {
|
|
|
240
275
|
});
|
|
241
276
|
}
|
|
242
277
|
|
|
278
|
+
// Automatically generated file. DO NOT EDIT.
|
|
279
|
+
function upliftProofW(client, params) {
|
|
280
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
281
|
+
return client.request({ method: 'locus_upliftProofW', params: [params] });
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
|
|
243
285
|
// Automatically generated file. DO NOT EDIT.
|
|
244
286
|
function uploadAccountTxs(client, param) {
|
|
245
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -268,6 +310,13 @@ function verifyLatestStoredDataProof(client, params) {
|
|
|
268
310
|
});
|
|
269
311
|
}
|
|
270
312
|
|
|
313
|
+
// Automatically generated file. DO NOT EDIT.
|
|
314
|
+
function verifyProofW(client, params) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
+
return client.request({ method: 'locus_verifyProofW', params: [params] });
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
|
|
271
320
|
// Automatically generated file. DO NOT EDIT.
|
|
272
321
|
function verifyTxListWitness(client, params) {
|
|
273
322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -279,8 +328,8 @@ function verifyTxListWitness(client, params) {
|
|
|
279
328
|
const publicActions = (client) => ({
|
|
280
329
|
accountHeightsToDownload: (param) => accountHeightsToDownload(client, param),
|
|
281
330
|
accountHeightsToUpload: (param) => accountHeightsToUpload(client, param),
|
|
282
|
-
|
|
283
|
-
|
|
331
|
+
calculateAvailableByForward: (param) => calculateAvailableByForward(client, param),
|
|
332
|
+
calculateAvailableByForwardList: (param) => calculateAvailableByForwardList(client, param),
|
|
284
333
|
clientMessage: (param) => clientMessage(client, param),
|
|
285
334
|
downloadAccountTxs: (param) => downloadAccountTxs(client, param),
|
|
286
335
|
echo: (str) => echo$1(client, str),
|
|
@@ -293,10 +342,14 @@ const publicActions = (client) => ({
|
|
|
293
342
|
getAccountTokenList: (params) => getAccountTokenList(client, params),
|
|
294
343
|
getConciseNodeStatus: () => getConciseNodeStatus(client),
|
|
295
344
|
getGenesisAccount: () => getGenesisAccount(client),
|
|
345
|
+
getHoldTxDir: () => getHoldTxDir(client),
|
|
346
|
+
getHoldTxFlushSeq: () => getHoldTxFlushSeq(client),
|
|
296
347
|
getIdentityProof: (param) => getIdentityProof(client, param),
|
|
297
348
|
getInactiveTxList: (param) => getInactiveTxList(client, param),
|
|
349
|
+
getLaunchCommand: () => getLaunchCommand(client),
|
|
298
350
|
getMontInfoList: (param) => getMontInfoList(client, param),
|
|
299
351
|
getNodeStatus: () => getNodeStatus(client),
|
|
352
|
+
getNodeVersion: () => getNodeVersion(client),
|
|
300
353
|
getOwnerBalance: () => getOwnerBalance(client),
|
|
301
354
|
getRoundState: (param) => getRoundState(client, param),
|
|
302
355
|
getRoundStatesList: (param) => getRoundStatesList(client, param),
|
|
@@ -310,11 +363,14 @@ const publicActions = (client) => ({
|
|
|
310
363
|
queryAddress: (params) => queryAddress(client, params),
|
|
311
364
|
readTxListWitness: (params) => readTxListWitness(client, params),
|
|
312
365
|
setHost: (param) => setHost(client, param),
|
|
366
|
+
shutdown: () => shutdown(client),
|
|
313
367
|
subscribeAddress: (params) => subscribeAddress(client, params),
|
|
368
|
+
upliftProofW: (params) => upliftProofW(client, params),
|
|
314
369
|
uploadAccountTxs: (param) => uploadAccountTxs(client, param),
|
|
315
370
|
verifyAndSignChallenge: (param) => verifyAndSignChallenge(client, param),
|
|
316
371
|
verifyIdentityProof: (param) => verifyIdentityProof(client, param),
|
|
317
372
|
verifyLatestStoredDataProof: (params) => verifyLatestStoredDataProof(client, params),
|
|
373
|
+
verifyProofW: (params) => verifyProofW(client, params),
|
|
318
374
|
verifyTxListWitness: (params) => verifyTxListWitness(client, params),
|
|
319
375
|
});
|
|
320
376
|
|
|
@@ -965,4 +1021,4 @@ const debugWalletActions = (client) => ({
|
|
|
965
1021
|
postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
|
|
966
1022
|
});
|
|
967
1023
|
|
|
968
|
-
export { forwardAssetObject as $, nodeCmd as A, postDataToSynthAccount as B, removeHoldTxs as C, requestVme as D, sendRawTransaction as E, setImportAccountTx as F, setReliableNode as G, viewVme as H, acceptScript as I, accountHeightsToDownload as J, accountHeightsToUpload as K, becomeGuest as L, becomeHost as M,
|
|
1024
|
+
export { forwardAssetObject as $, nodeCmd as A, postDataToSynthAccount as B, removeHoldTxs as C, requestVme as D, sendRawTransaction as E, setImportAccountTx as F, setReliableNode as G, viewVme as H, acceptScript as I, accountHeightsToDownload as J, accountHeightsToUpload as K, becomeGuest as L, becomeHost as M, calculateAvailableByForward as N, calculateAvailableByForwardList as O, changeKey as P, changeVkey as Q, clientMessage as R, closeAccount as S, createAssetObject as T, createToken as U, createVme as V, debugPublicActions as W, debugWalletActions as X, downloadAccountTxs as Y, echo$1 as Z, findDuplicateSubscriber as _, allHeights as a, forwardCoin as a0, forwardToken as a1, freezeAccount as a2, generateLatestStoredDataProof as a3, getAccountAssetList as a4, getAccountAssetObject as a5, getAccountDetail as a6, getAccountHistory as a7, getAccountTokenList as a8, getConciseNodeStatus as a9, requestDataTrade as aA, setHost as aB, shutdown as aC, subscribeAddress as aD, transfer as aE, transferAllRes as aF, transferAssetObject as aG, transferCoin as aH, transferToken as aI, unlockStake as aJ, upliftProofW as aK, uploadAccountTxs as aL, verifyAndSignChallenge as aM, verifyIdentityProof as aN, verifyLatestStoredDataProof as aO, verifyProofW as aP, verifyTxListWitness as aQ, walletActions as aR, getGenesisAccount as aa, getHoldTxDir as ab, getHoldTxFlushSeq as ac, getIdentityProof as ad, getInactiveTxList as ae, getLaunchCommand as af, getMontInfoList as ag, getNodeStatus as ah, getNodeVersion as ai, getOwnerBalance as aj, getRoundState as ak, getRoundStatesList as al, getShardOfAccount as am, getSyncState as an, getTx as ao, getWorldRoundState as ap, getWorldRoundStatesList as aq, hasSystemToken as ar, lockStake as as, makeTxProof as at, openAccount as au, postData as av, provideScript as aw, publicActions as ax, queryAddress as ay, readTxListWitness as az, balanceGrantList as b, balanceList as c, callContract as d, callVme as e, createAccount as f, createContract as g, createNode as h, createSynthAccount as i, dumpAllAccounts as j, echo as k, gameChainCmd as l, getAccountsBalances as m, getAccountsHeights as n, getGuestsInfo as o, getHomeShard as p, getImportAccount as q, getImportAccountLog as r, getKeys as s, getNodeBlocks as t, getPeerPool as u, getPeersInfo as v, getVmeLog as w, importAccount as x, initReliableNodes as y, noArgsRets as z };
|
|
@@ -19,16 +19,16 @@ function accountHeightsToUpload(client, param) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// Automatically generated file. DO NOT EDIT.
|
|
22
|
-
function
|
|
22
|
+
function calculateAvailableByForward(client, param) {
|
|
23
23
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return client.request({ method: '
|
|
24
|
+
return client.request({ method: 'locus_calculateAvailableByForward', params: [param] });
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// Automatically generated file. DO NOT EDIT.
|
|
29
|
-
function
|
|
29
|
+
function calculateAvailableByForwardList(client, param) {
|
|
30
30
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
return client.request({ method: '
|
|
31
|
+
return client.request({ method: 'locus_calculateAvailableByForwardList', params: [param] });
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -116,6 +116,20 @@ function getGenesisAccount(client) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
// Automatically generated file. DO NOT EDIT.
|
|
120
|
+
function getHoldTxDir(client) {
|
|
121
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
return client.request({ method: 'locus_getHoldTxDir', params: [] });
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Automatically generated file. DO NOT EDIT.
|
|
127
|
+
function getHoldTxFlushSeq(client) {
|
|
128
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
return client.request({ method: 'locus_getHoldTxFlushSeq', params: [] });
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
119
133
|
// Automatically generated file. DO NOT EDIT.
|
|
120
134
|
function getIdentityProof(client, param) {
|
|
121
135
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -130,6 +144,13 @@ function getInactiveTxList(client, param) {
|
|
|
130
144
|
});
|
|
131
145
|
}
|
|
132
146
|
|
|
147
|
+
// Automatically generated file. DO NOT EDIT.
|
|
148
|
+
function getLaunchCommand(client) {
|
|
149
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
return client.request({ method: 'locus_getLaunchCommand', params: [] });
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
|
|
133
154
|
// Automatically generated file. DO NOT EDIT.
|
|
134
155
|
function getMontInfoList(client, param) {
|
|
135
156
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -144,6 +165,13 @@ function getNodeStatus(client) {
|
|
|
144
165
|
});
|
|
145
166
|
}
|
|
146
167
|
|
|
168
|
+
// Automatically generated file. DO NOT EDIT.
|
|
169
|
+
function getNodeVersion(client) {
|
|
170
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
return client.request({ method: 'locus_getNodeVersion', params: [] });
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
|
|
147
175
|
// Automatically generated file. DO NOT EDIT.
|
|
148
176
|
function getOwnerBalance(client) {
|
|
149
177
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -235,6 +263,13 @@ function setHost(client, param) {
|
|
|
235
263
|
});
|
|
236
264
|
}
|
|
237
265
|
|
|
266
|
+
// Automatically generated file. DO NOT EDIT.
|
|
267
|
+
function shutdown(client) {
|
|
268
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
return client.request({ method: 'locus_shutdown', params: [] });
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
238
273
|
// Automatically generated file. DO NOT EDIT.
|
|
239
274
|
function subscribeAddress(client, params) {
|
|
240
275
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -242,6 +277,13 @@ function subscribeAddress(client, params) {
|
|
|
242
277
|
});
|
|
243
278
|
}
|
|
244
279
|
|
|
280
|
+
// Automatically generated file. DO NOT EDIT.
|
|
281
|
+
function upliftProofW(client, params) {
|
|
282
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
return client.request({ method: 'locus_upliftProofW', params: [params] });
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
|
|
245
287
|
// Automatically generated file. DO NOT EDIT.
|
|
246
288
|
function uploadAccountTxs(client, param) {
|
|
247
289
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -270,6 +312,13 @@ function verifyLatestStoredDataProof(client, params) {
|
|
|
270
312
|
});
|
|
271
313
|
}
|
|
272
314
|
|
|
315
|
+
// Automatically generated file. DO NOT EDIT.
|
|
316
|
+
function verifyProofW(client, params) {
|
|
317
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
return client.request({ method: 'locus_verifyProofW', params: [params] });
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
|
|
273
322
|
// Automatically generated file. DO NOT EDIT.
|
|
274
323
|
function verifyTxListWitness(client, params) {
|
|
275
324
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -281,8 +330,8 @@ function verifyTxListWitness(client, params) {
|
|
|
281
330
|
const publicActions = (client) => ({
|
|
282
331
|
accountHeightsToDownload: (param) => accountHeightsToDownload(client, param),
|
|
283
332
|
accountHeightsToUpload: (param) => accountHeightsToUpload(client, param),
|
|
284
|
-
|
|
285
|
-
|
|
333
|
+
calculateAvailableByForward: (param) => calculateAvailableByForward(client, param),
|
|
334
|
+
calculateAvailableByForwardList: (param) => calculateAvailableByForwardList(client, param),
|
|
286
335
|
clientMessage: (param) => clientMessage(client, param),
|
|
287
336
|
downloadAccountTxs: (param) => downloadAccountTxs(client, param),
|
|
288
337
|
echo: (str) => echo$1(client, str),
|
|
@@ -295,10 +344,14 @@ const publicActions = (client) => ({
|
|
|
295
344
|
getAccountTokenList: (params) => getAccountTokenList(client, params),
|
|
296
345
|
getConciseNodeStatus: () => getConciseNodeStatus(client),
|
|
297
346
|
getGenesisAccount: () => getGenesisAccount(client),
|
|
347
|
+
getHoldTxDir: () => getHoldTxDir(client),
|
|
348
|
+
getHoldTxFlushSeq: () => getHoldTxFlushSeq(client),
|
|
298
349
|
getIdentityProof: (param) => getIdentityProof(client, param),
|
|
299
350
|
getInactiveTxList: (param) => getInactiveTxList(client, param),
|
|
351
|
+
getLaunchCommand: () => getLaunchCommand(client),
|
|
300
352
|
getMontInfoList: (param) => getMontInfoList(client, param),
|
|
301
353
|
getNodeStatus: () => getNodeStatus(client),
|
|
354
|
+
getNodeVersion: () => getNodeVersion(client),
|
|
302
355
|
getOwnerBalance: () => getOwnerBalance(client),
|
|
303
356
|
getRoundState: (param) => getRoundState(client, param),
|
|
304
357
|
getRoundStatesList: (param) => getRoundStatesList(client, param),
|
|
@@ -312,11 +365,14 @@ const publicActions = (client) => ({
|
|
|
312
365
|
queryAddress: (params) => queryAddress(client, params),
|
|
313
366
|
readTxListWitness: (params) => readTxListWitness(client, params),
|
|
314
367
|
setHost: (param) => setHost(client, param),
|
|
368
|
+
shutdown: () => shutdown(client),
|
|
315
369
|
subscribeAddress: (params) => subscribeAddress(client, params),
|
|
370
|
+
upliftProofW: (params) => upliftProofW(client, params),
|
|
316
371
|
uploadAccountTxs: (param) => uploadAccountTxs(client, param),
|
|
317
372
|
verifyAndSignChallenge: (param) => verifyAndSignChallenge(client, param),
|
|
318
373
|
verifyIdentityProof: (param) => verifyIdentityProof(client, param),
|
|
319
374
|
verifyLatestStoredDataProof: (params) => verifyLatestStoredDataProof(client, params),
|
|
375
|
+
verifyProofW: (params) => verifyProofW(client, params),
|
|
320
376
|
verifyTxListWitness: (params) => verifyTxListWitness(client, params),
|
|
321
377
|
});
|
|
322
378
|
|
|
@@ -975,8 +1031,8 @@ exports.balanceGrantList = balanceGrantList;
|
|
|
975
1031
|
exports.balanceList = balanceList;
|
|
976
1032
|
exports.becomeGuest = becomeGuest;
|
|
977
1033
|
exports.becomeHost = becomeHost;
|
|
978
|
-
exports.
|
|
979
|
-
exports.
|
|
1034
|
+
exports.calculateAvailableByForward = calculateAvailableByForward;
|
|
1035
|
+
exports.calculateAvailableByForwardList = calculateAvailableByForwardList;
|
|
980
1036
|
exports.callContract = callContract;
|
|
981
1037
|
exports.callVme = callVme;
|
|
982
1038
|
exports.changeKey = changeKey;
|
|
@@ -1013,15 +1069,19 @@ exports.getAccountsHeights = getAccountsHeights;
|
|
|
1013
1069
|
exports.getConciseNodeStatus = getConciseNodeStatus;
|
|
1014
1070
|
exports.getGenesisAccount = getGenesisAccount;
|
|
1015
1071
|
exports.getGuestsInfo = getGuestsInfo;
|
|
1072
|
+
exports.getHoldTxDir = getHoldTxDir;
|
|
1073
|
+
exports.getHoldTxFlushSeq = getHoldTxFlushSeq;
|
|
1016
1074
|
exports.getHomeShard = getHomeShard;
|
|
1017
1075
|
exports.getIdentityProof = getIdentityProof;
|
|
1018
1076
|
exports.getImportAccount = getImportAccount;
|
|
1019
1077
|
exports.getImportAccountLog = getImportAccountLog;
|
|
1020
1078
|
exports.getInactiveTxList = getInactiveTxList;
|
|
1021
1079
|
exports.getKeys = getKeys;
|
|
1080
|
+
exports.getLaunchCommand = getLaunchCommand;
|
|
1022
1081
|
exports.getMontInfoList = getMontInfoList;
|
|
1023
1082
|
exports.getNodeBlocks = getNodeBlocks;
|
|
1024
1083
|
exports.getNodeStatus = getNodeStatus;
|
|
1084
|
+
exports.getNodeVersion = getNodeVersion;
|
|
1025
1085
|
exports.getOwnerBalance = getOwnerBalance;
|
|
1026
1086
|
exports.getPeerPool = getPeerPool;
|
|
1027
1087
|
exports.getPeersInfo = getPeersInfo;
|
|
@@ -1054,6 +1114,7 @@ exports.sendRawTransaction = sendRawTransaction;
|
|
|
1054
1114
|
exports.setHost = setHost;
|
|
1055
1115
|
exports.setImportAccountTx = setImportAccountTx;
|
|
1056
1116
|
exports.setReliableNode = setReliableNode;
|
|
1117
|
+
exports.shutdown = shutdown;
|
|
1057
1118
|
exports.subscribeAddress = subscribeAddress;
|
|
1058
1119
|
exports.transfer = transfer;
|
|
1059
1120
|
exports.transferAllRes = transferAllRes;
|
|
@@ -1061,10 +1122,12 @@ exports.transferAssetObject = transferAssetObject;
|
|
|
1061
1122
|
exports.transferCoin = transferCoin;
|
|
1062
1123
|
exports.transferToken = transferToken;
|
|
1063
1124
|
exports.unlockStake = unlockStake;
|
|
1125
|
+
exports.upliftProofW = upliftProofW;
|
|
1064
1126
|
exports.uploadAccountTxs = uploadAccountTxs;
|
|
1065
1127
|
exports.verifyAndSignChallenge = verifyAndSignChallenge;
|
|
1066
1128
|
exports.verifyIdentityProof = verifyIdentityProof;
|
|
1067
1129
|
exports.verifyLatestStoredDataProof = verifyLatestStoredDataProof;
|
|
1130
|
+
exports.verifyProofW = verifyProofW;
|
|
1068
1131
|
exports.verifyTxListWitness = verifyTxListWitness;
|
|
1069
1132
|
exports.viewVme = viewVme;
|
|
1070
1133
|
exports.walletActions = walletActions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createAccountAndKeystore, l as loadMasterKeystore, a as loadNormalKeystore } from './wasm-
|
|
1
|
+
import { c as createAccountAndKeystore, l as loadMasterKeystore, a as loadNormalKeystore } from './wasm-CU215LGW.js';
|
|
2
2
|
import { B as BaseError } from './base-BQXfRsuw.js';
|
|
3
3
|
import { D as DegenerateKeyError } from './account-FZT9LH_s.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './wasm-
|
|
1
|
+
define(['exports', './wasm-gROtmFm6', './base-B_kRRfsf', './account-BSrvZ7S8'], (function (exports, wasm, base, account) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 새 dual-key keystore 를 만들고 결과 JSON array 를 master / normal 두
|
|
@@ -87,6 +87,9 @@ const createNormalKey = (params) => {
|
|
|
87
87
|
const createNormalKeystore = (params) => {
|
|
88
88
|
return callWasm('createNormalKeystore', [params]);
|
|
89
89
|
};
|
|
90
|
+
const decodeSubId = (subIdString) => {
|
|
91
|
+
return callWasm('decodeSubId', [subIdString]);
|
|
92
|
+
};
|
|
90
93
|
const decodeTxs = (params) => {
|
|
91
94
|
return callWasm('decodeTxs', [params]);
|
|
92
95
|
};
|
|
@@ -99,6 +102,12 @@ const deriveKeysFromMnemonicAndPath = (params) => {
|
|
|
99
102
|
const disCompileCoreScript = (params) => {
|
|
100
103
|
return callWasm('disCompileCoreScript', [params]);
|
|
101
104
|
};
|
|
105
|
+
const encodeFuncData = (op, dataHex) => {
|
|
106
|
+
return callWasm('encodeFuncData', [op, dataHex]);
|
|
107
|
+
};
|
|
108
|
+
const encodeSubId = (hexString) => {
|
|
109
|
+
return callWasm('encodeSubId', [hexString]);
|
|
110
|
+
};
|
|
102
111
|
const encodeTxCurrency = (params) => {
|
|
103
112
|
return callWasm('encodeTxCurrency', [params]);
|
|
104
113
|
};
|
|
@@ -163,4 +172,4 @@ const verifyTx = (jsonTx) => {
|
|
|
163
172
|
return callWasm('verifyTx', [jsonTx]);
|
|
164
173
|
};
|
|
165
174
|
|
|
166
|
-
export {
|
|
175
|
+
export { deriveKeysFromMnemonicAndPath as A, disCompileCoreScript as B, encodeFuncData as C, encodeSubId as D, encodeTxCurrency as E, encodeTxNumber as F, generateMnemonic as G, generateMnemonicBySeed as H, getDefFromCoreScript as I, getHomeShard as J, getLibraryVersions as K, gzipAndEncode as L, hash as M, isGrantConsumingTx as N, makeCurrency as O, sign as P, signByMasterKey as Q, signKeyBind as R, testCoreScript as S, verify as T, verifyByMasterKey as U, verifyMerkleProof as V, verifyTx as W, loadNormalKeystore as a, calculateTxLinkHash as b, createAccountAndKeystore as c, compileCoreScript as d, convertAddressToData as e, convertAddressToHex as f, convertBase32ToData as g, convertBase32ToHex as h, convertCurrency as i, convertDataTo as j, convertDataToAddress as k, loadMasterKeystore as l, convertDataToBase32 as m, convertDataToHex as n, convertDataToString as o, convertHexToAddress as p, convertHexToBase32 as q, convertHexToData as r, convertStringToData as s, convertToData as t, createMasterKeystore as u, createNormalKey as v, createNormalKeystore as w, decodeSubId as x, decodeTxs as y, deriveKeysFromMnemonic as z };
|
|
@@ -89,6 +89,9 @@ const createNormalKey = (params) => {
|
|
|
89
89
|
const createNormalKeystore = (params) => {
|
|
90
90
|
return callWasm('createNormalKeystore', [params]);
|
|
91
91
|
};
|
|
92
|
+
const decodeSubId = (subIdString) => {
|
|
93
|
+
return callWasm('decodeSubId', [subIdString]);
|
|
94
|
+
};
|
|
92
95
|
const decodeTxs = (params) => {
|
|
93
96
|
return callWasm('decodeTxs', [params]);
|
|
94
97
|
};
|
|
@@ -101,6 +104,12 @@ const deriveKeysFromMnemonicAndPath = (params) => {
|
|
|
101
104
|
const disCompileCoreScript = (params) => {
|
|
102
105
|
return callWasm('disCompileCoreScript', [params]);
|
|
103
106
|
};
|
|
107
|
+
const encodeFuncData = (op, dataHex) => {
|
|
108
|
+
return callWasm('encodeFuncData', [op, dataHex]);
|
|
109
|
+
};
|
|
110
|
+
const encodeSubId = (hexString) => {
|
|
111
|
+
return callWasm('encodeSubId', [hexString]);
|
|
112
|
+
};
|
|
104
113
|
const encodeTxCurrency = (params) => {
|
|
105
114
|
return callWasm('encodeTxCurrency', [params]);
|
|
106
115
|
};
|
|
@@ -186,10 +195,13 @@ exports.createAccountAndKeystore = createAccountAndKeystore;
|
|
|
186
195
|
exports.createMasterKeystore = createMasterKeystore;
|
|
187
196
|
exports.createNormalKey = createNormalKey;
|
|
188
197
|
exports.createNormalKeystore = createNormalKeystore;
|
|
198
|
+
exports.decodeSubId = decodeSubId;
|
|
189
199
|
exports.decodeTxs = decodeTxs;
|
|
190
200
|
exports.deriveKeysFromMnemonic = deriveKeysFromMnemonic;
|
|
191
201
|
exports.deriveKeysFromMnemonicAndPath = deriveKeysFromMnemonicAndPath;
|
|
192
202
|
exports.disCompileCoreScript = disCompileCoreScript;
|
|
203
|
+
exports.encodeFuncData = encodeFuncData;
|
|
204
|
+
exports.encodeSubId = encodeSubId;
|
|
193
205
|
exports.encodeTxCurrency = encodeTxCurrency;
|
|
194
206
|
exports.encodeTxNumber = encodeTxNumber;
|
|
195
207
|
exports.generateMnemonic = generateMnemonic;
|