@0xtorch/core 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_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 +29 -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 +26 -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 +70552 -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 +1426 -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 +35 -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/actions/types/index.ts
CHANGED
|
@@ -1,41 +1,70 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
AccountAction,
|
|
3
|
+
AccountActionType,
|
|
4
|
+
ActionType,
|
|
5
|
+
Evidence,
|
|
6
|
+
NormalAction,
|
|
7
|
+
} from './action'
|
|
1
8
|
export type {
|
|
2
9
|
AccountActionAddLiquidity,
|
|
3
10
|
NormalActionAddLiquidity,
|
|
4
11
|
} from './addLiquidity'
|
|
12
|
+
export type { AccountActionApprove, NormalActionApprove } from './approve'
|
|
5
13
|
export type {
|
|
6
14
|
AccountActionAtomicArbitrage,
|
|
7
15
|
NormalActionAtomicArbitrage,
|
|
8
16
|
} from './atomicArbitrage'
|
|
17
|
+
export type { AccountActionBorrow, NormalActionBorrow } from './borrow'
|
|
18
|
+
export type {
|
|
19
|
+
AccountActionBorrowWithDebt,
|
|
20
|
+
NormalActionBorrowWithDebt,
|
|
21
|
+
} from './borrowWithDebt'
|
|
9
22
|
export type {
|
|
10
23
|
AccountActionBridgeFrom,
|
|
11
24
|
NormalActionBridgeFrom,
|
|
12
25
|
} from './bridgeFrom'
|
|
13
26
|
export type { AccountActionBridgeTo, NormalActionBridgeTo } from './bridgeTo'
|
|
14
27
|
export type { AccountActionBuyNft, NormalActionBuyNft } from './buyNft'
|
|
28
|
+
export type { CrossActionBundle } from './crossActionBundle'
|
|
15
29
|
export type {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
30
|
+
AccountActionCrossReplace,
|
|
31
|
+
NormalActionCrossReplace,
|
|
32
|
+
} from './crossReplace'
|
|
33
|
+
export type {
|
|
34
|
+
AccountActionCrossTrade,
|
|
35
|
+
NormalActionCrossTrade,
|
|
36
|
+
} from './crossTrade'
|
|
22
37
|
export type { AccountActionDeposit, NormalActionDeposit } from './deposit'
|
|
23
38
|
export type {
|
|
24
39
|
AccountActionDepositWithBond,
|
|
25
40
|
NormalActionDepositWithBond,
|
|
26
41
|
} from './depositWithBond'
|
|
42
|
+
export type { AccountActionFailTx, NormalActionFailTx } from './failTx'
|
|
43
|
+
export type { AccountActionFee, NormalActionFee } from './fee'
|
|
27
44
|
export type {
|
|
28
45
|
AccountActionFreeMintNft,
|
|
29
46
|
NormalActionFreeMintNft,
|
|
30
47
|
} from './freeMintNft'
|
|
48
|
+
export type { AccountActionIgnore } from './ignore'
|
|
31
49
|
export type { AccountActionIncome } from './income'
|
|
50
|
+
export type { AccountActionMintNft, NormalActionMintNft } from './mintNft'
|
|
32
51
|
export type { AccountActionMove } from './move'
|
|
33
52
|
export type { AccountActionNftRoyalty } from './nftRoyalty'
|
|
53
|
+
export type { AccountActionReceiveFromCex } from './receiveFromCex'
|
|
54
|
+
export type { AccountActionReduce } from './reduce'
|
|
34
55
|
export type {
|
|
35
56
|
AccountActionRemoveLiquidity,
|
|
36
57
|
NormalActionRemoveLiquidity,
|
|
37
58
|
} from './removeLiquidity'
|
|
59
|
+
export type { AccountActionRepayment, NormalActionRepayment } from './repayment'
|
|
60
|
+
export type {
|
|
61
|
+
AccountActionRepaymentWithDebt,
|
|
62
|
+
NormalActionRepaymentWithDebt,
|
|
63
|
+
} from './repaymentWithDebt'
|
|
64
|
+
export type { AccountActionReplace, NormalActionReplace } from './replace'
|
|
65
|
+
export type { AccountActionRevoke } from './revoke'
|
|
38
66
|
export type { AccountActionSellNft } from './sellNft'
|
|
67
|
+
export type { AccountActionSendToCex } from './sendToCex'
|
|
39
68
|
export type { AccountActionSpam, NormalActionSpam } from './spam'
|
|
40
69
|
export type { AccountActionSwapIncome } from './swapIncome'
|
|
41
70
|
export type { AccountActionSwapNft } from './swapNft'
|
|
@@ -46,8 +75,12 @@ export type {
|
|
|
46
75
|
NormalActionTransactionFee,
|
|
47
76
|
} from './transactionFee'
|
|
48
77
|
export type { AccountActionTransfer, NormalActionTransfer } from './transfer'
|
|
78
|
+
export type { AccountActionUnwrap, NormalActionUnwrap } from './unwrap'
|
|
79
|
+
export type { AccountActionValuedown, NormalActionValuedown } from './valuedown'
|
|
80
|
+
export type { AccountActionValueup, NormalActionValueup } from './valueup'
|
|
49
81
|
export type { AccountActionWithdraw, NormalActionWithdraw } from './withdraw'
|
|
50
82
|
export type {
|
|
51
83
|
AccountActionWithdrawWithBond,
|
|
52
84
|
NormalActionWithdrawWithBond,
|
|
53
85
|
} from './withdrawWithBond'
|
|
86
|
+
export type { AccountActionWrap, NormalActionWrap } from './wrap'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionMintNftSchema,
|
|
4
|
+
normalActionMintNftSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionMintNft = z.infer<typeof normalActionMintNftSchema>
|
|
8
|
+
|
|
9
|
+
export type AccountActionMintNft = z.infer<typeof accountActionMintNftSchema>
|
package/actions/types/move.ts
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
CryptoCurrencyPrice,
|
|
4
|
-
FiatCurrency,
|
|
5
|
-
Nft,
|
|
6
|
-
} from '../../assets'
|
|
7
|
-
import type { AccountAction } from './common'
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { accountActionMoveSchema } from '../schemas'
|
|
8
3
|
|
|
9
|
-
|
|
10
|
-
export type AccountActionMove<
|
|
11
|
-
Account = unknown,
|
|
12
|
-
Source extends string = string,
|
|
13
|
-
// TODO crypto 以外の価格にも対応させる
|
|
14
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
15
|
-
| CryptoCurrencyPrice
|
|
16
|
-
| undefined,
|
|
17
|
-
Asset extends CryptoCurrency | FiatCurrency | Nft =
|
|
18
|
-
| CryptoCurrency
|
|
19
|
-
| FiatCurrency
|
|
20
|
-
| Nft,
|
|
21
|
-
> = AccountAction<'move', Source, Account, Price, Asset, 'none'>
|
|
4
|
+
export type AccountActionMove = z.infer<typeof accountActionMoveSchema>
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
CryptoCurrencyPrice,
|
|
4
|
-
FiatCurrency,
|
|
5
|
-
} from '../../assets'
|
|
6
|
-
import type { AccountAction } from './common'
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { accountActionNftRoyaltySchema } from '../schemas'
|
|
7
3
|
|
|
8
|
-
type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type AccountActionNftRoyalty<
|
|
12
|
-
Account = unknown,
|
|
13
|
-
Source extends string = string,
|
|
14
|
-
// TODO crypto 以外の価格にも対応させる
|
|
15
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
16
|
-
| CryptoCurrencyPrice
|
|
17
|
-
| undefined,
|
|
18
|
-
Asset extends CryptoCurrency | FiatCurrency = CryptoCurrency | FiatCurrency,
|
|
19
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'in'>
|
|
4
|
+
export type AccountActionNftRoyalty = z.infer<
|
|
5
|
+
typeof accountActionNftRoyaltySchema
|
|
6
|
+
>
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionRemoveLiquiditySchema,
|
|
4
|
+
normalActionRemoveLiquiditySchema,
|
|
5
|
+
} from '../schemas'
|
|
3
6
|
|
|
4
|
-
type
|
|
7
|
+
export type NormalActionRemoveLiquidity = z.infer<
|
|
8
|
+
typeof normalActionRemoveLiquiditySchema
|
|
9
|
+
>
|
|
5
10
|
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
10
|
-
| CryptoCurrencyPrice
|
|
11
|
-
| undefined,
|
|
12
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
13
|
-
> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>
|
|
14
|
-
|
|
15
|
-
export type AccountActionRemoveLiquidity<
|
|
16
|
-
Account = unknown,
|
|
17
|
-
Source extends string = string,
|
|
18
|
-
// TODO crypto 以外の価格にも対応させる
|
|
19
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
20
|
-
| CryptoCurrencyPrice
|
|
21
|
-
| undefined,
|
|
22
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
23
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>
|
|
11
|
+
export type AccountActionRemoveLiquidity = z.infer<
|
|
12
|
+
typeof accountActionRemoveLiquiditySchema
|
|
13
|
+
>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionRepaymentSchema,
|
|
4
|
+
normalActionRepaymentSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionRepayment = z.infer<typeof normalActionRepaymentSchema>
|
|
8
|
+
|
|
9
|
+
export type AccountActionRepayment = z.infer<
|
|
10
|
+
typeof accountActionRepaymentSchema
|
|
11
|
+
>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionRepaymentWithDebtSchema,
|
|
4
|
+
normalActionRepaymentWithDebtSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionRepaymentWithDebt = z.infer<
|
|
8
|
+
typeof normalActionRepaymentWithDebtSchema
|
|
9
|
+
>
|
|
10
|
+
|
|
11
|
+
export type AccountActionRepaymentWithDebt = z.infer<
|
|
12
|
+
typeof accountActionRepaymentWithDebtSchema
|
|
13
|
+
>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionReplaceSchema,
|
|
4
|
+
normalActionReplaceSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionReplace = z.infer<typeof normalActionReplaceSchema>
|
|
8
|
+
|
|
9
|
+
export type AccountActionReplace = z.infer<typeof accountActionReplaceSchema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionRevokeSchema,
|
|
4
|
+
normalActionRevokeSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionRevoke = z.infer<typeof normalActionRevokeSchema>
|
|
8
|
+
|
|
9
|
+
export type AccountActionRevoke = z.infer<typeof accountActionRevokeSchema>
|
package/actions/types/sellNft.ts
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
CryptoCurrencyPrice,
|
|
4
|
-
FiatCurrency,
|
|
5
|
-
Nft,
|
|
6
|
-
} from '../../assets'
|
|
7
|
-
import type { AccountAction } from './common'
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { accountActionSellNftSchema } from '../schemas'
|
|
8
3
|
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
export type AccountActionSellNft<
|
|
12
|
-
Account = unknown,
|
|
13
|
-
Source extends string = string,
|
|
14
|
-
// TODO crypto 以外の価格にも対応させる
|
|
15
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
16
|
-
| CryptoCurrencyPrice
|
|
17
|
-
| undefined,
|
|
18
|
-
Asset extends CryptoCurrency | FiatCurrency | Nft =
|
|
19
|
-
| CryptoCurrency
|
|
20
|
-
| FiatCurrency
|
|
21
|
-
| Nft,
|
|
22
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>
|
|
4
|
+
export type AccountActionSellNft = z.infer<typeof accountActionSellNftSchema>
|
package/actions/types/spam.ts
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionSpamSchema,
|
|
4
|
+
normalActionSpamSchema,
|
|
5
|
+
} from '../schemas'
|
|
3
6
|
|
|
4
|
-
export type
|
|
7
|
+
export type NormalActionSpam = z.infer<typeof normalActionSpamSchema>
|
|
5
8
|
|
|
6
|
-
export type
|
|
7
|
-
Account = unknown,
|
|
8
|
-
// TODO crypto 以外の価格にも対応させる
|
|
9
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
10
|
-
| CryptoCurrencyPrice
|
|
11
|
-
| undefined,
|
|
12
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
13
|
-
> = NormalAction<Action, Account, Price, Asset, 'none'>
|
|
14
|
-
|
|
15
|
-
export type AccountActionSpam<
|
|
16
|
-
Account = unknown,
|
|
17
|
-
Source extends string = string,
|
|
18
|
-
// TODO crypto 以外の価格にも対応させる
|
|
19
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
20
|
-
| CryptoCurrencyPrice
|
|
21
|
-
| undefined,
|
|
22
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
23
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>
|
|
9
|
+
export type AccountActionSpam = z.infer<typeof accountActionSpamSchema>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { accountActionSwapIncomeSchema } from '../schemas'
|
|
3
3
|
|
|
4
|
-
export type AccountActionSwapIncome<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// TODO crypto 以外の価格にも対応させる
|
|
8
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
9
|
-
| CryptoCurrencyPrice
|
|
10
|
-
| undefined,
|
|
11
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
12
|
-
> = AccountAction<'swap-income', Source, Account, Price, Asset, 'in'>
|
|
4
|
+
export type AccountActionSwapIncome = z.infer<
|
|
5
|
+
typeof accountActionSwapIncomeSchema
|
|
6
|
+
>
|
package/actions/types/swapNft.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionSwapNftSchema,
|
|
4
|
+
normalActionSwapNftSchema,
|
|
5
|
+
} from '../schemas'
|
|
3
6
|
|
|
4
|
-
type
|
|
7
|
+
export type NormalActionSwapNft = z.infer<typeof normalActionSwapNftSchema>
|
|
5
8
|
|
|
6
|
-
export type AccountActionSwapNft<
|
|
7
|
-
Account = unknown,
|
|
8
|
-
Source extends string = string,
|
|
9
|
-
// TODO crypto 以外の価格にも対応させる
|
|
10
|
-
Price extends undefined = undefined,
|
|
11
|
-
Asset extends Nft = Nft,
|
|
12
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>
|
|
9
|
+
export type AccountActionSwapNft = z.infer<typeof accountActionSwapNftSchema>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type { accountActionSwapTransferSchema } from '../schemas'
|
|
3
3
|
|
|
4
|
-
export type AccountActionSwapTransfer<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// TODO crypto 以外の価格にも対応させる
|
|
8
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
9
|
-
| CryptoCurrencyPrice
|
|
10
|
-
| undefined,
|
|
11
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
12
|
-
> = AccountAction<'swap-transfer', Source, Account, Price, Asset, 'out'>
|
|
4
|
+
export type AccountActionSwapTransfer = z.infer<
|
|
5
|
+
typeof accountActionSwapTransferSchema
|
|
6
|
+
>
|
package/actions/types/trade.ts
CHANGED
|
@@ -1,34 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
1
2
|
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Nft,
|
|
6
|
-
} from '../../assets'
|
|
7
|
-
import type { AccountAction, NormalAction } from './common'
|
|
3
|
+
accountActionTradeSchema,
|
|
4
|
+
normalActionTradeSchema,
|
|
5
|
+
} from '../schemas'
|
|
8
6
|
|
|
9
|
-
type
|
|
7
|
+
export type NormalActionTrade = z.infer<typeof normalActionTradeSchema>
|
|
10
8
|
|
|
11
|
-
export type
|
|
12
|
-
Account = unknown,
|
|
13
|
-
// TODO crypto 以外の価格にも対応させる
|
|
14
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
15
|
-
| CryptoCurrencyPrice
|
|
16
|
-
| undefined,
|
|
17
|
-
Asset extends CryptoCurrency | FiatCurrency | Nft =
|
|
18
|
-
| CryptoCurrency
|
|
19
|
-
| FiatCurrency
|
|
20
|
-
| Nft,
|
|
21
|
-
> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>
|
|
22
|
-
|
|
23
|
-
export type AccountActionTrade<
|
|
24
|
-
Account = unknown,
|
|
25
|
-
Source extends string = string,
|
|
26
|
-
// TODO crypto 以外の価格にも対応させる
|
|
27
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
28
|
-
| CryptoCurrencyPrice
|
|
29
|
-
| undefined,
|
|
30
|
-
Asset extends CryptoCurrency | FiatCurrency | Nft =
|
|
31
|
-
| CryptoCurrency
|
|
32
|
-
| FiatCurrency
|
|
33
|
-
| Nft,
|
|
34
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>
|
|
9
|
+
export type AccountActionTrade = z.infer<typeof accountActionTradeSchema>
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionTransactionFeeSchema,
|
|
4
|
+
normalActionTransactionFeeSchema,
|
|
5
|
+
} from '../schemas'
|
|
3
6
|
|
|
4
|
-
type
|
|
7
|
+
export type NormalActionTransactionFee = z.infer<
|
|
8
|
+
typeof normalActionTransactionFeeSchema
|
|
9
|
+
>
|
|
5
10
|
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
| CryptoCurrencyPrice
|
|
10
|
-
| undefined,
|
|
11
|
-
> = NormalAction<Action, Account, Price, CryptoCurrency, 'out'>
|
|
12
|
-
|
|
13
|
-
export type AccountActionTransactionFee<
|
|
14
|
-
Account = unknown,
|
|
15
|
-
Source extends string = string,
|
|
16
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
17
|
-
| CryptoCurrencyPrice
|
|
18
|
-
| undefined,
|
|
19
|
-
> = AccountAction<Action, Source, Account, Price, CryptoCurrency, 'out'>
|
|
11
|
+
export type AccountActionTransactionFee = z.infer<
|
|
12
|
+
typeof accountActionTransactionFeeSchema
|
|
13
|
+
>
|
|
@@ -1,36 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
1
2
|
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Nft,
|
|
6
|
-
} from '../../assets'
|
|
7
|
-
import type { AccountAction, NormalAction } from './common'
|
|
3
|
+
accountActionTransferSchema,
|
|
4
|
+
normalActionTransferSchema,
|
|
5
|
+
} from '../schemas'
|
|
8
6
|
|
|
9
|
-
export type
|
|
7
|
+
export type NormalActionTransfer = z.infer<typeof normalActionTransferSchema>
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
export type NormalActionTransfer<
|
|
13
|
-
Account = unknown,
|
|
14
|
-
// TODO crypto 以外の価格にも対応させる
|
|
15
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
16
|
-
| CryptoCurrencyPrice
|
|
17
|
-
| undefined,
|
|
18
|
-
Asset extends CryptoCurrency | FiatCurrency | Nft =
|
|
19
|
-
| CryptoCurrency
|
|
20
|
-
| FiatCurrency
|
|
21
|
-
| Nft,
|
|
22
|
-
> = NormalAction<Action, Account, Price, Asset, 'none'>
|
|
23
|
-
|
|
24
|
-
/** transfer from account to others */
|
|
25
|
-
export type AccountActionTransfer<
|
|
26
|
-
Account = unknown,
|
|
27
|
-
Source extends string = string,
|
|
28
|
-
// TODO crypto 以外の価格にも対応させる
|
|
29
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
30
|
-
| CryptoCurrencyPrice
|
|
31
|
-
| undefined,
|
|
32
|
-
Asset extends CryptoCurrency | FiatCurrency | Nft =
|
|
33
|
-
| CryptoCurrency
|
|
34
|
-
| FiatCurrency
|
|
35
|
-
| Nft,
|
|
36
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'out'>
|
|
9
|
+
export type AccountActionTransfer = z.infer<typeof accountActionTransferSchema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionUnwrapSchema,
|
|
4
|
+
normalActionUnwrapSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionUnwrap = z.infer<typeof normalActionUnwrapSchema>
|
|
8
|
+
|
|
9
|
+
export type AccountActionUnwrap = z.infer<typeof accountActionUnwrapSchema>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionValuedownSchema,
|
|
4
|
+
normalActionValuedownSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionValuedown = z.infer<typeof normalActionValuedownSchema>
|
|
8
|
+
|
|
9
|
+
export type AccountActionValuedown = z.infer<
|
|
10
|
+
typeof accountActionValuedownSchema
|
|
11
|
+
>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionValueupSchema,
|
|
4
|
+
normalActionValueupSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionValueup = z.infer<typeof normalActionValueupSchema>
|
|
8
|
+
|
|
9
|
+
export type AccountActionValueup = z.infer<typeof accountActionValueupSchema>
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionWithdrawSchema,
|
|
4
|
+
normalActionWithdrawSchema,
|
|
5
|
+
} from '../schemas'
|
|
3
6
|
|
|
4
|
-
type
|
|
7
|
+
export type NormalActionWithdraw = z.infer<typeof normalActionWithdrawSchema>
|
|
5
8
|
|
|
6
|
-
export type
|
|
7
|
-
Account = unknown,
|
|
8
|
-
// TODO crypto 以外の価格にも対応させる
|
|
9
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
10
|
-
| CryptoCurrencyPrice
|
|
11
|
-
| undefined,
|
|
12
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
13
|
-
> = NormalAction<Action, Account, Price, Asset, 'in'>
|
|
14
|
-
|
|
15
|
-
export type AccountActionWithdraw<
|
|
16
|
-
Account = unknown,
|
|
17
|
-
Source extends string = string,
|
|
18
|
-
// TODO crypto 以外の価格にも対応させる
|
|
19
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
20
|
-
| CryptoCurrencyPrice
|
|
21
|
-
| undefined,
|
|
22
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
23
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'in'>
|
|
9
|
+
export type AccountActionWithdraw = z.infer<typeof accountActionWithdrawSchema>
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionWithdrawWithBondSchema,
|
|
4
|
+
normalActionWithdrawWithBondSchema,
|
|
5
|
+
} from '../schemas'
|
|
3
6
|
|
|
4
|
-
type
|
|
7
|
+
export type NormalActionWithdrawWithBond = z.infer<
|
|
8
|
+
typeof normalActionWithdrawWithBondSchema
|
|
9
|
+
>
|
|
5
10
|
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
10
|
-
| CryptoCurrencyPrice
|
|
11
|
-
| undefined,
|
|
12
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
13
|
-
> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>
|
|
14
|
-
|
|
15
|
-
export type AccountActionWithdrawWithBond<
|
|
16
|
-
Account = unknown,
|
|
17
|
-
Source extends string = string,
|
|
18
|
-
// TODO crypto 以外の価格にも対応させる
|
|
19
|
-
Price extends CryptoCurrencyPrice | undefined =
|
|
20
|
-
| CryptoCurrencyPrice
|
|
21
|
-
| undefined,
|
|
22
|
-
Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft,
|
|
23
|
-
> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>
|
|
11
|
+
export type AccountActionWithdrawWithBond = z.infer<
|
|
12
|
+
typeof accountActionWithdrawWithBondSchema
|
|
13
|
+
>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { z } from 'zod'
|
|
2
|
+
import type {
|
|
3
|
+
accountActionWrapSchema,
|
|
4
|
+
normalActionWrapSchema,
|
|
5
|
+
} from '../schemas'
|
|
6
|
+
|
|
7
|
+
export type NormalActionWrap = z.infer<typeof normalActionWrapSchema>
|
|
8
|
+
|
|
9
|
+
export type AccountActionWrap = z.infer<typeof accountActionWrapSchema>
|
package/apps/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { appCategories } from './
|
|
1
|
+
export { appCategories, appCategoryUnionSchema, appSchema } from './schemas'
|
|
2
2
|
export type { App, AppCategory } from './types'
|
package/apps/schemas.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { createUnionSchema } from '../utils'
|
|
3
|
+
|
|
4
|
+
export const appCategories = [
|
|
5
|
+
'bridge',
|
|
6
|
+
'cex',
|
|
7
|
+
'cross-chain',
|
|
8
|
+
'dex',
|
|
9
|
+
'gaming',
|
|
10
|
+
'lending',
|
|
11
|
+
'nft-marketplace',
|
|
12
|
+
'other',
|
|
13
|
+
] as const
|
|
14
|
+
export const appCategoryUnionSchema = createUnionSchema(appCategories)
|
|
15
|
+
|
|
16
|
+
export const appSchema = z
|
|
17
|
+
.object({
|
|
18
|
+
id: z.string(),
|
|
19
|
+
categories: z.array(appCategoryUnionSchema),
|
|
20
|
+
name: z.string(),
|
|
21
|
+
description: z.string().optional(),
|
|
22
|
+
website: z.string().optional(),
|
|
23
|
+
icon: z.string().optional(),
|
|
24
|
+
})
|
|
25
|
+
.transform((v) => ({
|
|
26
|
+
...v,
|
|
27
|
+
description: v.description,
|
|
28
|
+
website: v.website,
|
|
29
|
+
icon: v.icon,
|
|
30
|
+
}))
|