Documentation ¶
Index ¶
- func BaseUrl() *url.URL
- func WithHexSignature(hex string) filterOption
- func WithPageNumber(num int) filterOption
- func WithTextSignature(text string) filterOption
- type ImportResponse
- type Signature
- func CreateEventSignature(ctx context.Context, textSignature string) (*Signature, error)
- func CreateFunctionSignature(ctx context.Context, textSignature string) (*Signature, error)
- func GetEventSignatureById(ctx context.Context, id int) (*Signature, error)
- func GetFunctionSignatureById(ctx context.Context, id int) (*Signature, error)
- type SignaturesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithHexSignature ¶
func WithHexSignature(hex string) filterOption
func WithPageNumber ¶
func WithPageNumber(num int) filterOption
func WithTextSignature ¶
func WithTextSignature(text string) filterOption
Types ¶
type ImportResponse ¶
type ImportResponse struct { Processed int `json:"num_processed"` Imported int `json:"num_imported"` Duplicated int `json:"num_duplicates"` Ignored int `json:"num_ignored"` }
func ImportFromABI ¶
func ImportFromABI(ctx context.Context, contractAbi string) (resp *ImportResponse, err error)
func ImportFromSourceCode ¶
func ImportFromSourceCode(ctx context.Context, sourceCode string) (resp *ImportResponse, err error)
type Signature ¶
type Signature struct { Id int `json:"id,omitempty"` CreatedAt string `json:"created_at,omitempty"` TextSignature string `json:"text_signature,omitempty"` ByteSignature string `json:"bytes_signature,omitempty"` HexSignature string `json:"hex_signature,omitempty"` }
func CreateEventSignature ¶
func CreateFunctionSignature ¶
func GetEventSignatureById ¶
type SignaturesResponse ¶
type SignaturesResponse struct { Next *link `json:"next"` Previous *link `json:"previous"` Count int `json:"count"` Signatures []Signature `json:"results"` }
func GetEventSignatures ¶
func GetEventSignatures(ctx context.Context, opts ...filterOption) (*SignaturesResponse, error)
func GetFunctionSignatures ¶
func GetFunctionSignatures(ctx context.Context, opts ...filterOption) (*SignaturesResponse, error)
Click to show internal directories.
Click to hide internal directories.