constants

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: AGPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareContractABI

func CompareContractABI(a, b abi.ABI) error

func FindSignatureInAbi

func FindSignatureInAbi(rawAbi, name string, paramTypes []string) (string, error)

func GetABIFromContractsWithMatchingABI

func GetABIFromContractsWithMatchingABI(contractNames []string) string

GetABIFromContractsWithMatchingABI gets the ABI for multiple contracts from config Makes sure the ABI matches for all, since a single transformer may run against many contracts.

func GetContractABI

func GetContractABI(contractName string) string

GetContractABI returns the ABI for the given contract name

func GetContractAddress

func GetContractAddress(contract string) string

func GetContractAddresses

func GetContractAddresses(contractNames []string) (addresses []string)

Get the addresses for multiple contracts from config

func GetEventSignature

func GetEventSignature(event abi.Event) string

func GetEventTopicZero

func GetEventTopicZero(solidityEventSignature string) string

func GetFirstABI

func GetFirstABI(contractNames []string) string

GetFirstABI returns the ABI from the first contract in a collection in config

func GetMinDeploymentBlock

func GetMinDeploymentBlock(contractNames []string) int64

Get the minimum deployment block for multiple contracts from config

func GetOverloadedFunctionSignature

func GetOverloadedFunctionSignature(rawAbi, name string, paramTypes []string) string

func GetSolidityFunctionSignature

func GetSolidityFunctionSignature(abi, name string) string

func GetTransformerContractNames

func GetTransformerContractNames(transformerLabel string) []string
Returns all contract config names from transformer configuration:

[exporter.vow_file]

path = "transformers/events/vow_file/initializer"
type = "eth_event"
repository = "github.com/makerdao/vdb-mcd-transformers"
migrations = "db/migrations"
contracts = ["MCD_VOW"]   <----
rank = "0"

func NewMismatchedConstructorsError

func NewMismatchedConstructorsError(a, b abi.ABI) error

func NewMismatchedEventsError

func NewMismatchedEventsError(a, b abi.ABI, event string) error

func NewMismatchedMethodsError

func NewMismatchedMethodsError(a, b abi.ABI, method string) error

Types

type ContractMethod

type ContractMethod struct {
	Name   string
	Inputs []MethodInput
}

type MethodInput

type MethodInput struct {
	Type string
}

type MismatchedConstructorsError

type MismatchedConstructorsError struct {
	// contains filtered or unexported fields
}

func (*MismatchedConstructorsError) Error

func (err *MismatchedConstructorsError) Error() string

type MismatchedEventsError

type MismatchedEventsError struct {
	// contains filtered or unexported fields
}

func (*MismatchedEventsError) Error

func (err *MismatchedEventsError) Error() string

type MismatchedMethodsError

type MismatchedMethodsError struct {
	// contains filtered or unexported fields
}

func (*MismatchedMethodsError) Error

func (err *MismatchedMethodsError) Error() string

Jump to

Keyboard shortcuts

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