Documentation ¶
Index ¶
- func CompareContractABI(a, b abi.ABI) error
- func FindSignatureInAbi(rawAbi, name string, paramTypes []string) (string, error)
- func GetABIFromContractsWithMatchingABI(contractNames []string) string
- func GetContractABI(contractName string) string
- func GetContractAddress(contract string) string
- func GetContractAddresses(contractNames []string) (addresses []string)
- func GetEventSignature(event abi.Event) string
- func GetEventTopicZero(solidityEventSignature string) string
- func GetFirstABI(contractNames []string) string
- func GetMinDeploymentBlock(contractNames []string) int64
- func GetOverloadedFunctionSignature(rawAbi, name string, paramTypes []string) string
- func GetSolidityFunctionSignature(abi, name string) string
- func GetTransformerContractNames(transformerLabel string) []string
- func NewMismatchedConstructorsError(a, b abi.ABI) error
- func NewMismatchedEventsError(a, b abi.ABI, event string) error
- func NewMismatchedMethodsError(a, b abi.ABI, method string) error
- type ContractMethod
- type MethodInput
- type MismatchedConstructorsError
- type MismatchedEventsError
- type MismatchedMethodsError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareContractABI ¶
func FindSignatureInAbi ¶
func GetABIFromContractsWithMatchingABI ¶
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 ¶
GetContractABI returns the ABI for the given contract name
func GetContractAddress ¶
func GetContractAddresses ¶
Get the addresses for multiple contracts from config
func GetEventSignature ¶
func GetEventTopicZero ¶
func GetFirstABI ¶
GetFirstABI returns the ABI from the first contract in a collection in config
func GetMinDeploymentBlock ¶
Get the minimum deployment block for multiple contracts from config
func GetTransformerContractNames ¶
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"
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
Click to show internal directories.
Click to hide internal directories.