Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { Address string `gorm:"primaryKey"` Blockchain constants.Blockchain `gorm:"primaryKey" json:"blockchain"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `gorm:"index"` Name string `json:"name"` Symbol string `json:"symbol"` OfficialName string `json:"officialName"` Standard string `json:"standard"` ABI string `json:"abi"` Decimals int32 `json:"decimals"` }
type ContractData ¶
type ContractData struct { Contracts []Contract Methods []MethodFragment Events []EventFragment }
type DecodedFragment ¶
type DecodedMethodFragment ¶
type EventFragment ¶
type EventFragment struct { CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `gorm:"index"` EventId string `gorm:"primaryKey"` FullSignature string `gorm:"full_signature" json:"fullSignature"` ABI string `gorm:"abi"` HashableSignature string `gorm:"hashable_signature"` IndexedTopics int32 `gorm:"indexed_topics"` Name string `gorm:"name"` }
func (*EventFragment) BeforeCreate ¶
func (e *EventFragment) BeforeCreate(tx *gorm.DB) (err error)
func (*EventFragment) CountIndexedTopics ¶
func (e *EventFragment) CountIndexedTopics() (int32, error)
CountIndexedTopics counts the number of indexed topics in the event ABI
type MethodFragment ¶
type MethodFragment struct { CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `gorm:"index"` MethodId string `gorm:"primaryKey"` FullSignature string `gorm:"full_signature"` ABI string `gorm:"abi"` HashableSignature string `gorm:"hashable_signature"` Name string `gorm:"name"` }
func (*MethodFragment) BeforeCreate ¶
func (m *MethodFragment) BeforeCreate(tx *gorm.DB) (err error)
Click to show internal directories.
Click to hide internal directories.