@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
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createUnionSchema } from '../../../utils'
|
|
2
|
+
|
|
3
|
+
const normalActions = [
|
|
4
|
+
'add-liquidity',
|
|
5
|
+
'approve',
|
|
6
|
+
'atomic-arbitrage',
|
|
7
|
+
'borrow',
|
|
8
|
+
'borrow-with-debt',
|
|
9
|
+
'bridge-from',
|
|
10
|
+
'bridge-to',
|
|
11
|
+
'buy-nft',
|
|
12
|
+
'buy-crypto',
|
|
13
|
+
'cross-replace',
|
|
14
|
+
'cross-trade',
|
|
15
|
+
'deposit',
|
|
16
|
+
'deposit-with-bond',
|
|
17
|
+
'fail-tx',
|
|
18
|
+
'fee',
|
|
19
|
+
'free-mint-nft',
|
|
20
|
+
'mint-nft',
|
|
21
|
+
'remove-liquidity',
|
|
22
|
+
'repayment',
|
|
23
|
+
'repayment-with-debt',
|
|
24
|
+
'revoke',
|
|
25
|
+
'sell-crypto',
|
|
26
|
+
'spam',
|
|
27
|
+
'stake',
|
|
28
|
+
'swap-nft',
|
|
29
|
+
'trade',
|
|
30
|
+
'transaction-fee',
|
|
31
|
+
'transfer',
|
|
32
|
+
'unstake',
|
|
33
|
+
'unwrap',
|
|
34
|
+
'valuedown',
|
|
35
|
+
'valueup',
|
|
36
|
+
'withdraw',
|
|
37
|
+
'withdraw-with-bond',
|
|
38
|
+
'wrap',
|
|
39
|
+
] as const
|
|
40
|
+
export const normalActionUnionSchema = createUnionSchema(normalActions)
|
|
41
|
+
|
|
42
|
+
const accountActions = [
|
|
43
|
+
'add-liquidity',
|
|
44
|
+
'approve',
|
|
45
|
+
'atomic-arbitrage',
|
|
46
|
+
'borrow',
|
|
47
|
+
'borrow-with-debt',
|
|
48
|
+
'bridge-from',
|
|
49
|
+
'bridge-to',
|
|
50
|
+
'buy-nft',
|
|
51
|
+
'buy-crypto',
|
|
52
|
+
'cross-replace',
|
|
53
|
+
'cross-trade',
|
|
54
|
+
'deposit',
|
|
55
|
+
'deposit-with-bond',
|
|
56
|
+
'fail-tx',
|
|
57
|
+
'fee',
|
|
58
|
+
'free-mint-nft',
|
|
59
|
+
'ignore',
|
|
60
|
+
'income',
|
|
61
|
+
'mint-nft',
|
|
62
|
+
'move',
|
|
63
|
+
'nft-royalty',
|
|
64
|
+
'receive-from-cex',
|
|
65
|
+
'reduce',
|
|
66
|
+
'remove-liquidity',
|
|
67
|
+
'repayment',
|
|
68
|
+
'repayment-with-debt',
|
|
69
|
+
'revoke',
|
|
70
|
+
'sell-crypto',
|
|
71
|
+
'sell-nft',
|
|
72
|
+
'send-to-cex',
|
|
73
|
+
'spam',
|
|
74
|
+
'stake',
|
|
75
|
+
'swap-income',
|
|
76
|
+
'swap-nft',
|
|
77
|
+
'swap-transfer',
|
|
78
|
+
'trade',
|
|
79
|
+
'transaction-fee',
|
|
80
|
+
'transfer',
|
|
81
|
+
'unstake',
|
|
82
|
+
'unwrap',
|
|
83
|
+
'valuedown',
|
|
84
|
+
'valueup',
|
|
85
|
+
'withdraw',
|
|
86
|
+
'withdraw-with-bond',
|
|
87
|
+
'wrap',
|
|
88
|
+
] as const
|
|
89
|
+
export const accountActionUnionSchema = createUnionSchema(accountActions)
|
|
90
|
+
|
|
91
|
+
const evidences = [
|
|
92
|
+
'contract',
|
|
93
|
+
'system-rule',
|
|
94
|
+
'user-rule',
|
|
95
|
+
'manual-check',
|
|
96
|
+
'none',
|
|
97
|
+
] as const
|
|
98
|
+
export const evidenceUnionSchema = createUnionSchema(evidences)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
loanAccountActionDefaultSchema,
|
|
4
|
+
loanNormalActionDefaultSchema,
|
|
5
|
+
transferCryptoCurrencyInSchema,
|
|
6
|
+
transferCryptoCurrencyOutSchema,
|
|
7
|
+
transferNftInSchema,
|
|
8
|
+
transferNftOutSchema,
|
|
9
|
+
} from '../default'
|
|
10
|
+
|
|
11
|
+
export const normalActionAddLiquiditySchema = loanNormalActionDefaultSchema
|
|
12
|
+
.extend({
|
|
13
|
+
action: z.literal('add-liquidity'),
|
|
14
|
+
transfers: z.array(
|
|
15
|
+
z.union([
|
|
16
|
+
transferCryptoCurrencyInSchema,
|
|
17
|
+
transferNftInSchema,
|
|
18
|
+
transferCryptoCurrencyOutSchema,
|
|
19
|
+
transferNftOutSchema,
|
|
20
|
+
]),
|
|
21
|
+
),
|
|
22
|
+
})
|
|
23
|
+
.transform((v) => ({
|
|
24
|
+
...v,
|
|
25
|
+
comment: v.comment,
|
|
26
|
+
app: v.app,
|
|
27
|
+
}))
|
|
28
|
+
|
|
29
|
+
export const accountActionAddLiquiditySchema = loanAccountActionDefaultSchema
|
|
30
|
+
.extend({
|
|
31
|
+
action: z.literal('add-liquidity'),
|
|
32
|
+
transfers: z.array(
|
|
33
|
+
z.union([
|
|
34
|
+
transferCryptoCurrencyInSchema,
|
|
35
|
+
transferNftInSchema,
|
|
36
|
+
transferCryptoCurrencyOutSchema,
|
|
37
|
+
transferNftOutSchema,
|
|
38
|
+
]),
|
|
39
|
+
),
|
|
40
|
+
})
|
|
41
|
+
.transform((v) => ({
|
|
42
|
+
...v,
|
|
43
|
+
comment: v.comment,
|
|
44
|
+
app: v.app,
|
|
45
|
+
}))
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
loanAccountActionDefaultSchema,
|
|
4
|
+
loanNormalActionDefaultSchema,
|
|
5
|
+
transferCryptoCurrencyOutSchema,
|
|
6
|
+
transferNftOutSchema,
|
|
7
|
+
} from '../default'
|
|
8
|
+
|
|
9
|
+
export const normalActionDepositSchema = loanNormalActionDefaultSchema
|
|
10
|
+
.extend({
|
|
11
|
+
action: z.literal('deposit'),
|
|
12
|
+
transfers: z.array(
|
|
13
|
+
z.union([transferCryptoCurrencyOutSchema, transferNftOutSchema]),
|
|
14
|
+
),
|
|
15
|
+
})
|
|
16
|
+
.transform((v) => ({
|
|
17
|
+
...v,
|
|
18
|
+
comment: v.comment,
|
|
19
|
+
app: v.app,
|
|
20
|
+
}))
|
|
21
|
+
|
|
22
|
+
export const accountActionDepositSchema = loanAccountActionDefaultSchema
|
|
23
|
+
.extend({
|
|
24
|
+
action: z.literal('deposit'),
|
|
25
|
+
transfers: z.array(
|
|
26
|
+
z.union([transferCryptoCurrencyOutSchema, transferNftOutSchema]),
|
|
27
|
+
),
|
|
28
|
+
})
|
|
29
|
+
.transform((v) => ({
|
|
30
|
+
...v,
|
|
31
|
+
comment: v.comment,
|
|
32
|
+
app: v.app,
|
|
33
|
+
}))
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
loanAccountActionDefaultSchema,
|
|
4
|
+
loanNormalActionDefaultSchema,
|
|
5
|
+
transferCryptoCurrencyInSchema,
|
|
6
|
+
transferCryptoCurrencyOutSchema,
|
|
7
|
+
transferNftInSchema,
|
|
8
|
+
transferNftOutSchema,
|
|
9
|
+
} from '../default'
|
|
10
|
+
|
|
11
|
+
export const normalActionDepositWithBondSchema = loanNormalActionDefaultSchema
|
|
12
|
+
.extend({
|
|
13
|
+
action: z.literal('deposit-with-bond'),
|
|
14
|
+
transfers: z.array(
|
|
15
|
+
z.union([
|
|
16
|
+
transferCryptoCurrencyInSchema,
|
|
17
|
+
transferNftInSchema,
|
|
18
|
+
transferCryptoCurrencyOutSchema,
|
|
19
|
+
transferNftOutSchema,
|
|
20
|
+
]),
|
|
21
|
+
),
|
|
22
|
+
})
|
|
23
|
+
.transform((v) => ({
|
|
24
|
+
...v,
|
|
25
|
+
comment: v.comment,
|
|
26
|
+
app: v.app,
|
|
27
|
+
}))
|
|
28
|
+
|
|
29
|
+
export const accountActionDepositWithBondSchema = loanAccountActionDefaultSchema
|
|
30
|
+
.extend({
|
|
31
|
+
action: z.literal('deposit-with-bond'),
|
|
32
|
+
transfers: z.array(
|
|
33
|
+
z.union([
|
|
34
|
+
transferCryptoCurrencyInSchema,
|
|
35
|
+
transferNftInSchema,
|
|
36
|
+
transferCryptoCurrencyOutSchema,
|
|
37
|
+
transferNftOutSchema,
|
|
38
|
+
]),
|
|
39
|
+
),
|
|
40
|
+
})
|
|
41
|
+
.transform((v) => ({
|
|
42
|
+
...v,
|
|
43
|
+
comment: v.comment,
|
|
44
|
+
app: v.app,
|
|
45
|
+
}))
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export {
|
|
2
|
+
accountActionAddLiquiditySchema,
|
|
3
|
+
normalActionAddLiquiditySchema,
|
|
4
|
+
} from './addLiquidity'
|
|
5
|
+
export {
|
|
6
|
+
accountActionDepositSchema,
|
|
7
|
+
normalActionDepositSchema,
|
|
8
|
+
} from './deposit'
|
|
9
|
+
export {
|
|
10
|
+
accountActionDepositWithBondSchema,
|
|
11
|
+
normalActionDepositWithBondSchema,
|
|
12
|
+
} from './depositWithBond'
|
|
13
|
+
export { accountActionStakeSchema, normalActionStakeSchema } from './stake'
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
loanAccountActionDefaultSchema,
|
|
4
|
+
loanNormalActionDefaultSchema,
|
|
5
|
+
transferCryptoCurrencyOutSchema,
|
|
6
|
+
transferNftOutSchema,
|
|
7
|
+
} from '../default'
|
|
8
|
+
|
|
9
|
+
export const normalActionStakeSchema = loanNormalActionDefaultSchema
|
|
10
|
+
.extend({
|
|
11
|
+
action: z.literal('stake'),
|
|
12
|
+
transfers: z.array(
|
|
13
|
+
z.union([transferCryptoCurrencyOutSchema, transferNftOutSchema]),
|
|
14
|
+
),
|
|
15
|
+
})
|
|
16
|
+
.transform((v) => ({
|
|
17
|
+
...v,
|
|
18
|
+
comment: v.comment,
|
|
19
|
+
app: v.app,
|
|
20
|
+
}))
|
|
21
|
+
|
|
22
|
+
export const accountActionStakeSchema = loanAccountActionDefaultSchema
|
|
23
|
+
.extend({
|
|
24
|
+
action: z.literal('stake'),
|
|
25
|
+
transfers: z.array(
|
|
26
|
+
z.union([transferCryptoCurrencyOutSchema, transferNftOutSchema]),
|
|
27
|
+
),
|
|
28
|
+
})
|
|
29
|
+
.transform((v) => ({
|
|
30
|
+
...v,
|
|
31
|
+
comment: v.comment,
|
|
32
|
+
app: v.app,
|
|
33
|
+
}))
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
normalActionDefaultSchema,
|
|
5
|
+
transferCryptoCurrencyOutSchema,
|
|
6
|
+
transferFiatCurrencyOutSchema,
|
|
7
|
+
} from '../default'
|
|
8
|
+
|
|
9
|
+
export const normalActionFeeSchema = normalActionDefaultSchema
|
|
10
|
+
.extend({
|
|
11
|
+
action: z.literal('fee'),
|
|
12
|
+
transfers: z.array(
|
|
13
|
+
z.union([transferCryptoCurrencyOutSchema, transferFiatCurrencyOutSchema]),
|
|
14
|
+
),
|
|
15
|
+
})
|
|
16
|
+
.transform((v) => ({
|
|
17
|
+
...v,
|
|
18
|
+
comment: v.comment,
|
|
19
|
+
app: v.app,
|
|
20
|
+
}))
|
|
21
|
+
|
|
22
|
+
export const accountActionFeeSchema = normalAccountActionDefaultSchema
|
|
23
|
+
.extend({
|
|
24
|
+
action: z.literal('fee'),
|
|
25
|
+
transfers: z.array(
|
|
26
|
+
z.union([transferCryptoCurrencyOutSchema, transferFiatCurrencyOutSchema]),
|
|
27
|
+
),
|
|
28
|
+
})
|
|
29
|
+
.transform((v) => ({
|
|
30
|
+
...v,
|
|
31
|
+
comment: v.comment,
|
|
32
|
+
app: v.app,
|
|
33
|
+
}))
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
normalActionDefaultSchema,
|
|
5
|
+
transferCryptoCurrencyOutSchema,
|
|
6
|
+
} from '../default'
|
|
7
|
+
|
|
8
|
+
export const normalActionTransactionFeeSchema = normalActionDefaultSchema
|
|
9
|
+
.extend({
|
|
10
|
+
action: z.literal('transaction-fee'),
|
|
11
|
+
transfers: z.array(transferCryptoCurrencyOutSchema),
|
|
12
|
+
})
|
|
13
|
+
.transform((v) => ({
|
|
14
|
+
...v,
|
|
15
|
+
comment: v.comment,
|
|
16
|
+
app: v.app,
|
|
17
|
+
}))
|
|
18
|
+
|
|
19
|
+
export const accountActionTransactionFeeSchema =
|
|
20
|
+
normalAccountActionDefaultSchema
|
|
21
|
+
.extend({
|
|
22
|
+
action: z.literal('transaction-fee'),
|
|
23
|
+
transfers: z.array(transferCryptoCurrencyOutSchema),
|
|
24
|
+
})
|
|
25
|
+
.transform((v) => ({
|
|
26
|
+
...v,
|
|
27
|
+
comment: v.comment,
|
|
28
|
+
app: v.app,
|
|
29
|
+
}))
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
normalActionDefaultSchema,
|
|
5
|
+
} from '../default'
|
|
6
|
+
|
|
7
|
+
export const normalActionApproveSchema = normalActionDefaultSchema
|
|
8
|
+
.extend({
|
|
9
|
+
action: z.literal('approve'),
|
|
10
|
+
transfers: z.tuple([]),
|
|
11
|
+
})
|
|
12
|
+
.transform((v) => ({
|
|
13
|
+
...v,
|
|
14
|
+
comment: v.comment,
|
|
15
|
+
app: v.app,
|
|
16
|
+
}))
|
|
17
|
+
|
|
18
|
+
export const accountActionApproveSchema = normalAccountActionDefaultSchema
|
|
19
|
+
.extend({
|
|
20
|
+
action: z.literal('approve'),
|
|
21
|
+
transfers: z.tuple([]),
|
|
22
|
+
})
|
|
23
|
+
.transform((v) => ({
|
|
24
|
+
...v,
|
|
25
|
+
comment: v.comment,
|
|
26
|
+
app: v.app,
|
|
27
|
+
}))
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
normalActionDefaultSchema,
|
|
5
|
+
} from '../default'
|
|
6
|
+
|
|
7
|
+
export const normalActionFailTxSchema = normalActionDefaultSchema
|
|
8
|
+
.extend({
|
|
9
|
+
action: z.literal('fail-tx'),
|
|
10
|
+
transfers: z.tuple([]),
|
|
11
|
+
})
|
|
12
|
+
.transform((v) => ({
|
|
13
|
+
...v,
|
|
14
|
+
comment: v.comment,
|
|
15
|
+
app: v.app,
|
|
16
|
+
}))
|
|
17
|
+
|
|
18
|
+
export const accountActionFailTxSchema = normalAccountActionDefaultSchema
|
|
19
|
+
.extend({
|
|
20
|
+
action: z.literal('fail-tx'),
|
|
21
|
+
transfers: z.tuple([]),
|
|
22
|
+
})
|
|
23
|
+
.transform((v) => ({
|
|
24
|
+
...v,
|
|
25
|
+
comment: v.comment,
|
|
26
|
+
app: v.app,
|
|
27
|
+
}))
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { normalAccountActionDefaultSchema } from '../default'
|
|
3
|
+
|
|
4
|
+
export const accountActionIgnoreSchema = normalAccountActionDefaultSchema
|
|
5
|
+
.extend({
|
|
6
|
+
action: z.literal('ignore'),
|
|
7
|
+
})
|
|
8
|
+
.transform((v) => ({
|
|
9
|
+
...v,
|
|
10
|
+
comment: v.comment,
|
|
11
|
+
app: v.app,
|
|
12
|
+
}))
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export {
|
|
2
|
+
accountActionApproveSchema,
|
|
3
|
+
normalActionApproveSchema,
|
|
4
|
+
} from './approve'
|
|
5
|
+
export { accountActionFailTxSchema, normalActionFailTxSchema } from './failTx'
|
|
6
|
+
export { accountActionIgnoreSchema } from './ignore'
|
|
7
|
+
export { accountActionMoveSchema } from './move'
|
|
8
|
+
export { accountActionReceiveFromCexSchema } from './receiveFromCex'
|
|
9
|
+
export { accountActionRevokeSchema, normalActionRevokeSchema } from './revoke'
|
|
10
|
+
export { accountActionSendToCexSchema } from './sendToCex'
|
|
11
|
+
export { accountActionSpamSchema, normalActionSpamSchema } from './spam'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { normalAccountActionDefaultSchema } from '../default'
|
|
3
|
+
|
|
4
|
+
export const accountActionMoveSchema = normalAccountActionDefaultSchema
|
|
5
|
+
.extend({
|
|
6
|
+
action: z.literal('move'),
|
|
7
|
+
})
|
|
8
|
+
.transform((v) => ({
|
|
9
|
+
...v,
|
|
10
|
+
comment: v.comment,
|
|
11
|
+
app: v.app,
|
|
12
|
+
}))
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
transferCryptoCurrencyInSchema,
|
|
5
|
+
transferNftInSchema,
|
|
6
|
+
} from '../default'
|
|
7
|
+
|
|
8
|
+
export const accountActionReceiveFromCexSchema =
|
|
9
|
+
normalAccountActionDefaultSchema
|
|
10
|
+
.extend({
|
|
11
|
+
action: z.literal('receive-from-cex'),
|
|
12
|
+
transfers: z.array(
|
|
13
|
+
z.union([transferCryptoCurrencyInSchema, transferNftInSchema]),
|
|
14
|
+
),
|
|
15
|
+
})
|
|
16
|
+
.transform((v) => ({
|
|
17
|
+
...v,
|
|
18
|
+
comment: v.comment,
|
|
19
|
+
app: v.app,
|
|
20
|
+
}))
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
normalActionDefaultSchema,
|
|
5
|
+
} from '../default'
|
|
6
|
+
|
|
7
|
+
export const normalActionRevokeSchema = normalActionDefaultSchema
|
|
8
|
+
.extend({
|
|
9
|
+
action: z.literal('revoke'),
|
|
10
|
+
transfers: z.tuple([]),
|
|
11
|
+
})
|
|
12
|
+
.transform((v) => ({
|
|
13
|
+
...v,
|
|
14
|
+
comment: v.comment,
|
|
15
|
+
app: v.app,
|
|
16
|
+
}))
|
|
17
|
+
|
|
18
|
+
export const accountActionRevokeSchema = normalAccountActionDefaultSchema
|
|
19
|
+
.extend({
|
|
20
|
+
action: z.literal('revoke'),
|
|
21
|
+
transfers: z.tuple([]),
|
|
22
|
+
})
|
|
23
|
+
.transform((v) => ({
|
|
24
|
+
...v,
|
|
25
|
+
comment: v.comment,
|
|
26
|
+
app: v.app,
|
|
27
|
+
}))
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
transferCryptoCurrencyOutSchema,
|
|
5
|
+
transferNftOutSchema,
|
|
6
|
+
} from '../default'
|
|
7
|
+
|
|
8
|
+
export const accountActionSendToCexSchema = normalAccountActionDefaultSchema
|
|
9
|
+
.extend({
|
|
10
|
+
action: z.literal('send-to-cex'),
|
|
11
|
+
transfers: z.array(
|
|
12
|
+
z.union([transferCryptoCurrencyOutSchema, transferNftOutSchema]),
|
|
13
|
+
),
|
|
14
|
+
})
|
|
15
|
+
.transform((v) => ({
|
|
16
|
+
...v,
|
|
17
|
+
comment: v.comment,
|
|
18
|
+
app: v.app,
|
|
19
|
+
}))
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
normalActionDefaultSchema,
|
|
5
|
+
transferCryptoCurrencyInSchema,
|
|
6
|
+
transferNftInSchema,
|
|
7
|
+
} from '../default'
|
|
8
|
+
|
|
9
|
+
export const normalActionSpamSchema = normalActionDefaultSchema
|
|
10
|
+
.extend({
|
|
11
|
+
action: z.literal('spam'),
|
|
12
|
+
transfers: z.array(
|
|
13
|
+
z.union([transferCryptoCurrencyInSchema, transferNftInSchema]),
|
|
14
|
+
),
|
|
15
|
+
})
|
|
16
|
+
.transform((v) => ({
|
|
17
|
+
...v,
|
|
18
|
+
comment: v.comment,
|
|
19
|
+
app: v.app,
|
|
20
|
+
}))
|
|
21
|
+
|
|
22
|
+
export const accountActionSpamSchema = normalAccountActionDefaultSchema
|
|
23
|
+
.extend({
|
|
24
|
+
action: z.literal('spam'),
|
|
25
|
+
transfers: z.array(
|
|
26
|
+
z.union([transferCryptoCurrencyInSchema, transferNftInSchema]),
|
|
27
|
+
),
|
|
28
|
+
})
|
|
29
|
+
.transform((v) => ({
|
|
30
|
+
...v,
|
|
31
|
+
comment: v.comment,
|
|
32
|
+
app: v.app,
|
|
33
|
+
}))
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
normalActionDefaultSchema,
|
|
5
|
+
transferCryptoCurrencyInSchema,
|
|
6
|
+
} from '../default'
|
|
7
|
+
|
|
8
|
+
export const normalActionAtomicArbitrageSchema = normalActionDefaultSchema
|
|
9
|
+
.extend({
|
|
10
|
+
action: z.literal('atomic-arbitrage'),
|
|
11
|
+
transfers: z.array(transferCryptoCurrencyInSchema),
|
|
12
|
+
})
|
|
13
|
+
.transform((v) => ({
|
|
14
|
+
...v,
|
|
15
|
+
comment: v.comment,
|
|
16
|
+
app: v.app,
|
|
17
|
+
}))
|
|
18
|
+
|
|
19
|
+
export const accountActionAtomicArbitrageSchema =
|
|
20
|
+
normalAccountActionDefaultSchema
|
|
21
|
+
.extend({
|
|
22
|
+
action: z.literal('atomic-arbitrage'),
|
|
23
|
+
transfers: z.array(transferCryptoCurrencyInSchema),
|
|
24
|
+
})
|
|
25
|
+
.transform((v) => ({
|
|
26
|
+
...v,
|
|
27
|
+
comment: v.comment,
|
|
28
|
+
app: v.app,
|
|
29
|
+
}))
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
normalActionDefaultSchema,
|
|
5
|
+
transferNftInSchema,
|
|
6
|
+
} from '../default'
|
|
7
|
+
|
|
8
|
+
export const normalActionFreeMintNftSchema = normalActionDefaultSchema
|
|
9
|
+
.extend({
|
|
10
|
+
action: z.literal('free-mint-nft'),
|
|
11
|
+
transfers: z.array(transferNftInSchema),
|
|
12
|
+
})
|
|
13
|
+
.transform((v) => ({
|
|
14
|
+
...v,
|
|
15
|
+
comment: v.comment,
|
|
16
|
+
app: v.app,
|
|
17
|
+
}))
|
|
18
|
+
|
|
19
|
+
export const accountActionFreeMintNftSchema = normalAccountActionDefaultSchema
|
|
20
|
+
.extend({
|
|
21
|
+
action: z.literal('free-mint-nft'),
|
|
22
|
+
transfers: z.array(transferNftInSchema),
|
|
23
|
+
})
|
|
24
|
+
.transform((v) => ({
|
|
25
|
+
...v,
|
|
26
|
+
comment: v.comment,
|
|
27
|
+
app: v.app,
|
|
28
|
+
}))
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { normalAccountActionDefaultSchema, transferInSchema } from '../default'
|
|
3
|
+
|
|
4
|
+
export const accountActionIncomeSchema = normalAccountActionDefaultSchema
|
|
5
|
+
.extend({
|
|
6
|
+
action: z.literal('income'),
|
|
7
|
+
transfers: z.array(transferInSchema),
|
|
8
|
+
})
|
|
9
|
+
.transform((v) => ({
|
|
10
|
+
...v,
|
|
11
|
+
comment: v.comment,
|
|
12
|
+
app: v.app,
|
|
13
|
+
}))
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export {
|
|
2
|
+
accountActionAtomicArbitrageSchema,
|
|
3
|
+
normalActionAtomicArbitrageSchema,
|
|
4
|
+
} from './atomicArbitrage'
|
|
5
|
+
export {
|
|
6
|
+
accountActionFreeMintNftSchema,
|
|
7
|
+
normalActionFreeMintNftSchema,
|
|
8
|
+
} from './freeMintNft'
|
|
9
|
+
export { accountActionIncomeSchema } from './income'
|
|
10
|
+
export { accountActionNftRoyaltySchema } from './nftRoyalty'
|
|
11
|
+
export { accountActionSwapIncomeSchema } from './swapIncome'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
transferCryptoCurrencyInSchema,
|
|
5
|
+
transferFiatCurrencyInSchema,
|
|
6
|
+
} from '../default'
|
|
7
|
+
|
|
8
|
+
export const accountActionNftRoyaltySchema = normalAccountActionDefaultSchema
|
|
9
|
+
.extend({
|
|
10
|
+
action: z.literal('nft-royalty'),
|
|
11
|
+
transfers: z.array(
|
|
12
|
+
z.union([transferCryptoCurrencyInSchema, transferFiatCurrencyInSchema]),
|
|
13
|
+
),
|
|
14
|
+
})
|
|
15
|
+
.transform((v) => ({
|
|
16
|
+
...v,
|
|
17
|
+
comment: v.comment,
|
|
18
|
+
app: v.app,
|
|
19
|
+
}))
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import {
|
|
3
|
+
normalAccountActionDefaultSchema,
|
|
4
|
+
transferCryptoCurrencyInSchema,
|
|
5
|
+
transferNftInSchema,
|
|
6
|
+
} from '../default'
|
|
7
|
+
|
|
8
|
+
export const accountActionSwapIncomeSchema = normalAccountActionDefaultSchema
|
|
9
|
+
.extend({
|
|
10
|
+
action: z.literal('swap-income'),
|
|
11
|
+
transfers: z.array(
|
|
12
|
+
z.union([transferCryptoCurrencyInSchema, transferNftInSchema]),
|
|
13
|
+
),
|
|
14
|
+
})
|
|
15
|
+
.transform((v) => ({
|
|
16
|
+
...v,
|
|
17
|
+
comment: v.comment,
|
|
18
|
+
app: v.app,
|
|
19
|
+
}))
|