@locuschain/lib 0.2.2 → 0.2.3

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 (405) hide show
  1. package/dist/accounts/account.d.cts +58 -0
  2. package/dist/accounts/index.d.cts +5 -5
  3. package/dist/accounts/keys/index.d.cts +2 -0
  4. package/dist/accounts/keys/localKeySource.d.cts +23 -0
  5. package/dist/accounts/keys/toKeySource.d.cts +14 -0
  6. package/dist/accounts/keysToAccount.d.cts +19 -0
  7. package/dist/accounts/mnemonicToAccount.d.cts +25 -0
  8. package/dist/accounts/signing/txKeyPolicy.d.cts +21 -0
  9. package/dist/accounts/types.d.cts +100 -0
  10. package/dist/actions/wallet/_deriveTxAdditions.d.cts +18 -0
  11. package/dist/actions/wallet/_prepareTransaction.d.cts +15 -0
  12. package/dist/actions/wallet/_sendPreparedTransaction.d.cts +9 -0
  13. package/dist/actions/wallet/_signLocusTransaction.d.cts +14 -0
  14. package/dist/actions/wallet/index.d.cts +5 -0
  15. package/dist/actions/wallet/types.d.cts +38 -0
  16. package/dist/autogen/actions/debug/index.d.cts +2 -0
  17. package/dist/autogen/actions/debug/public/allHeights.d.cts +3 -0
  18. package/dist/autogen/actions/debug/public/balanceGrantList.d.cts +2 -0
  19. package/dist/autogen/actions/debug/public/balanceList.d.cts +2 -0
  20. package/dist/autogen/actions/debug/public/createAccount.d.cts +3 -0
  21. package/dist/autogen/actions/debug/public/createNode.d.cts +4 -0
  22. package/dist/autogen/actions/debug/public/dumpAllAccounts.d.cts +3 -0
  23. package/dist/autogen/actions/debug/public/echo.d.cts +2 -0
  24. package/dist/autogen/actions/debug/public/gameChainCmd.d.cts +4 -0
  25. package/dist/autogen/actions/debug/public/getAccountsBalances.d.cts +4 -0
  26. package/dist/autogen/actions/debug/public/getAccountsHeights.d.cts +4 -0
  27. package/dist/autogen/actions/debug/public/getContractLog.d.cts +4 -0
  28. package/dist/autogen/actions/debug/public/getGuestsInfo.d.cts +3 -0
  29. package/dist/autogen/actions/debug/public/getHomeShard.d.cts +4 -0
  30. package/dist/autogen/actions/debug/public/getImportAccount.d.cts +4 -0
  31. package/dist/autogen/actions/debug/public/getImportAccountLog.d.cts +4 -0
  32. package/dist/autogen/actions/debug/public/getKeys.d.cts +4 -0
  33. package/dist/autogen/actions/debug/public/getNodeBlocks.d.cts +3 -0
  34. package/dist/autogen/actions/debug/public/getPeerPool.d.cts +2 -0
  35. package/dist/autogen/actions/debug/public/getPeersInfo.d.cts +3 -0
  36. package/dist/autogen/actions/debug/public/importAccount.d.cts +4 -0
  37. package/dist/autogen/actions/debug/public/index.d.cts +29 -0
  38. package/dist/autogen/actions/debug/public/initReliableNodes.d.cts +4 -0
  39. package/dist/autogen/actions/debug/public/noArgsRets.d.cts +2 -0
  40. package/dist/autogen/actions/debug/public/nodeCmd.d.cts +3 -0
  41. package/dist/autogen/actions/debug/public/removeHoldTxs.d.cts +4 -0
  42. package/dist/autogen/actions/debug/public/requestVme.d.cts +4 -0
  43. package/dist/autogen/actions/debug/public/sendRawTransaction.d.cts +4 -0
  44. package/dist/autogen/actions/debug/public/setImportAccountTx.d.cts +4 -0
  45. package/dist/autogen/actions/debug/public/setReliableNode.d.cts +4 -0
  46. package/dist/autogen/actions/debug/public/viewContract.d.cts +4 -0
  47. package/dist/autogen/actions/debug/wallet/callContract.d.cts +4 -0
  48. package/dist/autogen/actions/debug/wallet/createContract.d.cts +4 -0
  49. package/dist/autogen/actions/debug/wallet/createSynthAccount.d.cts +4 -0
  50. package/dist/autogen/actions/debug/wallet/index.d.cts +4 -0
  51. package/dist/autogen/actions/debug/wallet/postDataToSynthAccount.d.cts +4 -0
  52. package/dist/autogen/actions/index.d.cts +3 -0
  53. package/dist/autogen/actions/public/accountHeightsToDownload.d.cts +4 -0
  54. package/dist/autogen/actions/public/accountHeightsToUpload.d.cts +4 -0
  55. package/dist/autogen/actions/public/calculateSpentByExpress.d.cts +4 -0
  56. package/dist/autogen/actions/public/clientMessage.d.cts +3 -0
  57. package/dist/autogen/actions/public/downloadAccountTxs.d.cts +4 -0
  58. package/dist/autogen/actions/public/echo.d.cts +2 -0
  59. package/dist/autogen/actions/public/findDuplicateSubscriber.d.cts +4 -0
  60. package/dist/autogen/actions/public/generateLatestStoredDataProof.d.cts +4 -0
  61. package/dist/autogen/actions/public/getAccountAssetList.d.cts +4 -0
  62. package/dist/autogen/actions/public/getAccountAssetObject.d.cts +4 -0
  63. package/dist/autogen/actions/public/getAccountDetail.d.cts +4 -0
  64. package/dist/autogen/actions/public/getAccountHistory.d.cts +4 -0
  65. package/dist/autogen/actions/public/getAccountTokenList.d.cts +4 -0
  66. package/dist/autogen/actions/public/getConciseNodeStatus.d.cts +3 -0
  67. package/dist/autogen/actions/public/getGenesisAccount.d.cts +3 -0
  68. package/dist/autogen/actions/public/getIdentityProof.d.cts +4 -0
  69. package/dist/autogen/actions/public/getInactiveTxList.d.cts +4 -0
  70. package/dist/autogen/actions/public/getMontInfoList.d.cts +4 -0
  71. package/dist/autogen/actions/public/getNodeStatus.d.cts +3 -0
  72. package/dist/autogen/actions/public/getOwnerBalance.d.cts +3 -0
  73. package/dist/autogen/actions/public/getRoundState.d.cts +4 -0
  74. package/dist/autogen/actions/public/getRoundStatesList.d.cts +4 -0
  75. package/dist/autogen/actions/public/getShardOfAccount.d.cts +4 -0
  76. package/dist/autogen/actions/public/getSyncState.d.cts +3 -0
  77. package/dist/autogen/actions/public/getTx.d.cts +4 -0
  78. package/dist/autogen/actions/public/getWorldRoundState.d.cts +4 -0
  79. package/dist/autogen/actions/public/getWorldRoundStatesList.d.cts +4 -0
  80. package/dist/autogen/actions/public/hasSystemToken.d.cts +4 -0
  81. package/dist/autogen/actions/public/index.d.cts +38 -0
  82. package/dist/autogen/actions/public/makeTxProof.d.cts +4 -0
  83. package/dist/autogen/actions/public/queryAddress.d.cts +4 -0
  84. package/dist/autogen/actions/public/readTxListWitness.d.cts +4 -0
  85. package/dist/autogen/actions/public/setHost.d.cts +3 -0
  86. package/dist/autogen/actions/public/subscribeAddress.d.cts +4 -0
  87. package/dist/autogen/actions/public/uploadAccountTxs.d.cts +3 -0
  88. package/dist/autogen/actions/public/verifyAndSignChallenge.d.cts +4 -0
  89. package/dist/autogen/actions/public/verifyIdentityProof.d.cts +4 -0
  90. package/dist/autogen/actions/public/verifyLatestStoredDataProof.d.cts +3 -0
  91. package/dist/autogen/actions/public/verifyTxListWitness.d.cts +3 -0
  92. package/dist/autogen/actions/wallet/acceptScript.d.cts +4 -0
  93. package/dist/autogen/actions/wallet/becomeGuest.d.cts +4 -0
  94. package/dist/autogen/actions/wallet/becomeHost.d.cts +4 -0
  95. package/dist/autogen/actions/wallet/changeKey.d.cts +4 -0
  96. package/dist/autogen/actions/wallet/changeVkey.d.cts +4 -0
  97. package/dist/autogen/actions/wallet/closeAccount.d.cts +4 -0
  98. package/dist/autogen/actions/wallet/createAssetObject.d.cts +4 -0
  99. package/dist/autogen/actions/wallet/createToken.d.cts +4 -0
  100. package/dist/autogen/actions/wallet/createVme.d.cts +4 -0
  101. package/dist/autogen/actions/wallet/freezeAccount.d.cts +4 -0
  102. package/dist/autogen/actions/wallet/index.d.cts +20 -0
  103. package/dist/autogen/actions/wallet/lockStake.d.cts +4 -0
  104. package/dist/autogen/actions/wallet/openAccount.d.cts +4 -0
  105. package/dist/autogen/actions/wallet/postData.d.cts +4 -0
  106. package/dist/autogen/actions/wallet/provideScript.d.cts +4 -0
  107. package/dist/autogen/actions/wallet/requestDataTrade.d.cts +4 -0
  108. package/dist/autogen/actions/wallet/transferAssetObject.d.cts +4 -0
  109. package/dist/autogen/actions/wallet/transferCoin.d.cts +4 -0
  110. package/dist/autogen/actions/wallet/transferCoinExpress.d.cts +4 -0
  111. package/dist/autogen/actions/wallet/transferToken.d.cts +4 -0
  112. package/dist/autogen/actions/wallet/unlockStake.d.cts +4 -0
  113. package/dist/autogen/debugPublicActions.d.cts +47 -0
  114. package/dist/autogen/debugWalletActions.d.cts +11 -0
  115. package/dist/autogen/index.d.cts +8 -8
  116. package/dist/autogen/locus-tx.d.cts +5 -0
  117. package/dist/autogen/publicActions.d.cts +66 -0
  118. package/dist/autogen/rpc-api-spec.d.cts +210 -0
  119. package/dist/autogen/types/common/addr-tx-proof.d.cts +5 -0
  120. package/dist/autogen/types/common/asset-object-transfer.d.cts +8 -0
  121. package/dist/autogen/types/common/asset-object.d.cts +10 -0
  122. package/dist/autogen/types/common/asset-proof-objects.d.cts +5 -0
  123. package/dist/autogen/types/common/asset-transfer-info.d.cts +9 -0
  124. package/dist/autogen/types/common/base-meta.d.cts +1 -0
  125. package/dist/autogen/types/common/contract-exec-status.d.cts +16 -0
  126. package/dist/autogen/types/common/contract-transfer-info.d.cts +7 -0
  127. package/dist/autogen/types/common/get-peers-info.d.cts +9 -0
  128. package/dist/autogen/types/common/index-value-pair.d.cts +4 -0
  129. package/dist/autogen/types/common/index.d.cts +54 -0
  130. package/dist/autogen/types/common/input-params-data-transfer.d.cts +8 -0
  131. package/dist/autogen/types/common/key-bind-info.d.cts +4 -0
  132. package/dist/autogen/types/common/mont-info.d.cts +4 -0
  133. package/dist/autogen/types/common/object-amount-transfer.d.cts +5 -0
  134. package/dist/autogen/types/common/object-amount.d.cts +4 -0
  135. package/dist/autogen/types/common/output-download-account-txs.d.cts +4 -0
  136. package/dist/autogen/types/common/param-str.d.cts +3 -0
  137. package/dist/autogen/types/common/param-tx-data.d.cts +5 -0
  138. package/dist/autogen/types/common/params-token-value-pair.d.cts +4 -0
  139. package/dist/autogen/types/common/public-height-chunk.d.cts +4 -0
  140. package/dist/autogen/types/common/ref-tx-info.d.cts +5 -0
  141. package/dist/autogen/types/common/ref-vtx.d.cts +6 -0
  142. package/dist/autogen/types/common/ret-type-base.d.cts +1 -0
  143. package/dist/autogen/types/common/round-state-abstract.d.cts +11 -0
  144. package/dist/autogen/types/common/round-state-detail.d.cts +16 -0
  145. package/dist/autogen/types/common/rpc-account-height.d.cts +5 -0
  146. package/dist/autogen/types/common/rpc-accounts-balances-result.d.cts +4 -0
  147. package/dist/autogen/types/common/rpc-asset-list-values.d.cts +7 -0
  148. package/dist/autogen/types/common/rpc-data-trade-result.d.cts +5 -0
  149. package/dist/autogen/types/common/rpc-token-balance-pair.d.cts +4 -0
  150. package/dist/autogen/types/common/token-value-ab.d.cts +5 -0
  151. package/dist/autogen/types/common/token-value-pair.d.cts +4 -0
  152. package/dist/autogen/types/common/transaction-sender-index.d.cts +7 -0
  153. package/dist/autogen/types/common/transfer-info.d.cts +7 -0
  154. package/dist/autogen/types/common/tx-base.d.cts +13 -0
  155. package/dist/autogen/types/common/tx-hash-elements.d.cts +6 -0
  156. package/dist/autogen/types/common/tx-key-height-hash.d.cts +4 -0
  157. package/dist/autogen/types/common/tx-key-nround.d.cts +5 -0
  158. package/dist/autogen/types/common/tx-key.d.cts +4 -0
  159. package/dist/autogen/types/common/tx-meta.d.cts +2 -0
  160. package/dist/autogen/types/common/tx-no-signature.d.cts +1 -0
  161. package/dist/autogen/types/common/tx-recv-set-meta.d.cts +2 -0
  162. package/dist/autogen/types/common/tx-sign-key.d.cts +1 -0
  163. package/dist/autogen/types/common/tx-signature.d.cts +3 -0
  164. package/dist/autogen/types/common/tx-vsignature.d.cts +3 -0
  165. package/dist/autogen/types/common/vm-engine-block.d.cts +11 -0
  166. package/dist/autogen/types/common/vm-reward.d.cts +4 -0
  167. package/dist/autogen/types/common/vm-tx-state.d.cts +27 -0
  168. package/dist/autogen/types/common/vme-block-meta.d.cts +2 -0
  169. package/dist/autogen/types/common/vme-info.d.cts +3 -0
  170. package/dist/autogen/types/common/vme-lock-stake.d.cts +4 -0
  171. package/dist/autogen/types/common/vote-info-rpc.d.cts +5 -0
  172. package/dist/autogen/types/common/vtx-meta.d.cts +2 -0
  173. package/dist/autogen/types/common/wrs-validators-info.d.cts +5 -0
  174. package/dist/autogen/types/consts/address-class.d.cts +11 -0
  175. package/dist/autogen/types/consts/consts.d.cts +2 -0
  176. package/dist/autogen/types/consts/currency-unit.d.cts +15 -0
  177. package/dist/autogen/types/consts/index.d.cts +3 -0
  178. package/dist/autogen/types/consts/tx-type.d.cts +61 -0
  179. package/dist/autogen/types/consts/tx-types.d.cts +415 -0
  180. package/dist/autogen/types/rpc/heights-result.d.cts +4 -0
  181. package/dist/autogen/types/rpc/index.d.cts +107 -0
  182. package/dist/autogen/types/rpc/params-accept-script.d.cts +8 -0
  183. package/dist/autogen/types/rpc/params-account-and-index.d.cts +4 -0
  184. package/dist/autogen/types/rpc/params-account-heights.d.cts +5 -0
  185. package/dist/autogen/types/rpc/params-account-history.d.cts +5 -0
  186. package/dist/autogen/types/rpc/params-account.d.cts +3 -0
  187. package/dist/autogen/types/rpc/params-accounts.d.cts +3 -0
  188. package/dist/autogen/types/rpc/params-become-guest.d.cts +5 -0
  189. package/dist/autogen/types/rpc/params-become-host.d.cts +5 -0
  190. package/dist/autogen/types/rpc/params-calculate-spent-by-express.d.cts +5 -0
  191. package/dist/autogen/types/rpc/params-call-contract.d.cts +13 -0
  192. package/dist/autogen/types/rpc/params-change-key.d.cts +8 -0
  193. package/dist/autogen/types/rpc/params-change-vkey.d.cts +5 -0
  194. package/dist/autogen/types/rpc/params-close-account.d.cts +7 -0
  195. package/dist/autogen/types/rpc/params-contract-log.d.cts +6 -0
  196. package/dist/autogen/types/rpc/params-create-asset-object.d.cts +10 -0
  197. package/dist/autogen/types/rpc/params-create-contract.d.cts +14 -0
  198. package/dist/autogen/types/rpc/params-create-node.d.cts +4 -0
  199. package/dist/autogen/types/rpc/params-create-synth-account.d.cts +8 -0
  200. package/dist/autogen/types/rpc/params-create-token.d.cts +7 -0
  201. package/dist/autogen/types/rpc/params-create-vme.d.cts +8 -0
  202. package/dist/autogen/types/rpc/params-download-account-txs.d.cts +6 -0
  203. package/dist/autogen/types/rpc/params-find-duplicate-subscriber.d.cts +3 -0
  204. package/dist/autogen/types/rpc/params-freeze-account.d.cts +5 -0
  205. package/dist/autogen/types/rpc/params-game-chain-cmd.d.cts +5 -0
  206. package/dist/autogen/types/rpc/params-generate-latest-stored-data-proof.d.cts +4 -0
  207. package/dist/autogen/types/rpc/params-get-asset-list.d.cts +4 -0
  208. package/dist/autogen/types/rpc/params-get-asset-objects.d.cts +4 -0
  209. package/dist/autogen/types/rpc/params-get-home-shard.d.cts +3 -0
  210. package/dist/autogen/types/rpc/params-get-identity-proof.d.cts +4 -0
  211. package/dist/autogen/types/rpc/params-get-import-account.d.cts +3 -0
  212. package/dist/autogen/types/rpc/params-import-account.d.cts +7 -0
  213. package/dist/autogen/types/rpc/params-init-reliable-nodes.d.cts +5 -0
  214. package/dist/autogen/types/rpc/params-latest-stored-data-proof.d.cts +4 -0
  215. package/dist/autogen/types/rpc/params-lock-stake.d.cts +7 -0
  216. package/dist/autogen/types/rpc/params-open-account.d.cts +11 -0
  217. package/dist/autogen/types/rpc/params-post-data-to-synth-account.d.cts +11 -0
  218. package/dist/autogen/types/rpc/params-provide-script.d.cts +14 -0
  219. package/dist/autogen/types/rpc/params-query-address.d.cts +3 -0
  220. package/dist/autogen/types/rpc/params-read-tx-list.d.cts +5 -0
  221. package/dist/autogen/types/rpc/params-remove-hold-txs.d.cts +5 -0
  222. package/dist/autogen/types/rpc/params-request-data-trade.d.cts +10 -0
  223. package/dist/autogen/types/rpc/params-request-vme.d.cts +4 -0
  224. package/dist/autogen/types/rpc/params-round-list.d.cts +4 -0
  225. package/dist/autogen/types/rpc/params-round.d.cts +3 -0
  226. package/dist/autogen/types/rpc/params-rs.d.cts +4 -0
  227. package/dist/autogen/types/rpc/params-send-raw-transaction.d.cts +4 -0
  228. package/dist/autogen/types/rpc/params-set-host.d.cts +4 -0
  229. package/dist/autogen/types/rpc/params-set-import-account-tx.d.cts +5 -0
  230. package/dist/autogen/types/rpc/params-set-reliable-node.d.cts +4 -0
  231. package/dist/autogen/types/rpc/params-subscribe-address.d.cts +4 -0
  232. package/dist/autogen/types/rpc/params-transfer-asset-object.d.cts +9 -0
  233. package/dist/autogen/types/rpc/params-transfer-coin-express.d.cts +7 -0
  234. package/dist/autogen/types/rpc/params-transfer-coin.d.cts +8 -0
  235. package/dist/autogen/types/rpc/params-transfer-tokens.d.cts +14 -0
  236. package/dist/autogen/types/rpc/params-tx-list-witness.d.cts +6 -0
  237. package/dist/autogen/types/rpc/params-tx-list.d.cts +5 -0
  238. package/dist/autogen/types/rpc/params-unlock-stake.d.cts +7 -0
  239. package/dist/autogen/types/rpc/params-upload-account-txs.d.cts +5 -0
  240. package/dist/autogen/types/rpc/params-verify-and-sign-challenge.d.cts +8 -0
  241. package/dist/autogen/types/rpc/params-verify-identity-proof.d.cts +6 -0
  242. package/dist/autogen/types/rpc/result-dump-accounts.d.cts +4 -0
  243. package/dist/autogen/types/rpc/rpc-bool-result.d.cts +3 -0
  244. package/dist/autogen/types/rpc/rpc-calculate-spent-by-express-result.d.cts +3 -0
  245. package/dist/autogen/types/rpc/rpc-create-account-result.d.cts +7 -0
  246. package/dist/autogen/types/rpc/rpc-create-node-result.d.cts +5 -0
  247. package/dist/autogen/types/rpc/rpc-create-tx-result.d.cts +7 -0
  248. package/dist/autogen/types/rpc/rpc-find-duplicate-subscriber-result.d.cts +3 -0
  249. package/dist/autogen/types/rpc/rpc-game-chain-cmd-result.d.cts +3 -0
  250. package/dist/autogen/types/rpc/rpc-generate-latest-stored-data-proof-result.d.cts +4 -0
  251. package/dist/autogen/types/rpc/rpc-get-account-asset-list-result.d.cts +4 -0
  252. package/dist/autogen/types/rpc/rpc-get-account-asset-object-result.d.cts +5 -0
  253. package/dist/autogen/types/rpc/rpc-get-account-detail-result.d.cts +11 -0
  254. package/dist/autogen/types/rpc/rpc-get-account-history-result.d.cts +3 -0
  255. package/dist/autogen/types/rpc/rpc-get-account-token-list-result.d.cts +6 -0
  256. package/dist/autogen/types/rpc/rpc-get-accounts-balances-result.d.cts +3 -0
  257. package/dist/autogen/types/rpc/rpc-get-accounts-heights-result.d.cts +3 -0
  258. package/dist/autogen/types/rpc/rpc-get-concise-node-status-result.d.cts +18 -0
  259. package/dist/autogen/types/rpc/rpc-get-contract-log-result.d.cts +3 -0
  260. package/dist/autogen/types/rpc/rpc-get-genesis-account-result.d.cts +3 -0
  261. package/dist/autogen/types/rpc/rpc-get-guests-info-result.d.cts +3 -0
  262. package/dist/autogen/types/rpc/rpc-get-home-shard-result.d.cts +3 -0
  263. package/dist/autogen/types/rpc/rpc-get-identity-proof-result.d.cts +6 -0
  264. package/dist/autogen/types/rpc/rpc-get-import-account-result.d.cts +10 -0
  265. package/dist/autogen/types/rpc/rpc-get-inactive-tx-list-result.d.cts +14 -0
  266. package/dist/autogen/types/rpc/rpc-get-keys-result.d.cts +7 -0
  267. package/dist/autogen/types/rpc/rpc-get-mont-info-list-result.d.cts +5 -0
  268. package/dist/autogen/types/rpc/rpc-get-node-blocks-result.d.cts +3 -0
  269. package/dist/autogen/types/rpc/rpc-get-node-status-result.d.cts +28 -0
  270. package/dist/autogen/types/rpc/rpc-get-shard-of-account-result.d.cts +4 -0
  271. package/dist/autogen/types/rpc/rpc-get-sync-state-result.d.cts +3 -0
  272. package/dist/autogen/types/rpc/rpc-get-tx-result.d.cts +3 -0
  273. package/dist/autogen/types/rpc/rpc-get-world-round-state-result.d.cts +13 -0
  274. package/dist/autogen/types/rpc/rpc-get-world-round-states-list-result.d.cts +3 -0
  275. package/dist/autogen/types/rpc/rpc-has-system-token-result.d.cts +4 -0
  276. package/dist/autogen/types/rpc/rpc-import-account-result.d.cts +3 -0
  277. package/dist/autogen/types/rpc/rpc-node-cmd-result.d.cts +5 -0
  278. package/dist/autogen/types/rpc/rpc-query-address-result.d.cts +3 -0
  279. package/dist/autogen/types/rpc/rpc-read-tx-list-witness-result.d.cts +6 -0
  280. package/dist/autogen/types/rpc/rpc-request-vme-result.d.cts +3 -0
  281. package/dist/autogen/types/rpc/rpc-send-raw-transaction-result.d.cts +1 -0
  282. package/dist/autogen/types/rpc/rpc-set-import-account-tx-result.d.cts +5 -0
  283. package/dist/autogen/types/rpc/rpc-subscribe-address-result.d.cts +1 -0
  284. package/dist/autogen/types/rpc/rpc-verify-and-sign-challenge-result.d.cts +8 -0
  285. package/dist/autogen/types/rpc/rpc-verify-identity-proof-result.d.cts +4 -0
  286. package/dist/autogen/types/rpc/rpc-view-contract-result.d.cts +3 -0
  287. package/dist/autogen/types/rpc/upload-heights-result.d.cts +6 -0
  288. package/dist/autogen/types/tx/index.d.cts +50 -0
  289. package/dist/autogen/types/tx/tx-accept-script-after-time-lock.d.cts +12 -0
  290. package/dist/autogen/types/tx/tx-accept-script.d.cts +15 -0
  291. package/dist/autogen/types/tx/tx-activate-all-assets.d.cts +15 -0
  292. package/dist/autogen/types/tx/tx-activate-asset-object.d.cts +9 -0
  293. package/dist/autogen/types/tx/tx-activate-call-contract.d.cts +15 -0
  294. package/dist/autogen/types/tx/tx-activate-coin.d.cts +9 -0
  295. package/dist/autogen/types/tx/tx-activate-contract-result.d.cts +18 -0
  296. package/dist/autogen/types/tx/tx-activate-contract-reward.d.cts +8 -0
  297. package/dist/autogen/types/tx/tx-activate-contract-transfer.d.cts +15 -0
  298. package/dist/autogen/types/tx/tx-activate-data-synth-account.d.cts +12 -0
  299. package/dist/autogen/types/tx/tx-activate-foundation-reserve.d.cts +7 -0
  300. package/dist/autogen/types/tx/tx-activate-incentive.d.cts +11 -0
  301. package/dist/autogen/types/tx/tx-activate-lock-stake-for-vme.d.cts +9 -0
  302. package/dist/autogen/types/tx/tx-activate-open-contract.d.cts +15 -0
  303. package/dist/autogen/types/tx/tx-activate-open-synth-account.d.cts +9 -0
  304. package/dist/autogen/types/tx/tx-activate-open-vm-engine.d.cts +11 -0
  305. package/dist/autogen/types/tx/tx-activate-token.d.cts +12 -0
  306. package/dist/autogen/types/tx/tx-become-guest.d.cts +10 -0
  307. package/dist/autogen/types/tx/tx-become-host.d.cts +7 -0
  308. package/dist/autogen/types/tx/tx-burn-asset-object.d.cts +8 -0
  309. package/dist/autogen/types/tx/tx-burn-token.d.cts +10 -0
  310. package/dist/autogen/types/tx/tx-call-contract.d.cts +16 -0
  311. package/dist/autogen/types/tx/tx-change-foundation-account.d.cts +6 -0
  312. package/dist/autogen/types/tx/tx-change-keypair.d.cts +10 -0
  313. package/dist/autogen/types/tx/tx-change-vkey.d.cts +6 -0
  314. package/dist/autogen/types/tx/tx-close-account.d.cts +12 -0
  315. package/dist/autogen/types/tx/tx-contract-blank-reward.d.cts +5 -0
  316. package/dist/autogen/types/tx/tx-contract-transfer-reward.d.cts +8 -0
  317. package/dist/autogen/types/tx/tx-create-asset-object.d.cts +10 -0
  318. package/dist/autogen/types/tx/tx-create-contract.d.cts +17 -0
  319. package/dist/autogen/types/tx/tx-create-synth-account.d.cts +7 -0
  320. package/dist/autogen/types/tx/tx-create-token.d.cts +10 -0
  321. package/dist/autogen/types/tx/tx-create-vm-engine.d.cts +8 -0
  322. package/dist/autogen/types/tx/tx-dummy.d.cts +3 -0
  323. package/dist/autogen/types/tx/tx-finalize.d.cts +6 -0
  324. package/dist/autogen/types/tx/tx-freeze-account.d.cts +5 -0
  325. package/dist/autogen/types/tx/tx-genesis-account.d.cts +11 -0
  326. package/dist/autogen/types/tx/tx-lead-vtx.d.cts +9 -0
  327. package/dist/autogen/types/tx/tx-lock-stake-for-vme.d.cts +7 -0
  328. package/dist/autogen/types/tx/tx-open-account.d.cts +18 -0
  329. package/dist/autogen/types/tx/tx-post-data-synth-account.d.cts +9 -0
  330. package/dist/autogen/types/tx/tx-post-data.d.cts +11 -0
  331. package/dist/autogen/types/tx/tx-provide-script.d.cts +16 -0
  332. package/dist/autogen/types/tx/tx-revoke.d.cts +16 -0
  333. package/dist/autogen/types/tx/tx-transfer-asset-object.d.cts +8 -0
  334. package/dist/autogen/types/tx/tx-transfer-coin-express.d.cts +8 -0
  335. package/dist/autogen/types/tx/tx-transfer-coin.d.cts +7 -0
  336. package/dist/autogen/types/tx/tx-transfer-token.d.cts +11 -0
  337. package/dist/autogen/types/tx/tx-unlock-stake.d.cts +7 -0
  338. package/dist/autogen/types/tx/tx-vm-engine-block.d.cts +6 -0
  339. package/dist/autogen/types/wasm/grant-consume-result.d.cts +4 -0
  340. package/dist/autogen/types/wasm/index.d.cts +26 -0
  341. package/dist/autogen/types/wasm/library-versions.d.cts +6 -0
  342. package/dist/autogen/types/wasm/param-calculate-tx-link-hash.d.cts +3 -0
  343. package/dist/autogen/types/wasm/param-code-core-script.d.cts +3 -0
  344. package/dist/autogen/types/wasm/param-convert-currency.d.cts +5 -0
  345. package/dist/autogen/types/wasm/param-create-account-and-keystore.d.cts +6 -0
  346. package/dist/autogen/types/wasm/param-create-master-keystore.d.cts +6 -0
  347. package/dist/autogen/types/wasm/param-create-normal-key.d.cts +4 -0
  348. package/dist/autogen/types/wasm/param-create-normal-keystore.d.cts +8 -0
  349. package/dist/autogen/types/wasm/param-derive-keys-from-mnemonic-and-path.d.cts +4 -0
  350. package/dist/autogen/types/wasm/param-derive-keys-from-mnemonic.d.cts +6 -0
  351. package/dist/autogen/types/wasm/param-encode-tx-currency.d.cts +3 -0
  352. package/dist/autogen/types/wasm/param-encode-tx-number.d.cts +4 -0
  353. package/dist/autogen/types/wasm/param-generate-mnemonic-by-seed.d.cts +3 -0
  354. package/dist/autogen/types/wasm/param-generate-mnemonic.d.cts +3 -0
  355. package/dist/autogen/types/wasm/param-get-home-shard.d.cts +4 -0
  356. package/dist/autogen/types/wasm/param-hash.d.cts +4 -0
  357. package/dist/autogen/types/wasm/param-load-keystore.d.cts +4 -0
  358. package/dist/autogen/types/wasm/param-make-currency.d.cts +4 -0
  359. package/dist/autogen/types/wasm/param-sign-by-master-key.d.cts +4 -0
  360. package/dist/autogen/types/wasm/param-sign-key-bind.d.cts +5 -0
  361. package/dist/autogen/types/wasm/param-sign.d.cts +4 -0
  362. package/dist/autogen/types/wasm/param-test-core-script.d.cts +7 -0
  363. package/dist/autogen/types/wasm/param-txs.d.cts +3 -0
  364. package/dist/autogen/types/wasm/param-verify-merkle-proof.d.cts +5 -0
  365. package/dist/autogen/types/wasm/param-verify.d.cts +5 -0
  366. package/dist/autogen/walletActions.d.cts +43 -0
  367. package/dist/autogen/wasm/crypto_aimer.d.cts +2 -0
  368. package/dist/autogen/wasm/crypto_haetae.d.cts +2 -0
  369. package/dist/autogen/wasm/crypto_smaugt.d.cts +2 -0
  370. package/dist/autogen/wasm/lclib.wasm +0 -0
  371. package/dist/autogen/wasm.d.cts +72 -0
  372. package/dist/clients/createClient.d.cts +8 -0
  373. package/dist/clients/createLocusPublicClient.d.cts +100 -0
  374. package/dist/clients/createLocusWalletClient.d.cts +57 -0
  375. package/dist/clients/createPublicClient.d.cts +6 -0
  376. package/dist/clients/createWalletClient.d.cts +8 -0
  377. package/dist/clients/index.d.cts +6 -6
  378. package/dist/clients/types.d.cts +21 -0
  379. package/dist/clients/types.d.mts +2 -0
  380. package/dist/constant/index.d.cts +2 -2
  381. package/dist/contracts/abis/erc20.d.cts +174 -0
  382. package/dist/contracts/abis/index.d.cts +1 -0
  383. package/dist/contracts/getContract.d.cts +33 -0
  384. package/dist/contracts/index.d.cts +2 -2
  385. package/dist/errors/account.d.cts +45 -0
  386. package/dist/errors/base.d.cts +13 -0
  387. package/dist/errors/index.d.cts +4 -4
  388. package/dist/errors/rpc.d.cts +21 -0
  389. package/dist/errors/transport.d.cts +21 -0
  390. package/dist/index.d.cts +8 -0
  391. package/dist/transports/http.d.cts +9 -0
  392. package/dist/transports/index.d.cts +2 -2
  393. package/dist/transports/types.d.cts +38 -0
  394. package/dist/transports/types.d.mts +2 -0
  395. package/dist/types/index.d.cts +5 -5
  396. package/dist/types/primitives.d.cts +5 -0
  397. package/dist/utils/abi.d.cts +88 -0
  398. package/dist/utils/index.d.cts +5 -5
  399. package/dist/utils/keystore.d.cts +87 -0
  400. package/dist/utils/lclib.d.cts +2 -0
  401. package/dist/utils/locus-wasm-bridge.d.cts +1 -0
  402. package/dist/utils/tx-validator.d.cts +28 -0
  403. package/dist/utils/types.d.cts +15 -0
  404. package/dist/utils/wasm-fetch.d.cts +6 -0
  405. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ import { ParamsPostDataToSynthAccount } from '../../../types/rpc/params-post-data-to-synth-account.cjs';
