@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
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test'
|
|
2
|
-
import { isIntegrationTest } from '../../tests'
|
|
3
|
-
import { bnb } from './bnb'
|
|
4
|
-
import {
|
|
5
|
-
coingeckoCryptoCurrencyDataSource,
|
|
6
|
-
splitFromToBy90DaysSeconds,
|
|
7
|
-
} from './coingeckoCryptoCurrencyDataSource'
|
|
8
|
-
import { ethereum } from './ethereum'
|
|
9
|
-
import { usd } from './usd'
|
|
10
|
-
|
|
11
|
-
describe.if(isIntegrationTest)('coingeckoCryptoCurrencyDataSource', () => {
|
|
12
|
-
it('should get current price', async () => {
|
|
13
|
-
const prices = await coingeckoCryptoCurrencyDataSource.getCurrentPrice({
|
|
14
|
-
targetCurrencies: [ethereum, bnb],
|
|
15
|
-
vsCurrency: usd,
|
|
16
|
-
})
|
|
17
|
-
expect(prices).toHaveLength(2)
|
|
18
|
-
expect(prices[0].crypto.id).toBe(ethereum.id)
|
|
19
|
-
expect(prices[1].crypto.id).toBe(bnb.id)
|
|
20
|
-
})
|
|
21
|
-
it('should get historical prices', async () => {
|
|
22
|
-
const prices = await coingeckoCryptoCurrencyDataSource.getHistoricalPrices({
|
|
23
|
-
targetCurrencies: [ethereum],
|
|
24
|
-
vsCurrency: usd,
|
|
25
|
-
from: new Date('2021-01-01').getTime(),
|
|
26
|
-
to: new Date('2021-04-30').getTime(),
|
|
27
|
-
})
|
|
28
|
-
expect(prices.length).toBeGreaterThan(1000)
|
|
29
|
-
})
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
describe('splitFromToBy90DaysSeconds', () => {
|
|
33
|
-
it('should split the range into 90 day intervals', () => {
|
|
34
|
-
const from = 0
|
|
35
|
-
const to = 60 * 60 * 24 * 90 * 3 // 270 days in seconds
|
|
36
|
-
const result = splitFromToBy90DaysSeconds(from, to)
|
|
37
|
-
expect(result).toEqual([
|
|
38
|
-
{ from: 0, to: 60 * 60 * 24 * 90 },
|
|
39
|
-
{ from: 60 * 60 * 24 * 90, to: 60 * 60 * 24 * 90 * 2 },
|
|
40
|
-
{ from: 60 * 60 * 24 * 90 * 2, to: 60 * 60 * 24 * 90 * 3 },
|
|
41
|
-
])
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
it('should handle ranges that are not exact multiples of 90 days', () => {
|
|
45
|
-
const from = 0
|
|
46
|
-
const to = 60 * 60 * 24 * 95 // 95 days in seconds
|
|
47
|
-
const result = splitFromToBy90DaysSeconds(from, to)
|
|
48
|
-
expect(result).toEqual([
|
|
49
|
-
{ from: 0, to: 60 * 60 * 24 * 90 },
|
|
50
|
-
{ from: 60 * 60 * 24 * 90, to: 60 * 60 * 24 * 95 },
|
|
51
|
-
])
|
|
52
|
-
})
|
|
53
|
-
})
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test'
|
|
2
|
-
import { isIntegrationTest } from '../../../tests'
|
|
3
|
-
import { getCoinMarketChartRange } from './getCoinMarketChartRange'
|
|
4
|
-
|
|
5
|
-
describe('getCoinMarketChartRange', () => {
|
|
6
|
-
it.if(isIntegrationTest)('Should return validated object', async () => {
|
|
7
|
-
const to = Math.floor(Date.now() / 1000)
|
|
8
|
-
const days90Seconds = 60 * 60 * 24 * 90
|
|
9
|
-
const from = to - days90Seconds
|
|
10
|
-
const data = await getCoinMarketChartRange({ id: 'bitcoin', from, to })
|
|
11
|
-
|
|
12
|
-
// expected length is 90 days * 24 hours
|
|
13
|
-
const expectedLength = 90 * 24
|
|
14
|
-
expect(data.prices.length).toEqual(expectedLength)
|
|
15
|
-
expect(data.market_caps.length).toEqual(expectedLength)
|
|
16
|
-
|
|
17
|
-
// expected time difference between two prices is 1 hour
|
|
18
|
-
const hourMilliseconds = 1000 * 60 * 60
|
|
19
|
-
const expectedDiffTimeMin = hourMilliseconds * 0.9
|
|
20
|
-
const expectedDiffTimeMax = hourMilliseconds * 1.1
|
|
21
|
-
expect(data.prices[1][0] - data.prices[0][0]).toBeGreaterThan(
|
|
22
|
-
expectedDiffTimeMin,
|
|
23
|
-
)
|
|
24
|
-
expect(data.prices[1][0] - data.prices[0][0]).toBeLessThan(
|
|
25
|
-
expectedDiffTimeMax,
|
|
26
|
-
)
|
|
27
|
-
})
|
|
28
|
-
})
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test'
|
|
2
|
-
import { isIntegrationTest } from '../../../tests'
|
|
3
|
-
import { getCoinsMarkets } from './getCoinsMarkets'
|
|
4
|
-
|
|
5
|
-
describe('getCoinsMarkets', () => {
|
|
6
|
-
it.if(isIntegrationTest)('Should return validated object', async () => {
|
|
7
|
-
const data = await getCoinsMarkets({ ids: ['bitcoin'] })
|
|
8
|
-
expect(data).toHaveLength(1)
|
|
9
|
-
expect(data[0].id).toEqual('bitcoin')
|
|
10
|
-
})
|
|
11
|
-
})
|
package/src/assets/index.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export { fiatCurrencyDecimals } from './constants'
|
|
2
|
-
export { createCryptoCurrency, createFiatCurrency } from './creates'
|
|
3
|
-
export {
|
|
4
|
-
astar,
|
|
5
|
-
avalanche,
|
|
6
|
-
bnb,
|
|
7
|
-
coingeckoCryptoCurrencyDataSource,
|
|
8
|
-
ethereum,
|
|
9
|
-
eur,
|
|
10
|
-
fantom,
|
|
11
|
-
jpy,
|
|
12
|
-
kava,
|
|
13
|
-
mantle,
|
|
14
|
-
maticNetwork,
|
|
15
|
-
metis,
|
|
16
|
-
moonbeam,
|
|
17
|
-
moonriver,
|
|
18
|
-
ronin,
|
|
19
|
-
usd,
|
|
20
|
-
} from './definitions'
|
|
21
|
-
export type {
|
|
22
|
-
CryptoCurrency,
|
|
23
|
-
CryptoCurrencyDataSource,
|
|
24
|
-
CryptoCurrencyPrice,
|
|
25
|
-
FiatCurrency,
|
|
26
|
-
Nft,
|
|
27
|
-
} from './types'
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { BigDecimal } from '@0xtorch/big-decimal'
|
|
2
|
-
|
|
3
|
-
export type CryptoCurrency = {
|
|
4
|
-
readonly type: 'CryptoCurrency'
|
|
5
|
-
readonly id: string
|
|
6
|
-
readonly name: string
|
|
7
|
-
readonly symbol: string
|
|
8
|
-
/** icon image's url */
|
|
9
|
-
readonly icon: string | undefined
|
|
10
|
-
readonly market: CryptoCurrencyMarket
|
|
11
|
-
readonly updatedAt: number
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type CryptoCurrencyMarket = {
|
|
15
|
-
readonly coingeckoId: string | undefined
|
|
16
|
-
readonly marketCapUsd: BigDecimal | undefined
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BigDecimal } from '@0xtorch/big-decimal'
|
|
2
|
-
import type { CryptoCurrency } from '.'
|
|
3
|
-
|
|
4
|
-
export type CryptoCurrencyPrice<
|
|
5
|
-
TCryptoCurrency extends CryptoCurrency | undefined =
|
|
6
|
-
| CryptoCurrency
|
|
7
|
-
| undefined,
|
|
8
|
-
> = {
|
|
9
|
-
readonly cryptoCurrencyId: string
|
|
10
|
-
readonly crypto: TCryptoCurrency
|
|
11
|
-
readonly fiatCurrencyId: string
|
|
12
|
-
readonly price: BigDecimal
|
|
13
|
-
readonly timestamp: number
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { CryptoCurrency, FiatCurrency } from '.'
|
|
2
|
-
import type { Config } from '../../types'
|
|
3
|
-
import type { CryptoCurrencyPrice } from './cryptoCurrencyPrice'
|
|
4
|
-
|
|
5
|
-
export type GetCurrentPriceParameters = {
|
|
6
|
-
readonly targetCurrencies: readonly CryptoCurrency[]
|
|
7
|
-
readonly vsCurrency: FiatCurrency
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type GetHistoricalPricesParameters = {
|
|
11
|
-
readonly targetCurrencies: readonly CryptoCurrency[]
|
|
12
|
-
readonly vsCurrency: FiatCurrency
|
|
13
|
-
readonly from: number
|
|
14
|
-
readonly to: number
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type CryptoCurrencyDataSource = {
|
|
18
|
-
readonly getCurrentPrice: (
|
|
19
|
-
parameters: GetCurrentPriceParameters,
|
|
20
|
-
config?: Config,
|
|
21
|
-
) => Promise<readonly CryptoCurrencyPrice[]>
|
|
22
|
-
readonly getHistoricalPrices: (
|
|
23
|
-
parameters: GetHistoricalPricesParameters,
|
|
24
|
-
config?: Config,
|
|
25
|
-
) => Promise<readonly CryptoCurrencyPrice[]>
|
|
26
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type FiatCurrency<Id extends FiatCurrencyId = FiatCurrencyId> = {
|
|
2
|
-
readonly type: 'FiatCurrency'
|
|
3
|
-
// TODO implement
|
|
4
|
-
readonly id: Id
|
|
5
|
-
readonly symbol: Uppercase<Id>
|
|
6
|
-
readonly name: string
|
|
7
|
-
/** icon image's url */
|
|
8
|
-
readonly icon: string | undefined
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const fiatCurrencyIds = [
|
|
12
|
-
'cny',
|
|
13
|
-
'eur',
|
|
14
|
-
'idr',
|
|
15
|
-
'jpy',
|
|
16
|
-
'krw',
|
|
17
|
-
'rub',
|
|
18
|
-
'twd',
|
|
19
|
-
'usd',
|
|
20
|
-
] as const
|
|
21
|
-
export type FiatCurrencyId = (typeof fiatCurrencyIds)[number]
|
package/src/assets/types/nft.ts
DELETED
package/src/index.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./index.mts')
|
package/src/index.mts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export type { Account } from './accounts'
|
|
2
|
-
export type {
|
|
3
|
-
AccountAction,
|
|
4
|
-
AccountActionAddLiquidity,
|
|
5
|
-
AccountActionAtomicArbitrage,
|
|
6
|
-
AccountActionBridgeFrom,
|
|
7
|
-
AccountActionBridgeTo,
|
|
8
|
-
AccountActionBuyNft,
|
|
9
|
-
AccountActionDeposit,
|
|
10
|
-
AccountActionDepositWithBond,
|
|
11
|
-
AccountActionFreeMintNft,
|
|
12
|
-
AccountActionIncome,
|
|
13
|
-
AccountActionMove,
|
|
14
|
-
AccountActionNftRoyalty,
|
|
15
|
-
AccountActionRemoveLiquidity,
|
|
16
|
-
AccountActionSellNft,
|
|
17
|
-
AccountActionSpam,
|
|
18
|
-
AccountActionSwapIncome,
|
|
19
|
-
AccountActionSwapNft,
|
|
20
|
-
AccountActionSwapTransfer,
|
|
21
|
-
AccountActionTrade,
|
|
22
|
-
AccountActionTransactionFee,
|
|
23
|
-
AccountActionTransfer,
|
|
24
|
-
AccountActionType,
|
|
25
|
-
AccountActionWithdraw,
|
|
26
|
-
AccountActionWithdrawWithBond,
|
|
27
|
-
ActionType,
|
|
28
|
-
Evidence,
|
|
29
|
-
NormalAction,
|
|
30
|
-
NormalActionAddLiquidity,
|
|
31
|
-
NormalActionAtomicArbitrage,
|
|
32
|
-
NormalActionBridgeFrom,
|
|
33
|
-
NormalActionBridgeTo,
|
|
34
|
-
NormalActionBuyNft,
|
|
35
|
-
NormalActionDeposit,
|
|
36
|
-
NormalActionDepositWithBond,
|
|
37
|
-
NormalActionFreeMintNft,
|
|
38
|
-
NormalActionRemoveLiquidity,
|
|
39
|
-
NormalActionSpam,
|
|
40
|
-
NormalActionTrade,
|
|
41
|
-
NormalActionTransactionFee,
|
|
42
|
-
NormalActionTransfer,
|
|
43
|
-
NormalActionWithdraw,
|
|
44
|
-
NormalActionWithdrawWithBond,
|
|
45
|
-
} from './actions'
|
|
46
|
-
export { appCategories } from './apps'
|
|
47
|
-
export type { App, AppCategory } from './apps'
|
|
48
|
-
export {
|
|
49
|
-
astar,
|
|
50
|
-
avalanche,
|
|
51
|
-
bnb,
|
|
52
|
-
coingeckoCryptoCurrencyDataSource,
|
|
53
|
-
createCryptoCurrency,
|
|
54
|
-
ethereum,
|
|
55
|
-
eur,
|
|
56
|
-
fantom,
|
|
57
|
-
fiatCurrencyDecimals,
|
|
58
|
-
jpy,
|
|
59
|
-
kava,
|
|
60
|
-
mantle,
|
|
61
|
-
maticNetwork,
|
|
62
|
-
metis,
|
|
63
|
-
moonbeam,
|
|
64
|
-
moonriver,
|
|
65
|
-
ronin,
|
|
66
|
-
usd,
|
|
67
|
-
} from './assets'
|
|
68
|
-
export type {
|
|
69
|
-
CryptoCurrency,
|
|
70
|
-
CryptoCurrencyDataSource,
|
|
71
|
-
CryptoCurrencyPrice,
|
|
72
|
-
FiatCurrency,
|
|
73
|
-
Nft,
|
|
74
|
-
} from './assets'
|
|
75
|
-
export { createPortfolio } from './portfolios'
|
|
76
|
-
export type { Portfolio } from './portfolios'
|
|
77
|
-
export type { Config, Logger } from './types'
|
|
78
|
-
export { rest, stringify } from './utils'
|
|
79
|
-
export type { Schema } from './utils'
|
package/src/utils/index.ts
DELETED
package/src/utils/rest.test.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test'
|
|
2
|
-
import { z } from 'zod'
|
|
3
|
-
import { isIntegrationTest } from '../tests'
|
|
4
|
-
import { rest } from './rest'
|
|
5
|
-
|
|
6
|
-
describe('rest', () => {
|
|
7
|
-
it.if(isIntegrationTest)('Get HTML response', async () => {
|
|
8
|
-
const html = await rest('https://example.com', { schema: z.string() })
|
|
9
|
-
expect(html).toInclude('<html>')
|
|
10
|
-
})
|
|
11
|
-
it.if(isIntegrationTest)('Should return validated object', async () => {
|
|
12
|
-
const json = await rest('https://api.coingecko.com/api/v3/ping', {
|
|
13
|
-
schema: z.object({
|
|
14
|
-
gecko_says: z.string(),
|
|
15
|
-
}),
|
|
16
|
-
})
|
|
17
|
-
expect(json.gecko_says.length).toBeGreaterThan(0)
|
|
18
|
-
})
|
|
19
|
-
})
|
package/src/utils/rest.ts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
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: Timer | 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
|
-
})
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test'
|
|
2
|
-
|
|
3
|
-
import { stringify } from './stringify'
|
|
4
|
-
|
|
5
|
-
describe('stringify', () => {
|
|
6
|
-
it('Should stringify a string', () => {
|
|
7
|
-
expect(stringify('string')).toEqual('"string"')
|
|
8
|
-
})
|
|
9
|
-
it('Should stringify a number', () => {
|
|
10
|
-
expect(stringify(123)).toEqual('123')
|
|
11
|
-
})
|
|
12
|
-
it('Should stringify a boolean', () => {
|
|
13
|
-
expect(stringify(true)).toEqual('true')
|
|
14
|
-
})
|
|
15
|
-
it('Should stringify a bigint', () => {
|
|
16
|
-
expect(stringify(BigInt(123))).toEqual('"123"')
|
|
17
|
-
})
|
|
18
|
-
it('Should stringify an array', () => {
|
|
19
|
-
expect(stringify([1, 2, 3])).toEqual('[1,2,3]')
|
|
20
|
-
})
|
|
21
|
-
it('Should stringify an object', () => {
|
|
22
|
-
expect(stringify({ a: 1, b: 2, c: 3 })).toEqual('{"a":1,"b":2,"c":3}')
|
|
23
|
-
})
|
|
24
|
-
})
|
package/tsconfig.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// Enable latest features
|
|
4
|
-
"lib": ["ESNext"],
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"moduleDetection": "force",
|
|
8
|
-
"allowJs": true,
|
|
9
|
-
|
|
10
|
-
// Bundler mode
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
|
|
16
|
-
// Best practices
|
|
17
|
-
"strict": true,
|
|
18
|
-
"skipLibCheck": true,
|
|
19
|
-
"noFallthroughCasesInSwitch": true,
|
|
20
|
-
|
|
21
|
-
// Some stricter flags (disabled by default)
|
|
22
|
-
"noUnusedLocals": false,
|
|
23
|
-
"noUnusedParameters": false,
|
|
24
|
-
"noPropertyAccessFromIndexSignature": false,
|
|
25
|
-
|
|
26
|
-
"types": ["bun-types"]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|