kopia lustrzana https://github.com/bugout-dev/moonstream
added abi decoder
rodzic
a0d642f4c6
commit
5b57ed4f11
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Pydantic schemas for the Moonstream HTTP API
|
Pydantic schemas for the Moonstream HTTP API
|
||||||
"""
|
"""
|
||||||
from typing import List
|
from typing import List, Optional
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
|
@ -41,3 +41,19 @@ class SubscriptionResponse(BaseModel):
|
||||||
|
|
||||||
class SubscriptionsListResponse(BaseModel):
|
class SubscriptionsListResponse(BaseModel):
|
||||||
subscriptions: List[SubscriptionResponse] = Field(default_factory=list)
|
subscriptions: List[SubscriptionResponse] = Field(default_factory=list)
|
||||||
|
|
||||||
|
|
||||||
|
class EVMFunctionSignature(BaseModel):
|
||||||
|
type = "function"
|
||||||
|
hex_signature: str
|
||||||
|
text_signature_candidates: Optional[List[str]] = None
|
||||||
|
|
||||||
|
|
||||||
|
class EVMEventSignature(BaseModel):
|
||||||
|
type = "event"
|
||||||
|
hex_signature: str
|
||||||
|
text_signature_candidates: Optional[List[str]] = None
|
||||||
|
|
||||||
|
class ContractABI(BaseModel):
|
||||||
|
functions: List[EVMFunctionSignature]
|
||||||
|
events: List[EVMEventSignature]
|
Ładowanie…
Reference in New Issue