Documentation ¶
Index ¶
- Constants
- Variables
- func BigIntToInt64(value *big.Int) int64
- 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, err string) error
- func GetEventTransformerConfig(transformerLabel, signature string) transformer.EventTransformerConfig
- func GetFullTableName(schema, table string) string
- 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 MinInt64(ints []int64) (min int64)
- 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 BigIntToInt64 ¶
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) transformer.EventTransformerConfig
Creates a transformer config by pulling values from configuration environment
func GetFullTableName ¶ added in v0.2.17
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.