@0xtorch/evm 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.DS_Store +0 -0
- package/_cjs/analyzer/analyze.js.map +1 -1
- package/_cjs/analyzer/axieMarketplace/analyze.js +37 -130
- package/_cjs/analyzer/axieMarketplace/analyze.js.map +1 -1
- package/_cjs/analyzer/gasFee/analyze.js +22 -21
- package/_cjs/analyzer/gasFee/analyze.js.map +1 -1
- package/_cjs/analyzer/index.js +2 -1
- package/_cjs/analyzer/index.js.map +1 -1
- package/_cjs/analyzer/json/analyze.js +21 -29
- package/_cjs/analyzer/json/analyze.js.map +1 -1
- package/_cjs/analyzer/json/components/comment.js +47 -0
- package/_cjs/analyzer/json/components/comment.js.map +1 -0
- package/_cjs/analyzer/json/components/erc1155.js +93 -0
- package/_cjs/analyzer/json/components/erc1155.js.map +1 -0
- package/_cjs/analyzer/json/components/erc1155Raw.js +31 -0
- package/_cjs/analyzer/json/components/erc1155Raw.js.map +1 -0
- package/_cjs/analyzer/json/components/erc20.js +90 -0
- package/_cjs/analyzer/json/components/erc20.js.map +1 -0
- package/_cjs/analyzer/json/components/erc20Raw.js +28 -0
- package/_cjs/analyzer/json/components/erc20Raw.js.map +1 -0
- package/_cjs/analyzer/json/components/erc721.js +78 -0
- package/_cjs/analyzer/json/components/erc721.js.map +1 -0
- package/_cjs/analyzer/json/components/erc721Raw.js +29 -0
- package/_cjs/analyzer/json/components/erc721Raw.js.map +1 -0
- package/_cjs/analyzer/json/components/id.js +47 -0
- package/_cjs/analyzer/json/components/id.js.map +1 -0
- package/_cjs/analyzer/json/components/internal.js +78 -0
- package/_cjs/analyzer/json/components/internal.js.map +1 -0
- package/_cjs/analyzer/json/components/internalRaw.js +26 -0
- package/_cjs/analyzer/json/components/internalRaw.js.map +1 -0
- package/_cjs/analyzer/json/components/logArgument.js +67 -0
- package/_cjs/analyzer/json/components/logArgument.js.map +1 -0
- package/_cjs/analyzer/json/components/logArgumentRaw.js +41 -0
- package/_cjs/analyzer/json/components/logArgumentRaw.js.map +1 -0
- package/_cjs/analyzer/json/components/transfer.js +435 -0
- package/_cjs/analyzer/json/components/transfer.js.map +1 -0
- package/_cjs/analyzer/json/condition/address.js +106 -0
- package/_cjs/analyzer/json/condition/address.js.map +1 -0
- package/_cjs/analyzer/json/condition/argumentValue.js +31 -0
- package/_cjs/analyzer/json/condition/argumentValue.js.map +1 -0
- package/_cjs/analyzer/json/condition/index.js +10 -0
- package/_cjs/analyzer/json/condition/index.js.map +1 -0
- package/_cjs/analyzer/json/condition/value.js +65 -0
- package/_cjs/analyzer/json/condition/value.js.map +1 -0
- package/_cjs/analyzer/json/generator.js +791 -0
- package/_cjs/analyzer/json/generator.js.map +1 -0
- package/_cjs/analyzer/json/index.js +3 -1
- package/_cjs/analyzer/json/index.js.map +1 -1
- package/_cjs/analyzer/json/schemas/generator.js +280 -0
- package/_cjs/analyzer/json/schemas/generator.js.map +1 -0
- package/_cjs/analyzer/json/schemas/index.js +303 -0
- package/_cjs/analyzer/json/schemas/index.js.map +1 -0
- package/_cjs/analyzer/json/schemas/utils.js +14 -0
- package/_cjs/analyzer/json/schemas/utils.js.map +1 -0
- package/_cjs/analyzer/parsers/transfer.js +149 -0
- package/_cjs/analyzer/parsers/transfer.js.map +1 -0
- package/_cjs/analyzer/seaport/analyze.js +165 -157
- package/_cjs/analyzer/seaport/analyze.js.map +1 -1
- package/_cjs/analyzer/spam/analyze.js +61 -90
- package/_cjs/analyzer/spam/analyze.js.map +1 -1
- package/_cjs/analyzer/swap/analyze.js +50 -75
- package/_cjs/analyzer/swap/analyze.js.map +1 -1
- package/_cjs/analyzer/transfer/analyze.js +37 -84
- package/_cjs/analyzer/transfer/analyze.js.map +1 -1
- package/_cjs/index.js +3 -2
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/create.js +28 -0
- package/_cjs/utils/create.js.map +1 -0
- package/_cjs/utils/index.js +3 -1
- package/_cjs/utils/index.js.map +1 -1
- package/_esm/analyzer/analyze.js.map +1 -1
- package/_esm/analyzer/axieMarketplace/analyze.js +37 -130
- package/_esm/analyzer/axieMarketplace/analyze.js.map +1 -1
- package/_esm/analyzer/gasFee/analyze.js +23 -21
- package/_esm/analyzer/gasFee/analyze.js.map +1 -1
- package/_esm/analyzer/index.js +1 -1
- package/_esm/analyzer/index.js.map +1 -1
- package/_esm/analyzer/json/analyze.js +22 -29
- package/_esm/analyzer/json/analyze.js.map +1 -1
- package/_esm/analyzer/json/components/comment.js +43 -0
- package/_esm/analyzer/json/components/comment.js.map +1 -0
- package/_esm/analyzer/json/components/erc1155.js +88 -0
- package/_esm/analyzer/json/components/erc1155.js.map +1 -0
- package/_esm/analyzer/json/components/erc1155Raw.js +27 -0
- package/_esm/analyzer/json/components/erc1155Raw.js.map +1 -0
- package/_esm/analyzer/json/components/erc20.js +85 -0
- package/_esm/analyzer/json/components/erc20.js.map +1 -0
- package/_esm/analyzer/json/components/erc20Raw.js +24 -0
- package/_esm/analyzer/json/components/erc20Raw.js.map +1 -0
- package/_esm/analyzer/json/components/erc721.js +73 -0
- package/_esm/analyzer/json/components/erc721.js.map +1 -0
- package/_esm/analyzer/json/components/erc721Raw.js +25 -0
- package/_esm/analyzer/json/components/erc721Raw.js.map +1 -0
- package/_esm/analyzer/json/components/id.js +43 -0
- package/_esm/analyzer/json/components/id.js.map +1 -0
- package/_esm/analyzer/json/components/internal.js +73 -0
- package/_esm/analyzer/json/components/internal.js.map +1 -0
- package/_esm/analyzer/json/components/internalRaw.js +22 -0
- package/_esm/analyzer/json/components/internalRaw.js.map +1 -0
- package/_esm/analyzer/json/components/logArgument.js +62 -0
- package/_esm/analyzer/json/components/logArgument.js.map +1 -0
- package/_esm/analyzer/json/components/logArgumentRaw.js +37 -0
- package/_esm/analyzer/json/components/logArgumentRaw.js.map +1 -0
- package/_esm/analyzer/json/components/transfer.js +431 -0
- package/_esm/analyzer/json/components/transfer.js.map +1 -0
- package/_esm/analyzer/json/condition/address.js +102 -0
- package/_esm/analyzer/json/condition/address.js.map +1 -0
- package/_esm/analyzer/json/condition/argumentValue.js +27 -0
- package/_esm/analyzer/json/condition/argumentValue.js.map +1 -0
- package/_esm/analyzer/json/condition/index.js +4 -0
- package/_esm/analyzer/json/condition/index.js.map +1 -0
- package/_esm/analyzer/json/condition/value.js +61 -0
- package/_esm/analyzer/json/condition/value.js.map +1 -0
- package/_esm/analyzer/json/generator.js +842 -0
- package/_esm/analyzer/json/generator.js.map +1 -0
- package/_esm/analyzer/json/index.js +1 -0
- package/_esm/analyzer/json/index.js.map +1 -1
- package/_esm/analyzer/json/schemas/generator.js +341 -0
- package/_esm/analyzer/json/schemas/generator.js.map +1 -0
- package/_esm/analyzer/json/schemas/index.js +299 -0
- package/_esm/analyzer/json/schemas/index.js.map +1 -0
- package/_esm/analyzer/json/schemas/utils.js +11 -0
- package/_esm/analyzer/json/schemas/utils.js.map +1 -0
- package/_esm/analyzer/parsers/transfer.js +129 -0
- package/_esm/analyzer/parsers/transfer.js.map +1 -0
- package/_esm/analyzer/seaport/analyze.js +166 -157
- package/_esm/analyzer/seaport/analyze.js.map +1 -1
- package/_esm/analyzer/spam/analyze.js +62 -92
- package/_esm/analyzer/spam/analyze.js.map +1 -1
- package/_esm/analyzer/swap/analyze.js +51 -75
- package/_esm/analyzer/swap/analyze.js.map +1 -1
- package/_esm/analyzer/transfer/analyze.js +38 -86
- package/_esm/analyzer/transfer/analyze.js.map +1 -1
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/utils/create.js +21 -0
- package/_esm/utils/create.js.map +1 -0
- package/_esm/utils/index.js +1 -0
- package/_esm/utils/index.js.map +1 -1
- package/_types/analyzer/analyze.d.ts +11 -16
- package/_types/analyzer/analyze.d.ts.map +1 -1
- package/_types/analyzer/analyzer.d.ts +9 -1
- package/_types/analyzer/analyzer.d.ts.map +1 -1
- package/_types/analyzer/axieMarketplace/analyze.d.ts +9 -2
- package/_types/analyzer/axieMarketplace/analyze.d.ts.map +1 -1
- package/_types/analyzer/gasFee/analyze.d.ts +9 -2
- package/_types/analyzer/gasFee/analyze.d.ts.map +1 -1
- package/_types/analyzer/index.d.ts +1 -1
- package/_types/analyzer/index.d.ts.map +1 -1
- package/_types/analyzer/json/analyze.d.ts +9 -2
- package/_types/analyzer/json/analyze.d.ts.map +1 -1
- package/_types/analyzer/json/components/comment.d.ts +20 -0
- package/_types/analyzer/json/components/comment.d.ts.map +1 -0
- package/_types/analyzer/json/components/erc1155.d.ts +32 -0
- package/_types/analyzer/json/components/erc1155.d.ts.map +1 -0
- package/_types/analyzer/json/components/erc1155Raw.d.ts +18 -0
- package/_types/analyzer/json/components/erc1155Raw.d.ts.map +1 -0
- package/_types/analyzer/json/components/erc20.d.ts +32 -0
- package/_types/analyzer/json/components/erc20.d.ts.map +1 -0
- package/_types/analyzer/json/components/erc20Raw.d.ts +18 -0
- package/_types/analyzer/json/components/erc20Raw.d.ts.map +1 -0
- package/_types/analyzer/json/components/erc721.d.ts +32 -0
- package/_types/analyzer/json/components/erc721.d.ts.map +1 -0
- package/_types/analyzer/json/components/erc721Raw.d.ts +18 -0
- package/_types/analyzer/json/components/erc721Raw.d.ts.map +1 -0
- package/_types/analyzer/json/components/id.d.ts +20 -0
- package/_types/analyzer/json/components/id.d.ts.map +1 -0
- package/_types/analyzer/json/components/internal.d.ts +32 -0
- package/_types/analyzer/json/components/internal.d.ts.map +1 -0
- package/_types/analyzer/json/components/internalRaw.d.ts +18 -0
- package/_types/analyzer/json/components/internalRaw.d.ts.map +1 -0
- package/_types/analyzer/json/components/logArgument.d.ts +32 -0
- package/_types/analyzer/json/components/logArgument.d.ts.map +1 -0
- package/_types/analyzer/json/components/logArgumentRaw.d.ts +18 -0
- package/_types/analyzer/json/components/logArgumentRaw.d.ts.map +1 -0
- package/_types/analyzer/json/components/transfer.d.ts +20 -0
- package/_types/analyzer/json/components/transfer.d.ts.map +1 -0
- package/_types/analyzer/json/condition/address.d.ts +18 -0
- package/_types/analyzer/json/condition/address.d.ts.map +1 -0
- package/_types/analyzer/json/condition/argumentValue.d.ts +18 -0
- package/_types/analyzer/json/condition/argumentValue.d.ts.map +1 -0
- package/_types/analyzer/json/condition/index.d.ts +4 -0
- package/_types/analyzer/json/condition/index.d.ts.map +1 -0
- package/_types/analyzer/json/condition/value.d.ts +18 -0
- package/_types/analyzer/json/condition/value.d.ts.map +1 -0
- package/_types/analyzer/json/generator.d.ts +20 -0
- package/_types/analyzer/json/generator.d.ts.map +1 -0
- package/_types/analyzer/json/index.d.ts +1 -0
- package/_types/analyzer/json/index.d.ts.map +1 -1
- package/_types/analyzer/json/schemas/generator.d.ts +56943 -0
- package/_types/analyzer/json/schemas/generator.d.ts.map +1 -0
- package/_types/analyzer/json/schemas/index.d.ts +1348 -0
- package/_types/analyzer/json/schemas/index.d.ts.map +1 -0
- package/_types/analyzer/json/schemas/utils.d.ts +4 -0
- package/_types/analyzer/json/schemas/utils.d.ts.map +1 -0
- package/_types/analyzer/json/types.d.ts +42 -172
- package/_types/analyzer/json/types.d.ts.map +1 -1
- package/_types/analyzer/parsers/transfer.d.ts +46 -0
- package/_types/analyzer/parsers/transfer.d.ts.map +1 -0
- package/_types/analyzer/seaport/analyze.d.ts +9 -2
- package/_types/analyzer/seaport/analyze.d.ts.map +1 -1
- package/_types/analyzer/seaport/orderFulfilled.d.ts +8 -8
- package/_types/analyzer/spam/analyze.d.ts +9 -2
- package/_types/analyzer/spam/analyze.d.ts.map +1 -1
- package/_types/analyzer/swap/analyze.d.ts +9 -2
- package/_types/analyzer/swap/analyze.d.ts.map +1 -1
- package/_types/analyzer/transfer/analyze.d.ts +9 -2
- package/_types/analyzer/transfer/analyze.d.ts.map +1 -1
- package/_types/analyzer/types.d.ts +6 -6
- package/_types/analyzer/types.d.ts.map +1 -1
- package/_types/decoder/tests.d.ts +2 -2
- package/_types/explorers/definitions/blockscout.d.ts +60 -4
- package/_types/explorers/definitions/blockscout.d.ts.map +1 -1
- package/_types/explorers/definitions/etherscan.d.ts +60 -4
- package/_types/explorers/definitions/etherscan.d.ts.map +1 -1
- package/_types/explorers/definitions/roninExplorer.d.ts +60 -4
- package/_types/explorers/definitions/roninExplorer.d.ts.map +1 -1
- package/_types/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts +2 -2
- package/_types/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts +9 -1
- package/_types/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts.map +1 -1
- package/_types/getTransactionFull/getTransactionFull.d.ts +9 -1
- package/_types/getTransactionFull/getTransactionFull.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/types/log.d.ts +6 -6
- package/_types/types/transaction.d.ts +3 -4
- package/_types/types/transaction.d.ts.map +1 -1
- package/_types/utils/create.d.ts +23 -0
- package/_types/utils/create.d.ts.map +1 -0
- package/_types/utils/index.d.ts +1 -0
- package/_types/utils/index.d.ts.map +1 -1
- package/analyzer/.DS_Store +0 -0
- package/analyzer/analyze.ts +6 -30
- package/analyzer/axieMarketplace/analyze.ts +67 -150
- package/analyzer/gasFee/analyze.ts +29 -36
- package/analyzer/index.ts +1 -1
- package/analyzer/json/analyze.ts +32 -53
- package/analyzer/json/components/comment.ts +62 -0
- package/analyzer/json/components/erc1155.ts +132 -0
- package/analyzer/json/components/erc1155Raw.ts +46 -0
- package/analyzer/json/components/erc20.ts +129 -0
- package/analyzer/json/components/erc20Raw.ts +43 -0
- package/analyzer/json/components/erc721.ts +117 -0
- package/analyzer/json/components/erc721Raw.ts +46 -0
- package/analyzer/json/components/id.ts +62 -0
- package/analyzer/json/components/internal.ts +117 -0
- package/analyzer/json/components/internalRaw.ts +39 -0
- package/analyzer/json/components/logArgument.ts +99 -0
- package/analyzer/json/components/logArgumentRaw.ts +57 -0
- package/analyzer/json/components/transfer.ts +531 -0
- package/analyzer/json/condition/address.ts +124 -0
- package/analyzer/json/condition/argumentValue.ts +43 -0
- package/analyzer/json/condition/index.ts +3 -0
- package/analyzer/json/condition/value.ts +76 -0
- package/analyzer/json/generator.ts +1184 -0
- package/analyzer/json/index.ts +1 -0
- package/analyzer/json/schemas/generator.ts +389 -0
- package/analyzer/json/schemas/index.ts +363 -0
- package/analyzer/json/schemas/utils.ts +12 -0
- package/analyzer/json/types.ts +111 -207
- package/analyzer/parsers/transfer.ts +301 -0
- package/analyzer/seaport/analyze.ts +228 -195
- package/analyzer/spam/analyze.ts +79 -112
- package/analyzer/swap/analyze.ts +67 -101
- package/analyzer/transfer/analyze.ts +54 -100
- package/analyzer/types.ts +5 -21
- package/index.ts +1 -0
- package/package.json +2 -2
- package/types/transaction.ts +2 -14
- package/utils/create.ts +57 -0
- package/utils/index.ts +1 -0
- package/_cjs/analyzer/createAccountActionByAction/addLiquidity.js +0 -28
- package/_cjs/analyzer/createAccountActionByAction/addLiquidity.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/atomicArbitrage.js +0 -79
- package/_cjs/analyzer/createAccountActionByAction/atomicArbitrage.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/bridgeFrom.js +0 -38
- package/_cjs/analyzer/createAccountActionByAction/bridgeFrom.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/bridgeTo.js +0 -38
- package/_cjs/analyzer/createAccountActionByAction/bridgeTo.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/buyNft.js +0 -59
- package/_cjs/analyzer/createAccountActionByAction/buyNft.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/createAccountActionByAction.js +0 -69
- package/_cjs/analyzer/createAccountActionByAction/createAccountActionByAction.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/deposit.js +0 -41
- package/_cjs/analyzer/createAccountActionByAction/deposit.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/depositWithBond.js +0 -28
- package/_cjs/analyzer/createAccountActionByAction/depositWithBond.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/freeMintNft.js +0 -32
- package/_cjs/analyzer/createAccountActionByAction/freeMintNft.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/index.js +0 -6
- package/_cjs/analyzer/createAccountActionByAction/index.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/removeLiquidity.js +0 -28
- package/_cjs/analyzer/createAccountActionByAction/removeLiquidity.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/spam.js +0 -58
- package/_cjs/analyzer/createAccountActionByAction/spam.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/trade.js +0 -59
- package/_cjs/analyzer/createAccountActionByAction/trade.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/transactionFee.js +0 -29
- package/_cjs/analyzer/createAccountActionByAction/transactionFee.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/transfer.js +0 -74
- package/_cjs/analyzer/createAccountActionByAction/transfer.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/withdraw.js +0 -38
- package/_cjs/analyzer/createAccountActionByAction/withdraw.js.map +0 -1
- package/_cjs/analyzer/createAccountActionByAction/withdrawWithBond.js +0 -28
- package/_cjs/analyzer/createAccountActionByAction/withdrawWithBond.js.map +0 -1
- package/_cjs/analyzer/json/generatorAnyLog.js +0 -163
- package/_cjs/analyzer/json/generatorAnyLog.js.map +0 -1
- package/_cjs/analyzer/json/generatorAnyTokenTransfer.js +0 -102
- package/_cjs/analyzer/json/generatorAnyTokenTransfer.js.map +0 -1
- package/_cjs/analyzer/json/generatorSpecificTokenTransfer.js +0 -343
- package/_cjs/analyzer/json/generatorSpecificTokenTransfer.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/addLiquidity.js +0 -24
- package/_esm/analyzer/createAccountActionByAction/addLiquidity.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/atomicArbitrage.js +0 -79
- package/_esm/analyzer/createAccountActionByAction/atomicArbitrage.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/bridgeFrom.js +0 -34
- package/_esm/analyzer/createAccountActionByAction/bridgeFrom.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/bridgeTo.js +0 -34
- package/_esm/analyzer/createAccountActionByAction/bridgeTo.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/buyNft.js +0 -59
- package/_esm/analyzer/createAccountActionByAction/buyNft.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/createAccountActionByAction.js +0 -80
- package/_esm/analyzer/createAccountActionByAction/createAccountActionByAction.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/deposit.js +0 -38
- package/_esm/analyzer/createAccountActionByAction/deposit.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/depositWithBond.js +0 -24
- package/_esm/analyzer/createAccountActionByAction/depositWithBond.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/freeMintNft.js +0 -28
- package/_esm/analyzer/createAccountActionByAction/freeMintNft.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/index.js +0 -2
- package/_esm/analyzer/createAccountActionByAction/index.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/removeLiquidity.js +0 -24
- package/_esm/analyzer/createAccountActionByAction/removeLiquidity.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/spam.js +0 -54
- package/_esm/analyzer/createAccountActionByAction/spam.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/trade.js +0 -59
- package/_esm/analyzer/createAccountActionByAction/trade.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/transactionFee.js +0 -25
- package/_esm/analyzer/createAccountActionByAction/transactionFee.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/transfer.js +0 -70
- package/_esm/analyzer/createAccountActionByAction/transfer.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/withdraw.js +0 -34
- package/_esm/analyzer/createAccountActionByAction/withdraw.js.map +0 -1
- package/_esm/analyzer/createAccountActionByAction/withdrawWithBond.js +0 -24
- package/_esm/analyzer/createAccountActionByAction/withdrawWithBond.js.map +0 -1
- package/_esm/analyzer/json/generatorAnyLog.js +0 -159
- package/_esm/analyzer/json/generatorAnyLog.js.map +0 -1
- package/_esm/analyzer/json/generatorAnyTokenTransfer.js +0 -98
- package/_esm/analyzer/json/generatorAnyTokenTransfer.js.map +0 -1
- package/_esm/analyzer/json/generatorSpecificTokenTransfer.js +0 -339
- package/_esm/analyzer/json/generatorSpecificTokenTransfer.js.map +0 -1
- package/_types/analyzer/createAccountActionByAction/addLiquidity.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/addLiquidity.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/atomicArbitrage.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/atomicArbitrage.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/bridgeFrom.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/bridgeFrom.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/bridgeTo.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/bridgeTo.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/buyNft.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/buyNft.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/createAccountActionByAction.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/createAccountActionByAction.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/deposit.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/deposit.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/depositWithBond.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/depositWithBond.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/freeMintNft.d.ts +0 -53
- package/_types/analyzer/createAccountActionByAction/freeMintNft.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/index.d.ts +0 -2
- package/_types/analyzer/createAccountActionByAction/index.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/removeLiquidity.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/removeLiquidity.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/spam.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/spam.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/trade.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/trade.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/transactionFee.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/transactionFee.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/transfer.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/transfer.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/withdraw.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/withdraw.d.ts.map +0 -1
- package/_types/analyzer/createAccountActionByAction/withdrawWithBond.d.ts +0 -59
- package/_types/analyzer/createAccountActionByAction/withdrawWithBond.d.ts.map +0 -1
- package/_types/analyzer/json/generatorAnyLog.d.ts +0 -55
- package/_types/analyzer/json/generatorAnyLog.d.ts.map +0 -1
- package/_types/analyzer/json/generatorAnyTokenTransfer.d.ts +0 -54
- package/_types/analyzer/json/generatorAnyTokenTransfer.d.ts.map +0 -1
- package/_types/analyzer/json/generatorSpecificTokenTransfer.d.ts +0 -55
- package/_types/analyzer/json/generatorSpecificTokenTransfer.d.ts.map +0 -1
- package/analyzer/createAccountActionByAction/addLiquidity.ts +0 -60
- package/analyzer/createAccountActionByAction/atomicArbitrage.ts +0 -115
- package/analyzer/createAccountActionByAction/bridgeFrom.ts +0 -61
- package/analyzer/createAccountActionByAction/bridgeTo.ts +0 -61
- package/analyzer/createAccountActionByAction/buyNft.ts +0 -106
- package/analyzer/createAccountActionByAction/createAccountActionByAction.ts +0 -181
- package/analyzer/createAccountActionByAction/deposit.ts +0 -64
- package/analyzer/createAccountActionByAction/depositWithBond.ts +0 -60
- package/analyzer/createAccountActionByAction/freeMintNft.ts +0 -54
- package/analyzer/createAccountActionByAction/index.ts +0 -1
- package/analyzer/createAccountActionByAction/removeLiquidity.ts +0 -60
- package/analyzer/createAccountActionByAction/spam.ts +0 -79
- package/analyzer/createAccountActionByAction/trade.ts +0 -105
- package/analyzer/createAccountActionByAction/transactionFee.ts +0 -51
- package/analyzer/createAccountActionByAction/transfer.ts +0 -95
- package/analyzer/createAccountActionByAction/withdraw.ts +0 -61
- package/analyzer/createAccountActionByAction/withdrawWithBond.ts +0 -60
- package/analyzer/json/generatorAnyLog.ts +0 -207
- package/analyzer/json/generatorAnyTokenTransfer.ts +0 -118
- package/analyzer/json/generatorSpecificTokenTransfer.ts +0 -425
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../analyzer/createAccountActionByAction/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,aAAa,CAAA;AAGpB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAK5B,SAAS,QAAQ,EAAE;;;;;;iCA2EtC,CAAA"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { AccountAction, AccountActionType, CryptoCurrencyPrice, NormalActionWithdraw } from '@0xtorch/core';
|
|
2
|
-
import type { EvmAccount, LowerHex, TransactionDecoded, TransactionSource } from '../../types';
|
|
3
|
-
export declare const createAccountActionByActionWithdraw: <Price extends CryptoCurrencyPrice | undefined>(action: NormalActionWithdraw<{
|
|
4
|
-
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
5
|
-
readonly category: "evm";
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly chainId: number;
|
|
8
|
-
readonly address: `0x${Lowercase<string>}`;
|
|
9
|
-
}, Price>, transaction: {
|
|
10
|
-
status: "success" | "reverted";
|
|
11
|
-
value: bigint;
|
|
12
|
-
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
13
|
-
blockHash: `0x${string}`;
|
|
14
|
-
blockNumber: bigint;
|
|
15
|
-
transactionHash: `0x${string}`;
|
|
16
|
-
transactionIndex: number;
|
|
17
|
-
yParity?: number | undefined;
|
|
18
|
-
from: `0x${string}`;
|
|
19
|
-
gas: bigint;
|
|
20
|
-
hash: `0x${string}`;
|
|
21
|
-
input: `0x${string}`;
|
|
22
|
-
nonce: number;
|
|
23
|
-
r: `0x${string}`;
|
|
24
|
-
s: `0x${string}`;
|
|
25
|
-
to: `0x${string}` | null;
|
|
26
|
-
typeHex: `0x${string}` | null;
|
|
27
|
-
v: bigint;
|
|
28
|
-
gasPrice?: bigint | undefined;
|
|
29
|
-
maxFeePerBlobGas?: bigint | undefined;
|
|
30
|
-
maxFeePerGas?: bigint | undefined;
|
|
31
|
-
maxPriorityFeePerGas?: bigint | undefined;
|
|
32
|
-
accessList?: import("viem").AccessList | undefined;
|
|
33
|
-
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
34
|
-
readonly chainId: number;
|
|
35
|
-
blobGasPrice?: bigint | undefined;
|
|
36
|
-
blobGasUsed?: bigint | undefined;
|
|
37
|
-
contractAddress: `0x${string}` | null | undefined;
|
|
38
|
-
cumulativeGasUsed: bigint;
|
|
39
|
-
effectiveGasPrice: bigint;
|
|
40
|
-
gasUsed: bigint;
|
|
41
|
-
logsBloom: `0x${string}`;
|
|
42
|
-
root?: `0x${string}` | undefined;
|
|
43
|
-
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
44
|
-
readonly function: import("../../types/input").InputFunction | undefined;
|
|
45
|
-
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
46
|
-
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
47
|
-
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
48
|
-
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
49
|
-
readonly logs: readonly import("../../types").LogData[];
|
|
50
|
-
readonly app: import("@0xtorch/core").App | undefined;
|
|
51
|
-
readonly nativeTokenPrice: Price;
|
|
52
|
-
}, accountAddresses: readonly LowerHex[]) => AccountAction<"add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "transfer" | "withdraw" | "withdraw-with-bond" | "income" | "move" | "nft-royalty" | "sell-nft" | "swap-income" | "swap-nft" | "swap-transfer", `evm_${number}_0x${Lowercase<string>}`, {
|
|
53
|
-
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
54
|
-
readonly category: "evm";
|
|
55
|
-
readonly name: string;
|
|
56
|
-
readonly chainId: number;
|
|
57
|
-
readonly address: `0x${Lowercase<string>}`;
|
|
58
|
-
} | undefined, Price> | undefined;
|
|
59
|
-
//# sourceMappingURL=withdraw.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withdraw.d.ts","sourceRoot":"","sources":["../../../analyzer/createAccountActionByAction/withdraw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,aAAa,CAAA;AAGpB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAK5B,SAAS,QAAQ,EAAE;;;;;;iCAyCtC,CAAA"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { AccountAction, AccountActionType, CryptoCurrencyPrice, NormalActionWithdrawWithBond } from '@0xtorch/core';
|
|
2
|
-
import type { EvmAccount, LowerHex, TransactionDecoded, TransactionSource } from '../../types';
|
|
3
|
-
export declare const createAccountActionByActionWithdrawWithBond: <Price extends CryptoCurrencyPrice | undefined>(action: NormalActionWithdrawWithBond<{
|
|
4
|
-
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
5
|
-
readonly category: "evm";
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly chainId: number;
|
|
8
|
-
readonly address: `0x${Lowercase<string>}`;
|
|
9
|
-
}, Price>, transaction: {
|
|
10
|
-
status: "success" | "reverted";
|
|
11
|
-
value: bigint;
|
|
12
|
-
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
13
|
-
blockHash: `0x${string}`;
|
|
14
|
-
blockNumber: bigint;
|
|
15
|
-
transactionHash: `0x${string}`;
|
|
16
|
-
transactionIndex: number;
|
|
17
|
-
yParity?: number | undefined;
|
|
18
|
-
from: `0x${string}`;
|
|
19
|
-
gas: bigint;
|
|
20
|
-
hash: `0x${string}`;
|
|
21
|
-
input: `0x${string}`;
|
|
22
|
-
nonce: number;
|
|
23
|
-
r: `0x${string}`;
|
|
24
|
-
s: `0x${string}`;
|
|
25
|
-
to: `0x${string}` | null;
|
|
26
|
-
typeHex: `0x${string}` | null;
|
|
27
|
-
v: bigint;
|
|
28
|
-
gasPrice?: bigint | undefined;
|
|
29
|
-
maxFeePerBlobGas?: bigint | undefined;
|
|
30
|
-
maxFeePerGas?: bigint | undefined;
|
|
31
|
-
maxPriorityFeePerGas?: bigint | undefined;
|
|
32
|
-
accessList?: import("viem").AccessList | undefined;
|
|
33
|
-
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
34
|
-
readonly chainId: number;
|
|
35
|
-
blobGasPrice?: bigint | undefined;
|
|
36
|
-
blobGasUsed?: bigint | undefined;
|
|
37
|
-
contractAddress: `0x${string}` | null | undefined;
|
|
38
|
-
cumulativeGasUsed: bigint;
|
|
39
|
-
effectiveGasPrice: bigint;
|
|
40
|
-
gasUsed: bigint;
|
|
41
|
-
logsBloom: `0x${string}`;
|
|
42
|
-
root?: `0x${string}` | undefined;
|
|
43
|
-
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
44
|
-
readonly function: import("../../types/input").InputFunction | undefined;
|
|
45
|
-
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
46
|
-
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
47
|
-
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
48
|
-
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
49
|
-
readonly logs: readonly import("../../types").LogData[];
|
|
50
|
-
readonly app: import("@0xtorch/core").App | undefined;
|
|
51
|
-
readonly nativeTokenPrice: Price;
|
|
52
|
-
}, accountAddresses: readonly LowerHex[]) => AccountAction<"add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "transfer" | "withdraw" | "withdraw-with-bond" | "income" | "move" | "nft-royalty" | "sell-nft" | "swap-income" | "swap-nft" | "swap-transfer", `evm_${number}_0x${Lowercase<string>}`, {
|
|
53
|
-
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
54
|
-
readonly category: "evm";
|
|
55
|
-
readonly name: string;
|
|
56
|
-
readonly chainId: number;
|
|
57
|
-
readonly address: `0x${Lowercase<string>}`;
|
|
58
|
-
} | undefined, Price> | undefined;
|
|
59
|
-
//# sourceMappingURL=withdrawWithBond.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawWithBond.d.ts","sourceRoot":"","sources":["../../../analyzer/createAccountActionByAction/withdrawWithBond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,aAAa,CAAA;AAGpB,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAKpC,SAAS,QAAQ,EAAE;;;;;;iCAwCtC,CAAA"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { ActionType, CryptoCurrencyPrice, NormalAction } from '@0xtorch/core';
|
|
2
|
-
import type { Chain } from '../../chains';
|
|
3
|
-
import type { EvmAccount, LogData, TransactionDecoded } from '../../types';
|
|
4
|
-
import type { ActionGeneratorAnyLog } from './types';
|
|
5
|
-
export declare const generateActionsByAnyLogGenerator: <Price extends CryptoCurrencyPrice | undefined>(generator: ActionGeneratorAnyLog, chain: Chain, transaction: {
|
|
6
|
-
status: "success" | "reverted";
|
|
7
|
-
value: bigint;
|
|
8
|
-
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
9
|
-
blockHash: `0x${string}`;
|
|
10
|
-
blockNumber: bigint;
|
|
11
|
-
transactionHash: `0x${string}`;
|
|
12
|
-
transactionIndex: number;
|
|
13
|
-
yParity?: number | undefined;
|
|
14
|
-
from: `0x${string}`;
|
|
15
|
-
gas: bigint;
|
|
16
|
-
hash: `0x${string}`;
|
|
17
|
-
input: `0x${string}`;
|
|
18
|
-
nonce: number;
|
|
19
|
-
r: `0x${string}`;
|
|
20
|
-
s: `0x${string}`;
|
|
21
|
-
to: `0x${string}` | null;
|
|
22
|
-
typeHex: `0x${string}` | null;
|
|
23
|
-
v: bigint;
|
|
24
|
-
gasPrice?: bigint | undefined;
|
|
25
|
-
maxFeePerBlobGas?: bigint | undefined;
|
|
26
|
-
maxFeePerGas?: bigint | undefined;
|
|
27
|
-
maxPriorityFeePerGas?: bigint | undefined;
|
|
28
|
-
accessList?: import("viem").AccessList | undefined;
|
|
29
|
-
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
30
|
-
readonly chainId: number;
|
|
31
|
-
blobGasPrice?: bigint | undefined;
|
|
32
|
-
blobGasUsed?: bigint | undefined;
|
|
33
|
-
contractAddress: `0x${string}` | null | undefined;
|
|
34
|
-
cumulativeGasUsed: bigint;
|
|
35
|
-
effectiveGasPrice: bigint;
|
|
36
|
-
gasUsed: bigint;
|
|
37
|
-
logsBloom: `0x${string}`;
|
|
38
|
-
root?: `0x${string}` | undefined;
|
|
39
|
-
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
40
|
-
readonly function: import("../../types/input").InputFunction | undefined;
|
|
41
|
-
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
42
|
-
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
43
|
-
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
44
|
-
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
45
|
-
readonly logs: readonly LogData[];
|
|
46
|
-
readonly app: import("@0xtorch/core").App | undefined;
|
|
47
|
-
readonly nativeTokenPrice: Price;
|
|
48
|
-
}) => NormalAction<"add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "transfer" | "withdraw" | "withdraw-with-bond", {
|
|
49
|
-
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
50
|
-
readonly category: "evm";
|
|
51
|
-
readonly name: string;
|
|
52
|
-
readonly chainId: number;
|
|
53
|
-
readonly address: `0x${Lowercase<string>}`;
|
|
54
|
-
}, Price>[];
|
|
55
|
-
//# sourceMappingURL=generatorAnyLog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generatorAnyLog.d.ts","sourceRoot":"","sources":["../../../analyzer/json/generatorAnyLog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EAEP,kBAAkB,EACnB,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EACV,qBAAqB,EAGtB,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,gCAAgC,6DAGhC,qBAAqB,SACzB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAqEb,CAAA"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ActionType, CryptoCurrencyPrice, NormalAction } from '@0xtorch/core';
|
|
2
|
-
import type { EvmAccount, TransactionDecoded } from '../../types';
|
|
3
|
-
import type { ActionGeneratorAnyTokenTransfer } from './types';
|
|
4
|
-
export declare const generateActionsByAnyTokenTransferGenerator: <Price extends CryptoCurrencyPrice | undefined>(generator: ActionGeneratorAnyTokenTransfer, transaction: {
|
|
5
|
-
status: "success" | "reverted";
|
|
6
|
-
value: bigint;
|
|
7
|
-
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
8
|
-
blockHash: `0x${string}`;
|
|
9
|
-
blockNumber: bigint;
|
|
10
|
-
transactionHash: `0x${string}`;
|
|
11
|
-
transactionIndex: number;
|
|
12
|
-
yParity?: number | undefined;
|
|
13
|
-
from: `0x${string}`;
|
|
14
|
-
gas: bigint;
|
|
15
|
-
hash: `0x${string}`;
|
|
16
|
-
input: `0x${string}`;
|
|
17
|
-
nonce: number;
|
|
18
|
-
r: `0x${string}`;
|
|
19
|
-
s: `0x${string}`;
|
|
20
|
-
to: `0x${string}` | null;
|
|
21
|
-
typeHex: `0x${string}` | null;
|
|
22
|
-
v: bigint;
|
|
23
|
-
gasPrice?: bigint | undefined;
|
|
24
|
-
maxFeePerBlobGas?: bigint | undefined;
|
|
25
|
-
maxFeePerGas?: bigint | undefined;
|
|
26
|
-
maxPriorityFeePerGas?: bigint | undefined;
|
|
27
|
-
accessList?: import("viem").AccessList | undefined;
|
|
28
|
-
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
29
|
-
readonly chainId: number;
|
|
30
|
-
blobGasPrice?: bigint | undefined;
|
|
31
|
-
blobGasUsed?: bigint | undefined;
|
|
32
|
-
contractAddress: `0x${string}` | null | undefined;
|
|
33
|
-
cumulativeGasUsed: bigint;
|
|
34
|
-
effectiveGasPrice: bigint;
|
|
35
|
-
gasUsed: bigint;
|
|
36
|
-
logsBloom: `0x${string}`;
|
|
37
|
-
root?: `0x${string}` | undefined;
|
|
38
|
-
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
39
|
-
readonly function: import("../../types/input").InputFunction | undefined;
|
|
40
|
-
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
41
|
-
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
42
|
-
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
43
|
-
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
44
|
-
readonly logs: readonly import("../../types").LogData[];
|
|
45
|
-
readonly app: import("@0xtorch/core").App | undefined;
|
|
46
|
-
readonly nativeTokenPrice: Price;
|
|
47
|
-
}) => NormalAction<"add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "transfer" | "withdraw" | "withdraw-with-bond", {
|
|
48
|
-
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
49
|
-
readonly category: "evm";
|
|
50
|
-
readonly name: string;
|
|
51
|
-
readonly chainId: number;
|
|
52
|
-
readonly address: `0x${Lowercase<string>}`;
|
|
53
|
-
}, Price>[];
|
|
54
|
-
//# sourceMappingURL=generatorAnyTokenTransfer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generatorAnyTokenTransfer.d.ts","sourceRoot":"","sources":["../../../analyzer/json/generatorAnyTokenTransfer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAY,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAC3E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAA;AAE9D,eAAO,MAAM,0CAA0C,6DAG1C,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAwG3C,CAAA"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { ActionType, CryptoCurrencyPrice, NormalAction } from '@0xtorch/core';
|
|
2
|
-
import type { Chain } from '../../chains';
|
|
3
|
-
import type { EvmAccount, TransactionDecoded } from '../../types';
|
|
4
|
-
import type { ActionGeneratorSpecificTokenTransfer } from './types';
|
|
5
|
-
export declare const generateActionBySpecificTokenTransferGenerator: <Price extends CryptoCurrencyPrice | undefined>(generator: ActionGeneratorSpecificTokenTransfer, chain: Chain, transaction: {
|
|
6
|
-
status: "success" | "reverted";
|
|
7
|
-
value: bigint;
|
|
8
|
-
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
9
|
-
blockHash: `0x${string}`;
|
|
10
|
-
blockNumber: bigint;
|
|
11
|
-
transactionHash: `0x${string}`;
|
|
12
|
-
transactionIndex: number;
|
|
13
|
-
yParity?: number | undefined;
|
|
14
|
-
from: `0x${string}`;
|
|
15
|
-
gas: bigint;
|
|
16
|
-
hash: `0x${string}`;
|
|
17
|
-
input: `0x${string}`;
|
|
18
|
-
nonce: number;
|
|
19
|
-
r: `0x${string}`;
|
|
20
|
-
s: `0x${string}`;
|
|
21
|
-
to: `0x${string}` | null;
|
|
22
|
-
typeHex: `0x${string}` | null;
|
|
23
|
-
v: bigint;
|
|
24
|
-
gasPrice?: bigint | undefined;
|
|
25
|
-
maxFeePerBlobGas?: bigint | undefined;
|
|
26
|
-
maxFeePerGas?: bigint | undefined;
|
|
27
|
-
maxPriorityFeePerGas?: bigint | undefined;
|
|
28
|
-
accessList?: import("viem").AccessList | undefined;
|
|
29
|
-
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
30
|
-
readonly chainId: number;
|
|
31
|
-
blobGasPrice?: bigint | undefined;
|
|
32
|
-
blobGasUsed?: bigint | undefined;
|
|
33
|
-
contractAddress: `0x${string}` | null | undefined;
|
|
34
|
-
cumulativeGasUsed: bigint;
|
|
35
|
-
effectiveGasPrice: bigint;
|
|
36
|
-
gasUsed: bigint;
|
|
37
|
-
logsBloom: `0x${string}`;
|
|
38
|
-
root?: `0x${string}` | undefined;
|
|
39
|
-
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
40
|
-
readonly function: import("../../types/input").InputFunction | undefined;
|
|
41
|
-
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
42
|
-
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
43
|
-
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
44
|
-
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
45
|
-
readonly logs: readonly import("../../types").LogData[];
|
|
46
|
-
readonly app: import("@0xtorch/core").App | undefined;
|
|
47
|
-
readonly nativeTokenPrice: Price;
|
|
48
|
-
}) => NormalAction<"add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "transfer" | "withdraw" | "withdraw-with-bond", {
|
|
49
|
-
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
50
|
-
readonly category: "evm";
|
|
51
|
-
readonly name: string;
|
|
52
|
-
readonly chainId: number;
|
|
53
|
-
readonly address: `0x${Lowercase<string>}`;
|
|
54
|
-
}, Price>;
|
|
55
|
-
//# sourceMappingURL=generatorSpecificTokenTransfer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generatorSpecificTokenTransfer.d.ts","sourceRoot":"","sources":["../../../analyzer/json/generatorSpecificTokenTransfer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAY,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,EACV,oCAAoC,EAIrC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,8CAA8C,6DAG9C,oCAAoC,SACxC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAwCb,CAAA"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AccountAction,
|
|
3
|
-
AccountActionType,
|
|
4
|
-
CryptoCurrencyPrice,
|
|
5
|
-
NormalActionAddLiquidity,
|
|
6
|
-
} from '@0xtorch/core'
|
|
7
|
-
import type {
|
|
8
|
-
EvmAccount,
|
|
9
|
-
LowerHex,
|
|
10
|
-
TransactionDecoded,
|
|
11
|
-
TransactionSource,
|
|
12
|
-
} from '../../types'
|
|
13
|
-
import { toLowerHex } from '../../types'
|
|
14
|
-
|
|
15
|
-
export const createAccountActionByActionAddLiquidity = <
|
|
16
|
-
Price extends CryptoCurrencyPrice | undefined,
|
|
17
|
-
>(
|
|
18
|
-
action: NormalActionAddLiquidity<EvmAccount, Price>,
|
|
19
|
-
transaction: TransactionDecoded<Price>,
|
|
20
|
-
accountAddresses: readonly LowerHex[],
|
|
21
|
-
):
|
|
22
|
-
| AccountAction<
|
|
23
|
-
AccountActionType,
|
|
24
|
-
TransactionSource,
|
|
25
|
-
EvmAccount | undefined,
|
|
26
|
-
Price
|
|
27
|
-
>
|
|
28
|
-
| undefined => {
|
|
29
|
-
const transfersIn = action.transfers.filter(
|
|
30
|
-
(transfer) => transfer.direction === 'in',
|
|
31
|
-
)
|
|
32
|
-
const transfersOut = action.transfers.filter(
|
|
33
|
-
(transfer) => transfer.direction === 'out',
|
|
34
|
-
)
|
|
35
|
-
if (transfersOut.length === 0) {
|
|
36
|
-
throw new Error('invalid action')
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const source =
|
|
40
|
-
`evm_${transaction.chainId}_${toLowerHex(transaction.transactionHash)}` as const
|
|
41
|
-
|
|
42
|
-
return transfersIn.every((transfer) =>
|
|
43
|
-
accountAddresses.includes(transfer.to.address),
|
|
44
|
-
) &&
|
|
45
|
-
transfersOut.every((transfer) =>
|
|
46
|
-
accountAddresses.includes(transfer.from.address),
|
|
47
|
-
)
|
|
48
|
-
? {
|
|
49
|
-
type: 'AccountAction',
|
|
50
|
-
action: 'add-liquidity',
|
|
51
|
-
source,
|
|
52
|
-
evidence: action.evidence,
|
|
53
|
-
timestamp: action.timestamp,
|
|
54
|
-
order: 0,
|
|
55
|
-
comment: action.comment,
|
|
56
|
-
app: action.app,
|
|
57
|
-
transfers: action.transfers,
|
|
58
|
-
}
|
|
59
|
-
: undefined
|
|
60
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { createBigDecimal, greaterThan } from '@0xtorch/big-decimal'
|
|
2
|
-
import type {
|
|
3
|
-
AccountAction,
|
|
4
|
-
AccountActionType,
|
|
5
|
-
CryptoCurrencyPrice,
|
|
6
|
-
NormalActionAtomicArbitrage,
|
|
7
|
-
} from '@0xtorch/core'
|
|
8
|
-
import type {
|
|
9
|
-
EvmAccount,
|
|
10
|
-
LowerHex,
|
|
11
|
-
TransactionDecoded,
|
|
12
|
-
TransactionSource,
|
|
13
|
-
} from '../../types'
|
|
14
|
-
import { toLowerHex } from '../../types'
|
|
15
|
-
|
|
16
|
-
export const createAccountActionByActionAtomicArbitrage = <
|
|
17
|
-
Price extends CryptoCurrencyPrice | undefined,
|
|
18
|
-
>(
|
|
19
|
-
action: NormalActionAtomicArbitrage<EvmAccount, Price>,
|
|
20
|
-
transaction: TransactionDecoded<Price>,
|
|
21
|
-
accountAddresses: readonly LowerHex[],
|
|
22
|
-
):
|
|
23
|
-
| AccountAction<
|
|
24
|
-
AccountActionType,
|
|
25
|
-
TransactionSource,
|
|
26
|
-
EvmAccount | undefined,
|
|
27
|
-
Price
|
|
28
|
-
>
|
|
29
|
-
| undefined => {
|
|
30
|
-
if (action.transfers.length !== 2) {
|
|
31
|
-
throw new Error('invalid action')
|
|
32
|
-
}
|
|
33
|
-
const transferIn = action.transfers.find(
|
|
34
|
-
(transfer) => transfer.direction === 'in',
|
|
35
|
-
)
|
|
36
|
-
const transferOut = action.transfers.find(
|
|
37
|
-
(transfer) => transfer.direction === 'out',
|
|
38
|
-
)
|
|
39
|
-
if (transferIn === undefined || transferOut === undefined) {
|
|
40
|
-
throw new Error('invalid action')
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const source =
|
|
44
|
-
`evm_${transaction.chainId}_${toLowerHex(transaction.transactionHash)}` as const
|
|
45
|
-
if (
|
|
46
|
-
accountAddresses.includes(transferIn.to.address) &&
|
|
47
|
-
accountAddresses.includes(transferOut.from.address)
|
|
48
|
-
) {
|
|
49
|
-
// transfers の両側が自分の address の場合は atomic-arbitrage として扱う
|
|
50
|
-
return {
|
|
51
|
-
type: 'AccountAction',
|
|
52
|
-
action: 'atomic-arbitrage',
|
|
53
|
-
source,
|
|
54
|
-
evidence: action.evidence,
|
|
55
|
-
timestamp: action.timestamp,
|
|
56
|
-
order: 0,
|
|
57
|
-
comment: action.comment,
|
|
58
|
-
app: action.app,
|
|
59
|
-
transfers: [
|
|
60
|
-
{
|
|
61
|
-
target: transferIn.to.address,
|
|
62
|
-
direction: greaterThan(transferIn.amount, transferOut.amount)
|
|
63
|
-
? 'in'
|
|
64
|
-
: 'out',
|
|
65
|
-
from: greaterThan(transferIn.amount, transferOut.amount)
|
|
66
|
-
? undefined
|
|
67
|
-
: transferIn.to,
|
|
68
|
-
to: greaterThan(transferIn.amount, transferOut.amount)
|
|
69
|
-
? transferIn.to
|
|
70
|
-
: undefined,
|
|
71
|
-
asset: transferIn.asset,
|
|
72
|
-
amount: greaterThan(transferIn.amount, transferOut.amount)
|
|
73
|
-
? createBigDecimal(
|
|
74
|
-
transferIn.amount.value - transferOut.amount.value,
|
|
75
|
-
transferIn.amount.decimals,
|
|
76
|
-
)
|
|
77
|
-
: createBigDecimal(
|
|
78
|
-
transferOut.amount.value - transferIn.amount.value,
|
|
79
|
-
transferIn.amount.decimals,
|
|
80
|
-
),
|
|
81
|
-
price: transferIn.price,
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
}
|
|
85
|
-
} else if (accountAddresses.includes(transferIn.to.address)) {
|
|
86
|
-
// transfers の in 側が自分の address の場合は swap-income として扱う
|
|
87
|
-
return {
|
|
88
|
-
type: 'AccountAction',
|
|
89
|
-
action: 'swap-income',
|
|
90
|
-
source,
|
|
91
|
-
evidence: action.evidence,
|
|
92
|
-
timestamp: action.timestamp,
|
|
93
|
-
order: 0,
|
|
94
|
-
comment: action.comment,
|
|
95
|
-
app: action.app,
|
|
96
|
-
transfers: [transferIn],
|
|
97
|
-
}
|
|
98
|
-
} else if (accountAddresses.includes(transferOut.from.address)) {
|
|
99
|
-
// transfers の out 側が自分の address の場合は swap-transfer として扱う
|
|
100
|
-
return {
|
|
101
|
-
type: 'AccountAction',
|
|
102
|
-
action: 'swap-transfer',
|
|
103
|
-
source,
|
|
104
|
-
evidence: action.evidence,
|
|
105
|
-
timestamp: action.timestamp,
|
|
106
|
-
order: 0,
|
|
107
|
-
comment: action.comment,
|
|
108
|
-
app: action.app,
|
|
109
|
-
transfers: [transferOut],
|
|
110
|
-
}
|
|
111
|
-
} else {
|
|
112
|
-
// transfers の両側が自分の address でない場合は undefined を返す
|
|
113
|
-
return undefined
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AccountAction,
|
|
3
|
-
AccountActionType,
|
|
4
|
-
CryptoCurrencyPrice,
|
|
5
|
-
NormalActionBridgeFrom,
|
|
6
|
-
} from '@0xtorch/core'
|
|
7
|
-
import type {
|
|
8
|
-
EvmAccount,
|
|
9
|
-
LowerHex,
|
|
10
|
-
TransactionDecoded,
|
|
11
|
-
TransactionSource,
|
|
12
|
-
} from '../../types'
|
|
13
|
-
import { toLowerHex } from '../../types'
|
|
14
|
-
|
|
15
|
-
export const createAccountActionByActionBridgeFrom = <
|
|
16
|
-
Price extends CryptoCurrencyPrice | undefined,
|
|
17
|
-
>(
|
|
18
|
-
action: NormalActionBridgeFrom<EvmAccount, Price>,
|
|
19
|
-
transaction: TransactionDecoded<Price>,
|
|
20
|
-
accountAddresses: readonly LowerHex[],
|
|
21
|
-
):
|
|
22
|
-
| AccountAction<
|
|
23
|
-
AccountActionType,
|
|
24
|
-
TransactionSource,
|
|
25
|
-
EvmAccount | undefined,
|
|
26
|
-
Price
|
|
27
|
-
>
|
|
28
|
-
| undefined => {
|
|
29
|
-
if (action.transfers.length !== 1) {
|
|
30
|
-
throw new Error('invalid action')
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const transfer = action.transfers[0]
|
|
34
|
-
if (
|
|
35
|
-
accountAddresses.includes(transfer.from.address) &&
|
|
36
|
-
accountAddresses.includes(transfer.to.address)
|
|
37
|
-
) {
|
|
38
|
-
return undefined
|
|
39
|
-
} else if (accountAddresses.includes(transfer.from.address)) {
|
|
40
|
-
return {
|
|
41
|
-
type: 'AccountAction',
|
|
42
|
-
action: 'bridge-from',
|
|
43
|
-
source:
|
|
44
|
-
`evm_${transaction.chainId}_${toLowerHex(transaction.transactionHash)}` as const,
|
|
45
|
-
evidence: action.evidence,
|
|
46
|
-
timestamp: action.timestamp,
|
|
47
|
-
order: 0,
|
|
48
|
-
comment: action.comment,
|
|
49
|
-
app: action.app,
|
|
50
|
-
transfers: [
|
|
51
|
-
{
|
|
52
|
-
...transfer,
|
|
53
|
-
target: transfer.from.address,
|
|
54
|
-
direction: 'out',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
59
|
-
return undefined
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AccountAction,
|
|
3
|
-
AccountActionType,
|
|
4
|
-
CryptoCurrencyPrice,
|
|
5
|
-
NormalActionBridgeTo,
|
|
6
|
-
} from '@0xtorch/core'
|
|
7
|
-
import type {
|
|
8
|
-
EvmAccount,
|
|
9
|
-
LowerHex,
|
|
10
|
-
TransactionDecoded,
|
|
11
|
-
TransactionSource,
|
|
12
|
-
} from '../../types'
|
|
13
|
-
import { toLowerHex } from '../../types'
|
|
14
|
-
|
|
15
|
-
export const createAccountActionByActionBridgeTo = <
|
|
16
|
-
Price extends CryptoCurrencyPrice | undefined,
|
|
17
|
-
>(
|
|
18
|
-
action: NormalActionBridgeTo<EvmAccount, Price>,
|
|
19
|
-
transaction: TransactionDecoded<Price>,
|
|
20
|
-
accountAddresses: readonly LowerHex[],
|
|
21
|
-
):
|
|
22
|
-
| AccountAction<
|
|
23
|
-
AccountActionType,
|
|
24
|
-
TransactionSource,
|
|
25
|
-
EvmAccount | undefined,
|
|
26
|
-
Price
|
|
27
|
-
>
|
|
28
|
-
| undefined => {
|
|
29
|
-
if (action.transfers.length !== 1) {
|
|
30
|
-
throw new Error('invalid action')
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const transfer = action.transfers[0]
|
|
34
|
-
if (
|
|
35
|
-
accountAddresses.includes(transfer.from.address) &&
|
|
36
|
-
accountAddresses.includes(transfer.to.address)
|
|
37
|
-
) {
|
|
38
|
-
return undefined
|
|
39
|
-
} else if (accountAddresses.includes(transfer.to.address)) {
|
|
40
|
-
return {
|
|
41
|
-
type: 'AccountAction',
|
|
42
|
-
action: 'bridge-to',
|
|
43
|
-
source:
|
|
44
|
-
`evm_${transaction.chainId}_${toLowerHex(transaction.transactionHash)}` as const,
|
|
45
|
-
evidence: action.evidence,
|
|
46
|
-
timestamp: action.timestamp,
|
|
47
|
-
order: 0,
|
|
48
|
-
comment: action.comment,
|
|
49
|
-
app: action.app,
|
|
50
|
-
transfers: [
|
|
51
|
-
{
|
|
52
|
-
...transfer,
|
|
53
|
-
target: transfer.to.address,
|
|
54
|
-
direction: 'in',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
59
|
-
return undefined
|
|
60
|
-
}
|
|
61
|
-
}
|