@locuschain/lib 0.1.31 → 0.1.32

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 (469) hide show
  1. package/dist/accounts/account.d.mts +58 -0
  2. package/dist/accounts/index.amd.js +306 -0
  3. package/dist/accounts/index.cjs.cjs +311 -0
  4. package/dist/accounts/index.d.cts +5 -0
  5. package/dist/accounts/index.d.mts +5 -0
  6. package/dist/accounts/index.esm.js +304 -0
  7. package/dist/accounts/keys/index.d.mts +2 -0
  8. package/dist/accounts/keys/localKeySource.d.mts +23 -0
  9. package/dist/accounts/keys/toKeySource.d.mts +14 -0
  10. package/dist/accounts/keysToAccount.d.mts +19 -0
  11. package/dist/accounts/mnemonicToAccount.d.mts +25 -0
  12. package/dist/accounts/signing/txKeyPolicy.d.mts +21 -0
  13. package/dist/accounts/types.d.mts +100 -0
  14. package/dist/actions/wallet/_deriveTxAdditions.d.mts +18 -0
  15. package/dist/actions/wallet/_prepareTransaction.d.mts +15 -0
  16. package/dist/actions/wallet/_sendPreparedTransaction.d.mts +9 -0
  17. package/dist/actions/wallet/_signLocusTransaction.d.mts +14 -0
  18. package/dist/actions/wallet/index.d.mts +5 -0
  19. package/dist/actions/wallet/types.d.mts +38 -0
  20. package/dist/autogen/actions/debug/index.d.mts +2 -0
  21. package/dist/autogen/actions/debug/public/allHeights.d.mts +3 -0
  22. package/dist/autogen/actions/debug/public/balanceGrantList.d.mts +2 -0
  23. package/dist/autogen/actions/debug/public/balanceList.d.mts +2 -0
  24. package/dist/autogen/actions/debug/public/createAccount.d.mts +3 -0
  25. package/dist/autogen/actions/debug/public/createNode.d.mts +4 -0
  26. package/dist/autogen/actions/debug/public/dumpAllAccounts.d.mts +3 -0
  27. package/dist/autogen/actions/debug/public/echo.d.mts +2 -0
  28. package/dist/autogen/actions/debug/public/gameChainCmd.d.mts +4 -0
  29. package/dist/autogen/actions/debug/public/getAccountsBalances.d.mts +4 -0
  30. package/dist/autogen/actions/debug/public/getAccountsHeights.d.mts +4 -0
  31. package/dist/autogen/actions/debug/public/getContractLog.d.mts +4 -0
  32. package/dist/autogen/actions/debug/public/getGuestsInfo.d.mts +3 -0
  33. package/dist/autogen/actions/debug/public/getHomeShard.d.mts +4 -0
  34. package/dist/autogen/actions/debug/public/getImportAccount.d.mts +4 -0
  35. package/dist/autogen/actions/debug/public/getImportAccountLog.d.mts +4 -0
  36. package/dist/autogen/actions/debug/public/getKeys.d.mts +4 -0
  37. package/dist/autogen/actions/debug/public/getNodeBlocks.d.mts +3 -0
  38. package/dist/autogen/actions/debug/public/getPeerPool.d.mts +2 -0
  39. package/dist/autogen/actions/debug/public/getPeersInfo.d.mts +3 -0
  40. package/dist/autogen/actions/debug/public/importAccount.d.mts +4 -0
  41. package/dist/autogen/actions/debug/public/index.d.mts +29 -0
  42. package/dist/autogen/actions/debug/public/initReliableNodes.d.mts +4 -0
  43. package/dist/autogen/actions/debug/public/noArgsRets.d.mts +2 -0
  44. package/dist/autogen/actions/debug/public/nodeCmd.d.mts +3 -0
  45. package/dist/autogen/actions/debug/public/removeHoldTxs.d.mts +4 -0
  46. package/dist/autogen/actions/debug/public/requestVme.d.mts +4 -0
  47. package/dist/autogen/actions/debug/public/sendRawTransaction.d.mts +4 -0
  48. package/dist/autogen/actions/debug/public/setImportAccountTx.d.mts +4 -0
  49. package/dist/autogen/actions/debug/public/setReliableNode.d.mts +4 -0
  50. package/dist/autogen/actions/debug/public/viewContract.d.mts +4 -0
  51. package/dist/autogen/actions/debug/wallet/callContract.d.mts +4 -0
  52. package/dist/autogen/actions/debug/wallet/createContract.d.mts +4 -0
  53. package/dist/autogen/actions/debug/wallet/createSynthAccount.d.mts +4 -0
  54. package/dist/autogen/actions/debug/wallet/index.d.mts +4 -0
  55. package/dist/autogen/actions/debug/wallet/postDataToSynthAccount.d.mts +4 -0
  56. package/dist/autogen/actions/index.d.mts +3 -0
  57. package/dist/autogen/actions/public/accountHeightsToDownload.d.mts +4 -0
  58. package/dist/autogen/actions/public/accountHeightsToUpload.d.mts +4 -0
  59. package/dist/autogen/actions/public/calculateSpentByExpress.d.mts +4 -0
  60. package/dist/autogen/actions/public/clientMessage.d.mts +3 -0
  61. package/dist/autogen/actions/public/downloadAccountTxs.d.mts +4 -0
  62. package/dist/autogen/actions/public/echo.d.mts +2 -0
  63. package/dist/autogen/actions/public/findDuplicateSubscriber.d.mts +4 -0
  64. package/dist/autogen/actions/public/generateLatestStoredDataProof.d.mts +4 -0
  65. package/dist/autogen/actions/public/getAccountAssetList.d.mts +4 -0
  66. package/dist/autogen/actions/public/getAccountAssetObject.d.mts +4 -0
  67. package/dist/autogen/actions/public/getAccountDetail.d.mts +4 -0
  68. package/dist/autogen/actions/public/getAccountHistory.d.mts +4 -0
  69. package/dist/autogen/actions/public/getAccountTokenList.d.mts +4 -0
  70. package/dist/autogen/actions/public/getConciseNodeStatus.d.mts +3 -0
  71. package/dist/autogen/actions/public/getGenesisAccount.d.mts +3 -0
  72. package/dist/autogen/actions/public/getIdentityProof.d.mts +4 -0
  73. package/dist/autogen/actions/public/getInactiveTxList.d.mts +4 -0
  74. package/dist/autogen/actions/public/getMontInfoList.d.mts +4 -0
  75. package/dist/autogen/actions/public/getNodeStatus.d.mts +3 -0
  76. package/dist/autogen/actions/public/getOwnerBalance.d.mts +3 -0
  77. package/dist/autogen/actions/public/getRoundState.d.mts +4 -0
  78. package/dist/autogen/actions/public/getRoundStatesList.d.mts +4 -0
  79. package/dist/autogen/actions/public/getShardOfAccount.d.mts +4 -0
  80. package/dist/autogen/actions/public/getSyncState.d.mts +3 -0
  81. package/dist/autogen/actions/public/getTx.d.mts +4 -0
  82. package/dist/autogen/actions/public/getWorldRoundState.d.mts +4 -0
  83. package/dist/autogen/actions/public/getWorldRoundStatesList.d.mts +4 -0
  84. package/dist/autogen/actions/public/hasSystemToken.d.mts +4 -0
  85. package/dist/autogen/actions/public/index.d.mts +38 -0
  86. package/dist/autogen/actions/public/makeTxProof.d.mts +4 -0
  87. package/dist/autogen/actions/public/queryAddress.d.mts +4 -0
  88. package/dist/autogen/actions/public/readTxListWitness.d.mts +4 -0
  89. package/dist/autogen/actions/public/setHost.d.mts +3 -0
  90. package/dist/autogen/actions/public/subscribeAddress.d.mts +4 -0
  91. package/dist/autogen/actions/public/uploadAccountTxs.d.mts +3 -0
  92. package/dist/autogen/actions/public/verifyAndSignChallenge.d.mts +4 -0
  93. package/dist/autogen/actions/public/verifyIdentityProof.d.mts +4 -0
  94. package/dist/autogen/actions/public/verifyLatestStoredDataProof.d.mts +3 -0
  95. package/dist/autogen/actions/public/verifyTxListWitness.d.mts +3 -0
  96. package/dist/autogen/actions/wallet/acceptScript.d.mts +4 -0
  97. package/dist/autogen/actions/wallet/becomeGuest.d.mts +4 -0
  98. package/dist/autogen/actions/wallet/becomeHost.d.mts +4 -0
  99. package/dist/autogen/actions/wallet/changeKey.d.mts +4 -0
  100. package/dist/autogen/actions/wallet/changeVkey.d.mts +4 -0
  101. package/dist/autogen/actions/wallet/closeAccount.d.mts +4 -0
  102. package/dist/autogen/actions/wallet/createAssetObject.d.mts +4 -0
  103. package/dist/autogen/actions/wallet/createToken.d.mts +4 -0
  104. package/dist/autogen/actions/wallet/createVme.d.mts +4 -0
  105. package/dist/autogen/actions/wallet/index.d.mts +19 -0
  106. package/dist/autogen/actions/wallet/lockStake.d.mts +4 -0
  107. package/dist/autogen/actions/wallet/openAccount.d.mts +4 -0
  108. package/dist/autogen/actions/wallet/postData.d.mts +4 -0
  109. package/dist/autogen/actions/wallet/provideScript.d.mts +4 -0
  110. package/dist/autogen/actions/wallet/requestDataTrade.d.mts +4 -0
  111. package/dist/autogen/actions/wallet/transferAssetObject.d.mts +4 -0
  112. package/dist/autogen/actions/wallet/transferCoin.d.mts +4 -0
  113. package/dist/autogen/actions/wallet/transferCoinExpress.d.mts +4 -0
  114. package/dist/autogen/actions/wallet/transferToken.d.mts +4 -0
  115. package/dist/autogen/actions/wallet/unlockStake.d.mts +4 -0
  116. package/dist/autogen/debugPublicActions.d.mts +47 -0
  117. package/dist/autogen/debugWalletActions.d.mts +11 -0
  118. package/dist/autogen/index.amd.js +151 -0
  119. package/dist/autogen/index.cjs.cjs +157 -0
  120. package/dist/autogen/index.d.cts +8 -0
  121. package/dist/autogen/index.d.mts +8 -0
  122. package/dist/autogen/index.esm.js +49 -0
  123. package/dist/autogen/locus-tx.d.mts +5 -0
  124. package/dist/autogen/publicActions.d.mts +66 -0
  125. package/dist/autogen/rpc-api-spec.d.mts +208 -0
  126. package/dist/autogen/types/common/addr-tx-proof.d.mts +5 -0
  127. package/dist/autogen/types/common/asset-object-transfer.d.mts +8 -0
  128. package/dist/autogen/types/common/asset-object.d.mts +10 -0
  129. package/dist/autogen/types/common/asset-proof-objects.d.mts +5 -0
  130. package/dist/autogen/types/common/asset-transfer-info.d.mts +9 -0
  131. package/dist/autogen/types/common/base-meta.d.mts +1 -0
  132. package/dist/autogen/types/common/contract-exec-status.d.mts +16 -0
  133. package/dist/autogen/types/common/contract-transfer-info.d.mts +7 -0
  134. package/dist/autogen/types/common/get-peers-info.d.mts +9 -0
  135. package/dist/autogen/types/common/index-value-pair.d.mts +4 -0
  136. package/dist/autogen/types/common/index.d.mts +54 -0
  137. package/dist/autogen/types/common/input-params-data-transfer.d.mts +8 -0
  138. package/dist/autogen/types/common/key-bind-info.d.mts +4 -0
  139. package/dist/autogen/types/common/mont-info.d.mts +4 -0
  140. package/dist/autogen/types/common/object-amount-transfer.d.mts +5 -0
  141. package/dist/autogen/types/common/object-amount.d.mts +4 -0
  142. package/dist/autogen/types/common/output-download-account-txs.d.mts +4 -0
  143. package/dist/autogen/types/common/param-str.d.mts +3 -0
  144. package/dist/autogen/types/common/param-tx-data.d.mts +5 -0
  145. package/dist/autogen/types/common/params-token-value-pair.d.mts +4 -0
  146. package/dist/autogen/types/common/public-height-chunk.d.mts +4 -0
  147. package/dist/autogen/types/common/ref-tx-info.d.mts +5 -0
  148. package/dist/autogen/types/common/ref-vtx.d.mts +6 -0
  149. package/dist/autogen/types/common/ret-type-base.d.mts +1 -0
  150. package/dist/autogen/types/common/round-state-abstract.d.mts +11 -0
  151. package/dist/autogen/types/common/round-state-detail.d.mts +16 -0
  152. package/dist/autogen/types/common/rpc-account-height.d.mts +5 -0
  153. package/dist/autogen/types/common/rpc-accounts-balances-result.d.mts +4 -0
  154. package/dist/autogen/types/common/rpc-asset-list-values.d.mts +7 -0
  155. package/dist/autogen/types/common/rpc-data-trade-result.d.mts +5 -0
  156. package/dist/autogen/types/common/rpc-token-balance-pair.d.mts +4 -0
  157. package/dist/autogen/types/common/token-value-ab.d.mts +5 -0
  158. package/dist/autogen/types/common/token-value-pair.d.mts +4 -0
  159. package/dist/autogen/types/common/transaction-sender-index.d.mts +7 -0
  160. package/dist/autogen/types/common/transfer-info.d.mts +7 -0
  161. package/dist/autogen/types/common/tx-base.d.mts +13 -0
  162. package/dist/autogen/types/common/tx-hash-elements.d.mts +6 -0
  163. package/dist/autogen/types/common/tx-key-height-hash.d.mts +4 -0
  164. package/dist/autogen/types/common/tx-key-nround.d.mts +5 -0
  165. package/dist/autogen/types/common/tx-key.d.mts +4 -0
  166. package/dist/autogen/types/common/tx-meta.d.mts +2 -0
  167. package/dist/autogen/types/common/tx-no-signature.d.mts +1 -0
  168. package/dist/autogen/types/common/tx-recv-set-meta.d.mts +2 -0
  169. package/dist/autogen/types/common/tx-sign-key.d.mts +1 -0
  170. package/dist/autogen/types/common/tx-signature.d.mts +3 -0
  171. package/dist/autogen/types/common/tx-vsignature.d.mts +3 -0
  172. package/dist/autogen/types/common/vm-engine-block.d.mts +11 -0
  173. package/dist/autogen/types/common/vm-reward.d.mts +4 -0
  174. package/dist/autogen/types/common/vm-tx-state.d.mts +27 -0
  175. package/dist/autogen/types/common/vme-block-meta.d.mts +2 -0
  176. package/dist/autogen/types/common/vme-info.d.mts +3 -0
  177. package/dist/autogen/types/common/vme-lock-stake.d.mts +4 -0
  178. package/dist/autogen/types/common/vote-info-rpc.d.mts +5 -0
  179. package/dist/autogen/types/common/vtx-meta.d.mts +2 -0
  180. package/dist/autogen/types/common/wrs-validators-info.d.mts +5 -0
  181. package/dist/autogen/types/consts/address-class.d.mts +11 -0
  182. package/dist/autogen/types/consts/consts.d.mts +2 -0
  183. package/dist/autogen/types/consts/currency-unit.d.mts +15 -0
  184. package/dist/autogen/types/consts/index.d.mts +3 -0
  185. package/dist/autogen/types/consts/tx-type.d.mts +61 -0
  186. package/dist/autogen/types/consts/tx-types.d.mts +415 -0
  187. package/dist/autogen/types/rpc/heights-result.d.mts +4 -0
  188. package/dist/autogen/types/rpc/index.d.mts +106 -0
  189. package/dist/autogen/types/rpc/params-accept-script.d.mts +8 -0
  190. package/dist/autogen/types/rpc/params-account-and-index.d.mts +4 -0
  191. package/dist/autogen/types/rpc/params-account-heights.d.mts +5 -0
  192. package/dist/autogen/types/rpc/params-account-history.d.mts +5 -0
  193. package/dist/autogen/types/rpc/params-account.d.mts +3 -0
  194. package/dist/autogen/types/rpc/params-accounts.d.mts +3 -0
  195. package/dist/autogen/types/rpc/params-become-guest.d.mts +5 -0
  196. package/dist/autogen/types/rpc/params-become-host.d.mts +5 -0
  197. package/dist/autogen/types/rpc/params-calculate-spent-by-express.d.mts +5 -0
  198. package/dist/autogen/types/rpc/params-call-contract.d.mts +13 -0
  199. package/dist/autogen/types/rpc/params-change-key.d.mts +8 -0
  200. package/dist/autogen/types/rpc/params-change-vkey.d.mts +5 -0
  201. package/dist/autogen/types/rpc/params-close-account.d.mts +7 -0
  202. package/dist/autogen/types/rpc/params-contract-log.d.mts +6 -0
  203. package/dist/autogen/types/rpc/params-create-asset-object.d.mts +10 -0
  204. package/dist/autogen/types/rpc/params-create-contract.d.mts +14 -0
  205. package/dist/autogen/types/rpc/params-create-node.d.mts +4 -0
  206. package/dist/autogen/types/rpc/params-create-synth-account.d.mts +8 -0
  207. package/dist/autogen/types/rpc/params-create-token.d.mts +7 -0
  208. package/dist/autogen/types/rpc/params-create-vme.d.mts +8 -0
  209. package/dist/autogen/types/rpc/params-download-account-txs.d.mts +6 -0
  210. package/dist/autogen/types/rpc/params-find-duplicate-subscriber.d.mts +3 -0
  211. package/dist/autogen/types/rpc/params-game-chain-cmd.d.mts +5 -0
  212. package/dist/autogen/types/rpc/params-generate-latest-stored-data-proof.d.mts +4 -0
  213. package/dist/autogen/types/rpc/params-get-asset-list.d.mts +4 -0
  214. package/dist/autogen/types/rpc/params-get-asset-objects.d.mts +4 -0
  215. package/dist/autogen/types/rpc/params-get-home-shard.d.mts +3 -0
  216. package/dist/autogen/types/rpc/params-get-identity-proof.d.mts +4 -0
  217. package/dist/autogen/types/rpc/params-get-import-account.d.mts +3 -0
  218. package/dist/autogen/types/rpc/params-import-account.d.mts +7 -0
  219. package/dist/autogen/types/rpc/params-init-reliable-nodes.d.mts +5 -0
  220. package/dist/autogen/types/rpc/params-latest-stored-data-proof.d.mts +4 -0
  221. package/dist/autogen/types/rpc/params-lock-stake.d.mts +7 -0
  222. package/dist/autogen/types/rpc/params-open-account.d.mts +11 -0
  223. package/dist/autogen/types/rpc/params-post-data-to-synth-account.d.mts +11 -0
  224. package/dist/autogen/types/rpc/params-provide-script.d.mts +14 -0
  225. package/dist/autogen/types/rpc/params-query-address.d.mts +3 -0
  226. package/dist/autogen/types/rpc/params-read-tx-list.d.mts +5 -0
  227. package/dist/autogen/types/rpc/params-remove-hold-txs.d.mts +5 -0
  228. package/dist/autogen/types/rpc/params-request-data-trade.d.mts +10 -0
  229. package/dist/autogen/types/rpc/params-request-vme.d.mts +4 -0
  230. package/dist/autogen/types/rpc/params-round-list.d.mts +4 -0
  231. package/dist/autogen/types/rpc/params-round.d.mts +3 -0
  232. package/dist/autogen/types/rpc/params-rs.d.mts +4 -0
  233. package/dist/autogen/types/rpc/params-send-raw-transaction.d.mts +4 -0
  234. package/dist/autogen/types/rpc/params-set-host.d.mts +4 -0
  235. package/dist/autogen/types/rpc/params-set-import-account-tx.d.mts +5 -0
  236. package/dist/autogen/types/rpc/params-set-reliable-node.d.mts +4 -0
  237. package/dist/autogen/types/rpc/params-subscribe-address.d.mts +4 -0
  238. package/dist/autogen/types/rpc/params-transfer-asset-object.d.mts +9 -0
  239. package/dist/autogen/types/rpc/params-transfer-coin-express.d.mts +7 -0
  240. package/dist/autogen/types/rpc/params-transfer-coin.d.mts +8 -0
  241. package/dist/autogen/types/rpc/params-transfer-tokens.d.mts +14 -0
  242. package/dist/autogen/types/rpc/params-tx-list-witness.d.mts +6 -0
  243. package/dist/autogen/types/rpc/params-tx-list.d.mts +5 -0
  244. package/dist/autogen/types/rpc/params-unlock-stake.d.mts +7 -0
  245. package/dist/autogen/types/rpc/params-upload-account-txs.d.mts +5 -0
  246. package/dist/autogen/types/rpc/params-verify-and-sign-challenge.d.mts +8 -0
  247. package/dist/autogen/types/rpc/params-verify-identity-proof.d.mts +6 -0
  248. package/dist/autogen/types/rpc/result-dump-accounts.d.mts +4 -0
  249. package/dist/autogen/types/rpc/rpc-bool-result.d.mts +3 -0
  250. package/dist/autogen/types/rpc/rpc-calculate-spent-by-express-result.d.mts +3 -0
  251. package/dist/autogen/types/rpc/rpc-create-account-result.d.mts +7 -0
  252. package/dist/autogen/types/rpc/rpc-create-node-result.d.mts +5 -0
  253. package/dist/autogen/types/rpc/rpc-create-tx-result.d.mts +7 -0
  254. package/dist/autogen/types/rpc/rpc-find-duplicate-subscriber-result.d.mts +3 -0
  255. package/dist/autogen/types/rpc/rpc-game-chain-cmd-result.d.mts +3 -0
  256. package/dist/autogen/types/rpc/rpc-generate-latest-stored-data-proof-result.d.mts +4 -0
  257. package/dist/autogen/types/rpc/rpc-get-account-asset-list-result.d.mts +4 -0
  258. package/dist/autogen/types/rpc/rpc-get-account-asset-object-result.d.mts +5 -0
  259. package/dist/autogen/types/rpc/rpc-get-account-detail-result.d.mts +10 -0
  260. package/dist/autogen/types/rpc/rpc-get-account-history-result.d.mts +3 -0
  261. package/dist/autogen/types/rpc/rpc-get-account-token-list-result.d.mts +6 -0
  262. package/dist/autogen/types/rpc/rpc-get-accounts-balances-result.d.mts +3 -0
  263. package/dist/autogen/types/rpc/rpc-get-accounts-heights-result.d.mts +3 -0
  264. package/dist/autogen/types/rpc/rpc-get-concise-node-status-result.d.mts +18 -0
  265. package/dist/autogen/types/rpc/rpc-get-contract-log-result.d.mts +3 -0
  266. package/dist/autogen/types/rpc/rpc-get-genesis-account-result.d.mts +3 -0
  267. package/dist/autogen/types/rpc/rpc-get-guests-info-result.d.mts +3 -0
  268. package/dist/autogen/types/rpc/rpc-get-home-shard-result.d.mts +3 -0
  269. package/dist/autogen/types/rpc/rpc-get-identity-proof-result.d.mts +6 -0
  270. package/dist/autogen/types/rpc/rpc-get-import-account-result.d.mts +10 -0
  271. package/dist/autogen/types/rpc/rpc-get-inactive-tx-list-result.d.mts +14 -0
  272. package/dist/autogen/types/rpc/rpc-get-keys-result.d.mts +7 -0
  273. package/dist/autogen/types/rpc/rpc-get-mont-info-list-result.d.mts +5 -0
  274. package/dist/autogen/types/rpc/rpc-get-node-blocks-result.d.mts +3 -0
  275. package/dist/autogen/types/rpc/rpc-get-node-status-result.d.mts +28 -0
  276. package/dist/autogen/types/rpc/rpc-get-shard-of-account-result.d.mts +4 -0
  277. package/dist/autogen/types/rpc/rpc-get-sync-state-result.d.mts +3 -0
  278. package/dist/autogen/types/rpc/rpc-get-tx-result.d.mts +3 -0
  279. package/dist/autogen/types/rpc/rpc-get-world-round-state-result.d.mts +13 -0
  280. package/dist/autogen/types/rpc/rpc-get-world-round-states-list-result.d.mts +3 -0
  281. package/dist/autogen/types/rpc/rpc-has-system-token-result.d.mts +4 -0
  282. package/dist/autogen/types/rpc/rpc-import-account-result.d.mts +3 -0
  283. package/dist/autogen/types/rpc/rpc-node-cmd-result.d.mts +5 -0
  284. package/dist/autogen/types/rpc/rpc-query-address-result.d.mts +3 -0
  285. package/dist/autogen/types/rpc/rpc-read-tx-list-witness-result.d.mts +6 -0
  286. package/dist/autogen/types/rpc/rpc-request-vme-result.d.mts +3 -0
  287. package/dist/autogen/types/rpc/rpc-send-raw-transaction-result.d.mts +1 -0
  288. package/dist/autogen/types/rpc/rpc-set-import-account-tx-result.d.mts +5 -0
  289. package/dist/autogen/types/rpc/rpc-subscribe-address-result.d.mts +1 -0
  290. package/dist/autogen/types/rpc/rpc-verify-and-sign-challenge-result.d.mts +8 -0
  291. package/dist/autogen/types/rpc/rpc-verify-identity-proof-result.d.mts +4 -0
  292. package/dist/autogen/types/rpc/rpc-view-contract-result.d.mts +3 -0
  293. package/dist/autogen/types/rpc/upload-heights-result.d.mts +6 -0
  294. package/dist/autogen/types/tx/index.d.mts +50 -0
  295. package/dist/autogen/types/tx/tx-accept-script-after-time-lock.d.mts +12 -0
  296. package/dist/autogen/types/tx/tx-accept-script.d.mts +15 -0
  297. package/dist/autogen/types/tx/tx-activate-all-assets.d.mts +15 -0
  298. package/dist/autogen/types/tx/tx-activate-asset-object.d.mts +9 -0
  299. package/dist/autogen/types/tx/tx-activate-call-contract.d.mts +15 -0
  300. package/dist/autogen/types/tx/tx-activate-coin.d.mts +9 -0
  301. package/dist/autogen/types/tx/tx-activate-contract-result.d.mts +18 -0
  302. package/dist/autogen/types/tx/tx-activate-contract-reward.d.mts +8 -0
  303. package/dist/autogen/types/tx/tx-activate-contract-transfer.d.mts +15 -0
  304. package/dist/autogen/types/tx/tx-activate-data-synth-account.d.mts +12 -0
  305. package/dist/autogen/types/tx/tx-activate-foundation-reserve.d.mts +7 -0
  306. package/dist/autogen/types/tx/tx-activate-incentive.d.mts +11 -0
  307. package/dist/autogen/types/tx/tx-activate-lock-stake-for-vme.d.mts +9 -0
  308. package/dist/autogen/types/tx/tx-activate-open-contract.d.mts +15 -0
  309. package/dist/autogen/types/tx/tx-activate-open-synth-account.d.mts +9 -0
  310. package/dist/autogen/types/tx/tx-activate-open-vm-engine.d.mts +11 -0
  311. package/dist/autogen/types/tx/tx-activate-token.d.mts +12 -0
  312. package/dist/autogen/types/tx/tx-become-guest.d.mts +10 -0
  313. package/dist/autogen/types/tx/tx-become-host.d.mts +7 -0
  314. package/dist/autogen/types/tx/tx-burn-asset-object.d.mts +8 -0
  315. package/dist/autogen/types/tx/tx-burn-token.d.mts +10 -0
  316. package/dist/autogen/types/tx/tx-call-contract.d.mts +16 -0
  317. package/dist/autogen/types/tx/tx-change-foundation-account.d.mts +6 -0
  318. package/dist/autogen/types/tx/tx-change-keypair.d.mts +10 -0
  319. package/dist/autogen/types/tx/tx-change-vkey.d.mts +6 -0
  320. package/dist/autogen/types/tx/tx-close-account.d.mts +12 -0
  321. package/dist/autogen/types/tx/tx-contract-blank-reward.d.mts +5 -0
  322. package/dist/autogen/types/tx/tx-contract-transfer-reward.d.mts +8 -0
  323. package/dist/autogen/types/tx/tx-create-asset-object.d.mts +10 -0
  324. package/dist/autogen/types/tx/tx-create-contract.d.mts +17 -0
  325. package/dist/autogen/types/tx/tx-create-synth-account.d.mts +7 -0
  326. package/dist/autogen/types/tx/tx-create-token.d.mts +10 -0
  327. package/dist/autogen/types/tx/tx-create-vm-engine.d.mts +8 -0
  328. package/dist/autogen/types/tx/tx-dummy.d.mts +3 -0
  329. package/dist/autogen/types/tx/tx-finalize.d.mts +6 -0
  330. package/dist/autogen/types/tx/tx-freeze-account.d.mts +5 -0
  331. package/dist/autogen/types/tx/tx-genesis-account.d.mts +11 -0
  332. package/dist/autogen/types/tx/tx-lead-vtx.d.mts +9 -0
  333. package/dist/autogen/types/tx/tx-lock-stake-for-vme.d.mts +7 -0
  334. package/dist/autogen/types/tx/tx-open-account.d.mts +18 -0
  335. package/dist/autogen/types/tx/tx-post-data-synth-account.d.mts +9 -0
  336. package/dist/autogen/types/tx/tx-post-data.d.mts +11 -0
  337. package/dist/autogen/types/tx/tx-provide-script.d.mts +16 -0
  338. package/dist/autogen/types/tx/tx-revoke.d.mts +16 -0
  339. package/dist/autogen/types/tx/tx-transfer-asset-object.d.mts +8 -0
  340. package/dist/autogen/types/tx/tx-transfer-coin-express.d.mts +8 -0
  341. package/dist/autogen/types/tx/tx-transfer-coin.d.mts +7 -0
  342. package/dist/autogen/types/tx/tx-transfer-token.d.mts +11 -0
  343. package/dist/autogen/types/tx/tx-unlock-stake.d.mts +7 -0
  344. package/dist/autogen/types/tx/tx-vm-engine-block.d.mts +6 -0
  345. package/dist/autogen/types/wasm/grant-consume-result.d.mts +4 -0
  346. package/dist/autogen/types/wasm/index.d.mts +26 -0
  347. package/dist/autogen/types/wasm/library-versions.d.mts +6 -0
  348. package/dist/autogen/types/wasm/param-calculate-tx-link-hash.d.mts +3 -0
  349. package/dist/autogen/types/wasm/param-code-core-script.d.mts +3 -0
  350. package/dist/autogen/types/wasm/param-convert-currency.d.mts +5 -0
  351. package/dist/autogen/types/wasm/param-create-account-and-keystore.d.mts +6 -0
  352. package/dist/autogen/types/wasm/param-create-master-keystore.d.mts +6 -0
  353. package/dist/autogen/types/wasm/param-create-normal-key.d.mts +4 -0
  354. package/dist/autogen/types/wasm/param-create-normal-keystore.d.mts +8 -0
  355. package/dist/autogen/types/wasm/param-derive-keys-from-mnemonic-and-path.d.mts +4 -0
  356. package/dist/autogen/types/wasm/param-derive-keys-from-mnemonic.d.mts +6 -0
  357. package/dist/autogen/types/wasm/param-encode-tx-currency.d.mts +3 -0
  358. package/dist/autogen/types/wasm/param-encode-tx-number.d.mts +4 -0
  359. package/dist/autogen/types/wasm/param-generate-mnemonic-by-seed.d.mts +3 -0
  360. package/dist/autogen/types/wasm/param-generate-mnemonic.d.mts +3 -0
  361. package/dist/autogen/types/wasm/param-get-home-shard.d.mts +4 -0
  362. package/dist/autogen/types/wasm/param-hash.d.mts +4 -0
  363. package/dist/autogen/types/wasm/param-load-keystore.d.mts +4 -0
  364. package/dist/autogen/types/wasm/param-make-currency.d.mts +4 -0
  365. package/dist/autogen/types/wasm/param-sign-by-master-key.d.mts +4 -0
  366. package/dist/autogen/types/wasm/param-sign-key-bind.d.mts +5 -0
  367. package/dist/autogen/types/wasm/param-sign.d.mts +4 -0
  368. package/dist/autogen/types/wasm/param-test-core-script.d.mts +7 -0
  369. package/dist/autogen/types/wasm/param-txs.d.mts +3 -0
  370. package/dist/autogen/types/wasm/param-verify-merkle-proof.d.mts +5 -0
  371. package/dist/autogen/types/wasm/param-verify.d.mts +5 -0
  372. package/dist/autogen/walletActions.d.mts +41 -0
  373. package/dist/autogen/wasm/crypto_aimer.d.mts +2 -0
  374. package/dist/autogen/wasm/crypto_haetae.d.mts +2 -0
  375. package/dist/autogen/wasm/crypto_smaugt.d.mts +2 -0
  376. package/dist/autogen/wasm/lclib.wasm +0 -0
  377. package/dist/autogen/wasm.d.mts +72 -0
  378. package/dist/chunks/account-BAsiKnSL.cjs +77 -0
  379. package/dist/chunks/account-BSrvZ7S8.js +77 -0
  380. package/dist/chunks/account-FZT9LH_s.js +71 -0
  381. package/dist/chunks/address-class-CHAZYhdZ.js +14 -0
  382. package/dist/chunks/address-class-Cjy48Uqk.cjs +16 -0
  383. package/dist/chunks/address-class-Dp7aNQb2.js +18 -0
  384. package/dist/chunks/base-BQXfRsuw.js +23 -0
  385. package/dist/chunks/base-B_kRRfsf.js +27 -0
  386. package/dist/chunks/base-Cy5SSYLF.cjs +25 -0
  387. package/dist/chunks/debugWalletActions-6qjkZVq9.cjs +995 -0
  388. package/dist/chunks/debugWalletActions-BDz-h2tl.js +993 -0
  389. package/dist/chunks/debugWalletActions-D5-Ds7Hl.js +900 -0
  390. package/dist/chunks/keystore-BJ3vekCS.js +139 -0
  391. package/dist/chunks/keystore-C0RhMFsU.js +143 -0
  392. package/dist/chunks/keystore-D-5mV7aC.cjs +145 -0
  393. package/dist/chunks/lclib-B8Aj_otR.cjs +3809 -0
  394. package/dist/chunks/lclib-CAHiuFux.js +3825 -0
  395. package/dist/chunks/lclib-DZydGzkN.js +3805 -0
  396. package/dist/chunks/rpc-BlPk44QH.js +22 -0
  397. package/dist/chunks/rpc-C4n7t9y0.js +25 -0
  398. package/dist/chunks/rpc-DwWIkUva.cjs +25 -0
  399. package/dist/chunks/transport-BBAz1kmP.js +30 -0
  400. package/dist/chunks/transport-VThNtzck.cjs +30 -0
  401. package/dist/chunks/transport-ktAPuqsc.js +26 -0
  402. package/dist/chunks/tslib.es6-Cfi3-HmA.cjs +35 -0
  403. package/dist/chunks/tslib.es6-D29rxPkW.js +37 -0
  404. package/dist/chunks/tslib.es6-WQS2tr1v.js +33 -0
  405. package/dist/chunks/tx-type-BPkhMGad.js +64 -0
  406. package/dist/chunks/tx-type-CS4wIUJ8.js +68 -0
  407. package/dist/chunks/tx-type-DI_nKG8B.cjs +66 -0
  408. package/dist/chunks/wasm-3LmqFB_i.js +166 -0
  409. package/dist/chunks/wasm-CdEv1Pyn.cjs +213 -0
  410. package/dist/chunks/wasm-DAQaaEGK.js +213 -0
  411. package/dist/clients/createClient.d.mts +8 -0
  412. package/dist/clients/createLocusPublicClient.d.mts +100 -0
  413. package/dist/clients/createLocusWalletClient.d.mts +56 -0
  414. package/dist/clients/createPublicClient.d.mts +6 -0
  415. package/dist/clients/createWalletClient.d.mts +8 -0
  416. package/dist/clients/index.amd.js +97 -0
  417. package/dist/clients/index.cjs.cjs +104 -0
  418. package/dist/clients/index.d.cts +6 -0
  419. package/dist/clients/index.d.mts +6 -0
  420. package/dist/clients/index.esm.js +98 -0
  421. package/dist/clients/types.d.mts +19 -0
  422. package/dist/constant/index.amd.js +458 -0
  423. package/dist/constant/index.cjs.cjs +459 -0
  424. package/dist/constant/index.d.cts +513 -0
  425. package/dist/constant/index.d.mts +513 -0
  426. package/dist/constant/index.esm.js +451 -0
  427. package/dist/contracts/abis/erc20.d.mts +174 -0
  428. package/dist/contracts/abis/index.d.mts +1 -0
  429. package/dist/contracts/getContract.d.mts +33 -0
  430. package/dist/contracts/index.amd.js +19640 -0
  431. package/dist/contracts/index.cjs.cjs +19642 -0
  432. package/dist/contracts/index.d.cts +2 -0
  433. package/dist/contracts/index.d.mts +2 -0
  434. package/dist/contracts/index.esm.js +19639 -0
  435. package/dist/errors/account.d.mts +45 -0
  436. package/dist/errors/base.d.mts +13 -0
  437. package/dist/errors/index.amd.js +17 -0
  438. package/dist/errors/index.cjs.cjs +20 -0
  439. package/dist/errors/index.d.cts +4 -0
  440. package/dist/errors/index.d.mts +4 -0
  441. package/dist/errors/index.esm.js +4 -0
  442. package/dist/errors/rpc.d.mts +21 -0
  443. package/dist/errors/transport.d.mts +21 -0
  444. package/dist/index.amd.js +43 -0
  445. package/dist/index.cjs.cjs +58 -0
  446. package/dist/index.d.mts +8 -0
  447. package/dist/index.esm.js +16 -0
  448. package/dist/transports/http.d.mts +9 -0
  449. package/dist/transports/index.amd.js +98 -0
  450. package/dist/transports/index.cjs.cjs +101 -0
  451. package/dist/transports/index.d.cts +2 -0
  452. package/dist/transports/index.d.mts +2 -0
  453. package/dist/transports/index.esm.js +99 -0
  454. package/dist/transports/types.d.mts +36 -0
  455. package/dist/types/index.d.cts +11 -0
  456. package/dist/types/index.d.mts +11 -0
  457. package/dist/types/primitives.d.mts +5 -0
  458. package/dist/utils/index.amd.js +323 -0
  459. package/dist/utils/index.cjs.cjs +330 -0
  460. package/dist/utils/index.d.cts +41 -0
  461. package/dist/utils/index.d.mts +41 -0
  462. package/dist/utils/index.esm.js +271 -0
  463. package/dist/utils/keystore.d.mts +87 -0
  464. package/dist/utils/lclib.d.mts +2 -0
  465. package/dist/utils/locus-wasm-bridge.d.mts +1 -0
  466. package/dist/utils/tx-validator.d.mts +26 -0
  467. package/dist/utils/types.d.mts +15 -0
  468. package/dist/utils/wasm-fetch.d.mts +6 -0
  469. package/package.json +1 -1
