Documentation
¶
Index ¶
- Constants
- Variables
- func BigIntToString(value *big.Int) string
- func ConvertInt256HexToBigInt(hex string) *big.Int
- func ConvertIntStringToHex(n string) (string, error)
- func ConvertUint256HexToBigInt(hex string) *big.Int
- func DecodeHexToText(payload string) string
- func FormatRollbackError(field string, err error) error
- func GetEventTransformerConfig(transformerLabel, signature string) event.TransformerConfig
- func GetFullTableName(schema, table string) string
- func GetLogNoteAddresses(arrayLength uint64, eventLogData []byte) ([]string, error)
- func GetLogNoteArgumentAtIndex(index int, logData []byte) ([]byte, error)
- func GetOrCreateAddress(address string, db *postgres.DB) (int64, error)
- func GetOrCreateAddressInTransaction(address string, tx *sqlx.Tx) (int64, error)
- func GetOrCreateIlk(ilk string, db *postgres.DB) (int64, error)
- func GetOrCreateIlkInTransaction(ilk string, tx *sqlx.Tx) (int64, error)
- func GetOrCreateUrn(guy string, hexIlk string, db *postgres.DB) (urnID int64, err error)
- func GetOrCreateUrnInTransaction(guy string, hexIlk string, tx *sqlx.Tx) (urnID int64, err error)
- func InsertFieldWithIlk(diffID, headerID int64, ilk, variableName, query, value string, ...) error
- func InsertRecordWithAddress(diffID, headerID int64, query, value, contractAddress string, db *postgres.DB) error
- func InsertRecordWithAddressAndBidID(diffID, headerID int64, query, bidId, value, contractAddress string, ...) error
- func VerifyLog(log types.Log, expectedNumTopics int, isDataRequired bool) error
Constants ¶
View Source
const ( TwoTopicsRequired = 2 ThreeTopicsRequired = 3 FourTopicsRequired = 4 LogDataRequired = true LogDataNotRequired = false )
Variables ¶
View Source
var ( ErrLogMissingTopics = func(expectedNumTopics, actualNumTopics int) error { return fmt.Errorf("log missing topics: has %d, want %d", actualNumTopics, expectedNumTopics) } ErrLogMissingData = errors.New("log missing data") ErrCouldNotCreateFK = func(err error) error { return fmt.Errorf("transformer could not create FK: %v", err) } )
Functions ¶
func BigIntToString ¶
func ConvertInt256HexToBigInt ¶ added in v0.2.3
func ConvertIntStringToHex ¶ added in v0.2.2
func ConvertUint256HexToBigInt ¶ added in v0.2.3
func DecodeHexToText ¶ added in v0.2.4
func FormatRollbackError ¶ added in v0.2.15
func GetEventTransformerConfig ¶ added in v0.2.15
func GetEventTransformerConfig(transformerLabel, signature string) event.TransformerConfig
Creates a transformer config by pulling values from configuration environment
func GetFullTableName ¶ added in v0.2.17
func GetLogNoteAddresses ¶
func GetLogNoteArgumentAtIndex ¶ added in v0.2.6
func GetOrCreateAddress ¶ added in v0.2.15
func GetOrCreateAddressInTransaction ¶ added in v0.2.15
func GetOrCreateUrn ¶ added in v0.2.2
func GetOrCreateUrnInTransaction ¶ added in v0.2.2
func InsertFieldWithIlk ¶
func InsertRecordWithAddress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.