@locuschain/lib 0.2.4 → 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.
Files changed (111) hide show
  1. package/dist/accounts/index.amd.js +1 -1
  2. package/dist/accounts/index.cjs.cjs +1 -1
  3. package/dist/accounts/index.esm.js +1 -1
  4. package/dist/autogen/actions/debug/wallet/callContract.d.cts +4 -0
  5. package/dist/autogen/actions/debug/wallet/callContract.d.mts +4 -0
  6. package/dist/autogen/actions/debug/wallet/createContract.d.cts +4 -0
  7. package/dist/autogen/actions/debug/wallet/createContract.d.mts +4 -0
  8. package/dist/autogen/actions/debug/wallet/index.d.cts +2 -0
  9. package/dist/autogen/actions/debug/wallet/index.d.mts +2 -0
  10. package/dist/autogen/actions/public/calculateSpentByForward.d.cts +4 -0
  11. package/dist/autogen/actions/public/calculateSpentByForward.d.mts +4 -0
  12. package/dist/autogen/actions/public/calculateSpentByForwardList.d.cts +4 -0
  13. package/dist/autogen/actions/public/calculateSpentByForwardList.d.mts +4 -0
  14. package/dist/autogen/actions/public/index.d.cts +2 -1
  15. package/dist/autogen/actions/public/index.d.mts +2 -1
  16. package/dist/autogen/actions/wallet/forwardAssetObject.d.cts +4 -0
  17. package/dist/autogen/actions/wallet/forwardAssetObject.d.mts +4 -0
  18. package/dist/autogen/actions/wallet/forwardToken.d.cts +4 -0
  19. package/dist/autogen/actions/wallet/forwardToken.d.mts +4 -0
  20. package/dist/autogen/actions/wallet/index.d.cts +4 -0
  21. package/dist/autogen/actions/wallet/index.d.mts +4 -0
  22. package/dist/autogen/actions/wallet/transfer.d.cts +4 -0
  23. package/dist/autogen/actions/wallet/transfer.d.mts +4 -0
  24. package/dist/autogen/actions/wallet/transferAllRes.d.cts +4 -0
  25. package/dist/autogen/actions/wallet/transferAllRes.d.mts +4 -0
  26. package/dist/autogen/debugWalletActions.d.cts +3 -0
  27. package/dist/autogen/debugWalletActions.d.mts +3 -0
  28. package/dist/autogen/index.amd.js +9 -2
  29. package/dist/autogen/index.cjs.cjs +9 -2
  30. package/dist/autogen/index.esm.js +4 -2
  31. package/dist/autogen/locus-tx.d.cts +2 -2
  32. package/dist/autogen/locus-tx.d.mts +2 -2
  33. package/dist/autogen/publicActions.d.cts +4 -2
  34. package/dist/autogen/publicActions.d.mts +4 -2
  35. package/dist/autogen/rpc-api-spec.d.cts +17 -3
  36. package/dist/autogen/rpc-api-spec.d.mts +17 -3
  37. package/dist/autogen/types/common/contract-exec-status.d.cts +2 -1
  38. package/dist/autogen/types/common/contract-exec-status.d.mts +2 -1
  39. package/dist/autogen/types/common/forward-spent-item.d.cts +9 -0
  40. package/dist/autogen/types/common/forward-spent-item.d.mts +9 -0
  41. package/dist/autogen/types/common/index.d.cts +3 -0
  42. package/dist/autogen/types/common/index.d.mts +3 -0
  43. package/dist/autogen/types/common/params-transfer-asset.d.cts +4 -0
  44. package/dist/autogen/types/common/params-transfer-asset.d.mts +4 -0
  45. package/dist/autogen/types/common/res-changed-entry.d.cts +3 -2
  46. package/dist/autogen/types/common/res-changed-entry.d.mts +3 -2
  47. package/dist/autogen/types/common/res-state-value.d.cts +5 -0
  48. package/dist/autogen/types/common/res-state-value.d.mts +5 -0
  49. package/dist/autogen/types/consts/tx-type.d.cts +3 -1
  50. package/dist/autogen/types/consts/tx-type.d.mts +3 -1
  51. package/dist/autogen/types/consts/tx-types.d.cts +15 -1
  52. package/dist/autogen/types/consts/tx-types.d.mts +15 -1
  53. package/dist/autogen/types/rpc/index.d.cts +9 -2
  54. package/dist/autogen/types/rpc/index.d.mts +9 -2
  55. package/dist/autogen/types/rpc/params-calculate-spent-by-forward-list.d.cts +3 -0
  56. package/dist/autogen/types/rpc/params-calculate-spent-by-forward-list.d.mts +3 -0
  57. package/dist/autogen/types/rpc/{params-calculate-spent-by-forward-coin.d.cts → params-calculate-spent-by-forward.d.cts} +1 -1
  58. package/dist/autogen/types/rpc/{params-calculate-spent-by-forward-coin.d.mts → params-calculate-spent-by-forward.d.mts} +1 -1
  59. package/dist/autogen/types/rpc/params-create-contract.d.cts +15 -0
  60. package/dist/autogen/types/rpc/params-create-contract.d.mts +15 -0
  61. package/dist/autogen/types/rpc/params-forward-asset-object.d.cts +7 -0
  62. package/dist/autogen/types/rpc/params-forward-asset-object.d.mts +7 -0
  63. package/dist/autogen/types/rpc/params-forward-token.d.cts +7 -0
  64. package/dist/autogen/types/rpc/params-forward-token.d.mts +7 -0
  65. package/dist/autogen/types/rpc/params-transfer-all-res.d.cts +14 -0
  66. package/dist/autogen/types/rpc/params-transfer-all-res.d.mts +14 -0
  67. package/dist/autogen/types/rpc/params-transfer-tokens.d.cts +0 -4
  68. package/dist/autogen/types/rpc/params-transfer-tokens.d.mts +0 -4
  69. package/dist/autogen/types/rpc/params-transfer.d.cts +10 -0
  70. package/dist/autogen/types/rpc/params-transfer.d.mts +10 -0
  71. package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-list-result.d.cts +4 -0
  72. package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-list-result.d.mts +4 -0
  73. package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-result.d.cts +7 -0
  74. package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-result.d.mts +7 -0
  75. package/dist/autogen/types/tx/index.d.cts +1 -0
  76. package/dist/autogen/types/tx/index.d.mts +1 -0
  77. package/dist/autogen/types/tx/tx-activate-vme-result.d.cts +1 -0
  78. package/dist/autogen/types/tx/tx-activate-vme-result.d.mts +1 -0
  79. package/dist/autogen/types/tx/tx-activate-vme-transfer.d.cts +1 -0
  80. package/dist/autogen/types/tx/tx-activate-vme-transfer.d.mts +1 -0
  81. package/dist/autogen/types/tx/tx-transfer-all-res.d.cts +15 -0
  82. package/dist/autogen/types/tx/tx-transfer-all-res.d.mts +15 -0
  83. package/dist/autogen/walletActions.d.cts +8 -0
  84. package/dist/autogen/walletActions.d.mts +8 -0
  85. package/dist/autogen/wasm/lclib.wasm +0 -0
  86. package/dist/chunks/{debugWalletActions-qkesE_0m.js → debugWalletActions-A_93DKNp.js} +72 -4
  87. package/dist/chunks/{debugWalletActions-Bd8C-fZB.js → debugWalletActions-D3FUuxE6.js} +79 -4
  88. package/dist/chunks/{debugWalletActions-DIQY8cBm.cjs → debugWalletActions-DTcup4BP.cjs} +79 -4
  89. package/dist/chunks/{tx-type-D_IH9tdK.js → tx-type-BUN9nEQ6.js} +3 -1
  90. package/dist/chunks/{tx-type-CnfCIc5p.js → tx-type-DYAaL3xz.js} +3 -1
  91. package/dist/chunks/{tx-type-CjORX0H2.cjs → tx-type-khL8tWtn.cjs} +3 -1
  92. package/dist/clients/createLocusPublicClient.d.cts +2 -1
  93. package/dist/clients/createLocusPublicClient.d.mts +2 -1
  94. package/dist/clients/createLocusWalletClient.d.cts +6 -0
  95. package/dist/clients/createLocusWalletClient.d.mts +6 -0
  96. package/dist/clients/index.amd.js +1 -1
  97. package/dist/clients/index.cjs.cjs +1 -1
  98. package/dist/clients/index.esm.js +1 -1
  99. package/dist/constant/index.amd.js +18 -4
  100. package/dist/constant/index.cjs.cjs +18 -4
  101. package/dist/constant/index.d.cts +18 -2
  102. package/dist/constant/index.d.mts +18 -2
  103. package/dist/constant/index.esm.js +18 -4
  104. package/dist/index.amd.js +1 -1
  105. package/dist/index.cjs.cjs +2 -2
  106. package/dist/index.esm.js +2 -2
  107. package/package.json +1 -1
  108. package/dist/autogen/actions/public/calculateSpentByForwardCoin.d.cts +0 -4
  109. package/dist/autogen/actions/public/calculateSpentByForwardCoin.d.mts +0 -4
  110. package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-coin-result.d.cts +0 -3
  111. package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-coin-result.d.mts +0 -3
