@0xtorch/core 0.0.1 → 0.0.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/.DS_Store +0 -0
- package/_cjs/accounts/index.js +3 -0
- package/_cjs/accounts/index.js.map +1 -0
- package/_cjs/accounts/types/account.js +3 -0
- package/_cjs/accounts/types/account.js.map +1 -0
- package/_cjs/accounts/types/index.js +3 -0
- package/_cjs/accounts/types/index.js.map +1 -0
- package/_cjs/actions/index.js +91 -0
- package/_cjs/actions/index.js.map +1 -0
- package/_cjs/actions/schemas/action.js +105 -0
- package/_cjs/actions/schemas/action.js.map +1 -0
- package/_cjs/actions/schemas/borrow/borrow.js +26 -0
- package/_cjs/actions/schemas/borrow/borrow.js.map +1 -0
- package/_cjs/actions/schemas/borrow/borrowWithDebt.js +36 -0
- package/_cjs/actions/schemas/borrow/borrowWithDebt.js.map +1 -0
- package/_cjs/actions/schemas/borrow/index.js +10 -0
- package/_cjs/actions/schemas/borrow/index.js.map +1 -0
- package/_cjs/actions/schemas/crossActionBundle.js +9 -0
- package/_cjs/actions/schemas/crossActionBundle.js.map +1 -0
- package/_cjs/actions/schemas/crossReplace/bridgeFrom.js +26 -0
- package/_cjs/actions/schemas/crossReplace/bridgeFrom.js.map +1 -0
- package/_cjs/actions/schemas/crossReplace/bridgeTo.js +26 -0
- package/_cjs/actions/schemas/crossReplace/bridgeTo.js.map +1 -0
- package/_cjs/actions/schemas/crossReplace/crossReplace.js +26 -0
- package/_cjs/actions/schemas/crossReplace/crossReplace.js.map +1 -0
- package/_cjs/actions/schemas/crossReplace/index.js +13 -0
- package/_cjs/actions/schemas/crossReplace/index.js.map +1 -0
- package/_cjs/actions/schemas/crossTrade/crossTrade.js +26 -0
- package/_cjs/actions/schemas/crossTrade/crossTrade.js.map +1 -0
- package/_cjs/actions/schemas/crossTrade/index.js +7 -0
- package/_cjs/actions/schemas/crossTrade/index.js.map +1 -0
- package/_cjs/actions/schemas/default/accountAction.js +29 -0
- package/_cjs/actions/schemas/default/accountAction.js.map +1 -0
- package/_cjs/actions/schemas/default/index.js +27 -0
- package/_cjs/actions/schemas/default/index.js.map +1 -0
- package/_cjs/actions/schemas/default/normalAction.js +25 -0
- package/_cjs/actions/schemas/default/normalAction.js.map +1 -0
- package/_cjs/actions/schemas/default/transfer.js +137 -0
- package/_cjs/actions/schemas/default/transfer.js.map +1 -0
- package/_cjs/actions/schemas/default/unions.js +99 -0
- package/_cjs/actions/schemas/default/unions.js.map +1 -0
- package/_cjs/actions/schemas/deposit/addLiquidity.js +36 -0
- package/_cjs/actions/schemas/deposit/addLiquidity.js.map +1 -0
- package/_cjs/actions/schemas/deposit/deposit.js +26 -0
- package/_cjs/actions/schemas/deposit/deposit.js.map +1 -0
- package/_cjs/actions/schemas/deposit/depositWithBond.js +36 -0
- package/_cjs/actions/schemas/deposit/depositWithBond.js.map +1 -0
- package/_cjs/actions/schemas/deposit/index.js +16 -0
- package/_cjs/actions/schemas/deposit/index.js.map +1 -0
- package/_cjs/actions/schemas/deposit/stake.js +26 -0
- package/_cjs/actions/schemas/deposit/stake.js.map +1 -0
- package/_cjs/actions/schemas/fee/fee.js +26 -0
- package/_cjs/actions/schemas/fee/fee.js.map +1 -0
- package/_cjs/actions/schemas/fee/index.js +10 -0
- package/_cjs/actions/schemas/fee/index.js.map +1 -0
- package/_cjs/actions/schemas/fee/transactionFee.js +26 -0
- package/_cjs/actions/schemas/fee/transactionFee.js.map +1 -0
- package/_cjs/actions/schemas/ignore/approve.js +26 -0
- package/_cjs/actions/schemas/ignore/approve.js.map +1 -0
- package/_cjs/actions/schemas/ignore/failTx.js +26 -0
- package/_cjs/actions/schemas/ignore/failTx.js.map +1 -0
- package/_cjs/actions/schemas/ignore/ignore.js +15 -0
- package/_cjs/actions/schemas/ignore/ignore.js.map +1 -0
- package/_cjs/actions/schemas/ignore/index.js +24 -0
- package/_cjs/actions/schemas/ignore/index.js.map +1 -0
- package/_cjs/actions/schemas/ignore/move.js +15 -0
- package/_cjs/actions/schemas/ignore/move.js.map +1 -0
- package/_cjs/actions/schemas/ignore/receiveFromCex.js +16 -0
- package/_cjs/actions/schemas/ignore/receiveFromCex.js.map +1 -0
- package/_cjs/actions/schemas/ignore/revoke.js +26 -0
- package/_cjs/actions/schemas/ignore/revoke.js.map +1 -0
- package/_cjs/actions/schemas/ignore/sendToCex.js +16 -0
- package/_cjs/actions/schemas/ignore/sendToCex.js.map +1 -0
- package/_cjs/actions/schemas/ignore/spam.js +26 -0
- package/_cjs/actions/schemas/ignore/spam.js.map +1 -0
- package/_cjs/actions/schemas/income/atomicArbitrage.js +26 -0
- package/_cjs/actions/schemas/income/atomicArbitrage.js.map +1 -0
- package/_cjs/actions/schemas/income/freeMintNft.js +26 -0
- package/_cjs/actions/schemas/income/freeMintNft.js.map +1 -0
- package/_cjs/actions/schemas/income/income.js +16 -0
- package/_cjs/actions/schemas/income/income.js.map +1 -0
- package/_cjs/actions/schemas/income/index.js +16 -0
- package/_cjs/actions/schemas/income/index.js.map +1 -0
- package/_cjs/actions/schemas/income/nftRoyalty.js +16 -0
- package/_cjs/actions/schemas/income/nftRoyalty.js.map +1 -0
- package/_cjs/actions/schemas/income/swapIncome.js +16 -0
- package/_cjs/actions/schemas/income/swapIncome.js.map +1 -0
- package/_cjs/actions/schemas/index.js +107 -0
- package/_cjs/actions/schemas/index.js.map +1 -0
- package/_cjs/actions/schemas/reduce/index.js +6 -0
- package/_cjs/actions/schemas/reduce/index.js.map +1 -0
- package/_cjs/actions/schemas/reduce/reduce.js +16 -0
- package/_cjs/actions/schemas/reduce/reduce.js.map +1 -0
- package/_cjs/actions/schemas/repayment/index.js +10 -0
- package/_cjs/actions/schemas/repayment/index.js.map +1 -0
- package/_cjs/actions/schemas/repayment/repayment.js +26 -0
- package/_cjs/actions/schemas/repayment/repayment.js.map +1 -0
- package/_cjs/actions/schemas/repayment/repaymentWithDebt.js +36 -0
- package/_cjs/actions/schemas/repayment/repaymentWithDebt.js.map +1 -0
- package/_cjs/actions/schemas/replace/index.js +16 -0
- package/_cjs/actions/schemas/replace/index.js.map +1 -0
- package/_cjs/actions/schemas/replace/replace.js +36 -0
- package/_cjs/actions/schemas/replace/replace.js.map +1 -0
- package/_cjs/actions/schemas/replace/swapNft.js +32 -0
- package/_cjs/actions/schemas/replace/swapNft.js.map +1 -0
- package/_cjs/actions/schemas/replace/unwrap.js +32 -0
- package/_cjs/actions/schemas/replace/unwrap.js.map +1 -0
- package/_cjs/actions/schemas/replace/wrap.js +32 -0
- package/_cjs/actions/schemas/replace/wrap.js.map +1 -0
- package/_cjs/actions/schemas/trade/buyCrypto.js +26 -0
- package/_cjs/actions/schemas/trade/buyCrypto.js.map +1 -0
- package/_cjs/actions/schemas/trade/buyNft.js +34 -0
- package/_cjs/actions/schemas/trade/buyNft.js.map +1 -0
- package/_cjs/actions/schemas/trade/index.js +21 -0
- package/_cjs/actions/schemas/trade/index.js.map +1 -0
- package/_cjs/actions/schemas/trade/mintNft.js +34 -0
- package/_cjs/actions/schemas/trade/mintNft.js.map +1 -0
- package/_cjs/actions/schemas/trade/sellCrypto.js +26 -0
- package/_cjs/actions/schemas/trade/sellCrypto.js.map +1 -0
- package/_cjs/actions/schemas/trade/sellNft.js +20 -0
- package/_cjs/actions/schemas/trade/sellNft.js.map +1 -0
- package/_cjs/actions/schemas/trade/trade.js +26 -0
- package/_cjs/actions/schemas/trade/trade.js.map +1 -0
- package/_cjs/actions/schemas/transfer/index.js +9 -0
- package/_cjs/actions/schemas/transfer/index.js.map +1 -0
- package/_cjs/actions/schemas/transfer/swapTransfer.js +16 -0
- package/_cjs/actions/schemas/transfer/swapTransfer.js.map +1 -0
- package/_cjs/actions/schemas/transfer/transfer.js +25 -0
- package/_cjs/actions/schemas/transfer/transfer.js.map +1 -0
- package/_cjs/actions/schemas/valuedown/index.js +7 -0
- package/_cjs/actions/schemas/valuedown/index.js.map +1 -0
- package/_cjs/actions/schemas/valuedown/valuedown.js +29 -0
- package/_cjs/actions/schemas/valuedown/valuedown.js.map +1 -0
- package/_cjs/actions/schemas/valueup/index.js +7 -0
- package/_cjs/actions/schemas/valueup/index.js.map +1 -0
- package/_cjs/actions/schemas/valueup/valueup.js +29 -0
- package/_cjs/actions/schemas/valueup/valueup.js.map +1 -0
- package/_cjs/actions/schemas/withdraw/index.js +16 -0
- package/_cjs/actions/schemas/withdraw/index.js.map +1 -0
- package/_cjs/actions/schemas/withdraw/removeLiquidity.js +36 -0
- package/_cjs/actions/schemas/withdraw/removeLiquidity.js.map +1 -0
- package/_cjs/actions/schemas/withdraw/unstake.js +26 -0
- package/_cjs/actions/schemas/withdraw/unstake.js.map +1 -0
- package/_cjs/actions/schemas/withdraw/withdraw.js +26 -0
- package/_cjs/actions/schemas/withdraw/withdraw.js.map +1 -0
- package/_cjs/actions/schemas/withdraw/withdrawWithBond.js +36 -0
- package/_cjs/actions/schemas/withdraw/withdrawWithBond.js.map +1 -0
- package/_cjs/actions/types/action.js +3 -0
- package/_cjs/actions/types/action.js.map +1 -0
- package/_cjs/actions/types/addLiquidity.js +3 -0
- package/_cjs/actions/types/addLiquidity.js.map +1 -0
- package/_cjs/actions/types/approve.js +3 -0
- package/_cjs/actions/types/approve.js.map +1 -0
- package/_cjs/actions/types/atomicArbitrage.js +3 -0
- package/_cjs/actions/types/atomicArbitrage.js.map +1 -0
- package/_cjs/actions/types/borrow.js +3 -0
- package/_cjs/actions/types/borrow.js.map +1 -0
- package/_cjs/actions/types/borrowWithDebt.js +3 -0
- package/_cjs/actions/types/borrowWithDebt.js.map +1 -0
- package/_cjs/actions/types/bridgeFrom.js +3 -0
- package/_cjs/actions/types/bridgeFrom.js.map +1 -0
- package/_cjs/actions/types/bridgeTo.js +3 -0
- package/_cjs/actions/types/bridgeTo.js.map +1 -0
- package/_cjs/actions/types/buyNft.js +3 -0
- package/_cjs/actions/types/buyNft.js.map +1 -0
- package/_cjs/actions/types/crossActionBundle.js +3 -0
- package/_cjs/actions/types/crossActionBundle.js.map +1 -0
- package/_cjs/actions/types/crossReplace.js +3 -0
- package/_cjs/actions/types/crossReplace.js.map +1 -0
- package/_cjs/actions/types/crossTrade.js +3 -0
- package/_cjs/actions/types/crossTrade.js.map +1 -0
- package/_cjs/actions/types/deposit.js +3 -0
- package/_cjs/actions/types/deposit.js.map +1 -0
- package/_cjs/actions/types/depositWithBond.js +3 -0
- package/_cjs/actions/types/depositWithBond.js.map +1 -0
- package/_cjs/actions/types/failTx.js +3 -0
- package/_cjs/actions/types/failTx.js.map +1 -0
- package/_cjs/actions/types/fee.js +3 -0
- package/_cjs/actions/types/fee.js.map +1 -0
- package/_cjs/actions/types/freeMintNft.js +3 -0
- package/_cjs/actions/types/freeMintNft.js.map +1 -0
- package/_cjs/actions/types/ignore.js +3 -0
- package/_cjs/actions/types/ignore.js.map +1 -0
- package/_cjs/actions/types/income.js +3 -0
- package/_cjs/actions/types/income.js.map +1 -0
- package/_cjs/actions/types/index.js +3 -0
- package/_cjs/actions/types/index.js.map +1 -0
- package/_cjs/actions/types/mintNft.js +3 -0
- package/_cjs/actions/types/mintNft.js.map +1 -0
- package/_cjs/actions/types/move.js +3 -0
- package/_cjs/actions/types/move.js.map +1 -0
- package/_cjs/actions/types/nftRoyalty.js +3 -0
- package/_cjs/actions/types/nftRoyalty.js.map +1 -0
- package/_cjs/actions/types/receiveFromCex.js +3 -0
- package/_cjs/actions/types/receiveFromCex.js.map +1 -0
- package/_cjs/actions/types/reduce.js +3 -0
- package/_cjs/actions/types/reduce.js.map +1 -0
- package/_cjs/actions/types/removeLiquidity.js +3 -0
- package/_cjs/actions/types/removeLiquidity.js.map +1 -0
- package/_cjs/actions/types/repayment.js +3 -0
- package/_cjs/actions/types/repayment.js.map +1 -0
- package/_cjs/actions/types/repaymentWithDebt.js +3 -0
- package/_cjs/actions/types/repaymentWithDebt.js.map +1 -0
- package/_cjs/actions/types/replace.js +3 -0
- package/_cjs/actions/types/replace.js.map +1 -0
- package/_cjs/actions/types/revoke.js +3 -0
- package/_cjs/actions/types/revoke.js.map +1 -0
- package/_cjs/actions/types/sellNft.js +3 -0
- package/_cjs/actions/types/sellNft.js.map +1 -0
- package/_cjs/actions/types/sendToCex.js +3 -0
- package/_cjs/actions/types/sendToCex.js.map +1 -0
- package/_cjs/actions/types/spam.js +3 -0
- package/_cjs/actions/types/spam.js.map +1 -0
- package/_cjs/actions/types/swapIncome.js +3 -0
- package/_cjs/actions/types/swapIncome.js.map +1 -0
- package/_cjs/actions/types/swapNft.js +3 -0
- package/_cjs/actions/types/swapNft.js.map +1 -0
- package/_cjs/actions/types/swapTransfer.js +3 -0
- package/_cjs/actions/types/swapTransfer.js.map +1 -0
- package/_cjs/actions/types/trade.js +3 -0
- package/_cjs/actions/types/trade.js.map +1 -0
- package/_cjs/actions/types/transactionFee.js +3 -0
- package/_cjs/actions/types/transactionFee.js.map +1 -0
- package/_cjs/actions/types/transfer.js +3 -0
- package/_cjs/actions/types/transfer.js.map +1 -0
- package/_cjs/actions/types/unwrap.js +3 -0
- package/_cjs/actions/types/unwrap.js.map +1 -0
- package/_cjs/actions/types/valuedown.js +3 -0
- package/_cjs/actions/types/valuedown.js.map +1 -0
- package/_cjs/actions/types/valueup.js +3 -0
- package/_cjs/actions/types/valueup.js.map +1 -0
- package/_cjs/actions/types/withdraw.js +3 -0
- package/_cjs/actions/types/withdraw.js.map +1 -0
- package/_cjs/actions/types/withdrawWithBond.js +3 -0
- package/_cjs/actions/types/withdrawWithBond.js.map +1 -0
- package/_cjs/actions/types/wrap.js +3 -0
- package/_cjs/actions/types/wrap.js.map +1 -0
- package/_cjs/apps/index.js +8 -0
- package/_cjs/apps/index.js.map +1 -0
- package/_cjs/apps/schemas.js +32 -0
- package/_cjs/apps/schemas.js.map +1 -0
- package/_cjs/apps/types.js +3 -0
- package/_cjs/apps/types.js.map +1 -0
- package/_cjs/assets/constants.js +5 -0
- package/_cjs/assets/constants.js.map +1 -0
- package/_cjs/assets/creates/createCryptoCurrency.js +8 -0
- package/_cjs/assets/creates/createCryptoCurrency.js.map +1 -0
- package/_cjs/assets/creates/createFiatCurrency.js +8 -0
- package/_cjs/assets/creates/createFiatCurrency.js.map +1 -0
- package/_cjs/assets/creates/index.js +8 -0
- package/_cjs/assets/creates/index.js.map +1 -0
- package/_cjs/assets/definitions/astar.js +17 -0
- package/_cjs/assets/definitions/astar.js.map +1 -0
- package/_cjs/assets/definitions/avalanche.js +17 -0
- package/_cjs/assets/definitions/avalanche.js.map +1 -0
- package/_cjs/assets/definitions/bnb.js +17 -0
- package/_cjs/assets/definitions/bnb.js.map +1 -0
- package/_cjs/assets/definitions/coingeckoCryptoCurrencyDataSource.js +93 -0
- package/_cjs/assets/definitions/coingeckoCryptoCurrencyDataSource.js.map +1 -0
- package/_cjs/assets/definitions/ethereum.js +17 -0
- package/_cjs/assets/definitions/ethereum.js.map +1 -0
- package/_cjs/assets/definitions/eur.js +12 -0
- package/_cjs/assets/definitions/eur.js.map +1 -0
- package/_cjs/assets/definitions/fantom.js +17 -0
- package/_cjs/assets/definitions/fantom.js.map +1 -0
- package/_cjs/assets/definitions/index.js +36 -0
- package/_cjs/assets/definitions/index.js.map +1 -0
- package/_cjs/assets/definitions/jpy.js +12 -0
- package/_cjs/assets/definitions/jpy.js.map +1 -0
- package/_cjs/assets/definitions/kava.js +17 -0
- package/_cjs/assets/definitions/kava.js.map +1 -0
- package/_cjs/assets/definitions/mantle.js +17 -0
- package/_cjs/assets/definitions/mantle.js.map +1 -0
- package/_cjs/assets/definitions/maticNetwork.js +17 -0
- package/_cjs/assets/definitions/maticNetwork.js.map +1 -0
- package/_cjs/assets/definitions/metis.js +17 -0
- package/_cjs/assets/definitions/metis.js.map +1 -0
- package/_cjs/assets/definitions/moonbeam.js +17 -0
- package/_cjs/assets/definitions/moonbeam.js.map +1 -0
- package/_cjs/assets/definitions/moonriver.js +17 -0
- package/_cjs/assets/definitions/moonriver.js.map +1 -0
- package/_cjs/assets/definitions/ronin.js +17 -0
- package/_cjs/assets/definitions/ronin.js.map +1 -0
- package/_cjs/assets/definitions/usd.js +12 -0
- package/_cjs/assets/definitions/usd.js.map +1 -0
- package/_cjs/assets/externals/coingecko/constants.js +5 -0
- package/_cjs/assets/externals/coingecko/constants.js.map +1 -0
- package/_cjs/assets/externals/coingecko/getAutoRetry.js +31 -0
- package/_cjs/assets/externals/coingecko/getAutoRetry.js.map +1 -0
- package/_cjs/assets/externals/coingecko/getCoinMarketChartRange.js +22 -0
- package/_cjs/assets/externals/coingecko/getCoinMarketChartRange.js.map +1 -0
- package/_cjs/assets/externals/coingecko/getCoinsMarkets.js +36 -0
- package/_cjs/assets/externals/coingecko/getCoinsMarkets.js.map +1 -0
- package/_cjs/assets/externals/coingecko/index.js +8 -0
- package/_cjs/assets/externals/coingecko/index.js.map +1 -0
- package/_cjs/assets/externals/index.js +7 -0
- package/_cjs/assets/externals/index.js.map +1 -0
- package/_cjs/assets/index.js +32 -0
- package/_cjs/assets/index.js.map +1 -0
- package/_cjs/assets/schemas/asset.js +13 -0
- package/_cjs/assets/schemas/asset.js.map +1 -0
- package/_cjs/assets/schemas/cryptoCurrency.js +30 -0
- package/_cjs/assets/schemas/cryptoCurrency.js.map +1 -0
- package/_cjs/assets/schemas/cryptoCurrencyPrice.js +12 -0
- package/_cjs/assets/schemas/cryptoCurrencyPrice.js.map +1 -0
- package/_cjs/assets/schemas/fiatCurrency.js +29 -0
- package/_cjs/assets/schemas/fiatCurrency.js.map +1 -0
- package/_cjs/assets/schemas/index.js +15 -0
- package/_cjs/assets/schemas/index.js.map +1 -0
- package/_cjs/assets/schemas/nft.js +9 -0
- package/_cjs/assets/schemas/nft.js.map +1 -0
- package/_cjs/assets/types/cryptoCurrency.js +3 -0
- package/_cjs/assets/types/cryptoCurrency.js.map +1 -0
- package/_cjs/assets/types/cryptoCurrencyPrice.js +3 -0
- package/_cjs/assets/types/cryptoCurrencyPrice.js.map +1 -0
- package/_cjs/assets/types/dataSource.js +3 -0
- package/_cjs/assets/types/dataSource.js.map +1 -0
- package/_cjs/assets/types/fiatCurrency.js +3 -0
- package/_cjs/assets/types/fiatCurrency.js.map +1 -0
- package/_cjs/assets/types/index.js +3 -0
- package/_cjs/assets/types/index.js.map +1 -0
- package/_cjs/assets/types/nft.js +3 -0
- package/_cjs/assets/types/nft.js.map +1 -0
- package/_cjs/index.js +118 -0
- package/_cjs/index.js.map +1 -0
- package/_cjs/package.json +1 -0
- package/_cjs/portfolios/createPortfolio.js +8 -0
- package/_cjs/portfolios/createPortfolio.js.map +1 -0
- package/_cjs/portfolios/index.js +6 -0
- package/_cjs/portfolios/index.js.map +1 -0
- package/_cjs/portfolios/type.js +3 -0
- package/_cjs/portfolios/type.js.map +1 -0
- package/_cjs/tests/constants.js +5 -0
- package/_cjs/tests/constants.js.map +1 -0
- package/_cjs/tests/index.js +8 -0
- package/_cjs/tests/index.js.map +1 -0
- package/_cjs/tests/utils.js +27 -0
- package/_cjs/tests/utils.js.map +1 -0
- package/_cjs/types.js +3 -0
- package/_cjs/types.js.map +1 -0
- package/_cjs/utils/errors.js +128 -0
- package/_cjs/utils/errors.js.map +1 -0
- package/_cjs/utils/index.js +11 -0
- package/_cjs/utils/index.js.map +1 -0
- package/_cjs/utils/rest.js +96 -0
- package/_cjs/utils/rest.js.map +1 -0
- package/_cjs/utils/schema.js +11 -0
- package/_cjs/utils/schema.js.map +1 -0
- package/_cjs/utils/stringify.js +9 -0
- package/_cjs/utils/stringify.js.map +1 -0
- package/_cjs/utils/types.js +3 -0
- package/_cjs/utils/types.js.map +1 -0
- package/_esm/accounts/index.js +2 -0
- package/_esm/accounts/index.js.map +1 -0
- package/_esm/accounts/types/account.js +2 -0
- package/_esm/accounts/types/account.js.map +1 -0
- package/_esm/accounts/types/index.js +2 -0
- package/_esm/accounts/types/index.js.map +1 -0
- package/_esm/actions/index.js +2 -0
- package/_esm/actions/index.js.map +1 -0
- package/_esm/actions/schemas/action.js +131 -0
- package/_esm/actions/schemas/action.js.map +1 -0
- package/_esm/actions/schemas/borrow/borrow.js +23 -0
- package/_esm/actions/schemas/borrow/borrow.js.map +1 -0
- package/_esm/actions/schemas/borrow/borrowWithDebt.js +33 -0
- package/_esm/actions/schemas/borrow/borrowWithDebt.js.map +1 -0
- package/_esm/actions/schemas/borrow/index.js +3 -0
- package/_esm/actions/schemas/borrow/index.js.map +1 -0
- package/_esm/actions/schemas/crossActionBundle.js +6 -0
- package/_esm/actions/schemas/crossActionBundle.js.map +1 -0
- package/_esm/actions/schemas/crossReplace/bridgeFrom.js +23 -0
- package/_esm/actions/schemas/crossReplace/bridgeFrom.js.map +1 -0
- package/_esm/actions/schemas/crossReplace/bridgeTo.js +23 -0
- package/_esm/actions/schemas/crossReplace/bridgeTo.js.map +1 -0
- package/_esm/actions/schemas/crossReplace/crossReplace.js +23 -0
- package/_esm/actions/schemas/crossReplace/crossReplace.js.map +1 -0
- package/_esm/actions/schemas/crossReplace/index.js +4 -0
- package/_esm/actions/schemas/crossReplace/index.js.map +1 -0
- package/_esm/actions/schemas/crossTrade/crossTrade.js +23 -0
- package/_esm/actions/schemas/crossTrade/crossTrade.js.map +1 -0
- package/_esm/actions/schemas/crossTrade/index.js +2 -0
- package/_esm/actions/schemas/crossTrade/index.js.map +1 -0
- package/_esm/actions/schemas/default/accountAction.js +26 -0
- package/_esm/actions/schemas/default/accountAction.js.map +1 -0
- package/_esm/actions/schemas/default/index.js +4 -0
- package/_esm/actions/schemas/default/index.js.map +1 -0
- package/_esm/actions/schemas/default/normalAction.js +22 -0
- package/_esm/actions/schemas/default/normalAction.js.map +1 -0
- package/_esm/actions/schemas/default/transfer.js +134 -0
- package/_esm/actions/schemas/default/transfer.js.map +1 -0
- package/_esm/actions/schemas/default/unions.js +96 -0
- package/_esm/actions/schemas/default/unions.js.map +1 -0
- package/_esm/actions/schemas/deposit/addLiquidity.js +33 -0
- package/_esm/actions/schemas/deposit/addLiquidity.js.map +1 -0
- package/_esm/actions/schemas/deposit/deposit.js +23 -0
- package/_esm/actions/schemas/deposit/deposit.js.map +1 -0
- package/_esm/actions/schemas/deposit/depositWithBond.js +33 -0
- package/_esm/actions/schemas/deposit/depositWithBond.js.map +1 -0
- package/_esm/actions/schemas/deposit/index.js +5 -0
- package/_esm/actions/schemas/deposit/index.js.map +1 -0
- package/_esm/actions/schemas/deposit/stake.js +23 -0
- package/_esm/actions/schemas/deposit/stake.js.map +1 -0
- package/_esm/actions/schemas/fee/fee.js +23 -0
- package/_esm/actions/schemas/fee/fee.js.map +1 -0
- package/_esm/actions/schemas/fee/index.js +3 -0
- package/_esm/actions/schemas/fee/index.js.map +1 -0
- package/_esm/actions/schemas/fee/transactionFee.js +23 -0
- package/_esm/actions/schemas/fee/transactionFee.js.map +1 -0
- package/_esm/actions/schemas/ignore/approve.js +23 -0
- package/_esm/actions/schemas/ignore/approve.js.map +1 -0
- package/_esm/actions/schemas/ignore/failTx.js +23 -0
- package/_esm/actions/schemas/ignore/failTx.js.map +1 -0
- package/_esm/actions/schemas/ignore/ignore.js +12 -0
- package/_esm/actions/schemas/ignore/ignore.js.map +1 -0
- package/_esm/actions/schemas/ignore/index.js +9 -0
- package/_esm/actions/schemas/ignore/index.js.map +1 -0
- package/_esm/actions/schemas/ignore/move.js +12 -0
- package/_esm/actions/schemas/ignore/move.js.map +1 -0
- package/_esm/actions/schemas/ignore/receiveFromCex.js +13 -0
- package/_esm/actions/schemas/ignore/receiveFromCex.js.map +1 -0
- package/_esm/actions/schemas/ignore/revoke.js +23 -0
- package/_esm/actions/schemas/ignore/revoke.js.map +1 -0
- package/_esm/actions/schemas/ignore/sendToCex.js +13 -0
- package/_esm/actions/schemas/ignore/sendToCex.js.map +1 -0
- package/_esm/actions/schemas/ignore/spam.js +23 -0
- package/_esm/actions/schemas/ignore/spam.js.map +1 -0
- package/_esm/actions/schemas/income/atomicArbitrage.js +23 -0
- package/_esm/actions/schemas/income/atomicArbitrage.js.map +1 -0
- package/_esm/actions/schemas/income/freeMintNft.js +23 -0
- package/_esm/actions/schemas/income/freeMintNft.js.map +1 -0
- package/_esm/actions/schemas/income/income.js +13 -0
- package/_esm/actions/schemas/income/income.js.map +1 -0
- package/_esm/actions/schemas/income/index.js +6 -0
- package/_esm/actions/schemas/income/index.js.map +1 -0
- package/_esm/actions/schemas/income/nftRoyalty.js +13 -0
- package/_esm/actions/schemas/income/nftRoyalty.js.map +1 -0
- package/_esm/actions/schemas/income/swapIncome.js +13 -0
- package/_esm/actions/schemas/income/swapIncome.js.map +1 -0
- package/_esm/actions/schemas/index.js +18 -0
- package/_esm/actions/schemas/index.js.map +1 -0
- package/_esm/actions/schemas/reduce/index.js +2 -0
- package/_esm/actions/schemas/reduce/index.js.map +1 -0
- package/_esm/actions/schemas/reduce/reduce.js +13 -0
- package/_esm/actions/schemas/reduce/reduce.js.map +1 -0
- package/_esm/actions/schemas/repayment/index.js +3 -0
- package/_esm/actions/schemas/repayment/index.js.map +1 -0
- package/_esm/actions/schemas/repayment/repayment.js +23 -0
- package/_esm/actions/schemas/repayment/repayment.js.map +1 -0
- package/_esm/actions/schemas/repayment/repaymentWithDebt.js +33 -0
- package/_esm/actions/schemas/repayment/repaymentWithDebt.js.map +1 -0
- package/_esm/actions/schemas/replace/index.js +5 -0
- package/_esm/actions/schemas/replace/index.js.map +1 -0
- package/_esm/actions/schemas/replace/replace.js +33 -0
- package/_esm/actions/schemas/replace/replace.js.map +1 -0
- package/_esm/actions/schemas/replace/swapNft.js +29 -0
- package/_esm/actions/schemas/replace/swapNft.js.map +1 -0
- package/_esm/actions/schemas/replace/unwrap.js +29 -0
- package/_esm/actions/schemas/replace/unwrap.js.map +1 -0
- package/_esm/actions/schemas/replace/wrap.js +29 -0
- package/_esm/actions/schemas/replace/wrap.js.map +1 -0
- package/_esm/actions/schemas/trade/buyCrypto.js +23 -0
- package/_esm/actions/schemas/trade/buyCrypto.js.map +1 -0
- package/_esm/actions/schemas/trade/buyNft.js +31 -0
- package/_esm/actions/schemas/trade/buyNft.js.map +1 -0
- package/_esm/actions/schemas/trade/index.js +7 -0
- package/_esm/actions/schemas/trade/index.js.map +1 -0
- package/_esm/actions/schemas/trade/mintNft.js +31 -0
- package/_esm/actions/schemas/trade/mintNft.js.map +1 -0
- package/_esm/actions/schemas/trade/sellCrypto.js +23 -0
- package/_esm/actions/schemas/trade/sellCrypto.js.map +1 -0
- package/_esm/actions/schemas/trade/sellNft.js +17 -0
- package/_esm/actions/schemas/trade/sellNft.js.map +1 -0
- package/_esm/actions/schemas/trade/trade.js +23 -0
- package/_esm/actions/schemas/trade/trade.js.map +1 -0
- package/_esm/actions/schemas/transfer/index.js +3 -0
- package/_esm/actions/schemas/transfer/index.js.map +1 -0
- package/_esm/actions/schemas/transfer/swapTransfer.js +13 -0
- package/_esm/actions/schemas/transfer/swapTransfer.js.map +1 -0
- package/_esm/actions/schemas/transfer/transfer.js +22 -0
- package/_esm/actions/schemas/transfer/transfer.js.map +1 -0
- package/_esm/actions/schemas/valuedown/index.js +2 -0
- package/_esm/actions/schemas/valuedown/index.js.map +1 -0
- package/_esm/actions/schemas/valuedown/valuedown.js +26 -0
- package/_esm/actions/schemas/valuedown/valuedown.js.map +1 -0
- package/_esm/actions/schemas/valueup/index.js +2 -0
- package/_esm/actions/schemas/valueup/index.js.map +1 -0
- package/_esm/actions/schemas/valueup/valueup.js +26 -0
- package/_esm/actions/schemas/valueup/valueup.js.map +1 -0
- package/_esm/actions/schemas/withdraw/index.js +5 -0
- package/_esm/actions/schemas/withdraw/index.js.map +1 -0
- package/_esm/actions/schemas/withdraw/removeLiquidity.js +33 -0
- package/_esm/actions/schemas/withdraw/removeLiquidity.js.map +1 -0
- package/_esm/actions/schemas/withdraw/unstake.js +23 -0
- package/_esm/actions/schemas/withdraw/unstake.js.map +1 -0
- package/_esm/actions/schemas/withdraw/withdraw.js +23 -0
- package/_esm/actions/schemas/withdraw/withdraw.js.map +1 -0
- package/_esm/actions/schemas/withdraw/withdrawWithBond.js +33 -0
- package/_esm/actions/schemas/withdraw/withdrawWithBond.js.map +1 -0
- package/_esm/actions/types/action.js +2 -0
- package/_esm/actions/types/action.js.map +1 -0
- package/_esm/actions/types/addLiquidity.js +2 -0
- package/_esm/actions/types/addLiquidity.js.map +1 -0
- package/_esm/actions/types/approve.js +2 -0
- package/_esm/actions/types/approve.js.map +1 -0
- package/_esm/actions/types/atomicArbitrage.js +2 -0
- package/_esm/actions/types/atomicArbitrage.js.map +1 -0
- package/_esm/actions/types/borrow.js +2 -0
- package/_esm/actions/types/borrow.js.map +1 -0
- package/_esm/actions/types/borrowWithDebt.js +2 -0
- package/_esm/actions/types/borrowWithDebt.js.map +1 -0
- package/_esm/actions/types/bridgeFrom.js +2 -0
- package/_esm/actions/types/bridgeFrom.js.map +1 -0
- package/_esm/actions/types/bridgeTo.js +2 -0
- package/_esm/actions/types/bridgeTo.js.map +1 -0
- package/_esm/actions/types/buyNft.js +2 -0
- package/_esm/actions/types/buyNft.js.map +1 -0
- package/_esm/actions/types/crossActionBundle.js +2 -0
- package/_esm/actions/types/crossActionBundle.js.map +1 -0
- package/_esm/actions/types/crossReplace.js +2 -0
- package/_esm/actions/types/crossReplace.js.map +1 -0
- package/_esm/actions/types/crossTrade.js +2 -0
- package/_esm/actions/types/crossTrade.js.map +1 -0
- package/_esm/actions/types/deposit.js +2 -0
- package/_esm/actions/types/deposit.js.map +1 -0
- package/_esm/actions/types/depositWithBond.js +2 -0
- package/_esm/actions/types/depositWithBond.js.map +1 -0
- package/_esm/actions/types/failTx.js +2 -0
- package/_esm/actions/types/failTx.js.map +1 -0
- package/_esm/actions/types/fee.js +2 -0
- package/_esm/actions/types/fee.js.map +1 -0
- package/_esm/actions/types/freeMintNft.js +2 -0
- package/_esm/actions/types/freeMintNft.js.map +1 -0
- package/_esm/actions/types/ignore.js +2 -0
- package/_esm/actions/types/ignore.js.map +1 -0
- package/_esm/actions/types/income.js +2 -0
- package/_esm/actions/types/income.js.map +1 -0
- package/_esm/actions/types/index.js +2 -0
- package/_esm/actions/types/index.js.map +1 -0
- package/_esm/actions/types/mintNft.js +2 -0
- package/_esm/actions/types/mintNft.js.map +1 -0
- package/_esm/actions/types/move.js +2 -0
- package/_esm/actions/types/move.js.map +1 -0
- package/_esm/actions/types/nftRoyalty.js +2 -0
- package/_esm/actions/types/nftRoyalty.js.map +1 -0
- package/_esm/actions/types/receiveFromCex.js +2 -0
- package/_esm/actions/types/receiveFromCex.js.map +1 -0
- package/_esm/actions/types/reduce.js +2 -0
- package/_esm/actions/types/reduce.js.map +1 -0
- package/_esm/actions/types/removeLiquidity.js +2 -0
- package/_esm/actions/types/removeLiquidity.js.map +1 -0
- package/_esm/actions/types/repayment.js +2 -0
- package/_esm/actions/types/repayment.js.map +1 -0
- package/_esm/actions/types/repaymentWithDebt.js +2 -0
- package/_esm/actions/types/repaymentWithDebt.js.map +1 -0
- package/_esm/actions/types/replace.js +2 -0
- package/_esm/actions/types/replace.js.map +1 -0
- package/_esm/actions/types/revoke.js +2 -0
- package/_esm/actions/types/revoke.js.map +1 -0
- package/_esm/actions/types/sellNft.js +2 -0
- package/_esm/actions/types/sellNft.js.map +1 -0
- package/_esm/actions/types/sendToCex.js +2 -0
- package/_esm/actions/types/sendToCex.js.map +1 -0
- package/_esm/actions/types/spam.js +2 -0
- package/_esm/actions/types/spam.js.map +1 -0
- package/_esm/actions/types/swapIncome.js +2 -0
- package/_esm/actions/types/swapIncome.js.map +1 -0
- package/_esm/actions/types/swapNft.js +2 -0
- package/_esm/actions/types/swapNft.js.map +1 -0
- package/_esm/actions/types/swapTransfer.js +2 -0
- package/_esm/actions/types/swapTransfer.js.map +1 -0
- package/_esm/actions/types/trade.js +2 -0
- package/_esm/actions/types/trade.js.map +1 -0
- package/_esm/actions/types/transactionFee.js +2 -0
- package/_esm/actions/types/transactionFee.js.map +1 -0
- package/_esm/actions/types/transfer.js +2 -0
- package/_esm/actions/types/transfer.js.map +1 -0
- package/_esm/actions/types/unwrap.js +2 -0
- package/_esm/actions/types/unwrap.js.map +1 -0
- package/_esm/actions/types/valuedown.js +2 -0
- package/_esm/actions/types/valuedown.js.map +1 -0
- package/_esm/actions/types/valueup.js +2 -0
- package/_esm/actions/types/valueup.js.map +1 -0
- package/_esm/actions/types/withdraw.js +2 -0
- package/_esm/actions/types/withdraw.js.map +1 -0
- package/_esm/actions/types/withdrawWithBond.js +2 -0
- package/_esm/actions/types/withdrawWithBond.js.map +1 -0
- package/_esm/actions/types/wrap.js +2 -0
- package/_esm/actions/types/wrap.js.map +1 -0
- package/_esm/apps/index.js +2 -0
- package/_esm/apps/index.js.map +1 -0
- package/_esm/apps/schemas.js +29 -0
- package/_esm/apps/schemas.js.map +1 -0
- package/_esm/apps/types.js +2 -0
- package/_esm/apps/types.js.map +1 -0
- package/_esm/assets/constants.js +2 -0
- package/_esm/assets/constants.js.map +1 -0
- package/_esm/assets/creates/createCryptoCurrency.js +4 -0
- package/_esm/assets/creates/createCryptoCurrency.js.map +1 -0
- package/_esm/assets/creates/createFiatCurrency.js +4 -0
- package/_esm/assets/creates/createFiatCurrency.js.map +1 -0
- package/_esm/assets/creates/index.js +3 -0
- package/_esm/assets/creates/index.js.map +1 -0
- package/_esm/assets/definitions/astar.js +14 -0
- package/_esm/assets/definitions/astar.js.map +1 -0
- package/_esm/assets/definitions/avalanche.js +14 -0
- package/_esm/assets/definitions/avalanche.js.map +1 -0
- package/_esm/assets/definitions/bnb.js +14 -0
- package/_esm/assets/definitions/bnb.js.map +1 -0
- package/_esm/assets/definitions/coingeckoCryptoCurrencyDataSource.js +94 -0
- package/_esm/assets/definitions/coingeckoCryptoCurrencyDataSource.js.map +1 -0
- package/_esm/assets/definitions/ethereum.js +14 -0
- package/_esm/assets/definitions/ethereum.js.map +1 -0
- package/_esm/assets/definitions/eur.js +9 -0
- package/_esm/assets/definitions/eur.js.map +1 -0
- package/_esm/assets/definitions/fantom.js +14 -0
- package/_esm/assets/definitions/fantom.js.map +1 -0
- package/_esm/assets/definitions/index.js +17 -0
- package/_esm/assets/definitions/index.js.map +1 -0
- package/_esm/assets/definitions/jpy.js +9 -0
- package/_esm/assets/definitions/jpy.js.map +1 -0
- package/_esm/assets/definitions/kava.js +14 -0
- package/_esm/assets/definitions/kava.js.map +1 -0
- package/_esm/assets/definitions/mantle.js +14 -0
- package/_esm/assets/definitions/mantle.js.map +1 -0
- package/_esm/assets/definitions/maticNetwork.js +14 -0
- package/_esm/assets/definitions/maticNetwork.js.map +1 -0
- package/_esm/assets/definitions/metis.js +14 -0
- package/_esm/assets/definitions/metis.js.map +1 -0
- package/_esm/assets/definitions/moonbeam.js +14 -0
- package/_esm/assets/definitions/moonbeam.js.map +1 -0
- package/_esm/assets/definitions/moonriver.js +14 -0
- package/_esm/assets/definitions/moonriver.js.map +1 -0
- package/_esm/assets/definitions/ronin.js +14 -0
- package/_esm/assets/definitions/ronin.js.map +1 -0
- package/_esm/assets/definitions/usd.js +9 -0
- package/_esm/assets/definitions/usd.js.map +1 -0
- package/_esm/assets/externals/coingecko/constants.js +2 -0
- package/_esm/assets/externals/coingecko/constants.js.map +1 -0
- package/_esm/assets/externals/coingecko/getAutoRetry.js +27 -0
- package/_esm/assets/externals/coingecko/getAutoRetry.js.map +1 -0
- package/_esm/assets/externals/coingecko/getCoinMarketChartRange.js +21 -0
- package/_esm/assets/externals/coingecko/getCoinMarketChartRange.js.map +1 -0
- package/_esm/assets/externals/coingecko/getCoinsMarkets.js +44 -0
- package/_esm/assets/externals/coingecko/getCoinsMarkets.js.map +1 -0
- package/_esm/assets/externals/coingecko/index.js +3 -0
- package/_esm/assets/externals/coingecko/index.js.map +1 -0
- package/_esm/assets/externals/index.js +2 -0
- package/_esm/assets/externals/index.js.map +1 -0
- package/_esm/assets/index.js +5 -0
- package/_esm/assets/index.js.map +1 -0
- package/_esm/assets/schemas/asset.js +10 -0
- package/_esm/assets/schemas/asset.js.map +1 -0
- package/_esm/assets/schemas/cryptoCurrency.js +27 -0
- package/_esm/assets/schemas/cryptoCurrency.js.map +1 -0
- package/_esm/assets/schemas/cryptoCurrencyPrice.js +9 -0
- package/_esm/assets/schemas/cryptoCurrencyPrice.js.map +1 -0
- package/_esm/assets/schemas/fiatCurrency.js +26 -0
- package/_esm/assets/schemas/fiatCurrency.js.map +1 -0
- package/_esm/assets/schemas/index.js +6 -0
- package/_esm/assets/schemas/index.js.map +1 -0
- package/_esm/assets/schemas/nft.js +6 -0
- package/_esm/assets/schemas/nft.js.map +1 -0
- package/_esm/assets/types/cryptoCurrency.js +2 -0
- package/_esm/assets/types/cryptoCurrency.js.map +1 -0
- package/_esm/assets/types/cryptoCurrencyPrice.js +2 -0
- package/_esm/assets/types/cryptoCurrencyPrice.js.map +1 -0
- package/_esm/assets/types/dataSource.js +2 -0
- package/_esm/assets/types/dataSource.js.map +1 -0
- package/_esm/assets/types/fiatCurrency.js +2 -0
- package/_esm/assets/types/fiatCurrency.js.map +1 -0
- package/_esm/assets/types/index.js +2 -0
- package/_esm/assets/types/index.js.map +1 -0
- package/_esm/assets/types/nft.js +2 -0
- package/_esm/assets/types/nft.js.map +1 -0
- package/_esm/index.js +6 -0
- package/_esm/index.js.map +1 -0
- package/_esm/package.json +1 -0
- package/_esm/portfolios/createPortfolio.js +4 -0
- package/_esm/portfolios/createPortfolio.js.map +1 -0
- package/_esm/portfolios/index.js +2 -0
- package/_esm/portfolios/index.js.map +1 -0
- package/_esm/portfolios/type.js +2 -0
- package/_esm/portfolios/type.js.map +1 -0
- package/_esm/tests/constants.js +2 -0
- package/_esm/tests/constants.js.map +1 -0
- package/_esm/tests/index.js +3 -0
- package/_esm/tests/index.js.map +1 -0
- package/_esm/tests/utils.js +25 -0
- package/_esm/tests/utils.js.map +1 -0
- package/_esm/types.js +2 -0
- package/_esm/types.js.map +1 -0
- package/_esm/utils/errors.js +125 -0
- package/_esm/utils/errors.js.map +1 -0
- package/_esm/utils/index.js +4 -0
- package/_esm/utils/index.js.map +1 -0
- package/_esm/utils/rest.js +93 -0
- package/_esm/utils/rest.js.map +1 -0
- package/_esm/utils/schema.js +7 -0
- package/_esm/utils/schema.js.map +1 -0
- package/_esm/utils/stringify.js +7 -0
- package/_esm/utils/stringify.js.map +1 -0
- package/_esm/utils/types.js +2 -0
- package/_esm/utils/types.js.map +1 -0
- package/_types/accounts/index.d.ts.map +1 -0
- package/_types/accounts/types/account.d.ts.map +1 -0
- package/_types/accounts/types/index.d.ts.map +1 -0
- package/_types/actions/index.d.ts +3 -0
- package/_types/actions/index.d.ts.map +1 -0
- package/_types/actions/schemas/action.d.ts +70150 -0
- package/_types/actions/schemas/action.d.ts.map +1 -0
- package/_types/actions/schemas/borrow/borrow.d.ts +1480 -0
- package/_types/actions/schemas/borrow/borrow.d.ts.map +1 -0
- package/_types/actions/schemas/borrow/borrowWithDebt.d.ts +2730 -0
- package/_types/actions/schemas/borrow/borrowWithDebt.d.ts.map +1 -0
- package/_types/actions/schemas/borrow/index.d.ts +3 -0
- package/_types/actions/schemas/borrow/index.d.ts.map +1 -0
- package/_types/actions/schemas/crossActionBundle.d.ts +12 -0
- package/_types/actions/schemas/crossActionBundle.d.ts.map +1 -0
- package/_types/actions/schemas/crossReplace/bridgeFrom.d.ts +1480 -0
- package/_types/actions/schemas/crossReplace/bridgeFrom.d.ts.map +1 -0
- package/_types/actions/schemas/crossReplace/bridgeTo.d.ts +1480 -0
- package/_types/actions/schemas/crossReplace/bridgeTo.d.ts.map +1 -0
- package/_types/actions/schemas/crossReplace/crossReplace.d.ts +2282 -0
- package/_types/actions/schemas/crossReplace/crossReplace.d.ts.map +1 -0
- package/_types/actions/schemas/crossReplace/index.d.ts +4 -0
- package/_types/actions/schemas/crossReplace/index.d.ts.map +1 -0
- package/_types/actions/schemas/crossTrade/crossTrade.d.ts +2282 -0
- package/_types/actions/schemas/crossTrade/crossTrade.d.ts.map +1 -0
- package/_types/actions/schemas/crossTrade/index.d.ts +2 -0
- package/_types/actions/schemas/crossTrade/index.d.ts.map +1 -0
- package/_types/actions/schemas/default/accountAction.d.ts +4127 -0
- package/_types/actions/schemas/default/accountAction.d.ts.map +1 -0
- package/_types/actions/schemas/default/index.d.ts +4 -0
- package/_types/actions/schemas/default/index.d.ts.map +1 -0
- package/_types/actions/schemas/default/normalAction.d.ts +4109 -0
- package/_types/actions/schemas/default/normalAction.d.ts.map +1 -0
- package/_types/actions/schemas/default/transfer.d.ts +4132 -0
- package/_types/actions/schemas/default/transfer.d.ts.map +1 -0
- package/_types/actions/schemas/default/unions.d.ts +4 -0
- package/_types/actions/schemas/default/unions.d.ts.map +1 -0
- package/_types/actions/schemas/deposit/addLiquidity.d.ts +2730 -0
- package/_types/actions/schemas/deposit/addLiquidity.d.ts.map +1 -0
- package/_types/actions/schemas/deposit/deposit.d.ts +1480 -0
- package/_types/actions/schemas/deposit/deposit.d.ts.map +1 -0
- package/_types/actions/schemas/deposit/depositWithBond.d.ts +2730 -0
- package/_types/actions/schemas/deposit/depositWithBond.d.ts.map +1 -0
- package/_types/actions/schemas/deposit/index.d.ts +5 -0
- package/_types/actions/schemas/deposit/index.d.ts.map +1 -0
- package/_types/actions/schemas/deposit/stake.d.ts +1480 -0
- package/_types/actions/schemas/deposit/stake.d.ts.map +1 -0
- package/_types/actions/schemas/fee/fee.d.ts +1560 -0
- package/_types/actions/schemas/fee/fee.d.ts.map +1 -0
- package/_types/actions/schemas/fee/index.d.ts +3 -0
- package/_types/actions/schemas/fee/index.d.ts.map +1 -0
- package/_types/actions/schemas/fee/transactionFee.d.ts +1024 -0
- package/_types/actions/schemas/fee/transactionFee.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/approve.d.ts +220 -0
- package/_types/actions/schemas/ignore/approve.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/failTx.d.ts +220 -0
- package/_types/actions/schemas/ignore/failTx.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/ignore.d.ts +1655 -0
- package/_types/actions/schemas/ignore/ignore.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/index.d.ts +9 -0
- package/_types/actions/schemas/ignore/index.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/move.d.ts +1655 -0
- package/_types/actions/schemas/ignore/move.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/receiveFromCex.d.ts +741 -0
- package/_types/actions/schemas/ignore/receiveFromCex.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/revoke.d.ts +220 -0
- package/_types/actions/schemas/ignore/revoke.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/sendToCex.d.ts +741 -0
- package/_types/actions/schemas/ignore/sendToCex.d.ts.map +1 -0
- package/_types/actions/schemas/ignore/spam.d.ts +1470 -0
- package/_types/actions/schemas/ignore/spam.d.ts.map +1 -0
- package/_types/actions/schemas/income/atomicArbitrage.d.ts +1024 -0
- package/_types/actions/schemas/income/atomicArbitrage.d.ts.map +1 -0
- package/_types/actions/schemas/income/freeMintNft.d.ts +666 -0
- package/_types/actions/schemas/income/freeMintNft.d.ts.map +1 -0
- package/_types/actions/schemas/income/income.d.ts +629 -0
- package/_types/actions/schemas/income/income.d.ts.map +1 -0
- package/_types/actions/schemas/income/index.d.ts +6 -0
- package/_types/actions/schemas/income/index.d.ts.map +1 -0
- package/_types/actions/schemas/income/nftRoyalty.d.ts +786 -0
- package/_types/actions/schemas/income/nftRoyalty.d.ts.map +1 -0
- package/_types/actions/schemas/income/swapIncome.d.ts +741 -0
- package/_types/actions/schemas/income/swapIncome.d.ts.map +1 -0
- package/_types/actions/schemas/index.d.ts +18 -0
- package/_types/actions/schemas/index.d.ts.map +1 -0
- package/_types/actions/schemas/reduce/index.d.ts +2 -0
- package/_types/actions/schemas/reduce/index.d.ts.map +1 -0
- package/_types/actions/schemas/reduce/reduce.d.ts +741 -0
- package/_types/actions/schemas/reduce/reduce.d.ts.map +1 -0
- package/_types/actions/schemas/repayment/index.d.ts +3 -0
- package/_types/actions/schemas/repayment/index.d.ts.map +1 -0
- package/_types/actions/schemas/repayment/repayment.d.ts +1480 -0
- package/_types/actions/schemas/repayment/repayment.d.ts.map +1 -0
- package/_types/actions/schemas/repayment/repaymentWithDebt.d.ts +2730 -0
- package/_types/actions/schemas/repayment/repaymentWithDebt.d.ts.map +1 -0
- package/_types/actions/schemas/replace/index.d.ts +5 -0
- package/_types/actions/schemas/replace/index.d.ts.map +1 -0
- package/_types/actions/schemas/replace/replace.d.ts +2720 -0
- package/_types/actions/schemas/replace/replace.d.ts.map +1 -0
- package/_types/actions/schemas/replace/swapNft.d.ts +1828 -0
- package/_types/actions/schemas/replace/swapNft.d.ts.map +1 -0
- package/_types/actions/schemas/replace/unwrap.d.ts +1828 -0
- package/_types/actions/schemas/replace/unwrap.d.ts.map +1 -0
- package/_types/actions/schemas/replace/wrap.d.ts +1828 -0
- package/_types/actions/schemas/replace/wrap.d.ts.map +1 -0
- package/_types/actions/schemas/trade/buyCrypto.d.ts +1560 -0
- package/_types/actions/schemas/trade/buyCrypto.d.ts.map +1 -0
- package/_types/actions/schemas/trade/buyNft.d.ts +2006 -0
- package/_types/actions/schemas/trade/buyNft.d.ts.map +1 -0
- package/_types/actions/schemas/trade/index.d.ts +7 -0
- package/_types/actions/schemas/trade/index.d.ts.map +1 -0
- package/_types/actions/schemas/trade/mintNft.d.ts +2006 -0
- package/_types/actions/schemas/trade/mintNft.d.ts.map +1 -0
- package/_types/actions/schemas/trade/sellCrypto.d.ts +1560 -0
- package/_types/actions/schemas/trade/sellCrypto.d.ts.map +1 -0
- package/_types/actions/schemas/trade/sellNft.d.ts +1009 -0
- package/_types/actions/schemas/trade/sellNft.d.ts.map +1 -0
- package/_types/actions/schemas/trade/trade.d.ts +2272 -0
- package/_types/actions/schemas/trade/trade.d.ts.map +1 -0
- package/_types/actions/schemas/transfer/index.d.ts +3 -0
- package/_types/actions/schemas/transfer/index.d.ts.map +1 -0
- package/_types/actions/schemas/transfer/swapTransfer.d.ts +741 -0
- package/_types/actions/schemas/transfer/swapTransfer.d.ts.map +1 -0
- package/_types/actions/schemas/transfer/transfer.d.ts +2272 -0
- package/_types/actions/schemas/transfer/transfer.d.ts.map +1 -0
- package/_types/actions/schemas/valuedown/index.d.ts +2 -0
- package/_types/actions/schemas/valuedown/index.d.ts.map +1 -0
- package/_types/actions/schemas/valuedown/valuedown.d.ts +1298 -0
- package/_types/actions/schemas/valuedown/valuedown.d.ts.map +1 -0
- package/_types/actions/schemas/valueup/index.d.ts +2 -0
- package/_types/actions/schemas/valueup/index.d.ts.map +1 -0
- package/_types/actions/schemas/valueup/valueup.d.ts +1298 -0
- package/_types/actions/schemas/valueup/valueup.d.ts.map +1 -0
- package/_types/actions/schemas/withdraw/index.d.ts +5 -0
- package/_types/actions/schemas/withdraw/index.d.ts.map +1 -0
- package/_types/actions/schemas/withdraw/removeLiquidity.d.ts +2730 -0
- package/_types/actions/schemas/withdraw/removeLiquidity.d.ts.map +1 -0
- package/_types/actions/schemas/withdraw/unstake.d.ts +1480 -0
- package/_types/actions/schemas/withdraw/unstake.d.ts.map +1 -0
- package/_types/actions/schemas/withdraw/withdraw.d.ts +1480 -0
- package/_types/actions/schemas/withdraw/withdraw.d.ts.map +1 -0
- package/_types/actions/schemas/withdraw/withdrawWithBond.d.ts +2730 -0
- package/_types/actions/schemas/withdraw/withdrawWithBond.d.ts.map +1 -0
- package/_types/actions/types/action.d.ts +8 -0
- package/_types/actions/types/action.d.ts.map +1 -0
- package/_types/actions/types/addLiquidity.d.ts +5 -0
- package/_types/actions/types/addLiquidity.d.ts.map +1 -0
- package/_types/actions/types/approve.d.ts +5 -0
- package/_types/actions/types/approve.d.ts.map +1 -0
- package/_types/actions/types/atomicArbitrage.d.ts +5 -0
- package/_types/actions/types/atomicArbitrage.d.ts.map +1 -0
- package/_types/actions/types/borrow.d.ts +5 -0
- package/_types/actions/types/borrow.d.ts.map +1 -0
- package/_types/actions/types/borrowWithDebt.d.ts +5 -0
- package/_types/actions/types/borrowWithDebt.d.ts.map +1 -0
- package/_types/actions/types/bridgeFrom.d.ts +5 -0
- package/_types/actions/types/bridgeFrom.d.ts.map +1 -0
- package/_types/actions/types/bridgeTo.d.ts +5 -0
- package/_types/actions/types/bridgeTo.d.ts.map +1 -0
- package/_types/actions/types/buyNft.d.ts +5 -0
- package/_types/actions/types/buyNft.d.ts.map +1 -0
- package/_types/actions/types/crossActionBundle.d.ts +4 -0
- package/_types/actions/types/crossActionBundle.d.ts.map +1 -0
- package/_types/actions/types/crossReplace.d.ts +5 -0
- package/_types/actions/types/crossReplace.d.ts.map +1 -0
- package/_types/actions/types/crossTrade.d.ts +5 -0
- package/_types/actions/types/crossTrade.d.ts.map +1 -0
- package/_types/actions/types/deposit.d.ts +5 -0
- package/_types/actions/types/deposit.d.ts.map +1 -0
- package/_types/actions/types/depositWithBond.d.ts +5 -0
- package/_types/actions/types/depositWithBond.d.ts.map +1 -0
- package/_types/actions/types/failTx.d.ts +5 -0
- package/_types/actions/types/failTx.d.ts.map +1 -0
- package/_types/actions/types/fee.d.ts +5 -0
- package/_types/actions/types/fee.d.ts.map +1 -0
- package/_types/actions/types/freeMintNft.d.ts +6 -0
- package/_types/actions/types/freeMintNft.d.ts.map +1 -0
- package/_types/actions/types/ignore.d.ts +4 -0
- package/_types/actions/types/ignore.d.ts.map +1 -0
- package/_types/actions/types/income.d.ts +4 -0
- package/_types/actions/types/income.d.ts.map +1 -0
- package/_types/actions/types/index.d.ts +45 -0
- package/_types/actions/types/index.d.ts.map +1 -0
- package/_types/actions/types/mintNft.d.ts +5 -0
- package/_types/actions/types/mintNft.d.ts.map +1 -0
- package/_types/actions/types/move.d.ts +4 -0
- package/_types/actions/types/move.d.ts.map +1 -0
- package/_types/actions/types/nftRoyalty.d.ts +4 -0
- package/_types/actions/types/nftRoyalty.d.ts.map +1 -0
- package/_types/actions/types/receiveFromCex.d.ts +4 -0
- package/_types/actions/types/receiveFromCex.d.ts.map +1 -0
- package/_types/actions/types/reduce.d.ts +4 -0
- package/_types/actions/types/reduce.d.ts.map +1 -0
- package/_types/actions/types/removeLiquidity.d.ts +5 -0
- package/_types/actions/types/removeLiquidity.d.ts.map +1 -0
- package/_types/actions/types/repayment.d.ts +5 -0
- package/_types/actions/types/repayment.d.ts.map +1 -0
- package/_types/actions/types/repaymentWithDebt.d.ts +5 -0
- package/_types/actions/types/repaymentWithDebt.d.ts.map +1 -0
- package/_types/actions/types/replace.d.ts +5 -0
- package/_types/actions/types/replace.d.ts.map +1 -0
- package/_types/actions/types/revoke.d.ts +5 -0
- package/_types/actions/types/revoke.d.ts.map +1 -0
- package/_types/actions/types/sellNft.d.ts +4 -0
- package/_types/actions/types/sellNft.d.ts.map +1 -0
- package/_types/actions/types/sendToCex.d.ts +4 -0
- package/_types/actions/types/sendToCex.d.ts.map +1 -0
- package/_types/actions/types/spam.d.ts +5 -0
- package/_types/actions/types/spam.d.ts.map +1 -0
- package/_types/actions/types/swapIncome.d.ts +4 -0
- package/_types/actions/types/swapIncome.d.ts.map +1 -0
- package/_types/actions/types/swapNft.d.ts +5 -0
- package/_types/actions/types/swapNft.d.ts.map +1 -0
- package/_types/actions/types/swapTransfer.d.ts +4 -0
- package/_types/actions/types/swapTransfer.d.ts.map +1 -0
- package/_types/actions/types/trade.d.ts +5 -0
- package/_types/actions/types/trade.d.ts.map +1 -0
- package/_types/actions/types/transactionFee.d.ts +5 -0
- package/_types/actions/types/transactionFee.d.ts.map +1 -0
- package/_types/actions/types/transfer.d.ts +5 -0
- package/_types/actions/types/transfer.d.ts.map +1 -0
- package/_types/actions/types/unwrap.d.ts +5 -0
- package/_types/actions/types/unwrap.d.ts.map +1 -0
- package/_types/actions/types/valuedown.d.ts +5 -0
- package/_types/actions/types/valuedown.d.ts.map +1 -0
- package/_types/actions/types/valueup.d.ts +5 -0
- package/_types/actions/types/valueup.d.ts.map +1 -0
- package/_types/actions/types/withdraw.d.ts +5 -0
- package/_types/actions/types/withdraw.d.ts.map +1 -0
- package/_types/actions/types/withdrawWithBond.d.ts +5 -0
- package/_types/actions/types/withdrawWithBond.d.ts.map +1 -0
- package/_types/actions/types/wrap.d.ts +5 -0
- package/_types/actions/types/wrap.d.ts.map +1 -0
- package/_types/apps/index.d.ts +3 -0
- package/_types/apps/index.d.ts.map +1 -0
- package/_types/apps/schemas.d.ts +40 -0
- package/_types/apps/schemas.d.ts.map +1 -0
- package/_types/apps/types.d.ts +5 -0
- package/_types/apps/types.d.ts.map +1 -0
- package/_types/assets/constants.d.ts.map +1 -0
- package/_types/assets/creates/createCryptoCurrency.d.ts +16 -0
- package/_types/assets/creates/createCryptoCurrency.d.ts.map +1 -0
- package/_types/assets/creates/createFiatCurrency.d.ts +8 -0
- package/_types/assets/creates/createFiatCurrency.d.ts.map +1 -0
- package/_types/assets/creates/index.d.ts.map +1 -0
- package/_types/assets/definitions/astar.d.ts.map +1 -0
- package/_types/assets/definitions/avalanche.d.ts.map +1 -0
- package/_types/assets/definitions/bnb.d.ts.map +1 -0
- package/_types/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts +39 -0
- package/_types/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts.map +1 -0
- package/_types/assets/definitions/ethereum.d.ts.map +1 -0
- package/_types/assets/definitions/eur.d.ts.map +1 -0
- package/_types/assets/definitions/fantom.d.ts.map +1 -0
- package/_types/assets/definitions/index.d.ts.map +1 -0
- package/_types/assets/definitions/jpy.d.ts.map +1 -0
- package/_types/assets/definitions/kava.d.ts.map +1 -0
- package/_types/assets/definitions/mantle.d.ts.map +1 -0
- package/_types/assets/definitions/maticNetwork.d.ts.map +1 -0
- package/_types/assets/definitions/metis.d.ts.map +1 -0
- package/_types/assets/definitions/moonbeam.d.ts.map +1 -0
- package/_types/assets/definitions/moonriver.d.ts.map +1 -0
- package/_types/assets/definitions/ronin.d.ts.map +1 -0
- package/_types/assets/definitions/usd.d.ts.map +1 -0
- package/_types/assets/externals/coingecko/constants.d.ts.map +1 -0
- package/_types/assets/externals/coingecko/getAutoRetry.d.ts.map +1 -0
- package/_types/assets/externals/coingecko/getCoinMarketChartRange.d.ts.map +1 -0
- package/_types/assets/externals/coingecko/getCoinsMarkets.d.ts.map +1 -0
- package/_types/assets/externals/coingecko/index.d.ts.map +1 -0
- package/_types/assets/externals/index.d.ts.map +1 -0
- package/_types/assets/index.d.ts +6 -0
- package/_types/assets/index.d.ts.map +1 -0
- package/_types/assets/schemas/asset.d.ts +142 -0
- package/_types/assets/schemas/asset.d.ts.map +1 -0
- package/_types/assets/schemas/cryptoCurrency.d.ts +103 -0
- package/_types/assets/schemas/cryptoCurrency.d.ts.map +1 -0
- package/_types/assets/schemas/cryptoCurrencyPrice.d.ts +33 -0
- package/_types/assets/schemas/cryptoCurrencyPrice.d.ts.map +1 -0
- package/_types/assets/schemas/fiatCurrency.d.ts +34 -0
- package/_types/assets/schemas/fiatCurrency.d.ts.map +1 -0
- package/_types/assets/schemas/index.d.ts +6 -0
- package/_types/assets/schemas/index.d.ts.map +1 -0
- package/_types/assets/schemas/nft.d.ts +12 -0
- package/_types/assets/schemas/nft.d.ts.map +1 -0
- package/_types/assets/types/cryptoCurrency.d.ts +4 -0
- package/_types/assets/types/cryptoCurrency.d.ts.map +1 -0
- package/_types/assets/types/cryptoCurrencyPrice.d.ts +4 -0
- package/_types/assets/types/cryptoCurrencyPrice.d.ts.map +1 -0
- package/_types/assets/types/dataSource.d.ts +19 -0
- package/_types/assets/types/dataSource.d.ts.map +1 -0
- package/_types/assets/types/fiatCurrency.d.ts +5 -0
- package/_types/assets/types/fiatCurrency.d.ts.map +1 -0
- package/_types/assets/types/index.d.ts.map +1 -0
- package/_types/assets/types/nft.d.ts +4 -0
- package/_types/assets/types/nft.d.ts.map +1 -0
- package/_types/index.d.ts +13 -0
- package/_types/index.d.ts.map +1 -0
- package/_types/portfolios/createPortfolio.d.ts.map +1 -0
- package/_types/portfolios/index.d.ts.map +1 -0
- package/_types/portfolios/type.d.ts.map +1 -0
- package/_types/tests/constants.d.ts +2 -0
- package/_types/tests/constants.d.ts.map +1 -0
- package/_types/tests/index.d.ts +3 -0
- package/_types/tests/index.d.ts.map +1 -0
- package/_types/tests/utils.d.ts +3 -0
- package/_types/tests/utils.d.ts.map +1 -0
- package/_types/types.d.ts.map +1 -0
- package/_types/utils/errors.d.ts.map +1 -0
- package/_types/utils/index.d.ts +6 -0
- package/_types/utils/index.d.ts.map +1 -0
- package/_types/utils/rest.d.ts +13 -0
- package/_types/utils/rest.d.ts.map +1 -0
- package/_types/utils/schema.d.ts +18 -0
- package/_types/utils/schema.d.ts.map +1 -0
- package/_types/utils/stringify.d.ts.map +1 -0
- package/_types/utils/types.d.ts.map +1 -0
- package/actions/.DS_Store +0 -0
- package/actions/index.ts +167 -0
- package/actions/schemas/action.ts +226 -0
- package/actions/schemas/borrow/borrow.ts +33 -0
- package/actions/schemas/borrow/borrowWithDebt.ts +45 -0
- package/actions/schemas/borrow/index.ts +5 -0
- package/actions/schemas/crossActionBundle.ts +6 -0
- package/actions/schemas/crossReplace/bridgeFrom.ts +33 -0
- package/actions/schemas/crossReplace/bridgeTo.ts +33 -0
- package/actions/schemas/crossReplace/crossReplace.ts +29 -0
- package/actions/schemas/crossReplace/index.ts +12 -0
- package/actions/schemas/crossTrade/crossTrade.ts +29 -0
- package/actions/schemas/crossTrade/index.ts +4 -0
- package/actions/schemas/default/accountAction.ts +33 -0
- package/actions/schemas/default/index.ts +26 -0
- package/actions/schemas/default/normalAction.ts +24 -0
- package/actions/schemas/default/transfer.ts +154 -0
- package/actions/schemas/default/unions.ts +98 -0
- package/actions/schemas/deposit/addLiquidity.ts +45 -0
- package/actions/schemas/deposit/deposit.ts +33 -0
- package/actions/schemas/deposit/depositWithBond.ts +45 -0
- package/actions/schemas/deposit/index.ts +13 -0
- package/actions/schemas/deposit/stake.ts +33 -0
- package/actions/schemas/fee/fee.ts +33 -0
- package/actions/schemas/fee/index.ts +5 -0
- package/actions/schemas/fee/transactionFee.ts +29 -0
- package/actions/schemas/ignore/approve.ts +27 -0
- package/actions/schemas/ignore/failTx.ts +27 -0
- package/actions/schemas/ignore/ignore.ts +12 -0
- package/actions/schemas/ignore/index.ts +11 -0
- package/actions/schemas/ignore/move.ts +12 -0
- package/actions/schemas/ignore/receiveFromCex.ts +20 -0
- package/actions/schemas/ignore/revoke.ts +27 -0
- package/actions/schemas/ignore/sendToCex.ts +19 -0
- package/actions/schemas/ignore/spam.ts +33 -0
- package/actions/schemas/income/atomicArbitrage.ts +29 -0
- package/actions/schemas/income/freeMintNft.ts +28 -0
- package/actions/schemas/income/income.ts +13 -0
- package/actions/schemas/income/index.ts +11 -0
- package/actions/schemas/income/nftRoyalty.ts +19 -0
- package/actions/schemas/income/swapIncome.ts +19 -0
- package/actions/schemas/index.ts +112 -0
- package/actions/schemas/reduce/index.ts +1 -0
- package/actions/schemas/reduce/reduce.ts +19 -0
- package/actions/schemas/repayment/index.ts +8 -0
- package/actions/schemas/repayment/repayment.ts +33 -0
- package/actions/schemas/repayment/repaymentWithDebt.ts +46 -0
- package/actions/schemas/replace/index.ts +10 -0
- package/actions/schemas/replace/replace.ts +45 -0
- package/actions/schemas/replace/swapNft.ts +39 -0
- package/actions/schemas/replace/unwrap.ts +39 -0
- package/actions/schemas/replace/wrap.ts +39 -0
- package/actions/schemas/trade/buyCrypto.ts +33 -0
- package/actions/schemas/trade/buyNft.ts +42 -0
- package/actions/schemas/trade/index.ts +15 -0
- package/actions/schemas/trade/mintNft.ts +42 -0
- package/actions/schemas/trade/sellCrypto.ts +33 -0
- package/actions/schemas/trade/sellNft.ts +24 -0
- package/actions/schemas/trade/trade.ts +29 -0
- package/actions/schemas/transfer/index.ts +5 -0
- package/actions/schemas/transfer/swapTransfer.ts +19 -0
- package/actions/schemas/transfer/transfer.ts +27 -0
- package/actions/schemas/valuedown/index.ts +4 -0
- package/actions/schemas/valuedown/valuedown.ts +31 -0
- package/actions/schemas/valueup/index.ts +4 -0
- package/actions/schemas/valueup/valueup.ts +31 -0
- package/actions/schemas/withdraw/index.ts +16 -0
- package/actions/schemas/withdraw/removeLiquidity.ts +45 -0
- package/actions/schemas/withdraw/unstake.ts +33 -0
- package/actions/schemas/withdraw/withdraw.ts +33 -0
- package/actions/schemas/withdraw/withdrawWithBond.ts +46 -0
- package/actions/types/action.ts +12 -0
- package/actions/types/addLiquidity.ts +13 -0
- package/actions/types/approve.ts +9 -0
- package/actions/types/atomicArbitrage.ts +13 -0
- package/actions/types/borrow.ts +9 -0
- package/actions/types/borrowWithDebt.ts +13 -0
- package/actions/types/bridgeFrom.ts +13 -0
- package/actions/types/bridgeTo.ts +9 -0
- package/actions/types/buyNft.ts +9 -0
- package/actions/types/crossActionBundle.ts +4 -0
- package/actions/types/crossReplace.ts +13 -0
- package/actions/types/crossTrade.ts +13 -0
- package/actions/types/deposit.ts +9 -0
- package/actions/types/depositWithBond.ts +13 -0
- package/actions/types/failTx.ts +9 -0
- package/actions/types/fee.ts +6 -0
- package/actions/types/freeMintNft.ts +15 -0
- package/actions/types/ignore.ts +4 -0
- package/actions/types/income.ts +4 -0
- package/actions/types/index.ts +86 -0
- package/actions/types/mintNft.ts +9 -0
- package/actions/types/move.ts +4 -0
- package/actions/types/nftRoyalty.ts +6 -0
- package/actions/types/receiveFromCex.ts +6 -0
- package/actions/types/reduce.ts +4 -0
- package/actions/types/removeLiquidity.ts +13 -0
- package/actions/types/repayment.ts +11 -0
- package/actions/types/repaymentWithDebt.ts +13 -0
- package/actions/types/replace.ts +9 -0
- package/actions/types/revoke.ts +9 -0
- package/actions/types/sellNft.ts +4 -0
- package/actions/types/sendToCex.ts +6 -0
- package/actions/types/spam.ts +9 -0
- package/actions/types/swapIncome.ts +6 -0
- package/actions/types/swapNft.ts +9 -0
- package/actions/types/swapTransfer.ts +6 -0
- package/actions/types/trade.ts +9 -0
- package/actions/types/transactionFee.ts +13 -0
- package/actions/types/transfer.ts +9 -0
- package/actions/types/unwrap.ts +9 -0
- package/actions/types/valuedown.ts +11 -0
- package/actions/types/valueup.ts +9 -0
- package/actions/types/withdraw.ts +9 -0
- package/actions/types/withdrawWithBond.ts +13 -0
- package/actions/types/wrap.ts +9 -0
- package/apps/index.ts +2 -0
- package/apps/schemas.ts +30 -0
- package/apps/types.ts +6 -0
- package/assets/.DS_Store +0 -0
- package/assets/creates/createFiatCurrency.ts +7 -0
- package/assets/index.ts +34 -0
- package/assets/schemas/asset.ts +10 -0
- package/assets/schemas/cryptoCurrency.ts +28 -0
- package/assets/schemas/cryptoCurrencyPrice.ts +9 -0
- package/assets/schemas/fiatCurrency.ts +27 -0
- package/assets/schemas/index.ts +5 -0
- package/assets/schemas/nft.ts +6 -0
- package/assets/types/cryptoCurrency.ts +4 -0
- package/assets/types/cryptoCurrencyPrice.ts +4 -0
- package/assets/types/dataSource.ts +27 -0
- package/assets/types/fiatCurrency.ts +6 -0
- package/assets/types/nft.ts +4 -0
- package/index.ts +202 -0
- package/package.json +18 -53
- package/utils/index.ts +5 -0
- package/utils/rest.ts +138 -0
- package/utils/schema.ts +18 -0
- package/README.md +0 -15
- package/dist/import/accounts/index.d.ts.map +0 -1
- package/dist/import/accounts/types/account.d.ts.map +0 -1
- package/dist/import/accounts/types/index.d.ts.map +0 -1
- package/dist/import/actions/index.d.ts +0 -2
- package/dist/import/actions/index.d.ts.map +0 -1
- package/dist/import/actions/types/addLiquidity.d.ts +0 -7
- package/dist/import/actions/types/addLiquidity.d.ts.map +0 -1
- package/dist/import/actions/types/atomicArbitrage.d.ts +0 -5
- package/dist/import/actions/types/atomicArbitrage.d.ts.map +0 -1
- package/dist/import/actions/types/bridgeFrom.d.ts +0 -6
- package/dist/import/actions/types/bridgeFrom.d.ts.map +0 -1
- package/dist/import/actions/types/bridgeTo.d.ts +0 -6
- package/dist/import/actions/types/bridgeTo.d.ts.map +0 -1
- package/dist/import/actions/types/buyNft.d.ts +0 -7
- package/dist/import/actions/types/buyNft.d.ts.map +0 -1
- package/dist/import/actions/types/common.d.ts +0 -50
- package/dist/import/actions/types/common.d.ts.map +0 -1
- package/dist/import/actions/types/deposit.d.ts +0 -6
- package/dist/import/actions/types/deposit.d.ts.map +0 -1
- package/dist/import/actions/types/depositWithBond.d.ts +0 -7
- package/dist/import/actions/types/depositWithBond.d.ts.map +0 -1
- package/dist/import/actions/types/freeMintNft.d.ts +0 -8
- package/dist/import/actions/types/freeMintNft.d.ts.map +0 -1
- package/dist/import/actions/types/income.d.ts +0 -5
- package/dist/import/actions/types/income.d.ts.map +0 -1
- package/dist/import/actions/types/index.d.ts +0 -24
- package/dist/import/actions/types/index.d.ts.map +0 -1
- package/dist/import/actions/types/move.d.ts +0 -5
- package/dist/import/actions/types/move.d.ts.map +0 -1
- package/dist/import/actions/types/nftRoyalty.d.ts +0 -7
- package/dist/import/actions/types/nftRoyalty.d.ts.map +0 -1
- package/dist/import/actions/types/removeLiquidity.d.ts +0 -7
- package/dist/import/actions/types/removeLiquidity.d.ts.map +0 -1
- package/dist/import/actions/types/sellNft.d.ts +0 -6
- package/dist/import/actions/types/sellNft.d.ts.map +0 -1
- package/dist/import/actions/types/spam.d.ts +0 -6
- package/dist/import/actions/types/spam.d.ts.map +0 -1
- package/dist/import/actions/types/swapIncome.d.ts +0 -4
- package/dist/import/actions/types/swapIncome.d.ts.map +0 -1
- package/dist/import/actions/types/swapNft.d.ts +0 -6
- package/dist/import/actions/types/swapNft.d.ts.map +0 -1
- package/dist/import/actions/types/swapTransfer.d.ts +0 -4
- package/dist/import/actions/types/swapTransfer.d.ts.map +0 -1
- package/dist/import/actions/types/trade.d.ts +0 -7
- package/dist/import/actions/types/trade.d.ts.map +0 -1
- package/dist/import/actions/types/transactionFee.d.ts +0 -7
- package/dist/import/actions/types/transactionFee.d.ts.map +0 -1
- package/dist/import/actions/types/transfer.d.ts +0 -8
- package/dist/import/actions/types/transfer.d.ts.map +0 -1
- package/dist/import/actions/types/withdraw.d.ts +0 -7
- package/dist/import/actions/types/withdraw.d.ts.map +0 -1
- package/dist/import/actions/types/withdrawWithBond.d.ts +0 -7
- package/dist/import/actions/types/withdrawWithBond.d.ts.map +0 -1
- package/dist/import/apps/index.d.ts +0 -3
- package/dist/import/apps/index.d.ts.map +0 -1
- package/dist/import/apps/types.d.ts +0 -11
- package/dist/import/apps/types.d.ts.map +0 -1
- package/dist/import/assets/constants.d.ts.map +0 -1
- package/dist/import/assets/creates/createCryptoCurrency.d.ts +0 -3
- package/dist/import/assets/creates/createCryptoCurrency.d.ts.map +0 -1
- package/dist/import/assets/creates/createFiatCurrency.d.ts +0 -3
- package/dist/import/assets/creates/createFiatCurrency.d.ts.map +0 -1
- package/dist/import/assets/creates/index.d.ts.map +0 -1
- package/dist/import/assets/definitions/astar.d.ts.map +0 -1
- package/dist/import/assets/definitions/avalanche.d.ts.map +0 -1
- package/dist/import/assets/definitions/bnb.d.ts.map +0 -1
- package/dist/import/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts +0 -18
- package/dist/import/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts.map +0 -1
- package/dist/import/assets/definitions/ethereum.d.ts.map +0 -1
- package/dist/import/assets/definitions/eur.d.ts.map +0 -1
- package/dist/import/assets/definitions/fantom.d.ts.map +0 -1
- package/dist/import/assets/definitions/index.d.ts.map +0 -1
- package/dist/import/assets/definitions/jpy.d.ts.map +0 -1
- package/dist/import/assets/definitions/kava.d.ts.map +0 -1
- package/dist/import/assets/definitions/mantle.d.ts.map +0 -1
- package/dist/import/assets/definitions/maticNetwork.d.ts.map +0 -1
- package/dist/import/assets/definitions/metis.d.ts.map +0 -1
- package/dist/import/assets/definitions/moonbeam.d.ts.map +0 -1
- package/dist/import/assets/definitions/moonriver.d.ts.map +0 -1
- package/dist/import/assets/definitions/ronin.d.ts.map +0 -1
- package/dist/import/assets/definitions/usd.d.ts.map +0 -1
- package/dist/import/assets/externals/coingecko/constants.d.ts.map +0 -1
- package/dist/import/assets/externals/coingecko/getAutoRetry.d.ts.map +0 -1
- package/dist/import/assets/externals/coingecko/getCoinMarketChartRange.d.ts.map +0 -1
- package/dist/import/assets/externals/coingecko/getCoinsMarkets.d.ts.map +0 -1
- package/dist/import/assets/externals/coingecko/index.d.ts.map +0 -1
- package/dist/import/assets/externals/index.d.ts.map +0 -1
- package/dist/import/assets/index.d.ts +0 -5
- package/dist/import/assets/index.d.ts.map +0 -1
- package/dist/import/assets/types/cryptoCurrency.d.ts +0 -17
- package/dist/import/assets/types/cryptoCurrency.d.ts.map +0 -1
- package/dist/import/assets/types/cryptoCurrencyPrice.d.ts +0 -10
- package/dist/import/assets/types/cryptoCurrencyPrice.d.ts.map +0 -1
- package/dist/import/assets/types/dataSource.d.ts +0 -18
- package/dist/import/assets/types/dataSource.d.ts.map +0 -1
- package/dist/import/assets/types/fiatCurrency.d.ts +0 -12
- package/dist/import/assets/types/fiatCurrency.d.ts.map +0 -1
- package/dist/import/assets/types/index.d.ts.map +0 -1
- package/dist/import/assets/types/nft.d.ts +0 -5
- package/dist/import/assets/types/nft.d.ts.map +0 -1
- package/dist/import/index.d.mts +0 -12
- package/dist/import/index.d.mts.map +0 -1
- package/dist/import/index.mjs +0 -2
- package/dist/import/portfolios/createPortfolio.d.ts.map +0 -1
- package/dist/import/portfolios/index.d.ts.map +0 -1
- package/dist/import/portfolios/type.d.ts.map +0 -1
- package/dist/import/types.d.ts.map +0 -1
- package/dist/import/utils/errors.d.ts.map +0 -1
- package/dist/import/utils/index.d.ts +0 -5
- package/dist/import/utils/index.d.ts.map +0 -1
- package/dist/import/utils/rest.d.ts +0 -14
- package/dist/import/utils/rest.d.ts.map +0 -1
- package/dist/import/utils/stringify.d.ts.map +0 -1
- package/dist/import/utils/types.d.ts.map +0 -1
- package/dist/require/index.cjs +0 -2
- package/dist/require/index.d.cts +0 -2
- package/dist/require/index.d.cts.map +0 -1
- package/src/actions/index.ts +0 -44
- package/src/actions/schemas/constants.ts +0 -16
- package/src/actions/schemas/swap.ts +0 -7
- package/src/actions/types/addLiquidity.ts +0 -23
- package/src/actions/types/atomicArbitrage.ts +0 -30
- package/src/actions/types/bridgeFrom.ts +0 -23
- package/src/actions/types/bridgeTo.ts +0 -23
- package/src/actions/types/buyNft.ts +0 -34
- package/src/actions/types/common.ts +0 -142
- package/src/actions/types/deposit.ts +0 -23
- package/src/actions/types/depositWithBond.ts +0 -23
- package/src/actions/types/freeMintNft.ts +0 -20
- package/src/actions/types/income.ts +0 -21
- package/src/actions/types/index.ts +0 -53
- package/src/actions/types/move.ts +0 -21
- package/src/actions/types/nftRoyalty.ts +0 -19
- package/src/actions/types/removeLiquidity.ts +0 -23
- package/src/actions/types/sellNft.ts +0 -22
- package/src/actions/types/spam.ts +0 -23
- package/src/actions/types/swapIncome.ts +0 -12
- package/src/actions/types/swapNft.ts +0 -12
- package/src/actions/types/swapTransfer.ts +0 -12
- package/src/actions/types/trade.ts +0 -34
- package/src/actions/types/transactionFee.ts +0 -19
- package/src/actions/types/transfer.ts +0 -36
- package/src/actions/types/withdraw.ts +0 -23
- package/src/actions/types/withdrawWithBond.ts +0 -23
- package/src/apps/index.ts +0 -2
- package/src/apps/types.ts +0 -20
- package/src/assets/creates/createFiatCurrency.ts +0 -10
- package/src/assets/definitions/coingeckoCryptoCurrencyDataSource.test.ts +0 -53
- package/src/assets/externals/coingecko/getCoinMarketChartRange.test.ts +0 -28
- package/src/assets/externals/coingecko/getCoinsMarkets.test.ts +0 -11
- package/src/assets/index.ts +0 -27
- package/src/assets/types/cryptoCurrency.ts +0 -17
- package/src/assets/types/cryptoCurrencyPrice.ts +0 -14
- package/src/assets/types/dataSource.ts +0 -26
- package/src/assets/types/fiatCurrency.ts +0 -21
- package/src/assets/types/nft.ts +0 -5
- package/src/index.cts +0 -1
- package/src/index.mts +0 -79
- package/src/portfolios/createPortfolio.test.ts +0 -7
- package/src/utils/index.ts +0 -4
- package/src/utils/rest.test.ts +0 -19
- package/src/utils/rest.ts +0 -138
- package/src/utils/stringify.test.ts +0 -24
- package/tsconfig.json +0 -28
- /package/{dist/import → _types}/accounts/index.d.ts +0 -0
- /package/{dist/import → _types}/accounts/types/account.d.ts +0 -0
- /package/{dist/import → _types}/accounts/types/index.d.ts +0 -0
- /package/{dist/import → _types}/assets/constants.d.ts +0 -0
- /package/{dist/import → _types}/assets/creates/index.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/astar.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/avalanche.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/bnb.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/ethereum.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/eur.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/fantom.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/index.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/jpy.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/kava.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/mantle.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/maticNetwork.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/metis.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/moonbeam.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/moonriver.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/ronin.d.ts +0 -0
- /package/{dist/import → _types}/assets/definitions/usd.d.ts +0 -0
- /package/{dist/import → _types}/assets/externals/coingecko/constants.d.ts +0 -0
- /package/{dist/import → _types}/assets/externals/coingecko/getAutoRetry.d.ts +0 -0
- /package/{dist/import → _types}/assets/externals/coingecko/getCoinMarketChartRange.d.ts +0 -0
- /package/{dist/import → _types}/assets/externals/coingecko/getCoinsMarkets.d.ts +0 -0
- /package/{dist/import → _types}/assets/externals/coingecko/index.d.ts +0 -0
- /package/{dist/import → _types}/assets/externals/index.d.ts +0 -0
- /package/{dist/import → _types}/assets/types/index.d.ts +0 -0
- /package/{dist/import → _types}/portfolios/createPortfolio.d.ts +0 -0
- /package/{dist/import → _types}/portfolios/index.d.ts +0 -0
- /package/{dist/import → _types}/portfolios/type.d.ts +0 -0
- /package/{dist/import → _types}/types.d.ts +0 -0
- /package/{dist/import → _types}/utils/errors.d.ts +0 -0
- /package/{dist/import → _types}/utils/stringify.d.ts +0 -0
- /package/{dist/import → _types}/utils/types.d.ts +0 -0
- /package/{src/accounts → accounts}/index.ts +0 -0
- /package/{src/accounts → accounts}/types/account.ts +0 -0
- /package/{src/accounts → accounts}/types/index.ts +0 -0
- /package/{src/assets → assets}/constants.ts +0 -0
- /package/{src/assets → assets}/creates/createCryptoCurrency.ts +0 -0
- /package/{src/assets → assets}/creates/index.ts +0 -0
- /package/{src/assets → assets}/definitions/astar.ts +0 -0
- /package/{src/assets → assets}/definitions/avalanche.ts +0 -0
- /package/{src/assets → assets}/definitions/bnb.ts +0 -0
- /package/{src/assets → assets}/definitions/coingeckoCryptoCurrencyDataSource.ts +0 -0
- /package/{src/assets → assets}/definitions/ethereum.ts +0 -0
- /package/{src/assets → assets}/definitions/eur.ts +0 -0
- /package/{src/assets → assets}/definitions/fantom.ts +0 -0
- /package/{src/assets → assets}/definitions/index.ts +0 -0
- /package/{src/assets → assets}/definitions/jpy.ts +0 -0
- /package/{src/assets → assets}/definitions/kava.ts +0 -0
- /package/{src/assets → assets}/definitions/mantle.ts +0 -0
- /package/{src/assets → assets}/definitions/maticNetwork.ts +0 -0
- /package/{src/assets → assets}/definitions/metis.ts +0 -0
- /package/{src/assets → assets}/definitions/moonbeam.ts +0 -0
- /package/{src/assets → assets}/definitions/moonriver.ts +0 -0
- /package/{src/assets → assets}/definitions/ronin.ts +0 -0
- /package/{src/assets → assets}/definitions/usd.ts +0 -0
- /package/{src/assets → assets}/externals/coingecko/constants.ts +0 -0
- /package/{src/assets → assets}/externals/coingecko/getAutoRetry.ts +0 -0
- /package/{src/assets → assets}/externals/coingecko/getCoinMarketChartRange.ts +0 -0
- /package/{src/assets → assets}/externals/coingecko/getCoinsMarkets.ts +0 -0
- /package/{src/assets → assets}/externals/coingecko/index.ts +0 -0
- /package/{src/assets → assets}/externals/index.ts +0 -0
- /package/{src/assets → assets}/types/index.ts +0 -0
- /package/{src/portfolios → portfolios}/createPortfolio.ts +0 -0
- /package/{src/portfolios → portfolios}/index.ts +0 -0
- /package/{src/portfolios → portfolios}/type.ts +0 -0
- /package/{src/tests → tests}/constants.ts +0 -0
- /package/{src/tests → tests}/index.ts +0 -0
- /package/{src/tests → tests}/utils.ts +0 -0
- /package/{src/types.ts → types.ts} +0 -0
- /package/{src/utils → utils}/errors.ts +0 -0
- /package/{src/utils → utils}/stringify.ts +0 -0
- /package/{src/utils → utils}/types.ts +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { createUnionSchema } from '../../utils'
|
|
3
|
+
|
|
4
|
+
const fiatCurrencyIds = [
|
|
5
|
+
'cny',
|
|
6
|
+
'eur',
|
|
7
|
+
'idr',
|
|
8
|
+
'jpy',
|
|
9
|
+
'krw',
|
|
10
|
+
'rub',
|
|
11
|
+
'twd',
|
|
12
|
+
'usd',
|
|
13
|
+
] as const
|
|
14
|
+
export const fiatCurrencyIdUnionSchema = createUnionSchema(fiatCurrencyIds)
|
|
15
|
+
|
|
16
|
+
export const fiatCurrencySchema = z
|
|
17
|
+
.object({
|
|
18
|
+
type: z.literal('FiatCurrency'),
|
|
19
|
+
id: fiatCurrencyIdUnionSchema,
|
|
20
|
+
name: z.string(),
|
|
21
|
+
symbol: z.string(),
|
|
22
|
+
icon: z.string().optional(),
|
|
23
|
+
})
|
|
24
|
+
.transform((v) => ({
|
|
25
|
+
...v,
|
|
26
|
+
icon: v.icon,
|
|
27
|
+
}))
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { assetSchema } from './asset'
|
|
2
|
+
export { cryptoCurrencySchema } from './cryptoCurrency'
|
|
3
|
+
export { cryptoCurrencyPriceSchema } from './cryptoCurrencyPrice'
|
|
4
|
+
export { fiatCurrencyIdUnionSchema, fiatCurrencySchema } from './fiatCurrency'
|
|
5
|
+
export { nftSchema } from './nft'
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Config } from '../../types'
|
|
2
|
+
import type { CryptoCurrency } from './cryptoCurrency'
|
|
3
|
+
import type { CryptoCurrencyPrice } from './cryptoCurrencyPrice'
|
|
4
|
+
import type { FiatCurrency } from './fiatCurrency'
|
|
5
|
+
|
|
6
|
+
export type GetCurrentPriceParameters = {
|
|
7
|
+
readonly targetCurrencies: readonly CryptoCurrency[]
|
|
8
|
+
readonly vsCurrency: FiatCurrency
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type GetHistoricalPricesParameters = {
|
|
12
|
+
readonly targetCurrencies: readonly CryptoCurrency[]
|
|
13
|
+
readonly vsCurrency: FiatCurrency
|
|
14
|
+
readonly from: number
|
|
15
|
+
readonly to: number
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type CryptoCurrencyDataSource = {
|
|
19
|
+
readonly getCurrentPrice: (
|
|
20
|
+
parameters: GetCurrentPriceParameters,
|
|
21
|
+
config?: Config,
|
|
22
|
+
) => Promise<readonly CryptoCurrencyPrice[]>
|
|
23
|
+
readonly getHistoricalPrices: (
|
|
24
|
+
parameters: GetHistoricalPricesParameters,
|
|
25
|
+
config?: Config,
|
|
26
|
+
) => Promise<readonly CryptoCurrencyPrice[]>
|
|
27
|
+
}
|
package/index.ts
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
export type { Account } from './accounts'
|
|
2
|
+
export {
|
|
3
|
+
accountActionAddLiquiditySchema,
|
|
4
|
+
accountActionApproveSchema,
|
|
5
|
+
accountActionAtomicArbitrageSchema,
|
|
6
|
+
accountActionBorrowSchema,
|
|
7
|
+
accountActionBorrowWithDebtSchema,
|
|
8
|
+
accountActionBridgeFromSchema,
|
|
9
|
+
accountActionBridgeToSchema,
|
|
10
|
+
accountActionBuyCryptoSchema,
|
|
11
|
+
accountActionBuyNftSchema,
|
|
12
|
+
accountActionCrossReplaceSchema,
|
|
13
|
+
accountActionCrossTradeSchema,
|
|
14
|
+
accountActionDepositSchema,
|
|
15
|
+
accountActionDepositWithBondSchema,
|
|
16
|
+
accountActionFailTxSchema,
|
|
17
|
+
accountActionFeeSchema,
|
|
18
|
+
accountActionFreeMintNftSchema,
|
|
19
|
+
accountActionIgnoreSchema,
|
|
20
|
+
accountActionIncomeSchema,
|
|
21
|
+
accountActionMintNftSchema,
|
|
22
|
+
accountActionMoveSchema,
|
|
23
|
+
accountActionNftRoyaltySchema,
|
|
24
|
+
accountActionReceiveFromCexSchema,
|
|
25
|
+
accountActionReduceSchema,
|
|
26
|
+
accountActionRemoveLiquiditySchema,
|
|
27
|
+
accountActionRepaymentSchema,
|
|
28
|
+
accountActionRepaymentWithDebtSchema,
|
|
29
|
+
accountActionReplaceSchema,
|
|
30
|
+
accountActionRevokeSchema,
|
|
31
|
+
accountActionSchema,
|
|
32
|
+
accountActionSellCryptoSchema,
|
|
33
|
+
accountActionSellNftSchema,
|
|
34
|
+
accountActionSendToCexSchema,
|
|
35
|
+
accountActionSpamSchema,
|
|
36
|
+
accountActionStakeSchema,
|
|
37
|
+
accountActionSwapIncomeSchema,
|
|
38
|
+
accountActionSwapNftSchema,
|
|
39
|
+
accountActionSwapTransferSchema,
|
|
40
|
+
accountActionTradeSchema,
|
|
41
|
+
accountActionTransactionFeeSchema,
|
|
42
|
+
accountActionTransferSchema,
|
|
43
|
+
accountActionUnstakeSchema,
|
|
44
|
+
accountActionUnwrapSchema,
|
|
45
|
+
accountActionValuedownSchema,
|
|
46
|
+
accountActionValueupSchema,
|
|
47
|
+
accountActionWithdrawSchema,
|
|
48
|
+
accountActionWithdrawWithBondSchema,
|
|
49
|
+
accountActionWrapSchema,
|
|
50
|
+
crossActionBundleSchema,
|
|
51
|
+
normalActionAddLiquiditySchema,
|
|
52
|
+
normalActionApproveSchema,
|
|
53
|
+
normalActionAtomicArbitrageSchema,
|
|
54
|
+
normalActionBorrowSchema,
|
|
55
|
+
normalActionBorrowWithDebtSchema,
|
|
56
|
+
normalActionBridgeFromSchema,
|
|
57
|
+
normalActionBridgeToSchema,
|
|
58
|
+
normalActionBuyCryptoSchema,
|
|
59
|
+
normalActionBuyNftSchema,
|
|
60
|
+
normalActionCrossReplaceSchema,
|
|
61
|
+
normalActionCrossTradeSchema,
|
|
62
|
+
normalActionDepositSchema,
|
|
63
|
+
normalActionDepositWithBondSchema,
|
|
64
|
+
normalActionFailTxSchema,
|
|
65
|
+
normalActionFeeSchema,
|
|
66
|
+
normalActionFreeMintNftSchema,
|
|
67
|
+
normalActionMintNftSchema,
|
|
68
|
+
normalActionRemoveLiquiditySchema,
|
|
69
|
+
normalActionRepaymentSchema,
|
|
70
|
+
normalActionRepaymentWithDebtSchema,
|
|
71
|
+
normalActionReplaceSchema,
|
|
72
|
+
normalActionRevokeSchema,
|
|
73
|
+
normalActionSchema,
|
|
74
|
+
normalActionSellCryptoSchema,
|
|
75
|
+
normalActionSpamSchema,
|
|
76
|
+
normalActionStakeSchema,
|
|
77
|
+
normalActionSwapNftSchema,
|
|
78
|
+
normalActionTradeSchema,
|
|
79
|
+
normalActionTransactionFeeSchema,
|
|
80
|
+
normalActionTransferSchema,
|
|
81
|
+
normalActionUnstakeSchema,
|
|
82
|
+
normalActionUnwrapSchema,
|
|
83
|
+
normalActionValuedownSchema,
|
|
84
|
+
normalActionValueupSchema,
|
|
85
|
+
normalActionWithdrawSchema,
|
|
86
|
+
normalActionWithdrawWithBondSchema,
|
|
87
|
+
normalActionWrapSchema,
|
|
88
|
+
} from './actions'
|
|
89
|
+
export type {
|
|
90
|
+
AccountAction,
|
|
91
|
+
AccountActionAddLiquidity,
|
|
92
|
+
AccountActionApprove,
|
|
93
|
+
AccountActionAtomicArbitrage,
|
|
94
|
+
AccountActionBorrow,
|
|
95
|
+
AccountActionBorrowWithDebt,
|
|
96
|
+
AccountActionBridgeFrom,
|
|
97
|
+
AccountActionBridgeTo,
|
|
98
|
+
AccountActionBuyNft,
|
|
99
|
+
AccountActionCrossReplace,
|
|
100
|
+
AccountActionCrossTrade,
|
|
101
|
+
AccountActionDeposit,
|
|
102
|
+
AccountActionDepositWithBond,
|
|
103
|
+
AccountActionFailTx,
|
|
104
|
+
AccountActionFee,
|
|
105
|
+
AccountActionFreeMintNft,
|
|
106
|
+
AccountActionIgnore,
|
|
107
|
+
AccountActionIncome,
|
|
108
|
+
AccountActionMintNft,
|
|
109
|
+
AccountActionMove,
|
|
110
|
+
AccountActionNftRoyalty,
|
|
111
|
+
AccountActionReceiveFromCex,
|
|
112
|
+
AccountActionReduce,
|
|
113
|
+
AccountActionRemoveLiquidity,
|
|
114
|
+
AccountActionRepayment,
|
|
115
|
+
AccountActionRepaymentWithDebt,
|
|
116
|
+
AccountActionReplace,
|
|
117
|
+
AccountActionRevoke,
|
|
118
|
+
AccountActionSellNft,
|
|
119
|
+
AccountActionSendToCex,
|
|
120
|
+
AccountActionSpam,
|
|
121
|
+
AccountActionSwapIncome,
|
|
122
|
+
AccountActionSwapNft,
|
|
123
|
+
AccountActionSwapTransfer,
|
|
124
|
+
AccountActionTrade,
|
|
125
|
+
AccountActionTransactionFee,
|
|
126
|
+
AccountActionTransfer,
|
|
127
|
+
AccountActionType,
|
|
128
|
+
AccountActionUnwrap,
|
|
129
|
+
AccountActionValuedown,
|
|
130
|
+
AccountActionValueup,
|
|
131
|
+
AccountActionWithdraw,
|
|
132
|
+
AccountActionWithdrawWithBond,
|
|
133
|
+
AccountActionWrap,
|
|
134
|
+
ActionType,
|
|
135
|
+
CrossActionBundle,
|
|
136
|
+
Evidence,
|
|
137
|
+
NormalAction,
|
|
138
|
+
NormalActionAddLiquidity,
|
|
139
|
+
NormalActionApprove,
|
|
140
|
+
NormalActionAtomicArbitrage,
|
|
141
|
+
NormalActionBorrow,
|
|
142
|
+
NormalActionBorrowWithDebt,
|
|
143
|
+
NormalActionBridgeFrom,
|
|
144
|
+
NormalActionBridgeTo,
|
|
145
|
+
NormalActionBuyNft,
|
|
146
|
+
NormalActionCrossReplace,
|
|
147
|
+
NormalActionCrossTrade,
|
|
148
|
+
NormalActionDeposit,
|
|
149
|
+
NormalActionDepositWithBond,
|
|
150
|
+
NormalActionFailTx,
|
|
151
|
+
NormalActionFee,
|
|
152
|
+
NormalActionFreeMintNft,
|
|
153
|
+
NormalActionMintNft,
|
|
154
|
+
NormalActionRemoveLiquidity,
|
|
155
|
+
NormalActionRepayment,
|
|
156
|
+
NormalActionRepaymentWithDebt,
|
|
157
|
+
NormalActionReplace,
|
|
158
|
+
NormalActionSpam,
|
|
159
|
+
NormalActionTrade,
|
|
160
|
+
NormalActionTransactionFee,
|
|
161
|
+
NormalActionTransfer,
|
|
162
|
+
NormalActionUnwrap,
|
|
163
|
+
NormalActionValuedown,
|
|
164
|
+
NormalActionValueup,
|
|
165
|
+
NormalActionWithdraw,
|
|
166
|
+
NormalActionWithdrawWithBond,
|
|
167
|
+
NormalActionWrap,
|
|
168
|
+
} from './actions'
|
|
169
|
+
export { appCategories } from './apps'
|
|
170
|
+
export type { App, AppCategory } from './apps'
|
|
171
|
+
export {
|
|
172
|
+
astar,
|
|
173
|
+
avalanche,
|
|
174
|
+
bnb,
|
|
175
|
+
coingeckoCryptoCurrencyDataSource,
|
|
176
|
+
createCryptoCurrency,
|
|
177
|
+
ethereum,
|
|
178
|
+
eur,
|
|
179
|
+
fantom,
|
|
180
|
+
fiatCurrencyDecimals,
|
|
181
|
+
jpy,
|
|
182
|
+
kava,
|
|
183
|
+
mantle,
|
|
184
|
+
maticNetwork,
|
|
185
|
+
metis,
|
|
186
|
+
moonbeam,
|
|
187
|
+
moonriver,
|
|
188
|
+
ronin,
|
|
189
|
+
usd,
|
|
190
|
+
} from './assets'
|
|
191
|
+
export type {
|
|
192
|
+
CryptoCurrency,
|
|
193
|
+
CryptoCurrencyDataSource,
|
|
194
|
+
CryptoCurrencyPrice,
|
|
195
|
+
FiatCurrency,
|
|
196
|
+
Nft,
|
|
197
|
+
} from './assets'
|
|
198
|
+
export { createPortfolio } from './portfolios'
|
|
199
|
+
export type { Portfolio } from './portfolios'
|
|
200
|
+
export type { Config, Logger } from './types'
|
|
201
|
+
export { rest, stringify } from './utils'
|
|
202
|
+
export type { Schema } from './utils'
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xtorch/core",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "TypeScript Analyze Interface for Crypto Data.",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Cryptorch | TypeScript Analyze Interface for Crypto Data.",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"cryptorch",
|
|
6
7
|
"crypto",
|
|
7
8
|
"dapps",
|
|
8
9
|
"web3"
|
|
@@ -13,66 +14,30 @@
|
|
|
13
14
|
},
|
|
14
15
|
"license": "MIT",
|
|
15
16
|
"author": "0xnekoya <nekoya.bc@gmail.com>",
|
|
16
|
-
"type": "module",
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
"require": {
|
|
24
|
-
"types": "./dist/require/index.d.cts",
|
|
25
|
-
"default": "./dist/require/index.cjs"
|
|
26
|
-
}
|
|
19
|
+
"types": "./_types/index.d.ts",
|
|
20
|
+
"import": "./_esm/index.js",
|
|
21
|
+
"default": "./_cjs/index.js"
|
|
27
22
|
}
|
|
28
23
|
},
|
|
24
|
+
"main": "./_cjs/index.js",
|
|
25
|
+
"module": "./_esm/index.js",
|
|
26
|
+
"types": "./_types/index.d.ts",
|
|
27
|
+
"typings": "./_types/index.d.ts",
|
|
29
28
|
"files": [
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
29
|
+
"*",
|
|
30
|
+
"!**/*.tsbuildinfo",
|
|
31
|
+
"!**/*.test.ts",
|
|
32
|
+
"!**/*.test.ts.snap",
|
|
33
|
+
"!**/*.test-d.ts",
|
|
34
|
+
"!**/*.bench.ts",
|
|
35
|
+
"!tsconfig.build.json"
|
|
34
36
|
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "run-z build:transpile,build:esm,build:cjs",
|
|
37
|
-
"build:cjs": "tsc --project tsconfig.build.cjs.json",
|
|
38
|
-
"build:esm": "tsc --project tsconfig.build.esm.json",
|
|
39
|
-
"build:transpile": "bun build.mts",
|
|
40
|
-
"clean": "rm -rf node_modules bun.lockb",
|
|
41
|
-
"lint": "eslint src --cache",
|
|
42
|
-
"lint:fix": "bun run lint --fix --quiet",
|
|
43
|
-
"test": "bun test --cache --coverage",
|
|
44
|
-
"typecheck": "tsc --noEmit"
|
|
45
|
-
},
|
|
46
37
|
"dependencies": {
|
|
47
|
-
"@0xtorch/big-decimal": "^0.0.
|
|
38
|
+
"@0xtorch/big-decimal": "^0.0.7",
|
|
48
39
|
"zod": "^3.22.4"
|
|
49
40
|
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@arethetypeswrong/cli": "^0.15.1",
|
|
52
|
-
"@changesets/cli": "^2.27.1",
|
|
53
|
-
"@eslint/eslintrc": "^3.0.0",
|
|
54
|
-
"@eslint/js": "^8.56.0",
|
|
55
|
-
"@types/eslint": "^8.56.1",
|
|
56
|
-
"@types/web": "^0.0.142",
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
58
|
-
"@typescript-eslint/parser": "^7.2.0",
|
|
59
|
-
"bun-types": "^0.8.1",
|
|
60
|
-
"esbuild": "^0.20.2",
|
|
61
|
-
"eslint": "^8.56.0",
|
|
62
|
-
"eslint-config-prettier": "^9.1.0",
|
|
63
|
-
"eslint-import-resolver-typescript": "^3.6.1",
|
|
64
|
-
"eslint-import-resolver-typescript-bun": "^0.0.80",
|
|
65
|
-
"eslint-plugin-functional": "^6.0.0",
|
|
66
|
-
"eslint-plugin-import": "^2.29.1",
|
|
67
|
-
"eslint-plugin-prefer-arrow-functions": "^3.2.4",
|
|
68
|
-
"eslint-plugin-security": "^2.1.0",
|
|
69
|
-
"eslint-plugin-strict-dependencies": "^1.3.1",
|
|
70
|
-
"eslint-plugin-unicorn": "^51.0.1",
|
|
71
|
-
"prettier": "^3.1.1",
|
|
72
|
-
"prettier-plugin-organize-imports": "^3.2.4",
|
|
73
|
-
"prettier-plugin-packagejson": "^2.4.9",
|
|
74
|
-
"run-z": "^2.0.0"
|
|
75
|
-
},
|
|
76
41
|
"peerDependencies": {
|
|
77
42
|
"typescript": "^5.0.0"
|
|
78
43
|
}
|
package/utils/index.ts
ADDED
package/utils/rest.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { ZodError } from 'zod'
|
|
2
|
+
|
|
3
|
+
import type { Logger } from '../types'
|
|
4
|
+
import { HttpRequestError, TimeoutError } from './errors'
|
|
5
|
+
import { stringify } from './stringify'
|
|
6
|
+
|
|
7
|
+
export type Schema<TData> = {
|
|
8
|
+
parse: (data: unknown) => TData
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type RestOptions<TData> = {
|
|
12
|
+
// Request configuration to pass to `fetch`.
|
|
13
|
+
fetchOptions?: RequestInit
|
|
14
|
+
// The timeout (in ms) for the request.
|
|
15
|
+
timeout?: number
|
|
16
|
+
schema: Schema<TData>
|
|
17
|
+
logger?: Logger
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const rest = async <TData>(
|
|
21
|
+
url: string,
|
|
22
|
+
{ fetchOptions = {}, timeout = 10_000, schema, logger }: RestOptions<TData>,
|
|
23
|
+
): Promise<TData> => {
|
|
24
|
+
const { body, headers, method, signal: signal_ } = fetchOptions
|
|
25
|
+
|
|
26
|
+
if (logger !== undefined) {
|
|
27
|
+
logger.info(`[${method?.toUpperCase() ?? 'GET'}] ${url}`)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
try {
|
|
31
|
+
const response = await withTimeout(
|
|
32
|
+
async ({ signal }) =>
|
|
33
|
+
await fetch(url, {
|
|
34
|
+
...fetchOptions,
|
|
35
|
+
headers: {
|
|
36
|
+
...(headers as Record<string, string>),
|
|
37
|
+
'Content-Type': 'application/json',
|
|
38
|
+
},
|
|
39
|
+
signal: signal_ ?? (timeout > 0 ? signal : undefined),
|
|
40
|
+
}),
|
|
41
|
+
{
|
|
42
|
+
errorInstance: new TimeoutError({
|
|
43
|
+
body: body === undefined ? undefined : stringify(body),
|
|
44
|
+
url,
|
|
45
|
+
}),
|
|
46
|
+
timeout,
|
|
47
|
+
signal: true,
|
|
48
|
+
},
|
|
49
|
+
)
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
51
|
+
const data =
|
|
52
|
+
response.headers.get('Content-Type')?.startsWith('application/json') ===
|
|
53
|
+
true
|
|
54
|
+
? await response.json()
|
|
55
|
+
: await response.text()
|
|
56
|
+
|
|
57
|
+
if (!response.ok) {
|
|
58
|
+
const errorStringify =
|
|
59
|
+
typeof data === 'object' && data !== null && 'error' in data
|
|
60
|
+
? // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
61
|
+
stringify(data.error)
|
|
62
|
+
: ''
|
|
63
|
+
throw new HttpRequestError({
|
|
64
|
+
body: body === undefined ? undefined : stringify(body),
|
|
65
|
+
details:
|
|
66
|
+
errorStringify.length > 0 ? errorStringify : response.statusText,
|
|
67
|
+
status: response.status,
|
|
68
|
+
url,
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return schema.parse(data)
|
|
73
|
+
} catch (error) {
|
|
74
|
+
if (
|
|
75
|
+
error instanceof TimeoutError ||
|
|
76
|
+
error instanceof HttpRequestError ||
|
|
77
|
+
error instanceof ZodError
|
|
78
|
+
) {
|
|
79
|
+
throw error
|
|
80
|
+
} else if (error instanceof Error) {
|
|
81
|
+
throw new HttpRequestError({
|
|
82
|
+
body: body === undefined ? undefined : stringify(body),
|
|
83
|
+
details: error.message,
|
|
84
|
+
url,
|
|
85
|
+
})
|
|
86
|
+
} else {
|
|
87
|
+
throw error
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const withTimeout = <TData>(
|
|
93
|
+
function_: ({
|
|
94
|
+
signal,
|
|
95
|
+
}: {
|
|
96
|
+
signal?: AbortController['signal']
|
|
97
|
+
}) => Promise<TData>,
|
|
98
|
+
{
|
|
99
|
+
errorInstance = new Error('timed out'),
|
|
100
|
+
timeout,
|
|
101
|
+
signal,
|
|
102
|
+
}: {
|
|
103
|
+
// The error instance to throw when the timeout is reached.
|
|
104
|
+
errorInstance?: Error
|
|
105
|
+
// The timeout (in ms).
|
|
106
|
+
timeout: number
|
|
107
|
+
// Whether or not the timeout should use an abort signal.
|
|
108
|
+
signal?: boolean
|
|
109
|
+
},
|
|
110
|
+
): Promise<TData> =>
|
|
111
|
+
new Promise((resolve, reject) => {
|
|
112
|
+
let mut_timeoutId: ReturnType<typeof setTimeout> | undefined
|
|
113
|
+
try {
|
|
114
|
+
const controller = new AbortController()
|
|
115
|
+
if (timeout > 0) {
|
|
116
|
+
mut_timeoutId = setTimeout(() => {
|
|
117
|
+
if (signal === undefined) {
|
|
118
|
+
reject(errorInstance)
|
|
119
|
+
} else {
|
|
120
|
+
controller.abort()
|
|
121
|
+
}
|
|
122
|
+
}, timeout)
|
|
123
|
+
}
|
|
124
|
+
function_({ signal: controller.signal })
|
|
125
|
+
.then((value) => {
|
|
126
|
+
resolve(value)
|
|
127
|
+
})
|
|
128
|
+
.catch((error) => {
|
|
129
|
+
reject(error)
|
|
130
|
+
})
|
|
131
|
+
} catch (error) {
|
|
132
|
+
if (error instanceof Error && error.name === 'AbortError')
|
|
133
|
+
reject(errorInstance)
|
|
134
|
+
reject(error)
|
|
135
|
+
} finally {
|
|
136
|
+
clearTimeout(mut_timeoutId)
|
|
137
|
+
}
|
|
138
|
+
})
|
package/utils/schema.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Primitive, ZodLiteral } from 'zod'
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
type MappedZodLiterals<T extends readonly Primitive[]> = {
|
|
5
|
+
-readonly [K in keyof T]: ZodLiteral<T[K]>
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const createUnionSchema = <
|
|
9
|
+
T extends readonly [Primitive, Primitive, ...Primitive[]],
|
|
10
|
+
>(
|
|
11
|
+
literals: T,
|
|
12
|
+
): z.ZodUnion<MappedZodLiterals<T>> =>
|
|
13
|
+
z.union(literals.map((value) => z.literal(value)) as MappedZodLiterals<T>)
|
|
14
|
+
|
|
15
|
+
export const bigDecimalSchema = z.object({
|
|
16
|
+
value: z.bigint(),
|
|
17
|
+
decimals: z.number().int(),
|
|
18
|
+
})
|
package/README.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# @0xtorch/core
|
|
2
|
-
|
|
3
|
-
To install dependencies:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
bun install
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
To run:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
bun run src/index.ts
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
This project was created using `bun init` in bun v1.0.30. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/accounts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/accounts/types/account.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,SAAS,SAAS,MAAM,IAAI;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/accounts/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export type { AccountAction, AccountActionAddLiquidity, AccountActionAtomicArbitrage, AccountActionBridgeFrom, AccountActionBridgeTo, AccountActionBuyNft, AccountActionDeposit, AccountActionDepositWithBond, AccountActionFreeMintNft, AccountActionIncome, AccountActionMove, AccountActionNftRoyalty, AccountActionRemoveLiquidity, AccountActionSellNft, AccountActionSpam, AccountActionSwapIncome, AccountActionSwapNft, AccountActionSwapTransfer, AccountActionTrade, AccountActionTransactionFee, AccountActionTransfer, AccountActionType, AccountActionWithdraw, AccountActionWithdrawWithBond, ActionType, Evidence, NormalAction, NormalActionAddLiquidity, NormalActionAtomicArbitrage, NormalActionBridgeFrom, NormalActionBridgeTo, NormalActionBuyNft, NormalActionDeposit, NormalActionDepositWithBond, NormalActionFreeMintNft, NormalActionRemoveLiquidity, NormalActionSpam, NormalActionTrade, NormalActionTransactionFee, NormalActionTransfer, NormalActionWithdraw, NormalActionWithdrawWithBond, } from './types';
|
|
2
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,6BAA6B,EAC7B,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,SAAS,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
-
import type { AccountAction, NormalAction } from './common';
|
|
3
|
-
type Action = 'add-liquidity';
|
|
4
|
-
export type NormalActionAddLiquidity<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
-
export type AccountActionAddLiquidity<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=addLiquidity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addLiquidity.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/addLiquidity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,eAAe,CAAA;AAE7B,MAAM,MAAM,wBAAwB,CAClC,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,yBAAyB,CACnC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { CryptoCurrency, CryptoCurrencyPrice } from '../../assets';
|
|
2
|
-
import type { AccountAction, NormalAction } from './common';
|
|
3
|
-
export type NormalActionAtomicArbitrage<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined> = NormalAction<'atomic-arbitrage', Account, Price, CryptoCurrency, 'in' | 'out'>;
|
|
4
|
-
export type AccountActionAtomicArbitrage<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined> = AccountAction<'atomic-arbitrage', Source, Account, Price, CryptoCurrency, 'in'>;
|
|
5
|
-
//# sourceMappingURL=atomicArbitrage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atomicArbitrage.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/atomicArbitrage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,2BAA2B,CACrC,OAAO,GAAG,OAAO,EACjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,IACX,YAAY,CACd,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,cAAc,EACd,IAAI,GAAG,KAAK,CACb,CAAA;AAED,MAAM,MAAM,4BAA4B,CACtC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,IACX,aAAa,CACf,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,KAAK,EACL,cAAc,EACd,IAAI,CACL,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
-
import type { AccountAction, NormalAction } from './common';
|
|
3
|
-
export type Action = 'bridge-from';
|
|
4
|
-
export type NormalActionBridgeFrom<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'out'>;
|
|
5
|
-
export type AccountActionBridgeFrom<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'out'>;
|
|
6
|
-
//# sourceMappingURL=bridgeFrom.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bridgeFrom.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/bridgeFrom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,aAAa,CAAA;AAElC,MAAM,MAAM,sBAAsB,CAChC,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;AAEtD,MAAM,MAAM,uBAAuB,CACjC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
-
import type { AccountAction, NormalAction } from './common';
|
|
3
|
-
export type Action = 'bridge-to';
|
|
4
|
-
export type NormalActionBridgeTo<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in'>;
|
|
5
|
-
export type AccountActionBridgeTo<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in'>;
|
|
6
|
-
//# sourceMappingURL=bridgeTo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bridgeTo.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/bridgeTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,WAAW,CAAA;AAEhC,MAAM,MAAM,oBAAoB,CAC9B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;AAErD,MAAM,MAAM,qBAAqB,CAC/B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency, Nft } from '../../assets';
|
|
2
|
-
import type { AccountAction, NormalAction } from './common';
|
|
3
|
-
type Action = 'buy-nft';
|
|
4
|
-
export type NormalActionBuyNft<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
-
export type AccountActionBuyNft<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=buyNft.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buyNft.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/buyNft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,GAAG,EACJ,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,SAAS,CAAA;AAEvB,MAAM,MAAM,kBAAkB,CAC5B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,mBAAmB,CAC7B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|