@locuschain/lib 0.2.4 → 0.2.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/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/debug/wallet/callContract.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/callContract.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/createContract.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/createContract.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/index.d.cts +2 -0
- package/dist/autogen/actions/debug/wallet/index.d.mts +2 -0
- package/dist/autogen/actions/public/calculateSpentByForward.d.cts +4 -0
- package/dist/autogen/actions/public/calculateSpentByForward.d.mts +4 -0
- package/dist/autogen/actions/public/calculateSpentByForwardList.d.cts +4 -0
- package/dist/autogen/actions/public/calculateSpentByForwardList.d.mts +4 -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 +5 -1
- package/dist/autogen/actions/public/index.d.mts +5 -1
- 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/actions/wallet/forwardAssetObject.d.cts +4 -0
- package/dist/autogen/actions/wallet/forwardAssetObject.d.mts +4 -0
- package/dist/autogen/actions/wallet/forwardToken.d.cts +4 -0
- package/dist/autogen/actions/wallet/forwardToken.d.mts +4 -0
- package/dist/autogen/actions/wallet/index.d.cts +4 -0
- package/dist/autogen/actions/wallet/index.d.mts +4 -0
- package/dist/autogen/actions/wallet/transfer.d.cts +4 -0
- package/dist/autogen/actions/wallet/transfer.d.mts +4 -0
- package/dist/autogen/actions/wallet/transferAllRes.d.cts +4 -0
- package/dist/autogen/actions/wallet/transferAllRes.d.mts +4 -0
- package/dist/autogen/debugWalletActions.d.cts +3 -0
- package/dist/autogen/debugWalletActions.d.mts +3 -0
- package/dist/autogen/index.amd.js +12 -2
- package/dist/autogen/index.cjs.cjs +12 -2
- package/dist/autogen/index.esm.js +4 -2
- package/dist/autogen/locus-tx.d.cts +2 -2
- package/dist/autogen/locus-tx.d.mts +2 -2
- package/dist/autogen/publicActions.d.cts +9 -2
- package/dist/autogen/publicActions.d.mts +9 -2
- package/dist/autogen/rpc-api-spec.d.cts +24 -3
- package/dist/autogen/rpc-api-spec.d.mts +24 -3
- package/dist/autogen/types/common/contract-exec-status.d.cts +2 -1
- package/dist/autogen/types/common/contract-exec-status.d.mts +2 -1
- package/dist/autogen/types/common/forward-spent-item.d.cts +9 -0
- package/dist/autogen/types/common/forward-spent-item.d.mts +9 -0
- package/dist/autogen/types/common/index.d.cts +3 -0
- package/dist/autogen/types/common/index.d.mts +3 -0
- package/dist/autogen/types/common/params-transfer-asset.d.cts +4 -0
- package/dist/autogen/types/common/params-transfer-asset.d.mts +4 -0
- package/dist/autogen/types/common/res-changed-entry.d.cts +3 -2
- package/dist/autogen/types/common/res-changed-entry.d.mts +3 -2
- package/dist/autogen/types/common/res-state-value.d.cts +5 -0
- package/dist/autogen/types/common/res-state-value.d.mts +5 -0
- package/dist/autogen/types/consts/tx-type.d.cts +3 -1
- package/dist/autogen/types/consts/tx-type.d.mts +3 -1
- package/dist/autogen/types/consts/tx-types.d.cts +15 -1
- package/dist/autogen/types/consts/tx-types.d.mts +15 -1
- package/dist/autogen/types/rpc/index.d.cts +13 -2
- package/dist/autogen/types/rpc/index.d.mts +13 -2
- package/dist/autogen/types/rpc/params-calculate-spent-by-forward-list.d.cts +3 -0
- package/dist/autogen/types/rpc/params-calculate-spent-by-forward-list.d.mts +3 -0
- package/dist/autogen/types/rpc/{params-calculate-spent-by-forward-coin.d.cts → params-calculate-spent-by-forward.d.cts} +1 -1
- package/dist/autogen/types/rpc/{params-calculate-spent-by-forward-coin.d.mts → params-calculate-spent-by-forward.d.mts} +1 -1
- package/dist/autogen/types/rpc/params-create-contract.d.cts +15 -0
- package/dist/autogen/types/rpc/params-create-contract.d.mts +15 -0
- package/dist/autogen/types/rpc/params-forward-asset-object.d.cts +7 -0
- package/dist/autogen/types/rpc/params-forward-asset-object.d.mts +7 -0
- package/dist/autogen/types/rpc/params-forward-token.d.cts +7 -0
- package/dist/autogen/types/rpc/params-forward-token.d.mts +7 -0
- package/dist/autogen/types/rpc/params-transfer-all-res.d.cts +14 -0
- package/dist/autogen/types/rpc/params-transfer-all-res.d.mts +14 -0
- package/dist/autogen/types/rpc/params-transfer-tokens.d.cts +0 -4
- package/dist/autogen/types/rpc/params-transfer-tokens.d.mts +0 -4
- package/dist/autogen/types/rpc/params-transfer.d.cts +10 -0
- package/dist/autogen/types/rpc/params-transfer.d.mts +10 -0
- 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-spent-by-forward-list-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-list-result.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-result.d.cts +7 -0
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-result.d.mts +7 -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/tx/index.d.cts +1 -0
- package/dist/autogen/types/tx/index.d.mts +1 -0
- package/dist/autogen/types/tx/tx-activate-vme-result.d.cts +1 -0
- package/dist/autogen/types/tx/tx-activate-vme-result.d.mts +1 -0
- package/dist/autogen/types/tx/tx-activate-vme-transfer.d.cts +1 -0
- package/dist/autogen/types/tx/tx-activate-vme-transfer.d.mts +1 -0
- package/dist/autogen/types/tx/tx-transfer-all-res.d.cts +15 -0
- package/dist/autogen/types/tx/tx-transfer-all-res.d.mts +15 -0
- package/dist/autogen/walletActions.d.cts +8 -0
- package/dist/autogen/walletActions.d.mts +8 -0
- package/dist/autogen/wasm/lclib.wasm +0 -0
- package/dist/chunks/{debugWalletActions-Bd8C-fZB.js → debugWalletActions-BWgEnPR5.js} +106 -4
- package/dist/chunks/{debugWalletActions-DIQY8cBm.cjs → debugWalletActions-CjqVQSZX.cjs} +106 -4
- package/dist/chunks/{debugWalletActions-qkesE_0m.js → debugWalletActions-Dh5poX8K.js} +96 -4
- package/dist/chunks/{tx-type-D_IH9tdK.js → tx-type-BUN9nEQ6.js} +3 -1
- package/dist/chunks/{tx-type-CnfCIc5p.js → tx-type-DYAaL3xz.js} +3 -1
- package/dist/chunks/{tx-type-CjORX0H2.cjs → tx-type-khL8tWtn.cjs} +3 -1
- package/dist/clients/createLocusPublicClient.d.cts +5 -1
- package/dist/clients/createLocusPublicClient.d.mts +5 -1
- package/dist/clients/createLocusWalletClient.d.cts +6 -0
- package/dist/clients/createLocusWalletClient.d.mts +6 -0
- 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/constant/index.amd.js +18 -4
- package/dist/constant/index.cjs.cjs +18 -4
- package/dist/constant/index.d.cts +18 -2
- package/dist/constant/index.d.mts +18 -2
- package/dist/constant/index.esm.js +18 -4
- package/dist/index.amd.js +1 -1
- package/dist/index.cjs.cjs +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
- package/dist/autogen/actions/public/calculateSpentByForwardCoin.d.cts +0 -4
- package/dist/autogen/actions/public/calculateSpentByForwardCoin.d.mts +0 -4
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-coin-result.d.cts +0 -3
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-coin-result.d.mts +0 -3
|
@@ -15,9 +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 calculateSpentByForward(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_calculateSpentByForward', params: [param] });
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Automatically generated file. DO NOT EDIT.
|
|
25
|
+
function calculateSpentByForwardList(client, param) {
|
|
26
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return client.request({ method: 'locus_calculateSpentByForwardList', params: [param] });
|
|
21
28
|
});
|
|
22
29
|
}
|
|
23
30
|
|
|
@@ -133,6 +140,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
133
140
|
});
|
|
134
141
|
}
|
|
135
142
|
|
|
143
|
+
// Automatically generated file. DO NOT EDIT.
|
|
144
|
+
function getNodeVersion(client) {
|
|
145
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
return client.request({ method: 'locus_getNodeVersion', params: [] });
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
136
150
|
// Automatically generated file. DO NOT EDIT.
|
|
137
151
|
function getOwnerBalance(client) {
|
|
138
152
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -231,6 +245,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
231
245
|
});
|
|
232
246
|
}
|
|
233
247
|
|
|
248
|
+
// Automatically generated file. DO NOT EDIT.
|
|
249
|
+
function upliftProofW(client, params) {
|
|
250
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
return client.request({ method: 'locus_upliftProofW', params: [params] });
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
|
|
234
255
|
// Automatically generated file. DO NOT EDIT.
|
|
235
256
|
function uploadAccountTxs(client, param) {
|
|
236
257
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -259,6 +280,13 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
259
280
|
});
|
|
260
281
|
}
|
|
261
282
|
|
|
283
|
+
// Automatically generated file. DO NOT EDIT.
|
|
284
|
+
function verifyProofW(client, params) {
|
|
285
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
return client.request({ method: 'locus_verifyProofW', params: [params] });
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
|
|
262
290
|
// Automatically generated file. DO NOT EDIT.
|
|
263
291
|
function verifyTxListWitness(client, params) {
|
|
264
292
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -270,7 +298,8 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
270
298
|
const publicActions = (client) => ({
|
|
271
299
|
accountHeightsToDownload: (param) => accountHeightsToDownload(client, param),
|
|
272
300
|
accountHeightsToUpload: (param) => accountHeightsToUpload(client, param),
|
|
273
|
-
|
|
301
|
+
calculateSpentByForward: (param) => calculateSpentByForward(client, param),
|
|
302
|
+
calculateSpentByForwardList: (param) => calculateSpentByForwardList(client, param),
|
|
274
303
|
clientMessage: (param) => clientMessage(client, param),
|
|
275
304
|
downloadAccountTxs: (param) => downloadAccountTxs(client, param),
|
|
276
305
|
echo: (str) => echo$1(client, str),
|
|
@@ -287,6 +316,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
287
316
|
getInactiveTxList: (param) => getInactiveTxList(client, param),
|
|
288
317
|
getMontInfoList: (param) => getMontInfoList(client, param),
|
|
289
318
|
getNodeStatus: () => getNodeStatus(client),
|
|
319
|
+
getNodeVersion: () => getNodeVersion(client),
|
|
290
320
|
getOwnerBalance: () => getOwnerBalance(client),
|
|
291
321
|
getRoundState: (param) => getRoundState(client, param),
|
|
292
322
|
getRoundStatesList: (param) => getRoundStatesList(client, param),
|
|
@@ -301,10 +331,12 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
301
331
|
readTxListWitness: (params) => readTxListWitness(client, params),
|
|
302
332
|
setHost: (param) => setHost(client, param),
|
|
303
333
|
subscribeAddress: (params) => subscribeAddress(client, params),
|
|
334
|
+
upliftProofW: (params) => upliftProofW(client, params),
|
|
304
335
|
uploadAccountTxs: (param) => uploadAccountTxs(client, param),
|
|
305
336
|
verifyAndSignChallenge: (param) => verifyAndSignChallenge(client, param),
|
|
306
337
|
verifyIdentityProof: (param) => verifyIdentityProof(client, param),
|
|
307
338
|
verifyLatestStoredDataProof: (params) => verifyLatestStoredDataProof(client, params),
|
|
339
|
+
verifyProofW: (params) => verifyProofW(client, params),
|
|
308
340
|
verifyTxListWitness: (params) => verifyTxListWitness(client, params),
|
|
309
341
|
});
|
|
310
342
|
|
|
@@ -502,6 +534,15 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
502
534
|
});
|
|
503
535
|
}
|
|
504
536
|
|
|
537
|
+
// Automatically generated file. DO NOT EDIT.
|
|
538
|
+
function forwardAssetObject(client, params) {
|
|
539
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
540
|
+
const prepared = yield _prepareTransaction(client, { method: 'locus_forwardAssetObject', params: [params] });
|
|
541
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
542
|
+
return _sendPreparedTransaction(client, signed);
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
|
|
505
546
|
// Automatically generated file. DO NOT EDIT.
|
|
506
547
|
function forwardCoin(client, param) {
|
|
507
548
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -511,6 +552,15 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
511
552
|
});
|
|
512
553
|
}
|
|
513
554
|
|
|
555
|
+
// Automatically generated file. DO NOT EDIT.
|
|
556
|
+
function forwardToken(client, params) {
|
|
557
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
558
|
+
const prepared = yield _prepareTransaction(client, { method: 'locus_forwardToken', params: [params] });
|
|
559
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
560
|
+
return _sendPreparedTransaction(client, signed);
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
|
|
514
564
|
// Automatically generated file. DO NOT EDIT.
|
|
515
565
|
function freezeAccount(client, params) {
|
|
516
566
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -565,6 +615,24 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
565
615
|
});
|
|
566
616
|
}
|
|
567
617
|
|
|
618
|
+
// Automatically generated file. DO NOT EDIT.
|
|
619
|
+
function transfer(client, params) {
|
|
620
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
621
|
+
const prepared = yield _prepareTransaction(client, { method: 'locus_transfer', params: [params] });
|
|
622
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
623
|
+
return _sendPreparedTransaction(client, signed);
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
// Automatically generated file. DO NOT EDIT.
|
|
628
|
+
function transferAllRes(client, params) {
|
|
629
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
630
|
+
const prepared = yield _prepareTransaction(client, { method: 'locus_transferAllRes', params: [params] });
|
|
631
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
632
|
+
return _sendPreparedTransaction(client, signed);
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
|
|
568
636
|
// Automatically generated file. DO NOT EDIT.
|
|
569
637
|
function transferAssetObject(client, params) {
|
|
570
638
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -612,13 +680,17 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
612
680
|
createAssetObject: (param) => createAssetObject(client, param),
|
|
613
681
|
createToken: (param) => createToken(client, param),
|
|
614
682
|
createVme: (param) => createVme(client, param),
|
|
683
|
+
forwardAssetObject: (params) => forwardAssetObject(client, params),
|
|
615
684
|
forwardCoin: (param) => forwardCoin(client, param),
|
|
685
|
+
forwardToken: (params) => forwardToken(client, params),
|
|
616
686
|
freezeAccount: (params) => freezeAccount(client, params),
|
|
617
687
|
lockStake: (params) => lockStake(client, params),
|
|
618
688
|
openAccount: (param) => openAccount(client, param),
|
|
619
689
|
postData: (params) => postData(client, params),
|
|
620
690
|
provideScript: (params) => provideScript(client, params),
|
|
621
691
|
requestDataTrade: (params) => requestDataTrade(client, params),
|
|
692
|
+
transfer: (params) => transfer(client, params),
|
|
693
|
+
transferAllRes: (params) => transferAllRes(client, params),
|
|
622
694
|
transferAssetObject: (params) => transferAssetObject(client, params),
|
|
623
695
|
transferCoin: (param) => transferCoin(client, param),
|
|
624
696
|
transferToken: (params) => transferToken(client, params),
|
|
@@ -861,6 +933,15 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
861
933
|
viewVme: (param) => viewVme(client, param),
|
|
862
934
|
});
|
|
863
935
|
|
|
936
|
+
// Automatically generated file. DO NOT EDIT.
|
|
937
|
+
function callContract(client, param) {
|
|
938
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
939
|
+
const prepared = yield _prepareTransaction(client, { method: 'debug_callContract', params: [param] });
|
|
940
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
941
|
+
return _sendPreparedTransaction(client, signed);
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
|
|
864
945
|
// Automatically generated file. DO NOT EDIT.
|
|
865
946
|
function callVme(client, param) {
|
|
866
947
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -870,6 +951,15 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
870
951
|
});
|
|
871
952
|
}
|
|
872
953
|
|
|
954
|
+
// Automatically generated file. DO NOT EDIT.
|
|
955
|
+
function createContract(client, param) {
|
|
956
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
957
|
+
const prepared = yield _prepareTransaction(client, { method: 'debug_createContract', params: [param] });
|
|
958
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
959
|
+
return _sendPreparedTransaction(client, signed);
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
|
|
873
963
|
// Automatically generated file. DO NOT EDIT.
|
|
874
964
|
function createSynthAccount(client, param) {
|
|
875
965
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -890,7 +980,9 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
890
980
|
|
|
891
981
|
// Automatically generated file. DO NOT EDIT.
|
|
892
982
|
const debugWalletActions = (client) => ({
|
|
983
|
+
callContract: (param) => callContract(client, param),
|
|
893
984
|
callVme: (param) => callVme(client, param),
|
|
985
|
+
createContract: (param) => createContract(client, param),
|
|
894
986
|
createSynthAccount: (param) => createSynthAccount(client, param),
|
|
895
987
|
postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
|
|
896
988
|
});
|
|
@@ -903,7 +995,9 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
903
995
|
exports.balanceList = balanceList;
|
|
904
996
|
exports.becomeGuest = becomeGuest;
|
|
905
997
|
exports.becomeHost = becomeHost;
|
|
906
|
-
exports.
|
|
998
|
+
exports.calculateSpentByForward = calculateSpentByForward;
|
|
999
|
+
exports.calculateSpentByForwardList = calculateSpentByForwardList;
|
|
1000
|
+
exports.callContract = callContract;
|
|
907
1001
|
exports.callVme = callVme;
|
|
908
1002
|
exports.changeKey = changeKey;
|
|
909
1003
|
exports.changeVkey = changeVkey;
|
|
@@ -911,6 +1005,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
911
1005
|
exports.closeAccount = closeAccount;
|
|
912
1006
|
exports.createAccount = createAccount;
|
|
913
1007
|
exports.createAssetObject = createAssetObject;
|
|
1008
|
+
exports.createContract = createContract;
|
|
914
1009
|
exports.createNode = createNode;
|
|
915
1010
|
exports.createSynthAccount = createSynthAccount;
|
|
916
1011
|
exports.createToken = createToken;
|
|
@@ -922,7 +1017,9 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
922
1017
|
exports.echo = echo;
|
|
923
1018
|
exports.echo$1 = echo$1;
|
|
924
1019
|
exports.findDuplicateSubscriber = findDuplicateSubscriber;
|
|
1020
|
+
exports.forwardAssetObject = forwardAssetObject;
|
|
925
1021
|
exports.forwardCoin = forwardCoin;
|
|
1022
|
+
exports.forwardToken = forwardToken;
|
|
926
1023
|
exports.freezeAccount = freezeAccount;
|
|
927
1024
|
exports.gameChainCmd = gameChainCmd;
|
|
928
1025
|
exports.generateLatestStoredDataProof = generateLatestStoredDataProof;
|
|
@@ -945,6 +1042,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
945
1042
|
exports.getMontInfoList = getMontInfoList;
|
|
946
1043
|
exports.getNodeBlocks = getNodeBlocks;
|
|
947
1044
|
exports.getNodeStatus = getNodeStatus;
|
|
1045
|
+
exports.getNodeVersion = getNodeVersion;
|
|
948
1046
|
exports.getOwnerBalance = getOwnerBalance;
|
|
949
1047
|
exports.getPeerPool = getPeerPool;
|
|
950
1048
|
exports.getPeersInfo = getPeersInfo;
|
|
@@ -978,14 +1076,18 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
978
1076
|
exports.setImportAccountTx = setImportAccountTx;
|
|
979
1077
|
exports.setReliableNode = setReliableNode;
|
|
980
1078
|
exports.subscribeAddress = subscribeAddress;
|
|
1079
|
+
exports.transfer = transfer;
|
|
1080
|
+
exports.transferAllRes = transferAllRes;
|
|
981
1081
|
exports.transferAssetObject = transferAssetObject;
|
|
982
1082
|
exports.transferCoin = transferCoin;
|
|
983
1083
|
exports.transferToken = transferToken;
|
|
984
1084
|
exports.unlockStake = unlockStake;
|
|
1085
|
+
exports.upliftProofW = upliftProofW;
|
|
985
1086
|
exports.uploadAccountTxs = uploadAccountTxs;
|
|
986
1087
|
exports.verifyAndSignChallenge = verifyAndSignChallenge;
|
|
987
1088
|
exports.verifyIdentityProof = verifyIdentityProof;
|
|
988
1089
|
exports.verifyLatestStoredDataProof = verifyLatestStoredDataProof;
|
|
1090
|
+
exports.verifyProofW = verifyProofW;
|
|
989
1091
|
exports.verifyTxListWitness = verifyTxListWitness;
|
|
990
1092
|
exports.viewVme = viewVme;
|
|
991
1093
|
exports.walletActions = walletActions;
|
|
@@ -19,9 +19,16 @@ function accountHeightsToUpload(client, param) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// Automatically generated file. DO NOT EDIT.
|
|
22
|
-
function
|
|
22
|
+
function calculateSpentByForward(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_calculateSpentByForward', params: [param] });
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Automatically generated file. DO NOT EDIT.
|
|
29
|
+
function calculateSpentByForwardList(client, param) {
|
|
30
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
return client.request({ method: 'locus_calculateSpentByForwardList', params: [param] });
|
|
25
32
|
});
|
|
26
33
|
}
|
|
27
34
|
|
|
@@ -137,6 +144,13 @@ function getNodeStatus(client) {
|
|
|
137
144
|
});
|
|
138
145
|
}
|
|
139
146
|
|
|
147
|
+
// Automatically generated file. DO NOT EDIT.
|
|
148
|
+
function getNodeVersion(client) {
|
|
149
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
return client.request({ method: 'locus_getNodeVersion', params: [] });
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
|
|
140
154
|
// Automatically generated file. DO NOT EDIT.
|
|
141
155
|
function getOwnerBalance(client) {
|
|
142
156
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -235,6 +249,13 @@ function subscribeAddress(client, params) {
|
|
|
235
249
|
});
|
|
236
250
|
}
|
|
237
251
|
|
|
252
|
+
// Automatically generated file. DO NOT EDIT.
|
|
253
|
+
function upliftProofW(client, params) {
|
|
254
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
return client.request({ method: 'locus_upliftProofW', params: [params] });
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
|
|
238
259
|
// Automatically generated file. DO NOT EDIT.
|
|
239
260
|
function uploadAccountTxs(client, param) {
|
|
240
261
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -263,6 +284,13 @@ function verifyLatestStoredDataProof(client, params) {
|
|
|
263
284
|
});
|
|
264
285
|
}
|
|
265
286
|
|
|
287
|
+
// Automatically generated file. DO NOT EDIT.
|
|
288
|
+
function verifyProofW(client, params) {
|
|
289
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
290
|
+
return client.request({ method: 'locus_verifyProofW', params: [params] });
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
|
|
266
294
|
// Automatically generated file. DO NOT EDIT.
|
|
267
295
|
function verifyTxListWitness(client, params) {
|
|
268
296
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -274,7 +302,8 @@ function verifyTxListWitness(client, params) {
|
|
|
274
302
|
const publicActions = (client) => ({
|
|
275
303
|
accountHeightsToDownload: (param) => accountHeightsToDownload(client, param),
|
|
276
304
|
accountHeightsToUpload: (param) => accountHeightsToUpload(client, param),
|
|
277
|
-
|
|
305
|
+
calculateSpentByForward: (param) => calculateSpentByForward(client, param),
|
|
306
|
+
calculateSpentByForwardList: (param) => calculateSpentByForwardList(client, param),
|
|
278
307
|
clientMessage: (param) => clientMessage(client, param),
|
|
279
308
|
downloadAccountTxs: (param) => downloadAccountTxs(client, param),
|
|
280
309
|
echo: (str) => echo$1(client, str),
|
|
@@ -291,6 +320,7 @@ const publicActions = (client) => ({
|
|
|
291
320
|
getInactiveTxList: (param) => getInactiveTxList(client, param),
|
|
292
321
|
getMontInfoList: (param) => getMontInfoList(client, param),
|
|
293
322
|
getNodeStatus: () => getNodeStatus(client),
|
|
323
|
+
getNodeVersion: () => getNodeVersion(client),
|
|
294
324
|
getOwnerBalance: () => getOwnerBalance(client),
|
|
295
325
|
getRoundState: (param) => getRoundState(client, param),
|
|
296
326
|
getRoundStatesList: (param) => getRoundStatesList(client, param),
|
|
@@ -305,10 +335,12 @@ const publicActions = (client) => ({
|
|
|
305
335
|
readTxListWitness: (params) => readTxListWitness(client, params),
|
|
306
336
|
setHost: (param) => setHost(client, param),
|
|
307
337
|
subscribeAddress: (params) => subscribeAddress(client, params),
|
|
338
|
+
upliftProofW: (params) => upliftProofW(client, params),
|
|
308
339
|
uploadAccountTxs: (param) => uploadAccountTxs(client, param),
|
|
309
340
|
verifyAndSignChallenge: (param) => verifyAndSignChallenge(client, param),
|
|
310
341
|
verifyIdentityProof: (param) => verifyIdentityProof(client, param),
|
|
311
342
|
verifyLatestStoredDataProof: (params) => verifyLatestStoredDataProof(client, params),
|
|
343
|
+
verifyProofW: (params) => verifyProofW(client, params),
|
|
312
344
|
verifyTxListWitness: (params) => verifyTxListWitness(client, params),
|
|
313
345
|
});
|
|
314
346
|
|
|
@@ -506,6 +538,15 @@ function createVme(client, param) {
|
|
|
506
538
|
});
|
|
507
539
|
}
|
|
508
540
|
|
|
541
|
+
// Automatically generated file. DO NOT EDIT.
|
|
542
|
+
function forwardAssetObject(client, params) {
|
|
543
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
544
|
+
const prepared = yield _prepareTransaction(client, { method: 'locus_forwardAssetObject', params: [params] });
|
|
545
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
546
|
+
return _sendPreparedTransaction(client, signed);
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
|
|
509
550
|
// Automatically generated file. DO NOT EDIT.
|
|
510
551
|
function forwardCoin(client, param) {
|
|
511
552
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -515,6 +556,15 @@ function forwardCoin(client, param) {
|
|
|
515
556
|
});
|
|
516
557
|
}
|
|
517
558
|
|
|
559
|
+
// Automatically generated file. DO NOT EDIT.
|
|
560
|
+
function forwardToken(client, params) {
|
|
561
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
562
|
+
const prepared = yield _prepareTransaction(client, { method: 'locus_forwardToken', params: [params] });
|
|
563
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
564
|
+
return _sendPreparedTransaction(client, signed);
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
|
|
518
568
|
// Automatically generated file. DO NOT EDIT.
|
|
519
569
|
function freezeAccount(client, params) {
|
|
520
570
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -569,6 +619,24 @@ function requestDataTrade(client, params) {
|
|
|
569
619
|
});
|
|
570
620
|
}
|
|
571
621
|
|
|
622
|
+
// Automatically generated file. DO NOT EDIT.
|
|
623
|
+
function transfer(client, params) {
|
|
624
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
625
|
+
const prepared = yield _prepareTransaction(client, { method: 'locus_transfer', params: [params] });
|
|
626
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
627
|
+
return _sendPreparedTransaction(client, signed);
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// Automatically generated file. DO NOT EDIT.
|
|
632
|
+
function transferAllRes(client, params) {
|
|
633
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
634
|
+
const prepared = yield _prepareTransaction(client, { method: 'locus_transferAllRes', params: [params] });
|
|
635
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
636
|
+
return _sendPreparedTransaction(client, signed);
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
|
|
572
640
|
// Automatically generated file. DO NOT EDIT.
|
|
573
641
|
function transferAssetObject(client, params) {
|
|
574
642
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -616,13 +684,17 @@ const walletActions = (client) => ({
|
|
|
616
684
|
createAssetObject: (param) => createAssetObject(client, param),
|
|
617
685
|
createToken: (param) => createToken(client, param),
|
|
618
686
|
createVme: (param) => createVme(client, param),
|
|
687
|
+
forwardAssetObject: (params) => forwardAssetObject(client, params),
|
|
619
688
|
forwardCoin: (param) => forwardCoin(client, param),
|
|
689
|
+
forwardToken: (params) => forwardToken(client, params),
|
|
620
690
|
freezeAccount: (params) => freezeAccount(client, params),
|
|
621
691
|
lockStake: (params) => lockStake(client, params),
|
|
622
692
|
openAccount: (param) => openAccount(client, param),
|
|
623
693
|
postData: (params) => postData(client, params),
|
|
624
694
|
provideScript: (params) => provideScript(client, params),
|
|
625
695
|
requestDataTrade: (params) => requestDataTrade(client, params),
|
|
696
|
+
transfer: (params) => transfer(client, params),
|
|
697
|
+
transferAllRes: (params) => transferAllRes(client, params),
|
|
626
698
|
transferAssetObject: (params) => transferAssetObject(client, params),
|
|
627
699
|
transferCoin: (param) => transferCoin(client, param),
|
|
628
700
|
transferToken: (params) => transferToken(client, params),
|
|
@@ -865,6 +937,15 @@ const debugPublicActions = (client) => ({
|
|
|
865
937
|
viewVme: (param) => viewVme(client, param),
|
|
866
938
|
});
|
|
867
939
|
|
|
940
|
+
// Automatically generated file. DO NOT EDIT.
|
|
941
|
+
function callContract(client, param) {
|
|
942
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
943
|
+
const prepared = yield _prepareTransaction(client, { method: 'debug_callContract', params: [param] });
|
|
944
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
945
|
+
return _sendPreparedTransaction(client, signed);
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
|
|
868
949
|
// Automatically generated file. DO NOT EDIT.
|
|
869
950
|
function callVme(client, param) {
|
|
870
951
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -874,6 +955,15 @@ function callVme(client, param) {
|
|
|
874
955
|
});
|
|
875
956
|
}
|
|
876
957
|
|
|
958
|
+
// Automatically generated file. DO NOT EDIT.
|
|
959
|
+
function createContract(client, param) {
|
|
960
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
961
|
+
const prepared = yield _prepareTransaction(client, { method: 'debug_createContract', params: [param] });
|
|
962
|
+
const signed = yield _signLocusTransaction(client.account, prepared);
|
|
963
|
+
return _sendPreparedTransaction(client, signed);
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
|
|
877
967
|
// Automatically generated file. DO NOT EDIT.
|
|
878
968
|
function createSynthAccount(client, param) {
|
|
879
969
|
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -894,7 +984,9 @@ function postDataToSynthAccount(client, param) {
|
|
|
894
984
|
|
|
895
985
|
// Automatically generated file. DO NOT EDIT.
|
|
896
986
|
const debugWalletActions = (client) => ({
|
|
987
|
+
callContract: (param) => callContract(client, param),
|
|
897
988
|
callVme: (param) => callVme(client, param),
|
|
989
|
+
createContract: (param) => createContract(client, param),
|
|
898
990
|
createSynthAccount: (param) => createSynthAccount(client, param),
|
|
899
991
|
postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
|
|
900
992
|
});
|
|
@@ -907,7 +999,9 @@ exports.balanceGrantList = balanceGrantList;
|
|
|
907
999
|
exports.balanceList = balanceList;
|
|
908
1000
|
exports.becomeGuest = becomeGuest;
|
|
909
1001
|
exports.becomeHost = becomeHost;
|
|
910
|
-
exports.
|
|
1002
|
+
exports.calculateSpentByForward = calculateSpentByForward;
|
|
1003
|
+
exports.calculateSpentByForwardList = calculateSpentByForwardList;
|
|
1004
|
+
exports.callContract = callContract;
|
|
911
1005
|
exports.callVme = callVme;
|
|
912
1006
|
exports.changeKey = changeKey;
|
|
913
1007
|
exports.changeVkey = changeVkey;
|
|
@@ -915,6 +1009,7 @@ exports.clientMessage = clientMessage;
|
|
|
915
1009
|
exports.closeAccount = closeAccount;
|
|
916
1010
|
exports.createAccount = createAccount;
|
|
917
1011
|
exports.createAssetObject = createAssetObject;
|
|
1012
|
+
exports.createContract = createContract;
|
|
918
1013
|
exports.createNode = createNode;
|
|
919
1014
|
exports.createSynthAccount = createSynthAccount;
|
|
920
1015
|
exports.createToken = createToken;
|
|
@@ -926,7 +1021,9 @@ exports.dumpAllAccounts = dumpAllAccounts;
|
|
|
926
1021
|
exports.echo = echo;
|
|
927
1022
|
exports.echo$1 = echo$1;
|
|
928
1023
|
exports.findDuplicateSubscriber = findDuplicateSubscriber;
|
|
1024
|
+
exports.forwardAssetObject = forwardAssetObject;
|
|
929
1025
|
exports.forwardCoin = forwardCoin;
|
|
1026
|
+
exports.forwardToken = forwardToken;
|
|
930
1027
|
exports.freezeAccount = freezeAccount;
|
|
931
1028
|
exports.gameChainCmd = gameChainCmd;
|
|
932
1029
|
exports.generateLatestStoredDataProof = generateLatestStoredDataProof;
|
|
@@ -949,6 +1046,7 @@ exports.getKeys = getKeys;
|
|
|
949
1046
|
exports.getMontInfoList = getMontInfoList;
|
|
950
1047
|
exports.getNodeBlocks = getNodeBlocks;
|
|
951
1048
|
exports.getNodeStatus = getNodeStatus;
|
|
1049
|
+
exports.getNodeVersion = getNodeVersion;
|
|
952
1050
|
exports.getOwnerBalance = getOwnerBalance;
|
|
953
1051
|
exports.getPeerPool = getPeerPool;
|
|
954
1052
|
exports.getPeersInfo = getPeersInfo;
|
|
@@ -982,14 +1080,18 @@ exports.setHost = setHost;
|
|
|
982
1080
|
exports.setImportAccountTx = setImportAccountTx;
|
|
983
1081
|
exports.setReliableNode = setReliableNode;
|
|
984
1082
|
exports.subscribeAddress = subscribeAddress;
|
|
1083
|
+
exports.transfer = transfer;
|
|
1084
|
+
exports.transferAllRes = transferAllRes;
|
|
985
1085
|
exports.transferAssetObject = transferAssetObject;
|
|
986
1086
|
exports.transferCoin = transferCoin;
|
|
987
1087
|
exports.transferToken = transferToken;
|
|
988
1088
|
exports.unlockStake = unlockStake;
|
|
1089
|
+
exports.upliftProofW = upliftProofW;
|
|
989
1090
|
exports.uploadAccountTxs = uploadAccountTxs;
|
|
990
1091
|
exports.verifyAndSignChallenge = verifyAndSignChallenge;
|
|
991
1092
|
exports.verifyIdentityProof = verifyIdentityProof;
|
|
992
1093
|
exports.verifyLatestStoredDataProof = verifyLatestStoredDataProof;
|
|
1094
|
+
exports.verifyProofW = verifyProofW;
|
|
993
1095
|
exports.verifyTxListWitness = verifyTxListWitness;
|
|
994
1096
|
exports.viewVme = viewVme;
|
|
995
1097
|
exports.walletActions = walletActions;
|