@locuschain/lib 0.2.3 → 0.2.5
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/public/getVmeLog.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getVmeLog.d.mts +4 -0
- package/dist/autogen/actions/debug/public/index.d.cts +2 -2
- package/dist/autogen/actions/debug/public/index.d.mts +2 -2
- package/dist/autogen/actions/debug/public/viewVme.d.cts +4 -0
- package/dist/autogen/actions/debug/public/viewVme.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/callContract.d.cts +2 -2
- package/dist/autogen/actions/debug/wallet/callContract.d.mts +2 -2
- package/dist/autogen/actions/debug/wallet/callVme.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/callVme.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/index.d.cts +1 -0
- package/dist/autogen/actions/debug/wallet/index.d.mts +1 -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/getRoundState.d.cts +1 -1
- package/dist/autogen/actions/public/getRoundState.d.mts +1 -1
- package/dist/autogen/actions/public/index.d.cts +2 -1
- package/dist/autogen/actions/public/index.d.mts +2 -1
- 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/forwardCoin.d.cts +4 -0
- package/dist/autogen/actions/wallet/forwardCoin.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 +5 -1
- package/dist/autogen/actions/wallet/index.d.mts +5 -1
- 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/debugPublicActions.d.cts +4 -4
- package/dist/autogen/debugPublicActions.d.mts +4 -4
- package/dist/autogen/debugWalletActions.d.cts +3 -2
- package/dist/autogen/debugWalletActions.d.mts +3 -2
- package/dist/autogen/index.amd.js +11 -5
- package/dist/autogen/index.cjs.cjs +11 -5
- package/dist/autogen/index.esm.js +5 -4
- package/dist/autogen/locus-tx.d.cts +2 -2
- package/dist/autogen/locus-tx.d.mts +2 -2
- package/dist/autogen/publicActions.d.cts +4 -2
- package/dist/autogen/publicActions.d.mts +4 -2
- package/dist/autogen/rpc-api-spec.d.cts +25 -13
- package/dist/autogen/rpc-api-spec.d.mts +25 -13
- package/dist/autogen/types/common/asset-object-meta.d.cts +2 -0
- package/dist/autogen/types/common/asset-object-meta.d.mts +2 -0
- package/dist/autogen/types/common/asset-object-transfer.d.cts +0 -2
- package/dist/autogen/types/common/asset-object-transfer.d.mts +0 -2
- package/dist/autogen/types/common/asset-object.d.cts +2 -1
- package/dist/autogen/types/common/asset-object.d.mts +2 -1
- package/dist/autogen/types/common/caller-key-proof.d.cts +8 -0
- package/dist/autogen/types/common/caller-key-proof.d.mts +8 -0
- 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/direct-call-request.d.cts +11 -0
- package/dist/autogen/types/common/direct-call-request.d.mts +11 -0
- 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 +9 -2
- package/dist/autogen/types/common/index.d.mts +9 -2
- package/dist/autogen/types/common/merkle-proof-multi-meta.d.cts +2 -0
- package/dist/autogen/types/common/merkle-proof-multi-meta.d.mts +2 -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/ref-vtx.d.cts +0 -1
- package/dist/autogen/types/common/ref-vtx.d.mts +0 -1
- package/dist/autogen/types/common/res-changed-entry.d.cts +6 -0
- package/dist/autogen/types/common/res-changed-entry.d.mts +6 -0
- 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/common/transfer-info.d.cts +0 -1
- package/dist/autogen/types/common/transfer-info.d.mts +0 -1
- package/dist/autogen/types/common/tx-base.d.cts +1 -1
- package/dist/autogen/types/common/tx-base.d.mts +1 -1
- package/dist/autogen/types/common/tx-restore-res-hash-proof.d.cts +9 -0
- package/dist/autogen/types/common/tx-restore-res-hash-proof.d.mts +9 -0
- package/dist/autogen/types/common/vm-engine-block.d.cts +6 -0
- package/dist/autogen/types/common/vm-engine-block.d.mts +6 -0
- package/dist/autogen/types/common/vm-tx-state.d.cts +5 -7
- package/dist/autogen/types/common/vm-tx-state.d.mts +5 -7
- package/dist/autogen/types/consts/address-class.d.cts +6 -7
- package/dist/autogen/types/consts/address-class.d.mts +6 -7
- package/dist/autogen/types/consts/tx-type.d.cts +16 -14
- package/dist/autogen/types/consts/tx-type.d.mts +16 -14
- package/dist/autogen/types/consts/tx-types.d.cts +59 -45
- package/dist/autogen/types/consts/tx-types.d.mts +59 -45
- package/dist/autogen/types/rpc/index.d.cts +14 -7
- package/dist/autogen/types/rpc/index.d.mts +14 -7
- 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-express.d.cts → params-calculate-spent-by-forward.d.cts} +1 -1
- package/dist/autogen/types/rpc/{params-calculate-spent-by-express.d.mts → params-calculate-spent-by-forward.d.mts} +1 -1
- package/dist/autogen/types/rpc/{params-call-contract.d.cts → params-call-vme.d.cts} +4 -4
- package/dist/autogen/types/rpc/{params-call-contract.d.mts → params-call-vme.d.mts} +4 -4
- package/dist/autogen/types/rpc/params-create-contract.d.cts +1 -0
- package/dist/autogen/types/rpc/params-create-contract.d.mts +1 -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-transfer-coin-express.d.cts → params-forward-coin.d.cts} +1 -1
- package/dist/autogen/types/rpc/{params-transfer-coin-express.d.mts → params-forward-coin.d.mts} +1 -1
- 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-generate-latest-stored-data-proof.d.cts +2 -1
- package/dist/autogen/types/rpc/params-generate-latest-stored-data-proof.d.mts +2 -1
- package/dist/autogen/types/rpc/params-request-vme.d.cts +1 -0
- package/dist/autogen/types/rpc/params-request-vme.d.mts +1 -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-contract-log.d.cts → params-vme-log.d.cts} +3 -2
- package/dist/autogen/types/rpc/{params-contract-log.d.mts → params-vme-log.d.mts} +3 -2
- package/dist/autogen/types/{common → rpc}/round-state-detail.d.cts +1 -1
- package/dist/autogen/types/{common → rpc}/round-state-detail.d.mts +1 -1
- 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-vme-log-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-vme-log-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-view-vme-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-view-vme-result.d.mts +3 -0
- package/dist/autogen/types/tx/index.d.cts +16 -14
- package/dist/autogen/types/tx/index.d.mts +16 -14
- package/dist/autogen/types/tx/{tx-activate-all-assets.d.cts → tx-activate-all-res.d.cts} +4 -3
- package/dist/autogen/types/tx/{tx-activate-all-assets.d.mts → tx-activate-all-res.d.mts} +4 -3
- package/dist/autogen/types/tx/tx-activate-asset-object.d.cts +4 -2
- package/dist/autogen/types/tx/tx-activate-asset-object.d.mts +4 -2
- package/dist/autogen/types/tx/{tx-activate-open-vm-engine.d.cts → tx-activate-open-vme.d.cts} +1 -1
- package/dist/autogen/types/tx/{tx-activate-open-vm-engine.d.mts → tx-activate-open-vme.d.mts} +1 -1
- package/dist/autogen/types/tx/{tx-activate-contract-result.d.cts → tx-activate-vme-result.d.cts} +7 -4
- package/dist/autogen/types/tx/{tx-activate-contract-result.d.mts → tx-activate-vme-result.d.mts} +7 -4
- package/dist/autogen/types/tx/{tx-activate-contract-reward.d.cts → tx-activate-vme-reward.d.cts} +1 -1
- package/dist/autogen/types/tx/{tx-activate-contract-reward.d.mts → tx-activate-vme-reward.d.mts} +1 -1
- package/dist/autogen/types/tx/{tx-activate-contract-transfer.d.cts → tx-activate-vme-transfer.d.cts} +7 -4
- package/dist/autogen/types/tx/{tx-activate-contract-transfer.d.mts → tx-activate-vme-transfer.d.mts} +7 -4
- package/dist/autogen/types/tx/tx-burn-asset-object.d.cts +4 -2
- package/dist/autogen/types/tx/tx-burn-asset-object.d.mts +4 -2
- package/dist/autogen/types/tx/tx-call-vme.d.cts +18 -0
- package/dist/autogen/types/tx/tx-call-vme.d.mts +18 -0
- package/dist/autogen/types/tx/tx-close-account.d.cts +2 -2
- package/dist/autogen/types/tx/tx-close-account.d.mts +2 -2
- package/dist/autogen/types/tx/{tx-create-vm-engine.d.cts → tx-create-vme.d.cts} +1 -1
- package/dist/autogen/types/tx/{tx-create-vm-engine.d.mts → tx-create-vme.d.mts} +1 -1
- package/dist/autogen/types/tx/tx-forward-asset-object.d.cts +10 -0
- package/dist/autogen/types/tx/tx-forward-asset-object.d.mts +10 -0
- package/dist/autogen/types/tx/{tx-transfer-coin-express.d.cts → tx-forward-coin.d.cts} +2 -1
- package/dist/autogen/types/tx/{tx-transfer-coin-express.d.mts → tx-forward-coin.d.mts} +2 -1
- package/dist/autogen/types/tx/tx-forward-token.d.cts +10 -0
- package/dist/autogen/types/tx/tx-forward-token.d.mts +10 -0
- package/dist/autogen/types/tx/tx-lead-direct-vtx.d.cts +11 -0
- package/dist/autogen/types/tx/tx-lead-direct-vtx.d.mts +11 -0
- package/dist/autogen/types/tx/tx-lead-vtx.d.cts +1 -1
- package/dist/autogen/types/tx/tx-lead-vtx.d.mts +1 -1
- package/dist/autogen/types/tx/{tx-call-contract.d.cts → tx-restore-res-hash.d.cts} +4 -8
- package/dist/autogen/types/tx/{tx-call-contract.d.mts → tx-restore-res-hash.d.mts} +4 -8
- package/dist/autogen/types/tx/tx-revoke.d.cts +4 -2
- package/dist/autogen/types/tx/tx-revoke.d.mts +4 -2
- package/dist/autogen/types/tx/{tx-create-contract.d.cts → tx-transfer-all-res.d.cts} +5 -7
- package/dist/autogen/types/tx/{tx-create-contract.d.mts → tx-transfer-all-res.d.mts} +5 -7
- package/dist/autogen/types/tx/tx-transfer-asset-object.d.cts +4 -2
- package/dist/autogen/types/tx/tx-transfer-asset-object.d.mts +4 -2
- package/dist/autogen/types/tx/{tx-contract-blank-reward.d.cts → tx-vme-blank-reward.d.cts} +1 -1
- package/dist/autogen/types/tx/{tx-contract-blank-reward.d.mts → tx-vme-blank-reward.d.mts} +1 -1
- package/dist/autogen/types/tx/{tx-vm-engine-block.d.cts → tx-vme-block.d.cts} +2 -1
- package/dist/autogen/types/tx/{tx-vm-engine-block.d.mts → tx-vme-block.d.mts} +2 -1
- package/dist/autogen/types/tx/{tx-contract-transfer-reward.d.cts → tx-vme-transfer-reward.d.cts} +1 -1
- package/dist/autogen/types/tx/{tx-contract-transfer-reward.d.mts → tx-vme-transfer-reward.d.mts} +1 -1
- package/dist/autogen/walletActions.d.cts +10 -2
- package/dist/autogen/walletActions.d.mts +10 -2
- package/dist/autogen/wasm/lclib.wasm +0 -0
- package/dist/chunks/{address-class-CHAZYhdZ.js → address-class-3IzotplG.js} +6 -7
- package/dist/chunks/{address-class-Cjy48Uqk.cjs → address-class-B8b7mx1K.cjs} +6 -7
- package/dist/chunks/{address-class-Dp7aNQb2.js → address-class-CDo766LJ.js} +6 -7
- package/dist/chunks/{debugWalletActions-B96f4kZc.js → debugWalletActions-A_93DKNp.js} +80 -22
- package/dist/chunks/{debugWalletActions-BfX1doiz.js → debugWalletActions-D3FUuxE6.js} +89 -25
- package/dist/chunks/{debugWalletActions-iCZ1H6xc.cjs → debugWalletActions-DTcup4BP.cjs} +89 -25
- package/dist/chunks/{tx-type-BPkhMGad.js → tx-type-BUN9nEQ6.js} +16 -14
- package/dist/chunks/{tx-type-CS4wIUJ8.js → tx-type-DYAaL3xz.js} +16 -14
- package/dist/chunks/{tx-type-DI_nKG8B.cjs → tx-type-khL8tWtn.cjs} +16 -14
- package/dist/clients/createLocusPublicClient.d.cts +4 -3
- package/dist/clients/createLocusPublicClient.d.mts +4 -3
- package/dist/clients/createLocusWalletClient.d.cts +7 -2
- package/dist/clients/createLocusWalletClient.d.mts +7 -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/constant/index.amd.js +80 -66
- package/dist/constant/index.cjs.cjs +81 -67
- package/dist/constant/index.d.cts +81 -66
- package/dist/constant/index.d.mts +81 -66
- package/dist/constant/index.esm.js +81 -67
- 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 +3 -6
- package/dist/utils/index.cjs.cjs +3 -6
- package/dist/utils/index.d.cts +3 -4
- package/dist/utils/index.d.mts +3 -4
- package/dist/utils/index.esm.js +4 -6
- package/package.json +1 -1
- package/dist/autogen/actions/debug/public/getContractLog.d.cts +0 -4
- package/dist/autogen/actions/debug/public/getContractLog.d.mts +0 -4
- package/dist/autogen/actions/debug/public/viewContract.d.cts +0 -4
- package/dist/autogen/actions/debug/public/viewContract.d.mts +0 -4
- package/dist/autogen/actions/public/calculateSpentByExpress.d.cts +0 -4
- package/dist/autogen/actions/public/calculateSpentByExpress.d.mts +0 -4
- package/dist/autogen/actions/wallet/transferCoinExpress.d.cts +0 -4
- package/dist/autogen/actions/wallet/transferCoinExpress.d.mts +0 -4
- package/dist/autogen/types/common/asset-proof-objects.d.cts +0 -5
- package/dist/autogen/types/common/asset-proof-objects.d.mts +0 -5
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-express-result.d.cts +0 -3
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-express-result.d.mts +0 -3
- package/dist/autogen/types/rpc/rpc-get-contract-log-result.d.cts +0 -3
- package/dist/autogen/types/rpc/rpc-get-contract-log-result.d.mts +0 -3
- package/dist/autogen/types/rpc/rpc-view-contract-result.d.cts +0 -3
- package/dist/autogen/types/rpc/rpc-view-contract-result.d.mts +0 -3
- package/dist/autogen/types/tx/tx-activate-call-contract.d.cts +0 -15
- package/dist/autogen/types/tx/tx-activate-call-contract.d.mts +0 -15
- package/dist/autogen/types/tx/tx-activate-open-contract.d.cts +0 -15
- package/dist/autogen/types/tx/tx-activate-open-contract.d.mts +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AddressClass$1 } from '../chunks/address-class-
|
|
2
|
-
import { T as TxType$1 } from '../chunks/tx-type-
|
|
1
|
+
import { A as AddressClass$1 } from '../chunks/address-class-3IzotplG.js';
|
|
2
|
+
import { T as TxType$1 } from '../chunks/tx-type-BUN9nEQ6.js';
|
|
3
3
|
|
|
4
4
|
// Automatically generated file. DO NOT EDIT.
|
|
5
5
|
const CurrencyUnit = Object.freeze({
|
|
@@ -34,7 +34,7 @@ const TxTypes$1 = {
|
|
|
34
34
|
"useGrant": false,
|
|
35
35
|
"useFee": false
|
|
36
36
|
},
|
|
37
|
-
"
|
|
37
|
+
"TX_ACTIVATE_ALL_RES": {
|
|
38
38
|
"fee": "10000000000000",
|
|
39
39
|
"grant": 0,
|
|
40
40
|
"sizeBased": false,
|
|
@@ -48,13 +48,6 @@ const TxTypes$1 = {
|
|
|
48
48
|
"useGrant": false,
|
|
49
49
|
"useFee": false
|
|
50
50
|
},
|
|
51
|
-
"TX_ACTIVATE_CALL_CONTRACT": {
|
|
52
|
-
"fee": "10000000000000",
|
|
53
|
-
"grant": 0,
|
|
54
|
-
"sizeBased": false,
|
|
55
|
-
"useGrant": false,
|
|
56
|
-
"useFee": false
|
|
57
|
-
},
|
|
58
51
|
"TX_ACTIVATE_COIN": {
|
|
59
52
|
"fee": "10000000000000",
|
|
60
53
|
"grant": 0,
|
|
@@ -62,77 +55,70 @@ const TxTypes$1 = {
|
|
|
62
55
|
"useGrant": false,
|
|
63
56
|
"useFee": false
|
|
64
57
|
},
|
|
65
|
-
"
|
|
66
|
-
"fee": "10000000000000",
|
|
67
|
-
"grant": 0,
|
|
68
|
-
"sizeBased": false,
|
|
69
|
-
"useGrant": false,
|
|
70
|
-
"useFee": false
|
|
71
|
-
},
|
|
72
|
-
"TX_ACTIVATE_CONTRACT_REWARD": {
|
|
58
|
+
"TX_ACTIVATE_DATA_SA": {
|
|
73
59
|
"fee": "10000000000000",
|
|
74
60
|
"grant": 0,
|
|
75
61
|
"sizeBased": false,
|
|
76
62
|
"useGrant": false,
|
|
77
63
|
"useFee": false
|
|
78
64
|
},
|
|
79
|
-
"
|
|
65
|
+
"TX_ACTIVATE_FOUNDATION_RESERVE": {
|
|
80
66
|
"fee": "10000000000000",
|
|
81
67
|
"grant": 0,
|
|
82
68
|
"sizeBased": false,
|
|
83
69
|
"useGrant": false,
|
|
84
70
|
"useFee": false
|
|
85
71
|
},
|
|
86
|
-
"
|
|
72
|
+
"TX_ACTIVATE_INCENTIVE": {
|
|
87
73
|
"fee": "10000000000000",
|
|
88
74
|
"grant": 0,
|
|
89
75
|
"sizeBased": false,
|
|
90
76
|
"useGrant": false,
|
|
91
77
|
"useFee": false
|
|
92
78
|
},
|
|
93
|
-
"
|
|
79
|
+
"TX_ACTIVATE_LOCK_STAKE_FOR_VME": {
|
|
94
80
|
"fee": "10000000000000",
|
|
95
81
|
"grant": 0,
|
|
96
82
|
"sizeBased": false,
|
|
97
83
|
"useGrant": false,
|
|
98
84
|
"useFee": false
|
|
99
85
|
},
|
|
100
|
-
"
|
|
86
|
+
"TX_ACTIVATE_OPEN_SA": {
|
|
101
87
|
"fee": "10000000000000",
|
|
102
88
|
"grant": 0,
|
|
103
89
|
"sizeBased": false,
|
|
104
90
|
"useGrant": false,
|
|
105
91
|
"useFee": false
|
|
106
92
|
},
|
|
107
|
-
"
|
|
93
|
+
"TX_ACTIVATE_OPEN_VME": {
|
|
108
94
|
"fee": "10000000000000",
|
|
109
95
|
"grant": 0,
|
|
110
96
|
"sizeBased": false,
|
|
111
97
|
"useGrant": false,
|
|
112
98
|
"useFee": false
|
|
113
99
|
},
|
|
114
|
-
"
|
|
100
|
+
"TX_ACTIVATE_TOKEN": {
|
|
115
101
|
"fee": "10000000000000",
|
|
116
102
|
"grant": 0,
|
|
117
103
|
"sizeBased": false,
|
|
118
104
|
"useGrant": false,
|
|
119
105
|
"useFee": false
|
|
120
106
|
},
|
|
121
|
-
"
|
|
107
|
+
"TX_ACTIVATE_VME_RESULT": {
|
|
122
108
|
"fee": "10000000000000",
|
|
123
109
|
"grant": 0,
|
|
124
110
|
"sizeBased": false,
|
|
125
111
|
"useGrant": false,
|
|
126
112
|
"useFee": false
|
|
127
113
|
},
|
|
128
|
-
"
|
|
114
|
+
"TX_ACTIVATE_VME_REWARD": {
|
|
129
115
|
"fee": "10000000000000",
|
|
130
116
|
"grant": 0,
|
|
131
117
|
"sizeBased": false,
|
|
132
118
|
"useGrant": false,
|
|
133
119
|
"useFee": false
|
|
134
120
|
},
|
|
135
|
-
"
|
|
121
|
+
"TX_ACTIVATE_VME_TRANSFER": {
|
|
136
122
|
"fee": "10000000000000",
|
|
137
123
|
"grant": 0,
|
|
138
124
|
"sizeBased": false,
|
|
@@ -167,14 +153,14 @@ const TxTypes$1 = {
|
|
|
167
153
|
"useGrant": false,
|
|
168
154
|
"useFee": true
|
|
169
155
|
},
|
|
170
|
-
"
|
|
156
|
+
"TX_CALL_VME": {
|
|
171
157
|
"fee": "10000000000000",
|
|
172
158
|
"grant": 0,
|
|
173
159
|
"sizeBased": false,
|
|
174
160
|
"useGrant": true,
|
|
175
161
|
"useFee": false
|
|
176
162
|
},
|
|
177
|
-
"
|
|
163
|
+
"TX_CALL_VME_FEE": {
|
|
178
164
|
"fee": "10000000000000",
|
|
179
165
|
"grant": 0,
|
|
180
166
|
"sizeBased": false,
|
|
@@ -209,20 +195,6 @@ const TxTypes$1 = {
|
|
|
209
195
|
"useGrant": false,
|
|
210
196
|
"useFee": false
|
|
211
197
|
},
|
|
212
|
-
"TX_CONTRACT_BLANK_REWARD": {
|
|
213
|
-
"fee": "10000000000000",
|
|
214
|
-
"grant": 0,
|
|
215
|
-
"sizeBased": false,
|
|
216
|
-
"useGrant": false,
|
|
217
|
-
"useFee": false
|
|
218
|
-
},
|
|
219
|
-
"TX_CONTRACT_TRANSFER_REWARD": {
|
|
220
|
-
"fee": "10000000000000",
|
|
221
|
-
"grant": 0,
|
|
222
|
-
"sizeBased": false,
|
|
223
|
-
"useGrant": false,
|
|
224
|
-
"useFee": false
|
|
225
|
-
},
|
|
226
198
|
"TX_CREATE_ASSETOBJECT": {
|
|
227
199
|
"fee": "10000000000000",
|
|
228
200
|
"grant": 1000,
|
|
@@ -237,20 +209,6 @@ const TxTypes$1 = {
|
|
|
237
209
|
"useGrant": false,
|
|
238
210
|
"useFee": true
|
|
239
211
|
},
|
|
240
|
-
"TX_CREATE_CONTRACT": {
|
|
241
|
-
"fee": "10000000000000",
|
|
242
|
-
"grant": 0,
|
|
243
|
-
"sizeBased": false,
|
|
244
|
-
"useGrant": true,
|
|
245
|
-
"useFee": false
|
|
246
|
-
},
|
|
247
|
-
"TX_CREATE_CONTRACT_FEE": {
|
|
248
|
-
"fee": "10000000000000",
|
|
249
|
-
"grant": 0,
|
|
250
|
-
"sizeBased": false,
|
|
251
|
-
"useGrant": false,
|
|
252
|
-
"useFee": false
|
|
253
|
-
},
|
|
254
212
|
"TX_CREATE_SA": {
|
|
255
213
|
"fee": "10000000000000",
|
|
256
214
|
"grant": 1000,
|
|
@@ -279,12 +237,12 @@ const TxTypes$1 = {
|
|
|
279
237
|
"useGrant": false,
|
|
280
238
|
"useFee": true
|
|
281
239
|
},
|
|
282
|
-
"
|
|
283
|
-
"fee": "
|
|
240
|
+
"TX_CREATE_VME_FEE": {
|
|
241
|
+
"fee": "1000000000000000",
|
|
284
242
|
"grant": 0,
|
|
285
243
|
"sizeBased": false,
|
|
286
244
|
"useGrant": false,
|
|
287
|
-
"useFee":
|
|
245
|
+
"useFee": true
|
|
288
246
|
},
|
|
289
247
|
"TX_FINALIZE": {
|
|
290
248
|
"fee": "10000000000000",
|
|
@@ -293,6 +251,27 @@ const TxTypes$1 = {
|
|
|
293
251
|
"useGrant": false,
|
|
294
252
|
"useFee": false
|
|
295
253
|
},
|
|
254
|
+
"TX_FORWARD_ASSETOBJECT": {
|
|
255
|
+
"fee": "30000000000000",
|
|
256
|
+
"grant": 0,
|
|
257
|
+
"sizeBased": false,
|
|
258
|
+
"useGrant": false,
|
|
259
|
+
"useFee": true
|
|
260
|
+
},
|
|
261
|
+
"TX_FORWARD_COIN": {
|
|
262
|
+
"fee": "30000000000000",
|
|
263
|
+
"grant": 0,
|
|
264
|
+
"sizeBased": false,
|
|
265
|
+
"useGrant": false,
|
|
266
|
+
"useFee": true
|
|
267
|
+
},
|
|
268
|
+
"TX_FORWARD_TOKEN": {
|
|
269
|
+
"fee": "30000000000000",
|
|
270
|
+
"grant": 0,
|
|
271
|
+
"sizeBased": false,
|
|
272
|
+
"useGrant": false,
|
|
273
|
+
"useFee": true
|
|
274
|
+
},
|
|
296
275
|
"TX_FREEZE_ACCOUNT": {
|
|
297
276
|
"fee": "100000000000000",
|
|
298
277
|
"grant": 0,
|
|
@@ -307,6 +286,13 @@ const TxTypes$1 = {
|
|
|
307
286
|
"useGrant": false,
|
|
308
287
|
"useFee": false
|
|
309
288
|
},
|
|
289
|
+
"TX_LEAD_DIRECT_VTX": {
|
|
290
|
+
"fee": "10000000000000",
|
|
291
|
+
"grant": 0,
|
|
292
|
+
"sizeBased": false,
|
|
293
|
+
"useGrant": false,
|
|
294
|
+
"useFee": false
|
|
295
|
+
},
|
|
310
296
|
"TX_LEAD_VTX": {
|
|
311
297
|
"fee": "10000000000000",
|
|
312
298
|
"grant": 0,
|
|
@@ -363,6 +349,13 @@ const TxTypes$1 = {
|
|
|
363
349
|
"useGrant": false,
|
|
364
350
|
"useFee": true
|
|
365
351
|
},
|
|
352
|
+
"TX_RESTORE_RESHASH": {
|
|
353
|
+
"fee": "10000000000000",
|
|
354
|
+
"grant": 0,
|
|
355
|
+
"sizeBased": false,
|
|
356
|
+
"useGrant": false,
|
|
357
|
+
"useFee": false
|
|
358
|
+
},
|
|
366
359
|
"TX_REVOKE": {
|
|
367
360
|
"fee": "10000000000000",
|
|
368
361
|
"grant": 0,
|
|
@@ -370,32 +363,39 @@ const TxTypes$1 = {
|
|
|
370
363
|
"useGrant": false,
|
|
371
364
|
"useFee": true
|
|
372
365
|
},
|
|
373
|
-
"
|
|
366
|
+
"TX_TRANSFER_ALL_RES": {
|
|
374
367
|
"fee": "10000000000000",
|
|
375
368
|
"grant": 1000,
|
|
376
369
|
"sizeBased": false,
|
|
377
370
|
"useGrant": true,
|
|
378
371
|
"useFee": false
|
|
379
372
|
},
|
|
380
|
-
"
|
|
381
|
-
"fee": "
|
|
373
|
+
"TX_TRANSFER_ALL_RES_FEE": {
|
|
374
|
+
"fee": "0",
|
|
382
375
|
"grant": 0,
|
|
383
|
-
"sizeBased":
|
|
376
|
+
"sizeBased": true,
|
|
384
377
|
"useGrant": false,
|
|
385
378
|
"useFee": true
|
|
386
379
|
},
|
|
387
|
-
"
|
|
380
|
+
"TX_TRANSFER_ASSETOBJECT": {
|
|
388
381
|
"fee": "10000000000000",
|
|
389
382
|
"grant": 1000,
|
|
390
383
|
"sizeBased": false,
|
|
391
384
|
"useGrant": true,
|
|
392
385
|
"useFee": false
|
|
393
386
|
},
|
|
394
|
-
"
|
|
395
|
-
"fee": "
|
|
387
|
+
"TX_TRANSFER_ASSETOBJECT_FEE": {
|
|
388
|
+
"fee": "20000000000000",
|
|
396
389
|
"grant": 0,
|
|
397
390
|
"sizeBased": false,
|
|
398
391
|
"useGrant": false,
|
|
392
|
+
"useFee": true
|
|
393
|
+
},
|
|
394
|
+
"TX_TRANSFER_COIN": {
|
|
395
|
+
"fee": "10000000000000",
|
|
396
|
+
"grant": 1000,
|
|
397
|
+
"sizeBased": false,
|
|
398
|
+
"useGrant": true,
|
|
399
399
|
"useFee": false
|
|
400
400
|
},
|
|
401
401
|
"TX_TRANSFER_COIN_FEE": {
|
|
@@ -426,12 +426,26 @@ const TxTypes$1 = {
|
|
|
426
426
|
"useGrant": false,
|
|
427
427
|
"useFee": false
|
|
428
428
|
},
|
|
429
|
+
"TX_VME_BLANK_REWARD": {
|
|
430
|
+
"fee": "10000000000000",
|
|
431
|
+
"grant": 0,
|
|
432
|
+
"sizeBased": false,
|
|
433
|
+
"useGrant": false,
|
|
434
|
+
"useFee": false
|
|
435
|
+
},
|
|
429
436
|
"TX_VME_BLOCK": {
|
|
430
437
|
"fee": "10000000000000",
|
|
431
438
|
"grant": 0,
|
|
432
439
|
"sizeBased": false,
|
|
433
440
|
"useGrant": false,
|
|
434
441
|
"useFee": false
|
|
442
|
+
},
|
|
443
|
+
"TX_VME_TRANSFER_REWARD": {
|
|
444
|
+
"fee": "10000000000000",
|
|
445
|
+
"grant": 0,
|
|
446
|
+
"sizeBased": false,
|
|
447
|
+
"useGrant": false,
|
|
448
|
+
"useFee": false
|
|
435
449
|
}
|
|
436
450
|
};
|
|
437
451
|
|
package/dist/index.amd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', './clients/index.amd', './transports/index.amd', './accounts/index.amd', './chunks/base-B_kRRfsf', './chunks/rpc-C4n7t9y0', './chunks/transport-BBAz1kmP', './chunks/account-BSrvZ7S8', './contracts/index.amd', './constant/index.amd', './chunks/keystore-y1JlFTKh', './chunks/lclib-Bv86gksL', './chunks/tslib.es6-D29rxPkW', './chunks/debugWalletActions-
|
|
1
|
+
define(['exports', './clients/index.amd', './transports/index.amd', './accounts/index.amd', './chunks/base-B_kRRfsf', './chunks/rpc-C4n7t9y0', './chunks/transport-BBAz1kmP', './chunks/account-BSrvZ7S8', './contracts/index.amd', './constant/index.amd', './chunks/keystore-y1JlFTKh', './chunks/lclib-Bv86gksL', './chunks/tslib.es6-D29rxPkW', './chunks/debugWalletActions-D3FUuxE6', './chunks/tx-type-DYAaL3xz', './chunks/wasm-CkFW222S', './chunks/ethers.esm.min-wXex1HuX', './chunks/address-class-CDo766LJ'], (function (exports, clients, transports, accounts, base, rpc, transport, account, contracts, constant, keystore, lclib, tslib_es6, debugWalletActions, txType, wasm, ethers_esm_min, addressClass) { 'use strict';
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
package/dist/index.cjs.cjs
CHANGED
|
@@ -12,11 +12,11 @@ var constant = require('./constant/index.cjs.cjs');
|
|
|
12
12
|
var keystore = require('./chunks/keystore-BUskzeOs.cjs');
|
|
13
13
|
require('./chunks/lclib-rGyKpClJ.cjs');
|
|
14
14
|
require('./chunks/tslib.es6-Cfi3-HmA.cjs');
|
|
15
|
-
require('./chunks/debugWalletActions-
|
|
16
|
-
require('./chunks/tx-type-
|
|
15
|
+
require('./chunks/debugWalletActions-DTcup4BP.cjs');
|
|
16
|
+
require('./chunks/tx-type-khL8tWtn.cjs');
|
|
17
17
|
require('./chunks/wasm-BYOKRR31.cjs');
|
|
18
18
|
require('./chunks/ethers.esm.min-BBQs5Urm.cjs');
|
|
19
|
-
require('./chunks/address-class-
|
|
19
|
+
require('./chunks/address-class-B8b7mx1K.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
package/dist/index.esm.js
CHANGED
|
@@ -10,8 +10,8 @@ export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount,
|
|
|
10
10
|
export { c as createKeystoreBundle, s as splitKeystoreBundle, u as unlockKeystoreBundle, a as unlockMasterKeystore, b as unlockNormalKeystore } from './chunks/keystore-B86UzV8A.js';
|
|
11
11
|
import './chunks/lclib-j2x9RvDY.js';
|
|
12
12
|
import './chunks/tslib.es6-WQS2tr1v.js';
|
|
13
|
-
import './chunks/debugWalletActions-
|
|
14
|
-
import './chunks/tx-type-
|
|
13
|
+
import './chunks/debugWalletActions-A_93DKNp.js';
|
|
14
|
+
import './chunks/tx-type-BUN9nEQ6.js';
|
|
15
15
|
import './chunks/wasm-CLXJDrJA.js';
|
|
16
16
|
import './chunks/ethers.esm.min-CiOJmj8w.js';
|
|
17
|
-
import './chunks/address-class-
|
|
17
|
+
import './chunks/address-class-3IzotplG.js';
|
package/dist/utils/index.amd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', '../chunks/address-class-
|
|
1
|
+
define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/wasm-CkFW222S', '../chunks/keystore-y1JlFTKh', '../chunks/ethers.esm.min-wXex1HuX', '../chunks/lclib-Bv86gksL', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/tslib.es6-D29rxPkW'], (function (exports, addressClass, wasm, keystore, ethers_esm_min, lclib, base, account, tslib_es6) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* ABI 코덱 + vendored ethers v5 namespace re-export.
|
|
@@ -419,12 +419,10 @@ define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/wasm-CkFW222S'
|
|
|
419
419
|
// return AddressType.UNKNOWN;
|
|
420
420
|
};
|
|
421
421
|
const isAccount = (addressType) => addressType === addressClass.AddressClass.User || addressType === addressClass.AddressClass.Synthetic || addressClass.AddressClass.VmEngine;
|
|
422
|
-
const
|
|
423
|
-
const isToken = (addressType) => addressType === addressClass.AddressClass.UserToken ||
|
|
424
|
-
addressType === addressClass.AddressClass.ContractToken ||
|
|
422
|
+
const isToken = (addressType) => addressType === addressClass.AddressClass.Token ||
|
|
425
423
|
addressType === addressClass.AddressClass.AssetToken ||
|
|
426
424
|
addressType === addressClass.AddressClass.AssetNFT;
|
|
427
|
-
const isSystemToken = (addressType) => addressType === addressClass.AddressClass.
|
|
425
|
+
const isSystemToken = (addressType) => addressType === addressClass.AddressClass.Token;
|
|
428
426
|
|
|
429
427
|
exports.calculateTxLinkHash = wasm.calculateTxLinkHash;
|
|
430
428
|
exports.compileCoreScript = wasm.compileCoreScript;
|
|
@@ -487,7 +485,6 @@ define(['exports', '../chunks/address-class-Dp7aNQb2', '../chunks/wasm-CkFW222S'
|
|
|
487
485
|
exports.getFuncSelector = getFuncSelector;
|
|
488
486
|
exports.getTransferFuncArgs = getTransferFuncArgs;
|
|
489
487
|
exports.isAccount = isAccount;
|
|
490
|
-
exports.isContract = isContract;
|
|
491
488
|
exports.isSystemToken = isSystemToken;
|
|
492
489
|
exports.isToken = isToken;
|
|
493
490
|
exports.loadLocusWasm = loadLocusWasm;
|
package/dist/utils/index.cjs.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var addressClass = require('../chunks/address-class-
|
|
3
|
+
var addressClass = require('../chunks/address-class-B8b7mx1K.cjs');
|
|
4
4
|
var wasm = require('../chunks/wasm-BYOKRR31.cjs');
|
|
5
5
|
var keystore = require('../chunks/keystore-BUskzeOs.cjs');
|
|
6
6
|
var ethers_esm_min = require('../chunks/ethers.esm.min-BBQs5Urm.cjs');
|
|
@@ -428,12 +428,10 @@ const checkAddressType = (address) => {
|
|
|
428
428
|
// return AddressType.UNKNOWN;
|
|
429
429
|
};
|
|
430
430
|
const isAccount = (addressType) => addressType === addressClass.AddressClass.User || addressType === addressClass.AddressClass.Synthetic || addressClass.AddressClass.VmEngine;
|
|
431
|
-
const
|
|
432
|
-
const isToken = (addressType) => addressType === addressClass.AddressClass.UserToken ||
|
|
433
|
-
addressType === addressClass.AddressClass.ContractToken ||
|
|
431
|
+
const isToken = (addressType) => addressType === addressClass.AddressClass.Token ||
|
|
434
432
|
addressType === addressClass.AddressClass.AssetToken ||
|
|
435
433
|
addressType === addressClass.AddressClass.AssetNFT;
|
|
436
|
-
const isSystemToken = (addressType) => addressType === addressClass.AddressClass.
|
|
434
|
+
const isSystemToken = (addressType) => addressType === addressClass.AddressClass.Token;
|
|
437
435
|
|
|
438
436
|
exports.calculateTxLinkHash = wasm.calculateTxLinkHash;
|
|
439
437
|
exports.compileCoreScript = wasm.compileCoreScript;
|
|
@@ -496,7 +494,6 @@ exports.getFunc = getFunc;
|
|
|
496
494
|
exports.getFuncSelector = getFuncSelector;
|
|
497
495
|
exports.getTransferFuncArgs = getTransferFuncArgs;
|
|
498
496
|
exports.isAccount = isAccount;
|
|
499
|
-
exports.isContract = isContract;
|
|
500
497
|
exports.isSystemToken = isSystemToken;
|
|
501
498
|
exports.isToken = isToken;
|
|
502
499
|
exports.loadLocusWasm = loadLocusWasm;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -36,7 +36,6 @@ export declare const verifyTxParams: (rpcResult: {
|
|
|
36
36
|
targetTxHash?: string | false;
|
|
37
37
|
}) => import("./tx-validator.cjs").IntegrityCheckResult;
|
|
38
38
|
export declare const checkAddressType: (address: string) => number;
|
|
39
|
-
export declare const isAccount: (addressType: number) => true |
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const
|
|
42
|
-
export declare const isSystemToken: (addressType: number) => addressType is 4 | 5;
|
|
39
|
+
export declare const isAccount: (addressType: number) => true | 2;
|
|
40
|
+
export declare const isToken: (addressType: number) => addressType is 4 | 6 | 7;
|
|
41
|
+
export declare const isSystemToken: (addressType: number) => addressType is 4;
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -36,7 +36,6 @@ export declare const verifyTxParams: (rpcResult: {
|
|
|
36
36
|
targetTxHash?: string | false;
|
|
37
37
|
}) => import("./tx-validator.mjs").IntegrityCheckResult;
|
|
38
38
|
export declare const checkAddressType: (address: string) => number;
|
|
39
|
-
export declare const isAccount: (addressType: number) => true |
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const
|
|
42
|
-
export declare const isSystemToken: (addressType: number) => addressType is 4 | 5;
|
|
39
|
+
export declare const isAccount: (addressType: number) => true | 2;
|
|
40
|
+
export declare const isToken: (addressType: number) => addressType is 4 | 6 | 7;
|
|
41
|
+
export declare const isSystemToken: (addressType: number) => addressType is 4;
|
package/dist/utils/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AddressClass } from '../chunks/address-class-
|
|
1
|
+
import { A as AddressClass } from '../chunks/address-class-3IzotplG.js';
|
|
2
2
|
import { n as convertDataToHex, p as convertHexToAddress, f as convertAddressToHex, r as convertHexToData, T as verifyTx, d as compileCoreScript } from '../chunks/wasm-CLXJDrJA.js';
|
|
3
3
|
export { b as calculateTxLinkHash, e as convertAddressToData, g as convertBase32ToData, h as convertBase32ToHex, i as convertCurrency, j as convertDataTo, k as convertDataToAddress, m as convertDataToBase32, o as convertDataToString, q as convertHexToBase32, s as convertStringToData, t as convertToData, c as createAccountAndKeystore, u as createMasterKeystore, v as createNormalKey, w as createNormalKeystore, x as decodeTxs, y as deriveKeysFromMnemonic, z as deriveKeysFromMnemonicAndPath, A as disCompileCoreScript, B as encodeTxCurrency, C as encodeTxNumber, D as generateMnemonic, E as generateMnemonicBySeed, F as getDefFromCoreScript, G as getHomeShard, H as getLibraryVersions, I as gzipAndEncode, J as hash, K as isGrantConsumingTx, l as loadMasterKeystore, a as loadNormalKeystore, L as makeCurrency, M as sign, N as signByMasterKey, O as signKeyBind, P as testCoreScript, Q as verify, R as verifyByMasterKey, S as verifyMerkleProof } from '../chunks/wasm-CLXJDrJA.js';
|
|
4
4
|
export { c as createKeystoreBundle, s as splitKeystoreBundle, u as unlockKeystoreBundle, a as unlockMasterKeystore, b as unlockNormalKeystore } from '../chunks/keystore-B86UzV8A.js';
|
|
@@ -427,11 +427,9 @@ const checkAddressType = (address) => {
|
|
|
427
427
|
// return AddressType.UNKNOWN;
|
|
428
428
|
};
|
|
429
429
|
const isAccount = (addressType) => addressType === AddressClass.User || addressType === AddressClass.Synthetic || AddressClass.VmEngine;
|
|
430
|
-
const
|
|
431
|
-
const isToken = (addressType) => addressType === AddressClass.UserToken ||
|
|
432
|
-
addressType === AddressClass.ContractToken ||
|
|
430
|
+
const isToken = (addressType) => addressType === AddressClass.Token ||
|
|
433
431
|
addressType === AddressClass.AssetToken ||
|
|
434
432
|
addressType === AddressClass.AssetNFT;
|
|
435
|
-
const isSystemToken = (addressType) => addressType === AddressClass.
|
|
433
|
+
const isSystemToken = (addressType) => addressType === AddressClass.Token;
|
|
436
434
|
|
|
437
|
-
export { LocusEthers, checkAddressType, compileCoreScript, convertAddressToHex, convertDataToHex, convertHexToAddress, convertHexToData, convertJsonToFuncString, decodeResult, encodeArgHex, findAbiFunction, getFunc, getFuncSelector, getTransferFuncArgs, isAccount,
|
|
435
|
+
export { LocusEthers, checkAddressType, compileCoreScript, convertAddressToHex, convertDataToHex, convertHexToAddress, convertHexToData, convertJsonToFuncString, decodeResult, encodeArgHex, findAbiFunction, getFunc, getFuncSelector, getTransferFuncArgs, isAccount, isSystemToken, isToken, loadLocusWasm, removeHexPrefix, txValidator, verifyTx, verifyTxParams };
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ParamsContractLog } from '../../../types/rpc/params-contract-log.cjs';
|
|
2
|
-
import { RpcGetContractLogResult } from '../../../types/rpc/rpc-get-contract-log-result.cjs';
|
|
3
|
-
import type { Client } from '../../../../clients/types.cjs';
|
|
4
|
-
export declare function getContractLog(client: Client, param: ParamsContractLog): Promise<RpcGetContractLogResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ParamsContractLog } from '../../../types/rpc/params-contract-log.mjs';
|
|
2
|
-
import { RpcGetContractLogResult } from '../../../types/rpc/rpc-get-contract-log-result.mjs';
|
|
3
|
-
import type { Client } from '../../../../clients/types.mjs';
|
|
4
|
-
export declare function getContractLog(client: Client, param: ParamsContractLog): Promise<RpcGetContractLogResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ParamsCallContract } from '../../../types/rpc/params-call-contract.cjs';
|
|
2
|
-
import { RpcViewContractResult } from '../../../types/rpc/rpc-view-contract-result.cjs';
|
|
3
|
-
import type { Client } from '../../../../clients/types.cjs';
|
|
4
|
-
export declare function viewContract(client: Client, param: ParamsCallContract): Promise<RpcViewContractResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ParamsCallContract } from '../../../types/rpc/params-call-contract.mjs';
|
|
2
|
-
import { RpcViewContractResult } from '../../../types/rpc/rpc-view-contract-result.mjs';
|
|
3
|
-
import type { Client } from '../../../../clients/types.mjs';
|
|
4
|
-
export declare function viewContract(client: Client, param: ParamsCallContract): Promise<RpcViewContractResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ParamsCalculateSpentByExpress } from '../../types/rpc/params-calculate-spent-by-express.cjs';
|
|
2
|
-
import { RpcCalculateSpentByExpressResult } from '../../types/rpc/rpc-calculate-spent-by-express-result.cjs';
|
|
3
|
-
import type { Client } from '../../../clients/types.cjs';
|
|
4
|
-
export declare function calculateSpentByExpress(client: Client, param: ParamsCalculateSpentByExpress): Promise<RpcCalculateSpentByExpressResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ParamsCalculateSpentByExpress } from '../../types/rpc/params-calculate-spent-by-express.mjs';
|
|
2
|
-
import { RpcCalculateSpentByExpressResult } from '../../types/rpc/rpc-calculate-spent-by-express-result.mjs';
|
|
3
|
-
import type { Client } from '../../../clients/types.mjs';
|
|
4
|
-
export declare function calculateSpentByExpress(client: Client, param: ParamsCalculateSpentByExpress): Promise<RpcCalculateSpentByExpressResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ParamsTransferCoinExpress } from '../../types/rpc/params-transfer-coin-express.cjs';
|
|
2
|
-
import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
|
|
3
|
-
import type { WalletClient } from '../../../clients/types.cjs';
|
|
4
|
-
export declare function transferCoinExpress(client: WalletClient, param: ParamsTransferCoinExpress): Promise<RpcCreateTxResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ParamsTransferCoinExpress } from '../../types/rpc/params-transfer-coin-express.mjs';
|
|
2
|
-
import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.mjs';
|
|
3
|
-
import type { WalletClient } from '../../../clients/types.mjs';
|
|
4
|
-
export declare function transferCoinExpress(client: WalletClient, param: ParamsTransferCoinExpress): Promise<RpcCreateTxResult>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TokenValuePair } from '../common/token-value-pair.cjs';
|
|
2
|
-
import { TxBase } from '../common/tx-base.cjs';
|
|
3
|
-
import { TxNoSignature } from '../common/tx-no-signature.cjs';
|
|
4
|
-
import { VmTxState } from '../common/vm-tx-state.cjs';
|
|
5
|
-
export type TxActivateCallContract = TxBase & TxNoSignature & {
|
|
6
|
-
vmResult: VmTxState;
|
|
7
|
-
fuelLimit: string;
|
|
8
|
-
amount: string;
|
|
9
|
-
tokenAmounts: TokenValuePair[];
|
|
10
|
-
func: string;
|
|
11
|
-
argData: string;
|
|
12
|
-
tokenProof: string;
|
|
13
|
-
tokenHash: string;
|
|
14
|
-
gathered: string;
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TokenValuePair } from '../common/token-value-pair.mjs';
|
|
2
|
-
import { TxBase } from '../common/tx-base.mjs';
|
|
3
|
-
import { TxNoSignature } from '../common/tx-no-signature.mjs';
|
|
4
|
-
import { VmTxState } from '../common/vm-tx-state.mjs';
|
|
5
|
-
export type TxActivateCallContract = TxBase & TxNoSignature & {
|
|
6
|
-
vmResult: VmTxState;
|
|
7
|
-
fuelLimit: string;
|
|
8
|
-
amount: string;
|
|
9
|
-
tokenAmounts: TokenValuePair[];
|
|
10
|
-
func: string;
|
|
11
|
-
argData: string;
|
|
12
|
-
tokenProof: string;
|
|
13
|
-
tokenHash: string;
|
|
14
|
-
gathered: string;
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TokenValuePair } from '../common/token-value-pair.cjs';
|
|
2
|
-
import { TxBase } from '../common/tx-base.cjs';
|
|
3
|
-
import { TxNoSignature } from '../common/tx-no-signature.cjs';
|
|
4
|
-
import { VmTxState } from '../common/vm-tx-state.cjs';
|
|
5
|
-
export type TxActivateOpenContract = TxBase & TxNoSignature & {
|
|
6
|
-
vmResult: VmTxState;
|
|
7
|
-
fuelLimit: string;
|
|
8
|
-
amount: string;
|
|
9
|
-
tokenAmounts: TokenValuePair[];
|
|
10
|
-
tokenHash: string;
|
|
11
|
-
gathered: string;
|
|
12
|
-
addr: string;
|
|
13
|
-
sysId: string;
|
|
14
|
-
code: string;
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TokenValuePair } from '../common/token-value-pair.mjs';
|
|
2
|
-
import { TxBase } from '../common/tx-base.mjs';
|
|
3
|
-
import { TxNoSignature } from '../common/tx-no-signature.mjs';
|
|
4
|
-
import { VmTxState } from '../common/vm-tx-state.mjs';
|
|
5
|
-
export type TxActivateOpenContract = TxBase & TxNoSignature & {
|
|
6
|
-
vmResult: VmTxState;
|
|
7
|
-
fuelLimit: string;
|
|
8
|
-
amount: string;
|
|
9
|
-
tokenAmounts: TokenValuePair[];
|
|
10
|
-
tokenHash: string;
|
|
11
|
-
gathered: string;
|
|
12
|
-
addr: string;
|
|
13
|
-
sysId: string;
|
|
14
|
-
code: string;
|
|
15
|
-
};
|