@0xtorch/core 0.0.2 → 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/_cjs/actions/index.js +88 -0
- package/_cjs/actions/index.js.map +1 -1
- 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/approve.js +3 -0
- package/_cjs/actions/types/approve.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/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/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/ignore.js +3 -0
- package/_cjs/actions/types/ignore.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/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/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/sendToCex.js +3 -0
- package/_cjs/actions/types/sendToCex.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/wrap.js +3 -0
- package/_cjs/actions/types/wrap.js.map +1 -0
- package/_cjs/apps/index.js +5 -3
- package/_cjs/apps/index.js.map +1 -1
- package/_cjs/apps/schemas.js +32 -0
- package/_cjs/apps/schemas.js.map +1 -0
- package/_cjs/apps/types.js +0 -11
- package/_cjs/apps/types.js.map +1 -1
- package/_cjs/assets/creates/createFiatCurrency.js.map +1 -1
- package/_cjs/assets/index.js +7 -1
- package/_cjs/assets/index.js.map +1 -1
- 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/fiatCurrency.js +0 -10
- package/_cjs/assets/types/fiatCurrency.js.map +1 -1
- package/_cjs/index.js +89 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/index.js +4 -1
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/schema.js +11 -0
- package/_cjs/utils/schema.js.map +1 -0
- package/_esm/actions/index.js +1 -1
- package/_esm/actions/index.js.map +1 -1
- 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/approve.js +2 -0
- package/_esm/actions/types/approve.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/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/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/ignore.js +2 -0
- package/_esm/actions/types/ignore.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/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/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/sendToCex.js +2 -0
- package/_esm/actions/types/sendToCex.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/wrap.js +2 -0
- package/_esm/actions/types/wrap.js.map +1 -0
- package/_esm/apps/index.js +1 -1
- package/_esm/apps/index.js.map +1 -1
- package/_esm/apps/schemas.js +29 -0
- package/_esm/apps/schemas.js.map +1 -0
- package/_esm/apps/types.js +1 -10
- package/_esm/apps/types.js.map +1 -1
- package/_esm/assets/creates/createFiatCurrency.js.map +1 -1
- package/_esm/assets/index.js +1 -0
- package/_esm/assets/index.js.map +1 -1
- 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/fiatCurrency.js +0 -10
- package/_esm/assets/types/fiatCurrency.js.map +1 -1
- package/_esm/index.js +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/utils/index.js +1 -0
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/schema.js +7 -0
- package/_esm/utils/schema.js.map +1 -0
- package/_types/actions/index.d.ts +2 -1
- package/_types/actions/index.d.ts.map +1 -1
- 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 +4 -6
- package/_types/actions/types/addLiquidity.d.ts.map +1 -1
- 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 +4 -4
- package/_types/actions/types/atomicArbitrage.d.ts.map +1 -1
- 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 +4 -5
- package/_types/actions/types/bridgeFrom.d.ts.map +1 -1
- package/_types/actions/types/bridgeTo.d.ts +4 -5
- package/_types/actions/types/bridgeTo.d.ts.map +1 -1
- package/_types/actions/types/buyNft.d.ts +4 -6
- package/_types/actions/types/buyNft.d.ts.map +1 -1
- 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 +4 -5
- package/_types/actions/types/deposit.d.ts.map +1 -1
- package/_types/actions/types/depositWithBond.d.ts +4 -6
- package/_types/actions/types/depositWithBond.d.ts.map +1 -1
- 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 +4 -6
- package/_types/actions/types/freeMintNft.d.ts.map +1 -1
- 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 +3 -4
- package/_types/actions/types/income.d.ts.map +1 -1
- package/_types/actions/types/index.d.ts +22 -1
- package/_types/actions/types/index.d.ts.map +1 -1
- 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 +3 -4
- package/_types/actions/types/move.d.ts.map +1 -1
- package/_types/actions/types/nftRoyalty.d.ts +3 -6
- package/_types/actions/types/nftRoyalty.d.ts.map +1 -1
- 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 +4 -6
- package/_types/actions/types/removeLiquidity.d.ts.map +1 -1
- 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 +3 -5
- package/_types/actions/types/sellNft.d.ts.map +1 -1
- 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 +4 -5
- package/_types/actions/types/spam.d.ts.map +1 -1
- package/_types/actions/types/swapIncome.d.ts +3 -3
- package/_types/actions/types/swapIncome.d.ts.map +1 -1
- package/_types/actions/types/swapNft.d.ts +4 -5
- package/_types/actions/types/swapNft.d.ts.map +1 -1
- package/_types/actions/types/swapTransfer.d.ts +3 -3
- package/_types/actions/types/swapTransfer.d.ts.map +1 -1
- package/_types/actions/types/trade.d.ts +4 -6
- package/_types/actions/types/trade.d.ts.map +1 -1
- package/_types/actions/types/transactionFee.d.ts +4 -6
- package/_types/actions/types/transactionFee.d.ts.map +1 -1
- package/_types/actions/types/transfer.d.ts +4 -7
- package/_types/actions/types/transfer.d.ts.map +1 -1
- 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 +4 -6
- package/_types/actions/types/withdraw.d.ts.map +1 -1
- package/_types/actions/types/withdrawWithBond.d.ts +4 -6
- package/_types/actions/types/withdrawWithBond.d.ts.map +1 -1
- 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 +1 -1
- package/_types/apps/index.d.ts.map +1 -1
- package/_types/apps/schemas.d.ts +40 -0
- package/_types/apps/schemas.d.ts.map +1 -0
- package/_types/apps/types.d.ts +4 -10
- package/_types/apps/types.d.ts.map +1 -1
- package/_types/assets/creates/createCryptoCurrency.d.ts +15 -2
- package/_types/assets/creates/createCryptoCurrency.d.ts.map +1 -1
- package/_types/assets/creates/createFiatCurrency.d.ts +7 -2
- package/_types/assets/creates/createFiatCurrency.d.ts.map +1 -1
- package/_types/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts +24 -3
- package/_types/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts.map +1 -1
- package/_types/assets/index.d.ts +1 -0
- package/_types/assets/index.d.ts.map +1 -1
- 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 +3 -16
- package/_types/assets/types/cryptoCurrency.d.ts.map +1 -1
- package/_types/assets/types/cryptoCurrencyPrice.d.ts +3 -9
- package/_types/assets/types/cryptoCurrencyPrice.d.ts.map +1 -1
- package/_types/assets/types/dataSource.d.ts +2 -1
- package/_types/assets/types/dataSource.d.ts.map +1 -1
- package/_types/assets/types/fiatCurrency.d.ts +4 -11
- package/_types/assets/types/fiatCurrency.d.ts.map +1 -1
- package/_types/assets/types/nft.d.ts +3 -4
- package/_types/assets/types/nft.d.ts.map +1 -1
- package/_types/index.d.ts +2 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/utils/index.d.ts +1 -0
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/schema.d.ts +18 -0
- package/_types/utils/schema.d.ts.map +1 -0
- package/actions/index.ts +123 -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 +11 -21
- package/actions/types/approve.ts +9 -0
- package/actions/types/atomicArbitrage.ts +9 -26
- package/actions/types/borrow.ts +9 -0
- package/actions/types/borrowWithDebt.ts +13 -0
- package/actions/types/bridgeFrom.ts +11 -21
- package/actions/types/bridgeTo.ts +7 -21
- package/actions/types/buyNft.ts +6 -31
- 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 +7 -21
- package/actions/types/depositWithBond.ts +11 -21
- package/actions/types/failTx.ts +9 -0
- package/actions/types/fee.ts +6 -0
- package/actions/types/freeMintNft.ts +10 -15
- package/actions/types/ignore.ts +4 -0
- package/actions/types/income.ts +3 -20
- package/actions/types/index.ts +39 -6
- package/actions/types/mintNft.ts +9 -0
- package/actions/types/move.ts +3 -20
- package/actions/types/nftRoyalty.ts +5 -18
- package/actions/types/receiveFromCex.ts +6 -0
- package/actions/types/reduce.ts +4 -0
- package/actions/types/removeLiquidity.ts +11 -21
- 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 +3 -21
- package/actions/types/sendToCex.ts +6 -0
- package/actions/types/spam.ts +7 -21
- package/actions/types/swapIncome.ts +5 -11
- package/actions/types/swapNft.ts +7 -10
- package/actions/types/swapTransfer.ts +5 -11
- package/actions/types/trade.ts +6 -31
- package/actions/types/transactionFee.ts +11 -17
- package/actions/types/transfer.ts +6 -33
- 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 +7 -21
- package/actions/types/withdrawWithBond.ts +11 -21
- package/actions/types/wrap.ts +9 -0
- package/apps/index.ts +1 -1
- package/apps/schemas.ts +30 -0
- package/apps/types.ts +5 -19
- package/assets/creates/createFiatCurrency.ts +2 -5
- package/assets/index.ts +7 -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 +3 -16
- package/assets/types/cryptoCurrencyPrice.ts +3 -13
- package/assets/types/dataSource.ts +2 -1
- package/assets/types/fiatCurrency.ts +5 -20
- package/assets/types/nft.ts +4 -5
- package/index.ts +123 -0
- package/package.json +1 -1
- package/utils/index.ts +1 -0
- package/utils/schema.ts +18 -0
- package/_cjs/actions/schemas/constants.js +0 -18
- package/_cjs/actions/schemas/constants.js.map +0 -1
- package/_cjs/actions/schemas/swap.js +0 -8
- package/_cjs/actions/schemas/swap.js.map +0 -1
- package/_cjs/actions/types/common.js +0 -52
- package/_cjs/actions/types/common.js.map +0 -1
- package/_esm/actions/schemas/constants.js +0 -15
- package/_esm/actions/schemas/constants.js.map +0 -1
- package/_esm/actions/schemas/swap.js +0 -6
- package/_esm/actions/schemas/swap.js.map +0 -1
- package/_esm/actions/types/common.js +0 -52
- package/_esm/actions/types/common.js.map +0 -1
- package/_types/actions/schemas/constants.d.ts +0 -19
- package/_types/actions/schemas/constants.d.ts.map +0 -1
- package/_types/actions/schemas/swap.d.ts +0 -9
- package/_types/actions/schemas/swap.d.ts.map +0 -1
- package/_types/actions/types/common.d.ts +0 -50
- package/_types/actions/types/common.d.ts.map +0 -1
- package/actions/schemas/constants.ts +0 -16
- package/actions/schemas/swap.ts +0 -7
- package/actions/types/common.ts +0 -142
package/apps/types.ts
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly categories: AppCategory[]
|
|
4
|
-
readonly name: string
|
|
5
|
-
readonly description: string | undefined
|
|
6
|
-
readonly website: string | undefined
|
|
7
|
-
readonly icon: string | undefined
|
|
8
|
-
}
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { appCategoryUnionSchema, appSchema } from './schemas'
|
|
9
3
|
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
'cross-chain',
|
|
14
|
-
'dex',
|
|
15
|
-
'gaming',
|
|
16
|
-
'lending',
|
|
17
|
-
'nft-marketplace',
|
|
18
|
-
'other',
|
|
19
|
-
] as const
|
|
20
|
-
export type AppCategory = (typeof appCategories)[number]
|
|
4
|
+
export type App = z.infer<typeof appSchema>
|
|
5
|
+
|
|
6
|
+
export type AppCategory = z.infer<typeof appCategoryUnionSchema>
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type { FiatCurrency
|
|
1
|
+
import type { FiatCurrency } from '../types'
|
|
2
2
|
|
|
3
|
-
export const createFiatCurrency = <
|
|
4
|
-
TId extends FiatCurrencyId,
|
|
5
|
-
const currency extends FiatCurrency<TId>,
|
|
6
|
-
>(
|
|
3
|
+
export const createFiatCurrency = <const currency extends FiatCurrency>(
|
|
7
4
|
currency: currency,
|
|
8
5
|
): currency => ({
|
|
9
6
|
...currency,
|
package/assets/index.ts
CHANGED
|
@@ -18,6 +18,13 @@ export {
|
|
|
18
18
|
ronin,
|
|
19
19
|
usd,
|
|
20
20
|
} from './definitions'
|
|
21
|
+
export {
|
|
22
|
+
assetSchema,
|
|
23
|
+
cryptoCurrencyPriceSchema,
|
|
24
|
+
cryptoCurrencySchema,
|
|
25
|
+
fiatCurrencySchema,
|
|
26
|
+
nftSchema,
|
|
27
|
+
} from './schemas'
|
|
21
28
|
export type {
|
|
22
29
|
CryptoCurrency,
|
|
23
30
|
CryptoCurrencyDataSource,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { cryptoCurrencySchema } from './cryptoCurrency'
|
|
3
|
+
import { fiatCurrencySchema } from './fiatCurrency'
|
|
4
|
+
import { nftSchema } from './nft'
|
|
5
|
+
|
|
6
|
+
export const assetSchema = z.union([
|
|
7
|
+
cryptoCurrencySchema,
|
|
8
|
+
fiatCurrencySchema,
|
|
9
|
+
nftSchema,
|
|
10
|
+
])
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { bigDecimalSchema } from '../../utils'
|
|
3
|
+
|
|
4
|
+
const cryptoCurrencyMarketSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
coingeckoId: z.string().optional(),
|
|
7
|
+
marketCapUsd: bigDecimalSchema.optional(),
|
|
8
|
+
})
|
|
9
|
+
.transform((v) => ({
|
|
10
|
+
...v,
|
|
11
|
+
coingeckoId: v.coingeckoId,
|
|
12
|
+
marketCapUsd: v.marketCapUsd,
|
|
13
|
+
}))
|
|
14
|
+
|
|
15
|
+
export const cryptoCurrencySchema = z
|
|
16
|
+
.object({
|
|
17
|
+
type: z.literal('CryptoCurrency'),
|
|
18
|
+
id: z.string(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
symbol: z.string(),
|
|
21
|
+
icon: z.string().optional(),
|
|
22
|
+
market: cryptoCurrencyMarketSchema,
|
|
23
|
+
updatedAt: z.number().int(),
|
|
24
|
+
})
|
|
25
|
+
.transform((v) => ({
|
|
26
|
+
...v,
|
|
27
|
+
icon: v.icon,
|
|
28
|
+
}))
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { createUnionSchema } from '../../utils'
|
|
3
|
+
|
|
4
|
+
const fiatCurrencyIds = [
|
|
5
|
+
'cny',
|
|
6
|
+
'eur',
|
|
7
|
+
'idr',
|
|
8
|
+
'jpy',
|
|
9
|
+
'krw',
|
|
10
|
+
'rub',
|
|
11
|
+
'twd',
|
|
12
|
+
'usd',
|
|
13
|
+
] as const
|
|
14
|
+
export const fiatCurrencyIdUnionSchema = createUnionSchema(fiatCurrencyIds)
|
|
15
|
+
|
|
16
|
+
export const fiatCurrencySchema = z
|
|
17
|
+
.object({
|
|
18
|
+
type: z.literal('FiatCurrency'),
|
|
19
|
+
id: fiatCurrencyIdUnionSchema,
|
|
20
|
+
name: z.string(),
|
|
21
|
+
symbol: z.string(),
|
|
22
|
+
icon: z.string().optional(),
|
|
23
|
+
})
|
|
24
|
+
.transform((v) => ({
|
|
25
|
+
...v,
|
|
26
|
+
icon: v.icon,
|
|
27
|
+
}))
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { assetSchema } from './asset'
|
|
2
|
+
export { cryptoCurrencySchema } from './cryptoCurrency'
|
|
3
|
+
export { cryptoCurrencyPriceSchema } from './cryptoCurrencyPrice'
|
|
4
|
+
export { fiatCurrencyIdUnionSchema, fiatCurrencySchema } from './fiatCurrency'
|
|
5
|
+
export { nftSchema } from './nft'
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { cryptoCurrencySchema } from '../schemas'
|
|
2
3
|
|
|
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
|
-
}
|
|
4
|
+
export type CryptoCurrency = z.infer<typeof cryptoCurrencySchema>
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { cryptoCurrencyPriceSchema } from '../schemas'
|
|
3
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
|
-
}
|
|
4
|
+
export type CryptoCurrencyPrice = z.infer<typeof cryptoCurrencyPriceSchema>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { CryptoCurrency, FiatCurrency } from '.'
|
|
2
1
|
import type { Config } from '../../types'
|
|
2
|
+
import type { CryptoCurrency } from './cryptoCurrency'
|
|
3
3
|
import type { CryptoCurrencyPrice } from './cryptoCurrencyPrice'
|
|
4
|
+
import type { FiatCurrency } from './fiatCurrency'
|
|
4
5
|
|
|
5
6
|
export type GetCurrentPriceParameters = {
|
|
6
7
|
readonly targetCurrencies: readonly CryptoCurrency[]
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
}
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { fiatCurrencyIdUnionSchema, fiatCurrencySchema } from '../schemas'
|
|
10
3
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'idr',
|
|
15
|
-
'jpy',
|
|
16
|
-
'krw',
|
|
17
|
-
'rub',
|
|
18
|
-
'twd',
|
|
19
|
-
'usd',
|
|
20
|
-
] as const
|
|
21
|
-
export type FiatCurrencyId = (typeof fiatCurrencyIds)[number]
|
|
4
|
+
export type FiatCurrency = z.infer<typeof fiatCurrencySchema>
|
|
5
|
+
|
|
6
|
+
export type FiatCurrencyId = z.infer<typeof fiatCurrencyIdUnionSchema>
|
package/assets/types/nft.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { nftSchema } from '../schemas'
|
|
3
|
+
|
|
4
|
+
export type Nft = z.infer<typeof nftSchema>
|
package/index.ts
CHANGED
|
@@ -1,19 +1,122 @@
|
|
|
1
1
|
export type { Account } from './accounts'
|
|
2
|
+
export {
|
|
3
|
+
accountActionAddLiquiditySchema,
|
|
4
|
+
accountActionApproveSchema,
|
|
5
|
+
accountActionAtomicArbitrageSchema,
|
|
6
|
+
accountActionBorrowSchema,
|
|
7
|
+
accountActionBorrowWithDebtSchema,
|
|
8
|
+
accountActionBridgeFromSchema,
|
|
9
|
+
accountActionBridgeToSchema,
|
|
10
|
+
accountActionBuyCryptoSchema,
|
|
11
|
+
accountActionBuyNftSchema,
|
|
12
|
+
accountActionCrossReplaceSchema,
|
|
13
|
+
accountActionCrossTradeSchema,
|
|
14
|
+
accountActionDepositSchema,
|
|
15
|
+
accountActionDepositWithBondSchema,
|
|
16
|
+
accountActionFailTxSchema,
|
|
17
|
+
accountActionFeeSchema,
|
|
18
|
+
accountActionFreeMintNftSchema,
|
|
19
|
+
accountActionIgnoreSchema,
|
|
20
|
+
accountActionIncomeSchema,
|
|
21
|
+
accountActionMintNftSchema,
|
|
22
|
+
accountActionMoveSchema,
|
|
23
|
+
accountActionNftRoyaltySchema,
|
|
24
|
+
accountActionReceiveFromCexSchema,
|
|
25
|
+
accountActionReduceSchema,
|
|
26
|
+
accountActionRemoveLiquiditySchema,
|
|
27
|
+
accountActionRepaymentSchema,
|
|
28
|
+
accountActionRepaymentWithDebtSchema,
|
|
29
|
+
accountActionReplaceSchema,
|
|
30
|
+
accountActionRevokeSchema,
|
|
31
|
+
accountActionSchema,
|
|
32
|
+
accountActionSellCryptoSchema,
|
|
33
|
+
accountActionSellNftSchema,
|
|
34
|
+
accountActionSendToCexSchema,
|
|
35
|
+
accountActionSpamSchema,
|
|
36
|
+
accountActionStakeSchema,
|
|
37
|
+
accountActionSwapIncomeSchema,
|
|
38
|
+
accountActionSwapNftSchema,
|
|
39
|
+
accountActionSwapTransferSchema,
|
|
40
|
+
accountActionTradeSchema,
|
|
41
|
+
accountActionTransactionFeeSchema,
|
|
42
|
+
accountActionTransferSchema,
|
|
43
|
+
accountActionUnstakeSchema,
|
|
44
|
+
accountActionUnwrapSchema,
|
|
45
|
+
accountActionValuedownSchema,
|
|
46
|
+
accountActionValueupSchema,
|
|
47
|
+
accountActionWithdrawSchema,
|
|
48
|
+
accountActionWithdrawWithBondSchema,
|
|
49
|
+
accountActionWrapSchema,
|
|
50
|
+
crossActionBundleSchema,
|
|
51
|
+
normalActionAddLiquiditySchema,
|
|
52
|
+
normalActionApproveSchema,
|
|
53
|
+
normalActionAtomicArbitrageSchema,
|
|
54
|
+
normalActionBorrowSchema,
|
|
55
|
+
normalActionBorrowWithDebtSchema,
|
|
56
|
+
normalActionBridgeFromSchema,
|
|
57
|
+
normalActionBridgeToSchema,
|
|
58
|
+
normalActionBuyCryptoSchema,
|
|
59
|
+
normalActionBuyNftSchema,
|
|
60
|
+
normalActionCrossReplaceSchema,
|
|
61
|
+
normalActionCrossTradeSchema,
|
|
62
|
+
normalActionDepositSchema,
|
|
63
|
+
normalActionDepositWithBondSchema,
|
|
64
|
+
normalActionFailTxSchema,
|
|
65
|
+
normalActionFeeSchema,
|
|
66
|
+
normalActionFreeMintNftSchema,
|
|
67
|
+
normalActionMintNftSchema,
|
|
68
|
+
normalActionRemoveLiquiditySchema,
|
|
69
|
+
normalActionRepaymentSchema,
|
|
70
|
+
normalActionRepaymentWithDebtSchema,
|
|
71
|
+
normalActionReplaceSchema,
|
|
72
|
+
normalActionRevokeSchema,
|
|
73
|
+
normalActionSchema,
|
|
74
|
+
normalActionSellCryptoSchema,
|
|
75
|
+
normalActionSpamSchema,
|
|
76
|
+
normalActionStakeSchema,
|
|
77
|
+
normalActionSwapNftSchema,
|
|
78
|
+
normalActionTradeSchema,
|
|
79
|
+
normalActionTransactionFeeSchema,
|
|
80
|
+
normalActionTransferSchema,
|
|
81
|
+
normalActionUnstakeSchema,
|
|
82
|
+
normalActionUnwrapSchema,
|
|
83
|
+
normalActionValuedownSchema,
|
|
84
|
+
normalActionValueupSchema,
|
|
85
|
+
normalActionWithdrawSchema,
|
|
86
|
+
normalActionWithdrawWithBondSchema,
|
|
87
|
+
normalActionWrapSchema,
|
|
88
|
+
} from './actions'
|
|
2
89
|
export type {
|
|
3
90
|
AccountAction,
|
|
4
91
|
AccountActionAddLiquidity,
|
|
92
|
+
AccountActionApprove,
|
|
5
93
|
AccountActionAtomicArbitrage,
|
|
94
|
+
AccountActionBorrow,
|
|
95
|
+
AccountActionBorrowWithDebt,
|
|
6
96
|
AccountActionBridgeFrom,
|
|
7
97
|
AccountActionBridgeTo,
|
|
8
98
|
AccountActionBuyNft,
|
|
99
|
+
AccountActionCrossReplace,
|
|
100
|
+
AccountActionCrossTrade,
|
|
9
101
|
AccountActionDeposit,
|
|
10
102
|
AccountActionDepositWithBond,
|
|
103
|
+
AccountActionFailTx,
|
|
104
|
+
AccountActionFee,
|
|
11
105
|
AccountActionFreeMintNft,
|
|
106
|
+
AccountActionIgnore,
|
|
12
107
|
AccountActionIncome,
|
|
108
|
+
AccountActionMintNft,
|
|
13
109
|
AccountActionMove,
|
|
14
110
|
AccountActionNftRoyalty,
|
|
111
|
+
AccountActionReceiveFromCex,
|
|
112
|
+
AccountActionReduce,
|
|
15
113
|
AccountActionRemoveLiquidity,
|
|
114
|
+
AccountActionRepayment,
|
|
115
|
+
AccountActionRepaymentWithDebt,
|
|
116
|
+
AccountActionReplace,
|
|
117
|
+
AccountActionRevoke,
|
|
16
118
|
AccountActionSellNft,
|
|
119
|
+
AccountActionSendToCex,
|
|
17
120
|
AccountActionSpam,
|
|
18
121
|
AccountActionSwapIncome,
|
|
19
122
|
AccountActionSwapNft,
|
|
@@ -22,26 +125,46 @@ export type {
|
|
|
22
125
|
AccountActionTransactionFee,
|
|
23
126
|
AccountActionTransfer,
|
|
24
127
|
AccountActionType,
|
|
128
|
+
AccountActionUnwrap,
|
|
129
|
+
AccountActionValuedown,
|
|
130
|
+
AccountActionValueup,
|
|
25
131
|
AccountActionWithdraw,
|
|
26
132
|
AccountActionWithdrawWithBond,
|
|
133
|
+
AccountActionWrap,
|
|
27
134
|
ActionType,
|
|
135
|
+
CrossActionBundle,
|
|
28
136
|
Evidence,
|
|
29
137
|
NormalAction,
|
|
30
138
|
NormalActionAddLiquidity,
|
|
139
|
+
NormalActionApprove,
|
|
31
140
|
NormalActionAtomicArbitrage,
|
|
141
|
+
NormalActionBorrow,
|
|
142
|
+
NormalActionBorrowWithDebt,
|
|
32
143
|
NormalActionBridgeFrom,
|
|
33
144
|
NormalActionBridgeTo,
|
|
34
145
|
NormalActionBuyNft,
|
|
146
|
+
NormalActionCrossReplace,
|
|
147
|
+
NormalActionCrossTrade,
|
|
35
148
|
NormalActionDeposit,
|
|
36
149
|
NormalActionDepositWithBond,
|
|
150
|
+
NormalActionFailTx,
|
|
151
|
+
NormalActionFee,
|
|
37
152
|
NormalActionFreeMintNft,
|
|
153
|
+
NormalActionMintNft,
|
|
38
154
|
NormalActionRemoveLiquidity,
|
|
155
|
+
NormalActionRepayment,
|
|
156
|
+
NormalActionRepaymentWithDebt,
|
|
157
|
+
NormalActionReplace,
|
|
39
158
|
NormalActionSpam,
|
|
40
159
|
NormalActionTrade,
|
|
41
160
|
NormalActionTransactionFee,
|
|
42
161
|
NormalActionTransfer,
|
|
162
|
+
NormalActionUnwrap,
|
|
163
|
+
NormalActionValuedown,
|
|
164
|
+
NormalActionValueup,
|
|
43
165
|
NormalActionWithdraw,
|
|
44
166
|
NormalActionWithdrawWithBond,
|
|
167
|
+
NormalActionWrap,
|
|
45
168
|
} from './actions'
|
|
46
169
|
export { appCategories } from './apps'
|
|
47
170
|
export type { App, AppCategory } from './apps'
|
package/package.json
CHANGED
package/utils/index.ts
CHANGED
package/utils/schema.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Primitive, ZodLiteral } from 'zod'
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
type MappedZodLiterals<T extends readonly Primitive[]> = {
|
|
5
|
+
-readonly [K in keyof T]: ZodLiteral<T[K]>
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const createUnionSchema = <
|
|
9
|
+
T extends readonly [Primitive, Primitive, ...Primitive[]],
|
|
10
|
+
>(
|
|
11
|
+
literals: T,
|
|
12
|
+
): z.ZodUnion<MappedZodLiterals<T>> =>
|
|
13
|
+
z.union(literals.map((value) => z.literal(value)) as MappedZodLiterals<T>)
|
|
14
|
+
|
|
15
|
+
export const bigDecimalSchema = z.object({
|
|
16
|
+
value: z.bigint(),
|
|
17
|
+
decimals: z.number().int(),
|
|
18
|
+
})
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transferSchema = exports.actionConstantsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.actionConstantsSchema = zod_1.z.object({
|
|
6
|
-
type: zod_1.z.string(),
|
|
7
|
-
evidence: zod_1.z.union([
|
|
8
|
-
zod_1.z.literal('contract'),
|
|
9
|
-
zod_1.z.literal('system-rule'),
|
|
10
|
-
zod_1.z.literal('user-rule'),
|
|
11
|
-
zod_1.z.literal('manual-check'),
|
|
12
|
-
zod_1.z.literal('none'),
|
|
13
|
-
]),
|
|
14
|
-
timestamp: zod_1.z.number().int(),
|
|
15
|
-
comment: zod_1.z.string().optional(),
|
|
16
|
-
});
|
|
17
|
-
exports.transferSchema = zod_1.z.object({});
|
|
18
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../actions/schemas/constants.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC;QAChB,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QACrB,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QACxB,OAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QACtB,OAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACzB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;KAClB,CAAC;IACF,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA;AAEW,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.swapActionSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.swapActionSchema = zod_1.z.object({
|
|
6
|
-
type: zod_1.z.literal('swap'),
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=swap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"swap.js","sourceRoot":"","sources":["../../../actions/schemas/swap.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CACxB,CAAC,CAAA"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions = [
|
|
4
|
-
'add-liquidity',
|
|
5
|
-
'atomic-arbitrage',
|
|
6
|
-
'bridge-from',
|
|
7
|
-
'bridge-to',
|
|
8
|
-
'buy-nft',
|
|
9
|
-
'deposit',
|
|
10
|
-
'deposit-with-bond',
|
|
11
|
-
'free-mint-nft',
|
|
12
|
-
'remove-liquidity',
|
|
13
|
-
'spam',
|
|
14
|
-
'trade',
|
|
15
|
-
'transaction-fee',
|
|
16
|
-
'transfer',
|
|
17
|
-
'withdraw',
|
|
18
|
-
'withdraw-with-bond',
|
|
19
|
-
];
|
|
20
|
-
const accountActions = [
|
|
21
|
-
'add-liquidity',
|
|
22
|
-
'atomic-arbitrage',
|
|
23
|
-
'bridge-from',
|
|
24
|
-
'bridge-to',
|
|
25
|
-
'buy-nft',
|
|
26
|
-
'deposit',
|
|
27
|
-
'deposit-with-bond',
|
|
28
|
-
'free-mint-nft',
|
|
29
|
-
'income',
|
|
30
|
-
'move',
|
|
31
|
-
'nft-royalty',
|
|
32
|
-
'remove-liquidity',
|
|
33
|
-
'sell-nft',
|
|
34
|
-
'spam',
|
|
35
|
-
'swap-income',
|
|
36
|
-
'swap-nft',
|
|
37
|
-
'swap-transfer',
|
|
38
|
-
'trade',
|
|
39
|
-
'transaction-fee',
|
|
40
|
-
'transfer',
|
|
41
|
-
'withdraw',
|
|
42
|
-
'withdraw-with-bond',
|
|
43
|
-
];
|
|
44
|
-
const evidences = [
|
|
45
|
-
'contract',
|
|
46
|
-
'system-rule',
|
|
47
|
-
'user-rule',
|
|
48
|
-
'manual-check',
|
|
49
|
-
'none',
|
|
50
|
-
];
|
|
51
|
-
const transferDirections = ['in', 'out', 'none'];
|
|
52
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../actions/types/common.ts"],"names":[],"mappings":";;AASA,MAAM,OAAO,GAAG;IACd,eAAe;IACf,kBAAkB;IAClB,aAAa;IACb,WAAW;IACX,SAAS;IACT,SAAS;IACT,mBAAmB;IACnB,eAAe;IACf,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,iBAAiB;IACjB,UAAU;IACV,UAAU;IACV,oBAAoB;CACZ,CAAA;AAGV,MAAM,cAAc,GAAG;IACrB,eAAe;IACf,kBAAkB;IAClB,aAAa;IACb,WAAW;IACX,SAAS;IACT,SAAS;IACT,mBAAmB;IACnB,eAAe;IACf,QAAQ;IACR,MAAM;IACN,aAAa;IACb,kBAAkB;IAClB,UAAU;IACV,MAAM;IACN,aAAa;IACb,UAAU;IACV,eAAe;IACf,OAAO;IACP,iBAAiB;IACjB,UAAU;IACV,UAAU;IACV,oBAAoB;CACZ,CAAA;AAmDV,MAAM,SAAS,GAAG;IAChB,UAAU;IACV,aAAa;IACb,WAAW;IACX,cAAc;IACd,MAAM;CACE,CAAA;AAgCV,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAU,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export const actionConstantsSchema = z.object({
|
|
3
|
-
type: z.string(),
|
|
4
|
-
evidence: z.union([
|
|
5
|
-
z.literal('contract'),
|
|
6
|
-
z.literal('system-rule'),
|
|
7
|
-
z.literal('user-rule'),
|
|
8
|
-
z.literal('manual-check'),
|
|
9
|
-
z.literal('none'),
|
|
10
|
-
]),
|
|
11
|
-
timestamp: z.number().int(),
|
|
12
|
-
comment: z.string().optional(),
|
|
13
|
-
});
|
|
14
|
-
export const transferSchema = z.object({});
|
|
15
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../actions/schemas/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC;QAChB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QACrB,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QACxB,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QACtB,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACzB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;KAClB,CAAC;IACF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"swap.js","sourceRoot":"","sources":["../../../actions/schemas/swap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CACxB,CAAC,CAAA;AAEF,0BAA0B"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const actions = [
|
|
2
|
-
'add-liquidity',
|
|
3
|
-
'atomic-arbitrage',
|
|
4
|
-
'bridge-from',
|
|
5
|
-
'bridge-to',
|
|
6
|
-
'buy-nft',
|
|
7
|
-
'deposit',
|
|
8
|
-
'deposit-with-bond',
|
|
9
|
-
'free-mint-nft',
|
|
10
|
-
'remove-liquidity',
|
|
11
|
-
'spam',
|
|
12
|
-
'trade',
|
|
13
|
-
'transaction-fee',
|
|
14
|
-
'transfer',
|
|
15
|
-
'withdraw',
|
|
16
|
-
'withdraw-with-bond',
|
|
17
|
-
];
|
|
18
|
-
const accountActions = [
|
|
19
|
-
'add-liquidity',
|
|
20
|
-
'atomic-arbitrage',
|
|
21
|
-
'bridge-from',
|
|
22
|
-
'bridge-to',
|
|
23
|
-
'buy-nft',
|
|
24
|
-
'deposit',
|
|
25
|
-
'deposit-with-bond',
|
|
26
|
-
'free-mint-nft',
|
|
27
|
-
'income',
|
|
28
|
-
'move',
|
|
29
|
-
'nft-royalty',
|
|
30
|
-
'remove-liquidity',
|
|
31
|
-
'sell-nft',
|
|
32
|
-
'spam',
|
|
33
|
-
'swap-income',
|
|
34
|
-
'swap-nft',
|
|
35
|
-
'swap-transfer',
|
|
36
|
-
'trade',
|
|
37
|
-
'transaction-fee',
|
|
38
|
-
'transfer',
|
|
39
|
-
'withdraw',
|
|
40
|
-
'withdraw-with-bond',
|
|
41
|
-
];
|
|
42
|
-
// TODO これで良いか再検討
|
|
43
|
-
const evidences = [
|
|
44
|
-
'contract',
|
|
45
|
-
'system-rule',
|
|
46
|
-
'user-rule',
|
|
47
|
-
'manual-check',
|
|
48
|
-
'none',
|
|
49
|
-
];
|
|
50
|
-
const transferDirections = ['in', 'out', 'none'];
|
|
51
|
-
export {};
|
|
52
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../actions/types/common.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,GAAG;IACd,eAAe;IACf,kBAAkB;IAClB,aAAa;IACb,WAAW;IACX,SAAS;IACT,SAAS;IACT,mBAAmB;IACnB,eAAe;IACf,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,iBAAiB;IACjB,UAAU;IACV,UAAU;IACV,oBAAoB;CACZ,CAAA;AAGV,MAAM,cAAc,GAAG;IACrB,eAAe;IACf,kBAAkB;IAClB,aAAa;IACb,WAAW;IACX,SAAS;IACT,SAAS;IACT,mBAAmB;IACnB,eAAe;IACf,QAAQ;IACR,MAAM;IACN,aAAa;IACb,kBAAkB;IAClB,UAAU;IACV,MAAM;IACN,aAAa;IACb,UAAU;IACV,eAAe;IACf,OAAO;IACP,iBAAiB;IACjB,UAAU;IACV,UAAU;IACV,oBAAoB;CACZ,CAAA;AAkDV,iBAAiB;AACjB,MAAM,SAAS,GAAG;IAChB,UAAU;IACV,aAAa;IACb,WAAW;IACX,cAAc;IACd,MAAM;CACE,CAAA;AAgCV,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAU,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const actionConstantsSchema: z.ZodObject<{
|
|
3
|
-
type: z.ZodString;
|
|
4
|
-
evidence: z.ZodUnion<[z.ZodLiteral<"contract">, z.ZodLiteral<"system-rule">, z.ZodLiteral<"user-rule">, z.ZodLiteral<"manual-check">, z.ZodLiteral<"none">]>;
|
|
5
|
-
timestamp: z.ZodNumber;
|
|
6
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type: string;
|
|
9
|
-
timestamp: number;
|
|
10
|
-
evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
|
|
11
|
-
comment?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
type: string;
|
|
14
|
-
timestamp: number;
|
|
15
|
-
evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
|
|
16
|
-
comment?: string | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const transferSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
19
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../actions/schemas/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAWhC,CAAA;AAEF,eAAO,MAAM,cAAc,gDAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"swap.d.ts","sourceRoot":"","sources":["../../../actions/schemas/swap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAA"}
|