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 GetChecksumAddressString(address string) string
- func GetEventTransformerConfig(transformerLabel, signature string) event.TransformerConfig
- func GetFullTableName(schema, table string) string
- func VerifyLog(log types.Log, expectedNumTopics int, isDataRequired bool) error
Constants ¶
View Source
const ( OneTopicRequired = 1 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 ConvertIntStringToHex ¶
func DecodeHexToText ¶
func FormatRollbackError ¶
func GetEventTransformerConfig ¶
func GetEventTransformerConfig(transformerLabel, signature string) event.TransformerConfig
GetEventTransformerConfig creates a transformer config by pulling values from configuration environment
func GetFullTableName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.