@locuschain/lib 0.2.2 → 0.2.4
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.cts +58 -0
- package/dist/accounts/index.amd.js +1 -1
- package/dist/accounts/index.cjs.cjs +1 -1
- package/dist/accounts/index.d.cts +5 -5
- package/dist/accounts/index.esm.js +1 -1
- package/dist/accounts/keys/index.d.cts +2 -0
- package/dist/accounts/keys/localKeySource.d.cts +23 -0
- package/dist/accounts/keys/toKeySource.d.cts +14 -0
- package/dist/accounts/keysToAccount.d.cts +19 -0
- package/dist/accounts/mnemonicToAccount.d.cts +25 -0
- package/dist/accounts/signing/txKeyPolicy.d.cts +21 -0
- package/dist/accounts/types.d.cts +100 -0
- package/dist/actions/wallet/_deriveTxAdditions.d.cts +18 -0
- package/dist/actions/wallet/_prepareTransaction.d.cts +15 -0
- package/dist/actions/wallet/_sendPreparedTransaction.d.cts +9 -0
- package/dist/actions/wallet/_signLocusTransaction.d.cts +14 -0
- package/dist/actions/wallet/index.d.cts +5 -0
- package/dist/actions/wallet/types.d.cts +38 -0
- package/dist/autogen/actions/debug/index.d.cts +2 -0
- package/dist/autogen/actions/debug/public/allHeights.d.cts +3 -0
- package/dist/autogen/actions/debug/public/balanceGrantList.d.cts +2 -0
- package/dist/autogen/actions/debug/public/balanceList.d.cts +2 -0
- package/dist/autogen/actions/debug/public/createAccount.d.cts +3 -0
- package/dist/autogen/actions/debug/public/createNode.d.cts +4 -0
- package/dist/autogen/actions/debug/public/dumpAllAccounts.d.cts +3 -0
- package/dist/autogen/actions/debug/public/echo.d.cts +2 -0
- package/dist/autogen/actions/debug/public/gameChainCmd.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getAccountsBalances.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getAccountsHeights.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getGuestsInfo.d.cts +3 -0
- package/dist/autogen/actions/debug/public/getHomeShard.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getImportAccount.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getImportAccountLog.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getKeys.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getNodeBlocks.d.cts +3 -0
- package/dist/autogen/actions/debug/public/getPeerPool.d.cts +2 -0
- package/dist/autogen/actions/debug/public/getPeersInfo.d.cts +3 -0
- package/dist/autogen/actions/debug/public/getVmeLog.d.cts +4 -0
- package/dist/autogen/actions/debug/public/getVmeLog.d.mts +4 -0
- package/dist/autogen/actions/debug/public/importAccount.d.cts +4 -0
- package/dist/autogen/actions/debug/public/index.d.cts +29 -0
- package/dist/autogen/actions/debug/public/index.d.mts +2 -2
- package/dist/autogen/actions/debug/public/initReliableNodes.d.cts +4 -0
- package/dist/autogen/actions/debug/public/noArgsRets.d.cts +2 -0
- package/dist/autogen/actions/debug/public/nodeCmd.d.cts +3 -0
- package/dist/autogen/actions/debug/public/removeHoldTxs.d.cts +4 -0
- package/dist/autogen/actions/debug/public/requestVme.d.cts +4 -0
- package/dist/autogen/actions/debug/public/sendRawTransaction.d.cts +4 -0
- package/dist/autogen/actions/debug/public/setImportAccountTx.d.cts +4 -0
- package/dist/autogen/actions/debug/public/setReliableNode.d.cts +4 -0
- package/dist/autogen/actions/debug/public/viewVme.d.cts +4 -0
- package/dist/autogen/actions/debug/public/viewVme.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/callVme.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/callVme.d.mts +4 -0
- package/dist/autogen/actions/debug/wallet/createSynthAccount.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/index.d.cts +3 -0
- package/dist/autogen/actions/debug/wallet/index.d.mts +1 -2
- package/dist/autogen/actions/debug/wallet/postDataToSynthAccount.d.cts +4 -0
- package/dist/autogen/actions/index.d.cts +3 -0
- package/dist/autogen/actions/public/accountHeightsToDownload.d.cts +4 -0
- package/dist/autogen/actions/public/accountHeightsToUpload.d.cts +4 -0
- package/dist/autogen/actions/public/calculateSpentByForwardCoin.d.cts +4 -0
- package/dist/autogen/actions/public/calculateSpentByForwardCoin.d.mts +4 -0
- package/dist/autogen/actions/public/clientMessage.d.cts +3 -0
- package/dist/autogen/actions/public/downloadAccountTxs.d.cts +4 -0
- package/dist/autogen/actions/public/echo.d.cts +2 -0
- package/dist/autogen/actions/public/findDuplicateSubscriber.d.cts +4 -0
- package/dist/autogen/actions/public/generateLatestStoredDataProof.d.cts +4 -0
- package/dist/autogen/actions/public/getAccountAssetList.d.cts +4 -0
- package/dist/autogen/actions/public/getAccountAssetObject.d.cts +4 -0
- package/dist/autogen/actions/public/getAccountDetail.d.cts +4 -0
- package/dist/autogen/actions/public/getAccountHistory.d.cts +4 -0
- package/dist/autogen/actions/public/getAccountTokenList.d.cts +4 -0
- package/dist/autogen/actions/public/getConciseNodeStatus.d.cts +3 -0
- package/dist/autogen/actions/public/getGenesisAccount.d.cts +3 -0
- package/dist/autogen/actions/public/getIdentityProof.d.cts +4 -0
- package/dist/autogen/actions/public/getInactiveTxList.d.cts +4 -0
- package/dist/autogen/actions/public/getMontInfoList.d.cts +4 -0
- package/dist/autogen/actions/public/getNodeStatus.d.cts +3 -0
- package/dist/autogen/actions/public/getOwnerBalance.d.cts +3 -0
- package/dist/autogen/actions/public/getRoundState.d.cts +4 -0
- package/dist/autogen/actions/public/getRoundState.d.mts +1 -1
- package/dist/autogen/actions/public/getRoundStatesList.d.cts +4 -0
- package/dist/autogen/actions/public/getShardOfAccount.d.cts +4 -0
- package/dist/autogen/actions/public/getSyncState.d.cts +3 -0
- package/dist/autogen/actions/public/getTx.d.cts +4 -0
- package/dist/autogen/actions/public/getWorldRoundState.d.cts +4 -0
- package/dist/autogen/actions/public/getWorldRoundStatesList.d.cts +4 -0
- package/dist/autogen/actions/public/hasSystemToken.d.cts +4 -0
- package/dist/autogen/actions/public/index.d.cts +38 -0
- package/dist/autogen/actions/public/index.d.mts +1 -1
- package/dist/autogen/actions/public/makeTxProof.d.cts +4 -0
- package/dist/autogen/actions/public/queryAddress.d.cts +4 -0
- package/dist/autogen/actions/public/readTxListWitness.d.cts +4 -0
- package/dist/autogen/actions/public/setHost.d.cts +3 -0
- package/dist/autogen/actions/public/subscribeAddress.d.cts +4 -0
- package/dist/autogen/actions/public/uploadAccountTxs.d.cts +3 -0
- package/dist/autogen/actions/public/verifyAndSignChallenge.d.cts +4 -0
- package/dist/autogen/actions/public/verifyIdentityProof.d.cts +4 -0
- package/dist/autogen/actions/public/verifyLatestStoredDataProof.d.cts +3 -0
- package/dist/autogen/actions/public/verifyTxListWitness.d.cts +3 -0
- package/dist/autogen/actions/wallet/acceptScript.d.cts +4 -0
- package/dist/autogen/actions/wallet/becomeGuest.d.cts +4 -0
- package/dist/autogen/actions/wallet/becomeHost.d.cts +4 -0
- package/dist/autogen/actions/wallet/changeKey.d.cts +4 -0
- package/dist/autogen/actions/wallet/changeVkey.d.cts +4 -0
- package/dist/autogen/actions/wallet/closeAccount.d.cts +4 -0
- package/dist/autogen/actions/wallet/createAssetObject.d.cts +4 -0
- package/dist/autogen/actions/wallet/createToken.d.cts +4 -0
- package/dist/autogen/actions/wallet/createVme.d.cts +4 -0
- package/dist/autogen/actions/wallet/forwardCoin.d.cts +4 -0
- package/dist/autogen/actions/wallet/forwardCoin.d.mts +4 -0
- package/dist/autogen/actions/wallet/freezeAccount.d.cts +4 -0
- package/dist/autogen/actions/wallet/index.d.cts +20 -0
- package/dist/autogen/actions/wallet/index.d.mts +1 -1
- package/dist/autogen/actions/wallet/lockStake.d.cts +4 -0
- package/dist/autogen/actions/wallet/openAccount.d.cts +4 -0
- package/dist/autogen/actions/wallet/postData.d.cts +4 -0
- package/dist/autogen/actions/wallet/provideScript.d.cts +4 -0
- package/dist/autogen/actions/wallet/requestDataTrade.d.cts +4 -0
- package/dist/autogen/actions/wallet/transferAssetObject.d.cts +4 -0
- package/dist/autogen/actions/wallet/transferCoin.d.cts +4 -0
- package/dist/autogen/actions/wallet/transferToken.d.cts +4 -0
- package/dist/autogen/actions/wallet/unlockStake.d.cts +4 -0
- package/dist/autogen/debugPublicActions.d.cts +47 -0
- package/dist/autogen/debugPublicActions.d.mts +4 -4
- package/dist/autogen/debugWalletActions.d.cts +9 -0
- package/dist/autogen/debugWalletActions.d.mts +2 -4
- package/dist/autogen/index.amd.js +6 -7
- package/dist/autogen/index.cjs.cjs +6 -7
- package/dist/autogen/index.d.cts +8 -8
- package/dist/autogen/index.esm.js +5 -6
- package/dist/autogen/locus-tx.d.cts +5 -0
- package/dist/autogen/locus-tx.d.mts +2 -2
- package/dist/autogen/publicActions.d.cts +66 -0
- package/dist/autogen/publicActions.d.mts +2 -2
- package/dist/autogen/rpc-api-spec.d.cts +208 -0
- package/dist/autogen/rpc-api-spec.d.mts +13 -15
- package/dist/autogen/types/common/addr-tx-proof.d.cts +5 -0
- package/dist/autogen/types/common/asset-object-meta.d.cts +2 -0
- package/dist/autogen/types/common/asset-object-meta.d.mts +2 -0
- package/dist/autogen/types/common/asset-object-transfer.d.cts +6 -0
- package/dist/autogen/types/common/asset-object-transfer.d.mts +0 -2
- package/dist/autogen/types/common/asset-object.d.cts +11 -0
- package/dist/autogen/types/common/asset-object.d.mts +2 -1
- package/dist/autogen/types/common/asset-transfer-info.d.cts +9 -0
- package/dist/autogen/types/common/base-meta.d.cts +1 -0
- package/dist/autogen/types/common/caller-key-proof.d.cts +8 -0
- package/dist/autogen/types/common/caller-key-proof.d.mts +8 -0
- package/dist/autogen/types/common/contract-exec-status.d.cts +16 -0
- package/dist/autogen/types/common/contract-transfer-info.d.cts +7 -0
- package/dist/autogen/types/common/direct-call-request.d.cts +11 -0
- package/dist/autogen/types/common/direct-call-request.d.mts +11 -0
- package/dist/autogen/types/common/get-peers-info.d.cts +9 -0
- package/dist/autogen/types/common/index-value-pair.d.cts +4 -0
- package/dist/autogen/types/common/index.d.cts +58 -0
- package/dist/autogen/types/common/index.d.mts +6 -2
- package/dist/autogen/types/common/input-params-data-transfer.d.cts +8 -0
- package/dist/autogen/types/common/key-bind-info.d.cts +4 -0
- package/dist/autogen/types/common/merkle-proof-multi-meta.d.cts +2 -0
- package/dist/autogen/types/common/merkle-proof-multi-meta.d.mts +2 -0
- package/dist/autogen/types/common/mont-info.d.cts +4 -0
- package/dist/autogen/types/common/object-amount-transfer.d.cts +5 -0
- package/dist/autogen/types/common/object-amount.d.cts +4 -0
- package/dist/autogen/types/common/output-download-account-txs.d.cts +4 -0
- package/dist/autogen/types/common/param-str.d.cts +3 -0
- package/dist/autogen/types/common/param-tx-data.d.cts +5 -0
- package/dist/autogen/types/common/params-token-value-pair.d.cts +4 -0
- package/dist/autogen/types/common/public-height-chunk.d.cts +4 -0
- package/dist/autogen/types/common/ref-tx-info.d.cts +5 -0
- package/dist/autogen/types/common/ref-vtx.d.cts +5 -0
- package/dist/autogen/types/common/ref-vtx.d.mts +0 -1
- package/dist/autogen/types/common/res-changed-entry.d.cts +5 -0
- package/dist/autogen/types/common/res-changed-entry.d.mts +5 -0
- package/dist/autogen/types/common/ret-type-base.d.cts +1 -0
- package/dist/autogen/types/common/round-state-abstract.d.cts +11 -0
- package/dist/autogen/types/common/rpc-account-height.d.cts +5 -0
- package/dist/autogen/types/common/rpc-accounts-balances-result.d.cts +4 -0
- package/dist/autogen/types/common/rpc-asset-list-values.d.cts +7 -0
- package/dist/autogen/types/common/rpc-data-trade-result.d.cts +5 -0
- package/dist/autogen/types/common/rpc-token-balance-pair.d.cts +4 -0
- package/dist/autogen/types/common/token-value-ab.d.cts +5 -0
- package/dist/autogen/types/common/token-value-pair.d.cts +4 -0
- package/dist/autogen/types/common/transaction-sender-index.d.cts +7 -0
- package/dist/autogen/types/common/transfer-info.d.cts +6 -0
- package/dist/autogen/types/common/transfer-info.d.mts +0 -1
- package/dist/autogen/types/common/tx-base.d.cts +13 -0
- package/dist/autogen/types/common/tx-base.d.mts +1 -1
- package/dist/autogen/types/common/tx-hash-elements.d.cts +6 -0
- package/dist/autogen/types/common/tx-key-height-hash.d.cts +4 -0
- package/dist/autogen/types/common/tx-key-nround.d.cts +5 -0
- package/dist/autogen/types/common/tx-key.d.cts +4 -0
- package/dist/autogen/types/common/tx-meta.d.cts +2 -0
- package/dist/autogen/types/common/tx-no-signature.d.cts +1 -0
- package/dist/autogen/types/common/tx-recv-set-meta.d.cts +2 -0
- package/dist/autogen/types/common/tx-restore-res-hash-proof.d.cts +9 -0
- package/dist/autogen/types/common/tx-restore-res-hash-proof.d.mts +9 -0
- package/dist/autogen/types/common/tx-sign-key.d.cts +1 -0
- package/dist/autogen/types/common/tx-signature.d.cts +3 -0
- package/dist/autogen/types/common/tx-vsignature.d.cts +3 -0
- package/dist/autogen/types/common/vm-engine-block.d.cts +17 -0
- package/dist/autogen/types/common/vm-engine-block.d.mts +6 -0
- package/dist/autogen/types/common/vm-reward.d.cts +4 -0
- package/dist/autogen/types/common/vm-tx-state.d.cts +25 -0
- package/dist/autogen/types/common/vm-tx-state.d.mts +5 -7
- package/dist/autogen/types/common/vme-block-meta.d.cts +2 -0
- package/dist/autogen/types/common/vme-info.d.cts +3 -0
- package/dist/autogen/types/common/vme-lock-stake.d.cts +4 -0
- package/dist/autogen/types/common/vote-info-rpc.d.cts +5 -0
- package/dist/autogen/types/common/vtx-meta.d.cts +2 -0
- package/dist/autogen/types/common/wrs-validators-info.d.cts +5 -0
- package/dist/autogen/types/consts/address-class.d.cts +10 -0
- package/dist/autogen/types/consts/address-class.d.mts +6 -7
- package/dist/autogen/types/consts/consts.d.cts +2 -0
- package/dist/autogen/types/consts/currency-unit.d.cts +15 -0
- package/dist/autogen/types/consts/index.d.cts +3 -0
- package/dist/autogen/types/consts/tx-type.d.cts +61 -0
- package/dist/autogen/types/consts/tx-type.d.mts +13 -13
- package/dist/autogen/types/consts/tx-types.d.cts +415 -0
- package/dist/autogen/types/consts/tx-types.d.mts +46 -46
- package/dist/autogen/types/rpc/heights-result.d.cts +4 -0
- package/dist/autogen/types/rpc/index.d.cts +107 -0
- package/dist/autogen/types/rpc/index.d.mts +8 -8
- package/dist/autogen/types/rpc/params-accept-script.d.cts +8 -0
- package/dist/autogen/types/rpc/params-account-and-index.d.cts +4 -0
- package/dist/autogen/types/rpc/params-account-heights.d.cts +5 -0
- package/dist/autogen/types/rpc/params-account-history.d.cts +5 -0
- package/dist/autogen/types/rpc/params-account.d.cts +3 -0
- package/dist/autogen/types/rpc/params-accounts.d.cts +3 -0
- package/dist/autogen/types/rpc/params-become-guest.d.cts +5 -0
- package/dist/autogen/types/rpc/params-become-host.d.cts +5 -0
- package/dist/autogen/types/rpc/{params-calculate-spent-by-express.d.mts → params-calculate-spent-by-forward-coin.d.cts} +1 -1
- package/dist/autogen/types/rpc/params-calculate-spent-by-forward-coin.d.mts +5 -0
- package/dist/autogen/types/rpc/{params-create-contract.d.mts → params-call-vme.d.cts} +6 -7
- package/dist/autogen/types/rpc/{params-call-contract.d.mts → params-call-vme.d.mts} +4 -4
- package/dist/autogen/types/rpc/params-change-key.d.cts +8 -0
- package/dist/autogen/types/rpc/params-change-vkey.d.cts +5 -0
- package/dist/autogen/types/rpc/params-close-account.d.cts +7 -0
- package/dist/autogen/types/rpc/params-create-asset-object.d.cts +10 -0
- package/dist/autogen/types/rpc/params-create-node.d.cts +4 -0
- package/dist/autogen/types/rpc/params-create-synth-account.d.cts +8 -0
- package/dist/autogen/types/rpc/params-create-token.d.cts +7 -0
- package/dist/autogen/types/rpc/params-create-vme.d.cts +8 -0
- package/dist/autogen/types/rpc/params-download-account-txs.d.cts +6 -0
- package/dist/autogen/types/rpc/params-find-duplicate-subscriber.d.cts +3 -0
- package/dist/autogen/types/rpc/params-forward-coin.d.cts +7 -0
- package/dist/autogen/types/rpc/{params-transfer-coin-express.d.mts → params-forward-coin.d.mts} +1 -1
- package/dist/autogen/types/rpc/params-freeze-account.d.cts +5 -0
- package/dist/autogen/types/rpc/params-game-chain-cmd.d.cts +5 -0
- package/dist/autogen/types/rpc/params-generate-latest-stored-data-proof.d.cts +5 -0
- package/dist/autogen/types/rpc/params-generate-latest-stored-data-proof.d.mts +2 -1
- package/dist/autogen/types/rpc/params-get-asset-list.d.cts +4 -0
- package/dist/autogen/types/rpc/params-get-asset-objects.d.cts +4 -0
- package/dist/autogen/types/rpc/params-get-home-shard.d.cts +3 -0
- package/dist/autogen/types/rpc/params-get-identity-proof.d.cts +4 -0
- package/dist/autogen/types/rpc/params-get-import-account.d.cts +3 -0
- package/dist/autogen/types/rpc/params-import-account.d.cts +7 -0
- package/dist/autogen/types/rpc/params-init-reliable-nodes.d.cts +5 -0
- package/dist/autogen/types/rpc/params-latest-stored-data-proof.d.cts +4 -0
- package/dist/autogen/types/rpc/params-lock-stake.d.cts +7 -0
- package/dist/autogen/types/rpc/params-open-account.d.cts +11 -0
- package/dist/autogen/types/rpc/params-post-data-to-synth-account.d.cts +11 -0
- package/dist/autogen/types/rpc/params-provide-script.d.cts +14 -0
- package/dist/autogen/types/rpc/params-query-address.d.cts +3 -0
- package/dist/autogen/types/rpc/params-read-tx-list.d.cts +5 -0
- package/dist/autogen/types/rpc/params-remove-hold-txs.d.cts +5 -0
- package/dist/autogen/types/rpc/params-request-data-trade.d.cts +10 -0
- package/dist/autogen/types/rpc/params-request-vme.d.cts +5 -0
- package/dist/autogen/types/rpc/params-request-vme.d.mts +1 -0
- package/dist/autogen/types/rpc/params-round-list.d.cts +4 -0
- package/dist/autogen/types/rpc/params-round.d.cts +3 -0
- package/dist/autogen/types/rpc/params-rs.d.cts +4 -0
- package/dist/autogen/types/rpc/params-send-raw-transaction.d.cts +4 -0
- package/dist/autogen/types/rpc/params-set-host.d.cts +4 -0
- package/dist/autogen/types/rpc/params-set-import-account-tx.d.cts +5 -0
- package/dist/autogen/types/rpc/params-set-reliable-node.d.cts +4 -0
- package/dist/autogen/types/rpc/params-subscribe-address.d.cts +4 -0
- package/dist/autogen/types/rpc/params-transfer-asset-object.d.cts +9 -0
- package/dist/autogen/types/rpc/params-transfer-coin.d.cts +8 -0
- package/dist/autogen/types/rpc/params-transfer-tokens.d.cts +14 -0
- package/dist/autogen/types/rpc/params-tx-list-witness.d.cts +6 -0
- package/dist/autogen/types/rpc/params-tx-list.d.cts +5 -0
- package/dist/autogen/types/rpc/params-unlock-stake.d.cts +7 -0
- package/dist/autogen/types/rpc/params-upload-account-txs.d.cts +5 -0
- package/dist/autogen/types/rpc/params-verify-and-sign-challenge.d.cts +8 -0
- package/dist/autogen/types/rpc/params-verify-identity-proof.d.cts +6 -0
- package/dist/autogen/types/rpc/{params-contract-log.d.mts → params-vme-log.d.cts} +3 -2
- package/dist/autogen/types/rpc/params-vme-log.d.mts +7 -0
- package/dist/autogen/types/rpc/result-dump-accounts.d.cts +4 -0
- package/dist/autogen/types/rpc/round-state-detail.d.cts +16 -0
- package/dist/autogen/types/{common → rpc}/round-state-detail.d.mts +1 -1
- package/dist/autogen/types/rpc/rpc-bool-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-coin-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-forward-coin-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-create-account-result.d.cts +7 -0
- package/dist/autogen/types/rpc/rpc-create-node-result.d.cts +5 -0
- package/dist/autogen/types/rpc/rpc-create-tx-result.d.cts +7 -0
- package/dist/autogen/types/rpc/rpc-find-duplicate-subscriber-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-game-chain-cmd-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-generate-latest-stored-data-proof-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-get-account-asset-list-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-get-account-asset-object-result.d.cts +5 -0
- package/dist/autogen/types/rpc/rpc-get-account-detail-result.d.cts +11 -0
- package/dist/autogen/types/rpc/rpc-get-account-history-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-account-token-list-result.d.cts +6 -0
- package/dist/autogen/types/rpc/rpc-get-accounts-balances-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-accounts-heights-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-concise-node-status-result.d.cts +18 -0
- package/dist/autogen/types/rpc/rpc-get-genesis-account-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-guests-info-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-home-shard-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-identity-proof-result.d.cts +6 -0
- package/dist/autogen/types/rpc/rpc-get-import-account-result.d.cts +10 -0
- package/dist/autogen/types/rpc/rpc-get-inactive-tx-list-result.d.cts +14 -0
- package/dist/autogen/types/rpc/rpc-get-keys-result.d.cts +7 -0
- package/dist/autogen/types/rpc/rpc-get-mont-info-list-result.d.cts +5 -0
- package/dist/autogen/types/rpc/rpc-get-node-blocks-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-node-status-result.d.cts +28 -0
- package/dist/autogen/types/rpc/rpc-get-shard-of-account-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-get-sync-state-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-tx-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-vme-log-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-get-vme-log-result.d.mts +3 -0
- package/dist/autogen/types/rpc/rpc-get-world-round-state-result.d.cts +13 -0
- package/dist/autogen/types/rpc/rpc-get-world-round-states-list-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-has-system-token-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-import-account-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-node-cmd-result.d.cts +5 -0
- package/dist/autogen/types/rpc/rpc-query-address-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-read-tx-list-witness-result.d.cts +6 -0
- package/dist/autogen/types/rpc/rpc-request-vme-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-send-raw-transaction-result.d.cts +1 -0
- package/dist/autogen/types/rpc/rpc-set-import-account-tx-result.d.cts +5 -0
- package/dist/autogen/types/rpc/rpc-subscribe-address-result.d.cts +1 -0
- package/dist/autogen/types/rpc/rpc-verify-and-sign-challenge-result.d.cts +8 -0
- package/dist/autogen/types/rpc/rpc-verify-identity-proof-result.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-view-vme-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-view-vme-result.d.mts +3 -0
- package/dist/autogen/types/rpc/upload-heights-result.d.cts +6 -0
- package/dist/autogen/types/tx/index.d.cts +51 -0
- package/dist/autogen/types/tx/index.d.mts +15 -14
- package/dist/autogen/types/tx/tx-accept-script-after-time-lock.d.cts +12 -0
- package/dist/autogen/types/tx/tx-accept-script.d.cts +15 -0
- package/dist/autogen/types/tx/tx-activate-all-res.d.cts +16 -0
- package/dist/autogen/types/tx/{tx-activate-all-assets.d.mts → tx-activate-all-res.d.mts} +4 -3
- package/dist/autogen/types/tx/tx-activate-asset-object.d.cts +11 -0
- package/dist/autogen/types/tx/tx-activate-asset-object.d.mts +4 -2
- package/dist/autogen/types/tx/tx-activate-coin.d.cts +9 -0
- package/dist/autogen/types/tx/tx-activate-data-synth-account.d.cts +12 -0
- package/dist/autogen/types/tx/tx-activate-foundation-reserve.d.cts +7 -0
- package/dist/autogen/types/tx/tx-activate-incentive.d.cts +11 -0
- package/dist/autogen/types/tx/tx-activate-lock-stake-for-vme.d.cts +9 -0
- package/dist/autogen/types/tx/tx-activate-open-synth-account.d.cts +9 -0
- package/dist/autogen/types/tx/tx-activate-open-vme.d.cts +11 -0
- package/dist/autogen/types/tx/{tx-activate-open-vm-engine.d.mts → tx-activate-open-vme.d.mts} +1 -1
- package/dist/autogen/types/tx/tx-activate-token.d.cts +12 -0
- package/dist/autogen/types/tx/tx-activate-vme-result.d.cts +20 -0
- package/dist/autogen/types/tx/{tx-activate-contract-result.d.mts → tx-activate-vme-result.d.mts} +6 -4
- package/dist/autogen/types/tx/tx-activate-vme-reward.d.cts +8 -0
- package/dist/autogen/types/tx/{tx-activate-contract-reward.d.mts → tx-activate-vme-reward.d.mts} +1 -1
- package/dist/autogen/types/tx/tx-activate-vme-transfer.d.cts +17 -0
- package/dist/autogen/types/tx/{tx-activate-contract-transfer.d.mts → tx-activate-vme-transfer.d.mts} +6 -4
- package/dist/autogen/types/tx/tx-become-guest.d.cts +10 -0
- package/dist/autogen/types/tx/tx-become-host.d.cts +7 -0
- package/dist/autogen/types/tx/tx-burn-asset-object.d.cts +10 -0
- package/dist/autogen/types/tx/tx-burn-asset-object.d.mts +4 -2
- package/dist/autogen/types/tx/tx-burn-token.d.cts +10 -0
- package/dist/autogen/types/tx/tx-call-vme.d.cts +18 -0
- package/dist/autogen/types/tx/{tx-create-contract.d.mts → tx-call-vme.d.mts} +8 -7
- package/dist/autogen/types/tx/tx-change-foundation-account.d.cts +6 -0
- package/dist/autogen/types/tx/tx-change-keypair.d.cts +10 -0
- package/dist/autogen/types/tx/tx-change-vkey.d.cts +6 -0
- package/dist/autogen/types/tx/tx-close-account.d.cts +12 -0
- package/dist/autogen/types/tx/tx-close-account.d.mts +2 -2
- package/dist/autogen/types/tx/tx-create-asset-object.d.cts +10 -0
- package/dist/autogen/types/tx/tx-create-synth-account.d.cts +7 -0
- package/dist/autogen/types/tx/tx-create-token.d.cts +10 -0
- package/dist/autogen/types/tx/tx-create-vme.d.cts +8 -0
- package/dist/autogen/types/tx/{tx-create-vm-engine.d.mts → tx-create-vme.d.mts} +1 -1
- package/dist/autogen/types/tx/tx-dummy.d.cts +3 -0
- package/dist/autogen/types/tx/tx-finalize.d.cts +6 -0
- package/dist/autogen/types/tx/tx-forward-asset-object.d.cts +10 -0
- package/dist/autogen/types/tx/tx-forward-asset-object.d.mts +10 -0
- package/dist/autogen/types/tx/tx-forward-coin.d.cts +9 -0
- package/dist/autogen/types/tx/{tx-transfer-coin-express.d.mts → tx-forward-coin.d.mts} +2 -1
- package/dist/autogen/types/tx/tx-forward-token.d.cts +10 -0
- package/dist/autogen/types/tx/tx-forward-token.d.mts +10 -0
- package/dist/autogen/types/tx/tx-freeze-account.d.cts +5 -0
- package/dist/autogen/types/tx/tx-genesis-account.d.cts +11 -0
- package/dist/autogen/types/tx/tx-lead-direct-vtx.d.cts +11 -0
- package/dist/autogen/types/tx/tx-lead-direct-vtx.d.mts +11 -0
- package/dist/autogen/types/tx/tx-lead-vtx.d.cts +9 -0
- package/dist/autogen/types/tx/tx-lead-vtx.d.mts +1 -1
- package/dist/autogen/types/tx/tx-lock-stake-for-vme.d.cts +7 -0
- package/dist/autogen/types/tx/tx-open-account.d.cts +18 -0
- package/dist/autogen/types/tx/tx-post-data-synth-account.d.cts +9 -0
- package/dist/autogen/types/tx/tx-post-data.d.cts +11 -0
- package/dist/autogen/types/tx/tx-provide-script.d.cts +16 -0
- package/dist/autogen/types/tx/tx-restore-res-hash.d.cts +12 -0
- package/dist/autogen/types/tx/{tx-call-contract.d.mts → tx-restore-res-hash.d.mts} +4 -8
- package/dist/autogen/types/tx/tx-revoke.d.cts +18 -0
- package/dist/autogen/types/tx/tx-revoke.d.mts +4 -2
- package/dist/autogen/types/tx/tx-transfer-asset-object.d.cts +10 -0
- package/dist/autogen/types/tx/tx-transfer-asset-object.d.mts +4 -2
- package/dist/autogen/types/tx/tx-transfer-coin.d.cts +7 -0
- package/dist/autogen/types/tx/tx-transfer-token.d.cts +11 -0
- package/dist/autogen/types/tx/tx-unlock-stake.d.cts +7 -0
- package/dist/autogen/types/tx/tx-vme-blank-reward.d.cts +5 -0
- package/dist/autogen/types/tx/{tx-contract-blank-reward.d.mts → tx-vme-blank-reward.d.mts} +1 -1
- package/dist/autogen/types/tx/tx-vme-block.d.cts +7 -0
- package/dist/autogen/types/tx/{tx-vm-engine-block.d.mts → tx-vme-block.d.mts} +2 -1
- package/dist/autogen/types/tx/tx-vme-transfer-reward.d.cts +8 -0
- package/dist/autogen/types/tx/{tx-contract-transfer-reward.d.mts → tx-vme-transfer-reward.d.mts} +1 -1
- package/dist/autogen/types/wasm/grant-consume-result.d.cts +4 -0
- package/dist/autogen/types/wasm/index.d.cts +26 -0
- package/dist/autogen/types/wasm/library-versions.d.cts +6 -0
- package/dist/autogen/types/wasm/param-calculate-tx-link-hash.d.cts +3 -0
- package/dist/autogen/types/wasm/param-code-core-script.d.cts +3 -0
- package/dist/autogen/types/wasm/param-convert-currency.d.cts +5 -0
- package/dist/autogen/types/wasm/param-create-account-and-keystore.d.cts +6 -0
- package/dist/autogen/types/wasm/param-create-master-keystore.d.cts +6 -0
- package/dist/autogen/types/wasm/param-create-normal-key.d.cts +4 -0
- package/dist/autogen/types/wasm/param-create-normal-keystore.d.cts +8 -0
- package/dist/autogen/types/wasm/param-derive-keys-from-mnemonic-and-path.d.cts +4 -0
- package/dist/autogen/types/wasm/param-derive-keys-from-mnemonic.d.cts +6 -0
- package/dist/autogen/types/wasm/param-encode-tx-currency.d.cts +3 -0
- package/dist/autogen/types/wasm/param-encode-tx-number.d.cts +4 -0
- package/dist/autogen/types/wasm/param-generate-mnemonic-by-seed.d.cts +3 -0
- package/dist/autogen/types/wasm/param-generate-mnemonic.d.cts +3 -0
- package/dist/autogen/types/wasm/param-get-home-shard.d.cts +4 -0
- package/dist/autogen/types/wasm/param-hash.d.cts +4 -0
- package/dist/autogen/types/wasm/param-load-keystore.d.cts +4 -0
- package/dist/autogen/types/wasm/param-make-currency.d.cts +4 -0
- package/dist/autogen/types/wasm/param-sign-by-master-key.d.cts +4 -0
- package/dist/autogen/types/wasm/param-sign-key-bind.d.cts +5 -0
- package/dist/autogen/types/wasm/param-sign.d.cts +4 -0
- package/dist/autogen/types/wasm/param-test-core-script.d.cts +7 -0
- package/dist/autogen/types/wasm/param-txs.d.cts +3 -0
- package/dist/autogen/types/wasm/param-verify-merkle-proof.d.cts +5 -0
- package/dist/autogen/types/wasm/param-verify.d.cts +5 -0
- package/dist/autogen/walletActions.d.cts +43 -0
- package/dist/autogen/walletActions.d.mts +2 -2
- package/dist/autogen/wasm/crypto_aimer.d.cts +2 -0
- package/dist/autogen/wasm/crypto_haetae.d.cts +2 -0
- package/dist/autogen/wasm/crypto_smaugt.d.cts +2 -0
- package/dist/autogen/wasm/lclib.wasm +0 -0
- package/dist/autogen/wasm.d.cts +72 -0
- package/dist/chunks/{address-class-CHAZYhdZ.js → address-class-3IzotplG.js} +6 -7
- package/dist/chunks/{address-class-Cjy48Uqk.cjs → address-class-B8b7mx1K.cjs} +6 -7
- package/dist/chunks/{address-class-Dp7aNQb2.js → address-class-CDo766LJ.js} +6 -7
- package/dist/chunks/{debugWalletActions-BfX1doiz.js → debugWalletActions-Bd8C-fZB.js} +32 -43
- package/dist/chunks/{debugWalletActions-iCZ1H6xc.cjs → debugWalletActions-DIQY8cBm.cjs} +32 -43
- package/dist/chunks/{debugWalletActions-B96f4kZc.js → debugWalletActions-qkesE_0m.js} +28 -38
- package/dist/chunks/{tx-type-DI_nKG8B.cjs → tx-type-CjORX0H2.cjs} +13 -13
- package/dist/chunks/{tx-type-CS4wIUJ8.js → tx-type-CnfCIc5p.js} +13 -13
- package/dist/chunks/{tx-type-BPkhMGad.js → tx-type-D_IH9tdK.js} +13 -13
- package/dist/clients/createClient.d.cts +8 -0
- package/dist/clients/createLocusPublicClient.d.cts +100 -0
- package/dist/clients/createLocusPublicClient.d.mts +3 -3
- package/dist/clients/createLocusWalletClient.d.cts +56 -0
- package/dist/clients/createLocusWalletClient.d.mts +2 -3
- package/dist/clients/createPublicClient.d.cts +6 -0
- package/dist/clients/createWalletClient.d.cts +8 -0
- package/dist/clients/index.amd.js +1 -1
- package/dist/clients/index.cjs.cjs +1 -1
- package/dist/clients/index.d.cts +6 -6
- package/dist/clients/index.esm.js +1 -1
- package/dist/clients/types.d.cts +21 -0
- package/dist/clients/types.d.mts +2 -0
- package/dist/constant/index.amd.js +63 -63
- package/dist/constant/index.cjs.cjs +64 -64
- package/dist/constant/index.d.cts +67 -68
- package/dist/constant/index.d.mts +65 -66
- package/dist/constant/index.esm.js +64 -64
- package/dist/contracts/abis/erc20.d.cts +174 -0
- package/dist/contracts/abis/index.d.cts +1 -0
- package/dist/contracts/getContract.d.cts +33 -0
- package/dist/contracts/index.d.cts +2 -2
- package/dist/errors/account.d.cts +45 -0
- package/dist/errors/base.d.cts +13 -0
- package/dist/errors/index.d.cts +4 -4
- package/dist/errors/rpc.d.cts +21 -0
- package/dist/errors/transport.d.cts +21 -0
- package/dist/index.amd.js +1 -1
- package/dist/index.cjs.cjs +3 -3
- package/dist/index.d.cts +8 -0
- package/dist/index.esm.js +3 -3
- package/dist/transports/http.d.cts +9 -0
- package/dist/transports/index.d.cts +2 -2
- package/dist/transports/types.d.cts +38 -0
- package/dist/transports/types.d.mts +2 -0
- package/dist/types/index.d.cts +5 -5
- package/dist/types/primitives.d.cts +5 -0
- package/dist/utils/abi.d.cts +88 -0
- package/dist/utils/index.amd.js +3 -6
- package/dist/utils/index.cjs.cjs +3 -6
- package/dist/utils/index.d.cts +8 -9
- package/dist/utils/index.d.mts +3 -4
- package/dist/utils/index.esm.js +4 -6
- package/dist/utils/keystore.d.cts +87 -0
- package/dist/utils/lclib.d.cts +2 -0
- package/dist/utils/locus-wasm-bridge.d.cts +1 -0
- package/dist/utils/tx-validator.d.cts +28 -0
- package/dist/utils/types.d.cts +15 -0
- package/dist/utils/wasm-fetch.d.cts +6 -0
- package/package.json +2 -2
- package/dist/autogen/actions/debug/public/getContractLog.d.mts +0 -4
- package/dist/autogen/actions/debug/public/viewContract.d.mts +0 -4
- package/dist/autogen/actions/debug/wallet/callContract.d.mts +0 -4
- package/dist/autogen/actions/debug/wallet/createContract.d.mts +0 -4
- package/dist/autogen/actions/public/calculateSpentByExpress.d.mts +0 -4
- package/dist/autogen/actions/wallet/transferCoinExpress.d.mts +0 -4
- package/dist/autogen/types/common/asset-proof-objects.d.mts +0 -5
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-express-result.d.mts +0 -3
- package/dist/autogen/types/rpc/rpc-get-contract-log-result.d.mts +0 -3
- package/dist/autogen/types/rpc/rpc-view-contract-result.d.mts +0 -3
- package/dist/autogen/types/tx/tx-activate-call-contract.d.mts +0 -15
- package/dist/autogen/types/tx/tx-activate-open-contract.d.mts +0 -15
|
@@ -8,7 +8,7 @@ const TxType = Object.freeze({
|
|
|
8
8
|
BECOME_GUEST: 'TX_BECOME_GUEST',
|
|
9
9
|
TRANSFER_COIN: 'TX_TRANSFER_COIN',
|
|
10
10
|
TRANSFER_COIN_FEE: 'TX_TRANSFER_COIN_FEE',
|
|
11
|
-
|
|
11
|
+
FORWARD_COIN: 'TX_FORWARD_COIN',
|
|
12
12
|
ACTIVATE_COIN: 'TX_ACTIVATE_COIN',
|
|
13
13
|
ACTIVATE_INCENTIVE: 'TX_ACTIVATE_INCENTIVE',
|
|
14
14
|
ACTIVATE_FOUNDATION_RESERVE: 'TX_ACTIVATE_FOUNDATION_RESERVE',
|
|
@@ -22,16 +22,18 @@ const TxType = Object.freeze({
|
|
|
22
22
|
BURN_TOKEN: 'TX_BURN_TOKEN',
|
|
23
23
|
TRANSFER_TOKEN: 'TX_TRANSFER_TOKEN',
|
|
24
24
|
TRANSFER_TOKEN_FEE: 'TX_TRANSFER_TOKEN_FEE',
|
|
25
|
+
FORWARD_TOKEN: 'TX_FORWARD_TOKEN',
|
|
25
26
|
ACTIVATE_TOKEN: 'TX_ACTIVATE_TOKEN',
|
|
26
27
|
CREATE_ASSETOBJECT: 'TX_CREATE_ASSETOBJECT',
|
|
27
28
|
CREATE_ASSETOBJECT_FEE: 'TX_CREATE_ASSETOBJECT_FEE',
|
|
28
29
|
TRANSFER_ASSETOBJECT: 'TX_TRANSFER_ASSETOBJECT',
|
|
29
30
|
TRANSFER_ASSETOBJECT_FEE: 'TX_TRANSFER_ASSETOBJECT_FEE',
|
|
31
|
+
FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
|
|
30
32
|
ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
|
|
31
33
|
BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
|
|
32
34
|
REVOKE: 'TX_REVOKE',
|
|
33
35
|
CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
|
|
34
|
-
|
|
36
|
+
ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
|
|
35
37
|
PROVIDE_SCRIPT: 'TX_PROVIDE_SCRIPT',
|
|
36
38
|
ACCEPT_SCRIPT: 'TX_ACCEPT_SCRIPT',
|
|
37
39
|
ACCEPT_SCRIPT_AFTER_TIMELOCK: 'TX_ACCEPT_SCRIPT_AFTER_TIMELOCK',
|
|
@@ -47,19 +49,17 @@ const TxType = Object.freeze({
|
|
|
47
49
|
CREATE_VME: 'TX_CREATE_VME',
|
|
48
50
|
ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
|
|
49
51
|
VME_BLOCK: 'TX_VME_BLOCK',
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
ACTIVATE_CONTRACT_RESULT: 'TX_ACTIVATE_CONTRACT_RESULT',
|
|
58
|
-
CONTRACT_TRANSFER_REWARD: 'TX_CONTRACT_TRANSFER_REWARD',
|
|
59
|
-
CONTRACT_BLANK_REWARD: 'TX_CONTRACT_BLANK_REWARD',
|
|
60
|
-
ACTIVATE_CONTRACT_REWARD: 'TX_ACTIVATE_CONTRACT_REWARD',
|
|
52
|
+
CALL_VME: 'TX_CALL_VME',
|
|
53
|
+
CALL_VME_FEE: 'TX_CALL_VME_FEE',
|
|
54
|
+
ACTIVATE_VME_TRANSFER: 'TX_ACTIVATE_VME_TRANSFER',
|
|
55
|
+
ACTIVATE_VME_RESULT: 'TX_ACTIVATE_VME_RESULT',
|
|
56
|
+
VME_TRANSFER_REWARD: 'TX_VME_TRANSFER_REWARD',
|
|
57
|
+
VME_BLANK_REWARD: 'TX_VME_BLANK_REWARD',
|
|
58
|
+
ACTIVATE_VME_REWARD: 'TX_ACTIVATE_VME_REWARD',
|
|
61
59
|
FREEZE_ACCOUNT: 'TX_FREEZE_ACCOUNT',
|
|
60
|
+
RESTORE_RESHASH: 'TX_RESTORE_RESHASH',
|
|
62
61
|
LEAD_VTX: 'TX_LEAD_VTX',
|
|
62
|
+
LEAD_DIRECT_VTX: 'TX_LEAD_DIRECT_VTX',
|
|
63
63
|
FINALIZE: 'TX_FINALIZE',
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -8,7 +8,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
8
8
|
BECOME_GUEST: 'TX_BECOME_GUEST',
|
|
9
9
|
TRANSFER_COIN: 'TX_TRANSFER_COIN',
|
|
10
10
|
TRANSFER_COIN_FEE: 'TX_TRANSFER_COIN_FEE',
|
|
11
|
-
|
|
11
|
+
FORWARD_COIN: 'TX_FORWARD_COIN',
|
|
12
12
|
ACTIVATE_COIN: 'TX_ACTIVATE_COIN',
|
|
13
13
|
ACTIVATE_INCENTIVE: 'TX_ACTIVATE_INCENTIVE',
|
|
14
14
|
ACTIVATE_FOUNDATION_RESERVE: 'TX_ACTIVATE_FOUNDATION_RESERVE',
|
|
@@ -22,16 +22,18 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
22
22
|
BURN_TOKEN: 'TX_BURN_TOKEN',
|
|
23
23
|
TRANSFER_TOKEN: 'TX_TRANSFER_TOKEN',
|
|
24
24
|
TRANSFER_TOKEN_FEE: 'TX_TRANSFER_TOKEN_FEE',
|
|
25
|
+
FORWARD_TOKEN: 'TX_FORWARD_TOKEN',
|
|
25
26
|
ACTIVATE_TOKEN: 'TX_ACTIVATE_TOKEN',
|
|
26
27
|
CREATE_ASSETOBJECT: 'TX_CREATE_ASSETOBJECT',
|
|
27
28
|
CREATE_ASSETOBJECT_FEE: 'TX_CREATE_ASSETOBJECT_FEE',
|
|
28
29
|
TRANSFER_ASSETOBJECT: 'TX_TRANSFER_ASSETOBJECT',
|
|
29
30
|
TRANSFER_ASSETOBJECT_FEE: 'TX_TRANSFER_ASSETOBJECT_FEE',
|
|
31
|
+
FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
|
|
30
32
|
ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
|
|
31
33
|
BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
|
|
32
34
|
REVOKE: 'TX_REVOKE',
|
|
33
35
|
CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
|
|
34
|
-
|
|
36
|
+
ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
|
|
35
37
|
PROVIDE_SCRIPT: 'TX_PROVIDE_SCRIPT',
|
|
36
38
|
ACCEPT_SCRIPT: 'TX_ACCEPT_SCRIPT',
|
|
37
39
|
ACCEPT_SCRIPT_AFTER_TIMELOCK: 'TX_ACCEPT_SCRIPT_AFTER_TIMELOCK',
|
|
@@ -47,19 +49,17 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
47
49
|
CREATE_VME: 'TX_CREATE_VME',
|
|
48
50
|
ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
|
|
49
51
|
VME_BLOCK: 'TX_VME_BLOCK',
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
ACTIVATE_CONTRACT_RESULT: 'TX_ACTIVATE_CONTRACT_RESULT',
|
|
58
|
-
CONTRACT_TRANSFER_REWARD: 'TX_CONTRACT_TRANSFER_REWARD',
|
|
59
|
-
CONTRACT_BLANK_REWARD: 'TX_CONTRACT_BLANK_REWARD',
|
|
60
|
-
ACTIVATE_CONTRACT_REWARD: 'TX_ACTIVATE_CONTRACT_REWARD',
|
|
52
|
+
CALL_VME: 'TX_CALL_VME',
|
|
53
|
+
CALL_VME_FEE: 'TX_CALL_VME_FEE',
|
|
54
|
+
ACTIVATE_VME_TRANSFER: 'TX_ACTIVATE_VME_TRANSFER',
|
|
55
|
+
ACTIVATE_VME_RESULT: 'TX_ACTIVATE_VME_RESULT',
|
|
56
|
+
VME_TRANSFER_REWARD: 'TX_VME_TRANSFER_REWARD',
|
|
57
|
+
VME_BLANK_REWARD: 'TX_VME_BLANK_REWARD',
|
|
58
|
+
ACTIVATE_VME_REWARD: 'TX_ACTIVATE_VME_REWARD',
|
|
61
59
|
FREEZE_ACCOUNT: 'TX_FREEZE_ACCOUNT',
|
|
60
|
+
RESTORE_RESHASH: 'TX_RESTORE_RESHASH',
|
|
62
61
|
LEAD_VTX: 'TX_LEAD_VTX',
|
|
62
|
+
LEAD_DIRECT_VTX: 'TX_LEAD_DIRECT_VTX',
|
|
63
63
|
FINALIZE: 'TX_FINALIZE',
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -6,7 +6,7 @@ const TxType = Object.freeze({
|
|
|
6
6
|
BECOME_GUEST: 'TX_BECOME_GUEST',
|
|
7
7
|
TRANSFER_COIN: 'TX_TRANSFER_COIN',
|
|
8
8
|
TRANSFER_COIN_FEE: 'TX_TRANSFER_COIN_FEE',
|
|
9
|
-
|
|
9
|
+
FORWARD_COIN: 'TX_FORWARD_COIN',
|
|
10
10
|
ACTIVATE_COIN: 'TX_ACTIVATE_COIN',
|
|
11
11
|
ACTIVATE_INCENTIVE: 'TX_ACTIVATE_INCENTIVE',
|
|
12
12
|
ACTIVATE_FOUNDATION_RESERVE: 'TX_ACTIVATE_FOUNDATION_RESERVE',
|
|
@@ -20,16 +20,18 @@ const TxType = Object.freeze({
|
|
|
20
20
|
BURN_TOKEN: 'TX_BURN_TOKEN',
|
|
21
21
|
TRANSFER_TOKEN: 'TX_TRANSFER_TOKEN',
|
|
22
22
|
TRANSFER_TOKEN_FEE: 'TX_TRANSFER_TOKEN_FEE',
|
|
23
|
+
FORWARD_TOKEN: 'TX_FORWARD_TOKEN',
|
|
23
24
|
ACTIVATE_TOKEN: 'TX_ACTIVATE_TOKEN',
|
|
24
25
|
CREATE_ASSETOBJECT: 'TX_CREATE_ASSETOBJECT',
|
|
25
26
|
CREATE_ASSETOBJECT_FEE: 'TX_CREATE_ASSETOBJECT_FEE',
|
|
26
27
|
TRANSFER_ASSETOBJECT: 'TX_TRANSFER_ASSETOBJECT',
|
|
27
28
|
TRANSFER_ASSETOBJECT_FEE: 'TX_TRANSFER_ASSETOBJECT_FEE',
|
|
29
|
+
FORWARD_ASSETOBJECT: 'TX_FORWARD_ASSETOBJECT',
|
|
28
30
|
ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
|
|
29
31
|
BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
|
|
30
32
|
REVOKE: 'TX_REVOKE',
|
|
31
33
|
CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
|
|
32
|
-
|
|
34
|
+
ACTIVATE_ALL_RES: 'TX_ACTIVATE_ALL_RES',
|
|
33
35
|
PROVIDE_SCRIPT: 'TX_PROVIDE_SCRIPT',
|
|
34
36
|
ACCEPT_SCRIPT: 'TX_ACCEPT_SCRIPT',
|
|
35
37
|
ACCEPT_SCRIPT_AFTER_TIMELOCK: 'TX_ACCEPT_SCRIPT_AFTER_TIMELOCK',
|
|
@@ -45,19 +47,17 @@ const TxType = Object.freeze({
|
|
|
45
47
|
CREATE_VME: 'TX_CREATE_VME',
|
|
46
48
|
ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
|
|
47
49
|
VME_BLOCK: 'TX_VME_BLOCK',
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
ACTIVATE_CONTRACT_RESULT: 'TX_ACTIVATE_CONTRACT_RESULT',
|
|
56
|
-
CONTRACT_TRANSFER_REWARD: 'TX_CONTRACT_TRANSFER_REWARD',
|
|
57
|
-
CONTRACT_BLANK_REWARD: 'TX_CONTRACT_BLANK_REWARD',
|
|
58
|
-
ACTIVATE_CONTRACT_REWARD: 'TX_ACTIVATE_CONTRACT_REWARD',
|
|
50
|
+
CALL_VME: 'TX_CALL_VME',
|
|
51
|
+
CALL_VME_FEE: 'TX_CALL_VME_FEE',
|
|
52
|
+
ACTIVATE_VME_TRANSFER: 'TX_ACTIVATE_VME_TRANSFER',
|
|
53
|
+
ACTIVATE_VME_RESULT: 'TX_ACTIVATE_VME_RESULT',
|
|
54
|
+
VME_TRANSFER_REWARD: 'TX_VME_TRANSFER_REWARD',
|
|
55
|
+
VME_BLANK_REWARD: 'TX_VME_BLANK_REWARD',
|
|
56
|
+
ACTIVATE_VME_REWARD: 'TX_ACTIVATE_VME_REWARD',
|
|
59
57
|
FREEZE_ACCOUNT: 'TX_FREEZE_ACCOUNT',
|
|
58
|
+
RESTORE_RESHASH: 'TX_RESTORE_RESHASH',
|
|
60
59
|
LEAD_VTX: 'TX_LEAD_VTX',
|
|
60
|
+
LEAD_DIRECT_VTX: 'TX_LEAD_DIRECT_VTX',
|
|
61
61
|
FINALIZE: 'TX_FINALIZE',
|
|
62
62
|
});
|
|
63
63
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DualKeyAccount } from '../accounts/types.cjs';
|
|
2
|
+
import type { Transport } from '../transports/types.cjs';
|
|
3
|
+
import type { Client } from './types.cjs';
|
|
4
|
+
export type CreateClientArgs<TAccount extends DualKeyAccount | undefined> = {
|
|
5
|
+
transport: Transport;
|
|
6
|
+
account?: TAccount;
|
|
7
|
+
};
|
|
8
|
+
export declare function createClient<TAccount extends DualKeyAccount | undefined = undefined>(args: CreateClientArgs<TAccount>): Client<TAccount>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { TransportConfig } from '../transports/types.cjs';
|
|
2
|
+
export type CreateLocusPublicClientArgs = {
|
|
3
|
+
/** JSON-RPC 엔드포인트 URL. */
|
|
4
|
+
rpcUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* 선택적 HTTP 트랜스포트 설정. 로드밸런서 힌트 (예: Locus `locuslb` 헤더)
|
|
7
|
+
* 같은 용도로 `headers` 를 넘길 수 있다. `http()` 의 모든 옵션을 그대로 받는다.
|
|
8
|
+
*/
|
|
9
|
+
transport?: TransportConfig;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Locus 읽기 전용 클라이언트의 one-call 생성자.
|
|
13
|
+
*
|
|
14
|
+
* bare {@link createPublicClient} 를 HTTP 트랜스포트와 함께 감싸고, 두 표준
|
|
15
|
+
* read 액션 셋 (`publicActions` + `debugPublicActions`) 을 단일 `.extend()`
|
|
16
|
+
* 호출로 합쳐 부착한다. 반환된 클라이언트는 두 셋 모두 정적 타입이 잡힌
|
|
17
|
+
* 상태로 노출된다.
|
|
18
|
+
*
|
|
19
|
+
* 생성 이후엔 모든 read RPC (`locus_getNodeStatus`, `locus_getAccountDetail`,
|
|
20
|
+
* `calculateSpentByExpress`, `debug_viewContract`, ...) 가 타입이 잡힌
|
|
21
|
+
* 메서드로 호출 가능:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* const client = createLocusPublicClient({ rpcUrl });
|
|
25
|
+
* const status = await client.getNodeStatus();
|
|
26
|
+
* const balance = await client.getAccountDetail({ account });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* write TX 용 클라이언트는 {@link createLocusWalletClient} 참고.
|
|
30
|
+
*/
|
|
31
|
+
export declare function createLocusPublicClient(args: CreateLocusPublicClientArgs): import("./types.cjs").Client<undefined> & {
|
|
32
|
+
readonly allHeights: () => Promise<import("../index.cjs").RpcAccountHeight[]>;
|
|
33
|
+
readonly balanceGrantList: () => Promise<string[]>;
|
|
34
|
+
readonly balanceList: () => Promise<string[]>;
|
|
35
|
+
readonly createAccount: () => Promise<import("../index.cjs").RpcCreateAccountResult>;
|
|
36
|
+
readonly createNode: (param: import("../index.cjs").ParamsCreateNode) => Promise<import("../index.cjs").RpcCreateNodeResult>;
|
|
37
|
+
readonly dumpAllAccounts: () => Promise<import("../index.cjs").ResultDumpAccounts>;
|
|
38
|
+
readonly echo: (str: string) => Promise<string>;
|
|
39
|
+
readonly gameChainCmd: (param: import("../index.cjs").ParamsGameChainCmd) => Promise<import("../index.cjs").RpcGameChainCmdResult>;
|
|
40
|
+
readonly getAccountsBalances: (param: import("../index.cjs").ParamsAccounts) => Promise<import("../index.cjs").RpcGetAccountsBalancesResult>;
|
|
41
|
+
readonly getAccountsHeights: (param: import("../index.cjs").ParamsAccounts) => Promise<import("../index.cjs").RpcGetAccountsHeightsResult>;
|
|
42
|
+
readonly getGuestsInfo: () => Promise<import("../index.cjs").RpcGetGuestsInfoResult>;
|
|
43
|
+
readonly getHomeShard: (param: import("../index.cjs").ParamsGetHomeShard) => Promise<import("../index.cjs").RpcGetHomeShardResult>;
|
|
44
|
+
readonly getImportAccount: (params: import("../index.cjs").ParamsGetImportAccount) => Promise<import("../index.cjs").RpcGetImportAccountResult>;
|
|
45
|
+
readonly getImportAccountLog: (params: import("../index.cjs").ParamsGetImportAccount) => Promise<import("../index.cjs").RpcImportAccountResult>;
|
|
46
|
+
readonly getKeys: (params: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcGetKeysResult>;
|
|
47
|
+
readonly getNodeBlocks: () => Promise<import("../index.cjs").RpcGetNodeBlocksResult>;
|
|
48
|
+
readonly getPeerPool: () => Promise<string[]>;
|
|
49
|
+
readonly getPeersInfo: () => Promise<import("../index.cjs").GetPeersInfo>;
|
|
50
|
+
readonly getVmeLog: (param: import("../index.cjs").ParamsVmeLog) => Promise<import("../index.cjs").RpcGetVmeLogResult>;
|
|
51
|
+
readonly importAccount: (params: import("../index.cjs").ParamsImportAccount) => Promise<import("../index.cjs").RpcImportAccountResult>;
|
|
52
|
+
readonly initReliableNodes: (param: import("../index.cjs").ParamsInitReliableNodes) => Promise<import("../index.cjs").RpcBoolResult>;
|
|
53
|
+
readonly noArgsRets: () => Promise<any>;
|
|
54
|
+
readonly nodeCmd: (cmd: string) => Promise<import("../index.cjs").RpcNodeCmdResult>;
|
|
55
|
+
readonly removeHoldTxs: (param: import("../index.cjs").ParamsRemoveHoldTxs) => Promise<import("../index.cjs").RetTypeBase>;
|
|
56
|
+
readonly requestVme: (params: import("../index.cjs").ParamsRequestVme) => Promise<import("../index.cjs").RpcRequestVmeResult>;
|
|
57
|
+
readonly sendRawTransaction: (params: import("../index.cjs").ParamsSendRawTransaction) => Promise<import("../index.cjs").RpcSendRawTransactionResult>;
|
|
58
|
+
readonly setImportAccountTx: (params: import("../index.cjs").ParamsSetImportAccountTx) => Promise<import("../index.cjs").RpcSetImportAccountTxResult>;
|
|
59
|
+
readonly setReliableNode: (param: import("../index.cjs").ParamsSetReliableNode) => Promise<import("../index.cjs").RpcBoolResult>;
|
|
60
|
+
readonly viewVme: (param: import("../index.cjs").ParamsCallVme) => Promise<import("../index.cjs").RpcViewVmeResult>;
|
|
61
|
+
readonly accountHeightsToDownload: (param: import("../index.cjs").ParamsAccountHeights) => Promise<import("../index.cjs").HeightsResult>;
|
|
62
|
+
readonly accountHeightsToUpload: (param: import("../index.cjs").ParamsAccountHeights) => Promise<import("../index.cjs").UploadHeightsResult>;
|
|
63
|
+
readonly calculateSpentByForwardCoin: (param: import("../index.cjs").ParamsCalculateSpentByForwardCoin) => Promise<import("../index.cjs").RpcCalculateSpentByForwardCoinResult>;
|
|
64
|
+
readonly clientMessage: (param: import("../index.cjs").ParamStr) => Promise<any>;
|
|
65
|
+
readonly downloadAccountTxs: (param: import("../index.cjs").ParamsDownloadAccountTxs) => Promise<import("../index.cjs").OutputDownloadAccountTxs>;
|
|
66
|
+
readonly findDuplicateSubscriber: (params: import("../index.cjs").ParamsFindDuplicateSubscriber) => Promise<import("../index.cjs").RpcFindDuplicateSubscriberResult>;
|
|
67
|
+
readonly generateLatestStoredDataProof: (params: import("../index.cjs").ParamsGenerateLatestStoredDataProof) => Promise<import("../index.cjs").RpcGenerateLatestStoredDataProofResult>;
|
|
68
|
+
readonly getAccountAssetList: (params: import("../index.cjs").ParamsGetAssetList) => Promise<import("../index.cjs").RpcGetAccountAssetListResult>;
|
|
69
|
+
readonly getAccountAssetObject: (params: import("../index.cjs").ParamsGetAssetObjects) => Promise<import("../index.cjs").RpcGetAccountAssetObjectResult>;
|
|
70
|
+
readonly getAccountDetail: (param: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcGetAccountDetailResult>;
|
|
71
|
+
readonly getAccountHistory: (param: import("../index.cjs").ParamsAccountHistory) => Promise<import("../index.cjs").RpcGetAccountHistoryResult>;
|
|
72
|
+
readonly getAccountTokenList: (params: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcGetAccountTokenListResult>;
|
|
73
|
+
readonly getConciseNodeStatus: () => Promise<import("../index.cjs").RpcGetConciseNodeStatusResult>;
|
|
74
|
+
readonly getGenesisAccount: () => Promise<import("../index.cjs").RpcGetGenesisAccountResult>;
|
|
75
|
+
readonly getIdentityProof: (param: import("../index.cjs").ParamsGetIdentityProof) => Promise<import("../index.cjs").RpcGetIdentityProofResult>;
|
|
76
|
+
readonly getInactiveTxList: (param: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcGetInactiveTxListResult>;
|
|
77
|
+
readonly getMontInfoList: (param: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcGetMontInfoListResult>;
|
|
78
|
+
readonly getNodeStatus: () => Promise<import("../index.cjs").RpcGetNodeStatusResult>;
|
|
79
|
+
readonly getOwnerBalance: () => Promise<import("../index.cjs").RpcAccountsBalancesResult[]>;
|
|
80
|
+
readonly getRoundState: (param: import("../index.cjs").ParamsRound) => Promise<import("../index.cjs").RoundStateDetail>;
|
|
81
|
+
readonly getRoundStatesList: (param: import("../index.cjs").ParamsRS) => Promise<import("../index.cjs").RoundStateAbstract[]>;
|
|
82
|
+
readonly getShardOfAccount: (params: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcGetShardOfAccountResult>;
|
|
83
|
+
readonly getSyncState: () => Promise<import("../index.cjs").RpcGetSyncStateResult>;
|
|
84
|
+
readonly getTx: (param: import("../index.cjs").ParamsAccountAndIndex) => Promise<import("../index.cjs").RpcGetTxResult>;
|
|
85
|
+
readonly getWorldRoundState: (param: import("../index.cjs").ParamsRound) => Promise<import("../index.cjs").RpcGetWorldRoundStateResult>;
|
|
86
|
+
readonly getWorldRoundStatesList: (param: import("../index.cjs").ParamsRoundList) => Promise<import("../index.cjs").RpcGetWorldRoundStatesListResult>;
|
|
87
|
+
readonly hasSystemToken: (params: import("../index.cjs").ParamsAccount) => Promise<import("../index.cjs").RpcHasSystemTokenResult>;
|
|
88
|
+
readonly makeTxProof: (params: import("../index.cjs").ParamsTxList) => Promise<import("../index.cjs").RpcReadTxListWitnessResult>;
|
|
89
|
+
readonly queryAddress: (params: import("../index.cjs").ParamsQueryAddress) => Promise<import("../index.cjs").RpcQueryAddressResult>;
|
|
90
|
+
readonly readTxListWitness: (params: import("../index.cjs").ParamsReadTxList) => Promise<import("../index.cjs").RpcReadTxListWitnessResult>;
|
|
91
|
+
readonly setHost: (param: import("../index.cjs").ParamsSetHost) => Promise<boolean>;
|
|
92
|
+
readonly subscribeAddress: (params: import("../index.cjs").ParamsSubscribeAddress) => Promise<import("../index.cjs").RpcSubscribeAddressResult>;
|
|
93
|
+
readonly uploadAccountTxs: (param: import("../index.cjs").ParamsUploadAccountTxs) => Promise<number[]>;
|
|
94
|
+
readonly verifyAndSignChallenge: (param: import("../index.cjs").ParamsVerifyAndSignChallenge) => Promise<import("../index.cjs").RpcVerifyAndSignChallengeResult>;
|
|
95
|
+
readonly verifyIdentityProof: (param: import("../index.cjs").ParamsVerifyIdentityProof) => Promise<import("../index.cjs").RpcVerifyIdentityProofResult>;
|
|
96
|
+
readonly verifyLatestStoredDataProof: (params: import("../index.cjs").ParamsLatestStoredDataProof) => Promise<boolean>;
|
|
97
|
+
readonly verifyTxListWitness: (params: import("../index.cjs").ParamsTxListWitness) => Promise<boolean>;
|
|
98
|
+
};
|
|
99
|
+
/** 추론된 반환 타입 — 이 클라이언트를 담는 필드/변수의 타입 선언에 사용. */
|
|
100
|
+
export type LocusPublicClient = ReturnType<typeof createLocusPublicClient>;
|
|
@@ -39,7 +39,6 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
|
|
|
39
39
|
readonly gameChainCmd: (param: import("../index.mjs").ParamsGameChainCmd) => Promise<import("../index.mjs").RpcGameChainCmdResult>;
|
|
40
40
|
readonly getAccountsBalances: (param: import("../index.mjs").ParamsAccounts) => Promise<import("../index.mjs").RpcGetAccountsBalancesResult>;
|
|
41
41
|
readonly getAccountsHeights: (param: import("../index.mjs").ParamsAccounts) => Promise<import("../index.mjs").RpcGetAccountsHeightsResult>;
|
|
42
|
-
readonly getContractLog: (param: import("../index.mjs").ParamsContractLog) => Promise<import("../index.mjs").RpcGetContractLogResult>;
|
|
43
42
|
readonly getGuestsInfo: () => Promise<import("../index.mjs").RpcGetGuestsInfoResult>;
|
|
44
43
|
readonly getHomeShard: (param: import("../index.mjs").ParamsGetHomeShard) => Promise<import("../index.mjs").RpcGetHomeShardResult>;
|
|
45
44
|
readonly getImportAccount: (params: import("../index.mjs").ParamsGetImportAccount) => Promise<import("../index.mjs").RpcGetImportAccountResult>;
|
|
@@ -48,6 +47,7 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
|
|
|
48
47
|
readonly getNodeBlocks: () => Promise<import("../index.mjs").RpcGetNodeBlocksResult>;
|
|
49
48
|
readonly getPeerPool: () => Promise<string[]>;
|
|
50
49
|
readonly getPeersInfo: () => Promise<import("../index.mjs").GetPeersInfo>;
|
|
50
|
+
readonly getVmeLog: (param: import("../index.mjs").ParamsVmeLog) => Promise<import("../index.mjs").RpcGetVmeLogResult>;
|
|
51
51
|
readonly importAccount: (params: import("../index.mjs").ParamsImportAccount) => Promise<import("../index.mjs").RpcImportAccountResult>;
|
|
52
52
|
readonly initReliableNodes: (param: import("../index.mjs").ParamsInitReliableNodes) => Promise<import("../index.mjs").RpcBoolResult>;
|
|
53
53
|
readonly noArgsRets: () => Promise<any>;
|
|
@@ -57,10 +57,10 @@ export declare function createLocusPublicClient(args: CreateLocusPublicClientArg
|
|
|
57
57
|
readonly sendRawTransaction: (params: import("../index.mjs").ParamsSendRawTransaction) => Promise<import("../index.mjs").RpcSendRawTransactionResult>;
|
|
58
58
|
readonly setImportAccountTx: (params: import("../index.mjs").ParamsSetImportAccountTx) => Promise<import("../index.mjs").RpcSetImportAccountTxResult>;
|
|
59
59
|
readonly setReliableNode: (param: import("../index.mjs").ParamsSetReliableNode) => Promise<import("../index.mjs").RpcBoolResult>;
|
|
60
|
-
readonly
|
|
60
|
+
readonly viewVme: (param: import("../index.mjs").ParamsCallVme) => Promise<import("../index.mjs").RpcViewVmeResult>;
|
|
61
61
|
readonly accountHeightsToDownload: (param: import("../index.mjs").ParamsAccountHeights) => Promise<import("../index.mjs").HeightsResult>;
|
|
62
62
|
readonly accountHeightsToUpload: (param: import("../index.mjs").ParamsAccountHeights) => Promise<import("../index.mjs").UploadHeightsResult>;
|
|
63
|
-
readonly
|
|
63
|
+
readonly calculateSpentByForwardCoin: (param: import("../index.mjs").ParamsCalculateSpentByForwardCoin) => Promise<import("../index.mjs").RpcCalculateSpentByForwardCoinResult>;
|
|
64
64
|
readonly clientMessage: (param: import("../index.mjs").ParamStr) => Promise<any>;
|
|
65
65
|
readonly downloadAccountTxs: (param: import("../index.mjs").ParamsDownloadAccountTxs) => Promise<import("../index.mjs").OutputDownloadAccountTxs>;
|
|
66
66
|
readonly findDuplicateSubscriber: (params: import("../index.mjs").ParamsFindDuplicateSubscriber) => Promise<import("../index.mjs").RpcFindDuplicateSubscriberResult>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { DualKeyAccount } from '../accounts/types.cjs';
|
|
2
|
+
import type { TransportConfig } from '../transports/types.cjs';
|
|
3
|
+
export type CreateLocusWalletClientArgs = {
|
|
4
|
+
/** JSON-RPC 엔드포인트 URL. */
|
|
5
|
+
rpcUrl: string;
|
|
6
|
+
/** 트랜잭션 서명에 쓰는 account. `keysToAccount` / `toAccount` 로 만든다. */
|
|
7
|
+
account: DualKeyAccount;
|
|
8
|
+
/**
|
|
9
|
+
* 선택적 HTTP 트랜스포트 설정. 로드밸런서 힌트 (예: Locus `locuslb` 헤더)
|
|
10
|
+
* 같은 용도로 `headers` 를 넘길 수 있다. `http()` 의 모든 옵션을 그대로 받는다.
|
|
11
|
+
*/
|
|
12
|
+
transport?: TransportConfig;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Locus write 클라이언트의 one-call 생성자.
|
|
16
|
+
*
|
|
17
|
+
* bare {@link createWalletClient} 를 HTTP 트랜스포트와 함께 감싸고, 두 표준
|
|
18
|
+
* write 액션 셋 (`walletActions` + `debugWalletActions`) 을 단일 `.extend()`
|
|
19
|
+
* 호출로 합쳐 부착한다. 반환된 클라이언트는 두 셋 모두 정적 타입이 잡힌
|
|
20
|
+
* 상태로 노출된다.
|
|
21
|
+
*
|
|
22
|
+
* 생성 이후엔 모든 write RPC (`transferCoin`, `openAccount`, `changeKey`,
|
|
23
|
+
* `closeAccount`, `callContract`, `debug_createContract`, ...) 가 타입이
|
|
24
|
+
* 잡힌 메서드로 호출 가능. 각 호출은 내부적으로 prepare → sign → submit
|
|
25
|
+
* 파이프라인을 한 번에 돌리며, master/normal 키 라우팅은 `txKeyPolicy` 와
|
|
26
|
+
* 바인드된 `account` 의 `KeySource` 슬롯이 결정한다.
|
|
27
|
+
*
|
|
28
|
+
* 읽기 전용 RPC 는 {@link createLocusPublicClient} 참고.
|
|
29
|
+
*/
|
|
30
|
+
export declare function createLocusWalletClient(args: CreateLocusWalletClientArgs): import("./types.cjs").Client<DualKeyAccount> & {
|
|
31
|
+
readonly callVme: (param: import("../index.cjs").ParamsCallVme) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
32
|
+
readonly createSynthAccount: (param: import("../index.cjs").ParamsCreateSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
33
|
+
readonly postDataToSynthAccount: (param: import("../index.cjs").ParamsPostDataToSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
34
|
+
readonly acceptScript: (params: import("../index.cjs").ParamsAcceptScript) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
35
|
+
readonly becomeGuest: (param: import("../index.cjs").ParamsBecomeGuest) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
36
|
+
readonly becomeHost: (param: import("../index.cjs").ParamsBecomeHost) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
37
|
+
readonly changeKey: (params: import("../index.cjs").ParamsChangeKey) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
38
|
+
readonly changeVkey: (params: import("../index.cjs").ParamsChangeVKey) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
39
|
+
readonly closeAccount: (param: import("../index.cjs").ParamsCloseAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
40
|
+
readonly createAssetObject: (param: import("../index.cjs").ParamsCreateAssetObject) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
41
|
+
readonly createToken: (param: import("../index.cjs").ParamsCreateToken) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
42
|
+
readonly createVme: (param: import("../index.cjs").ParamsCreateVme) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
43
|
+
readonly forwardCoin: (param: import("../index.cjs").ParamsForwardCoin) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
44
|
+
readonly freezeAccount: (params: import("../index.cjs").ParamsFreezeAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
45
|
+
readonly lockStake: (params: import("../index.cjs").ParamsLockStake) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
46
|
+
readonly openAccount: (param: import("../index.cjs").ParamsOpenAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
47
|
+
readonly postData: (params: import("../index.cjs").InputParamsDataTransfer) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
48
|
+
readonly provideScript: (params: import("../index.cjs").ParamsProvideScript) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
49
|
+
readonly requestDataTrade: (params: import("../index.cjs").ParamsRequestDataTrade) => Promise<import("../index.cjs").RpcDataTradeResult>;
|
|
50
|
+
readonly transferAssetObject: (params: import("../index.cjs").ParamsTransferAssetObject) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
51
|
+
readonly transferCoin: (param: import("../index.cjs").ParamsTransferCoin) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
52
|
+
readonly transferToken: (params: import("../index.cjs").ParamsTransferTokens) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
53
|
+
readonly unlockStake: (params: import("../index.cjs").ParamsUnlockStake) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
54
|
+
};
|
|
55
|
+
/** 추론된 반환 타입 — 이 클라이언트를 담는 필드/변수의 타입 선언에 사용. */
|
|
56
|
+
export type LocusWalletClient = ReturnType<typeof createLocusWalletClient>;
|
|
@@ -28,8 +28,7 @@ export type CreateLocusWalletClientArgs = {
|
|
|
28
28
|
* 읽기 전용 RPC 는 {@link createLocusPublicClient} 참고.
|
|
29
29
|
*/
|
|
30
30
|
export declare function createLocusWalletClient(args: CreateLocusWalletClientArgs): import("./types.mjs").Client<DualKeyAccount> & {
|
|
31
|
-
readonly
|
|
32
|
-
readonly createContract: (param: import("../index.mjs").ParamsCreateContract) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
31
|
+
readonly callVme: (param: import("../index.mjs").ParamsCallVme) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
33
32
|
readonly createSynthAccount: (param: import("../index.mjs").ParamsCreateSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
34
33
|
readonly postDataToSynthAccount: (param: import("../index.mjs").ParamsPostDataToSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
35
34
|
readonly acceptScript: (params: import("../index.mjs").ParamsAcceptScript) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
@@ -41,6 +40,7 @@ export declare function createLocusWalletClient(args: CreateLocusWalletClientArg
|
|
|
41
40
|
readonly createAssetObject: (param: import("../index.mjs").ParamsCreateAssetObject) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
42
41
|
readonly createToken: (param: import("../index.mjs").ParamsCreateToken) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
43
42
|
readonly createVme: (param: import("../index.mjs").ParamsCreateVme) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
43
|
+
readonly forwardCoin: (param: import("../index.mjs").ParamsForwardCoin) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
44
44
|
readonly freezeAccount: (params: import("../index.mjs").ParamsFreezeAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
45
45
|
readonly lockStake: (params: import("../index.mjs").ParamsLockStake) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
46
46
|
readonly openAccount: (param: import("../index.mjs").ParamsOpenAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
@@ -49,7 +49,6 @@ export declare function createLocusWalletClient(args: CreateLocusWalletClientArg
|
|
|
49
49
|
readonly requestDataTrade: (params: import("../index.mjs").ParamsRequestDataTrade) => Promise<import("../index.mjs").RpcDataTradeResult>;
|
|
50
50
|
readonly transferAssetObject: (params: import("../index.mjs").ParamsTransferAssetObject) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
51
51
|
readonly transferCoin: (param: import("../index.mjs").ParamsTransferCoin) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
52
|
-
readonly transferCoinExpress: (param: import("../index.mjs").ParamsTransferCoinExpress) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
53
52
|
readonly transferToken: (params: import("../index.mjs").ParamsTransferTokens) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
54
53
|
readonly unlockStake: (params: import("../index.mjs").ParamsUnlockStake) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
55
54
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DualKeyAccount } from '../accounts/types.cjs';
|
|
2
|
+
import type { Transport } from '../transports/types.cjs';
|
|
3
|
+
import type { WalletClient } from './types.cjs';
|
|
4
|
+
export type CreateWalletClientArgs = {
|
|
5
|
+
transport: Transport;
|
|
6
|
+
account: DualKeyAccount;
|
|
7
|
+
};
|
|
8
|
+
export declare function createWalletClient(args: CreateWalletClientArgs): WalletClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', '../chunks/lclib-Bv86gksL', '../chunks/debugWalletActions-
|
|
1
|
+
define(['exports', '../chunks/lclib-Bv86gksL', '../chunks/debugWalletActions-Bd8C-fZB', '../chunks/tslib.es6-D29rxPkW', '../transports/index.amd', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/transport-BBAz1kmP'], (function (exports, lclib, debugWalletActions, tslib_es6, transports, rpc, base, account, transport) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function createClient(args) {
|
|
4
4
|
var _a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunks/lclib-rGyKpClJ.cjs');
|
|
4
|
-
var debugWalletActions = require('../chunks/debugWalletActions-
|
|
4
|
+
var debugWalletActions = require('../chunks/debugWalletActions-DIQY8cBm.cjs');
|
|
5
5
|
require('../chunks/tslib.es6-Cfi3-HmA.cjs');
|
|
6
6
|
var transports = require('../transports/index.cjs.cjs');
|
|
7
7
|
require('../chunks/rpc-DwWIkUva.cjs');
|
package/dist/clients/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './types.
|
|
2
|
-
export * from './createClient.
|
|
3
|
-
export * from './createPublicClient.
|
|
4
|
-
export * from './createWalletClient.
|
|
5
|
-
export * from './createLocusPublicClient.
|
|
6
|
-
export * from './createLocusWalletClient.
|
|
1
|
+
export * from './types.cjs';
|
|
2
|
+
export * from './createClient.cjs';
|
|
3
|
+
export * from './createPublicClient.cjs';
|
|
4
|
+
export * from './createWalletClient.cjs';
|
|
5
|
+
export * from './createLocusPublicClient.cjs';
|
|
6
|
+
export * from './createLocusWalletClient.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunks/lclib-j2x9RvDY.js';
|
|
2
|
-
import { ao as publicActions,
|
|
2
|
+
import { ao as publicActions, T as debugPublicActions, aD as walletActions, U as debugWalletActions } from '../chunks/debugWalletActions-qkesE_0m.js';
|
|
3
3
|
import '../chunks/tslib.es6-WQS2tr1v.js';
|
|
4
4
|
import { http } from '../transports/index.esm.js';
|
|
5
5
|
import '../chunks/rpc-BlPk44QH.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DualKeyAccount } from '../accounts/types.cjs';
|
|
2
|
+
import type { TransportInstance } from '../transports/types.cjs';
|
|
3
|
+
type HeadersInit = Record<string, string>;
|
|
4
|
+
export type ClientRequestArgs = {
|
|
5
|
+
method: string;
|
|
6
|
+
params: readonly unknown[];
|
|
7
|
+
};
|
|
8
|
+
export type ClientRequestOptions = {
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
headers?: HeadersInit;
|
|
11
|
+
};
|
|
12
|
+
export type ClientRequestFn = <T = any>(args: ClientRequestArgs, opts?: ClientRequestOptions) => Promise<T>;
|
|
13
|
+
export type Client<TAccount extends DualKeyAccount | undefined = DualKeyAccount | undefined> = {
|
|
14
|
+
transport: TransportInstance;
|
|
15
|
+
account: TAccount;
|
|
16
|
+
request: ClientRequestFn;
|
|
17
|
+
extend: <const Ext extends object>(fn: (client: Client<TAccount>) => Ext) => Client<TAccount> & Ext;
|
|
18
|
+
};
|
|
19
|
+
export type PublicClient = Client<undefined>;
|
|
20
|
+
export type WalletClient = Client<DualKeyAccount>;
|
|
21
|
+
export {};
|
package/dist/clients/types.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DualKeyAccount } from '../accounts/types.mjs';
|
|
2
2
|
import type { TransportInstance } from '../transports/types.mjs';
|
|
3
|
+
type HeadersInit = Record<string, string>;
|
|
3
4
|
export type ClientRequestArgs = {
|
|
4
5
|
method: string;
|
|
5
6
|
params: readonly unknown[];
|
|
@@ -17,3 +18,4 @@ export type Client<TAccount extends DualKeyAccount | undefined = DualKeyAccount
|
|
|
17
18
|
};
|
|
18
19
|
export type PublicClient = Client<undefined>;
|
|
19
20
|
export type WalletClient = Client<DualKeyAccount>;
|
|
21
|
+
export {};
|