constants

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AbiChangeInterface = `` /* 168-byte string literal not displayed */
View Source
var Abis = map[common.Address]string{
	common.HexToAddress("0x314159265dD8dbb310642f98f50C066173C1259b"): ENSAbiString,
	common.HexToAddress("0x8dd5fbCe2F6a956C3022bA3663759011Dd51e73E"): TusdAbiString,
	common.HexToAddress("0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359"): DaiAbiString,
}

Look-up table for ABI strings

View Source
var AddrChangeInterface = `` /* 160-byte string literal not displayed */
View Source
var ContentChangeInterface = `` /* 166-byte string literal not displayed */
View Source
var ContenthashChangeInterface = `` /* 168-byte string literal not displayed */
View Source
var DaiAbiString = `` /* 5710-byte string literal not displayed */

Contract Abis

View Source
var DaiContractAddress = "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359"

Contract Addresses

View Source
var DaiContractOwner = "0x0000000000000000000000000000000000000000"

Contract Owner

View Source
var DaiERC20Filters = []filters.LogFilter{
	{
		Name:      TransferEvent.String(),
		FromBlock: 4752008,
		ToBlock:   -1,
		Address:   DaiContractAddress,
		Topics:    core.Topics{TransferEvent.Signature()},
	},
	{
		Name:      ApprovalEvent.String(),
		FromBlock: 4752008,
		ToBlock:   -1,
		Address:   DaiContractAddress,
		Topics:    core.Topics{ApprovalEvent.Signature()},
	},
}

Filters To add additional filter parameters, filter by other Topics e.g. for a Transfer event filter Topics[1] to filter for a specific 'from' address

View Source
var ENSAbiString = `` /* 1845-byte string literal not displayed */
View Source
var EnsContractAddress = "0x314159265dD8dbb310642f98f50C066173C1259b"
View Source
var MultihashChangeInterface = `` /* 166-byte string literal not displayed */
View Source
var NameChangeInterface = `` /* 162-byte string literal not displayed */
View Source
var PubkeyChangeInterface = `` /* 208-byte string literal not displayed */
View Source
var PublicResolverAddress = "0x1da022710dF5002339274AaDEe8D58218e9D6AB5"
View Source
var StartingBlock = int64(3648359)
View Source
var SupportsInterace = `` /* 166-byte string literal not displayed */

Individual event interfaces for constructing ABI from

View Source
var SupportsInterfaceABI = `` /* 168-byte string literal not displayed */

Basic abi needed to check which interfaces are adhered to

View Source
var TextChangeInterface = `` /* 215-byte string literal not displayed */
View Source
var TusdAbiString = `` /* 12965-byte string literal not displayed */
View Source
var TusdContractAddress = "0x8dd5fbCe2F6a956C3022bA3663759011Dd51e73E"
View Source
var TusdContractOwner = "0x9978d2d229a69b3aef93420d132ab22b44e3578f"
View Source
var TusdGenericFilters = []filters.LogFilter{
	{
		Name:      BurnEvent.String(),
		FromBlock: 5197514,
		ToBlock:   -1,
		Address:   TusdContractAddress,
		Topics:    core.Topics{BurnEvent.Signature()},
	},
	{
		Name:      MintEvent.String(),
		FromBlock: 5197514,
		ToBlock:   -1,
		Address:   TusdContractAddress,
		Topics:    core.Topics{MintEvent.Signature()},
	},
}

Functions

This section is empty.

Types

type Event

type Event int

Event enums

const (
	TransferEvent Event = 0
	ApprovalEvent Event = 1
	BurnEvent     Event = 2
	MintEvent     Event = 3
	NewOwnerEvent Event = 4
)

func (Event) Signature

func (e Event) Signature() string

func (Event) String

func (e Event) String() string

type Interface

type Interface int

Resolver interface signatures

const (
	MetaSig Interface = iota
	AddrChangeSig
	ContentChangeSig
	NameChangeSig
	AbiChangeSig
	PubkeyChangeSig
	TextChangeSig
	MultihashChangeSig
	ContentHashChangeSig
)

func (Interface) Bytes

func (e Interface) Bytes() [4]uint8

func (Interface) EventSig

func (e Interface) EventSig() string

func (Interface) Hex

func (e Interface) Hex() string

func (Interface) MethodSig

func (e Interface) MethodSig() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL