Add UniswapV3 callbacks
This commit is contained in:
parent
2e97193efd
commit
3e90b94e50
25
mev_inspect/abis/uniswap_v3/IUniswapV3FlashCallback.json
Normal file
25
mev_inspect/abis/uniswap_v3/IUniswapV3FlashCallback.json
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"internalType": "uint256",
|
||||||
|
"name": "fee0",
|
||||||
|
"type": "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"internalType": "uint256",
|
||||||
|
"name": "fee1",
|
||||||
|
"type": "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"internalType": "bytes",
|
||||||
|
"name": "data",
|
||||||
|
"type": "bytes"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "uniswapV3FlashCallback",
|
||||||
|
"outputs": [],
|
||||||
|
"stateMutability": "nonpayable",
|
||||||
|
"type": "function"
|
||||||
|
}
|
||||||
|
]
|
1
mev_inspect/abis/uniswap_v3/IUniswapV3MintCallback.json
Normal file
1
mev_inspect/abis/uniswap_v3/IUniswapV3MintCallback.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
[{"inputs":[{"internalType":"uint256","name":"amount0Owed","type":"uint256"},{"internalType":"uint256","name":"amount1Owed","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3MintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"}]
|
1
mev_inspect/abis/uniswap_v3/IUniswapV3SwapCallback.json
Normal file
1
mev_inspect/abis/uniswap_v3/IUniswapV3SwapCallback.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
[{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"}]
|
@ -63,12 +63,24 @@ UNISWAP_V3_CONTRACT_SPECS = [
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
UNISWAP_V3_POOL_SPEC = ClassifierSpec(
|
UNISWAP_V3_GENERAL_SPECS = [
|
||||||
|
ClassifierSpec(
|
||||||
abi_name="UniswapV3Pool",
|
abi_name="UniswapV3Pool",
|
||||||
classifications={
|
classifications={
|
||||||
"swap(address,bool,int256,uint160,bytes)": Classification.swap,
|
"swap(address,bool,int256,uint160,bytes)": Classification.swap,
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
|
ClassifierSpec(
|
||||||
|
abi_name="IUniswapV3SwapCallback",
|
||||||
|
),
|
||||||
|
ClassifierSpec(
|
||||||
|
abi_name="IUniswapV3MintCallback",
|
||||||
|
),
|
||||||
|
ClassifierSpec(
|
||||||
|
abi_name="IUniswapV3FlashCallback",
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
UNISWAPPY_V2_CONTRACT_SPECS = [
|
UNISWAPPY_V2_CONTRACT_SPECS = [
|
||||||
ClassifierSpec(
|
ClassifierSpec(
|
||||||
@ -93,6 +105,6 @@ UNISWAPPY_V2_PAIR_SPEC = ClassifierSpec(
|
|||||||
UNISWAP_CLASSIFIER_SPECS = [
|
UNISWAP_CLASSIFIER_SPECS = [
|
||||||
*UNISWAP_V3_CONTRACT_SPECS,
|
*UNISWAP_V3_CONTRACT_SPECS,
|
||||||
*UNISWAPPY_V2_CONTRACT_SPECS,
|
*UNISWAPPY_V2_CONTRACT_SPECS,
|
||||||
UNISWAP_V3_POOL_SPEC,
|
*UNISWAP_V3_GENERAL_SPECS,
|
||||||
UNISWAPPY_V2_PAIR_SPEC,
|
UNISWAPPY_V2_PAIR_SPEC,
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user