@locuschain/lib 0.2.10 → 0.2.12
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 +2 -3
- package/dist/accounts/index.esm.js +2 -3
- package/dist/actions/wallet/directCall.d.cts +18 -0
- package/dist/actions/wallet/directCall.d.mts +18 -0
- package/dist/autogen/debugWalletActions.d.cts +2 -0
- package/dist/autogen/debugWalletActions.d.mts +2 -0
- package/dist/autogen/index.amd.js +1 -1
- package/dist/autogen/index.cjs.cjs +2 -3
- package/dist/autogen/index.esm.js +3 -4
- package/dist/autogen/types/common/index.d.cts +0 -2
- package/dist/autogen/types/common/index.d.mts +0 -2
- package/dist/autogen/types/common/tx-base.d.cts +2 -1
- package/dist/autogen/types/common/tx-base.d.mts +2 -1
- package/dist/autogen/types/consts/tx-type.d.cts +10 -10
- package/dist/autogen/types/consts/tx-type.d.mts +10 -10
- package/dist/autogen/types/consts/tx-types.d.cts +10 -10
- package/dist/autogen/types/consts/tx-types.d.mts +10 -10
- package/dist/autogen/types/tx/tx-restore-res-hash.d.cts +5 -4
- package/dist/autogen/types/tx/tx-restore-res-hash.d.mts +5 -4
- package/dist/autogen/wasm/lclib.wasm +0 -0
- package/dist/chunks/{debugWalletActions-LMoV1T5I.js → debugWalletActions-BIr5g97C.js} +32 -0
- package/dist/chunks/{debugWalletActions-BWSVjiFW.cjs → debugWalletActions-DEdW7RNn.cjs} +32 -0
- package/dist/chunks/{debugWalletActions-DoZUAnEj.js → debugWalletActions-Eu-0KUqt.js} +32 -1
- package/dist/chunks/{keystore-JnuLzkLn.js → keystore-BaRONuW-.js} +1 -1
- package/dist/chunks/{keystore-DS8JZhXs.cjs → keystore-DcTOPfuF.cjs} +1 -1
- package/dist/chunks/{keystore-BPU22XT-.js → keystore-Dz4yB829.js} +1 -1
- package/dist/chunks/{tx-type-Dyjdmlv8.js → tx-type-BFIIZuLV.js} +10 -10
- package/dist/chunks/{tx-type-CKrHKEwY.cjs → tx-type-BPfUG6kE.cjs} +10 -10
- package/dist/chunks/{tx-type-CXyml-9n.js → tx-type-nqiwUdYa.js} +10 -10
- package/dist/chunks/{lclib-j2x9RvDY.js → wasm-B1dWd6ix.js} +174 -1
- package/dist/chunks/{lclib-Bv86gksL.js → wasm-BQYfcIX8.js} +222 -1
- package/dist/chunks/{lclib-rGyKpClJ.cjs → wasm-DDrQluVO.cjs} +237 -16
- package/dist/clients/createLocusWalletClient.d.cts +1 -0
- package/dist/clients/createLocusWalletClient.d.mts +1 -0
- package/dist/clients/index.amd.js +1 -1
- package/dist/clients/index.cjs.cjs +2 -2
- package/dist/clients/index.esm.js +2 -2
- package/dist/constant/index.amd.js +37 -37
- package/dist/constant/index.cjs.cjs +37 -37
- package/dist/constant/index.d.cts +20 -20
- package/dist/constant/index.d.mts +20 -20
- package/dist/constant/index.esm.js +37 -37
- package/dist/contracts/index.amd.js +1 -1
- package/dist/contracts/index.cjs.cjs +1 -2
- package/dist/contracts/index.esm.js +1 -2
- package/dist/index.amd.js +1 -1
- package/dist/index.cjs.cjs +4 -5
- package/dist/index.esm.js +4 -5
- package/dist/utils/index.amd.js +2 -2
- package/dist/utils/index.cjs.cjs +4 -5
- package/dist/utils/index.esm.js +4 -5
- package/package.json +2 -2
- package/dist/autogen/types/common/asset-object-transfer.d.cts +0 -6
- package/dist/autogen/types/common/asset-object-transfer.d.mts +0 -6
- package/dist/autogen/types/common/tx-restore-res-hash-proof.d.cts +0 -9
- package/dist/autogen/types/common/tx-restore-res-hash-proof.d.mts +0 -9
- package/dist/chunks/wasm-CU215LGW.js +0 -175
- package/dist/chunks/wasm-dbtq7eri.cjs +0 -225
- package/dist/chunks/wasm-gROtmFm6.js +0 -225
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8'], (function (exports, tslib_es6, rpc, account) { 'use strict';
|
|
1
|
+
define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8', './wasm-BQYfcIX8'], (function (exports, tslib_es6, rpc, account, wasm) { 'use strict';
|
|
2
2
|
|
|
3
3
|
// Automatically generated file. DO NOT EDIT.
|
|
4
4
|
function accountHeightsToDownload(client, param) {
|
|
@@ -1034,6 +1034,36 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
|
+
/**
|
|
1038
|
+
* [임시] caller-signed VME direct-call 전용 메서드.
|
|
1039
|
+
*
|
|
1040
|
+
* 기존 autogen 액션은 "1 메서드 = 1 RPC" 형태인데, direct-call 은
|
|
1041
|
+
* 1) debug_buildDirectCall — 노드가 KeyProof 를 채운 미서명 요청 + signableHash 반환
|
|
1042
|
+
* 2) (signableHash 서명) — caller 의 normal 키로 서명 (노드는 KeyProof.Pkey = 계정
|
|
1043
|
+
* normal pkey 로 검증; 일반 tx 서명과 동일 primitive)
|
|
1044
|
+
* 3) debug_submitDirectCall — { request, sign } 제출 → admit
|
|
1045
|
+
* 처럼 RPC 2번 + 중간 서명이 필요해 한 메서드로 묶는다.
|
|
1046
|
+
*
|
|
1047
|
+
* 표준 prepare→sign→send 헬퍼(_prepareTransaction 등)는 Locus tx 엔벨로프
|
|
1048
|
+
* (hash/tx) 전제라 build/submit 의 다른 shape(signableHash/request)에 맞지 않아
|
|
1049
|
+
* 별도 메서드로 둔다. autogen 이 아니므로 코드 재생성에도 보존된다.
|
|
1050
|
+
*/
|
|
1051
|
+
function directCall(client, param) {
|
|
1052
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
1053
|
+
if (!client.account)
|
|
1054
|
+
throw new account.AccountRequiredError('debug_buildDirectCall');
|
|
1055
|
+
const built = yield buildDirectCall(client, param);
|
|
1056
|
+
// signableHash 는 node 가 hex(hex.EncodeToString)로 주지만, WASM sign 은 일반 tx 처럼
|
|
1057
|
+
// "Data"(base64) 메시지를 기대한다(Digest.EncodeToString = base64). hex 그대로 서명하면
|
|
1058
|
+
// 서명 바이트가 어긋나 노드의 KeyProof.Pkey 검증에 실패하므로 base64 로 변환 후 서명.
|
|
1059
|
+
const sign = yield client.account.signMessage({
|
|
1060
|
+
message: wasm.convertHexToData(built.signableHash),
|
|
1061
|
+
role: 'normal',
|
|
1062
|
+
});
|
|
1063
|
+
return submitDirectCall(client, { request: built.request, sign });
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1037
1067
|
// Automatically generated file. DO NOT EDIT.
|
|
1038
1068
|
const debugWalletActions = (client) => ({
|
|
1039
1069
|
callContract: (param) => callContract(client, param),
|
|
@@ -1041,6 +1071,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
|
|
|
1041
1071
|
createContract: (param) => createContract(client, param),
|
|
1042
1072
|
createSynthAccount: (param) => createSynthAccount(client, param),
|
|
1043
1073
|
postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
|
|
1074
|
+
directCall: (param) => directCall(client, param),
|
|
1044
1075
|
});
|
|
1045
1076
|
|
|
1046
1077
|
exports.acceptScript = acceptScript;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './wasm-
|
|
1
|
+
define(['exports', './wasm-BQYfcIX8', './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 두
|
|
@@ -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-B1dWd6ix.js';
|
|
2
2
|
import { B as BaseError } from './base-BQXfRsuw.js';
|
|
3
3
|
import { D as DegenerateKeyError } from './account-FZT9LH_s.js';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
7
7
|
BECOME_HOST: 'TX_BECOME_HOST',
|
|
8
8
|
BECOME_GUEST: 'TX_BECOME_GUEST',
|
|
9
9
|
TRANSFER_COIN: 'TX_TRANSFER_COIN',
|
|
10
|
-
|
|
10
|
+
TRANSFER_COIN_G: 'TX_TRANSFER_COIN_G',
|
|
11
11
|
FORWARD_COIN: 'TX_FORWARD_COIN',
|
|
12
12
|
ACTIVATE_COIN: 'TX_ACTIVATE_COIN',
|
|
13
13
|
ACTIVATE_INCENTIVE: 'TX_ACTIVATE_INCENTIVE',
|
|
@@ -16,23 +16,23 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
16
16
|
CHANGE_VKEY: 'TX_CHANGE_VKEY',
|
|
17
17
|
CHANGE_FOUNDATION_ACCOUNT: 'TX_CHANGE_FOUNDATION_ACCOUNT',
|
|
18
18
|
POST_DATA: 'TX_POST_DATA',
|
|
19
|
-
|
|
19
|
+
POST_DATA_G: 'TX_POST_DATA_G',
|
|
20
20
|
CREATE_TOKEN: 'TX_CREATE_TOKEN',
|
|
21
|
-
|
|
21
|
+
CREATE_TOKEN_G: 'TX_CREATE_TOKEN_G',
|
|
22
22
|
BURN_TOKEN: 'TX_BURN_TOKEN',
|
|
23
23
|
TRANSFER_TOKEN: 'TX_TRANSFER_TOKEN',
|
|
24
|
-
|
|
24
|
+
TRANSFER_TOKEN_G: 'TX_TRANSFER_TOKEN_G',
|
|
25
25
|
FORWARD_TOKEN: 'TX_FORWARD_TOKEN',
|
|
26
26
|
ACTIVATE_TOKEN: 'TX_ACTIVATE_TOKEN',
|
|
27
27
|
CREATE_ASSETOBJECT: 'TX_CREATE_ASSETOBJECT',
|
|
28
|
-
|
|
28
|
+
CREATE_ASSETOBJECT_G: 'TX_CREATE_ASSETOBJECT_G',
|
|
29
29
|
TRANSFER_ASSETOBJECT: 'TX_TRANSFER_ASSETOBJECT',
|
|
30
|
-
|
|
30
|
+
TRANSFER_ASSETOBJECT_G: 'TX_TRANSFER_ASSETOBJECT_G',
|
|
31
31
|
FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
|
|
32
32
|
ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
|
|
33
33
|
BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
|
|
34
34
|
TRANSFER_ALL_RES: 'TX_TRANSFER_ALL_RES',
|
|
35
|
-
|
|
35
|
+
TRANSFER_ALL_RES_G: 'TX_TRANSFER_ALL_RES_G',
|
|
36
36
|
REVOKE: 'TX_REVOKE',
|
|
37
37
|
CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
|
|
38
38
|
ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
|
|
@@ -40,10 +40,10 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
40
40
|
ACCEPT_SCRIPT: 'TX_ACCEPT_SCRIPT',
|
|
41
41
|
ACCEPT_SCRIPT_AFTER_TIMELOCK: 'TX_ACCEPT_SCRIPT_AFTER_TIMELOCK',
|
|
42
42
|
CREATE_SA: 'TX_CREATE_SA',
|
|
43
|
-
|
|
43
|
+
CREATE_SA_G: 'TX_CREATE_SA_G',
|
|
44
44
|
ACTIVATE_OPEN_SA: 'TX_ACTIVATE_OPEN_SA',
|
|
45
45
|
POST_DATA_SA: 'TX_POST_DATA_SA',
|
|
46
|
-
|
|
46
|
+
POST_DATA_SA_G: 'TX_POST_DATA_SA_G',
|
|
47
47
|
ACTIVATE_DATA_SA: 'TX_ACTIVATE_DATA_SA',
|
|
48
48
|
LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
|
|
49
49
|
ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
|
|
@@ -52,7 +52,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
52
52
|
ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
|
|
53
53
|
VME_BLOCK: 'TX_VME_BLOCK',
|
|
54
54
|
CALL_VME: 'TX_CALL_VME',
|
|
55
|
-
|
|
55
|
+
CALL_VME_G: 'TX_CALL_VME_G',
|
|
56
56
|
ACTIVATE_VME_TRANSFER: 'TX_ACTIVATE_VME_TRANSFER',
|
|
57
57
|
ACTIVATE_VME_RESULT: 'TX_ACTIVATE_VME_RESULT',
|
|
58
58
|
VME_TRANSFER_REWARD: 'TX_VME_TRANSFER_REWARD',
|
|
@@ -7,7 +7,7 @@ const TxType = Object.freeze({
|
|
|
7
7
|
BECOME_HOST: 'TX_BECOME_HOST',
|
|
8
8
|
BECOME_GUEST: 'TX_BECOME_GUEST',
|
|
9
9
|
TRANSFER_COIN: 'TX_TRANSFER_COIN',
|
|
10
|
-
|
|
10
|
+
TRANSFER_COIN_G: 'TX_TRANSFER_COIN_G',
|
|
11
11
|
FORWARD_COIN: 'TX_FORWARD_COIN',
|
|
12
12
|
ACTIVATE_COIN: 'TX_ACTIVATE_COIN',
|
|
13
13
|
ACTIVATE_INCENTIVE: 'TX_ACTIVATE_INCENTIVE',
|
|
@@ -16,23 +16,23 @@ const TxType = Object.freeze({
|
|
|
16
16
|
CHANGE_VKEY: 'TX_CHANGE_VKEY',
|
|
17
17
|
CHANGE_FOUNDATION_ACCOUNT: 'TX_CHANGE_FOUNDATION_ACCOUNT',
|
|
18
18
|
POST_DATA: 'TX_POST_DATA',
|
|
19
|
-
|
|
19
|
+
POST_DATA_G: 'TX_POST_DATA_G',
|
|
20
20
|
CREATE_TOKEN: 'TX_CREATE_TOKEN',
|
|
21
|
-
|
|
21
|
+
CREATE_TOKEN_G: 'TX_CREATE_TOKEN_G',
|
|
22
22
|
BURN_TOKEN: 'TX_BURN_TOKEN',
|
|
23
23
|
TRANSFER_TOKEN: 'TX_TRANSFER_TOKEN',
|
|
24
|
-
|
|
24
|
+
TRANSFER_TOKEN_G: 'TX_TRANSFER_TOKEN_G',
|
|
25
25
|
FORWARD_TOKEN: 'TX_FORWARD_TOKEN',
|
|
26
26
|
ACTIVATE_TOKEN: 'TX_ACTIVATE_TOKEN',
|
|
27
27
|
CREATE_ASSETOBJECT: 'TX_CREATE_ASSETOBJECT',
|
|
28
|
-
|
|
28
|
+
CREATE_ASSETOBJECT_G: 'TX_CREATE_ASSETOBJECT_G',
|
|
29
29
|
TRANSFER_ASSETOBJECT: 'TX_TRANSFER_ASSETOBJECT',
|
|
30
|
-
|
|
30
|
+
TRANSFER_ASSETOBJECT_G: 'TX_TRANSFER_ASSETOBJECT_G',
|
|
31
31
|
FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
|
|
32
32
|
ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
|
|
33
33
|
BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
|
|
34
34
|
TRANSFER_ALL_RES: 'TX_TRANSFER_ALL_RES',
|
|
35
|
-
|
|
35
|
+
TRANSFER_ALL_RES_G: 'TX_TRANSFER_ALL_RES_G',
|
|
36
36
|
REVOKE: 'TX_REVOKE',
|
|
37
37
|
CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
|
|
38
38
|
ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
|
|
@@ -40,10 +40,10 @@ const TxType = Object.freeze({
|
|
|
40
40
|
ACCEPT_SCRIPT: 'TX_ACCEPT_SCRIPT',
|
|
41
41
|
ACCEPT_SCRIPT_AFTER_TIMELOCK: 'TX_ACCEPT_SCRIPT_AFTER_TIMELOCK',
|
|
42
42
|
CREATE_SA: 'TX_CREATE_SA',
|
|
43
|
-
|
|
43
|
+
CREATE_SA_G: 'TX_CREATE_SA_G',
|
|
44
44
|
ACTIVATE_OPEN_SA: 'TX_ACTIVATE_OPEN_SA',
|
|
45
45
|
POST_DATA_SA: 'TX_POST_DATA_SA',
|
|
46
|
-
|
|
46
|
+
POST_DATA_SA_G: 'TX_POST_DATA_SA_G',
|
|
47
47
|
ACTIVATE_DATA_SA: 'TX_ACTIVATE_DATA_SA',
|
|
48
48
|
LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
|
|
49
49
|
ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
|
|
@@ -52,7 +52,7 @@ const TxType = Object.freeze({
|
|
|
52
52
|
ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
|
|
53
53
|
VME_BLOCK: 'TX_VME_BLOCK',
|
|
54
54
|
CALL_VME: 'TX_CALL_VME',
|
|
55
|
-
|
|
55
|
+
CALL_VME_G: 'TX_CALL_VME_G',
|
|
56
56
|
ACTIVATE_VME_TRANSFER: 'TX_ACTIVATE_VME_TRANSFER',
|
|
57
57
|
ACTIVATE_VME_RESULT: 'TX_ACTIVATE_VME_RESULT',
|
|
58
58
|
VME_TRANSFER_REWARD: 'TX_VME_TRANSFER_REWARD',
|
|
@@ -5,7 +5,7 @@ const TxType = Object.freeze({
|
|
|
5
5
|
BECOME_HOST: 'TX_BECOME_HOST',
|
|
6
6
|
BECOME_GUEST: 'TX_BECOME_GUEST',
|
|
7
7
|
TRANSFER_COIN: 'TX_TRANSFER_COIN',
|
|
8
|
-
|
|
8
|
+
TRANSFER_COIN_G: 'TX_TRANSFER_COIN_G',
|
|
9
9
|
FORWARD_COIN: 'TX_FORWARD_COIN',
|
|
10
10
|
ACTIVATE_COIN: 'TX_ACTIVATE_COIN',
|
|
11
11
|
ACTIVATE_INCENTIVE: 'TX_ACTIVATE_INCENTIVE',
|
|
@@ -14,23 +14,23 @@ const TxType = Object.freeze({
|
|
|
14
14
|
CHANGE_VKEY: 'TX_CHANGE_VKEY',
|
|
15
15
|
CHANGE_FOUNDATION_ACCOUNT: 'TX_CHANGE_FOUNDATION_ACCOUNT',
|
|
16
16
|
POST_DATA: 'TX_POST_DATA',
|
|
17
|
-
|
|
17
|
+
POST_DATA_G: 'TX_POST_DATA_G',
|
|
18
18
|
CREATE_TOKEN: 'TX_CREATE_TOKEN',
|
|
19
|
-
|
|
19
|
+
CREATE_TOKEN_G: 'TX_CREATE_TOKEN_G',
|
|
20
20
|
BURN_TOKEN: 'TX_BURN_TOKEN',
|
|
21
21
|
TRANSFER_TOKEN: 'TX_TRANSFER_TOKEN',
|
|
22
|
-
|
|
22
|
+
TRANSFER_TOKEN_G: 'TX_TRANSFER_TOKEN_G',
|
|
23
23
|
FORWARD_TOKEN: 'TX_FORWARD_TOKEN',
|
|
24
24
|
ACTIVATE_TOKEN: 'TX_ACTIVATE_TOKEN',
|
|
25
25
|
CREATE_ASSETOBJECT: 'TX_CREATE_ASSETOBJECT',
|
|
26
|
-
|
|
26
|
+
CREATE_ASSETOBJECT_G: 'TX_CREATE_ASSETOBJECT_G',
|
|
27
27
|
TRANSFER_ASSETOBJECT: 'TX_TRANSFER_ASSETOBJECT',
|
|
28
|
-
|
|
28
|
+
TRANSFER_ASSETOBJECT_G: 'TX_TRANSFER_ASSETOBJECT_G',
|
|
29
29
|
FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
|
|
30
30
|
ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
|
|
31
31
|
BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
|
|
32
32
|
TRANSFER_ALL_RES: 'TX_TRANSFER_ALL_RES',
|
|
33
|
-
|
|
33
|
+
TRANSFER_ALL_RES_G: 'TX_TRANSFER_ALL_RES_G',
|
|
34
34
|
REVOKE: 'TX_REVOKE',
|
|
35
35
|
CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
|
|
36
36
|
ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
|
|
@@ -38,10 +38,10 @@ const TxType = Object.freeze({
|
|
|
38
38
|
ACCEPT_SCRIPT: 'TX_ACCEPT_SCRIPT',
|
|
39
39
|
ACCEPT_SCRIPT_AFTER_TIMELOCK: 'TX_ACCEPT_SCRIPT_AFTER_TIMELOCK',
|
|
40
40
|
CREATE_SA: 'TX_CREATE_SA',
|
|
41
|
-
|
|
41
|
+
CREATE_SA_G: 'TX_CREATE_SA_G',
|
|
42
42
|
ACTIVATE_OPEN_SA: 'TX_ACTIVATE_OPEN_SA',
|
|
43
43
|
POST_DATA_SA: 'TX_POST_DATA_SA',
|
|
44
|
-
|
|
44
|
+
POST_DATA_SA_G: 'TX_POST_DATA_SA_G',
|
|
45
45
|
ACTIVATE_DATA_SA: 'TX_ACTIVATE_DATA_SA',
|
|
46
46
|
LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
|
|
47
47
|
ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
|
|
@@ -50,7 +50,7 @@ const TxType = Object.freeze({
|
|
|
50
50
|
ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
|
|
51
51
|
VME_BLOCK: 'TX_VME_BLOCK',
|
|
52
52
|
CALL_VME: 'TX_CALL_VME',
|
|
53
|
-
|
|
53
|
+
CALL_VME_G: 'TX_CALL_VME_G',
|
|
54
54
|
ACTIVATE_VME_TRANSFER: 'TX_ACTIVATE_VME_TRANSFER',
|
|
55
55
|
ACTIVATE_VME_RESULT: 'TX_ACTIVATE_VME_RESULT',
|
|
56
56
|
VME_TRANSFER_REWARD: 'TX_VME_TRANSFER_REWARD',
|
|
@@ -3838,4 +3838,177 @@ function load() {
|
|
|
3838
3838
|
});
|
|
3839
3839
|
}
|
|
3840
3840
|
|
|
3841
|
-
|
|
3841
|
+
// Automatically generated file. DO NOT EDIT.
|
|
3842
|
+
const callWasm = (cmd, params) => {
|
|
3843
|
+
// @ts-ignore
|
|
3844
|
+
let callLclib = globalThis["CallLclib"];
|
|
3845
|
+
// @ts-ignore
|
|
3846
|
+
if (namespace && globalThis[namespace]) {
|
|
3847
|
+
// @ts-ignore
|
|
3848
|
+
callLclib = globalThis[namespace]["CallLclib"];
|
|
3849
|
+
}
|
|
3850
|
+
// @ts-ignore
|
|
3851
|
+
if (typeof callLclib !== "function")
|
|
3852
|
+
throw new Error("Wasm module is not loaded. Please call loadWasm or loadWasmSync first.");
|
|
3853
|
+
// @ts-ignore
|
|
3854
|
+
const resultString = callLclib(cmd, JSON.stringify(params));
|
|
3855
|
+
const result = JSON.parse(resultString);
|
|
3856
|
+
if (result.error && result.error.code != 0) {
|
|
3857
|
+
// throw a real Error so message is preserved; attach code and other fields.
|
|
3858
|
+
const error = new Error(result.error.message || ("wasm error code " + result.error.code));
|
|
3859
|
+
Object.assign(error, result.error);
|
|
3860
|
+
throw error;
|
|
3861
|
+
}
|
|
3862
|
+
else {
|
|
3863
|
+
return result.result;
|
|
3864
|
+
}
|
|
3865
|
+
};
|
|
3866
|
+
const calculateTxLinkHash = (params) => {
|
|
3867
|
+
return callWasm('calculateTxLinkHash', [params]);
|
|
3868
|
+
};
|
|
3869
|
+
const compileCoreScript = (params) => {
|
|
3870
|
+
return callWasm('compileCoreScript', [params]);
|
|
3871
|
+
};
|
|
3872
|
+
const convertAddressToData = (addrEncoded) => {
|
|
3873
|
+
return callWasm('convertAddressToData', [addrEncoded]);
|
|
3874
|
+
};
|
|
3875
|
+
const convertAddressToHex = (addrEncoded) => {
|
|
3876
|
+
return callWasm('convertAddressToHex', [addrEncoded]);
|
|
3877
|
+
};
|
|
3878
|
+
const convertBase32ToData = (encoded) => {
|
|
3879
|
+
return callWasm('convertBase32ToData', [encoded]);
|
|
3880
|
+
};
|
|
3881
|
+
const convertBase32ToHex = (encoded) => {
|
|
3882
|
+
return callWasm('convertBase32ToHex', [encoded]);
|
|
3883
|
+
};
|
|
3884
|
+
const convertCurrency = (params) => {
|
|
3885
|
+
return callWasm('convertCurrency', [params]);
|
|
3886
|
+
};
|
|
3887
|
+
const convertDataTo = (value, retType) => {
|
|
3888
|
+
return callWasm('convertDataTo', [value, retType]);
|
|
3889
|
+
};
|
|
3890
|
+
const convertDataToAddress = (str) => {
|
|
3891
|
+
return callWasm('convertDataToAddress', [str]);
|
|
3892
|
+
};
|
|
3893
|
+
const convertDataToBase32 = (str) => {
|
|
3894
|
+
return callWasm('convertDataToBase32', [str]);
|
|
3895
|
+
};
|
|
3896
|
+
const convertDataToHex = (str) => {
|
|
3897
|
+
return callWasm('convertDataToHex', [str]);
|
|
3898
|
+
};
|
|
3899
|
+
const convertDataToString = (str) => {
|
|
3900
|
+
return callWasm('convertDataToString', [str]);
|
|
3901
|
+
};
|
|
3902
|
+
const convertHexToAddress = (hexString) => {
|
|
3903
|
+
return callWasm('convertHexToAddress', [hexString]);
|
|
3904
|
+
};
|
|
3905
|
+
const convertHexToBase32 = (hexString) => {
|
|
3906
|
+
return callWasm('convertHexToBase32', [hexString]);
|
|
3907
|
+
};
|
|
3908
|
+
const convertHexToData = (encoded) => {
|
|
3909
|
+
return callWasm('convertHexToData', [encoded]);
|
|
3910
|
+
};
|
|
3911
|
+
const convertStringToData = (raw) => {
|
|
3912
|
+
return callWasm('convertStringToData', [raw]);
|
|
3913
|
+
};
|
|
3914
|
+
const convertToData = (value, valueType) => {
|
|
3915
|
+
return callWasm('convertToData', [value, valueType]);
|
|
3916
|
+
};
|
|
3917
|
+
const createAccountAndKeystore = (params) => {
|
|
3918
|
+
return callWasm('createAccountAndKeystore', [params]);
|
|
3919
|
+
};
|
|
3920
|
+
const createMasterKeystore = (params) => {
|
|
3921
|
+
return callWasm('createMasterKeystore', [params]);
|
|
3922
|
+
};
|
|
3923
|
+
const createNormalKey = (params) => {
|
|
3924
|
+
return callWasm('createNormalKey', [params]);
|
|
3925
|
+
};
|
|
3926
|
+
const createNormalKeystore = (params) => {
|
|
3927
|
+
return callWasm('createNormalKeystore', [params]);
|
|
3928
|
+
};
|
|
3929
|
+
const decodeSubId = (subIdString) => {
|
|
3930
|
+
return callWasm('decodeSubId', [subIdString]);
|
|
3931
|
+
};
|
|
3932
|
+
const decodeTxs = (params) => {
|
|
3933
|
+
return callWasm('decodeTxs', [params]);
|
|
3934
|
+
};
|
|
3935
|
+
const deriveKeysFromMnemonic = (params) => {
|
|
3936
|
+
return callWasm('deriveKeysFromMnemonic', [params]);
|
|
3937
|
+
};
|
|
3938
|
+
const deriveKeysFromMnemonicAndPath = (params) => {
|
|
3939
|
+
return callWasm('deriveKeysFromMnemonicAndPath', [params]);
|
|
3940
|
+
};
|
|
3941
|
+
const disCompileCoreScript = (params) => {
|
|
3942
|
+
return callWasm('disCompileCoreScript', [params]);
|
|
3943
|
+
};
|
|
3944
|
+
const encodeFuncData = (op, dataHex) => {
|
|
3945
|
+
return callWasm('encodeFuncData', [op, dataHex]);
|
|
3946
|
+
};
|
|
3947
|
+
const encodeSubId = (hexString) => {
|
|
3948
|
+
return callWasm('encodeSubId', [hexString]);
|
|
3949
|
+
};
|
|
3950
|
+
const encodeTxCurrency = (params) => {
|
|
3951
|
+
return callWasm('encodeTxCurrency', [params]);
|
|
3952
|
+
};
|
|
3953
|
+
const encodeTxNumber = (params) => {
|
|
3954
|
+
return callWasm('encodeTxNumber', [params]);
|
|
3955
|
+
};
|
|
3956
|
+
const generateMnemonic = (params) => {
|
|
3957
|
+
return callWasm('generateMnemonic', [params]);
|
|
3958
|
+
};
|
|
3959
|
+
const generateMnemonicBySeed = (params) => {
|
|
3960
|
+
return callWasm('generateMnemonicBySeed', [params]);
|
|
3961
|
+
};
|
|
3962
|
+
const getDefFromCoreScript = (params) => {
|
|
3963
|
+
return callWasm('getDefFromCoreScript', [params]);
|
|
3964
|
+
};
|
|
3965
|
+
const getHomeShard = (params) => {
|
|
3966
|
+
return callWasm('getHomeShard', [params]);
|
|
3967
|
+
};
|
|
3968
|
+
const getLibraryVersions = () => {
|
|
3969
|
+
return callWasm('getLibraryVersions', []);
|
|
3970
|
+
};
|
|
3971
|
+
const gzipAndEncode = (str) => {
|
|
3972
|
+
return callWasm('gzipAndEncode', [str]);
|
|
3973
|
+
};
|
|
3974
|
+
const hash = (params) => {
|
|
3975
|
+
return callWasm('hash', [params]);
|
|
3976
|
+
};
|
|
3977
|
+
const isGrantConsumingTx = (txTypeStr) => {
|
|
3978
|
+
return callWasm('isGrantConsumingTx', [txTypeStr]);
|
|
3979
|
+
};
|
|
3980
|
+
const loadMasterKeystore = (params) => {
|
|
3981
|
+
return callWasm('loadMasterKeystore', [params]);
|
|
3982
|
+
};
|
|
3983
|
+
const loadNormalKeystore = (params) => {
|
|
3984
|
+
return callWasm('loadNormalKeystore', [params]);
|
|
3985
|
+
};
|
|
3986
|
+
const makeCurrency = (params) => {
|
|
3987
|
+
return callWasm('makeCurrency', [params]);
|
|
3988
|
+
};
|
|
3989
|
+
const sign = (param) => {
|
|
3990
|
+
return callWasm('sign', [param]);
|
|
3991
|
+
};
|
|
3992
|
+
const signByMasterKey = (params) => {
|
|
3993
|
+
return callWasm('signByMasterKey', [params]);
|
|
3994
|
+
};
|
|
3995
|
+
const signKeyBind = (params) => {
|
|
3996
|
+
return callWasm('signKeyBind', [params]);
|
|
3997
|
+
};
|
|
3998
|
+
const testCoreScript = (params) => {
|
|
3999
|
+
return callWasm('testCoreScript', [params]);
|
|
4000
|
+
};
|
|
4001
|
+
const verify = (params) => {
|
|
4002
|
+
return callWasm('verify', [params]);
|
|
4003
|
+
};
|
|
4004
|
+
const verifyByMasterKey = (params) => {
|
|
4005
|
+
return callWasm('verifyByMasterKey', [params]);
|
|
4006
|
+
};
|
|
4007
|
+
const verifyMerkleProof = (params) => {
|
|
4008
|
+
return callWasm('verifyMerkleProof', [params]);
|
|
4009
|
+
};
|
|
4010
|
+
const verifyTx = (jsonTx) => {
|
|
4011
|
+
return callWasm('verifyTx', [jsonTx]);
|
|
4012
|
+
};
|
|
4013
|
+
|
|
4014
|
+
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, load as X, 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 };
|
|
@@ -3855,7 +3855,228 @@ define(['module', 'require', 'exports', './tslib.es6-D29rxPkW'], (function (modu
|
|
|
3855
3855
|
});
|
|
3856
3856
|
}
|
|
3857
3857
|
|
|
3858
|
+
// Automatically generated file. DO NOT EDIT.
|
|
3859
|
+
const callWasm = (cmd, params) => {
|
|
3860
|
+
// @ts-ignore
|
|
3861
|
+
let callLclib = globalThis["CallLclib"];
|
|
3862
|
+
// @ts-ignore
|
|
3863
|
+
if (namespace && globalThis[namespace]) {
|
|
3864
|
+
// @ts-ignore
|
|
3865
|
+
callLclib = globalThis[namespace]["CallLclib"];
|
|
3866
|
+
}
|
|
3867
|
+
// @ts-ignore
|
|
3868
|
+
if (typeof callLclib !== "function")
|
|
3869
|
+
throw new Error("Wasm module is not loaded. Please call loadWasm or loadWasmSync first.");
|
|
3870
|
+
// @ts-ignore
|
|
3871
|
+
const resultString = callLclib(cmd, JSON.stringify(params));
|
|
3872
|
+
const result = JSON.parse(resultString);
|
|
3873
|
+
if (result.error && result.error.code != 0) {
|
|
3874
|
+
// throw a real Error so message is preserved; attach code and other fields.
|
|
3875
|
+
const error = new Error(result.error.message || ("wasm error code " + result.error.code));
|
|
3876
|
+
Object.assign(error, result.error);
|
|
3877
|
+
throw error;
|
|
3878
|
+
}
|
|
3879
|
+
else {
|
|
3880
|
+
return result.result;
|
|
3881
|
+
}
|
|
3882
|
+
};
|
|
3883
|
+
const calculateTxLinkHash = (params) => {
|
|
3884
|
+
return callWasm('calculateTxLinkHash', [params]);
|
|
3885
|
+
};
|
|
3886
|
+
const compileCoreScript = (params) => {
|
|
3887
|
+
return callWasm('compileCoreScript', [params]);
|
|
3888
|
+
};
|
|
3889
|
+
const convertAddressToData = (addrEncoded) => {
|
|
3890
|
+
return callWasm('convertAddressToData', [addrEncoded]);
|
|
3891
|
+
};
|
|
3892
|
+
const convertAddressToHex = (addrEncoded) => {
|
|
3893
|
+
return callWasm('convertAddressToHex', [addrEncoded]);
|
|
3894
|
+
};
|
|
3895
|
+
const convertBase32ToData = (encoded) => {
|
|
3896
|
+
return callWasm('convertBase32ToData', [encoded]);
|
|
3897
|
+
};
|
|
3898
|
+
const convertBase32ToHex = (encoded) => {
|
|
3899
|
+
return callWasm('convertBase32ToHex', [encoded]);
|
|
3900
|
+
};
|
|
3901
|
+
const convertCurrency = (params) => {
|
|
3902
|
+
return callWasm('convertCurrency', [params]);
|
|
3903
|
+
};
|
|
3904
|
+
const convertDataTo = (value, retType) => {
|
|
3905
|
+
return callWasm('convertDataTo', [value, retType]);
|
|
3906
|
+
};
|
|
3907
|
+
const convertDataToAddress = (str) => {
|
|
3908
|
+
return callWasm('convertDataToAddress', [str]);
|
|
3909
|
+
};
|
|
3910
|
+
const convertDataToBase32 = (str) => {
|
|
3911
|
+
return callWasm('convertDataToBase32', [str]);
|
|
3912
|
+
};
|
|
3913
|
+
const convertDataToHex = (str) => {
|
|
3914
|
+
return callWasm('convertDataToHex', [str]);
|
|
3915
|
+
};
|
|
3916
|
+
const convertDataToString = (str) => {
|
|
3917
|
+
return callWasm('convertDataToString', [str]);
|
|
3918
|
+
};
|
|
3919
|
+
const convertHexToAddress = (hexString) => {
|
|
3920
|
+
return callWasm('convertHexToAddress', [hexString]);
|
|
3921
|
+
};
|
|
3922
|
+
const convertHexToBase32 = (hexString) => {
|
|
3923
|
+
return callWasm('convertHexToBase32', [hexString]);
|
|
3924
|
+
};
|
|
3925
|
+
const convertHexToData = (encoded) => {
|
|
3926
|
+
return callWasm('convertHexToData', [encoded]);
|
|
3927
|
+
};
|
|
3928
|
+
const convertStringToData = (raw) => {
|
|
3929
|
+
return callWasm('convertStringToData', [raw]);
|
|
3930
|
+
};
|
|
3931
|
+
const convertToData = (value, valueType) => {
|
|
3932
|
+
return callWasm('convertToData', [value, valueType]);
|
|
3933
|
+
};
|
|
3934
|
+
const createAccountAndKeystore = (params) => {
|
|
3935
|
+
return callWasm('createAccountAndKeystore', [params]);
|
|
3936
|
+
};
|
|
3937
|
+
const createMasterKeystore = (params) => {
|
|
3938
|
+
return callWasm('createMasterKeystore', [params]);
|
|
3939
|
+
};
|
|
3940
|
+
const createNormalKey = (params) => {
|
|
3941
|
+
return callWasm('createNormalKey', [params]);
|
|
3942
|
+
};
|
|
3943
|
+
const createNormalKeystore = (params) => {
|
|
3944
|
+
return callWasm('createNormalKeystore', [params]);
|
|
3945
|
+
};
|
|
3946
|
+
const decodeSubId = (subIdString) => {
|
|
3947
|
+
return callWasm('decodeSubId', [subIdString]);
|
|
3948
|
+
};
|
|
3949
|
+
const decodeTxs = (params) => {
|
|
3950
|
+
return callWasm('decodeTxs', [params]);
|
|
3951
|
+
};
|
|
3952
|
+
const deriveKeysFromMnemonic = (params) => {
|
|
3953
|
+
return callWasm('deriveKeysFromMnemonic', [params]);
|
|
3954
|
+
};
|
|
3955
|
+
const deriveKeysFromMnemonicAndPath = (params) => {
|
|
3956
|
+
return callWasm('deriveKeysFromMnemonicAndPath', [params]);
|
|
3957
|
+
};
|
|
3958
|
+
const disCompileCoreScript = (params) => {
|
|
3959
|
+
return callWasm('disCompileCoreScript', [params]);
|
|
3960
|
+
};
|
|
3961
|
+
const encodeFuncData = (op, dataHex) => {
|
|
3962
|
+
return callWasm('encodeFuncData', [op, dataHex]);
|
|
3963
|
+
};
|
|
3964
|
+
const encodeSubId = (hexString) => {
|
|
3965
|
+
return callWasm('encodeSubId', [hexString]);
|
|
3966
|
+
};
|
|
3967
|
+
const encodeTxCurrency = (params) => {
|
|
3968
|
+
return callWasm('encodeTxCurrency', [params]);
|
|
3969
|
+
};
|
|
3970
|
+
const encodeTxNumber = (params) => {
|
|
3971
|
+
return callWasm('encodeTxNumber', [params]);
|
|
3972
|
+
};
|
|
3973
|
+
const generateMnemonic = (params) => {
|
|
3974
|
+
return callWasm('generateMnemonic', [params]);
|
|
3975
|
+
};
|
|
3976
|
+
const generateMnemonicBySeed = (params) => {
|
|
3977
|
+
return callWasm('generateMnemonicBySeed', [params]);
|
|
3978
|
+
};
|
|
3979
|
+
const getDefFromCoreScript = (params) => {
|
|
3980
|
+
return callWasm('getDefFromCoreScript', [params]);
|
|
3981
|
+
};
|
|
3982
|
+
const getHomeShard = (params) => {
|
|
3983
|
+
return callWasm('getHomeShard', [params]);
|
|
3984
|
+
};
|
|
3985
|
+
const getLibraryVersions = () => {
|
|
3986
|
+
return callWasm('getLibraryVersions', []);
|
|
3987
|
+
};
|
|
3988
|
+
const gzipAndEncode = (str) => {
|
|
3989
|
+
return callWasm('gzipAndEncode', [str]);
|
|
3990
|
+
};
|
|
3991
|
+
const hash = (params) => {
|
|
3992
|
+
return callWasm('hash', [params]);
|
|
3993
|
+
};
|
|
3994
|
+
const isGrantConsumingTx = (txTypeStr) => {
|
|
3995
|
+
return callWasm('isGrantConsumingTx', [txTypeStr]);
|
|
3996
|
+
};
|
|
3997
|
+
const loadMasterKeystore = (params) => {
|
|
3998
|
+
return callWasm('loadMasterKeystore', [params]);
|
|
3999
|
+
};
|
|
4000
|
+
const loadNormalKeystore = (params) => {
|
|
4001
|
+
return callWasm('loadNormalKeystore', [params]);
|
|
4002
|
+
};
|
|
4003
|
+
const makeCurrency = (params) => {
|
|
4004
|
+
return callWasm('makeCurrency', [params]);
|
|
4005
|
+
};
|
|
4006
|
+
const sign = (param) => {
|
|
4007
|
+
return callWasm('sign', [param]);
|
|
4008
|
+
};
|
|
4009
|
+
const signByMasterKey = (params) => {
|
|
4010
|
+
return callWasm('signByMasterKey', [params]);
|
|
4011
|
+
};
|
|
4012
|
+
const signKeyBind = (params) => {
|
|
4013
|
+
return callWasm('signKeyBind', [params]);
|
|
4014
|
+
};
|
|
4015
|
+
const testCoreScript = (params) => {
|
|
4016
|
+
return callWasm('testCoreScript', [params]);
|
|
4017
|
+
};
|
|
4018
|
+
const verify = (params) => {
|
|
4019
|
+
return callWasm('verify', [params]);
|
|
4020
|
+
};
|
|
4021
|
+
const verifyByMasterKey = (params) => {
|
|
4022
|
+
return callWasm('verifyByMasterKey', [params]);
|
|
4023
|
+
};
|
|
4024
|
+
const verifyMerkleProof = (params) => {
|
|
4025
|
+
return callWasm('verifyMerkleProof', [params]);
|
|
4026
|
+
};
|
|
4027
|
+
const verifyTx = (jsonTx) => {
|
|
4028
|
+
return callWasm('verifyTx', [jsonTx]);
|
|
4029
|
+
};
|
|
4030
|
+
|
|
4031
|
+
exports.calculateTxLinkHash = calculateTxLinkHash;
|
|
4032
|
+
exports.compileCoreScript = compileCoreScript;
|
|
4033
|
+
exports.convertAddressToData = convertAddressToData;
|
|
4034
|
+
exports.convertAddressToHex = convertAddressToHex;
|
|
4035
|
+
exports.convertBase32ToData = convertBase32ToData;
|
|
4036
|
+
exports.convertBase32ToHex = convertBase32ToHex;
|
|
4037
|
+
exports.convertCurrency = convertCurrency;
|
|
4038
|
+
exports.convertDataTo = convertDataTo;
|
|
4039
|
+
exports.convertDataToAddress = convertDataToAddress;
|
|
4040
|
+
exports.convertDataToBase32 = convertDataToBase32;
|
|
4041
|
+
exports.convertDataToHex = convertDataToHex;
|
|
4042
|
+
exports.convertDataToString = convertDataToString;
|
|
4043
|
+
exports.convertHexToAddress = convertHexToAddress;
|
|
4044
|
+
exports.convertHexToBase32 = convertHexToBase32;
|
|
4045
|
+
exports.convertHexToData = convertHexToData;
|
|
4046
|
+
exports.convertStringToData = convertStringToData;
|
|
4047
|
+
exports.convertToData = convertToData;
|
|
4048
|
+
exports.createAccountAndKeystore = createAccountAndKeystore;
|
|
4049
|
+
exports.createMasterKeystore = createMasterKeystore;
|
|
4050
|
+
exports.createNormalKey = createNormalKey;
|
|
4051
|
+
exports.createNormalKeystore = createNormalKeystore;
|
|
4052
|
+
exports.decodeSubId = decodeSubId;
|
|
4053
|
+
exports.decodeTxs = decodeTxs;
|
|
4054
|
+
exports.deriveKeysFromMnemonic = deriveKeysFromMnemonic;
|
|
4055
|
+
exports.deriveKeysFromMnemonicAndPath = deriveKeysFromMnemonicAndPath;
|
|
4056
|
+
exports.disCompileCoreScript = disCompileCoreScript;
|
|
4057
|
+
exports.encodeFuncData = encodeFuncData;
|
|
4058
|
+
exports.encodeSubId = encodeSubId;
|
|
4059
|
+
exports.encodeTxCurrency = encodeTxCurrency;
|
|
4060
|
+
exports.encodeTxNumber = encodeTxNumber;
|
|
4061
|
+
exports.generateMnemonic = generateMnemonic;
|
|
4062
|
+
exports.generateMnemonicBySeed = generateMnemonicBySeed;
|
|
4063
|
+
exports.getDefFromCoreScript = getDefFromCoreScript;
|
|
4064
|
+
exports.getHomeShard = getHomeShard;
|
|
4065
|
+
exports.getLibraryVersions = getLibraryVersions;
|
|
4066
|
+
exports.gzipAndEncode = gzipAndEncode;
|
|
4067
|
+
exports.hash = hash;
|
|
4068
|
+
exports.isGrantConsumingTx = isGrantConsumingTx;
|
|
3858
4069
|
exports.load = load;
|
|
3859
|
-
exports.
|
|
4070
|
+
exports.loadMasterKeystore = loadMasterKeystore;
|
|
4071
|
+
exports.loadNormalKeystore = loadNormalKeystore;
|
|
4072
|
+
exports.makeCurrency = makeCurrency;
|
|
4073
|
+
exports.sign = sign;
|
|
4074
|
+
exports.signByMasterKey = signByMasterKey;
|
|
4075
|
+
exports.signKeyBind = signKeyBind;
|
|
4076
|
+
exports.testCoreScript = testCoreScript;
|
|
4077
|
+
exports.verify = verify;
|
|
4078
|
+
exports.verifyByMasterKey = verifyByMasterKey;
|
|
4079
|
+
exports.verifyMerkleProof = verifyMerkleProof;
|
|
4080
|
+
exports.verifyTx = verifyTx;
|
|
3860
4081
|
|
|
3861
4082
|
}));
|