@locuschain/lib 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounts/account.d.mts +58 -0
- package/dist/accounts/index.amd.js +306 -0
- package/dist/accounts/index.cjs.cjs +311 -0
- package/dist/accounts/index.d.cts +5 -0
- package/dist/accounts/index.d.mts +5 -0
- package/dist/accounts/index.esm.js +304 -0
- package/dist/accounts/keys/index.d.mts +2 -0
- package/dist/accounts/keys/localKeySource.d.mts +23 -0
- package/dist/accounts/keys/toKeySource.d.mts +14 -0
- package/dist/accounts/keysToAccount.d.mts +19 -0
- package/dist/accounts/mnemonicToAccount.d.mts +25 -0
- package/dist/accounts/signing/txKeyPolicy.d.mts +21 -0
- package/dist/accounts/types.d.mts +100 -0
- package/dist/actions/wallet/_deriveTxAdditions.d.mts +18 -0
- package/dist/actions/wallet/_prepareTransaction.d.mts +15 -0
- package/dist/actions/wallet/_sendPreparedTransaction.d.mts +9 -0
- package/dist/actions/wallet/_signLocusTransaction.d.mts +14 -0
- package/dist/actions/wallet/index.d.mts +5 -0
- package/dist/actions/wallet/types.d.mts +38 -0
- package/dist/autogen/actions/debug/index.d.mts +2 -0
- package/dist/autogen/actions/debug/public/allHeights.d.mts +3 -0
- package/dist/autogen/actions/debug/public/balanceGrantList.d.mts +2 -0
- package/dist/autogen/actions/debug/public/balanceList.d.mts +2 -0
- package/dist/autogen/actions/debug/public/createAccount.d.mts +3 -0
- package/dist/autogen/actions/debug/public/createNode.d.mts +4 -0
- package/dist/autogen/actions/debug/public/dumpAllAccounts.d.mts +3 -0
- package/dist/autogen/actions/debug/public/echo.d.mts +2 -0
- package/dist/autogen/actions/debug/public/gameChainCmd.d.mts +4 -0
- package/dist/autogen/actions/debug/public/getAccountsBalances.d.mts +4 -0
- package/dist/autogen/actions/debug/public/getAccountsHeights.d.mts +4 -0
- package/dist/autogen/actions/debug/public/getContractLog.d.mts +4 -0
- package/dist/autogen/actions/debug/public/getGuestsInfo.d.mts +3 -0
- package/dist/autogen/actions/debug/public/getHomeShard.d.mts +4 -0
- package/dist/autogen/actions/debug/public/getImportAccount.d.mts +4 -0
- package/dist/autogen/actions/debug/public/getImportAccountLog.d.mts +4 -0
- package/dist/autogen/actions/debug/public/getKeys.d.mts +4 -0
- package/dist/autogen/actions/debug/public/getNodeBlocks.d.mts +3 -0
- package/dist/autogen/actions/debug/public/getPeerPool.d.mts +2 -0
- package/dist/autogen/actions/debug/public/getPeersInfo.d.mts +3 -0
- package/dist/autogen/actions/debug/public/importAccount.d.mts +4 -0
- package/dist/autogen/actions/debug/public/index.d.mts +29 -0
- package/dist/autogen/actions/debug/public/initReliableNodes.d.mts +4 -0
- package/dist/autogen/actions/debug/public/noArgsRets.d.mts +2 -0
- package/dist/autogen/actions/debug/public/nodeCmd.d.mts +3 -0
- package/dist/autogen/actions/debug/public/removeHoldTxs.d.mts +4 -0
- package/dist/autogen/actions/debug/public/requestVme.d.mts +4 -0
- package/dist/autogen/actions/debug/public/sendRawTransaction.d.mts +4 -0
- package/dist/autogen/actions/debug/public/setImportAccountTx.d.mts +4 -0
- package/dist/autogen/actions/debug/public/setReliableNode.d.mts +4 -0
- package/dist/autogen/actions/debug/public/viewContract.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/callContract.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/createContract.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/createSynthAccount.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/index.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/postDataToSynthAccount.d.mts +4 -0
- package/dist/autogen/actions/index.d.mts +3 -0
- package/dist/autogen/actions/public/accountHeightsToDownload.d.mts +4 -0
- package/dist/autogen/actions/public/accountHeightsToUpload.d.mts +4 -0
- package/dist/autogen/actions/public/calculateSpentByExpress.d.mts +4 -0
- package/dist/autogen/actions/public/clientMessage.d.mts +3 -0
- package/dist/autogen/actions/public/downloadAccountTxs.d.mts +4 -0
- package/dist/autogen/actions/public/echo.d.mts +2 -0
- package/dist/autogen/actions/public/findDuplicateSubscriber.d.mts +4 -0
- package/dist/autogen/actions/public/generateLatestStoredDataProof.d.mts +4 -0
- package/dist/autogen/actions/public/getAccountAssetList.d.mts +4 -0
- package/dist/autogen/actions/public/getAccountAssetObject.d.mts +4 -0
- package/dist/autogen/actions/public/getAccountDetail.d.mts +4 -0
- package/dist/autogen/actions/public/getAccountHistory.d.mts +4 -0
- package/dist/autogen/actions/public/getAccountTokenList.d.mts +4 -0
- package/dist/autogen/actions/public/getConciseNodeStatus.d.mts +3 -0
- package/dist/autogen/actions/public/getGenesisAccount.d.mts +3 -0
- package/dist/autogen/actions/public/getIdentityProof.d.mts +4 -0
- package/dist/autogen/actions/public/getInactiveTxList.d.mts +4 -0
- package/dist/autogen/actions/public/getMontInfoList.d.mts +4 -0
- package/dist/autogen/actions/public/getNodeStatus.d.mts +3 -0
- package/dist/autogen/actions/public/getOwnerBalance.d.mts +3 -0
- package/dist/autogen/actions/public/getRoundState.d.mts +4 -0
- package/dist/autogen/actions/public/getRoundStatesList.d.mts +4 -0
- package/dist/autogen/actions/public/getShardOfAccount.d.mts +4 -0
- package/dist/autogen/actions/public/getSyncState.d.mts +3 -0
- package/dist/autogen/actions/public/getTx.d.mts +4 -0
- package/dist/autogen/actions/public/getWorldRoundState.d.mts +4 -0
- package/dist/autogen/actions/public/getWorldRoundStatesList.d.mts +4 -0
- package/dist/autogen/actions/public/hasSystemToken.d.mts +4 -0
- package/dist/autogen/actions/public/index.d.mts +38 -0
- package/dist/autogen/actions/public/makeTxProof.d.mts +4 -0
- package/dist/autogen/actions/public/queryAddress.d.mts +4 -0
- package/dist/autogen/actions/public/readTxListWitness.d.mts +4 -0
- package/dist/autogen/actions/public/setHost.d.mts +3 -0
- package/dist/autogen/actions/public/subscribeAddress.d.mts +4 -0
- package/dist/autogen/actions/public/uploadAccountTxs.d.mts +3 -0
- package/dist/autogen/actions/public/verifyAndSignChallenge.d.mts +4 -0
- package/dist/autogen/actions/public/verifyIdentityProof.d.mts +4 -0
- package/dist/autogen/actions/public/verifyLatestStoredDataProof.d.mts +3 -0
- package/dist/autogen/actions/public/verifyTxListWitness.d.mts +3 -0
- package/dist/autogen/actions/wallet/acceptScript.d.mts +4 -0
- package/dist/autogen/actions/wallet/becomeGuest.d.mts +4 -0
- package/dist/autogen/actions/wallet/becomeHost.d.mts +4 -0
- package/dist/autogen/actions/wallet/changeKey.d.mts +4 -0
- package/dist/autogen/actions/wallet/changeVkey.d.mts +4 -0
- package/dist/autogen/actions/wallet/closeAccount.d.mts +4 -0
- package/dist/autogen/actions/wallet/createAssetObject.d.mts +4 -0
- package/dist/autogen/actions/wallet/createToken.d.mts +4 -0
- package/dist/autogen/actions/wallet/createVme.d.mts +4 -0
- package/dist/autogen/actions/wallet/index.d.mts +19 -0
- package/dist/autogen/actions/wallet/lockStake.d.mts +4 -0
- package/dist/autogen/actions/wallet/openAccount.d.mts +4 -0
- package/dist/autogen/actions/wallet/postData.d.mts +4 -0
- package/dist/autogen/actions/wallet/provideScript.d.mts +4 -0
- package/dist/autogen/actions/wallet/requestDataTrade.d.mts +4 -0
- package/dist/autogen/actions/wallet/transferAssetObject.d.mts +4 -0
- package/dist/autogen/actions/wallet/transferCoin.d.mts +4 -0
- package/dist/autogen/actions/wallet/transferCoinExpress.d.mts +4 -0
- package/dist/autogen/actions/wallet/transferToken.d.mts +4 -0
- package/dist/autogen/actions/wallet/unlockStake.d.mts +4 -0
- package/dist/autogen/debugPublicActions.d.mts +47 -0
- package/dist/autogen/debugWalletActions.d.mts +11 -0
- package/dist/autogen/index.amd.js +151 -0
- package/dist/autogen/index.cjs.cjs +157 -0
- package/dist/autogen/index.d.cts +8 -0
- package/dist/autogen/index.d.mts +8 -0
- package/dist/autogen/index.esm.js +49 -0
- package/dist/autogen/locus-tx.d.mts +5 -0
- package/dist/autogen/publicActions.d.mts +66 -0
- package/dist/autogen/rpc-api-spec.d.mts +208 -0
- package/dist/autogen/types/common/addr-tx-proof.d.mts +5 -0
- package/dist/autogen/types/common/asset-object-transfer.d.mts +8 -0
- package/dist/autogen/types/common/asset-object.d.mts +10 -0
- package/dist/autogen/types/common/asset-proof-objects.d.mts +5 -0
- package/dist/autogen/types/common/asset-transfer-info.d.mts +9 -0
- package/dist/autogen/types/common/base-meta.d.mts +1 -0
- package/dist/autogen/types/common/contract-exec-status.d.mts +16 -0
- package/dist/autogen/types/common/contract-transfer-info.d.mts +7 -0
- package/dist/autogen/types/common/get-peers-info.d.mts +9 -0
- package/dist/autogen/types/common/index-value-pair.d.mts +4 -0
- package/dist/autogen/types/common/index.d.mts +54 -0
- package/dist/autogen/types/common/input-params-data-transfer.d.mts +8 -0
- package/dist/autogen/types/common/key-bind-info.d.mts +4 -0
- package/dist/autogen/types/common/mont-info.d.mts +4 -0
- package/dist/autogen/types/common/object-amount-transfer.d.mts +5 -0
- package/dist/autogen/types/common/object-amount.d.mts +4 -0
- package/dist/autogen/types/common/output-download-account-txs.d.mts +4 -0
- package/dist/autogen/types/common/param-str.d.mts +3 -0
- package/dist/autogen/types/common/param-tx-data.d.mts +5 -0
- package/dist/autogen/types/common/params-token-value-pair.d.mts +4 -0
- package/dist/autogen/types/common/public-height-chunk.d.mts +4 -0
- package/dist/autogen/types/common/ref-tx-info.d.mts +5 -0
- package/dist/autogen/types/common/ref-vtx.d.mts +6 -0
- package/dist/autogen/types/common/ret-type-base.d.mts +1 -0
- package/dist/autogen/types/common/round-state-abstract.d.mts +11 -0
- package/dist/autogen/types/common/round-state-detail.d.mts +16 -0
- package/dist/autogen/types/common/rpc-account-height.d.mts +5 -0
- package/dist/autogen/types/common/rpc-accounts-balances-result.d.mts +4 -0
- package/dist/autogen/types/common/rpc-asset-list-values.d.mts +7 -0
- package/dist/autogen/types/common/rpc-data-trade-result.d.mts +5 -0
- package/dist/autogen/types/common/rpc-token-balance-pair.d.mts +4 -0
- package/dist/autogen/types/common/token-value-ab.d.mts +5 -0
- package/dist/autogen/types/common/token-value-pair.d.mts +4 -0
- package/dist/autogen/types/common/transaction-sender-index.d.mts +7 -0
- package/dist/autogen/types/common/transfer-info.d.mts +7 -0
- package/dist/autogen/types/common/tx-base.d.mts +13 -0
- package/dist/autogen/types/common/tx-hash-elements.d.mts +6 -0
- package/dist/autogen/types/common/tx-key-height-hash.d.mts +4 -0
- package/dist/autogen/types/common/tx-key-nround.d.mts +5 -0
- package/dist/autogen/types/common/tx-key.d.mts +4 -0
- package/dist/autogen/types/common/tx-meta.d.mts +2 -0
- package/dist/autogen/types/common/tx-no-signature.d.mts +1 -0
- package/dist/autogen/types/common/tx-recv-set-meta.d.mts +2 -0
- package/dist/autogen/types/common/tx-sign-key.d.mts +1 -0
- package/dist/autogen/types/common/tx-signature.d.mts +3 -0
- package/dist/autogen/types/common/tx-vsignature.d.mts +3 -0
- package/dist/autogen/types/common/vm-engine-block.d.mts +11 -0
- package/dist/autogen/types/common/vm-reward.d.mts +4 -0
- package/dist/autogen/types/common/vm-tx-state.d.mts +27 -0
- package/dist/autogen/types/common/vme-block-meta.d.mts +2 -0
- package/dist/autogen/types/common/vme-info.d.mts +3 -0
- package/dist/autogen/types/common/vme-lock-stake.d.mts +4 -0
- package/dist/autogen/types/common/vote-info-rpc.d.mts +5 -0
- package/dist/autogen/types/common/vtx-meta.d.mts +2 -0
- package/dist/autogen/types/common/wrs-validators-info.d.mts +5 -0
- package/dist/autogen/types/consts/address-class.d.mts +11 -0
- package/dist/autogen/types/consts/consts.d.mts +2 -0
- package/dist/autogen/types/consts/currency-unit.d.mts +15 -0
- package/dist/autogen/types/consts/index.d.mts +3 -0
- package/dist/autogen/types/consts/tx-type.d.mts +61 -0
- package/dist/autogen/types/consts/tx-types.d.mts +415 -0
- package/dist/autogen/types/rpc/heights-result.d.mts +4 -0
- package/dist/autogen/types/rpc/index.d.mts +106 -0
- package/dist/autogen/types/rpc/params-accept-script.d.mts +8 -0
- package/dist/autogen/types/rpc/params-account-and-index.d.mts +4 -0
- package/dist/autogen/types/rpc/params-account-heights.d.mts +5 -0
- package/dist/autogen/types/rpc/params-account-history.d.mts +5 -0
- package/dist/autogen/types/rpc/params-account.d.mts +3 -0
- package/dist/autogen/types/rpc/params-accounts.d.mts +3 -0
- package/dist/autogen/types/rpc/params-become-guest.d.mts +5 -0
- package/dist/autogen/types/rpc/params-become-host.d.mts +5 -0
- package/dist/autogen/types/rpc/params-calculate-spent-by-express.d.mts +5 -0
- package/dist/autogen/types/rpc/params-call-contract.d.mts +13 -0
- package/dist/autogen/types/rpc/params-change-key.d.mts +8 -0
- package/dist/autogen/types/rpc/params-change-vkey.d.mts +5 -0
- package/dist/autogen/types/rpc/params-close-account.d.mts +7 -0
- package/dist/autogen/types/rpc/params-contract-log.d.mts +6 -0
- package/dist/autogen/types/rpc/params-create-asset-object.d.mts +10 -0
- package/dist/autogen/types/rpc/params-create-contract.d.mts +14 -0
- package/dist/autogen/types/rpc/params-create-node.d.mts +4 -0
- package/dist/autogen/types/rpc/params-create-synth-account.d.mts +8 -0
- package/dist/autogen/types/rpc/params-create-token.d.mts +7 -0
- package/dist/autogen/types/rpc/params-create-vme.d.mts +8 -0
- package/dist/autogen/types/rpc/params-download-account-txs.d.mts +6 -0
- package/dist/autogen/types/rpc/params-find-duplicate-subscriber.d.mts +3 -0
- package/dist/autogen/types/rpc/params-game-chain-cmd.d.mts +5 -0
- package/dist/autogen/types/rpc/params-generate-latest-stored-data-proof.d.mts +4 -0
- package/dist/autogen/types/rpc/params-get-asset-list.d.mts +4 -0
- package/dist/autogen/types/rpc/params-get-asset-objects.d.mts +4 -0
- package/dist/autogen/types/rpc/params-get-home-shard.d.mts +3 -0
- package/dist/autogen/types/rpc/params-get-identity-proof.d.mts +4 -0
- package/dist/autogen/types/rpc/params-get-import-account.d.mts +3 -0
- package/dist/autogen/types/rpc/params-import-account.d.mts +7 -0
- package/dist/autogen/types/rpc/params-init-reliable-nodes.d.mts +5 -0
- package/dist/autogen/types/rpc/params-latest-stored-data-proof.d.mts +4 -0
- package/dist/autogen/types/rpc/params-lock-stake.d.mts +7 -0
- package/dist/autogen/types/rpc/params-open-account.d.mts +11 -0
- package/dist/autogen/types/rpc/params-post-data-to-synth-account.d.mts +11 -0
- package/dist/autogen/types/rpc/params-provide-script.d.mts +14 -0
- package/dist/autogen/types/rpc/params-query-address.d.mts +3 -0
- package/dist/autogen/types/rpc/params-read-tx-list.d.mts +5 -0
- package/dist/autogen/types/rpc/params-remove-hold-txs.d.mts +5 -0
- package/dist/autogen/types/rpc/params-request-data-trade.d.mts +10 -0
- package/dist/autogen/types/rpc/params-request-vme.d.mts +4 -0
- package/dist/autogen/types/rpc/params-round-list.d.mts +4 -0
- package/dist/autogen/types/rpc/params-round.d.mts +3 -0
- package/dist/autogen/types/rpc/params-rs.d.mts +4 -0
- package/dist/autogen/types/rpc/params-send-raw-transaction.d.mts +4 -0
- package/dist/autogen/types/rpc/params-set-host.d.mts +4 -0
- package/dist/autogen/types/rpc/params-set-import-account-tx.d.mts +5 -0
- package/dist/autogen/types/rpc/params-set-reliable-node.d.mts +4 -0
- package/dist/autogen/types/rpc/params-subscribe-address.d.mts +4 -0
- package/dist/autogen/types/rpc/params-transfer-asset-object.d.mts +9 -0
- package/dist/autogen/types/rpc/params-transfer-coin-express.d.mts +7 -0
- package/dist/autogen/types/rpc/params-transfer-coin.d.mts +8 -0
- package/dist/autogen/types/rpc/params-transfer-tokens.d.mts +14 -0
- package/dist/autogen/types/rpc/params-tx-list-witness.d.mts +6 -0
- package/dist/autogen/types/rpc/params-tx-list.d.mts +5 -0
- package/dist/autogen/types/rpc/params-unlock-stake.d.mts +7 -0
- package/dist/autogen/types/rpc/params-upload-account-txs.d.mts +5 -0
- package/dist/autogen/types/rpc/params-verify-and-sign-challenge.d.mts +8 -0
- package/dist/autogen/types/rpc/params-verify-identity-proof.d.mts +6 -0
- package/dist/autogen/types/rpc/result-dump-accounts.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-bool-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-express-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-create-account-result.d.mts +7 -0
- package/dist/autogen/types/rpc/rpc-create-node-result.d.mts +5 -0
- package/dist/autogen/types/rpc/rpc-create-tx-result.d.mts +7 -0
- package/dist/autogen/types/rpc/rpc-find-duplicate-subscriber-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-game-chain-cmd-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-generate-latest-stored-data-proof-result.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-get-account-asset-list-result.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-get-account-asset-object-result.d.mts +5 -0
- package/dist/autogen/types/rpc/rpc-get-account-detail-result.d.mts +10 -0
- package/dist/autogen/types/rpc/rpc-get-account-history-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-account-token-list-result.d.mts +6 -0
- package/dist/autogen/types/rpc/rpc-get-accounts-balances-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-accounts-heights-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-concise-node-status-result.d.mts +18 -0
- package/dist/autogen/types/rpc/rpc-get-contract-log-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-genesis-account-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-guests-info-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-home-shard-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-identity-proof-result.d.mts +6 -0
- package/dist/autogen/types/rpc/rpc-get-import-account-result.d.mts +10 -0
- package/dist/autogen/types/rpc/rpc-get-inactive-tx-list-result.d.mts +14 -0
- package/dist/autogen/types/rpc/rpc-get-keys-result.d.mts +7 -0
- package/dist/autogen/types/rpc/rpc-get-mont-info-list-result.d.mts +5 -0
- package/dist/autogen/types/rpc/rpc-get-node-blocks-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-node-status-result.d.mts +28 -0
- package/dist/autogen/types/rpc/rpc-get-shard-of-account-result.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-get-sync-state-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-tx-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-world-round-state-result.d.mts +13 -0
- package/dist/autogen/types/rpc/rpc-get-world-round-states-list-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-has-system-token-result.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-import-account-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-node-cmd-result.d.mts +5 -0
- package/dist/autogen/types/rpc/rpc-query-address-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-read-tx-list-witness-result.d.mts +6 -0
- package/dist/autogen/types/rpc/rpc-request-vme-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-send-raw-transaction-result.d.mts +1 -0
- package/dist/autogen/types/rpc/rpc-set-import-account-tx-result.d.mts +5 -0
- package/dist/autogen/types/rpc/rpc-subscribe-address-result.d.mts +1 -0
- package/dist/autogen/types/rpc/rpc-verify-and-sign-challenge-result.d.mts +8 -0
- package/dist/autogen/types/rpc/rpc-verify-identity-proof-result.d.mts +4 -0
- package/dist/autogen/types/rpc/rpc-view-contract-result.d.mts +3 -0
- package/dist/autogen/types/rpc/upload-heights-result.d.mts +6 -0
- package/dist/autogen/types/tx/index.d.mts +50 -0
- package/dist/autogen/types/tx/tx-accept-script-after-time-lock.d.mts +12 -0
- package/dist/autogen/types/tx/tx-accept-script.d.mts +15 -0
- package/dist/autogen/types/tx/tx-activate-all-assets.d.mts +15 -0
- package/dist/autogen/types/tx/tx-activate-asset-object.d.mts +9 -0
- package/dist/autogen/types/tx/tx-activate-call-contract.d.mts +15 -0
- package/dist/autogen/types/tx/tx-activate-coin.d.mts +9 -0
- package/dist/autogen/types/tx/tx-activate-contract-result.d.mts +18 -0
- package/dist/autogen/types/tx/tx-activate-contract-reward.d.mts +8 -0
- package/dist/autogen/types/tx/tx-activate-contract-transfer.d.mts +15 -0
- package/dist/autogen/types/tx/tx-activate-data-synth-account.d.mts +12 -0
- package/dist/autogen/types/tx/tx-activate-foundation-reserve.d.mts +7 -0
- package/dist/autogen/types/tx/tx-activate-incentive.d.mts +11 -0
- package/dist/autogen/types/tx/tx-activate-lock-stake-for-vme.d.mts +9 -0
- package/dist/autogen/types/tx/tx-activate-open-contract.d.mts +15 -0
- package/dist/autogen/types/tx/tx-activate-open-synth-account.d.mts +9 -0
- package/dist/autogen/types/tx/tx-activate-open-vm-engine.d.mts +11 -0
- package/dist/autogen/types/tx/tx-activate-token.d.mts +12 -0
- package/dist/autogen/types/tx/tx-become-guest.d.mts +10 -0
- package/dist/autogen/types/tx/tx-become-host.d.mts +7 -0
- package/dist/autogen/types/tx/tx-burn-asset-object.d.mts +8 -0
- package/dist/autogen/types/tx/tx-burn-token.d.mts +10 -0
- package/dist/autogen/types/tx/tx-call-contract.d.mts +16 -0
- package/dist/autogen/types/tx/tx-change-foundation-account.d.mts +6 -0
- package/dist/autogen/types/tx/tx-change-keypair.d.mts +10 -0
- package/dist/autogen/types/tx/tx-change-vkey.d.mts +6 -0
- package/dist/autogen/types/tx/tx-close-account.d.mts +12 -0
- package/dist/autogen/types/tx/tx-contract-blank-reward.d.mts +5 -0
- package/dist/autogen/types/tx/tx-contract-transfer-reward.d.mts +8 -0
- package/dist/autogen/types/tx/tx-create-asset-object.d.mts +10 -0
- package/dist/autogen/types/tx/tx-create-contract.d.mts +17 -0
- package/dist/autogen/types/tx/tx-create-synth-account.d.mts +7 -0
- package/dist/autogen/types/tx/tx-create-token.d.mts +10 -0
- package/dist/autogen/types/tx/tx-create-vm-engine.d.mts +8 -0
- package/dist/autogen/types/tx/tx-dummy.d.mts +3 -0
- package/dist/autogen/types/tx/tx-finalize.d.mts +6 -0
- package/dist/autogen/types/tx/tx-freeze-account.d.mts +5 -0
- package/dist/autogen/types/tx/tx-genesis-account.d.mts +11 -0
- package/dist/autogen/types/tx/tx-lead-vtx.d.mts +9 -0
- package/dist/autogen/types/tx/tx-lock-stake-for-vme.d.mts +7 -0
- package/dist/autogen/types/tx/tx-open-account.d.mts +18 -0
- package/dist/autogen/types/tx/tx-post-data-synth-account.d.mts +9 -0
- package/dist/autogen/types/tx/tx-post-data.d.mts +11 -0
- package/dist/autogen/types/tx/tx-provide-script.d.mts +16 -0
- package/dist/autogen/types/tx/tx-revoke.d.mts +16 -0
- package/dist/autogen/types/tx/tx-transfer-asset-object.d.mts +8 -0
- package/dist/autogen/types/tx/tx-transfer-coin-express.d.mts +8 -0
- package/dist/autogen/types/tx/tx-transfer-coin.d.mts +7 -0
- package/dist/autogen/types/tx/tx-transfer-token.d.mts +11 -0
- package/dist/autogen/types/tx/tx-unlock-stake.d.mts +7 -0
- package/dist/autogen/types/tx/tx-vm-engine-block.d.mts +6 -0
- package/dist/autogen/types/wasm/grant-consume-result.d.mts +4 -0
- package/dist/autogen/types/wasm/index.d.mts +26 -0
- package/dist/autogen/types/wasm/library-versions.d.mts +6 -0
- package/dist/autogen/types/wasm/param-calculate-tx-link-hash.d.mts +3 -0
- package/dist/autogen/types/wasm/param-code-core-script.d.mts +3 -0
- package/dist/autogen/types/wasm/param-convert-currency.d.mts +5 -0
- package/dist/autogen/types/wasm/param-create-account-and-keystore.d.mts +6 -0
- package/dist/autogen/types/wasm/param-create-master-keystore.d.mts +6 -0
- package/dist/autogen/types/wasm/param-create-normal-key.d.mts +4 -0
- package/dist/autogen/types/wasm/param-create-normal-keystore.d.mts +8 -0
- package/dist/autogen/types/wasm/param-derive-keys-from-mnemonic-and-path.d.mts +4 -0
- package/dist/autogen/types/wasm/param-derive-keys-from-mnemonic.d.mts +6 -0
- package/dist/autogen/types/wasm/param-encode-tx-currency.d.mts +3 -0
- package/dist/autogen/types/wasm/param-encode-tx-number.d.mts +4 -0
- package/dist/autogen/types/wasm/param-generate-mnemonic-by-seed.d.mts +3 -0
- package/dist/autogen/types/wasm/param-generate-mnemonic.d.mts +3 -0
- package/dist/autogen/types/wasm/param-get-home-shard.d.mts +4 -0
- package/dist/autogen/types/wasm/param-hash.d.mts +4 -0
- package/dist/autogen/types/wasm/param-load-keystore.d.mts +4 -0
- package/dist/autogen/types/wasm/param-make-currency.d.mts +4 -0
- package/dist/autogen/types/wasm/param-sign-by-master-key.d.mts +4 -0
- package/dist/autogen/types/wasm/param-sign-key-bind.d.mts +5 -0
- package/dist/autogen/types/wasm/param-sign.d.mts +4 -0
- package/dist/autogen/types/wasm/param-test-core-script.d.mts +7 -0
- package/dist/autogen/types/wasm/param-txs.d.mts +3 -0
- package/dist/autogen/types/wasm/param-verify-merkle-proof.d.mts +5 -0
- package/dist/autogen/types/wasm/param-verify.d.mts +5 -0
- package/dist/autogen/walletActions.d.mts +41 -0
- package/dist/autogen/wasm/crypto_aimer.d.mts +2 -0
- package/dist/autogen/wasm/crypto_haetae.d.mts +2 -0
- package/dist/autogen/wasm/crypto_smaugt.d.mts +2 -0
- package/dist/autogen/wasm/lclib.wasm +0 -0
- package/dist/autogen/wasm.d.mts +72 -0
- package/dist/chunks/account-BAsiKnSL.cjs +77 -0
- package/dist/chunks/account-BSrvZ7S8.js +77 -0
- package/dist/chunks/account-FZT9LH_s.js +71 -0
- package/dist/chunks/address-class-CHAZYhdZ.js +14 -0
- package/dist/chunks/address-class-Cjy48Uqk.cjs +16 -0
- package/dist/chunks/address-class-Dp7aNQb2.js +18 -0
- package/dist/chunks/base-BQXfRsuw.js +23 -0
- package/dist/chunks/base-B_kRRfsf.js +27 -0
- package/dist/chunks/base-Cy5SSYLF.cjs +25 -0
- package/dist/chunks/debugWalletActions-6qjkZVq9.cjs +995 -0
- package/dist/chunks/debugWalletActions-BDz-h2tl.js +993 -0
- package/dist/chunks/debugWalletActions-D5-Ds7Hl.js +900 -0
- package/dist/chunks/keystore-BFVSylSw.js +139 -0
- package/dist/chunks/keystore-BbK5pVrh.cjs +145 -0
- package/dist/chunks/keystore-BexHKV9z.js +143 -0
- package/dist/chunks/lclib-BfTIyj-E.js +3838 -0
- package/dist/chunks/lclib-C2eG5HzD.js +3818 -0
- package/dist/chunks/lclib-DuoOR0-Q.cjs +3822 -0
- package/dist/chunks/rpc-BlPk44QH.js +22 -0
- package/dist/chunks/rpc-C4n7t9y0.js +25 -0
- package/dist/chunks/rpc-DwWIkUva.cjs +25 -0
- package/dist/chunks/transport-BBAz1kmP.js +30 -0
- package/dist/chunks/transport-VThNtzck.cjs +30 -0
- package/dist/chunks/transport-ktAPuqsc.js +26 -0
- package/dist/chunks/tslib.es6-Cfi3-HmA.cjs +35 -0
- package/dist/chunks/tslib.es6-D29rxPkW.js +37 -0
- package/dist/chunks/tslib.es6-WQS2tr1v.js +33 -0
- package/dist/chunks/tx-type-BPkhMGad.js +64 -0
- package/dist/chunks/tx-type-CS4wIUJ8.js +68 -0
- package/dist/chunks/tx-type-DI_nKG8B.cjs +66 -0
- package/dist/chunks/wasm-3Ghi_Hxd.js +213 -0
- package/dist/chunks/wasm-BtPcXTR4.js +166 -0
- package/dist/chunks/wasm-DTyHBxcY.cjs +213 -0
- package/dist/clients/createClient.d.mts +8 -0
- package/dist/clients/createLocusPublicClient.d.mts +100 -0
- package/dist/clients/createLocusWalletClient.d.mts +56 -0
- package/dist/clients/createPublicClient.d.mts +6 -0
- package/dist/clients/createWalletClient.d.mts +8 -0
- package/dist/clients/index.amd.js +97 -0
- package/dist/clients/index.cjs.cjs +104 -0
- package/dist/clients/index.d.cts +6 -0
- package/dist/clients/index.d.mts +6 -0
- package/dist/clients/index.esm.js +98 -0
- package/dist/clients/types.d.mts +19 -0
- package/dist/constant/index.amd.js +458 -0
- package/dist/constant/index.cjs.cjs +459 -0
- package/dist/constant/index.d.cts +513 -0
- package/dist/constant/index.d.mts +513 -0
- package/dist/constant/index.esm.js +451 -0
- package/dist/contracts/abis/erc20.d.mts +174 -0
- package/dist/contracts/abis/index.d.mts +1 -0
- package/dist/contracts/getContract.d.mts +33 -0
- package/dist/contracts/index.amd.js +19640 -0
- package/dist/contracts/index.cjs.cjs +19642 -0
- package/dist/contracts/index.d.cts +2 -0
- package/dist/contracts/index.d.mts +2 -0
- package/dist/contracts/index.esm.js +19639 -0
- package/dist/errors/account.d.mts +45 -0
- package/dist/errors/base.d.mts +13 -0
- package/dist/errors/index.amd.js +17 -0
- package/dist/errors/index.cjs.cjs +20 -0
- package/dist/errors/index.d.cts +4 -0
- package/dist/errors/index.d.mts +4 -0
- package/dist/errors/index.esm.js +4 -0
- package/dist/errors/rpc.d.mts +21 -0
- package/dist/errors/transport.d.mts +21 -0
- package/dist/index.amd.js +43 -0
- package/dist/index.cjs.cjs +58 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.esm.js +16 -0
- package/dist/transports/http.d.mts +9 -0
- package/dist/transports/index.amd.js +98 -0
- package/dist/transports/index.cjs.cjs +101 -0
- package/dist/transports/index.d.cts +2 -0
- package/dist/transports/index.d.mts +2 -0
- package/dist/transports/index.esm.js +99 -0
- package/dist/transports/types.d.mts +36 -0
- package/dist/types/index.d.cts +11 -0
- package/dist/types/index.d.mts +11 -0
- package/dist/types/primitives.d.mts +5 -0
- package/dist/utils/index.amd.js +323 -0
- package/dist/utils/index.cjs.cjs +330 -0
- package/dist/utils/index.d.cts +41 -0
- package/dist/utils/index.d.mts +41 -0
- package/dist/utils/index.esm.js +271 -0
- package/dist/utils/keystore.d.mts +87 -0
- package/dist/utils/lclib.d.mts +2 -0
- package/dist/utils/locus-wasm-bridge.d.mts +1 -0
- package/dist/utils/tx-validator.d.mts +26 -0
- package/dist/utils/types.d.mts +15 -0
- package/dist/utils/wasm-fetch.d.mts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import { A as AddressClass$1 } from '../chunks/address-class-CHAZYhdZ.js';
|
|
2
|
+
import { T as TxType$1 } from '../chunks/tx-type-BPkhMGad.js';
|
|
3
|
+
|
|
4
|
+
// Automatically generated file. DO NOT EDIT.
|
|
5
|
+
const CurrencyUnit = Object.freeze({
|
|
6
|
+
Exa: 6,
|
|
7
|
+
Peta: 5,
|
|
8
|
+
Tera: 4,
|
|
9
|
+
Giga: 3,
|
|
10
|
+
Mega: 2,
|
|
11
|
+
Kilo: 1,
|
|
12
|
+
Locus: 0,
|
|
13
|
+
Milli: -1,
|
|
14
|
+
Micro: -2,
|
|
15
|
+
Nano: -3,
|
|
16
|
+
Pico: -4,
|
|
17
|
+
Femto: -5,
|
|
18
|
+
Ato: -6,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Automatically generated file. DO NOT EDIT.
|
|
22
|
+
const TxTypes$1 = {
|
|
23
|
+
"TX_ACCEPT_SCRIPT": {
|
|
24
|
+
"fee": "10000000000000",
|
|
25
|
+
"grant": 0,
|
|
26
|
+
"sizeBased": false,
|
|
27
|
+
"useGrant": false,
|
|
28
|
+
"useFee": false
|
|
29
|
+
},
|
|
30
|
+
"TX_ACCEPT_SCRIPT_AFTER_TIMELOCK": {
|
|
31
|
+
"fee": "10000000000000",
|
|
32
|
+
"grant": 0,
|
|
33
|
+
"sizeBased": false,
|
|
34
|
+
"useGrant": false,
|
|
35
|
+
"useFee": false
|
|
36
|
+
},
|
|
37
|
+
"TX_ACTIVATE_ALL_ASSETS": {
|
|
38
|
+
"fee": "10000000000000",
|
|
39
|
+
"grant": 0,
|
|
40
|
+
"sizeBased": false,
|
|
41
|
+
"useGrant": false,
|
|
42
|
+
"useFee": false
|
|
43
|
+
},
|
|
44
|
+
"TX_ACTIVATE_ASSETOBJECT": {
|
|
45
|
+
"fee": "10000000000000",
|
|
46
|
+
"grant": 0,
|
|
47
|
+
"sizeBased": false,
|
|
48
|
+
"useGrant": false,
|
|
49
|
+
"useFee": false
|
|
50
|
+
},
|
|
51
|
+
"TX_ACTIVATE_CALL_CONTRACT": {
|
|
52
|
+
"fee": "10000000000000",
|
|
53
|
+
"grant": 0,
|
|
54
|
+
"sizeBased": false,
|
|
55
|
+
"useGrant": false,
|
|
56
|
+
"useFee": false
|
|
57
|
+
},
|
|
58
|
+
"TX_ACTIVATE_COIN": {
|
|
59
|
+
"fee": "10000000000000",
|
|
60
|
+
"grant": 0,
|
|
61
|
+
"sizeBased": false,
|
|
62
|
+
"useGrant": false,
|
|
63
|
+
"useFee": false
|
|
64
|
+
},
|
|
65
|
+
"TX_ACTIVATE_CONTRACT_RESULT": {
|
|
66
|
+
"fee": "10000000000000",
|
|
67
|
+
"grant": 0,
|
|
68
|
+
"sizeBased": false,
|
|
69
|
+
"useGrant": false,
|
|
70
|
+
"useFee": false
|
|
71
|
+
},
|
|
72
|
+
"TX_ACTIVATE_CONTRACT_REWARD": {
|
|
73
|
+
"fee": "10000000000000",
|
|
74
|
+
"grant": 0,
|
|
75
|
+
"sizeBased": false,
|
|
76
|
+
"useGrant": false,
|
|
77
|
+
"useFee": false
|
|
78
|
+
},
|
|
79
|
+
"TX_ACTIVATE_CONTRACT_TRANSFER": {
|
|
80
|
+
"fee": "10000000000000",
|
|
81
|
+
"grant": 0,
|
|
82
|
+
"sizeBased": false,
|
|
83
|
+
"useGrant": false,
|
|
84
|
+
"useFee": false
|
|
85
|
+
},
|
|
86
|
+
"TX_ACTIVATE_DATA_SA": {
|
|
87
|
+
"fee": "10000000000000",
|
|
88
|
+
"grant": 0,
|
|
89
|
+
"sizeBased": false,
|
|
90
|
+
"useGrant": false,
|
|
91
|
+
"useFee": false
|
|
92
|
+
},
|
|
93
|
+
"TX_ACTIVATE_FOUNDATION_RESERVE": {
|
|
94
|
+
"fee": "10000000000000",
|
|
95
|
+
"grant": 0,
|
|
96
|
+
"sizeBased": false,
|
|
97
|
+
"useGrant": false,
|
|
98
|
+
"useFee": false
|
|
99
|
+
},
|
|
100
|
+
"TX_ACTIVATE_INCENTIVE": {
|
|
101
|
+
"fee": "10000000000000",
|
|
102
|
+
"grant": 0,
|
|
103
|
+
"sizeBased": false,
|
|
104
|
+
"useGrant": false,
|
|
105
|
+
"useFee": false
|
|
106
|
+
},
|
|
107
|
+
"TX_ACTIVATE_LOCK_STAKE_FOR_VME": {
|
|
108
|
+
"fee": "10000000000000",
|
|
109
|
+
"grant": 0,
|
|
110
|
+
"sizeBased": false,
|
|
111
|
+
"useGrant": false,
|
|
112
|
+
"useFee": false
|
|
113
|
+
},
|
|
114
|
+
"TX_ACTIVATE_OPEN_CONTRACT": {
|
|
115
|
+
"fee": "10000000000000",
|
|
116
|
+
"grant": 0,
|
|
117
|
+
"sizeBased": false,
|
|
118
|
+
"useGrant": false,
|
|
119
|
+
"useFee": false
|
|
120
|
+
},
|
|
121
|
+
"TX_ACTIVATE_OPEN_SA": {
|
|
122
|
+
"fee": "10000000000000",
|
|
123
|
+
"grant": 0,
|
|
124
|
+
"sizeBased": false,
|
|
125
|
+
"useGrant": false,
|
|
126
|
+
"useFee": false
|
|
127
|
+
},
|
|
128
|
+
"TX_ACTIVATE_OPEN_VME": {
|
|
129
|
+
"fee": "10000000000000",
|
|
130
|
+
"grant": 0,
|
|
131
|
+
"sizeBased": false,
|
|
132
|
+
"useGrant": false,
|
|
133
|
+
"useFee": false
|
|
134
|
+
},
|
|
135
|
+
"TX_ACTIVATE_TOKEN": {
|
|
136
|
+
"fee": "10000000000000",
|
|
137
|
+
"grant": 0,
|
|
138
|
+
"sizeBased": false,
|
|
139
|
+
"useGrant": false,
|
|
140
|
+
"useFee": false
|
|
141
|
+
},
|
|
142
|
+
"TX_BECOME_GUEST": {
|
|
143
|
+
"fee": "100000000000000",
|
|
144
|
+
"grant": 0,
|
|
145
|
+
"sizeBased": false,
|
|
146
|
+
"useGrant": false,
|
|
147
|
+
"useFee": true
|
|
148
|
+
},
|
|
149
|
+
"TX_BECOME_HOST": {
|
|
150
|
+
"fee": "10000000000000",
|
|
151
|
+
"grant": 0,
|
|
152
|
+
"sizeBased": false,
|
|
153
|
+
"useGrant": false,
|
|
154
|
+
"useFee": false
|
|
155
|
+
},
|
|
156
|
+
"TX_BURN_ASSETOBJECT": {
|
|
157
|
+
"fee": "1000000000000000",
|
|
158
|
+
"grant": 0,
|
|
159
|
+
"sizeBased": false,
|
|
160
|
+
"useGrant": false,
|
|
161
|
+
"useFee": true
|
|
162
|
+
},
|
|
163
|
+
"TX_BURN_TOKEN": {
|
|
164
|
+
"fee": "1000000000000000",
|
|
165
|
+
"grant": 0,
|
|
166
|
+
"sizeBased": false,
|
|
167
|
+
"useGrant": false,
|
|
168
|
+
"useFee": true
|
|
169
|
+
},
|
|
170
|
+
"TX_CALL_CONTRACT": {
|
|
171
|
+
"fee": "10000000000000",
|
|
172
|
+
"grant": 0,
|
|
173
|
+
"sizeBased": false,
|
|
174
|
+
"useGrant": true,
|
|
175
|
+
"useFee": false
|
|
176
|
+
},
|
|
177
|
+
"TX_CALL_CONTRACT_FEE": {
|
|
178
|
+
"fee": "10000000000000",
|
|
179
|
+
"grant": 0,
|
|
180
|
+
"sizeBased": false,
|
|
181
|
+
"useGrant": false,
|
|
182
|
+
"useFee": false
|
|
183
|
+
},
|
|
184
|
+
"TX_CHANGE_FOUNDATION_ACCOUNT": {
|
|
185
|
+
"fee": "10000000000000",
|
|
186
|
+
"grant": 0,
|
|
187
|
+
"sizeBased": false,
|
|
188
|
+
"useGrant": false,
|
|
189
|
+
"useFee": false
|
|
190
|
+
},
|
|
191
|
+
"TX_CHANGE_KEYPAIR": {
|
|
192
|
+
"fee": "100000000000000",
|
|
193
|
+
"grant": 0,
|
|
194
|
+
"sizeBased": false,
|
|
195
|
+
"useGrant": false,
|
|
196
|
+
"useFee": true
|
|
197
|
+
},
|
|
198
|
+
"TX_CHANGE_VKEY": {
|
|
199
|
+
"fee": "100000000000000",
|
|
200
|
+
"grant": 0,
|
|
201
|
+
"sizeBased": false,
|
|
202
|
+
"useGrant": false,
|
|
203
|
+
"useFee": true
|
|
204
|
+
},
|
|
205
|
+
"TX_CLOSE_ACCOUNT": {
|
|
206
|
+
"fee": "10000000000000",
|
|
207
|
+
"grant": 0,
|
|
208
|
+
"sizeBased": false,
|
|
209
|
+
"useGrant": false,
|
|
210
|
+
"useFee": false
|
|
211
|
+
},
|
|
212
|
+
"TX_CONTRACT_BLANK_REWARD": {
|
|
213
|
+
"fee": "10000000000000",
|
|
214
|
+
"grant": 0,
|
|
215
|
+
"sizeBased": false,
|
|
216
|
+
"useGrant": false,
|
|
217
|
+
"useFee": false
|
|
218
|
+
},
|
|
219
|
+
"TX_CONTRACT_TRANSFER_REWARD": {
|
|
220
|
+
"fee": "10000000000000",
|
|
221
|
+
"grant": 0,
|
|
222
|
+
"sizeBased": false,
|
|
223
|
+
"useGrant": false,
|
|
224
|
+
"useFee": false
|
|
225
|
+
},
|
|
226
|
+
"TX_CREATE_ASSETOBJECT": {
|
|
227
|
+
"fee": "10000000000000",
|
|
228
|
+
"grant": 1000,
|
|
229
|
+
"sizeBased": false,
|
|
230
|
+
"useGrant": true,
|
|
231
|
+
"useFee": false
|
|
232
|
+
},
|
|
233
|
+
"TX_CREATE_ASSETOBJECT_FEE": {
|
|
234
|
+
"fee": "1000000000000000",
|
|
235
|
+
"grant": 0,
|
|
236
|
+
"sizeBased": false,
|
|
237
|
+
"useGrant": false,
|
|
238
|
+
"useFee": true
|
|
239
|
+
},
|
|
240
|
+
"TX_CREATE_CONTRACT": {
|
|
241
|
+
"fee": "10000000000000",
|
|
242
|
+
"grant": 0,
|
|
243
|
+
"sizeBased": false,
|
|
244
|
+
"useGrant": true,
|
|
245
|
+
"useFee": false
|
|
246
|
+
},
|
|
247
|
+
"TX_CREATE_CONTRACT_FEE": {
|
|
248
|
+
"fee": "10000000000000",
|
|
249
|
+
"grant": 0,
|
|
250
|
+
"sizeBased": false,
|
|
251
|
+
"useGrant": false,
|
|
252
|
+
"useFee": false
|
|
253
|
+
},
|
|
254
|
+
"TX_CREATE_SA": {
|
|
255
|
+
"fee": "10000000000000",
|
|
256
|
+
"grant": 1000,
|
|
257
|
+
"sizeBased": false,
|
|
258
|
+
"useGrant": true,
|
|
259
|
+
"useFee": false
|
|
260
|
+
},
|
|
261
|
+
"TX_CREATE_SA_FEE": {
|
|
262
|
+
"fee": "1000000000000000",
|
|
263
|
+
"grant": 0,
|
|
264
|
+
"sizeBased": false,
|
|
265
|
+
"useGrant": false,
|
|
266
|
+
"useFee": true
|
|
267
|
+
},
|
|
268
|
+
"TX_CREATE_TOKEN": {
|
|
269
|
+
"fee": "10000000000000",
|
|
270
|
+
"grant": 1000,
|
|
271
|
+
"sizeBased": false,
|
|
272
|
+
"useGrant": true,
|
|
273
|
+
"useFee": false
|
|
274
|
+
},
|
|
275
|
+
"TX_CREATE_TOKEN_FEE": {
|
|
276
|
+
"fee": "1000000000000000",
|
|
277
|
+
"grant": 0,
|
|
278
|
+
"sizeBased": false,
|
|
279
|
+
"useGrant": false,
|
|
280
|
+
"useFee": true
|
|
281
|
+
},
|
|
282
|
+
"TX_CREATE_VME": {
|
|
283
|
+
"fee": "10000000000000",
|
|
284
|
+
"grant": 0,
|
|
285
|
+
"sizeBased": false,
|
|
286
|
+
"useGrant": false,
|
|
287
|
+
"useFee": false
|
|
288
|
+
},
|
|
289
|
+
"TX_FINALIZE": {
|
|
290
|
+
"fee": "10000000000000",
|
|
291
|
+
"grant": 0,
|
|
292
|
+
"sizeBased": false,
|
|
293
|
+
"useGrant": false,
|
|
294
|
+
"useFee": false
|
|
295
|
+
},
|
|
296
|
+
"TX_FREEZE_ACCOUNT": {
|
|
297
|
+
"fee": "100000000000000",
|
|
298
|
+
"grant": 0,
|
|
299
|
+
"sizeBased": false,
|
|
300
|
+
"useGrant": false,
|
|
301
|
+
"useFee": true
|
|
302
|
+
},
|
|
303
|
+
"TX_GENESIS_ACCOUNT": {
|
|
304
|
+
"fee": "10000000000000",
|
|
305
|
+
"grant": 0,
|
|
306
|
+
"sizeBased": false,
|
|
307
|
+
"useGrant": false,
|
|
308
|
+
"useFee": false
|
|
309
|
+
},
|
|
310
|
+
"TX_LEAD_VTX": {
|
|
311
|
+
"fee": "10000000000000",
|
|
312
|
+
"grant": 0,
|
|
313
|
+
"sizeBased": false,
|
|
314
|
+
"useGrant": false,
|
|
315
|
+
"useFee": false
|
|
316
|
+
},
|
|
317
|
+
"TX_LOCK_STAKE_FOR_VME": {
|
|
318
|
+
"fee": "10000000000000",
|
|
319
|
+
"grant": 0,
|
|
320
|
+
"sizeBased": false,
|
|
321
|
+
"useGrant": false,
|
|
322
|
+
"useFee": false
|
|
323
|
+
},
|
|
324
|
+
"TX_OPEN_ACCOUNT": {
|
|
325
|
+
"fee": "10000000000000",
|
|
326
|
+
"grant": 0,
|
|
327
|
+
"sizeBased": false,
|
|
328
|
+
"useGrant": false,
|
|
329
|
+
"useFee": false
|
|
330
|
+
},
|
|
331
|
+
"TX_POST_DATA": {
|
|
332
|
+
"fee": "10000000000000",
|
|
333
|
+
"grant": 1000,
|
|
334
|
+
"sizeBased": false,
|
|
335
|
+
"useGrant": true,
|
|
336
|
+
"useFee": false
|
|
337
|
+
},
|
|
338
|
+
"TX_POST_DATA_FEE": {
|
|
339
|
+
"fee": "0",
|
|
340
|
+
"grant": 0,
|
|
341
|
+
"sizeBased": true,
|
|
342
|
+
"useGrant": false,
|
|
343
|
+
"useFee": true
|
|
344
|
+
},
|
|
345
|
+
"TX_POST_DATA_SA": {
|
|
346
|
+
"fee": "10000000000000",
|
|
347
|
+
"grant": 1000,
|
|
348
|
+
"sizeBased": false,
|
|
349
|
+
"useGrant": true,
|
|
350
|
+
"useFee": false
|
|
351
|
+
},
|
|
352
|
+
"TX_POST_DATA_SA_FEE": {
|
|
353
|
+
"fee": "0",
|
|
354
|
+
"grant": 0,
|
|
355
|
+
"sizeBased": true,
|
|
356
|
+
"useGrant": false,
|
|
357
|
+
"useFee": true
|
|
358
|
+
},
|
|
359
|
+
"TX_PROVIDE_SCRIPT": {
|
|
360
|
+
"fee": "0",
|
|
361
|
+
"grant": 0,
|
|
362
|
+
"sizeBased": true,
|
|
363
|
+
"useGrant": false,
|
|
364
|
+
"useFee": true
|
|
365
|
+
},
|
|
366
|
+
"TX_REVOKE": {
|
|
367
|
+
"fee": "10000000000000",
|
|
368
|
+
"grant": 0,
|
|
369
|
+
"sizeBased": false,
|
|
370
|
+
"useGrant": false,
|
|
371
|
+
"useFee": true
|
|
372
|
+
},
|
|
373
|
+
"TX_TRANSFER_ASSETOBJECT": {
|
|
374
|
+
"fee": "10000000000000",
|
|
375
|
+
"grant": 1000,
|
|
376
|
+
"sizeBased": false,
|
|
377
|
+
"useGrant": true,
|
|
378
|
+
"useFee": false
|
|
379
|
+
},
|
|
380
|
+
"TX_TRANSFER_ASSETOBJECT_FEE": {
|
|
381
|
+
"fee": "20000000000000",
|
|
382
|
+
"grant": 0,
|
|
383
|
+
"sizeBased": false,
|
|
384
|
+
"useGrant": false,
|
|
385
|
+
"useFee": true
|
|
386
|
+
},
|
|
387
|
+
"TX_TRANSFER_COIN": {
|
|
388
|
+
"fee": "10000000000000",
|
|
389
|
+
"grant": 1000,
|
|
390
|
+
"sizeBased": false,
|
|
391
|
+
"useGrant": true,
|
|
392
|
+
"useFee": false
|
|
393
|
+
},
|
|
394
|
+
"TX_TRANSFER_COIN_EXPRESS": {
|
|
395
|
+
"fee": "10000000000000",
|
|
396
|
+
"grant": 0,
|
|
397
|
+
"sizeBased": false,
|
|
398
|
+
"useGrant": false,
|
|
399
|
+
"useFee": false
|
|
400
|
+
},
|
|
401
|
+
"TX_TRANSFER_COIN_FEE": {
|
|
402
|
+
"fee": "10000000000000",
|
|
403
|
+
"grant": 0,
|
|
404
|
+
"sizeBased": false,
|
|
405
|
+
"useGrant": false,
|
|
406
|
+
"useFee": true
|
|
407
|
+
},
|
|
408
|
+
"TX_TRANSFER_TOKEN": {
|
|
409
|
+
"fee": "10000000000000",
|
|
410
|
+
"grant": 1000,
|
|
411
|
+
"sizeBased": false,
|
|
412
|
+
"useGrant": true,
|
|
413
|
+
"useFee": false
|
|
414
|
+
},
|
|
415
|
+
"TX_TRANSFER_TOKEN_FEE": {
|
|
416
|
+
"fee": "0",
|
|
417
|
+
"grant": 0,
|
|
418
|
+
"sizeBased": true,
|
|
419
|
+
"useGrant": false,
|
|
420
|
+
"useFee": true
|
|
421
|
+
},
|
|
422
|
+
"TX_UNLOCK_STAKE": {
|
|
423
|
+
"fee": "10000000000000",
|
|
424
|
+
"grant": 0,
|
|
425
|
+
"sizeBased": false,
|
|
426
|
+
"useGrant": false,
|
|
427
|
+
"useFee": false
|
|
428
|
+
},
|
|
429
|
+
"TX_VME_BLOCK": {
|
|
430
|
+
"fee": "10000000000000",
|
|
431
|
+
"grant": 0,
|
|
432
|
+
"sizeBased": false,
|
|
433
|
+
"useGrant": false,
|
|
434
|
+
"useFee": false
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
// Automatically generated file. DO NOT EDIT.
|
|
439
|
+
const MaxVMRewardsCount = 10;
|
|
440
|
+
const GRANT_COST_PER_TX = 1000;
|
|
441
|
+
|
|
442
|
+
const TxTypes = TxTypes$1;
|
|
443
|
+
const TxType = TxType$1;
|
|
444
|
+
const Currency = CurrencyUnit;
|
|
445
|
+
const AddressClass = AddressClass$1;
|
|
446
|
+
const FeeType = Object.freeze({
|
|
447
|
+
AUTO: 0,
|
|
448
|
+
GRANT_ONLY: 1
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* getContract({ abi: erc20Abi, ... }) 에서 쓰는 최소 ERC-20 ABI.
|
|
3
|
+
* 기존 on-chain 컨트랙트와 그대로 매칭되도록 legacy support/erc20-helper/
|
|
4
|
+
* erc20.mts 의 정의를 변경 없이 그대로 옮겨왔다.
|
|
5
|
+
*/
|
|
6
|
+
export declare const erc20Abi: readonly [{
|
|
7
|
+
readonly constant: true;
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly name: "name";
|
|
10
|
+
readonly outputs: readonly [{
|
|
11
|
+
readonly name: "";
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
}];
|
|
14
|
+
readonly payable: false;
|
|
15
|
+
readonly stateMutability: "view";
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
}, {
|
|
18
|
+
readonly constant: false;
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly name: "_spender";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "_value";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}];
|
|
26
|
+
readonly name: "approve";
|
|
27
|
+
readonly outputs: readonly [{
|
|
28
|
+
readonly name: "";
|
|
29
|
+
readonly type: "bool";
|
|
30
|
+
}];
|
|
31
|
+
readonly payable: false;
|
|
32
|
+
readonly stateMutability: "nonpayable";
|
|
33
|
+
readonly type: "function";
|
|
34
|
+
}, {
|
|
35
|
+
readonly constant: true;
|
|
36
|
+
readonly inputs: readonly [];
|
|
37
|
+
readonly name: "totalSupply";
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
}];
|
|
42
|
+
readonly payable: false;
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
}, {
|
|
46
|
+
readonly constant: false;
|
|
47
|
+
readonly inputs: readonly [{
|
|
48
|
+
readonly name: "_from";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "_to";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "_value";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
}];
|
|
57
|
+
readonly name: "transferFrom";
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly type: "bool";
|
|
61
|
+
}];
|
|
62
|
+
readonly payable: false;
|
|
63
|
+
readonly stateMutability: "nonpayable";
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
}, {
|
|
66
|
+
readonly constant: true;
|
|
67
|
+
readonly inputs: readonly [];
|
|
68
|
+
readonly name: "decimals";
|
|
69
|
+
readonly outputs: readonly [{
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "uint8";
|
|
72
|
+
}];
|
|
73
|
+
readonly payable: false;
|
|
74
|
+
readonly stateMutability: "view";
|
|
75
|
+
readonly type: "function";
|
|
76
|
+
}, {
|
|
77
|
+
readonly constant: true;
|
|
78
|
+
readonly inputs: readonly [{
|
|
79
|
+
readonly name: "_owner";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}];
|
|
82
|
+
readonly name: "balanceOf";
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly name: "balance";
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
}];
|
|
87
|
+
readonly payable: false;
|
|
88
|
+
readonly stateMutability: "view";
|
|
89
|
+
readonly type: "function";
|
|
90
|
+
}, {
|
|
91
|
+
readonly constant: true;
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "symbol";
|
|
94
|
+
readonly outputs: readonly [{
|
|
95
|
+
readonly name: "";
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
}];
|
|
98
|
+
readonly payable: false;
|
|
99
|
+
readonly stateMutability: "view";
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
}, {
|
|
102
|
+
readonly constant: false;
|
|
103
|
+
readonly inputs: readonly [{
|
|
104
|
+
readonly name: "_to";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "_value";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
}];
|
|
110
|
+
readonly name: "transfer";
|
|
111
|
+
readonly outputs: readonly [{
|
|
112
|
+
readonly name: "";
|
|
113
|
+
readonly type: "bool";
|
|
114
|
+
}];
|
|
115
|
+
readonly payable: false;
|
|
116
|
+
readonly stateMutability: "nonpayable";
|
|
117
|
+
readonly type: "function";
|
|
118
|
+
}, {
|
|
119
|
+
readonly constant: true;
|
|
120
|
+
readonly inputs: readonly [{
|
|
121
|
+
readonly name: "_owner";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "_spender";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}];
|
|
127
|
+
readonly name: "allowance";
|
|
128
|
+
readonly outputs: readonly [{
|
|
129
|
+
readonly name: "";
|
|
130
|
+
readonly type: "uint256";
|
|
131
|
+
}];
|
|
132
|
+
readonly payable: false;
|
|
133
|
+
readonly stateMutability: "view";
|
|
134
|
+
readonly type: "function";
|
|
135
|
+
}, {
|
|
136
|
+
readonly payable: true;
|
|
137
|
+
readonly stateMutability: "payable";
|
|
138
|
+
readonly type: "fallback";
|
|
139
|
+
}, {
|
|
140
|
+
readonly anonymous: false;
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly indexed: true;
|
|
143
|
+
readonly name: "owner";
|
|
144
|
+
readonly type: "address";
|
|
145
|
+
}, {
|
|
146
|
+
readonly indexed: true;
|
|
147
|
+
readonly name: "spender";
|
|
148
|
+
readonly type: "address";
|
|
149
|
+
}, {
|
|
150
|
+
readonly indexed: false;
|
|
151
|
+
readonly name: "value";
|
|
152
|
+
readonly type: "uint256";
|
|
153
|
+
}];
|
|
154
|
+
readonly name: "Approval";
|
|
155
|
+
readonly type: "event";
|
|
156
|
+
}, {
|
|
157
|
+
readonly anonymous: false;
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly indexed: true;
|
|
160
|
+
readonly name: "from";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly indexed: true;
|
|
164
|
+
readonly name: "to";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly indexed: false;
|
|
168
|
+
readonly name: "value";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "Transfer";
|
|
172
|
+
readonly type: "event";
|
|
173
|
+
}];
|
|
174
|
+
export type Erc20Abi = typeof erc20Abi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './erc20.mjs';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Client } from '../clients/types.mjs';
|
|
2
|
+
import type { Address } from '../types/primitives.mjs';
|
|
3
|
+
export type InterfaceAbi = ReadonlyArray<Record<string, unknown>> | string | readonly string[];
|
|
4
|
+
export type ReadCallOptions = {
|
|
5
|
+
/** view 호출의 주체 account. 기본값은 client.account?.address (있으면) 또는 컨트랙트 주소. */
|
|
6
|
+
caller?: Address;
|
|
7
|
+
amount?: string;
|
|
8
|
+
fuelLimit?: string;
|
|
9
|
+
};
|
|
10
|
+
export type GetContractArgs = {
|
|
11
|
+
address: Address;
|
|
12
|
+
abi: InterfaceAbi;
|
|
13
|
+
client: Client;
|
|
14
|
+
};
|
|
15
|
+
export type ContractReadFn = (args?: readonly unknown[], opts?: ReadCallOptions) => Promise<unknown>;
|
|
16
|
+
export type ContractInstance = {
|
|
17
|
+
address: Address;
|
|
18
|
+
abi: InterfaceAbi;
|
|
19
|
+
read: Record<string, ContractReadFn>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Locus 의 debug_viewContract RPC 위에 viem 스타일 컨트랙트 핸들을 만든다.
|
|
23
|
+
* `read.<fn>` 은 ethers(v5) 의 Interface 로 호출을 인코딩하고, 결과 바이트를
|
|
24
|
+
* convertHexToData 로 Locus `func` 필드에 담아 보낸 뒤, 응답 hex 를
|
|
25
|
+
* Interface.decodeFunctionResult 로 다시 디코딩한다.
|
|
26
|
+
*
|
|
27
|
+
* write 메서드는 이번 단계에서는 의도적으로 빠져 있다. 상태를 바꾸는 호출
|
|
28
|
+
* 은 생성된 wallet action 을 직접 사용한다:
|
|
29
|
+
*
|
|
30
|
+
* import { callContract } from '@locuschain/lib/autogen';
|
|
31
|
+
* await wallet.extend(debugWalletActions).callContract({ ... });
|
|
32
|
+
*/
|
|
33
|
+
export declare function getContract(args: GetContractArgs): ContractInstance;
|