erc20

package
v0.29.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

README

Test contract for Transfer events

Emits transfer event defined by ERC20 standart.

Documentation

Index

Constants

View Source
const ERC20TransferABI = "" /* 572-byte string literal not displayed */

ERC20TransferABI is the input ABI used to generate the binding from.

View Source
const ERC20TransferBin = `` /* 462-byte string literal not displayed */

ERC20TransferBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20Transfer

type ERC20Transfer struct {
	ERC20TransferCaller     // Read-only binding to the contract
	ERC20TransferTransactor // Write-only binding to the contract
	ERC20TransferFilterer   // Log filterer for contract events
}

ERC20Transfer is an auto generated Go binding around an Ethereum contract.

func DeployERC20Transfer

func DeployERC20Transfer(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ERC20Transfer, error)

DeployERC20Transfer deploys a new Ethereum contract, binding an instance of ERC20Transfer to it.

func NewERC20Transfer

func NewERC20Transfer(address common.Address, backend bind.ContractBackend) (*ERC20Transfer, error)

NewERC20Transfer creates a new instance of ERC20Transfer, bound to a specific deployed contract.

type ERC20TransferCaller

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

ERC20TransferCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewERC20TransferCaller

func NewERC20TransferCaller(address common.Address, caller bind.ContractCaller) (*ERC20TransferCaller, error)

NewERC20TransferCaller creates a new read-only instance of ERC20Transfer, bound to a specific deployed contract.

type ERC20TransferCallerRaw

type ERC20TransferCallerRaw struct {
	Contract *ERC20TransferCaller // Generic read-only contract binding to access the raw methods on
}

ERC20TransferCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ERC20TransferCallerRaw) Call

func (_ERC20Transfer *ERC20TransferCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ERC20TransferCallerSession

type ERC20TransferCallerSession struct {
	Contract *ERC20TransferCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts        // Call options to use throughout this session
}

ERC20TransferCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

type ERC20TransferFilterer

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

ERC20TransferFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewERC20TransferFilterer

func NewERC20TransferFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20TransferFilterer, error)

NewERC20TransferFilterer creates a new log filterer instance of ERC20Transfer, bound to a specific deployed contract.

func (*ERC20TransferFilterer) FilterTransfer

func (_ERC20Transfer *ERC20TransferFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*ERC20TransferFilterer) WatchTransfer

func (_ERC20Transfer *ERC20TransferFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20TransferTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type ERC20TransferRaw

type ERC20TransferRaw struct {
	Contract *ERC20Transfer // Generic contract binding to access the raw methods on
}

ERC20TransferRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ERC20TransferRaw) Call

func (_ERC20Transfer *ERC20TransferRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ERC20TransferRaw) Transact

func (_ERC20Transfer *ERC20TransferRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20TransferRaw) Transfer

func (_ERC20Transfer *ERC20TransferRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20TransferSession

type ERC20TransferSession struct {
	Contract     *ERC20Transfer    // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ERC20TransferSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ERC20TransferSession) Transfer

func (_ERC20Transfer *ERC20TransferSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns()

type ERC20TransferTransactor

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

ERC20TransferTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewERC20TransferTransactor

func NewERC20TransferTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20TransferTransactor, error)

NewERC20TransferTransactor creates a new write-only instance of ERC20Transfer, bound to a specific deployed contract.

func (*ERC20TransferTransactor) Transfer

func (_ERC20Transfer *ERC20TransferTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns()

type ERC20TransferTransactorRaw

type ERC20TransferTransactorRaw struct {
	Contract *ERC20TransferTransactor // Generic write-only contract binding to access the raw methods on
}

ERC20TransferTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ERC20TransferTransactorRaw) Transact

func (_ERC20Transfer *ERC20TransferTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20TransferTransactorRaw) Transfer

func (_ERC20Transfer *ERC20TransferTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20TransferTransactorSession

type ERC20TransferTransactorSession struct {
	Contract     *ERC20TransferTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
}

ERC20TransferTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ERC20TransferTransactorSession) Transfer

func (_ERC20Transfer *ERC20TransferTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns()

type ERC20TransferTransfer

type ERC20TransferTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ERC20TransferTransfer represents a Transfer event raised by the ERC20Transfer contract.

type ERC20TransferTransferIterator

type ERC20TransferTransferIterator struct {
	Event *ERC20TransferTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20TransferTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20Transfer contract.

func (*ERC20TransferTransferIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20TransferTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TransferTransferIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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