@locuschain/lib 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounts/account.d.cts +58 -0
- package/dist/accounts/index.d.cts +5 -5
- 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/getContractLog.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/importAccount.d.cts +4 -0
- package/dist/autogen/actions/debug/public/index.d.cts +29 -0
- 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/viewContract.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/callContract.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/createContract.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/createSynthAccount.d.cts +4 -0
- package/dist/autogen/actions/debug/wallet/index.d.cts +4 -0
- 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/calculateSpentByExpress.d.cts +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/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/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/freezeAccount.d.cts +4 -0
- package/dist/autogen/actions/wallet/index.d.cts +20 -0
- 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/transferCoinExpress.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/debugWalletActions.d.cts +11 -0
- package/dist/autogen/index.d.cts +8 -8
- package/dist/autogen/locus-tx.d.cts +5 -0
- package/dist/autogen/publicActions.d.cts +66 -0
- package/dist/autogen/rpc-api-spec.d.cts +210 -0
- package/dist/autogen/types/common/addr-tx-proof.d.cts +5 -0
- package/dist/autogen/types/common/asset-object-transfer.d.cts +8 -0
- package/dist/autogen/types/common/asset-object.d.cts +10 -0
- package/dist/autogen/types/common/asset-proof-objects.d.cts +5 -0
- 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/contract-exec-status.d.cts +16 -0
- package/dist/autogen/types/common/contract-transfer-info.d.cts +7 -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 +54 -0
- 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/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 +6 -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/round-state-detail.d.cts +16 -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 +7 -0
- package/dist/autogen/types/common/tx-base.d.cts +13 -0
- 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-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 +11 -0
- package/dist/autogen/types/common/vm-reward.d.cts +4 -0
- package/dist/autogen/types/common/vm-tx-state.d.cts +27 -0
- 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 +11 -0
- 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-types.d.cts +415 -0
- 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/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.cts +5 -0
- package/dist/autogen/types/rpc/params-call-contract.d.cts +13 -0
- 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-contract-log.d.cts +6 -0
- package/dist/autogen/types/rpc/params-create-asset-object.d.cts +10 -0
- package/dist/autogen/types/rpc/params-create-contract.d.cts +14 -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-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 +4 -0
- 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 +4 -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-express.d.cts +7 -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/result-dump-accounts.d.cts +4 -0
- package/dist/autogen/types/rpc/rpc-bool-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-calculate-spent-by-express-result.d.cts +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-contract-log-result.d.cts +3 -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-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-contract-result.d.cts +3 -0
- package/dist/autogen/types/rpc/upload-heights-result.d.cts +6 -0
- package/dist/autogen/types/tx/index.d.cts +50 -0
- 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-assets.d.cts +15 -0
- package/dist/autogen/types/tx/tx-activate-asset-object.d.cts +9 -0
- package/dist/autogen/types/tx/tx-activate-call-contract.d.cts +15 -0
- package/dist/autogen/types/tx/tx-activate-coin.d.cts +9 -0
- package/dist/autogen/types/tx/tx-activate-contract-result.d.cts +18 -0
- package/dist/autogen/types/tx/tx-activate-contract-reward.d.cts +8 -0
- package/dist/autogen/types/tx/tx-activate-contract-transfer.d.cts +15 -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-contract.d.cts +15 -0
- package/dist/autogen/types/tx/tx-activate-open-synth-account.d.cts +9 -0
- package/dist/autogen/types/tx/tx-activate-open-vm-engine.d.cts +11 -0
- package/dist/autogen/types/tx/tx-activate-token.d.cts +12 -0
- 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 +8 -0
- package/dist/autogen/types/tx/tx-burn-token.d.cts +10 -0
- package/dist/autogen/types/tx/tx-call-contract.d.cts +16 -0
- 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-contract-blank-reward.d.cts +5 -0
- package/dist/autogen/types/tx/tx-contract-transfer-reward.d.cts +8 -0
- package/dist/autogen/types/tx/tx-create-asset-object.d.cts +10 -0
- package/dist/autogen/types/tx/tx-create-contract.d.cts +17 -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-vm-engine.d.cts +8 -0
- 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-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-vtx.d.cts +9 -0
- 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-revoke.d.cts +16 -0
- package/dist/autogen/types/tx/tx-transfer-asset-object.d.cts +8 -0
- package/dist/autogen/types/tx/tx-transfer-coin-express.d.cts +8 -0
- 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-vm-engine-block.d.cts +6 -0
- 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/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/clients/createClient.d.cts +8 -0
- package/dist/clients/createLocusPublicClient.d.cts +100 -0
- package/dist/clients/createLocusWalletClient.d.cts +57 -0
- package/dist/clients/createPublicClient.d.cts +6 -0
- package/dist/clients/createWalletClient.d.cts +8 -0
- package/dist/clients/index.d.cts +6 -6
- package/dist/clients/types.d.cts +21 -0
- package/dist/clients/types.d.mts +2 -0
- package/dist/constant/index.d.cts +2 -2
- 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.d.cts +8 -0
- 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.d.cts +5 -5
- 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
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ParamStr } from './types/common/param-str.cjs';
|
|
2
|
+
import type { ParamsAccount } from './types/rpc/params-account.cjs';
|
|
3
|
+
import type { ParamsAccountAndIndex } from './types/rpc/params-account-and-index.cjs';
|
|
4
|
+
import type { ParamsAccountHeights } from './types/rpc/params-account-heights.cjs';
|
|
5
|
+
import type { ParamsAccountHistory } from './types/rpc/params-account-history.cjs';
|
|
6
|
+
import type { ParamsCalculateSpentByExpress } from './types/rpc/params-calculate-spent-by-express.cjs';
|
|
7
|
+
import type { ParamsDownloadAccountTxs } from './types/rpc/params-download-account-txs.cjs';
|
|
8
|
+
import type { ParamsFindDuplicateSubscriber } from './types/rpc/params-find-duplicate-subscriber.cjs';
|
|
9
|
+
import type { ParamsGenerateLatestStoredDataProof } from './types/rpc/params-generate-latest-stored-data-proof.cjs';
|
|
10
|
+
import type { ParamsGetAssetList } from './types/rpc/params-get-asset-list.cjs';
|
|
11
|
+
import type { ParamsGetAssetObjects } from './types/rpc/params-get-asset-objects.cjs';
|
|
12
|
+
import type { ParamsGetIdentityProof } from './types/rpc/params-get-identity-proof.cjs';
|
|
13
|
+
import type { ParamsLatestStoredDataProof } from './types/rpc/params-latest-stored-data-proof.cjs';
|
|
14
|
+
import type { ParamsQueryAddress } from './types/rpc/params-query-address.cjs';
|
|
15
|
+
import type { ParamsRS } from './types/rpc/params-rs.cjs';
|
|
16
|
+
import type { ParamsReadTxList } from './types/rpc/params-read-tx-list.cjs';
|
|
17
|
+
import type { ParamsRound } from './types/rpc/params-round.cjs';
|
|
18
|
+
import type { ParamsRoundList } from './types/rpc/params-round-list.cjs';
|
|
19
|
+
import type { ParamsSetHost } from './types/rpc/params-set-host.cjs';
|
|
20
|
+
import type { ParamsSubscribeAddress } from './types/rpc/params-subscribe-address.cjs';
|
|
21
|
+
import type { ParamsTxList } from './types/rpc/params-tx-list.cjs';
|
|
22
|
+
import type { ParamsTxListWitness } from './types/rpc/params-tx-list-witness.cjs';
|
|
23
|
+
import type { ParamsUploadAccountTxs } from './types/rpc/params-upload-account-txs.cjs';
|
|
24
|
+
import type { ParamsVerifyAndSignChallenge } from './types/rpc/params-verify-and-sign-challenge.cjs';
|
|
25
|
+
import type { ParamsVerifyIdentityProof } from './types/rpc/params-verify-identity-proof.cjs';
|
|
26
|
+
import type { Client } from '../clients/types.cjs';
|
|
27
|
+
export declare const publicActions: (client: Client) => {
|
|
28
|
+
accountHeightsToDownload: (param: ParamsAccountHeights) => Promise<import("../index.cjs").HeightsResult>;
|
|
29
|
+
accountHeightsToUpload: (param: ParamsAccountHeights) => Promise<import("../index.cjs").UploadHeightsResult>;
|
|
30
|
+
calculateSpentByExpress: (param: ParamsCalculateSpentByExpress) => Promise<import("../index.cjs").RpcCalculateSpentByExpressResult>;
|
|
31
|
+
clientMessage: (param: ParamStr) => Promise<any>;
|
|
32
|
+
downloadAccountTxs: (param: ParamsDownloadAccountTxs) => Promise<import("../index.cjs").OutputDownloadAccountTxs>;
|
|
33
|
+
echo: (str: string) => Promise<string>;
|
|
34
|
+
findDuplicateSubscriber: (params: ParamsFindDuplicateSubscriber) => Promise<import("../index.cjs").RpcFindDuplicateSubscriberResult>;
|
|
35
|
+
generateLatestStoredDataProof: (params: ParamsGenerateLatestStoredDataProof) => Promise<import("../index.cjs").RpcGenerateLatestStoredDataProofResult>;
|
|
36
|
+
getAccountAssetList: (params: ParamsGetAssetList) => Promise<import("../index.cjs").RpcGetAccountAssetListResult>;
|
|
37
|
+
getAccountAssetObject: (params: ParamsGetAssetObjects) => Promise<import("../index.cjs").RpcGetAccountAssetObjectResult>;
|
|
38
|
+
getAccountDetail: (param: ParamsAccount) => Promise<import("../index.cjs").RpcGetAccountDetailResult>;
|
|
39
|
+
getAccountHistory: (param: ParamsAccountHistory) => Promise<import("../index.cjs").RpcGetAccountHistoryResult>;
|
|
40
|
+
getAccountTokenList: (params: ParamsAccount) => Promise<import("../index.cjs").RpcGetAccountTokenListResult>;
|
|
41
|
+
getConciseNodeStatus: () => Promise<import("../index.cjs").RpcGetConciseNodeStatusResult>;
|
|
42
|
+
getGenesisAccount: () => Promise<import("../index.cjs").RpcGetGenesisAccountResult>;
|
|
43
|
+
getIdentityProof: (param: ParamsGetIdentityProof) => Promise<import("../index.cjs").RpcGetIdentityProofResult>;
|
|
44
|
+
getInactiveTxList: (param: ParamsAccount) => Promise<import("../index.cjs").RpcGetInactiveTxListResult>;
|
|
45
|
+
getMontInfoList: (param: ParamsAccount) => Promise<import("../index.cjs").RpcGetMontInfoListResult>;
|
|
46
|
+
getNodeStatus: () => Promise<import("../index.cjs").RpcGetNodeStatusResult>;
|
|
47
|
+
getOwnerBalance: () => Promise<import("../index.cjs").RpcAccountsBalancesResult[]>;
|
|
48
|
+
getRoundState: (param: ParamsRound) => Promise<import("../index.cjs").RoundStateDetail>;
|
|
49
|
+
getRoundStatesList: (param: ParamsRS) => Promise<import("../index.cjs").RoundStateAbstract[]>;
|
|
50
|
+
getShardOfAccount: (params: ParamsAccount) => Promise<import("../index.cjs").RpcGetShardOfAccountResult>;
|
|
51
|
+
getSyncState: () => Promise<import("../index.cjs").RpcGetSyncStateResult>;
|
|
52
|
+
getTx: (param: ParamsAccountAndIndex) => Promise<import("../index.cjs").RpcGetTxResult>;
|
|
53
|
+
getWorldRoundState: (param: ParamsRound) => Promise<import("../index.cjs").RpcGetWorldRoundStateResult>;
|
|
54
|
+
getWorldRoundStatesList: (param: ParamsRoundList) => Promise<import("../index.cjs").RpcGetWorldRoundStatesListResult>;
|
|
55
|
+
hasSystemToken: (params: ParamsAccount) => Promise<import("../index.cjs").RpcHasSystemTokenResult>;
|
|
56
|
+
makeTxProof: (params: ParamsTxList) => Promise<import("../index.cjs").RpcReadTxListWitnessResult>;
|
|
57
|
+
queryAddress: (params: ParamsQueryAddress) => Promise<import("../index.cjs").RpcQueryAddressResult>;
|
|
58
|
+
readTxListWitness: (params: ParamsReadTxList) => Promise<import("../index.cjs").RpcReadTxListWitnessResult>;
|
|
59
|
+
setHost: (param: ParamsSetHost) => Promise<boolean>;
|
|
60
|
+
subscribeAddress: (params: ParamsSubscribeAddress) => Promise<import("../index.cjs").RpcSubscribeAddressResult>;
|
|
61
|
+
uploadAccountTxs: (param: ParamsUploadAccountTxs) => Promise<number[]>;
|
|
62
|
+
verifyAndSignChallenge: (param: ParamsVerifyAndSignChallenge) => Promise<import("../index.cjs").RpcVerifyAndSignChallengeResult>;
|
|
63
|
+
verifyIdentityProof: (param: ParamsVerifyIdentityProof) => Promise<import("../index.cjs").RpcVerifyIdentityProofResult>;
|
|
64
|
+
verifyLatestStoredDataProof: (params: ParamsLatestStoredDataProof) => Promise<boolean>;
|
|
65
|
+
verifyTxListWitness: (params: ParamsTxListWitness) => Promise<boolean>;
|
|
66
|
+
};
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { GetPeersInfo } from './types/common/get-peers-info.cjs';
|
|
2
|
+
import { InputParamsDataTransfer } from './types/common/input-params-data-transfer.cjs';
|
|
3
|
+
import { OutputDownloadAccountTxs } from './types/common/output-download-account-txs.cjs';
|
|
4
|
+
import { ParamStr } from './types/common/param-str.cjs';
|
|
5
|
+
import { RetTypeBase } from './types/common/ret-type-base.cjs';
|
|
6
|
+
import { RoundStateAbstract } from './types/common/round-state-abstract.cjs';
|
|
7
|
+
import { RoundStateDetail } from './types/common/round-state-detail.cjs';
|
|
8
|
+
import { RpcAccountHeight } from './types/common/rpc-account-height.cjs';
|
|
9
|
+
import { RpcAccountsBalancesResult } from './types/common/rpc-accounts-balances-result.cjs';
|
|
10
|
+
import { RpcDataTradeResult } from './types/common/rpc-data-trade-result.cjs';
|
|
11
|
+
import { HeightsResult } from './types/rpc/heights-result.cjs';
|
|
12
|
+
import { ParamsAcceptScript } from './types/rpc/params-accept-script.cjs';
|
|
13
|
+
import { ParamsAccountAndIndex } from './types/rpc/params-account-and-index.cjs';
|
|
14
|
+
import { ParamsAccountHeights } from './types/rpc/params-account-heights.cjs';
|
|
15
|
+
import { ParamsAccountHistory } from './types/rpc/params-account-history.cjs';
|
|
16
|
+
import { ParamsAccount } from './types/rpc/params-account.cjs';
|
|
17
|
+
import { ParamsAccounts } from './types/rpc/params-accounts.cjs';
|
|
18
|
+
import { ParamsBecomeGuest } from './types/rpc/params-become-guest.cjs';
|
|
19
|
+
import { ParamsBecomeHost } from './types/rpc/params-become-host.cjs';
|
|
20
|
+
import { ParamsCalculateSpentByExpress } from './types/rpc/params-calculate-spent-by-express.cjs';
|
|
21
|
+
import { ParamsCallContract } from './types/rpc/params-call-contract.cjs';
|
|
22
|
+
import { ParamsChangeKey } from './types/rpc/params-change-key.cjs';
|
|
23
|
+
import { ParamsChangeVKey } from './types/rpc/params-change-vkey.cjs';
|
|
24
|
+
import { ParamsCloseAccount } from './types/rpc/params-close-account.cjs';
|
|
25
|
+
import { ParamsContractLog } from './types/rpc/params-contract-log.cjs';
|
|
26
|
+
import { ParamsCreateAssetObject } from './types/rpc/params-create-asset-object.cjs';
|
|
27
|
+
import { ParamsCreateContract } from './types/rpc/params-create-contract.cjs';
|
|
28
|
+
import { ParamsCreateNode } from './types/rpc/params-create-node.cjs';
|
|
29
|
+
import { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.cjs';
|
|
30
|
+
import { ParamsCreateToken } from './types/rpc/params-create-token.cjs';
|
|
31
|
+
import { ParamsCreateVme } from './types/rpc/params-create-vme.cjs';
|
|
32
|
+
import { ParamsDownloadAccountTxs } from './types/rpc/params-download-account-txs.cjs';
|
|
33
|
+
import { ParamsFindDuplicateSubscriber } from './types/rpc/params-find-duplicate-subscriber.cjs';
|
|
34
|
+
import { ParamsFreezeAccount } from './types/rpc/params-freeze-account.cjs';
|
|
35
|
+
import { ParamsGameChainCmd } from './types/rpc/params-game-chain-cmd.cjs';
|
|
36
|
+
import { ParamsGenerateLatestStoredDataProof } from './types/rpc/params-generate-latest-stored-data-proof.cjs';
|
|
37
|
+
import { ParamsGetAssetList } from './types/rpc/params-get-asset-list.cjs';
|
|
38
|
+
import { ParamsGetAssetObjects } from './types/rpc/params-get-asset-objects.cjs';
|
|
39
|
+
import { ParamsGetHomeShard } from './types/rpc/params-get-home-shard.cjs';
|
|
40
|
+
import { ParamsGetIdentityProof } from './types/rpc/params-get-identity-proof.cjs';
|
|
41
|
+
import { ParamsGetImportAccount } from './types/rpc/params-get-import-account.cjs';
|
|
42
|
+
import { ParamsImportAccount } from './types/rpc/params-import-account.cjs';
|
|
43
|
+
import { ParamsInitReliableNodes } from './types/rpc/params-init-reliable-nodes.cjs';
|
|
44
|
+
import { ParamsLatestStoredDataProof } from './types/rpc/params-latest-stored-data-proof.cjs';
|
|
45
|
+
import { ParamsLockStake } from './types/rpc/params-lock-stake.cjs';
|
|
46
|
+
import { ParamsOpenAccount } from './types/rpc/params-open-account.cjs';
|
|
47
|
+
import { ParamsPostDataToSynthAccount } from './types/rpc/params-post-data-to-synth-account.cjs';
|
|
48
|
+
import { ParamsProvideScript } from './types/rpc/params-provide-script.cjs';
|
|
49
|
+
import { ParamsQueryAddress } from './types/rpc/params-query-address.cjs';
|
|
50
|
+
import { ParamsReadTxList } from './types/rpc/params-read-tx-list.cjs';
|
|
51
|
+
import { ParamsRemoveHoldTxs } from './types/rpc/params-remove-hold-txs.cjs';
|
|
52
|
+
import { ParamsRequestDataTrade } from './types/rpc/params-request-data-trade.cjs';
|
|
53
|
+
import { ParamsRequestVme } from './types/rpc/params-request-vme.cjs';
|
|
54
|
+
import { ParamsRoundList } from './types/rpc/params-round-list.cjs';
|
|
55
|
+
import { ParamsRound } from './types/rpc/params-round.cjs';
|
|
56
|
+
import { ParamsRS } from './types/rpc/params-rs.cjs';
|
|
57
|
+
import { ParamsSendRawTransaction } from './types/rpc/params-send-raw-transaction.cjs';
|
|
58
|
+
import { ParamsSetHost } from './types/rpc/params-set-host.cjs';
|
|
59
|
+
import { ParamsSetImportAccountTx } from './types/rpc/params-set-import-account-tx.cjs';
|
|
60
|
+
import { ParamsSetReliableNode } from './types/rpc/params-set-reliable-node.cjs';
|
|
61
|
+
import { ParamsSubscribeAddress } from './types/rpc/params-subscribe-address.cjs';
|
|
62
|
+
import { ParamsTransferAssetObject } from './types/rpc/params-transfer-asset-object.cjs';
|
|
63
|
+
import { ParamsTransferCoinExpress } from './types/rpc/params-transfer-coin-express.cjs';
|
|
64
|
+
import { ParamsTransferCoin } from './types/rpc/params-transfer-coin.cjs';
|
|
65
|
+
import { ParamsTransferTokens } from './types/rpc/params-transfer-tokens.cjs';
|
|
66
|
+
import { ParamsTxListWitness } from './types/rpc/params-tx-list-witness.cjs';
|
|
67
|
+
import { ParamsTxList } from './types/rpc/params-tx-list.cjs';
|
|
68
|
+
import { ParamsUnlockStake } from './types/rpc/params-unlock-stake.cjs';
|
|
69
|
+
import { ParamsUploadAccountTxs } from './types/rpc/params-upload-account-txs.cjs';
|
|
70
|
+
import { ParamsVerifyAndSignChallenge } from './types/rpc/params-verify-and-sign-challenge.cjs';
|
|
71
|
+
import { ParamsVerifyIdentityProof } from './types/rpc/params-verify-identity-proof.cjs';
|
|
72
|
+
import { ResultDumpAccounts } from './types/rpc/result-dump-accounts.cjs';
|
|
73
|
+
import { RpcBoolResult } from './types/rpc/rpc-bool-result.cjs';
|
|
74
|
+
import { RpcCalculateSpentByExpressResult } from './types/rpc/rpc-calculate-spent-by-express-result.cjs';
|
|
75
|
+
import { RpcCreateAccountResult } from './types/rpc/rpc-create-account-result.cjs';
|
|
76
|
+
import { RpcCreateNodeResult } from './types/rpc/rpc-create-node-result.cjs';
|
|
77
|
+
import { RpcCreateTxResult } from './types/rpc/rpc-create-tx-result.cjs';
|
|
78
|
+
import { RpcFindDuplicateSubscriberResult } from './types/rpc/rpc-find-duplicate-subscriber-result.cjs';
|
|
79
|
+
import { RpcGameChainCmdResult } from './types/rpc/rpc-game-chain-cmd-result.cjs';
|
|
80
|
+
import { RpcGenerateLatestStoredDataProofResult } from './types/rpc/rpc-generate-latest-stored-data-proof-result.cjs';
|
|
81
|
+
import { RpcGetAccountAssetListResult } from './types/rpc/rpc-get-account-asset-list-result.cjs';
|
|
82
|
+
import { RpcGetAccountAssetObjectResult } from './types/rpc/rpc-get-account-asset-object-result.cjs';
|
|
83
|
+
import { RpcGetAccountDetailResult } from './types/rpc/rpc-get-account-detail-result.cjs';
|
|
84
|
+
import { RpcGetAccountHistoryResult } from './types/rpc/rpc-get-account-history-result.cjs';
|
|
85
|
+
import { RpcGetAccountTokenListResult } from './types/rpc/rpc-get-account-token-list-result.cjs';
|
|
86
|
+
import { RpcGetAccountsBalancesResult } from './types/rpc/rpc-get-accounts-balances-result.cjs';
|
|
87
|
+
import { RpcGetAccountsHeightsResult } from './types/rpc/rpc-get-accounts-heights-result.cjs';
|
|
88
|
+
import { RpcGetConciseNodeStatusResult } from './types/rpc/rpc-get-concise-node-status-result.cjs';
|
|
89
|
+
import { RpcGetContractLogResult } from './types/rpc/rpc-get-contract-log-result.cjs';
|
|
90
|
+
import { RpcGetGenesisAccountResult } from './types/rpc/rpc-get-genesis-account-result.cjs';
|
|
91
|
+
import { RpcGetGuestsInfoResult } from './types/rpc/rpc-get-guests-info-result.cjs';
|
|
92
|
+
import { RpcGetHomeShardResult } from './types/rpc/rpc-get-home-shard-result.cjs';
|
|
93
|
+
import { RpcGetIdentityProofResult } from './types/rpc/rpc-get-identity-proof-result.cjs';
|
|
94
|
+
import { RpcGetImportAccountResult } from './types/rpc/rpc-get-import-account-result.cjs';
|
|
95
|
+
import { RpcGetInactiveTxListResult } from './types/rpc/rpc-get-inactive-tx-list-result.cjs';
|
|
96
|
+
import { RpcGetKeysResult } from './types/rpc/rpc-get-keys-result.cjs';
|
|
97
|
+
import { RpcGetMontInfoListResult } from './types/rpc/rpc-get-mont-info-list-result.cjs';
|
|
98
|
+
import { RpcGetNodeBlocksResult } from './types/rpc/rpc-get-node-blocks-result.cjs';
|
|
99
|
+
import { RpcGetNodeStatusResult } from './types/rpc/rpc-get-node-status-result.cjs';
|
|
100
|
+
import { RpcGetShardOfAccountResult } from './types/rpc/rpc-get-shard-of-account-result.cjs';
|
|
101
|
+
import { RpcGetSyncStateResult } from './types/rpc/rpc-get-sync-state-result.cjs';
|
|
102
|
+
import { RpcGetTxResult } from './types/rpc/rpc-get-tx-result.cjs';
|
|
103
|
+
import { RpcGetWorldRoundStateResult } from './types/rpc/rpc-get-world-round-state-result.cjs';
|
|
104
|
+
import { RpcGetWorldRoundStatesListResult } from './types/rpc/rpc-get-world-round-states-list-result.cjs';
|
|
105
|
+
import { RpcHasSystemTokenResult } from './types/rpc/rpc-has-system-token-result.cjs';
|
|
106
|
+
import { RpcImportAccountResult } from './types/rpc/rpc-import-account-result.cjs';
|
|
107
|
+
import { RpcNodeCmdResult } from './types/rpc/rpc-node-cmd-result.cjs';
|
|
108
|
+
import { RpcQueryAddressResult } from './types/rpc/rpc-query-address-result.cjs';
|
|
109
|
+
import { RpcReadTxListWitnessResult } from './types/rpc/rpc-read-tx-list-witness-result.cjs';
|
|
110
|
+
import { RpcRequestVmeResult } from './types/rpc/rpc-request-vme-result.cjs';
|
|
111
|
+
import { RpcSendRawTransactionResult } from './types/rpc/rpc-send-raw-transaction-result.cjs';
|
|
112
|
+
import { RpcSetImportAccountTxResult } from './types/rpc/rpc-set-import-account-tx-result.cjs';
|
|
113
|
+
import { RpcSubscribeAddressResult } from './types/rpc/rpc-subscribe-address-result.cjs';
|
|
114
|
+
import { RpcVerifyAndSignChallengeResult } from './types/rpc/rpc-verify-and-sign-challenge-result.cjs';
|
|
115
|
+
import { RpcVerifyIdentityProofResult } from './types/rpc/rpc-verify-identity-proof-result.cjs';
|
|
116
|
+
import { RpcViewContractResult } from './types/rpc/rpc-view-contract-result.cjs';
|
|
117
|
+
import { UploadHeightsResult } from './types/rpc/upload-heights-result.cjs';
|
|
118
|
+
export interface RpcApiSpec {
|
|
119
|
+
debug_allHeights(): Promise<RpcAccountHeight[]>;
|
|
120
|
+
debug_balanceGrantList(): Promise<string[]>;
|
|
121
|
+
debug_balanceList(): Promise<string[]>;
|
|
122
|
+
debug_callContract(param: ParamsCallContract): Promise<RpcCreateTxResult>;
|
|
123
|
+
debug_createAccount(): Promise<RpcCreateAccountResult>;
|
|
124
|
+
debug_createContract(param: ParamsCreateContract): Promise<RpcCreateTxResult>;
|
|
125
|
+
debug_createNode(param: ParamsCreateNode): Promise<RpcCreateNodeResult>;
|
|
126
|
+
debug_createSynthAccount(param: ParamsCreateSynthAccount): Promise<RpcCreateTxResult>;
|
|
127
|
+
debug_dumpAllAccounts(): Promise<ResultDumpAccounts>;
|
|
128
|
+
debug_echo(str: string): Promise<string>;
|
|
129
|
+
debug_gameChainCmd(param: ParamsGameChainCmd): Promise<RpcGameChainCmdResult>;
|
|
130
|
+
debug_getAccountsBalances(param: ParamsAccounts): Promise<RpcGetAccountsBalancesResult>;
|
|
131
|
+
debug_getAccountsHeights(param: ParamsAccounts): Promise<RpcGetAccountsHeightsResult>;
|
|
132
|
+
debug_getContractLog(param: ParamsContractLog): Promise<RpcGetContractLogResult>;
|
|
133
|
+
debug_getGuestsInfo(): Promise<RpcGetGuestsInfoResult>;
|
|
134
|
+
debug_getHomeShard(param: ParamsGetHomeShard): Promise<RpcGetHomeShardResult>;
|
|
135
|
+
debug_getImportAccount(params: ParamsGetImportAccount): Promise<RpcGetImportAccountResult>;
|
|
136
|
+
debug_getImportAccountLog(params: ParamsGetImportAccount): Promise<RpcImportAccountResult>;
|
|
137
|
+
debug_getKeys(params: ParamsAccount): Promise<RpcGetKeysResult>;
|
|
138
|
+
debug_getNodeBlocks(): Promise<RpcGetNodeBlocksResult>;
|
|
139
|
+
debug_getPeerPool(): Promise<string[]>;
|
|
140
|
+
debug_getPeersInfo(): Promise<GetPeersInfo>;
|
|
141
|
+
debug_importAccount(params: ParamsImportAccount): Promise<RpcImportAccountResult>;
|
|
142
|
+
debug_initReliableNodes(param: ParamsInitReliableNodes): Promise<RpcBoolResult>;
|
|
143
|
+
debug_noArgsRets(): Promise<any>;
|
|
144
|
+
debug_nodeCmd(cmd: string): Promise<RpcNodeCmdResult>;
|
|
145
|
+
debug_postDataToSynthAccount(param: ParamsPostDataToSynthAccount): Promise<RpcCreateTxResult>;
|
|
146
|
+
debug_removeHoldTxs(param: ParamsRemoveHoldTxs): Promise<RetTypeBase>;
|
|
147
|
+
debug_requestVme(params: ParamsRequestVme): Promise<RpcRequestVmeResult>;
|
|
148
|
+
debug_sendRawTransaction(params: ParamsSendRawTransaction): Promise<RpcSendRawTransactionResult>;
|
|
149
|
+
debug_setImportAccountTx(params: ParamsSetImportAccountTx): Promise<RpcSetImportAccountTxResult>;
|
|
150
|
+
debug_setReliableNode(param: ParamsSetReliableNode): Promise<RpcBoolResult>;
|
|
151
|
+
debug_viewContract(param: ParamsCallContract): Promise<RpcViewContractResult>;
|
|
152
|
+
locus_acceptScript(params: ParamsAcceptScript): Promise<RpcCreateTxResult>;
|
|
153
|
+
locus_accountHeightsToDownload(param: ParamsAccountHeights): Promise<HeightsResult>;
|
|
154
|
+
locus_accountHeightsToUpload(param: ParamsAccountHeights): Promise<UploadHeightsResult>;
|
|
155
|
+
locus_becomeGuest(param: ParamsBecomeGuest): Promise<RpcCreateTxResult>;
|
|
156
|
+
locus_becomeHost(param: ParamsBecomeHost): Promise<RpcCreateTxResult>;
|
|
157
|
+
locus_calculateSpentByExpress(param: ParamsCalculateSpentByExpress): Promise<RpcCalculateSpentByExpressResult>;
|
|
158
|
+
locus_changeKey(params: ParamsChangeKey): Promise<RpcCreateTxResult>;
|
|
159
|
+
locus_changeVkey(params: ParamsChangeVKey): Promise<RpcCreateTxResult>;
|
|
160
|
+
locus_clientMessage(param: ParamStr): Promise<any>;
|
|
161
|
+
locus_closeAccount(param: ParamsCloseAccount): Promise<RpcCreateTxResult>;
|
|
162
|
+
locus_createAssetObject(param: ParamsCreateAssetObject): Promise<RpcCreateTxResult>;
|
|
163
|
+
locus_createToken(param: ParamsCreateToken): Promise<RpcCreateTxResult>;
|
|
164
|
+
locus_createVme(param: ParamsCreateVme): Promise<RpcCreateTxResult>;
|
|
165
|
+
locus_downloadAccountTxs(param: ParamsDownloadAccountTxs): Promise<OutputDownloadAccountTxs>;
|
|
166
|
+
locus_echo(str: string): Promise<string>;
|
|
167
|
+
locus_findDuplicateSubscriber(params: ParamsFindDuplicateSubscriber): Promise<RpcFindDuplicateSubscriberResult>;
|
|
168
|
+
locus_freezeAccount(params: ParamsFreezeAccount): Promise<RpcCreateTxResult>;
|
|
169
|
+
locus_generateLatestStoredDataProof(params: ParamsGenerateLatestStoredDataProof): Promise<RpcGenerateLatestStoredDataProofResult>;
|
|
170
|
+
locus_getAccountAssetList(params: ParamsGetAssetList): Promise<RpcGetAccountAssetListResult>;
|
|
171
|
+
locus_getAccountAssetObject(params: ParamsGetAssetObjects): Promise<RpcGetAccountAssetObjectResult>;
|
|
172
|
+
locus_getAccountDetail(param: ParamsAccount): Promise<RpcGetAccountDetailResult>;
|
|
173
|
+
locus_getAccountHistory(param: ParamsAccountHistory): Promise<RpcGetAccountHistoryResult>;
|
|
174
|
+
locus_getAccountTokenList(params: ParamsAccount): Promise<RpcGetAccountTokenListResult>;
|
|
175
|
+
locus_getConciseNodeStatus(): Promise<RpcGetConciseNodeStatusResult>;
|
|
176
|
+
locus_getGenesisAccount(): Promise<RpcGetGenesisAccountResult>;
|
|
177
|
+
locus_getIdentityProof(param: ParamsGetIdentityProof): Promise<RpcGetIdentityProofResult>;
|
|
178
|
+
locus_getInactiveTxList(param: ParamsAccount): Promise<RpcGetInactiveTxListResult>;
|
|
179
|
+
locus_getMontInfoList(param: ParamsAccount): Promise<RpcGetMontInfoListResult>;
|
|
180
|
+
locus_getNodeStatus(): Promise<RpcGetNodeStatusResult>;
|
|
181
|
+
locus_getOwnerBalance(): Promise<RpcAccountsBalancesResult[]>;
|
|
182
|
+
locus_getRoundState(param: ParamsRound): Promise<RoundStateDetail>;
|
|
183
|
+
locus_getRoundStatesList(param: ParamsRS): Promise<RoundStateAbstract[]>;
|
|
184
|
+
locus_getShardOfAccount(params: ParamsAccount): Promise<RpcGetShardOfAccountResult>;
|
|
185
|
+
locus_getSyncState(): Promise<RpcGetSyncStateResult>;
|
|
186
|
+
locus_getTx(param: ParamsAccountAndIndex): Promise<RpcGetTxResult>;
|
|
187
|
+
locus_getWorldRoundState(param: ParamsRound): Promise<RpcGetWorldRoundStateResult>;
|
|
188
|
+
locus_getWorldRoundStatesList(param: ParamsRoundList): Promise<RpcGetWorldRoundStatesListResult>;
|
|
189
|
+
locus_hasSystemToken(params: ParamsAccount): Promise<RpcHasSystemTokenResult>;
|
|
190
|
+
locus_lockStake(params: ParamsLockStake): Promise<RpcCreateTxResult>;
|
|
191
|
+
locus_makeTxProof(params: ParamsTxList): Promise<RpcReadTxListWitnessResult>;
|
|
192
|
+
locus_openAccount(param: ParamsOpenAccount): Promise<RpcCreateTxResult>;
|
|
193
|
+
locus_postData(params: InputParamsDataTransfer): Promise<RpcCreateTxResult>;
|
|
194
|
+
locus_provideScript(params: ParamsProvideScript): Promise<RpcCreateTxResult>;
|
|
195
|
+
locus_queryAddress(params: ParamsQueryAddress): Promise<RpcQueryAddressResult>;
|
|
196
|
+
locus_readTxListWitness(params: ParamsReadTxList): Promise<RpcReadTxListWitnessResult>;
|
|
197
|
+
locus_requestDataTrade(params: ParamsRequestDataTrade): Promise<RpcDataTradeResult>;
|
|
198
|
+
locus_setHost(param: ParamsSetHost): Promise<boolean>;
|
|
199
|
+
locus_subscribeAddress(params: ParamsSubscribeAddress): Promise<RpcSubscribeAddressResult>;
|
|
200
|
+
locus_transferAssetObject(params: ParamsTransferAssetObject): Promise<RpcCreateTxResult>;
|
|
201
|
+
locus_transferCoin(param: ParamsTransferCoin): Promise<RpcCreateTxResult>;
|
|
202
|
+
locus_transferCoinExpress(param: ParamsTransferCoinExpress): Promise<RpcCreateTxResult>;
|
|
203
|
+
locus_transferToken(params: ParamsTransferTokens): Promise<RpcCreateTxResult>;
|
|
204
|
+
locus_unlockStake(params: ParamsUnlockStake): Promise<RpcCreateTxResult>;
|
|
205
|
+
locus_uploadAccountTxs(param: ParamsUploadAccountTxs): Promise<number[]>;
|
|
206
|
+
locus_verifyAndSignChallenge(param: ParamsVerifyAndSignChallenge): Promise<RpcVerifyAndSignChallengeResult>;
|
|
207
|
+
locus_verifyIdentityProof(param: ParamsVerifyIdentityProof): Promise<RpcVerifyIdentityProofResult>;
|
|
208
|
+
locus_verifyLatestStoredDataProof(params: ParamsLatestStoredDataProof): Promise<boolean>;
|
|
209
|
+
locus_verifyTxListWitness(params: ParamsTxListWitness): Promise<boolean>;
|
|
210
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AssetObject } from './asset-object.cjs';
|
|
2
|
+
import { ObjectAmountTransfer } from './object-amount-transfer.cjs';
|
|
3
|
+
import { ObjectAmount } from './object-amount.cjs';
|
|
4
|
+
export type AssetTransferInfo = {
|
|
5
|
+
targetObject: AssetObject;
|
|
6
|
+
transferObjects: ObjectAmountTransfer[];
|
|
7
|
+
insertObjects: ObjectAmount[];
|
|
8
|
+
removeObjects: ObjectAmount[];
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BaseMeta = [number, number, number, number];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ContractTransferInfo } from './contract-transfer-info.cjs';
|
|
2
|
+
export type ContractExecStatus = {
|
|
3
|
+
contract: string;
|
|
4
|
+
refAddr: string;
|
|
5
|
+
refIndex: number;
|
|
6
|
+
refLink: string;
|
|
7
|
+
retFuel: string;
|
|
8
|
+
retAmount: string;
|
|
9
|
+
retTokens: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
result: string;
|
|
13
|
+
error: string;
|
|
14
|
+
transfers: ContractTransferInfo[];
|
|
15
|
+
blockHeight: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export * from './addr-tx-proof.cjs';
|
|
2
|
+
export * from './asset-object.cjs';
|
|
3
|
+
export * from './asset-object-transfer.cjs';
|
|
4
|
+
export * from './asset-proof-objects.cjs';
|
|
5
|
+
export * from './asset-transfer-info.cjs';
|
|
6
|
+
export * from './base-meta.cjs';
|
|
7
|
+
export * from './contract-exec-status.cjs';
|
|
8
|
+
export * from './contract-transfer-info.cjs';
|
|
9
|
+
export * from './get-peers-info.cjs';
|
|
10
|
+
export * from './index-value-pair.cjs';
|
|
11
|
+
export * from './input-params-data-transfer.cjs';
|
|
12
|
+
export * from './key-bind-info.cjs';
|
|
13
|
+
export * from './mont-info.cjs';
|
|
14
|
+
export * from './object-amount.cjs';
|
|
15
|
+
export * from './object-amount-transfer.cjs';
|
|
16
|
+
export * from './output-download-account-txs.cjs';
|
|
17
|
+
export * from './param-str.cjs';
|
|
18
|
+
export * from './param-tx-data.cjs';
|
|
19
|
+
export * from './params-token-value-pair.cjs';
|
|
20
|
+
export * from './public-height-chunk.cjs';
|
|
21
|
+
export * from './ref-tx-info.cjs';
|
|
22
|
+
export * from './ref-vtx.cjs';
|
|
23
|
+
export * from './ret-type-base.cjs';
|
|
24
|
+
export * from './round-state-abstract.cjs';
|
|
25
|
+
export * from './round-state-detail.cjs';
|
|
26
|
+
export * from './rpc-account-height.cjs';
|
|
27
|
+
export * from './rpc-accounts-balances-result.cjs';
|
|
28
|
+
export * from './rpc-asset-list-values.cjs';
|
|
29
|
+
export * from './rpc-data-trade-result.cjs';
|
|
30
|
+
export * from './rpc-token-balance-pair.cjs';
|
|
31
|
+
export * from './token-value-ab.cjs';
|
|
32
|
+
export * from './token-value-pair.cjs';
|
|
33
|
+
export * from './transaction-sender-index.cjs';
|
|
34
|
+
export * from './transfer-info.cjs';
|
|
35
|
+
export * from './tx-base.cjs';
|
|
36
|
+
export * from './tx-hash-elements.cjs';
|
|
37
|
+
export * from './tx-key.cjs';
|
|
38
|
+
export * from './tx-key-height-hash.cjs';
|
|
39
|
+
export * from './tx-key-nround.cjs';
|
|
40
|
+
export * from './tx-meta.cjs';
|
|
41
|
+
export * from './tx-no-signature.cjs';
|
|
42
|
+
export * from './tx-recv-set-meta.cjs';
|
|
43
|
+
export * from './tx-sign-key.cjs';
|
|
44
|
+
export * from './tx-signature.cjs';
|
|
45
|
+
export * from './tx-vsignature.cjs';
|
|
46
|
+
export * from './vm-engine-block.cjs';
|
|
47
|
+
export * from './vm-reward.cjs';
|
|
48
|
+
export * from './vm-tx-state.cjs';
|
|
49
|
+
export * from './vme-block-meta.cjs';
|
|
50
|
+
export * from './vme-info.cjs';
|
|
51
|
+
export * from './vme-lock-stake.cjs';
|
|
52
|
+
export * from './vote-info-rpc.cjs';
|
|
53
|
+
export * from './vtx-meta.cjs';
|
|
54
|
+
export * from './wrs-validators-info.cjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RetTypeBase = {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VoteInfoRPC } from './vote-info-rpc.cjs';
|
|
2
|
+
export type RoundStateDetail = {
|
|
3
|
+
nextRound: number;
|
|
4
|
+
prevNextRound: number;
|
|
5
|
+
hash: string;
|
|
6
|
+
totalHeight: number;
|
|
7
|
+
proposer: string;
|
|
8
|
+
validatorsWeight: number;
|
|
9
|
+
validators: VoteInfoRPC[];
|
|
10
|
+
incentiveExist: boolean;
|
|
11
|
+
totalIncentive: string;
|
|
12
|
+
startRound: number;
|
|
13
|
+
endRound: number;
|
|
14
|
+
newEpoch: number;
|
|
15
|
+
newEpochRound: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TxMeta } from './tx-meta.cjs';
|
|
2
|
+
export type TxBase = {
|
|
3
|
+
meta: TxMeta;
|
|
4
|
+
type: string;
|
|
5
|
+
height: number;
|
|
6
|
+
grant: number;
|
|
7
|
+
prevLink: string;
|
|
8
|
+
jumpDist: number;
|
|
9
|
+
jumpLink: string;
|
|
10
|
+
round: number;
|
|
11
|
+
timeStamp: number;
|
|
12
|
+
followRun: number;
|
|
13
|
+
};
|