@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
@@ -16,19 +16,23 @@ import { ParamsAccount } from './types/rpc/params-account.mjs';
16
16
  import { ParamsAccounts } from './types/rpc/params-accounts.mjs';
17
17
  import { ParamsBecomeGuest } from './types/rpc/params-become-guest.mjs';
18
18
  import { ParamsBecomeHost } from './types/rpc/params-become-host.mjs';
19
- import { ParamsCalculateSpentByForwardCoin } from './types/rpc/params-calculate-spent-by-forward-coin.mjs';
19
+ import { ParamsCalculateSpentByForwardList } from './types/rpc/params-calculate-spent-by-forward-list.mjs';
20
+ import { ParamsCalculateSpentByForward } from './types/rpc/params-calculate-spent-by-forward.mjs';
20
21
  import { ParamsCallVme } from './types/rpc/params-call-vme.mjs';
21
22
  import { ParamsChangeKey } from './types/rpc/params-change-key.mjs';
22
23
  import { ParamsChangeVKey } from './types/rpc/params-change-vkey.mjs';
23
24
  import { ParamsCloseAccount } from './types/rpc/params-close-account.mjs';
24
25
  import { ParamsCreateAssetObject } from './types/rpc/params-create-asset-object.mjs';
26
+ import { ParamsCreateContract } from './types/rpc/params-create-contract.mjs';
25
27
  import { ParamsCreateNode } from './types/rpc/params-create-node.mjs';
