ERC

package
v0.0.0-...-7607771 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERCABI = ERCMetaData.ABI

ERCABI is the input ABI used to generate the binding from. Deprecated: Use ERCMetaData.ABI instead.

View Source
var ERCMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"}]",
}

ERCMetaData contains all meta data concerning the ERC contract.

Functions

This section is empty.

Types

type ERC

type ERC struct {
	ERCCaller     // Read-only binding to the contract
	ERCTransactor // Write-only binding to the contract
	ERCFilterer   // Log filterer for contract events
}

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

func NewERC

func NewERC(address common.Address, backend bind.ContractBackend) (*ERC, error)

NewERC creates a new instance of ERC, bound to a specific deployed contract.

type ERCApproval

type ERCApproval struct {
	TokenOwner common.Address
	Spender    common.Address
	Tokens     *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ERCApproval represents a Approval event raised by the ERC contract.

type ERCApprovalIterator

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

ERCApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC contract.

func (*ERCApprovalIterator) Close

func (it *ERCApprovalIterator) Close() error

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

func (*ERCApprovalIterator) Error

func (it *ERCApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERCApprovalIterator) Next

func (it *ERCApprovalIterator) Next() bool

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.

type ERCCaller

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

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

func NewERCCaller

func NewERCCaller(address common.Address, caller bind.ContractCaller) (*ERCCaller, error)

NewERCCaller creates a new read-only instance of ERC, bound to a specific deployed contract.

type ERCCallerRaw

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

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

func (*ERCCallerRaw) Call

func (_ERC *ERCCallerRaw) 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 ERCCallerSession

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

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

type ERCFilterer

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

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

func NewERCFilterer

func NewERCFilterer(address common.Address, filterer bind.ContractFilterer) (*ERCFilterer, error)

NewERCFilterer creates a new log filterer instance of ERC, bound to a specific deployed contract.

func (*ERCFilterer) FilterApproval

func (_ERC *ERCFilterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*ERCApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed tokenOwner, address indexed spender, uint256 tokens)

func (*ERCFilterer) FilterTransfer

func (_ERC *ERCFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERCTransferIterator, error)

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

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

func (*ERCFilterer) ParseApproval

func (_ERC *ERCFilterer) ParseApproval(log types.Log) (*ERCApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed tokenOwner, address indexed spender, uint256 tokens)

func (*ERCFilterer) ParseTransfer

func (_ERC *ERCFilterer) ParseTransfer(log types.Log) (*ERCTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

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

func (*ERCFilterer) WatchApproval

func (_ERC *ERCFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERCApproval, tokenOwner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed tokenOwner, address indexed spender, uint256 tokens)

func (*ERCFilterer) WatchTransfer

func (_ERC *ERCFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERCTransfer, 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 tokens)

type ERCRaw

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

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

func (*ERCRaw) Call

func (_ERC *ERCRaw) 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 (*ERCRaw) Transact

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

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

func (*ERCRaw) Transfer

func (_ERC *ERCRaw) 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 ERCSession

type ERCSession struct {
	Contract     *ERC              // 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
}

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

type ERCTransactor

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

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

func NewERCTransactor

func NewERCTransactor(address common.Address, transactor bind.ContractTransactor) (*ERCTransactor, error)

NewERCTransactor creates a new write-only instance of ERC, bound to a specific deployed contract.

type ERCTransactorRaw

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

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

func (*ERCTransactorRaw) Transact

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

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

func (*ERCTransactorRaw) Transfer

func (_ERC *ERCTransactorRaw) 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 ERCTransactorSession

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

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

type ERCTransfer

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

ERCTransfer represents a Transfer event raised by the ERC contract.

type ERCTransferIterator

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

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

func (*ERCTransferIterator) Close

func (it *ERCTransferIterator) Close() error

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

func (*ERCTransferIterator) Error

func (it *ERCTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERCTransferIterator) Next

func (it *ERCTransferIterator) Next() bool

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