Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6249abcef3 | ||
|
0c69828a6f |
1
mev_inspect/abis/opensea/OpenSea.json
Normal file
1
mev_inspect/abis/opensea/OpenSea.json
Normal file
File diff suppressed because one or more lines are too long
@ -11,6 +11,7 @@ from .weth import WETH_CLASSIFIER_SPECS, WETH_ADDRESS
|
|||||||
from .zero_ex import ZEROX_CLASSIFIER_SPECS
|
from .zero_ex import ZEROX_CLASSIFIER_SPECS
|
||||||
from .balancer import BALANCER_CLASSIFIER_SPECS
|
from .balancer import BALANCER_CLASSIFIER_SPECS
|
||||||
from .compound import COMPOUND_CLASSIFIER_SPECS
|
from .compound import COMPOUND_CLASSIFIER_SPECS
|
||||||
|
from .opensea import OPENSEA_CLASSIFIER_SPECS
|
||||||
|
|
||||||
ALL_CLASSIFIER_SPECS = (
|
ALL_CLASSIFIER_SPECS = (
|
||||||
ERC20_CLASSIFIER_SPECS
|
ERC20_CLASSIFIER_SPECS
|
||||||
@ -21,6 +22,7 @@ ALL_CLASSIFIER_SPECS = (
|
|||||||
+ ZEROX_CLASSIFIER_SPECS
|
+ ZEROX_CLASSIFIER_SPECS
|
||||||
+ BALANCER_CLASSIFIER_SPECS
|
+ BALANCER_CLASSIFIER_SPECS
|
||||||
+ COMPOUND_CLASSIFIER_SPECS
|
+ COMPOUND_CLASSIFIER_SPECS
|
||||||
|
+ OPENSEA_CLASSIFIER_SPECS
|
||||||
)
|
)
|
||||||
|
|
||||||
_SPECS_BY_ABI_NAME_AND_PROTOCOL: Dict[
|
_SPECS_BY_ABI_NAME_AND_PROTOCOL: Dict[
|
||||||
|
17
mev_inspect/classifiers/specs/opensea.py
Normal file
17
mev_inspect/classifiers/specs/opensea.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
from mev_inspect.schemas.traces import (
|
||||||
|
Protocol,
|
||||||
|
)
|
||||||
|
from mev_inspect.schemas.classifiers import (
|
||||||
|
ClassifierSpec,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
OPEN_SEA_SPEC = [
|
||||||
|
ClassifierSpec(
|
||||||
|
abi_name="OpenSea",
|
||||||
|
protocol=Protocol.opensea,
|
||||||
|
valid_contract_addresses=["0x7be8076f4ea4a4ad08075c2508e481d6c946d12b"],
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
OPENSEA_CLASSIFIER_SPECS = [OPEN_SEA_SPEC]
|
@ -44,6 +44,7 @@ class Protocol(Enum):
|
|||||||
balancer_v1 = "balancer_v1"
|
balancer_v1 = "balancer_v1"
|
||||||
compound_v2 = "compound_v2"
|
compound_v2 = "compound_v2"
|
||||||
cream = "cream"
|
cream = "cream"
|
||||||
|
opensea = "opensea"
|
||||||
|
|
||||||
|
|
||||||
class ClassifiedTrace(Trace):
|
class ClassifiedTrace(Trace):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user