Add support for ribbon deposits
This commit is contained in:
parent
4ae59b8e28
commit
1a911d3a5b
40
mev_inspect/abis/ribbon/RibbonThetaVault.json
Normal file
40
mev_inspect/abis/ribbon/RibbonThetaVault.json
Normal file
@ -0,0 +1,40 @@
|
||||
[
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "deposit",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "depositETH",
|
||||
"outputs": [],
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "creditor",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "depositFor",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}
|
||||
]
|
@ -11,6 +11,7 @@ from .weth import WETH_CLASSIFIER_SPECS, WETH_ADDRESS
|
||||
from .zero_ex import ZEROX_CLASSIFIER_SPECS
|
||||
from .balancer import BALANCER_CLASSIFIER_SPECS
|
||||
from .compound import COMPOUND_CLASSIFIER_SPECS
|
||||
from .ribbon import RIBBON_VAULT_SPEC
|
||||
|
||||
ALL_CLASSIFIER_SPECS = (
|
||||
ERC20_CLASSIFIER_SPECS
|
||||
@ -21,6 +22,7 @@ ALL_CLASSIFIER_SPECS = (
|
||||
+ ZEROX_CLASSIFIER_SPECS
|
||||
+ BALANCER_CLASSIFIER_SPECS
|
||||
+ COMPOUND_CLASSIFIER_SPECS
|
||||
+ [RIBBON_VAULT_SPEC]
|
||||
)
|
||||
|
||||
_SPECS_BY_ABI_NAME_AND_PROTOCOL: Dict[
|
||||
|
19
mev_inspect/classifiers/specs/ribbon.py
Normal file
19
mev_inspect/classifiers/specs/ribbon.py
Normal file
@ -0,0 +1,19 @@
|
||||
from mev_inspect.schemas.classified_traces import Protocol
|
||||
from mev_inspect.schemas.classifiers import ClassifierSpec
|
||||
|
||||
|
||||
RIBBON_VAULT_ADDRESSES = [
|
||||
"0x65a833afDc250D9d38f8CD9bC2B1E3132dB13B2F",
|
||||
"0x0FABaF48Bbf864a3947bdd0Ba9d764791a60467A",
|
||||
"0x8b5876f5B0Bf64056A89Aa7e97511644758c3E8c",
|
||||
"0x16772a7f4a3ca291C21B8AcE76F9332dDFfbb5Ef",
|
||||
"0x8FE74471F198E426e96bE65f40EeD1F8BA96e54f",
|
||||
"0x25751853Eab4D0eB3652B5eB6ecB102A2789644B",
|
||||
]
|
||||
|
||||
|
||||
RIBBON_VAULT_SPEC = ClassifierSpec(
|
||||
abi_name="RibbonThetaVault",
|
||||
protocol=Protocol.ribbon,
|
||||
valid_contract_address=RIBBON_VAULT_ADDRESSES,
|
||||
)
|
@ -23,6 +23,7 @@ class Protocol(Enum):
|
||||
balancer_v1 = "balancer_v1"
|
||||
compound_v2 = "compound_v2"
|
||||
cream = "cream"
|
||||
ribbon = "ribbon"
|
||||
|
||||
|
||||
class ClassifiedTrace(Trace):
|
||||
|
Loading…
x
Reference in New Issue
Block a user