mockerc20

package
v1.0.0-9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mockerc20ABI = Mockerc20MetaData.ABI

Mockerc20ABI is the input ABI used to generate the binding from. Deprecated: Use Mockerc20MetaData.ABI instead.

View Source
var Mockerc20MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals_\",\"type\":\"uint8\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"usr_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

Mockerc20MetaData contains all meta data concerning the Mockerc20 contract.

Functions

This section is empty.

Types

type Mockerc20

type Mockerc20 struct {
	Mockerc20Caller     // Read-only binding to the contract
	Mockerc20Transactor // Write-only binding to the contract
	Mockerc20Filterer   // Log filterer for contract events
}

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

func NewMockerc20

func NewMockerc20(address common.Address, backend bind.ContractBackend) (*Mockerc20, error)

NewMockerc20 creates a new instance of Mockerc20, bound to a specific deployed contract.

type Mockerc20Approval

type Mockerc20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

Mockerc20Approval represents a Approval event raised by the Mockerc20 contract.

type Mockerc20ApprovalIterator

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

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

func (*Mockerc20ApprovalIterator) Close

func (it *Mockerc20ApprovalIterator) Close() error

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

func (*Mockerc20ApprovalIterator) Error

func (it *Mockerc20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Mockerc20ApprovalIterator) Next

func (it *Mockerc20ApprovalIterator) 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 Mockerc20Caller

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

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

func NewMockerc20Caller

func NewMockerc20Caller(address common.Address, caller bind.ContractCaller) (*Mockerc20Caller, error)

NewMockerc20Caller creates a new read-only instance of Mockerc20, bound to a specific deployed contract.

func (*Mockerc20Caller) Allowance

func (_Mockerc20 *Mockerc20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Mockerc20Caller) BalanceOf

func (_Mockerc20 *Mockerc20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Mockerc20Caller) Decimals

func (_Mockerc20 *Mockerc20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Mockerc20Caller) Name

func (_Mockerc20 *Mockerc20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Mockerc20Caller) Symbol

func (_Mockerc20 *Mockerc20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Mockerc20Caller) TotalSupply

func (_Mockerc20 *Mockerc20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Mockerc20CallerRaw

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

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

func (*Mockerc20CallerRaw) Call

func (_Mockerc20 *Mockerc20CallerRaw) 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 Mockerc20CallerSession

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

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

func (*Mockerc20CallerSession) Allowance

func (_Mockerc20 *Mockerc20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Mockerc20CallerSession) BalanceOf

func (_Mockerc20 *Mockerc20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Mockerc20CallerSession) Decimals

func (_Mockerc20 *Mockerc20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Mockerc20CallerSession) Name

func (_Mockerc20 *Mockerc20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Mockerc20CallerSession) Symbol

func (_Mockerc20 *Mockerc20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Mockerc20CallerSession) TotalSupply

func (_Mockerc20 *Mockerc20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Mockerc20Filterer

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

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

func NewMockerc20Filterer

func NewMockerc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Mockerc20Filterer, error)

NewMockerc20Filterer creates a new log filterer instance of Mockerc20, bound to a specific deployed contract.

func (*Mockerc20Filterer) FilterApproval

func (_Mockerc20 *Mockerc20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Mockerc20ApprovalIterator, error)

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

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Mockerc20Filterer) FilterTransfer

func (_Mockerc20 *Mockerc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Mockerc20TransferIterator, 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 (*Mockerc20Filterer) ParseApproval

func (_Mockerc20 *Mockerc20Filterer) ParseApproval(log types.Log) (*Mockerc20Approval, error)

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

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Mockerc20Filterer) ParseTransfer

func (_Mockerc20 *Mockerc20Filterer) ParseTransfer(log types.Log) (*Mockerc20Transfer, error)

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

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

func (*Mockerc20Filterer) WatchApproval

func (_Mockerc20 *Mockerc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Mockerc20Approval, owner []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 owner, address indexed spender, uint256 value)

func (*Mockerc20Filterer) WatchTransfer