2
+ import { RpcCreateTxResult } from '../../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../../clients/types.cjs';
4
+ export declare function postDataToSynthAccount(client: WalletClient, param: ParamsPostDataToSynthAccount): Promise<RpcCreateTxResult>;
@@ -0,0 +1,3 @@
1
+ export * from './public/index.cjs';
2
+ export * from './wallet/index.cjs';
3
+ export * as debug from './debug/index.cjs';
@@ -0,0 +1,4 @@
1
+ import { HeightsResult } from '../../types/rpc/heights-result.cjs';
2
+ import { ParamsAccountHeights } from '../../types/rpc/params-account-heights.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function accountHeightsToDownload(client: Client, param: ParamsAccountHeights): Promise<HeightsResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccountHeights } from '../../types/rpc/params-account-heights.cjs';
2
+ import { UploadHeightsResult } from '../../types/rpc/upload-heights-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function accountHeightsToUpload(client: Client, param: ParamsAccountHeights): Promise<UploadHeightsResult>;
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,3 @@
1
+ import { ParamStr } from '../../types/common/param-str.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function clientMessage(client: Client, param: ParamStr): Promise<any>;
@@ -0,0 +1,4 @@
1
+ import { OutputDownloadAccountTxs } from '../../types/common/output-download-account-txs.cjs';
2
+ import { ParamsDownloadAccountTxs } from '../../types/rpc/params-download-account-txs.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function downloadAccountTxs(client: Client, param: ParamsDownloadAccountTxs): Promise<OutputDownloadAccountTxs>;
@@ -0,0 +1,2 @@
1
+ import type { Client } from '../../../clients/types.cjs';
2
+ export declare function echo(client: Client, str: string): Promise<string>;
@@ -0,0 +1,4 @@
1
+ import { ParamsFindDuplicateSubscriber } from '../../types/rpc/params-find-duplicate-subscriber.cjs';
2
+ import { RpcFindDuplicateSubscriberResult } from '../../types/rpc/rpc-find-duplicate-subscriber-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function findDuplicateSubscriber(client: Client, params: ParamsFindDuplicateSubscriber): Promise<RpcFindDuplicateSubscriberResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsGenerateLatestStoredDataProof } from '../../types/rpc/params-generate-latest-stored-data-proof.cjs';
2
+ import { RpcGenerateLatestStoredDataProofResult } from '../../types/rpc/rpc-generate-latest-stored-data-proof-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function generateLatestStoredDataProof(client: Client, params: ParamsGenerateLatestStoredDataProof): Promise<RpcGenerateLatestStoredDataProofResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsGetAssetList } from '../../types/rpc/params-get-asset-list.cjs';
2
+ import { RpcGetAccountAssetListResult } from '../../types/rpc/rpc-get-account-asset-list-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getAccountAssetList(client: Client, params: ParamsGetAssetList): Promise<RpcGetAccountAssetListResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsGetAssetObjects } from '../../types/rpc/params-get-asset-objects.cjs';
2
+ import { RpcGetAccountAssetObjectResult } from '../../types/rpc/rpc-get-account-asset-object-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getAccountAssetObject(client: Client, params: ParamsGetAssetObjects): Promise<RpcGetAccountAssetObjectResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccount } from '../../types/rpc/params-account.cjs';
2
+ import { RpcGetAccountDetailResult } from '../../types/rpc/rpc-get-account-detail-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getAccountDetail(client: Client, param: ParamsAccount): Promise<RpcGetAccountDetailResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccountHistory } from '../../types/rpc/params-account-history.cjs';
2
+ import { RpcGetAccountHistoryResult } from '../../types/rpc/rpc-get-account-history-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getAccountHistory(client: Client, param: ParamsAccountHistory): Promise<RpcGetAccountHistoryResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccount } from '../../types/rpc/params-account.cjs';
2
+ import { RpcGetAccountTokenListResult } from '../../types/rpc/rpc-get-account-token-list-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getAccountTokenList(client: Client, params: ParamsAccount): Promise<RpcGetAccountTokenListResult>;
@@ -0,0 +1,3 @@
1
+ import { RpcGetConciseNodeStatusResult } from '../../types/rpc/rpc-get-concise-node-status-result.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function getConciseNodeStatus(client: Client): Promise<RpcGetConciseNodeStatusResult>;
@@ -0,0 +1,3 @@
1
+ import { RpcGetGenesisAccountResult } from '../../types/rpc/rpc-get-genesis-account-result.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function getGenesisAccount(client: Client): Promise<RpcGetGenesisAccountResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsGetIdentityProof } from '../../types/rpc/params-get-identity-proof.cjs';
2
+ import { RpcGetIdentityProofResult } from '../../types/rpc/rpc-get-identity-proof-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getIdentityProof(client: Client, param: ParamsGetIdentityProof): Promise<RpcGetIdentityProofResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccount } from '../../types/rpc/params-account.cjs';
2
+ import { RpcGetInactiveTxListResult } from '../../types/rpc/rpc-get-inactive-tx-list-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getInactiveTxList(client: Client, param: ParamsAccount): Promise<RpcGetInactiveTxListResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccount } from '../../types/rpc/params-account.cjs';
2
+ import { RpcGetMontInfoListResult } from '../../types/rpc/rpc-get-mont-info-list-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getMontInfoList(client: Client, param: ParamsAccount): Promise<RpcGetMontInfoListResult>;
@@ -0,0 +1,3 @@
1
+ import { RpcGetNodeStatusResult } from '../../types/rpc/rpc-get-node-status-result.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function getNodeStatus(client: Client): Promise<RpcGetNodeStatusResult>;
@@ -0,0 +1,3 @@
1
+ import { RpcAccountsBalancesResult } from '../../types/common/rpc-accounts-balances-result.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function getOwnerBalance(client: Client): Promise<RpcAccountsBalancesResult[]>;
@@ -0,0 +1,4 @@
1
+ import { ParamsRound } from '../../types/rpc/params-round.cjs';
2
+ import { RoundStateDetail } from '../../types/common/round-state-detail.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getRoundState(client: Client, param: ParamsRound): Promise<RoundStateDetail>;
@@ -0,0 +1,4 @@
1
+ import { ParamsRS } from '../../types/rpc/params-rs.cjs';
2
+ import { RoundStateAbstract } from '../../types/common/round-state-abstract.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getRoundStatesList(client: Client, param: ParamsRS): Promise<RoundStateAbstract[]>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccount } from '../../types/rpc/params-account.cjs';
2
+ import { RpcGetShardOfAccountResult } from '../../types/rpc/rpc-get-shard-of-account-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getShardOfAccount(client: Client, params: ParamsAccount): Promise<RpcGetShardOfAccountResult>;
@@ -0,0 +1,3 @@
1
+ import { RpcGetSyncStateResult } from '../../types/rpc/rpc-get-sync-state-result.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function getSyncState(client: Client): Promise<RpcGetSyncStateResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccountAndIndex } from '../../types/rpc/params-account-and-index.cjs';
2
+ import { RpcGetTxResult } from '../../types/rpc/rpc-get-tx-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getTx(client: Client, param: ParamsAccountAndIndex): Promise<RpcGetTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsRound } from '../../types/rpc/params-round.cjs';
2
+ import { RpcGetWorldRoundStateResult } from '../../types/rpc/rpc-get-world-round-state-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getWorldRoundState(client: Client, param: ParamsRound): Promise<RpcGetWorldRoundStateResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsRoundList } from '../../types/rpc/params-round-list.cjs';
2
+ import { RpcGetWorldRoundStatesListResult } from '../../types/rpc/rpc-get-world-round-states-list-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function getWorldRoundStatesList(client: Client, param: ParamsRoundList): Promise<RpcGetWorldRoundStatesListResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAccount } from '../../types/rpc/params-account.cjs';
2
+ import { RpcHasSystemTokenResult } from '../../types/rpc/rpc-has-system-token-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function hasSystemToken(client: Client, params: ParamsAccount): Promise<RpcHasSystemTokenResult>;
@@ -0,0 +1,38 @@
1
+ export * from './accountHeightsToDownload.cjs';
2
+ export * from './accountHeightsToUpload.cjs';
3
+ export * from './calculateSpentByExpress.cjs';
4
+ export * from './clientMessage.cjs';
5
+ export * from './downloadAccountTxs.cjs';
6
+ export * from './echo.cjs';
7
+ export * from './findDuplicateSubscriber.cjs';
8
+ export * from './generateLatestStoredDataProof.cjs';
9
+ export * from './getAccountAssetList.cjs';
10
+ export * from './getAccountAssetObject.cjs';
11
+ export * from './getAccountDetail.cjs';
12
+ export * from './getAccountHistory.cjs';
13
+ export * from './getAccountTokenList.cjs';
14
+ export * from './getConciseNodeStatus.cjs';
15
+ export * from './getGenesisAccount.cjs';
16
+ export * from './getIdentityProof.cjs';
17
+ export * from './getInactiveTxList.cjs';
18
+ export * from './getMontInfoList.cjs';
19
+ export * from './getNodeStatus.cjs';
20
+ export * from './getOwnerBalance.cjs';
21
+ export * from './getRoundState.cjs';
22
+ export * from './getRoundStatesList.cjs';
23
+ export * from './getShardOfAccount.cjs';
24
+ export * from './getSyncState.cjs';
25
+ export * from './getTx.cjs';
26
+ export * from './getWorldRoundState.cjs';
27
+ export * from './getWorldRoundStatesList.cjs';
28
+ export * from './hasSystemToken.cjs';
29
+ export * from './makeTxProof.cjs';
30
+ export * from './queryAddress.cjs';
31
+ export * from './readTxListWitness.cjs';
32
+ export * from './setHost.cjs';
33
+ export * from './subscribeAddress.cjs';
34
+ export * from './uploadAccountTxs.cjs';
35
+ export * from './verifyAndSignChallenge.cjs';
36
+ export * from './verifyIdentityProof.cjs';
37
+ export * from './verifyLatestStoredDataProof.cjs';
38
+ export * from './verifyTxListWitness.cjs';
@@ -0,0 +1,4 @@
1
+ import { ParamsTxList } from '../../types/rpc/params-tx-list.cjs';
2
+ import { RpcReadTxListWitnessResult } from '../../types/rpc/rpc-read-tx-list-witness-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function makeTxProof(client: Client, params: ParamsTxList): Promise<RpcReadTxListWitnessResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsQueryAddress } from '../../types/rpc/params-query-address.cjs';
2
+ import { RpcQueryAddressResult } from '../../types/rpc/rpc-query-address-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function queryAddress(client: Client, params: ParamsQueryAddress): Promise<RpcQueryAddressResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsReadTxList } from '../../types/rpc/params-read-tx-list.cjs';
2
+ import { RpcReadTxListWitnessResult } from '../../types/rpc/rpc-read-tx-list-witness-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function readTxListWitness(client: Client, params: ParamsReadTxList): Promise<RpcReadTxListWitnessResult>;
@@ -0,0 +1,3 @@
1
+ import { ParamsSetHost } from '../../types/rpc/params-set-host.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function setHost(client: Client, param: ParamsSetHost): Promise<boolean>;
@@ -0,0 +1,4 @@
1
+ import { ParamsSubscribeAddress } from '../../types/rpc/params-subscribe-address.cjs';
2
+ import { RpcSubscribeAddressResult } from '../../types/rpc/rpc-subscribe-address-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function subscribeAddress(client: Client, params: ParamsSubscribeAddress): Promise<RpcSubscribeAddressResult>;
@@ -0,0 +1,3 @@
1
+ import { ParamsUploadAccountTxs } from '../../types/rpc/params-upload-account-txs.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function uploadAccountTxs(client: Client, param: ParamsUploadAccountTxs): Promise<number[]>;
@@ -0,0 +1,4 @@
1
+ import { ParamsVerifyAndSignChallenge } from '../../types/rpc/params-verify-and-sign-challenge.cjs';
2
+ import { RpcVerifyAndSignChallengeResult } from '../../types/rpc/rpc-verify-and-sign-challenge-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function verifyAndSignChallenge(client: Client, param: ParamsVerifyAndSignChallenge): Promise<RpcVerifyAndSignChallengeResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsVerifyIdentityProof } from '../../types/rpc/params-verify-identity-proof.cjs';
2
+ import { RpcVerifyIdentityProofResult } from '../../types/rpc/rpc-verify-identity-proof-result.cjs';
3
+ import type { Client } from '../../../clients/types.cjs';
4
+ export declare function verifyIdentityProof(client: Client, param: ParamsVerifyIdentityProof): Promise<RpcVerifyIdentityProofResult>;
@@ -0,0 +1,3 @@
1
+ import { ParamsLatestStoredDataProof } from '../../types/rpc/params-latest-stored-data-proof.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function verifyLatestStoredDataProof(client: Client, params: ParamsLatestStoredDataProof): Promise<boolean>;
@@ -0,0 +1,3 @@
1
+ import { ParamsTxListWitness } from '../../types/rpc/params-tx-list-witness.cjs';
2
+ import type { Client } from '../../../clients/types.cjs';
3
+ export declare function verifyTxListWitness(client: Client, params: ParamsTxListWitness): Promise<boolean>;
@@ -0,0 +1,4 @@
1
+ import { ParamsAcceptScript } from '../../types/rpc/params-accept-script.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function acceptScript(client: WalletClient, params: ParamsAcceptScript): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsBecomeGuest } from '../../types/rpc/params-become-guest.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function becomeGuest(client: WalletClient, param: ParamsBecomeGuest): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsBecomeHost } from '../../types/rpc/params-become-host.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function becomeHost(client: WalletClient, param: ParamsBecomeHost): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsChangeKey } from '../../types/rpc/params-change-key.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function changeKey(client: WalletClient, params: ParamsChangeKey): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsChangeVKey } from '../../types/rpc/params-change-vkey.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function changeVkey(client: WalletClient, params: ParamsChangeVKey): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsCloseAccount } from '../../types/rpc/params-close-account.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function closeAccount(client: WalletClient, param: ParamsCloseAccount): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsCreateAssetObject } from '../../types/rpc/params-create-asset-object.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function createAssetObject(client: WalletClient, param: ParamsCreateAssetObject): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsCreateToken } from '../../types/rpc/params-create-token.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function createToken(client: WalletClient, param: ParamsCreateToken): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsCreateVme } from '../../types/rpc/params-create-vme.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function createVme(client: WalletClient, param: ParamsCreateVme): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsFreezeAccount } from '../../types/rpc/params-freeze-account.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function freezeAccount(client: WalletClient, params: ParamsFreezeAccount): Promise<RpcCreateTxResult>;
@@ -0,0 +1,20 @@
1
+ export * from './acceptScript.cjs';
2
+ export * from './becomeGuest.cjs';
3
+ export * from './becomeHost.cjs';
4
+ export * from './changeKey.cjs';
5
+ export * from './changeVkey.cjs';
6
+ export * from './closeAccount.cjs';
7
+ export * from './createAssetObject.cjs';
8
+ export * from './createToken.cjs';
9
+ export * from './createVme.cjs';
10
+ export * from './freezeAccount.cjs';
11
+ export * from './lockStake.cjs';
12
+ export * from './openAccount.cjs';
13
+ export * from './postData.cjs';
14
+ export * from './provideScript.cjs';
15
+ export * from './requestDataTrade.cjs';
16
+ export * from './transferAssetObject.cjs';
17
+ export * from './transferCoin.cjs';
18
+ export * from './transferCoinExpress.cjs';
19
+ export * from './transferToken.cjs';
20
+ export * from './unlockStake.cjs';
@@ -0,0 +1,4 @@
1
+ import { ParamsLockStake } from '../../types/rpc/params-lock-stake.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function lockStake(client: WalletClient, params: ParamsLockStake): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsOpenAccount } from '../../types/rpc/params-open-account.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function openAccount(client: WalletClient, param: ParamsOpenAccount): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { InputParamsDataTransfer } from '../../types/common/input-params-data-transfer.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function postData(client: WalletClient, params: InputParamsDataTransfer): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsProvideScript } from '../../types/rpc/params-provide-script.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function provideScript(client: WalletClient, params: ParamsProvideScript): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsRequestDataTrade } from '../../types/rpc/params-request-data-trade.cjs';
2
+ import { RpcDataTradeResult } from '../../types/common/rpc-data-trade-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function requestDataTrade(client: WalletClient, params: ParamsRequestDataTrade): Promise<RpcDataTradeResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsTransferAssetObject } from '../../types/rpc/params-transfer-asset-object.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function transferAssetObject(client: WalletClient, params: ParamsTransferAssetObject): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsTransferCoin } from '../../types/rpc/params-transfer-coin.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function transferCoin(client: WalletClient, param: ParamsTransferCoin): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,4 @@
1
+ import { ParamsTransferTokens } from '../../types/rpc/params-transfer-tokens.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function transferToken(client: WalletClient, params: ParamsTransferTokens): Promise<RpcCreateTxResult>;
@@ -0,0 +1,4 @@
1
+ import { ParamsUnlockStake } from '../../types/rpc/params-unlock-stake.cjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.cjs';
3
+ import type { WalletClient } from '../../../clients/types.cjs';
4
+ export declare function unlockStake(client: WalletClient, params: ParamsUnlockStake): Promise<RpcCreateTxResult>;
@@ -0,0 +1,47 @@
1
+ import type { ParamsAccount } from './types/rpc/params-account.cjs';
2
+ import type { ParamsAccounts } from './types/rpc/params-accounts.cjs';
3
+ import type { ParamsCallContract } from './types/rpc/params-call-contract.cjs';
4
+ import type { ParamsContractLog } from './types/rpc/params-contract-log.cjs';
5
+ import type { ParamsCreateNode } from './types/rpc/params-create-node.cjs';
6
+ import type { ParamsGameChainCmd } from './types/rpc/params-game-chain-cmd.cjs';
7
+ import type { ParamsGetHomeShard } from './types/rpc/params-get-home-shard.cjs';
8
+ import type { ParamsGetImportAccount } from './types/rpc/params-get-import-account.cjs';
9
+ import type { ParamsImportAccount } from './types/rpc/params-import-account.cjs';
10
+ import type { ParamsInitReliableNodes } from './types/rpc/params-init-reliable-nodes.cjs';
11
+ import type { ParamsRemoveHoldTxs } from './types/rpc/params-remove-hold-txs.cjs';
12
+ import type { ParamsRequestVme } from './types/rpc/params-request-vme.cjs';
13
+ import type { ParamsSendRawTransaction } from './types/rpc/params-send-raw-transaction.cjs';
14
+ import type { ParamsSetImportAccountTx } from './types/rpc/params-set-import-account-tx.cjs';
15
+ import type { ParamsSetReliableNode } from './types/rpc/params-set-reliable-node.cjs';
16
+ import type { Client } from '../clients/types.cjs';
17
+ export declare const debugPublicActions: (client: Client) => {
18
+ allHeights: () => Promise<import("../index.cjs").RpcAccountHeight[]>;
19
+ balanceGrantList: () => Promise<string[]>;
20
+ balanceList: () => Promise<string[]>;
21
+ createAccount: () => Promise<import("../index.cjs").RpcCreateAccountResult>;
22
+ createNode: (param: ParamsCreateNode) => Promise<import("../index.cjs").RpcCreateNodeResult>;
23
+ dumpAllAccounts: () => Promise<import("../index.cjs").ResultDumpAccounts>;
24
+ echo: (str: string) => Promise<string>;
25
+ gameChainCmd: (param: ParamsGameChainCmd) => Promise<import("../index.cjs").RpcGameChainCmdResult>;
26
+ getAccountsBalances: (param: ParamsAccounts) => Promise<import("../index.cjs").RpcGetAccountsBalancesResult>;
27
+ getAccountsHeights: (param: ParamsAccounts) => Promise<import("../index.cjs").RpcGetAccountsHeightsResult>;
28
+ getContractLog: (param: ParamsContractLog) => Promise<import("../index.cjs").RpcGetContractLogResult>;
29
+ getGuestsInfo: () => Promise<import("../index.cjs").RpcGetGuestsInfoResult>;
30
+ getHomeShard: (param: ParamsGetHomeShard) => Promise<import("../index.cjs").RpcGetHomeShardResult>;
31
+ getImportAccount: (params: ParamsGetImportAccount) => Promise<import("../index.cjs").RpcGetImportAccountResult>;
32
+ getImportAccountLog: (params: ParamsGetImportAccount) => Promise<import("../index.cjs").RpcImportAccountResult>;
33
+ getKeys: (params: ParamsAccount) => Promise<import("../index.cjs").RpcGetKeysResult>;
34
+ getNodeBlocks: () => Promise<import("../index.cjs").RpcGetNodeBlocksResult>;
35
+ getPeerPool: () => Promise<string[]>;
36
+ getPeersInfo: () => Promise<import("../index.cjs").GetPeersInfo>;
37
+ importAccount: (params: ParamsImportAccount) => Promise<import("../index.cjs").RpcImportAccountResult>;
38
+ initReliableNodes: (param: ParamsInitReliableNodes) => Promise<import("../index.cjs").RpcBoolResult>;
39
+ noArgsRets: () => Promise<any>;
40
+ nodeCmd: (cmd: string) => Promise<import("../index.cjs").RpcNodeCmdResult>;
41
+ removeHoldTxs: (param: ParamsRemoveHoldTxs) => Promise<import("../index.cjs").RetTypeBase>;
42
+ requestVme: (params: ParamsRequestVme) => Promise<import("../index.cjs").RpcRequestVmeResult>;
43
+ sendRawTransaction: (params: ParamsSendRawTransaction) => Promise<import("../index.cjs").RpcSendRawTransactionResult>;
44
+ setImportAccountTx: (params: ParamsSetImportAccountTx) => Promise<import("../index.cjs").RpcSetImportAccountTxResult>;
45
+ setReliableNode: (param: ParamsSetReliableNode) => Promise<import("../index.cjs").RpcBoolResult>;
46
+ viewContract: (param: ParamsCallContract) => Promise<import("../index.cjs").RpcViewContractResult>;
47
+ };
@@ -0,0 +1,11 @@
1
+ import type { ParamsCallContract } from './types/rpc/params-call-contract.cjs';
2
+ import type { ParamsCreateContract } from './types/rpc/params-create-contract.cjs';
3
+ import type { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.cjs';
4
+ import type { ParamsPostDataToSynthAccount } from './types/rpc/params-post-data-to-synth-account.cjs';
5
+ import type { WalletClient } from '../clients/types.cjs';
6
+ export declare const debugWalletActions: (client: WalletClient) => {
7
+ callContract: (param: ParamsCallContract) => Promise<import("../index.cjs").RpcCreateTxResult>;
8
+ createContract: (param: ParamsCreateContract) => Promise<import("../index.cjs").RpcCreateTxResult>;
9
+ createSynthAccount: (param: ParamsCreateSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
10
+ postDataToSynthAccount: (param: ParamsPostDataToSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
11
+ };
@@ -1,8 +1,8 @@
1
- export * from './rpc-api-spec.mjs';
2
- export * from './wasm.mjs';
3
- export * from './locus-tx.mjs';
4
- export * from './publicActions.mjs';
5
- export * from './walletActions.mjs';
6
- export * from './debugPublicActions.mjs';
7
- export * from './debugWalletActions.mjs';
8
- export * from './actions/index.mjs';
1
+ export * from './rpc-api-spec.cjs';
2
+ export * from './wasm.cjs';
3
+ export * from './locus-tx.cjs';
4
+ export * from './publicActions.cjs';
5
+ export * from './walletActions.cjs';
6
+ export * from './debugPublicActions.cjs';
7
+ export * from './debugWalletActions.cjs';
8
+ export * from './actions/index.cjs';
@@ -0,0 +1,5 @@
1
+ import { UnionToOptional } from '../index.cjs';
2
+ import { TxAcceptScript, TxAcceptScriptAfterTimeLock, TxActivateAllAssets, TxActivateAssetObject, TxActivateCallContract, TxActivateCoin, TxActivateContractResult, TxActivateContractReward, TxActivateContractTransfer, TxActivateDataSynthAccount, TxActivateFoundationReserve, TxActivateIncentive, TxActivateLockStakeForVme, TxActivateOpenContract, TxActivateOpenSynthAccount, TxActivateOpenVmEngine, TxActivateToken, TxBecomeGuest, TxBecomeHost, TxBurnAssetObject, TxBurnToken, TxCallContract, TxChangeFoundationAccount, TxChangeKeypair, TxChangeVKey, TxCloseAccount, TxContractBlankReward, TxContractTransferReward, TxCreateAssetObject, TxCreateContract, TxCreateSynthAccount, TxCreateToken, TxCreateVmEngine, TxDummy, TxFinalize, TxFreezeAccount, TxGenesisAccount, TxLeadVtx, TxLockStakeForVme, TxOpenAccount, TxPostData, TxPostDataSynthAccount, TxProvideScript, TxRevoke, TxTransferAssetObject, TxTransferCoin, TxTransferCoinExpress, TxTransferToken, TxUnlockStake, TxVmEngineBlock } from './types/tx/index.cjs';
3
+ type Txs = TxAcceptScript | TxAcceptScriptAfterTimeLock | TxActivateAllAssets | TxActivateAssetObject | TxActivateCallContract | TxActivateCoin | TxActivateContractResult | TxActivateContractReward | TxActivateContractTransfer | TxActivateDataSynthAccount | TxActivateFoundationReserve | TxActivateIncentive | TxActivateLockStakeForVme | TxActivateOpenContract | TxActivateOpenSynthAccount | TxActivateOpenVmEngine | TxActivateToken | TxBecomeGuest | TxBecomeHost | TxBurnAssetObject | TxBurnToken | TxCallContract | TxChangeFoundationAccount | TxChangeKeypair | TxChangeVKey | TxCloseAccount | TxContractBlankReward | TxContractTransferReward | TxCreateAssetObject | TxCreateContract | TxCreateSynthAccount | TxCreateToken | TxCreateVmEngine | TxDummy | TxFinalize | TxFreezeAccount | TxGenesisAccount | TxLeadVtx | TxLockStakeForVme | TxOpenAccount | TxPostData | TxPostDataSynthAccount | TxProvideScript | TxRevoke | TxTransferAssetObject | TxTransferCoin | TxTransferCoinExpress | TxTransferToken | TxUnlockStake | TxVmEngineBlock;
4
+ export type LocusTx = UnionToOptional<Txs>;
5
+ export {};