@@ -0,0 +1,900 @@
1
+ import { _ as __awaiter } from './tslib.es6-WQS2tr1v.js';
2
+ import { R as RpcRequestError } from './rpc-BlPk44QH.js';
3
+ import { I as InvalidTxResultError, A as AccountRequiredError } from './account-FZT9LH_s.js';
4
+
5
+ // Automatically generated file. DO NOT EDIT.
6
+ function accountHeightsToDownload(client, param) {
7
+ return __awaiter(this, void 0, void 0, function* () {
8
+ return client.request({ method: 'locus_accountHeightsToDownload', params: [param] });
9
+ });
10
+ }
11
+
12
+ // Automatically generated file. DO NOT EDIT.
13
+ function accountHeightsToUpload(client, param) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return client.request({ method: 'locus_accountHeightsToUpload', params: [param] });
16
+ });
17
+ }
18
+
19
+ // Automatically generated file. DO NOT EDIT.
20
+ function calculateSpentByExpress(client, param) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return client.request({ method: 'locus_calculateSpentByExpress', params: [param] });
23
+ });
24
+ }
25
+
26
+ // Automatically generated file. DO NOT EDIT.
27
+ function clientMessage(client, param) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ return client.request({ method: 'locus_clientMessage', params: [param] });
30
+ });
31
+ }
32
+
33
+ // Automatically generated file. DO NOT EDIT.
34
+ function downloadAccountTxs(client, param) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return client.request({ method: 'locus_downloadAccountTxs', params: [param] });
37
+ });
38
+ }
39
+
40
+ // Automatically generated file. DO NOT EDIT.
41
+ function echo$1(client, str) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ return client.request({ method: 'locus_echo', params: [str] });
44
+ });
45
+ }
46
+
47
+ // Automatically generated file. DO NOT EDIT.
48
+ function findDuplicateSubscriber(client, params) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ return client.request({ method: 'locus_findDuplicateSubscriber', params: [params] });
51
+ });
52
+ }
53
+
54
+ // Automatically generated file. DO NOT EDIT.
55
+ function generateLatestStoredDataProof(client, params) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ return client.request({ method: 'locus_generateLatestStoredDataProof', params: [params] });
58
+ });
59
+ }
60
+
61
+ // Automatically generated file. DO NOT EDIT.
62
+ function getAccountAssetList(client, params) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ return client.request({ method: 'locus_getAccountAssetList', params: [params] });
65
+ });
66
+ }
67
+
68
+ // Automatically generated file. DO NOT EDIT.
69
+ function getAccountAssetObject(client, params) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ return client.request({ method: 'locus_getAccountAssetObject', params: [params] });
72
+ });
73
+ }
74
+
75
+ // Automatically generated file. DO NOT EDIT.
76
+ function getAccountDetail(client, param) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ return client.request({ method: 'locus_getAccountDetail', params: [param] });
79
+ });
80
+ }
81
+
82
+ // Automatically generated file. DO NOT EDIT.
83
+ function getAccountHistory(client, param) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ return client.request({ method: 'locus_getAccountHistory', params: [param] });
86
+ });
87
+ }
88
+
89
+ // Automatically generated file. DO NOT EDIT.
90
+ function getAccountTokenList(client, params) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ return client.request({ method: 'locus_getAccountTokenList', params: [params] });
93
+ });
94
+ }
95
+
96
+ // Automatically generated file. DO NOT EDIT.
97
+ function getConciseNodeStatus(client) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ return client.request({ method: 'locus_getConciseNodeStatus', params: [] });
100
+ });
101
+ }
102
+
103
+ // Automatically generated file. DO NOT EDIT.
104
+ function getGenesisAccount(client) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ return client.request({ method: 'locus_getGenesisAccount', params: [] });
107
+ });
108
+ }
109
+
110
+ // Automatically generated file. DO NOT EDIT.
111
+ function getIdentityProof(client, param) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ return client.request({ method: 'locus_getIdentityProof', params: [param] });
114
+ });
115
+ }
116
+
117
+ // Automatically generated file. DO NOT EDIT.
118
+ function getInactiveTxList(client, param) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ return client.request({ method: 'locus_getInactiveTxList', params: [param] });
121
+ });
122
+ }
123
+
124
+ // Automatically generated file. DO NOT EDIT.
125
+ function getMontInfoList(client, param) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ return client.request({ method: 'locus_getMontInfoList', params: [param] });
128
+ });
129
+ }
130
+
131
+ // Automatically generated file. DO NOT EDIT.
132
+ function getNodeStatus(client) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ return client.request({ method: 'locus_getNodeStatus', params: [] });
135
+ });
136
+ }
137
+
138
+ // Automatically generated file. DO NOT EDIT.
139
+ function getOwnerBalance(client) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ return client.request({ method: 'locus_getOwnerBalance', params: [] });
142
+ });
143
+ }
144
+
145
+ // Automatically generated file. DO NOT EDIT.
146
+ function getRoundState(client, param) {
147
+ return __awaiter(this, void 0, void 0, function* () {
148
+ return client.request({ method: 'locus_getRoundState', params: [param] });
149
+ });
150
+ }
151
+
152
+ // Automatically generated file. DO NOT EDIT.
153
+ function getRoundStatesList(client, param) {
154
+ return __awaiter(this, void 0, void 0, function* () {
155
+ return client.request({ method: 'locus_getRoundStatesList', params: [param] });
156
+ });
157
+ }
158
+
159
+ // Automatically generated file. DO NOT EDIT.
160
+ function getShardOfAccount(client, params) {
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ return client.request({ method: 'locus_getShardOfAccount', params: [params] });
163
+ });
164
+ }
165
+
166
+ // Automatically generated file. DO NOT EDIT.
167
+ function getSyncState(client) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ return client.request({ method: 'locus_getSyncState', params: [] });
170
+ });
171
+ }
172
+
173
+ // Automatically generated file. DO NOT EDIT.
174
+ function getTx(client, param) {
175
+ return __awaiter(this, void 0, void 0, function* () {
176
+ return client.request({ method: 'locus_getTx', params: [param] });
177
+ });
178
+ }
179
+
180
+ // Automatically generated file. DO NOT EDIT.
181
+ function getWorldRoundState(client, param) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ return client.request({ method: 'locus_getWorldRoundState', params: [param] });
184
+ });
185
+ }
186
+
187
+ // Automatically generated file. DO NOT EDIT.
188
+ function getWorldRoundStatesList(client, param) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ return client.request({ method: 'locus_getWorldRoundStatesList', params: [param] });
191
+ });
192
+ }
193
+
194
+ // Automatically generated file. DO NOT EDIT.
195
+ function hasSystemToken(client, params) {
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ return client.request({ method: 'locus_hasSystemToken', params: [params] });
198
+ });
199
+ }
200
+
201
+ // Automatically generated file. DO NOT EDIT.
202
+ function makeTxProof(client, params) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ return client.request({ method: 'locus_makeTxProof', params: [params] });
205
+ });
206
+ }
207
+
208
+ // Automatically generated file. DO NOT EDIT.
209
+ function queryAddress(client, params) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ return client.request({ method: 'locus_queryAddress', params: [params] });
212
+ });
213
+ }
214
+
215
+ // Automatically generated file. DO NOT EDIT.
216
+ function readTxListWitness(client, params) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ return client.request({ method: 'locus_readTxListWitness', params: [params] });
219
+ });
220
+ }
221
+
222
+ // Automatically generated file. DO NOT EDIT.
223
+ function setHost(client, param) {
224
+ return __awaiter(this, void 0, void 0, function* () {
225
+ return client.request({ method: 'locus_setHost', params: [param] });
226
+ });
227
+ }
228
+
229
+ // Automatically generated file. DO NOT EDIT.
230
+ function subscribeAddress(client, params) {
231
+ return __awaiter(this, void 0, void 0, function* () {
232
+ return client.request({ method: 'locus_subscribeAddress', params: [params] });
233
+ });
234
+ }
235
+
236
+ // Automatically generated file. DO NOT EDIT.
237
+ function uploadAccountTxs(client, param) {
238
+ return __awaiter(this, void 0, void 0, function* () {
239
+ return client.request({ method: 'locus_uploadAccountTxs', params: [param] });
240
+ });
241
+ }
242
+
243
+ // Automatically generated file. DO NOT EDIT.
244
+ function verifyAndSignChallenge(client, param) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ return client.request({ method: 'locus_verifyAndSignChallenge', params: [param] });
247
+ });
248
+ }
249
+
250
+ // Automatically generated file. DO NOT EDIT.
251
+ function verifyIdentityProof(client, param) {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ return client.request({ method: 'locus_verifyIdentityProof', params: [param] });
254
+ });
255
+ }
256
+
257
+ // Automatically generated file. DO NOT EDIT.
258
+ function verifyLatestStoredDataProof(client, params) {
259
+ return __awaiter(this, void 0, void 0, function* () {
260
+ return client.request({ method: 'locus_verifyLatestStoredDataProof', params: [params] });
261
+ });
262
+ }
263
+
264
+ // Automatically generated file. DO NOT EDIT.
265
+ function verifyTxListWitness(client, params) {
266
+ return __awaiter(this, void 0, void 0, function* () {
267
+ return client.request({ method: 'locus_verifyTxListWitness', params: [params] });
268
+ });
269
+ }
270
+
271
+ // Automatically generated file. DO NOT EDIT.
272
+ const publicActions = (client) => ({
273
+ accountHeightsToDownload: (param) => accountHeightsToDownload(client, param),
274
+ accountHeightsToUpload: (param) => accountHeightsToUpload(client, param),
275
+ calculateSpentByExpress: (param) => calculateSpentByExpress(client, param),
276
+ clientMessage: (param) => clientMessage(client, param),
277
+ downloadAccountTxs: (param) => downloadAccountTxs(client, param),
278
+ echo: (str) => echo$1(client, str),
279
+ findDuplicateSubscriber: (params) => findDuplicateSubscriber(client, params),
280
+ generateLatestStoredDataProof: (params) => generateLatestStoredDataProof(client, params),
281
+ getAccountAssetList: (params) => getAccountAssetList(client, params),
282
+ getAccountAssetObject: (params) => getAccountAssetObject(client, params),
283
+ getAccountDetail: (param) => getAccountDetail(client, param),
284
+ getAccountHistory: (param) => getAccountHistory(client, param),
285
+ getAccountTokenList: (params) => getAccountTokenList(client, params),
286
+ getConciseNodeStatus: () => getConciseNodeStatus(client),
287
+ getGenesisAccount: () => getGenesisAccount(client),
288
+ getIdentityProof: (param) => getIdentityProof(client, param),
289
+ getInactiveTxList: (param) => getInactiveTxList(client, param),
290
+ getMontInfoList: (param) => getMontInfoList(client, param),
291
+ getNodeStatus: () => getNodeStatus(client),
292
+ getOwnerBalance: () => getOwnerBalance(client),
293
+ getRoundState: (param) => getRoundState(client, param),
294
+ getRoundStatesList: (param) => getRoundStatesList(client, param),
295
+ getShardOfAccount: (params) => getShardOfAccount(client, params),
296
+ getSyncState: () => getSyncState(client),
297
+ getTx: (param) => getTx(client, param),
298
+ getWorldRoundState: (param) => getWorldRoundState(client, param),
299
+ getWorldRoundStatesList: (param) => getWorldRoundStatesList(client, param),
300
+ hasSystemToken: (params) => hasSystemToken(client, params),
301
+ makeTxProof: (params) => makeTxProof(client, params),
302
+ queryAddress: (params) => queryAddress(client, params),
303
+ readTxListWitness: (params) => readTxListWitness(client, params),
304
+ setHost: (param) => setHost(client, param),
305
+ subscribeAddress: (params) => subscribeAddress(client, params),
306
+ uploadAccountTxs: (param) => uploadAccountTxs(client, param),
307
+ verifyAndSignChallenge: (param) => verifyAndSignChallenge(client, param),
308
+ verifyIdentityProof: (param) => verifyIdentityProof(client, param),
309
+ verifyLatestStoredDataProof: (params) => verifyLatestStoredDataProof(client, params),
310
+ verifyTxListWitness: (params) => verifyTxListWitness(client, params),
311
+ });
312
+
313
+ /**
314
+ * Locus TX 2-step 흐름의 1 단계.
315
+ *
316
+ * TX_CREATION RPC 를 호출자 params 로 호출하고, 응답이 `hash` 와 `tx` 를
317
+ * 모두 포함하는지 (즉 일반 read 응답이 아니라 진짜 prepare 결과인지)
318
+ * 검증한다. _signLocusTransaction 과 _sendPreparedTransaction 이 소비할
319
+ * envelope 를 반환한다.
320
+ *
321
+ * 클라이언트가 `prepareParams` 를 제공하는 DualKeyAccount 에 바인드되어
322
+ * 있으면 params 는 그 훅을 먼저 거친다. OPEN_ACCOUNT / CHANGE_KEYPAIR 가
323
+ * 노드 검증 전에 master 가 증명한 key-bind 서명을 채우는 경로가 이것.
324
+ */
325
+ function _prepareTransaction(client, args) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ var _a;
328
+ if (args.params.length === 0) {
329
+ throw new RpcRequestError(`prepareTransaction: 'params' must be a non-empty array`, { method: args.method });
330
+ }
331
+ const params = ((_a = client.account) === null || _a === void 0 ? void 0 : _a.prepareParams)
332
+ ? yield client.account.prepareParams({
333
+ method: args.method,
334
+ params: args.params,
335
+ })
336
+ : args.params;
337
+ const prepared = yield client.request({
338
+ method: args.method,
339
+ params,
340
+ });
341
+ if (!prepared ||
342
+ typeof prepared !== 'object' ||
343
+ !('hash' in prepared) ||
344
+ !('tx' in prepared)) {
345
+ throw new InvalidTxResultError(`prepareTransaction: invalid response shape from ${args.method} (expected { hash, tx, ... })`, { method: args.method, cause: prepared });
346
+ }
347
+ return { method: args.method, params, prepared };
348
+ });
349
+ }
350
+
351
+ /**
352
+ * prepared.tx 의 type 으로부터 submit RPC 호출 params[0] 에 echo 해야 할 부가
353
+ * 필드들을 추출한다.
354
+ *
355
+ * 노드는 prepare 단계에서 일부 필드를 직접 생성하거나 확정한 뒤 1차 응답의
356
+ * `tx` 안에 담아 돌려준다. 이어지는 submit 호출은 *동일 method* 를 다시
357
+ * 호출하기 때문에, 호출자가 보낸 params 에 이 값들을 다시 채워 넣지 않으면
358
+ * 노드 검증 단계에서 hash 불일치 또는 빈 필드로 실패한다.
359
+ *
360
+ * TX_CREATE_CONTRACT -> contractAccount = tx.target
361
+ * TX_CREATE_SA -> synthAccount = tx.target
362
+ * TX_CREATE_VME -> sysId = tx.sysId
363
+ * TX_CHANGE_VKEY -> newValidationPkey = tx.newKey
364
+ *
365
+ * prefix 매칭이라 `*_FEE` 변종 (TX_CREATE_CONTRACT_FEE 등) 도 같이 잡힌다.
366
+ */
367
+ function _deriveTxAdditions(prepared) {
368
+ const tx = prepared.tx;
369
+ const t = typeof (tx === null || tx === void 0 ? void 0 : tx.type) === 'string' ? tx.type : '';
370
+ if (!t)
371
+ return {};
372
+ if (t.startsWith('TX_CREATE_CONTRACT')) {
373
+ return { contractAccount: tx['target'] };
374
+ }
375
+ if (t.startsWith('TX_CREATE_SA')) {
376
+ return { synthAccount: tx['target'] };
377
+ }
378
+ if (t.startsWith('TX_CREATE_VME')) {
379
+ return { sysId: tx['sysId'] };
380
+ }
381
+ if (t.startsWith('TX_CHANGE_VKEY')) {
382
+ return { newValidationPkey: tx['newKey'] };
383
+ }
384
+ return {};
385
+ }
386
+
387
+ /**
388
+ * Locus TX 2-step 흐름의 2 단계.
389
+ *
390
+ * prepared envelope 를 account 에 넘기고, account 가 master / normal /
391
+ * signKeyBind 라우팅을 한 곳에서 수행한다 (accounts/account.mts 참고).
392
+ *
393
+ * 동시에 `_deriveTxAdditions` 로 prepared.tx 에서 echo 해야 할 TX-type 별
394
+ * 필드 (contractAccount / synthAccount / sysId / newValidationPkey) 를
395
+ * 추출해 sign 결과와 함께 submit 단계 (`_sendPreparedTransaction`) 의
396
+ * params[0] 머지 대상에 포함시킨다.
397
+ */
398
+ function _signLocusTransaction(account, envelope) {
399
+ return __awaiter(this, void 0, void 0, function* () {
400
+ if (!account)
401
+ throw new AccountRequiredError(envelope.method);
402
+ const signAdditions = yield account.signTransaction({ prepared: envelope.prepared });
403
+ const derived = _deriveTxAdditions(envelope.prepared);
404
+ return {
405
+ method: envelope.method,
406
+ params: envelope.params,
407
+ additions: Object.assign(Object.assign({}, derived), signAdditions),
408
+ };
409
+ });
410
+ }
411
+
412
+ /**
413
+ * Locus TX 2-step 흐름의 3 단계.
414
+ *
415
+ * sign 단계 결과를 params[0] 에 병합한 뒤 같은 RPC 메서드를 다시 호출한다.
416
+ * 노드는 이제 완성된 payload 를 받아 최종 결과를 반환한다.
417
+ */
418
+ function _sendPreparedTransaction(client, signed) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ const newParams = signed.params.map((p, idx) => idx === 0 && p && typeof p === 'object'
421
+ ? Object.assign(Object.assign({}, p), signed.additions) : p);
422
+ return client.request({ method: signed.method, params: newParams });
423
+ });
424
+ }
425
+
426
+ // Automatically generated file. DO NOT EDIT.
427
+ function acceptScript(client, params) {
428
+ return __awaiter(this, void 0, void 0, function* () {
429
+ const prepared = yield _prepareTransaction(client, { method: 'locus_acceptScript', params: [params] });
430
+ const signed = yield _signLocusTransaction(client.account, prepared);
431
+ return _sendPreparedTransaction(client, signed);
432
+ });
433
+ }
434
+
435
+ // Automatically generated file. DO NOT EDIT.
436
+ function becomeGuest(client, param) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ const prepared = yield _prepareTransaction(client, { method: 'locus_becomeGuest', params: [param] });
439
+ const signed = yield _signLocusTransaction(client.account, prepared);
440
+ return _sendPreparedTransaction(client, signed);
441
+ });
442
+ }
443
+
444
+ // Automatically generated file. DO NOT EDIT.
445
+ function becomeHost(client, param) {
446
+ return __awaiter(this, void 0, void 0, function* () {
447
+ const prepared = yield _prepareTransaction(client, { method: 'locus_becomeHost', params: [param] });
448
+ const signed = yield _signLocusTransaction(client.account, prepared);
449
+ return _sendPreparedTransaction(client, signed);
450
+ });
451
+ }
452
+
453
+ // Automatically generated file. DO NOT EDIT.
454
+ function changeKey(client, params) {
455
+ return __awaiter(this, void 0, void 0, function* () {
456
+ const prepared = yield _prepareTransaction(client, { method: 'locus_changeKey', params: [params] });
457
+ const signed = yield _signLocusTransaction(client.account, prepared);
458
+ return _sendPreparedTransaction(client, signed);
459
+ });
460
+ }
461
+
462
+ // Automatically generated file. DO NOT EDIT.
463
+ function changeVkey(client, params) {
464
+ return __awaiter(this, void 0, void 0, function* () {
465
+ const prepared = yield _prepareTransaction(client, { method: 'locus_changeVkey', params: [params] });
466
+ const signed = yield _signLocusTransaction(client.account, prepared);
467
+ return _sendPreparedTransaction(client, signed);
468
+ });
469
+ }
470
+
471
+ // Automatically generated file. DO NOT EDIT.
472
+ function closeAccount(client, param) {
473
+ return __awaiter(this, void 0, void 0, function* () {
474
+ const prepared = yield _prepareTransaction(client, { method: 'locus_closeAccount', params: [param] });
475
+ const signed = yield _signLocusTransaction(client.account, prepared);
476
+ return _sendPreparedTransaction(client, signed);
477
+ });
478
+ }
479
+
480
+ // Automatically generated file. DO NOT EDIT.
481
+ function createAssetObject(client, param) {
482
+ return __awaiter(this, void 0, void 0, function* () {
483
+ const prepared = yield _prepareTransaction(client, { method: 'locus_createAssetObject', params: [param] });
484
+ const signed = yield _signLocusTransaction(client.account, prepared);
485
+ return _sendPreparedTransaction(client, signed);
486
+ });
487
+ }
488
+
489
+ // Automatically generated file. DO NOT EDIT.
490
+ function createToken(client, param) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const prepared = yield _prepareTransaction(client, { method: 'locus_createToken', params: [param] });
493
+ const signed = yield _signLocusTransaction(client.account, prepared);
494
+ return _sendPreparedTransaction(client, signed);
495
+ });
496
+ }
497
+
498
+ // Automatically generated file. DO NOT EDIT.
499
+ function createVme(client, param) {
500
+ return __awaiter(this, void 0, void 0, function* () {
501
+ const prepared = yield _prepareTransaction(client, { method: 'locus_createVme', params: [param] });
502
+ const signed = yield _signLocusTransaction(client.account, prepared);
503
+ return _sendPreparedTransaction(client, signed);
504
+ });
505
+ }
506
+
507
+ // Automatically generated file. DO NOT EDIT.
508
+ function lockStake(client, params) {
509
+ return __awaiter(this, void 0, void 0, function* () {
510
+ const prepared = yield _prepareTransaction(client, { method: 'locus_lockStake', params: [params] });
511
+ const signed = yield _signLocusTransaction(client.account, prepared);
512
+ return _sendPreparedTransaction(client, signed);
513
+ });
514
+ }
515
+
516
+ // Automatically generated file. DO NOT EDIT.
517
+ function openAccount(client, param) {
518
+ return __awaiter(this, void 0, void 0, function* () {
519
+ const prepared = yield _prepareTransaction(client, { method: 'locus_openAccount', params: [param] });
520
+ const signed = yield _signLocusTransaction(client.account, prepared);
521
+ return _sendPreparedTransaction(client, signed);
522
+ });
523
+ }
524
+
525
+ // Automatically generated file. DO NOT EDIT.
526
+ function postData(client, params) {
527
+ return __awaiter(this, void 0, void 0, function* () {
528
+ const prepared = yield _prepareTransaction(client, { method: 'locus_postData', params: [params] });
529
+ const signed = yield _signLocusTransaction(client.account, prepared);
530
+ return _sendPreparedTransaction(client, signed);
531
+ });
532
+ }
533
+
534
+ // Automatically generated file. DO NOT EDIT.
535
+ function provideScript(client, params) {
536
+ return __awaiter(this, void 0, void 0, function* () {
537
+ const prepared = yield _prepareTransaction(client, { method: 'locus_provideScript', params: [params] });
538
+ const signed = yield _signLocusTransaction(client.account, prepared);
539
+ return _sendPreparedTransaction(client, signed);
540
+ });
541
+ }
542
+
543
+ // Automatically generated file. DO NOT EDIT.
544
+ function requestDataTrade(client, params) {
545
+ return __awaiter(this, void 0, void 0, function* () {
546
+ const prepared = yield _prepareTransaction(client, { method: 'locus_requestDataTrade', params: [params] });
547
+ const signed = yield _signLocusTransaction(client.account, prepared);
548
+ return _sendPreparedTransaction(client, signed);
549
+ });
550
+ }
551
+
552
+ // Automatically generated file. DO NOT EDIT.
553
+ function transferAssetObject(client, params) {
554
+ return __awaiter(this, void 0, void 0, function* () {
555
+ const prepared = yield _prepareTransaction(client, { method: 'locus_transferAssetObject', params: [params] });
556
+ const signed = yield _signLocusTransaction(client.account, prepared);
557
+ return _sendPreparedTransaction(client, signed);
558
+ });
559
+ }
560
+
561
+ // Automatically generated file. DO NOT EDIT.
562
+ function transferCoin(client, param) {
563
+ return __awaiter(this, void 0, void 0, function* () {
564
+ const prepared = yield _prepareTransaction(client, { method: 'locus_transferCoin', params: [param] });
565
+ const signed = yield _signLocusTransaction(client.account, prepared);
566
+ return _sendPreparedTransaction(client, signed);
567
+ });
568
+ }
569
+
570
+ // Automatically generated file. DO NOT EDIT.
571
+ function transferCoinExpress(client, param) {
572
+ return __awaiter(this, void 0, void 0, function* () {
573
+ const prepared = yield _prepareTransaction(client, { method: 'locus_transferCoinExpress', params: [param] });
574
+ const signed = yield _signLocusTransaction(client.account, prepared);
575
+ return _sendPreparedTransaction(client, signed);
576
+ });
577
+ }
578
+
579
+ // Automatically generated file. DO NOT EDIT.
580
+ function transferToken(client, params) {
581
+ return __awaiter(this, void 0, void 0, function* () {
582
+ const prepared = yield _prepareTransaction(client, { method: 'locus_transferToken', params: [params] });
583
+ const signed = yield _signLocusTransaction(client.account, prepared);
584
+ return _sendPreparedTransaction(client, signed);
585
+ });
586
+ }
587
+
588
+ // Automatically generated file. DO NOT EDIT.
589
+ function unlockStake(client, params) {
590
+ return __awaiter(this, void 0, void 0, function* () {
591
+ const prepared = yield _prepareTransaction(client, { method: 'locus_unlockStake', params: [params] });
592
+ const signed = yield _signLocusTransaction(client.account, prepared);
593
+ return _sendPreparedTransaction(client, signed);
594
+ });
595
+ }
596
+
597
+ // Automatically generated file. DO NOT EDIT.
598
+ const walletActions = (client) => ({
599
+ acceptScript: (params) => acceptScript(client, params),
600
+ becomeGuest: (param) => becomeGuest(client, param),
601
+ becomeHost: (param) => becomeHost(client, param),
602
+ changeKey: (params) => changeKey(client, params),
603
+ changeVkey: (params) => changeVkey(client, params),
604
+ closeAccount: (param) => closeAccount(client, param),
605
+ createAssetObject: (param) => createAssetObject(client, param),
606
+ createToken: (param) => createToken(client, param),
607
+ createVme: (param) => createVme(client, param),
608
+ lockStake: (params) => lockStake(client, params),
609
+ openAccount: (param) => openAccount(client, param),
610
+ postData: (params) => postData(client, params),
611
+ provideScript: (params) => provideScript(client, params),
612
+ requestDataTrade: (params) => requestDataTrade(client, params),
613
+ transferAssetObject: (params) => transferAssetObject(client, params),
614
+ transferCoin: (param) => transferCoin(client, param),
615
+ transferCoinExpress: (param) => transferCoinExpress(client, param),
616
+ transferToken: (params) => transferToken(client, params),
617
+ unlockStake: (params) => unlockStake(client, params),
618
+ });
619
+
620
+ // Automatically generated file. DO NOT EDIT.
621
+ function allHeights(client) {
622
+ return __awaiter(this, void 0, void 0, function* () {
623
+ return client.request({ method: 'debug_allHeights', params: [] });
624
+ });
625
+ }
626
+
627
+ // Automatically generated file. DO NOT EDIT.
628
+ function balanceGrantList(client) {
629
+ return __awaiter(this, void 0, void 0, function* () {
630
+ return client.request({ method: 'debug_balanceGrantList', params: [] });
631
+ });
632
+ }
633
+
634
+ // Automatically generated file. DO NOT EDIT.
635
+ function balanceList(client) {
636
+ return __awaiter(this, void 0, void 0, function* () {
637
+ return client.request({ method: 'debug_balanceList', params: [] });
638
+ });
639
+ }
640
+
641
+ // Automatically generated file. DO NOT EDIT.
642
+ function createAccount(client) {
643
+ return __awaiter(this, void 0, void 0, function* () {
644
+ return client.request({ method: 'debug_createAccount', params: [] });
645
+ });
646
+ }
647
+
648
+ // Automatically generated file. DO NOT EDIT.
649
+ function createNode(client, param) {
650
+ return __awaiter(this, void 0, void 0, function* () {
651
+ return client.request({ method: 'debug_createNode', params: [param] });
652
+ });
653
+ }
654
+
655
+ // Automatically generated file. DO NOT EDIT.
656
+ function dumpAllAccounts(client) {
657
+ return __awaiter(this, void 0, void 0, function* () {
658
+ return client.request({ method: 'debug_dumpAllAccounts', params: [] });
659
+ });
660
+ }
661
+
662
+ // Automatically generated file. DO NOT EDIT.
663
+ function echo(client, str) {
664
+ return __awaiter(this, void 0, void 0, function* () {
665
+ return client.request({ method: 'debug_echo', params: [str] });
666
+ });
667
+ }
668
+
669
+ // Automatically generated file. DO NOT EDIT.
670
+ function gameChainCmd(client, param) {
671
+ return __awaiter(this, void 0, void 0, function* () {
672
+ return client.request({ method: 'debug_gameChainCmd', params: [param] });
673
+ });
674
+ }
675
+
676
+ // Automatically generated file. DO NOT EDIT.
677
+ function getAccountsBalances(client, param) {
678
+ return __awaiter(this, void 0, void 0, function* () {
679
+ return client.request({ method: 'debug_getAccountsBalances', params: [param] });
680
+ });
681
+ }
682
+
683
+ // Automatically generated file. DO NOT EDIT.
684
+ function getAccountsHeights(client, param) {
685
+ return __awaiter(this, void 0, void 0, function* () {
686
+ return client.request({ method: 'debug_getAccountsHeights', params: [param] });
687
+ });
688
+ }
689
+
690
+ // Automatically generated file. DO NOT EDIT.
691
+ function getContractLog(client, param) {
692
+ return __awaiter(this, void 0, void 0, function* () {
693
+ return client.request({ method: 'debug_getContractLog', params: [param] });
694
+ });
695
+ }
696
+
697
+ // Automatically generated file. DO NOT EDIT.
698
+ function getGuestsInfo(client) {
699
+ return __awaiter(this, void 0, void 0, function* () {
700
+ return client.request({ method: 'debug_getGuestsInfo', params: [] });
701
+ });
702
+ }
703
+
704
+ // Automatically generated file. DO NOT EDIT.
705
+ function getHomeShard(client, param) {
706
+ return __awaiter(this, void 0, void 0, function* () {
707
+ return client.request({ method: 'debug_getHomeShard', params: [param] });
708
+ });
709
+ }
710
+
711
+ // Automatically generated file. DO NOT EDIT.
712
+ function getImportAccount(client, params) {
713
+ return __awaiter(this, void 0, void 0, function* () {
714
+ return client.request({ method: 'debug_getImportAccount', params: [params] });
715
+ });
716
+ }
717
+
718
+ // Automatically generated file. DO NOT EDIT.
719
+ function getImportAccountLog(client, params) {
720
+ return __awaiter(this, void 0, void 0, function* () {
721
+ return client.request({ method: 'debug_getImportAccountLog', params: [params] });
722
+ });
723
+ }
724
+
725
+ // Automatically generated file. DO NOT EDIT.
726
+ function getKeys(client, params) {
727
+ return __awaiter(this, void 0, void 0, function* () {
728
+ return client.request({ method: 'debug_getKeys', params: [params] });
729
+ });
730
+ }
731
+
732
+ // Automatically generated file. DO NOT EDIT.
733
+ function getNodeBlocks(client) {
734
+ return __awaiter(this, void 0, void 0, function* () {
735
+ return client.request({ method: 'debug_getNodeBlocks', params: [] });
736
+ });
737
+ }
738
+
739
+ // Automatically generated file. DO NOT EDIT.
740
+ function getPeerPool(client) {
741
+ return __awaiter(this, void 0, void 0, function* () {
742
+ return client.request({ method: 'debug_getPeerPool', params: [] });
743
+ });
744
+ }
745
+
746
+ // Automatically generated file. DO NOT EDIT.
747
+ function getPeersInfo(client) {
748
+ return __awaiter(this, void 0, void 0, function* () {
749
+ return client.request({ method: 'debug_getPeersInfo', params: [] });
750
+ });
751
+ }
752
+
753
+ // Automatically generated file. DO NOT EDIT.
754
+ function importAccount(client, params) {
755
+ return __awaiter(this, void 0, void 0, function* () {
756
+ return client.request({ method: 'debug_importAccount', params: [params] });
757
+ });
758
+ }
759
+
760
+ // Automatically generated file. DO NOT EDIT.
761
+ function initReliableNodes(client, param) {
762
+ return __awaiter(this, void 0, void 0, function* () {
763
+ return client.request({ method: 'debug_initReliableNodes', params: [param] });
764
+ });
765
+ }
766
+
767
+ // Automatically generated file. DO NOT EDIT.
768
+ function noArgsRets(client) {
769
+ return __awaiter(this, void 0, void 0, function* () {
770
+ return client.request({ method: 'debug_noArgsRets', params: [] });
771
+ });
772
+ }
773
+
774
+ // Automatically generated file. DO NOT EDIT.
775
+ function nodeCmd(client, cmd) {
776
+ return __awaiter(this, void 0, void 0, function* () {
777
+ return client.request({ method: 'debug_nodeCmd', params: [cmd] });
778
+ });
779
+ }
780
+
781
+ // Automatically generated file. DO NOT EDIT.
782
+ function removeHoldTxs(client, param) {
783
+ return __awaiter(this, void 0, void 0, function* () {
784
+ return client.request({ method: 'debug_removeHoldTxs', params: [param] });
785
+ });
786
+ }
787
+
788
+ // Automatically generated file. DO NOT EDIT.
789
+ function requestVme(client, params) {
790
+ return __awaiter(this, void 0, void 0, function* () {
791
+ return client.request({ method: 'debug_requestVme', params: [params] });
792
+ });
793
+ }
794
+
795
+ // Automatically generated file. DO NOT EDIT.
796
+ function sendRawTransaction(client, params) {
797
+ return __awaiter(this, void 0, void 0, function* () {
798
+ return client.request({ method: 'debug_sendRawTransaction', params: [params] });
799
+ });
800
+ }
801
+
802
+ // Automatically generated file. DO NOT EDIT.
803
+ function setImportAccountTx(client, params) {
804
+ return __awaiter(this, void 0, void 0, function* () {
805
+ return client.request({ method: 'debug_setImportAccountTx', params: [params] });
806
+ });
807
+ }
808
+
809
+ // Automatically generated file. DO NOT EDIT.
810
+ function setReliableNode(client, param) {
811
+ return __awaiter(this, void 0, void 0, function* () {
812
+ return client.request({ method: 'debug_setReliableNode', params: [param] });
813
+ });
814
+ }
815
+
816
+ // Automatically generated file. DO NOT EDIT.
817
+ function viewContract(client, param) {
818
+ return __awaiter(this, void 0, void 0, function* () {
819
+ return client.request({ method: 'debug_viewContract', params: [param] });
820
+ });
821
+ }
822
+
823
+ // Automatically generated file. DO NOT EDIT.
824
+ const debugPublicActions = (client) => ({
825
+ allHeights: () => allHeights(client),
826
+ balanceGrantList: () => balanceGrantList(client),
827
+ balanceList: () => balanceList(client),
828
+ createAccount: () => createAccount(client),
829
+ createNode: (param) => createNode(client, param),
830
+ dumpAllAccounts: () => dumpAllAccounts(client),
831
+ echo: (str) => echo(client, str),
832
+ gameChainCmd: (param) => gameChainCmd(client, param),
833
+ getAccountsBalances: (param) => getAccountsBalances(client, param),
834
+ getAccountsHeights: (param) => getAccountsHeights(client, param),
835
+ getContractLog: (param) => getContractLog(client, param),
836
+ getGuestsInfo: () => getGuestsInfo(client),
837
+ getHomeShard: (param) => getHomeShard(client, param),
838
+ getImportAccount: (params) => getImportAccount(client, params),
839
+ getImportAccountLog: (params) => getImportAccountLog(client, params),
840
+ getKeys: (params) => getKeys(client, params),
841
+ getNodeBlocks: () => getNodeBlocks(client),
842
+ getPeerPool: () => getPeerPool(client),
843
+ getPeersInfo: () => getPeersInfo(client),
844
+ importAccount: (params) => importAccount(client, params),
845
+ initReliableNodes: (param) => initReliableNodes(client, param),
846
+ noArgsRets: () => noArgsRets(client),
847
+ nodeCmd: (cmd) => nodeCmd(client, cmd),
848
+ removeHoldTxs: (param) => removeHoldTxs(client, param),
849
+ requestVme: (params) => requestVme(client, params),
850
+ sendRawTransaction: (params) => sendRawTransaction(client, params),
851
+ setImportAccountTx: (params) => setImportAccountTx(client, params),
852
+ setReliableNode: (param) => setReliableNode(client, param),
853
+ viewContract: (param) => viewContract(client, param),
854
+ });
855
+
856
+ // Automatically generated file. DO NOT EDIT.
857
+ function callContract(client, param) {
858
+ return __awaiter(this, void 0, void 0, function* () {
859
+ const prepared = yield _prepareTransaction(client, { method: 'debug_callContract', params: [param] });
860
+ const signed = yield _signLocusTransaction(client.account, prepared);
861
+ return _sendPreparedTransaction(client, signed);
862
+ });
863
+ }
864
+
865
+ // Automatically generated file. DO NOT EDIT.
866
+ function createContract(client, param) {
867
+ return __awaiter(this, void 0, void 0, function* () {
868
+ const prepared = yield _prepareTransaction(client, { method: 'debug_createContract', params: [param] });
869
+ const signed = yield _signLocusTransaction(client.account, prepared);
870
+ return _sendPreparedTransaction(client, signed);
871
+ });
872
+ }
873
+
874
+ // Automatically generated file. DO NOT EDIT.
875
+ function createSynthAccount(client, param) {
876
+ return __awaiter(this, void 0, void 0, function* () {
877
+ const prepared = yield _prepareTransaction(client, { method: 'debug_createSynthAccount', params: [param] });
878
+ const signed = yield _signLocusTransaction(client.account, prepared);
879
+ return _sendPreparedTransaction(client, signed);
880
+ });
881
+ }
882
+
883
+ // Automatically generated file. DO NOT EDIT.
884
+ function postDataToSynthAccount(client, param) {
885
+ return __awaiter(this, void 0, void 0, function* () {
886
+ const prepared = yield _prepareTransaction(client, { method: 'debug_postDataToSynthAccount', params: [param] });
887
+ const signed = yield _signLocusTransaction(client.account, prepared);
888
+ return _sendPreparedTransaction(client, signed);
889
+ });
890
+ }
891
+
892
+ // Automatically generated file. DO NOT EDIT.
893
+ const debugWalletActions = (client) => ({
894
+ callContract: (param) => callContract(client, param),
895
+ createContract: (param) => createContract(client, param),
896
+ createSynthAccount: (param) => createSynthAccount(client, param),
897
+ postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
898
+ });
899
+
900
+ export { getAccountAssetObject as $, postDataToSynthAccount as A, removeHoldTxs as B, requestVme as C, sendRawTransaction as D, setImportAccountTx as E, setReliableNode as F, viewContract as G, acceptScript as H, accountHeightsToDownload as I, accountHeightsToUpload as J, becomeGuest as K, becomeHost as L, calculateSpentByExpress as M, changeKey as N, changeVkey as O, clientMessage as P, closeAccount as Q, createAssetObject as R, createToken as S, createVme as T, debugPublicActions as U, debugWalletActions as V, downloadAccountTxs as W, echo$1 as X, findDuplicateSubscriber as Y, generateLatestStoredDataProof as Z, getAccountAssetList as _, allHeights as a, getAccountDetail as a0, getAccountHistory as a1, getAccountTokenList as a2, getConciseNodeStatus as a3, getGenesisAccount as a4, getIdentityProof as a5, getInactiveTxList as a6, getMontInfoList as a7, getNodeStatus as a8, getOwnerBalance as a9, verifyIdentityProof as aA, verifyLatestStoredDataProof as aB, verifyTxListWitness as aC, walletActions as aD, getRoundState as aa, getRoundStatesList as ab, getShardOfAccount as ac, getSyncState as ad, getTx as ae, getWorldRoundState as af, getWorldRoundStatesList as ag, hasSystemToken as ah, lockStake as ai, makeTxProof as aj, openAccount as ak, postData as al, provideScript as am, publicActions as an, queryAddress as ao, readTxListWitness as ap, requestDataTrade as aq, setHost as ar, subscribeAddress as as, transferAssetObject as at, transferCoin as au, transferCoinExpress as av, transferToken as aw, unlockStake as ax, uploadAccountTxs as ay, verifyAndSignChallenge as az, balanceGrantList as b, balanceList as c, callContract as d, createAccount as e, createContract as f, createNode as g, createSynthAccount as h, dumpAllAccounts as i, echo as j, gameChainCmd as k, getAccountsBalances as l, getAccountsHeights as m, getContractLog as n, getGuestsInfo as o, getHomeShard as p, getImportAccount as q, getImportAccountLog as r, getKeys as s, getNodeBlocks as t, getPeerPool as u, getPeersInfo as v, importAccount as w, initReliableNodes as x, noArgsRets as y, nodeCmd as z };