26
28
  import { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.mjs';
27
29
  import { ParamsCreateToken } from './types/rpc/params-create-token.mjs';
28
30
  import { ParamsCreateVme } from './types/rpc/params-create-vme.mjs';
29
31
  import { ParamsDownloadAccountTxs } from './types/rpc/params-download-account-txs.mjs';
30
32
  import { ParamsFindDuplicateSubscriber } from './types/rpc/params-find-duplicate-subscriber.mjs';
33
+ import { ParamsForwardAssetObject } from './types/rpc/params-forward-asset-object.mjs';
31
34
  import { ParamsForwardCoin } from './types/rpc/params-forward-coin.mjs';
35
+ import { ParamsForwardToken } from './types/rpc/params-forward-token.mjs';
32
36
  import { ParamsFreezeAccount } from './types/rpc/params-freeze-account.mjs';
33
37
  import { ParamsGameChainCmd } from './types/rpc/params-game-chain-cmd.mjs';
34
38
  import { ParamsGenerateLatestStoredDataProof } from './types/rpc/params-generate-latest-stored-data-proof.mjs';
@@ -57,9 +61,11 @@ import { ParamsSetHost } from './types/rpc/params-set-host.mjs';
57
61
  import { ParamsSetImportAccountTx } from './types/rpc/params-set-import-account-tx.mjs';
58
62
  import { ParamsSetReliableNode } from './types/rpc/params-set-reliable-node.mjs';
59
63
  import { ParamsSubscribeAddress } from './types/rpc/params-subscribe-address.mjs';
64
+ import { ParamsTransferAllRes } from './types/rpc/params-transfer-all-res.mjs';
60
65
  import { ParamsTransferAssetObject } from './types/rpc/params-transfer-asset-object.mjs';
61
66
  import { ParamsTransferCoin } from './types/rpc/params-transfer-coin.mjs';
62
67
  import { ParamsTransferTokens } from './types/rpc/params-transfer-tokens.mjs';
68
+ import { ParamsTransfer } from './types/rpc/params-transfer.mjs';
63
69
  import { ParamsTxListWitness } from './types/rpc/params-tx-list-witness.mjs';
64
70
  import { ParamsTxList } from './types/rpc/params-tx-list.mjs';
65
71
  import { ParamsUnlockStake } from './types/rpc/params-unlock-stake.mjs';
@@ -70,7 +76,8 @@ import { ParamsVmeLog } from './types/rpc/params-vme-log.mjs';
70
76
  import { ResultDumpAccounts } from './types/rpc/result-dump-accounts.mjs';
71
77
  import { RoundStateDetail } from './types/rpc/round-state-detail.mjs';
72
78
  import { RpcBoolResult } from './types/rpc/rpc-bool-result.mjs';
73
- import { RpcCalculateSpentByForwardCoinResult } from './types/rpc/rpc-calculate-spent-by-forward-coin-result.mjs';
79
+ import { RpcCalculateSpentByForwardListResult } from './types/rpc/rpc-calculate-spent-by-forward-list-result.mjs';
80
+ import { RpcCalculateSpentByForwardResult } from './types/rpc/rpc-calculate-spent-by-forward-result.mjs';
74
81
  import { RpcCreateAccountResult } from './types/rpc/rpc-create-account-result.mjs';
75
82
  import { RpcCreateNodeResult } from './types/rpc/rpc-create-node-result.mjs';
76
83
  import { RpcCreateTxResult } from './types/rpc/rpc-create-tx-result.mjs';
@@ -118,8 +125,10 @@ export interface RpcApiSpec {
118
125
  debug_allHeights(): Promise<RpcAccountHeight[]>;
119
126
  debug_balanceGrantList(): Promise<string[]>;
120
127
  debug_balanceList(): Promise<string[]>;
128
+ debug_callContract(param: ParamsCallVme): Promise<RpcCreateTxResult>;
121
129
  debug_callVme(param: ParamsCallVme): Promise<RpcCreateTxResult>;
122
130
  debug_createAccount(): Promise<RpcCreateAccountResult>;
131
+ debug_createContract(param: ParamsCreateContract): Promise<RpcCreateTxResult>;
123
132
  debug_createNode(param: ParamsCreateNode): Promise<RpcCreateNodeResult>;
124
133
  debug_createSynthAccount(param: ParamsCreateSynthAccount): Promise<RpcCreateTxResult>;
125
134
  debug_dumpAllAccounts(): Promise<ResultDumpAccounts>;
@@ -152,7 +161,8 @@ export interface RpcApiSpec {
152
161
  locus_accountHeightsToUpload(param: ParamsAccountHeights): Promise<UploadHeightsResult>;
153
162
  locus_becomeGuest(param: ParamsBecomeGuest): Promise<RpcCreateTxResult>;
154
163
  locus_becomeHost(param: ParamsBecomeHost): Promise<RpcCreateTxResult>;
155
- locus_calculateSpentByForwardCoin(param: ParamsCalculateSpentByForwardCoin): Promise<RpcCalculateSpentByForwardCoinResult>;
164
+ locus_calculateSpentByForward(param: ParamsCalculateSpentByForward): Promise<RpcCalculateSpentByForwardResult>;
165
+ locus_calculateSpentByForwardList(param: ParamsCalculateSpentByForwardList): Promise<RpcCalculateSpentByForwardListResult>;
156
166
  locus_changeKey(params: ParamsChangeKey): Promise<RpcCreateTxResult>;
157
167
  locus_changeVkey(params: ParamsChangeVKey): Promise<RpcCreateTxResult>;
158
168
  locus_clientMessage(param: ParamStr): Promise<any>;
@@ -163,7 +173,9 @@ export interface RpcApiSpec {
163
173
  locus_downloadAccountTxs(param: ParamsDownloadAccountTxs): Promise<OutputDownloadAccountTxs>;
164
174
  locus_echo(str: string): Promise<string>;
165
175
  locus_findDuplicateSubscriber(params: ParamsFindDuplicateSubscriber): Promise<RpcFindDuplicateSubscriberResult>;
176
+ locus_forwardAssetObject(params: ParamsForwardAssetObject): Promise<RpcCreateTxResult>;
166
177
  locus_forwardCoin(param: ParamsForwardCoin): Promise<RpcCreateTxResult>;
178
+ locus_forwardToken(params: ParamsForwardToken): Promise<RpcCreateTxResult>;
167
179
  locus_freezeAccount(params: ParamsFreezeAccount): Promise<RpcCreateTxResult>;
168
180
  locus_generateLatestStoredDataProof(params: ParamsGenerateLatestStoredDataProof): Promise<RpcGenerateLatestStoredDataProofResult>;
169
181
  locus_getAccountAssetList(params: ParamsGetAssetList): Promise<RpcGetAccountAssetListResult>;
@@ -196,6 +208,8 @@ export interface RpcApiSpec {
196
208
  locus_requestDataTrade(params: ParamsRequestDataTrade): Promise<RpcDataTradeResult>;
197
209
  locus_setHost(param: ParamsSetHost): Promise<boolean>;
198
210
  locus_subscribeAddress(params: ParamsSubscribeAddress): Promise<RpcSubscribeAddressResult>;
211
+ locus_transfer(params: ParamsTransfer): Promise<RpcCreateTxResult>;
212
+ locus_transferAllRes(params: ParamsTransferAllRes): Promise<RpcCreateTxResult>;
199
213
  locus_transferAssetObject(params: ParamsTransferAssetObject): Promise<RpcCreateTxResult>;
200
214
  locus_transferCoin(param: ParamsTransferCoin): Promise<RpcCreateTxResult>;
201
215
  locus_transferToken(params: ParamsTransferTokens): Promise<RpcCreateTxResult>;
@@ -1,6 +1,7 @@
1
1
  import { ContractTransferInfo } from './contract-transfer-info.cjs';
2
2
  export type ContractExecStatus = {
3
- contract: string;
3
+ vmeId: string;
4
+ subId: string;
4
5
  refAddr: string;
5
6
  refIndex: number;
6
7
  refLink: string;
@@ -1,6 +1,7 @@
1
1
  import { ContractTransferInfo } from './contract-transfer-info.mjs';
2
2
  export type ContractExecStatus = {
3
- contract: string;
3
+ vmeId: string;
4
+ subId: string;
4
5
  refAddr: string;
5
6
  refIndex: number;
6
7
  refLink: string;
@@ -0,0 +1,9 @@
1
+ import { ParamsTokenValuePair } from './params-token-value-pair.cjs';
2
+ import { ParamsTransferAsset } from './params-transfer-asset.cjs';
3
+ export type ForwardSpentItem = {
4
+ sender: string;
5
+ tx: any;
6
+ amount: string;
7
+ tokenAmounts: ParamsTokenValuePair[];
8
+ assets: ParamsTransferAsset[];
9
+ };
@@ -0,0 +1,9 @@
1
+ import { ParamsTokenValuePair } from './params-token-value-pair.mjs';
2
+ import { ParamsTransferAsset } from './params-transfer-asset.mjs';
3
+ export type ForwardSpentItem = {
4
+ sender: string;
5
+ tx: any;
6
+ amount: string;
7
+ tokenAmounts: ParamsTokenValuePair[];
8
+ assets: ParamsTransferAsset[];
9
+ };
@@ -8,6 +8,7 @@ export * from './caller-key-proof.cjs';
8
8
  export * from './contract-exec-status.cjs';
9
9
  export * from './contract-transfer-info.cjs';
10
10
  export * from './direct-call-request.cjs';
11
+ export * from './forward-spent-item.cjs';
11
12
  export * from './get-peers-info.cjs';
12
13
  export * from './index-value-pair.cjs';
13
14
  export * from './input-params-data-transfer.cjs';
@@ -20,10 +21,12 @@ export * from './output-download-account-txs.cjs';
20
21
  export * from './param-str.cjs';
21
22
  export * from './param-tx-data.cjs';
22
23
  export * from './params-token-value-pair.cjs';
24
+ export * from './params-transfer-asset.cjs';
23
25
  export * from './public-height-chunk.cjs';
24
26
  export * from './ref-tx-info.cjs';
25
27
  export * from './ref-vtx.cjs';
26
28
  export * from './res-changed-entry.cjs';
29
+ export * from './res-state-value.cjs';
27
30
  export * from './ret-type-base.cjs';
28
31
  export * from './round-state-abstract.cjs';
29
32
  export * from './rpc-account-height.cjs';
@@ -8,6 +8,7 @@ export * from './caller-key-proof.mjs';
8
8
  export * from './contract-exec-status.mjs';
9
9
  export * from './contract-transfer-info.mjs';
10
10
  export * from './direct-call-request.mjs';
11
+ export * from './forward-spent-item.mjs';
11
12
  export * from './get-peers-info.mjs';
12
13
  export * from './index-value-pair.mjs';
13
14
  export * from './input-params-data-transfer.mjs';
@@ -20,10 +21,12 @@ export * from './output-download-account-txs.mjs';
20
21
  export * from './param-str.mjs';
21
22
  export * from './param-tx-data.mjs';
22
23
  export * from './params-token-value-pair.mjs';
24
+ export * from './params-transfer-asset.mjs';
23
25
  export * from './public-height-chunk.mjs';
24
26
  export * from './ref-tx-info.mjs';
25
27
  export * from './ref-vtx.mjs';
26
28
  export * from './res-changed-entry.mjs';
29
+ export * from './res-state-value.mjs';
27
30
  export * from './ret-type-base.mjs';
28
31
  export * from './round-state-abstract.mjs';
29
32
  export * from './rpc-account-height.mjs';
@@ -0,0 +1,4 @@
1
+ export type ParamsTransferAsset = {
2
+ assetId: string;
3
+ amount: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type ParamsTransferAsset = {
2
+ assetId: string;
3
+ amount: string;
4
+ };
@@ -1,5 +1,6 @@
1
+ import { ResStateValue } from './res-state-value.cjs';
1
2
  export type ResChangedEntry = {
2
3
  key: number[];
3
- oldValue: string;
4
- newValue: string;
4
+ oldValue: ResStateValue;
5
+ newValue: ResStateValue;
5
6
  };
@@ -1,5 +1,6 @@
1
+ import { ResStateValue } from './res-state-value.mjs';
1
2
  export type ResChangedEntry = {
2
3
  key: number[];
3
- oldValue: string;
4
- newValue: string;
4
+ oldValue: ResStateValue;
5
+ newValue: ResStateValue;
5
6
  };
@@ -0,0 +1,5 @@
1
+ import { AssetObject } from './asset-object.cjs';
2
+ export type ResStateValue = {
3
+ balance: string;
4
+ assetObject: AssetObject;
5
+ };
@@ -0,0 +1,5 @@
1
+ import { AssetObject } from './asset-object.mjs';
2
+ export type ResStateValue = {
3
+ balance: string;
4
+ assetObject: AssetObject;
5
+ };
@@ -28,6 +28,8 @@ export declare const TxType: Readonly<{
28
28
  readonly FORWARD_ASSETOBJECT: "TX_FORWARD_ASSETOBJECT";
29
29
  readonly ACTIVATE_ASSETOBJECT: "TX_ACTIVATE_ASSETOBJECT";
30
30
  readonly BURN_ASSETOBJECT: "TX_BURN_ASSETOBJECT";
31
+ readonly TRANSFER_ALL_RES: "TX_TRANSFER_ALL_RES";
32
+ readonly TRANSFER_ALL_RES_FEE: "TX_TRANSFER_ALL_RES_FEE";
31
33
  readonly REVOKE: "TX_REVOKE";
32
34
  readonly CLOSE_ACCOUNT: "TX_CLOSE_ACCOUNT";
33
35
  readonly ACTIVATE_ALL_RES: "TX_ACTIVATE_ALL_RES";
@@ -43,7 +45,7 @@ export declare const TxType: Readonly<{
43
45
  readonly LOCK_STAKE_FOR_VME: "TX_LOCK_STAKE_FOR_VME";
44
46
  readonly ACTIVATE_LOCK_STAKE_FOR_VME: "TX_ACTIVATE_LOCK_STAKE_FOR_VME";
45
47
  readonly UNLOCK_STAKE: "TX_UNLOCK_STAKE";
46
- readonly CREATE_VME: "TX_CREATE_VME";
48
+ readonly CREATE_VME_FEE: "TX_CREATE_VME_FEE";
47
49
  readonly ACTIVATE_OPEN_VME: "TX_ACTIVATE_OPEN_VME";
48
50
  readonly VME_BLOCK: "TX_VME_BLOCK";
49
51
  readonly CALL_VME: "TX_CALL_VME";
@@ -28,6 +28,8 @@ export declare const TxType: Readonly<{
28
28
  readonly FORWARD_ASSETOBJECT: "TX_FORWARD_ASSETOBJECT";
29
29
  readonly ACTIVATE_ASSETOBJECT: "TX_ACTIVATE_ASSETOBJECT";
30
30
  readonly BURN_ASSETOBJECT: "TX_BURN_ASSETOBJECT";
31
+ readonly TRANSFER_ALL_RES: "TX_TRANSFER_ALL_RES";
32
+ readonly TRANSFER_ALL_RES_FEE: "TX_TRANSFER_ALL_RES_FEE";
31
33
  readonly REVOKE: "TX_REVOKE";
32
34
  readonly CLOSE_ACCOUNT: "TX_CLOSE_ACCOUNT";
33
35
  readonly ACTIVATE_ALL_RES: "TX_ACTIVATE_ALL_RES";
@@ -43,7 +45,7 @@ export declare const TxType: Readonly<{
43
45
  readonly LOCK_STAKE_FOR_VME: "TX_LOCK_STAKE_FOR_VME";
44
46
  readonly ACTIVATE_LOCK_STAKE_FOR_VME: "TX_ACTIVATE_LOCK_STAKE_FOR_VME";
45
47
  readonly UNLOCK_STAKE: "TX_UNLOCK_STAKE";
46
- readonly CREATE_VME: "TX_CREATE_VME";
48
+ readonly CREATE_VME_FEE: "TX_CREATE_VME_FEE";
47
49
  readonly ACTIVATE_OPEN_VME: "TX_ACTIVATE_OPEN_VME";
48
50
  readonly VME_BLOCK: "TX_VME_BLOCK";
49
51
  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;
@@ -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;
@@ -7,19 +7,23 @@ export * from './params-account-history.cjs';
7
7
  export * from './params-accounts.cjs';
8
8
  export * from './params-become-guest.cjs';
9
9
  export * from './params-become-host.cjs';
10
- export * from './params-calculate-spent-by-forward-coin.cjs';
10
+ export * from './params-calculate-spent-by-forward.cjs';
11
+ export * from './params-calculate-spent-by-forward-list.cjs';
11
12
  export * from './params-call-vme.cjs';
12
13
  export * from './params-change-key.cjs';
13
14
  export * from './params-change-vkey.cjs';
14
15
  export * from './params-close-account.cjs';
15
16
  export * from './params-create-asset-object.cjs';
17
+ export * from './params-create-contract.cjs';
16
18
  export * from './params-create-node.cjs';
17
19
  export * from './params-create-synth-account.cjs';
18
20
  export * from './params-create-token.cjs';
19
21
  export * from './params-create-vme.cjs';
20
22
  export * from './params-download-account-txs.cjs';
21
23
  export * from './params-find-duplicate-subscriber.cjs';
24
+ export * from './params-forward-asset-object.cjs';
22
25
  export * from './params-forward-coin.cjs';
26
+ export * from './params-forward-token.cjs';
23
27
  export * from './params-freeze-account.cjs';
24
28
  export * from './params-game-chain-cmd.cjs';
25
29
  export * from './params-generate-latest-stored-data-proof.cjs';
@@ -48,6 +52,8 @@ export * from './params-set-host.cjs';
48
52
  export * from './params-set-import-account-tx.cjs';
49
53
  export * from './params-set-reliable-node.cjs';
50
54
  export * from './params-subscribe-address.cjs';
55
+ export * from './params-transfer.cjs';
56
+ export * from './params-transfer-all-res.cjs';
51
57
  export * from './params-transfer-asset-object.cjs';
52
58
  export * from './params-transfer-coin.cjs';
53
59
  export * from './params-transfer-tokens.cjs';
@@ -61,7 +67,8 @@ export * from './params-vme-log.cjs';
61
67
  export * from './result-dump-accounts.cjs';
62
68
  export * from './round-state-detail.cjs';
63
69
  export * from './rpc-bool-result.cjs';
64
- export * from './rpc-calculate-spent-by-forward-coin-result.cjs';
70
+ export * from './rpc-calculate-spent-by-forward-list-result.cjs';
71
+ export * from './rpc-calculate-spent-by-forward-result.cjs';
65
72
  export * from './rpc-create-account-result.cjs';
66
73
  export * from './rpc-create-node-result.cjs';
67
74
  export * from './rpc-create-tx-result.cjs';
@@ -7,19 +7,23 @@ export * from './params-account-history.mjs';
7
7
  export * from './params-accounts.mjs';
8
8
  export * from './params-become-guest.mjs';
9
9
  export * from './params-become-host.mjs';
10
- export * from './params-calculate-spent-by-forward-coin.mjs';
10
+ export * from './params-calculate-spent-by-forward.mjs';
11
+ export * from './params-calculate-spent-by-forward-list.mjs';
11
12
  export * from './params-call-vme.mjs';
12
13
  export * from './params-change-key.mjs';
13
14
  export * from './params-change-vkey.mjs';
14
15
  export * from './params-close-account.mjs';
15
16
  export * from './params-create-asset-object.mjs';
17
+ export * from './params-create-contract.mjs';
16
18
  export * from './params-create-node.mjs';
17
19
  export * from './params-create-synth-account.mjs';
18
20
  export * from './params-create-token.mjs';
19
21
  export * from './params-create-vme.mjs';
20
22
  export * from './params-download-account-txs.mjs';
21
23
  export * from './params-find-duplicate-subscriber.mjs';
24
+ export * from './params-forward-asset-object.mjs';
22
25
  export * from './params-forward-coin.mjs';
26
+ export * from './params-forward-token.mjs';
23
27
  export * from './params-freeze-account.mjs';
24
28
  export * from './params-game-chain-cmd.mjs';
25
29
  export * from './params-generate-latest-stored-data-proof.mjs';
@@ -48,6 +52,8 @@ export * from './params-set-host.mjs';
48
52
  export * from './params-set-import-account-tx.mjs';
49
53
  export * from './params-set-reliable-node.mjs';
50
54
  export * from './params-subscribe-address.mjs';
55
+ export * from './params-transfer.mjs';
56
+ export * from './params-transfer-all-res.mjs';
51
57
  export * from './params-transfer-asset-object.mjs';
52
58
  export * from './params-transfer-coin.mjs';
53
59
  export * from './params-transfer-tokens.mjs';
@@ -61,7 +67,8 @@ export * from './params-vme-log.mjs';
61
67
  export * from './result-dump-accounts.mjs';
62
68
  export * from './round-state-detail.mjs';
63
69
  export * from './rpc-bool-result.mjs';
64
- export * from './rpc-calculate-spent-by-forward-coin-result.mjs';
70
+ export * from './rpc-calculate-spent-by-forward-list-result.mjs';
71
+ export * from './rpc-calculate-spent-by-forward-result.mjs';
65
72
  export * from './rpc-create-account-result.mjs';
66
73
  export * from './rpc-create-node-result.mjs';
67
74
  export * from './rpc-create-tx-result.mjs';
@@ -0,0 +1,3 @@
1
+ export type ParamsCalculateSpentByForwardList = {
2
+ account: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export type ParamsCalculateSpentByForwardList = {
2
+ account: string;
3
+ };
@@ -1,4 +1,4 @@
1
- export type ParamsCalculateSpentByForwardCoin = {
1
+ export type ParamsCalculateSpentByForward = {
2
2
  account: string;
3
3
  sender: string;
4
4
  sentHeight: number;
@@ -1,4 +1,4 @@
1
- export type ParamsCalculateSpentByForwardCoin = {
1
+ export type ParamsCalculateSpentByForward = {
2
2
  account: string;
3
3
  sender: string;
4
4
  sentHeight: number;
@@ -0,0 +1,15 @@
1
+ import { ParamsTokenValuePair } from '../common/params-token-value-pair.cjs';
2
+ export type ParamsCreateContract = {
3
+ account: string;
4
+ vmeId: string;
5
+ contractAccount: string;
6
+ fuelLimit: string;
7
+ until: number;
8
+ amount: string;
9
+ tokenAmounts: ParamsTokenValuePair[];
10
+ sysId: string;
11
+ code: string;
12
+ sign: string;
13
+ signedHeight: number;
14
+ feeType: number;
15
+ };
@@ -0,0 +1,15 @@
1
+ import { ParamsTokenValuePair } from '../common/params-token-value-pair.mjs';
2
+ export type ParamsCreateContract = {
3
+ account: string;
4
+ vmeId: string;
5
+ contractAccount: string;
6
+ fuelLimit: string;
7
+ until: number;
8
+ amount: string;
9
+ tokenAmounts: ParamsTokenValuePair[];
10
+ sysId: string;
11
+ code: string;
12
+ sign: string;
13
+ signedHeight: number;
14
+ feeType: number;
15
+ };
@@ -0,0 +1,7 @@
1
+ import { ParamsTransferAssetObject } from './params-transfer-asset-object.cjs';
2
+ export type ParamsForwardAssetObject = ParamsTransferAssetObject & {
3
+ source: {
4
+ owner: string;
5
+ height: number;
6
+ };
7
+ };
@@ -0,0 +1,7 @@
1
+ import { ParamsTransferAssetObject } from './params-transfer-asset-object.mjs';
2
+ export type ParamsForwardAssetObject = ParamsTransferAssetObject & {
3
+ source: {
4
+ owner: string;
5
+ height: number;
6
+ };
7
+ };
@@ -0,0 +1,7 @@
1
+ import { ParamsTransferTokens } from './params-transfer-tokens.cjs';
2
+ export type ParamsForwardToken = ParamsTransferTokens & {
3
+ source: {
4
+ owner: string;
5
+ height: number;
6
+ };
7
+ };
@@ -0,0 +1,7 @@
1
+ import { ParamsTransferTokens } from './params-transfer-tokens.mjs';
2
+ export type ParamsForwardToken = ParamsTransferTokens & {
3
+ source: {
4
+ owner: string;
5
+ height: number;
6
+ };
7
+ };
@@ -0,0 +1,14 @@
1
+ import { ParamsTokenValuePair } from '../common/params-token-value-pair.cjs';
2
+ export type ParamsTransferAllRes = {
3
+ from: string;
4
+ to: string;
5
+ amount: string;
6
+ tokenAmounts: ParamsTokenValuePair[];
7
+ assets: {
8
+ assetId: string;
9
+ amount: string;
10
+ }[];
11
+ sign: string;
12
+ signedHeight: number;
13
+ feeType: number;
14
+ };
@@ -0,0 +1,14 @@
1
+ import { ParamsTokenValuePair } from '../common/params-token-value-pair.mjs';
2
+ export type ParamsTransferAllRes = {
3
+ from: string;
4
+ to: string;
5
+ amount: string;
6
+ tokenAmounts: ParamsTokenValuePair[];
7
+ assets: {
8
+ assetId: string;
9
+ amount: string;
10
+ }[];
11
+ sign: string;
12
+ signedHeight: number;
13
+ feeType: number;
14
+ };
@@ -7,8 +7,4 @@ export type ParamsTransferTokens = {
7
7
  sign: string;
8
8
  signedHeight: number;
9
9
  feeType: number;
10
- source: {
11
- owner: string;
12
- height: number;
13
- };
14
10
  };
@@ -7,8 +7,4 @@ export type ParamsTransferTokens = {
7
7
  sign: string;
8
8
  signedHeight: number;
9
9
  feeType: number;
10
- source: {
11
- owner: string;
12
- height: number;
13
- };
14
10
  };
@@ -0,0 +1,10 @@
1
+ import { ParamsTransferAsset } from '../common/params-transfer-asset.cjs';
2
+ export type ParamsTransfer = {
3
+ from: string;
4
+ to: string;
5
+ amount: string;
6
+ assets: ParamsTransferAsset[];
7
+ sign: string;
8
+ signedHeight: number;
9
+ feeType: number;
10
+ };
@@ -0,0 +1,10 @@
1
+ import { ParamsTransferAsset } from '../common/params-transfer-asset.mjs';
2
+ export type ParamsTransfer = {
3
+ from: string;
4
+ to: string;
5
+ amount: string;
6
+ assets: ParamsTransferAsset[];
7
+ sign: string;
8
+ signedHeight: number;
9
+ feeType: number;
10
+ };
@@ -0,0 +1,4 @@
1
+ import { ForwardSpentItem } from '../common/forward-spent-item.cjs';
2
+ export type RpcCalculateSpentByForwardListResult = {
3
+ list: ForwardSpentItem[];
4
+ };
@@ -0,0 +1,4 @@
1
+ import { ForwardSpentItem } from '../common/forward-spent-item.mjs';
2
+ export type RpcCalculateSpentByForwardListResult = {
3
+ list: ForwardSpentItem[];
4
+ };
@@ -0,0 +1,7 @@
1
+ import { ParamsTokenValuePair } from '../common/params-token-value-pair.cjs';
2
+ import { ParamsTransferAsset } from '../common/params-transfer-asset.cjs';
3
+ export type RpcCalculateSpentByForwardResult = {
4
+ amount: string;
5
+ tokenAmounts: ParamsTokenValuePair[];
6
+ assets: ParamsTransferAsset[];
7
+ };
@@ -0,0 +1,7 @@
1
+ import { ParamsTokenValuePair } from '../common/params-token-value-pair.mjs';
2
+ import { ParamsTransferAsset } from '../common/params-transfer-asset.mjs';
3
+ export type RpcCalculateSpentByForwardResult = {
4
+ amount: string;
5
+ tokenAmounts: ParamsTokenValuePair[];
6
+ assets: ParamsTransferAsset[];
7
+ };
@@ -42,6 +42,7 @@ export * from './tx-post-data-synth-account.cjs';
42
42
  export * from './tx-provide-script.cjs';
43
43
  export * from './tx-restore-res-hash.cjs';
44
44
  export * from './tx-revoke.cjs';
45
+ export * from './tx-transfer-all-res.cjs';
45
46
  export * from './tx-transfer-asset-object.cjs';
46
47
  export * from './tx-transfer-coin.cjs';
47
48
  export * from './tx-transfer-token.cjs';
@@ -42,6 +42,7 @@ export * from './tx-post-data-synth-account.mjs';
42
42
  export * from './tx-provide-script.mjs';
43
43
  export * from './tx-restore-res-hash.mjs';
44
44
  export * from './tx-revoke.mjs';
45
+ export * from './tx-transfer-all-res.mjs';
45
46
  export * from './tx-transfer-asset-object.mjs';
46
47
  export * from './tx-transfer-coin.mjs';
47
48
  export * from './tx-transfer-token.mjs';
@@ -6,6 +6,7 @@ import { TxVSignature } from '../common/tx-vsignature.cjs';
6
6
  import { VmTxState } from '../common/vm-tx-state.cjs';
7
7
  export type TxActivateVmeResult = TxBase & TxVSignature & {
8
8
  vmeId: string;
9
+ subId: string;
9
10
  vmResult: VmTxState;
10
11
  refVmResult: RefVtx;
11
12
  callIndex: number;