func (_Mockerc20 *Mockerc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Mockerc20Transfer, 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 Mockerc20Raw

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

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

func (*Mockerc20Raw) Call

func (_Mockerc20 *Mockerc20Raw) 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 (*Mockerc20Raw) Transact

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

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

func (*Mockerc20Raw) Transfer

func (_Mockerc20 *Mockerc20Raw) 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 Mockerc20Session

type Mockerc20Session struct {
	Contract     *Mockerc20        // 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
}

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

func (*Mockerc20Session) Allowance

func (_Mockerc20 *Mockerc20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Mockerc20Session) Approve

func (_Mockerc20 *Mockerc20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Mockerc20Session) BalanceOf

func (_Mockerc20 *Mockerc20Session) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Mockerc20Session) Decimals

func (_Mockerc20 *Mockerc20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Mockerc20Session) DecreaseAllowance

func (_Mockerc20 *Mockerc20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Mockerc20Session) IncreaseAllowance

func (_Mockerc20 *Mockerc20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Mockerc20Session) Mint

func (_Mockerc20 *Mockerc20Session) Mint(usr_ common.Address, amount_ *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address usr_, uint256 amount_) returns()

func (*Mockerc20Session) Name

func (_Mockerc20 *Mockerc20Session) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Mockerc20Session) Symbol

func (_Mockerc20 *Mockerc20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Mockerc20Session) TotalSupply

func (_Mockerc20 *Mockerc20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*Mockerc20Session) Transfer

func (_Mockerc20 *Mockerc20Session) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Mockerc20Session) TransferFrom

func (_Mockerc20 *Mockerc20Session) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type Mockerc20Transactor

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

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

func NewMockerc20Transactor

func NewMockerc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Mockerc20Transactor, error)

NewMockerc20Transactor creates a new write-only instance of Mockerc20, bound to a specific deployed contract.

func (*Mockerc20Transactor) Approve

func (_Mockerc20 *Mockerc20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Mockerc20Transactor) DecreaseAllowance

func (_Mockerc20 *Mockerc20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Mockerc20Transactor) IncreaseAllowance

func (_Mockerc20 *Mockerc20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Mockerc20Transactor) Mint

func (_Mockerc20 *Mockerc20Transactor) Mint(opts *bind.TransactOpts, usr_ common.Address, amount_ *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address usr_, uint256 amount_) returns()

func (*Mockerc20Transactor) Transfer

func (_Mockerc20 *Mockerc20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Mockerc20Transactor) TransferFrom

func (_Mockerc20 *Mockerc20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type Mockerc20TransactorRaw

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

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

func (*Mockerc20TransactorRaw) Transact

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

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

func (*Mockerc20TransactorRaw) Transfer

func (_Mockerc20 *Mockerc20TransactorRaw) 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 Mockerc20TransactorSession

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

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

func (*Mockerc20TransactorSession) Approve

func (_Mockerc20 *Mockerc20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Mockerc20TransactorSession) DecreaseAllowance

func (_Mockerc20 *Mockerc20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Mockerc20TransactorSession) IncreaseAllowance

func (_Mockerc20 *Mockerc20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Mockerc20TransactorSession) Mint

func (_Mockerc20 *Mockerc20TransactorSession) Mint(usr_ common.Address, amount_ *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address usr_, uint256 amount_) returns()

func (*Mockerc20TransactorSession) Transfer

func (_Mockerc20 *Mockerc20TransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*Mockerc20TransactorSession) TransferFrom

func (_Mockerc20 *Mockerc20TransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

type Mockerc20Transfer

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

Mockerc20Transfer represents a Transfer event raised by the Mockerc20 contract.

type Mockerc20TransferIterator

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

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

func (*Mockerc20TransferIterator) Close

func (it *Mockerc20TransferIterator) Close() error

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

func (*Mockerc20TransferIterator) Error

func (it *Mockerc20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Mockerc20TransferIterator) Next

func (it *Mockerc20TransferIterator) 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