Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Miller
6249abcef3 add opensea to init file 2021-11-16 19:50:39 -05:00
Robert Miller
0c69828a6f add open sea trace classifier 2021-11-10 20:03:55 -05:00
4 changed files with 21 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -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 .opensea import OPENSEA_CLASSIFIER_SPECS
ALL_CLASSIFIER_SPECS = (
ERC20_CLASSIFIER_SPECS
@ -21,6 +22,7 @@ ALL_CLASSIFIER_SPECS = (
+ ZEROX_CLASSIFIER_SPECS
+ BALANCER_CLASSIFIER_SPECS
+ COMPOUND_CLASSIFIER_SPECS
+ OPENSEA_CLASSIFIER_SPECS
)
_SPECS_BY_ABI_NAME_AND_PROTOCOL: Dict[

View 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]

View File

@ -44,6 +44,7 @@ class Protocol(Enum):
balancer_v1 = "balancer_v1"
compound_v2 = "compound_v2"
cream = "cream"
opensea = "opensea"
class ClassifiedTrace(Trace):