constants

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ABIs = map[common.Address]string{
	common.HexToAddress("0x314159265dD8dbb310642f98f50C066173C1259b"): ENSAbiString,
	common.HexToAddress("0x8dd5fbCe2F6a956C3022bA3663759011Dd51e73E"): TusdAbiString,
	common.HexToAddress("0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359"): DaiAbiString,
}

ABIs is a look-up table for ABI strings

View Source
var AbiChangeInterface = `` /* 168-byte string literal not displayed */
View Source
var AddrChangeInterface = `` /* 160-byte string literal not displayed */

Individual event interfaces for constructing ABI from

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 ENSAbiString = `` /* 1845-byte string literal not displayed */
View Source
var EnsContractAddress = "0x314159265dD8dbb310642f98f50C066173C1259b"
View Source
var MarketPlaceAbiString = `` /* 8038-byte string literal not displayed */
View Source
var MarketPlaceContractAddress = "0x8e5660b4Ab70168b5a6fEeA0e0315cb49c8Cd539"
View Source
var MolochAbiString = `` /* 7392-byte string literal not displayed */
View Source
var MolochContractAddress = "0x1fd169A4f5c59ACf79d0Fd5d91D1201EF1Bce9f1"
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 SupportsInterfaceABI = `` /* 168-byte string literal not displayed */

SupportsInterfaceABI is the 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 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()},
	},
}

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

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

Signature returns the keccak256 signature for an event

func (Event) String

func (e Event) String() string

String returns the string name for an event

type Interface

type Interface int

Resolver interface signatures

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

Interface enums

func (Interface) Bytes

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

Bytes returns the bytes signature for an interface

func (Interface) EventSig

func (e Interface) EventSig() string

EventSig returns the event signature for an interface

func (Interface) Hex

func (e Interface) Hex() string

Hex returns the hex signature for an interface

func (Interface) MethodSig

func (e Interface) MethodSig() string

MethodSig returns the method signature for an interface

Jump to

Keyboard shortcuts

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