smart_contracts

package
v0.0.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Type    string
	Name    string
	Inputs  []abi.Argument
	Outputs []abi.Argument

	// Status indicator which can be: "pure", "view",
	// "nonpayable" or "payable".
	StateMutability string

	// Deprecated Status indicators, but removed in v0.6.0.
	Constant bool // True if function is either pure or view
	Payable  bool // True if function is payable

	// Event relevant indicator represents the event is
	// declared as anonymous.
	Anonymous bool
}

type SmartContractABI

type SmartContractABI struct {
	abi.ABI
	Functions map[string]Field
}

func NewSmartContractABI

func NewSmartContractABI(jsonData []byte) (SmartContractABI, error)

NewSmartContractABI just parses for functions for now

Jump to

Keyboard shortcuts

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