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 ConvertIntToHex(n int) (string, error)
- func ConvertUint256HexToBigInt(hex string) *big.Int
- func DecodeHexToText(payload string) string
- func GetDSNoteThirdArgument(logData []byte) []byte
- func GetHexWithoutPrefix(raw []byte) string
- func GetOrCreateIlk(ilk string, db *postgres.DB) (int, error)
- func GetOrCreateIlkInTransaction(ilk string, tx *sqlx.Tx) (int, error)
- func GetOrCreateUrn(guy string, ilkID int, db *postgres.DB) (int, error)
- func GetOrCreateUrnInTransaction(guy string, ilkID int, tx *sqlx.Tx) (int, error)
- func GetTicInTx(headerID int64, tx *sqlx.Tx) (int64, error)
- func GetVatNoteDataBytesAtIndex(index int, logData []byte) ([]byte, error)
- func MinInt64(ints []int64) (min int64)
- type LogNoteConverter
- type LogNoteTransformer
- func (tr LogNoteTransformer) Execute(logs []types.Log, header core.Header, ...) error
- func (tr LogNoteTransformer) GetConfig() transformer.EventTransformerConfig
- func (tr LogNoteTransformer) GetName() string
- func (tr LogNoteTransformer) NewLogNoteTransformer(db *postgres.DB) transformer.EventTransformer
Constants ¶
View Source
const ( InsertIlkQuery = `INSERT INTO maker.ilks (ilk, identifier) VALUES ($1, $2) RETURNING id` InsertUrnQuery = `INSERT INTO maker.urns (guy, ilk_id) VALUES ($1, $2) RETURNING id` )
Variables ¶
Functions ¶
func BigIntToInt64 ¶
func BigIntToString ¶
func ConvertInt256HexToBigInt ¶ added in v0.2.3
func ConvertIntStringToHex ¶ added in v0.2.2
func ConvertIntToHex ¶ added in v0.2.2
func ConvertUint256HexToBigInt ¶ added in v0.2.3
func DecodeHexToText ¶ added in v0.2.4
func GetDSNoteThirdArgument ¶ added in v0.2.3
func GetHexWithoutPrefix ¶
func GetOrCreateUrn ¶ added in v0.2.2
func GetOrCreateUrnInTransaction ¶ added in v0.2.2
func GetVatNoteDataBytesAtIndex ¶ added in v0.2.3
Types ¶
type LogNoteConverter ¶ added in v0.2.3
type LogNoteTransformer ¶ added in v0.2.3
type LogNoteTransformer struct { Config transformer.EventTransformerConfig Converter LogNoteConverter Repository event.Repository }
func (LogNoteTransformer) Execute ¶ added in v0.2.3
func (tr LogNoteTransformer) Execute(logs []types.Log, header core.Header, recheckedHeader constants.TransformerExecution) error
func (LogNoteTransformer) GetConfig ¶ added in v0.2.3
func (tr LogNoteTransformer) GetConfig() transformer.EventTransformerConfig
func (LogNoteTransformer) GetName ¶ added in v0.2.3
func (tr LogNoteTransformer) GetName() string
func (LogNoteTransformer) NewLogNoteTransformer ¶ added in v0.2.3
func (tr LogNoteTransformer) NewLogNoteTransformer(db *postgres.DB) transformer.EventTransformer
Source Files ¶
Click to show internal directories.
Click to hide internal directories.