@@ -29,6 +29,8 @@ const TxType = Object.freeze({
29
29
  FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
30
30
  ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
31
31
  BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
32
+ TRANSFER_ALL_RES: 'TX_TRANSFER_ALL_RES',
33
+ TRANSFER_ALL_RES_FEE: 'TX_TRANSFER_ALL_RES_FEE',
32
34
  REVOKE: 'TX_REVOKE',
33
35
  CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
34
36
  ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
@@ -44,7 +46,7 @@ const TxType = Object.freeze({
44
46
  LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
45
47
  ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
46
48
  UNLOCK_STAKE: 'TX_UNLOCK_STAKE',
47
- CREATE_VME: 'TX_CREATE_VME',
49
+ CREATE_VME_FEE: 'TX_CREATE_VME_FEE',
48
50
  ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
49
51
  VME_BLOCK: 'TX_VME_BLOCK',
50
52
  CALL_VME: 'TX_CALL_VME',
@@ -31,6 +31,8 @@ define(['exports'], (function (exports) { 'use strict';
31
31
  FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
32
32
  ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
33
33
  BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
34
+ TRANSFER_ALL_RES: 'TX_TRANSFER_ALL_RES',
35
+ TRANSFER_ALL_RES_FEE: 'TX_TRANSFER_ALL_RES_FEE',
34
36
  REVOKE: 'TX_REVOKE',
35
37
  CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
36
38
  ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
@@ -46,7 +48,7 @@ define(['exports'], (function (exports) { 'use strict';
46
48
  LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
47
49
  ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
48
50
  UNLOCK_STAKE: 'TX_UNLOCK_STAKE',
49
- CREATE_VME: 'TX_CREATE_VME',
51
+ CREATE_VME_FEE: 'TX_CREATE_VME_FEE',
50
52
  ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
51
53
  VME_BLOCK: 'TX_VME_BLOCK',
52
54
  CALL_VME: 'TX_CALL_VME',
@@ -31,6 +31,8 @@ const TxType = Object.freeze({
31
31
  FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
32
32
  ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
33
33
  BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
34
+ TRANSFER_ALL_RES: 'TX_TRANSFER_ALL_RES',
35
+ TRANSFER_ALL_RES_FEE: 'TX_TRANSFER_ALL_RES_FEE',
34
36
  REVOKE: 'TX_REVOKE',
35
37
  CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
36
38
  ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
@@ -46,7 +48,7 @@ const TxType = Object.freeze({
46
48
  LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
47
49
  ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
48
50
  UNLOCK_STAKE: 'TX_UNLOCK_STAKE',
49
- CREATE_VME: 'TX_CREATE_VME',
51
+ CREATE_VME_FEE: 'TX_CREATE_VME_FEE',
50
52
  ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
51
53
  VME_BLOCK: 'TX_VME_BLOCK',
52
54
  CALL_VME: 'TX_CALL_VME',
@@ -60,7 +60,8 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
60
60
  readonly viewVme: (param: import("../index.cjs").ParamsCallVme) => Promise<import("../index.cjs").RpcViewVmeResult>;
61
61
  readonly accountHeightsToDownload: (param: import("../index.cjs").ParamsAccountHeights) => Promise<import("../index.cjs").HeightsResult>;
62
62
  readonly accountHeightsToUpload: (param: import("../index.cjs").ParamsAccountHeights) => Promise<import("../index.cjs").UploadHeightsResult>;
63
- readonly calculateSpentByForwardCoin: (param: import("../index.cjs").ParamsCalculateSpentByForwardCoin) => Promise<import("../index.cjs").RpcCalculateSpentByForwardCoinResult>;
63
+ readonly calculateSpentByForward: (param: import("../index.cjs").ParamsCalculateSpentByForward) => Promise<import("../index.cjs").RpcCalculateSpentByForwardResult>;
64
+ readonly calculateSpentByForwardList: (param: import("../index.cjs").ParamsCalculateSpentByForwardList) => Promise<import("../index.cjs").RpcCalculateSpentByForwardListResult>;
64
65
  readonly clientMessage: (param: import("../index.cjs").ParamStr) => Promise<any>;
65
66
  readonly downloadAccountTxs: (param: import("../index.cjs").ParamsDownloadAccountTxs) => Promise<import("../index.cjs").OutputDownloadAccountTxs>;
66
67
  readonly findDuplicateSubscriber: (params: import("../index.cjs").ParamsFindDuplicateSubscriber) => Promise<import("../index.cjs").RpcFindDuplicateSubscriberResult>;
@@ -60,7 +60,8 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
60
60
  readonly viewVme: (param: import("../index.mjs").ParamsCallVme) => Promise<import("../index.mjs").RpcViewVmeResult>;
61
61
  readonly accountHeightsToDownload: (param: import("../index.mjs").ParamsAccountHeights) => Promise<import("../index.mjs").HeightsResult>;
62
62
  readonly accountHeightsToUpload: (param: import("../index.mjs").ParamsAccountHeights) => Promise<import("../index.mjs").UploadHeightsResult>;
63
- readonly calculateSpentByForwardCoin: (param: import("../index.mjs").ParamsCalculateSpentByForwardCoin) => Promise<import("../index.mjs").RpcCalculateSpentByForwardCoinResult>;
63
+ readonly calculateSpentByForward: (param: import("../index.mjs").ParamsCalculateSpentByForward) => Promise<import("../index.mjs").RpcCalculateSpentByForwardResult>;
64
+ readonly calculateSpentByForwardList: (param: import("../index.mjs").ParamsCalculateSpentByForwardList) => Promise<import("../index.mjs").RpcCalculateSpentByForwardListResult>;
64
65
  readonly clientMessage: (param: import("../index.mjs").ParamStr) => Promise<any>;
65
66
  readonly downloadAccountTxs: (param: import("../index.mjs").ParamsDownloadAccountTxs) => Promise<import("../index.mjs").OutputDownloadAccountTxs>;
66
67
  readonly findDuplicateSubscriber: (params: import("../index.mjs").ParamsFindDuplicateSubscriber) => Promise<import("../index.mjs").RpcFindDuplicateSubscriberResult>;
@@ -28,7 +28,9 @@ export type CreateLocusWalletClientArgs = {
28
28
  * 읽기 전용 RPC 는 {@link createLocusPublicClient} 참고.
29
29
  */
30
30
  export declare function createLocusWalletClient(args: CreateLocusWalletClientArgs): import("./types.cjs").Client<DualKeyAccount> & {
31
+ readonly callContract: (param: import("../index.cjs").ParamsCallVme) => Promise<import("../index.cjs").RpcCreateTxResult>;
31
32
  readonly callVme: (param: import("../index.cjs").ParamsCallVme) => Promise<import("../index.cjs").RpcCreateTxResult>;
33
+ readonly createContract: (param: import("../index.cjs").ParamsCreateContract) => Promise<import("../index.cjs").RpcCreateTxResult>;
32
34
  readonly createSynthAccount: (param: import("../index.cjs").ParamsCreateSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
33
35
  readonly postDataToSynthAccount: (param: import("../index.cjs").ParamsPostDataToSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
34
36
  readonly acceptScript: (params: import("../index.cjs").ParamsAcceptScript) => Promise<import("../index.cjs").RpcCreateTxResult>;
@@ -40,13 +42,17 @@ export declare function createLocusWalletClient(args: CreateLocusWalletClientArg
40
42
  readonly createAssetObject: (param: import("../index.cjs").ParamsCreateAssetObject) => Promise<import("../index.cjs").RpcCreateTxResult>;
41
43
  readonly createToken: (param: import("../index.cjs").ParamsCreateToken) => Promise<import("../index.cjs").RpcCreateTxResult>;
42
44
  readonly createVme: (param: import("../index.cjs").ParamsCreateVme) => Promise<import("../index.cjs").RpcCreateTxResult>;
45
+ readonly forwardAssetObject: (params: import("../index.cjs").ParamsForwardAssetObject) => Promise<import("../index.cjs").RpcCreateTxResult>;
43
46
  readonly forwardCoin: (param: import("../index.cjs").ParamsForwardCoin) => Promise<import("../index.cjs").RpcCreateTxResult>;
47
+ readonly forwardToken: (params: import("../index.cjs").ParamsForwardToken) => Promise<import("../index.cjs").RpcCreateTxResult>;
44
48
  readonly freezeAccount: (params: import("../index.cjs").ParamsFreezeAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
45
49
  readonly lockStake: (params: import("../index.cjs").ParamsLockStake) => Promise<import("../index.cjs").RpcCreateTxResult>;
46
50
  readonly openAccount: (param: import("../index.cjs").ParamsOpenAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
47
51
  readonly postData: (params: import("../index.cjs").InputParamsDataTransfer) => Promise<import("../index.cjs").RpcCreateTxResult>;
48
52
  readonly provideScript: (params: import("../index.cjs").ParamsProvideScript) => Promise<import("../index.cjs").RpcCreateTxResult>;
49
53
  readonly requestDataTrade: (params: import("../index.cjs").ParamsRequestDataTrade) => Promise<import("../index.cjs").RpcDataTradeResult>;
54
+ readonly transfer: (params: import("../index.cjs").ParamsTransfer) => Promise<import("../index.cjs").RpcCreateTxResult>;
55
+ readonly transferAllRes: (params: import("../index.cjs").ParamsTransferAllRes) => Promise<import("../index.cjs").RpcCreateTxResult>;
50
56
  readonly transferAssetObject: (params: import("../index.cjs").ParamsTransferAssetObject) => Promise<import("../index.cjs").RpcCreateTxResult>;
51
57
  readonly transferCoin: (param: import("../index.cjs").ParamsTransferCoin) => Promise<import("../index.cjs").RpcCreateTxResult>;
52
58
  readonly transferToken: (params: import("../index.cjs").ParamsTransferTokens) => Promise<import("../index.cjs").RpcCreateTxResult>;
@@ -28,7 +28,9 @@ export type CreateLocusWalletClientArgs = {
28
28
  * 읽기 전용 RPC 는 {@link createLocusPublicClient} 참고.
29
29
  */
30
30
  export declare function createLocusWalletClient(args: CreateLocusWalletClientArgs): import("./types.mjs").Client<DualKeyAccount> & {
31
+ readonly callContract: (param: import("../index.mjs").ParamsCallVme) => Promise<import("../index.mjs").RpcCreateTxResult>;
31
32
  readonly callVme: (param: import("../index.mjs").ParamsCallVme) => Promise<import("../index.mjs").RpcCreateTxResult>;
33
+ readonly createContract: (param: import("../index.mjs").ParamsCreateContract) => Promise<import("../index.mjs").RpcCreateTxResult>;
32
34
  readonly createSynthAccount: (param: import("../index.mjs").ParamsCreateSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
33
35
  readonly postDataToSynthAccount: (param: import("../index.mjs").ParamsPostDataToSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
34
36
  readonly acceptScript: (params: import("../index.mjs").ParamsAcceptScript) => Promise<import("../index.mjs").RpcCreateTxResult>;
@@ -40,13 +42,17 @@ export declare function createLocusWalletClient(args: CreateLocusWalletClientArg
40
42
  readonly createAssetObject: (param: import("../index.mjs").ParamsCreateAssetObject) => Promise<import("../index.mjs").RpcCreateTxResult>;
41
43
  readonly createToken: (param: import("../index.mjs").ParamsCreateToken) => Promise<import("../index.mjs").RpcCreateTxResult>;
42
44
  readonly createVme: (param: import("../index.mjs").ParamsCreateVme) => Promise<import("../index.mjs").RpcCreateTxResult>;
45
+ readonly forwardAssetObject: (params: import("../index.mjs").ParamsForwardAssetObject) => Promise<import("../index.mjs").RpcCreateTxResult>;
43
46
  readonly forwardCoin: (param: import("../index.mjs").ParamsForwardCoin) => Promise<import("../index.mjs").RpcCreateTxResult>;
47
+ readonly forwardToken: (params: import("../index.mjs").ParamsForwardToken) => Promise<import("../index.mjs").RpcCreateTxResult>;
44
48
  readonly freezeAccount: (params: import("../index.mjs").ParamsFreezeAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
45
49
  readonly lockStake: (params: import("../index.mjs").ParamsLockStake) => Promise<import("../index.mjs").RpcCreateTxResult>;
46
50
  readonly openAccount: (param: import("../index.mjs").ParamsOpenAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
47
51
  readonly postData: (params: import("../index.mjs").InputParamsDataTransfer) => Promise<import("../index.mjs").RpcCreateTxResult>;
48
52
  readonly provideScript: (params: import("../index.mjs").ParamsProvideScript) => Promise<import("../index.mjs").RpcCreateTxResult>;
49
53
  readonly requestDataTrade: (params: import("../index.mjs").ParamsRequestDataTrade) => Promise<import("../index.mjs").RpcDataTradeResult>;
54
+ readonly transfer: (params: import("../index.mjs").ParamsTransfer) => Promise<import("../index.mjs").RpcCreateTxResult>;
55
+ readonly transferAllRes: (params: import("../index.mjs").ParamsTransferAllRes) => Promise<import("../index.mjs").RpcCreateTxResult>;
50
56
  readonly transferAssetObject: (params: import("../index.mjs").ParamsTransferAssetObject) => Promise<import("../index.mjs").RpcCreateTxResult>;
51
57
  readonly transferCoin: (param: import("../index.mjs").ParamsTransferCoin) => Promise<import("../index.mjs").RpcCreateTxResult>;
52
58
  readonly transferToken: (params: import("../index.mjs").ParamsTransferTokens) => Promise<import("../index.mjs").RpcCreateTxResult>;
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/lclib-Bv86gksL', '../chunks/debugWalletActions-Bd8C-fZB', '../chunks/tslib.es6-D29rxPkW', '../transports/index.amd', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/transport-BBAz1kmP'], (function (exports, lclib, debugWalletActions, tslib_es6, transports, rpc, base, account, transport) { 'use strict';
1
+ define(['exports', '../chunks/lclib-Bv86gksL', '../chunks/debugWalletActions-D3FUuxE6', '../chunks/tslib.es6-D29rxPkW', '../transports/index.amd', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/transport-BBAz1kmP'], (function (exports, lclib, debugWalletActions, tslib_es6, transports, rpc, base, account, transport) { 'use strict';
2
2
 
3
3
  function createClient(args) {
4
4
  var _a;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunks/lclib-rGyKpClJ.cjs');
4
- var debugWalletActions = require('../chunks/debugWalletActions-DIQY8cBm.cjs');
4
+ var debugWalletActions = require('../chunks/debugWalletActions-DTcup4BP.cjs');
5
5
  require('../chunks/tslib.es6-Cfi3-HmA.cjs');
6
6
  var transports = require('../transports/index.cjs.cjs');
7
7
  require('../chunks/rpc-DwWIkUva.cjs');
@@ -1,5 +1,5 @@
1
1
  import '../chunks/lclib-j2x9RvDY.js';
2
- import { ao as publicActions, T as debugPublicActions, aD as walletActions, U as debugWalletActions } from '../chunks/debugWalletActions-qkesE_0m.js';
2
+ import { at as publicActions, W as debugPublicActions, aK as walletActions, X as debugWalletActions } from '../chunks/debugWalletActions-A_93DKNp.js';
3
3
  import '../chunks/tslib.es6-WQS2tr1v.js';
4
4
  import { http } from '../transports/index.esm.js';
5
5
  import '../chunks/rpc-BlPk44QH.js';
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-CnfCIc5p'], (function (exports, addressClass, txType) { 'use strict';
1
+ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-DYAaL3xz'], (function (exports, addressClass, txType) { 'use strict';
2
2
 
3
3
  // Automatically generated file. DO NOT EDIT.
4
4
  const CurrencyUnit = Object.freeze({
@@ -236,12 +236,12 @@ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-CnfCIc
236
236
  "useGrant": false,
237
237
  "useFee": true
238
238
  },
239
- "TX_CREATE_VME": {
240
- "fee": "10000000000000",
239
+ "TX_CREATE_VME_FEE": {
240
+ "fee": "1000000000000000",
241
241
  "grant": 0,
242
242
  "sizeBased": false,
243
243
  "useGrant": false,
244
- "useFee": false
244
+ "useFee": true
245
245
  },
246
246
  "TX_FINALIZE": {
247
247
  "fee": "10000000000000",
@@ -362,6 +362,20 @@ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-CnfCIc
362
362
  "useGrant": false,
363
363
  "useFee": true
364
364
  },
365
+ "TX_TRANSFER_ALL_RES": {
366
+ "fee": "10000000000000",
367
+ "grant": 1000,
368
+ "sizeBased": false,
369
+ "useGrant": true,
370
+ "useFee": false
371
+ },
372
+ "TX_TRANSFER_ALL_RES_FEE": {
373
+ "fee": "0",
374
+ "grant": 0,
375
+ "sizeBased": true,
376
+ "useGrant": false,
377
+ "useFee": true
378
+ },
365
379
  "TX_TRANSFER_ASSETOBJECT": {
366
380
  "fee": "10000000000000",
367
381
  "grant": 1000,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var addressClass = require('../chunks/address-class-B8b7mx1K.cjs');
4
- var txType = require('../chunks/tx-type-CjORX0H2.cjs');
4
+ var txType = require('../chunks/tx-type-khL8tWtn.cjs');
5
5
 
6
6
  // Automatically generated file. DO NOT EDIT.
7
7
  const CurrencyUnit = Object.freeze({
@@ -239,12 +239,12 @@ const TxTypes$1 = {
239
239
  "useGrant": false,
240
240
  "useFee": true
241
241
  },
242
- "TX_CREATE_VME": {
243
- "fee": "10000000000000",
242
+ "TX_CREATE_VME_FEE": {
243
+ "fee": "1000000000000000",
244
244
  "grant": 0,
245
245
  "sizeBased": false,
246
246
  "useGrant": false,
247
- "useFee": false
247
+ "useFee": true
248
248
  },
249
249
  "TX_FINALIZE": {
250
250
  "fee": "10000000000000",
@@ -365,6 +365,20 @@ const TxTypes$1 = {
365
365
  "useGrant": false,
366
366
  "useFee": true
367
367
  },
368
+ "TX_TRANSFER_ALL_RES": {
369
+ "fee": "10000000000000",
370
+ "grant": 1000,
371
+ "sizeBased": false,
372
+ "useGrant": true,
373
+ "useFee": false
374
+ },
375
+ "TX_TRANSFER_ALL_RES_FEE": {
376
+ "fee": "0",
377
+ "grant": 0,
378
+ "sizeBased": true,
379
+ "useGrant": false,
380
+ "useFee": true
381
+ },
368
382
  "TX_TRANSFER_ASSETOBJECT": {
369
383
  "fee": "10000000000000",
370
384
  "grant": 1000,
@@ -216,7 +216,7 @@ export declare const TxTypes: {
216
216
  useGrant: boolean;
217
217
  useFee: boolean;
218
218
  };
219
- TX_CREATE_VME: {
219
+ TX_CREATE_VME_FEE: {
220
220
  fee: string;
221
221
  grant: number;
222
222
  sizeBased: boolean;
@@ -342,6 +342,20 @@ export declare const TxTypes: {
342
342
  useGrant: boolean;
343
343
  useFee: boolean;
344
344
  };
345
+ TX_TRANSFER_ALL_RES: {
346
+ fee: string;
347
+ grant: number;
348
+ sizeBased: boolean;
349
+ useGrant: boolean;
350
+ useFee: boolean;
351
+ };
352
+ TX_TRANSFER_ALL_RES_FEE: {
353
+ fee: string;
354
+ grant: number;
355
+ sizeBased: boolean;
356
+ useGrant: boolean;
357
+ useFee: boolean;
358
+ };
345
359
  TX_TRANSFER_ASSETOBJECT: {
346
360
  fee: string;
347
361
  grant: number;
@@ -444,6 +458,8 @@ export declare const TxType: Readonly<{
444
458
  readonly FORWARD_ASSETOBJECT: "TX_FORWARD_ASSETOBJECT";
445
459
  readonly ACTIVATE_ASSETOBJECT: "TX_ACTIVATE_ASSETOBJECT";
446
460
  readonly BURN_ASSETOBJECT: "TX_BURN_ASSETOBJECT";
461
+ readonly TRANSFER_ALL_RES: "TX_TRANSFER_ALL_RES";
462
+ readonly TRANSFER_ALL_RES_FEE: "TX_TRANSFER_ALL_RES_FEE";
447
463
  readonly REVOKE: "TX_REVOKE";
448
464
  readonly CLOSE_ACCOUNT: "TX_CLOSE_ACCOUNT";
449
465
  readonly ACTIVATE_ALL_RES: "TX_ACTIVATE_ALL_RES";
@@ -459,7 +475,7 @@ export declare const TxType: Readonly<{
459
475
  readonly LOCK_STAKE_FOR_VME: "TX_LOCK_STAKE_FOR_VME";
460
476
  readonly ACTIVATE_LOCK_STAKE_FOR_VME: "TX_ACTIVATE_LOCK_STAKE_FOR_VME";
461
477
  readonly UNLOCK_STAKE: "TX_UNLOCK_STAKE";
462
- readonly CREATE_VME: "TX_CREATE_VME";
478
+ readonly CREATE_VME_FEE: "TX_CREATE_VME_FEE";
463
479
  readonly ACTIVATE_OPEN_VME: "TX_ACTIVATE_OPEN_VME";
464
480
  readonly VME_BLOCK: "TX_VME_BLOCK";
465
481
  readonly CALL_VME: "TX_CALL_VME";
@@ -216,7 +216,7 @@ export declare const TxTypes: {
216
216
  useGrant: boolean;
217
217
  useFee: boolean;
218
218
  };
219
- TX_CREATE_VME: {
219
+ TX_CREATE_VME_FEE: {
220
220
  fee: string;
221
221
  grant: number;
222
222
  sizeBased: boolean;
@@ -342,6 +342,20 @@ export declare const TxTypes: {
342
342
  useGrant: boolean;
343
343
  useFee: boolean;
344
344
  };
345
+ TX_TRANSFER_ALL_RES: {
346
+ fee: string;
347
+ grant: number;
348
+ sizeBased: boolean;
349
+ useGrant: boolean;
350
+ useFee: boolean;
351
+ };
352
+ TX_TRANSFER_ALL_RES_FEE: {
353
+ fee: string;
354
+ grant: number;
355
+ sizeBased: boolean;
356
+ useGrant: boolean;
357
+ useFee: boolean;
358
+ };
345
359
  TX_TRANSFER_ASSETOBJECT: {
346
360
  fee: string;
347
361
  grant: number;
@@ -444,6 +458,8 @@ export declare const TxType: Readonly<{
444
458
  readonly FORWARD_ASSETOBJECT: "TX_FORWARD_ASSETOBJECT";
445
459
  readonly ACTIVATE_ASSETOBJECT: "TX_ACTIVATE_ASSETOBJECT";
446
460
  readonly BURN_ASSETOBJECT: "TX_BURN_ASSETOBJECT";
461
+ readonly TRANSFER_ALL_RES: "TX_TRANSFER_ALL_RES";
462
+ readonly TRANSFER_ALL_RES_FEE: "TX_TRANSFER_ALL_RES_FEE";
447
463
  readonly REVOKE: "TX_REVOKE";
448
464
  readonly CLOSE_ACCOUNT: "TX_CLOSE_ACCOUNT";
449
465
  readonly ACTIVATE_ALL_RES: "TX_ACTIVATE_ALL_RES";
@@ -459,7 +475,7 @@ export declare const TxType: Readonly<{
459
475
  readonly LOCK_STAKE_FOR_VME: "TX_LOCK_STAKE_FOR_VME";
460
476
  readonly ACTIVATE_LOCK_STAKE_FOR_VME: "TX_ACTIVATE_LOCK_STAKE_FOR_VME";
461
477
  readonly UNLOCK_STAKE: "TX_UNLOCK_STAKE";
462
- readonly CREATE_VME: "TX_CREATE_VME";
478
+ readonly CREATE_VME_FEE: "TX_CREATE_VME_FEE";
463
479
  readonly ACTIVATE_OPEN_VME: "TX_ACTIVATE_OPEN_VME";
464
480
  readonly VME_BLOCK: "TX_VME_BLOCK";
465
481
  readonly CALL_VME: "TX_CALL_VME";
@@ -1,5 +1,5 @@
1
1
  import { A as AddressClass$1 } from '../chunks/address-class-3IzotplG.js';
2
- import { T as TxType$1 } from '../chunks/tx-type-D_IH9tdK.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({
@@ -237,12 +237,12 @@ const TxTypes$1 = {
237
237
  "useGrant": false,
238
238
  "useFee": true
239
239
  },
240
- "TX_CREATE_VME": {
241
- "fee": "10000000000000",
240
+ "TX_CREATE_VME_FEE": {
241
+ "fee": "1000000000000000",
242
242
  "grant": 0,
243
243
  "sizeBased": false,
244
244
  "useGrant": false,
245
- "useFee": false
245
+ "useFee": true
246
246
  },
247
247
  "TX_FINALIZE": {
248
248
  "fee": "10000000000000",
@@ -363,6 +363,20 @@ const TxTypes$1 = {
363
363
  "useGrant": false,
364
364
  "useFee": true
365
365
  },
366
+ "TX_TRANSFER_ALL_RES": {
367
+ "fee": "10000000000000",
368
+ "grant": 1000,
369
+ "sizeBased": false,
370
+ "useGrant": true,
371
+ "useFee": false
372
+ },
373
+ "TX_TRANSFER_ALL_RES_FEE": {
374
+ "fee": "0",
375
+ "grant": 0,
376
+ "sizeBased": true,
377
+ "useGrant": false,
378
+ "useFee": true
379
+ },
366
380
  "TX_TRANSFER_ASSETOBJECT": {
367
381
  "fee": "10000000000000",
368
382
  "grant": 1000,
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-Bd8C-fZB', './chunks/tx-type-CnfCIc5p', './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';
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
 
@@ -12,8 +12,8 @@ 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-DIQY8cBm.cjs');
16
- require('./chunks/tx-type-CjORX0H2.cjs');
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
19
  require('./chunks/address-class-B8b7mx1K.cjs');
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-qkesE_0m.js';
14
- import './chunks/tx-type-D_IH9tdK.js';
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
17
  import './chunks/address-class-3IzotplG.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locuschain/lib",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "author": "bloomtechnology",
6
6
  "license": "MIT",
@@ -1,4 +0,0 @@
1
- import { ParamsCalculateSpentByForwardCoin } from '../../types/rpc/params-calculate-spent-by-forward-coin.cjs';
2
- import { RpcCalculateSpentByForwardCoinResult } from '../../types/rpc/rpc-calculate-spent-by-forward-coin-result.cjs';
3
- import type { Client } from '../../../clients/types.cjs';
4
- export declare function calculateSpentByForwardCoin(client: Client, param: ParamsCalculateSpentByForwardCoin): Promise<RpcCalculateSpentByForwardCoinResult>;
@@ -1,4 +0,0 @@
1
- import { ParamsCalculateSpentByForwardCoin } from '../../types/rpc/params-calculate-spent-by-forward-coin.mjs';
2
- import { RpcCalculateSpentByForwardCoinResult } from '../../types/rpc/rpc-calculate-spent-by-forward-coin-result.mjs';
3
- import type { Client } from '../../../clients/types.mjs';
4
- export declare function calculateSpentByForwardCoin(client: Client, param: ParamsCalculateSpentByForwardCoin): Promise<RpcCalculateSpentByForwardCoinResult>;
@@ -1,3 +0,0 @@
1
- export type RpcCalculateSpentByForwardCoinResult = {
2
- amount: string;
3
- };
@@ -1,3 +0,0 @@
1
- export type RpcCalculateSpentByForwardCoinResult = {
2
- amount: string;
3
- };