simpletoken

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SimpletokenABI = "" /* 3973-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Simpletoken

type Simpletoken struct {
	SimpletokenCaller     // Read-only binding to the contract
	SimpletokenTransactor // Write-only binding to the contract
	SimpletokenFilterer   // Log filterer for contract events
}

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

func NewSimpletoken

func NewSimpletoken(address common.Address, backend bind.ContractBackend) (*Simpletoken, error)

NewSimpletoken creates a new instance of Simpletoken, bound to a specific deployed contract.

type SimpletokenApproval

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

SimpletokenApproval represents a Approval event raised by the Simpletoken contract.

type SimpletokenApprovalIterator

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

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

func (*SimpletokenApprovalIterator) Close

func (it *SimpletokenApprovalIterator) Close() error

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

func (*SimpletokenApprovalIterator) Error

func (it *SimpletokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SimpletokenApprovalIterator) Next

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

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

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

func NewSimpletokenCaller

func NewSimpletokenCaller(address common.Address, caller bind.ContractCaller) (*SimpletokenCaller, error)

NewSimpletokenCaller creates a new read-only instance of Simpletoken, bound to a specific deployed contract.

func (*SimpletokenCaller) Allowance

func (_Simpletoken *SimpletokenCaller) 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 (*SimpletokenCaller) BalanceOf

func (_Simpletoken *SimpletokenCaller) 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 (*SimpletokenCaller) Decimals

func (_Simpletoken *SimpletokenCaller) 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 (*SimpletokenCaller) Name

func (_Simpletoken *SimpletokenCaller) 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 (*SimpletokenCaller) Symbol

func (_Simpletoken *SimpletokenCaller) 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 (*SimpletokenCaller) TotalSupply

func (_Simpletoken *SimpletokenCaller) 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 SimpletokenCallerRaw

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

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

func (*SimpletokenCallerRaw) Call

func (_Simpletoken *SimpletokenCallerRaw) 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 SimpletokenCallerSession

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

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

func (*SimpletokenCallerSession) Allowance

func (_Simpletoken *SimpletokenCallerSession) 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 (*SimpletokenCallerSession) BalanceOf

func (_Simpletoken *SimpletokenCallerSession) 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 (*SimpletokenCallerSession) Decimals

func (_Simpletoken *SimpletokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*SimpletokenCallerSession) Name

func (_Simpletoken *SimpletokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*SimpletokenCallerSession) Symbol

func (_Simpletoken *SimpletokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*SimpletokenCallerSession) TotalSupply

func (_Simpletoken *SimpletokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type SimpletokenFilterer

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

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

func NewSimpletokenFilterer

func NewSimpletokenFilterer(address common.Address, filterer bind.ContractFilterer) (*SimpletokenFilterer, error)

NewSimpletokenFilterer creates a new log filterer instance of Simpletoken, bound to a specific deployed contract.

func (*SimpletokenFilterer) FilterApproval

func (_Simpletoken *SimpletokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*SimpletokenApprovalIterator, 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 (*SimpletokenFilterer) FilterTransfer

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

func (_Simpletoken *SimpletokenFilterer) ParseApproval(log types.Log) (*SimpletokenApproval, error)

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

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

func (*SimpletokenFilterer) ParseTransfer

func (_Simpletoken *SimpletokenFilterer) ParseTransfer(log types.Log) (*SimpletokenTransfer, error)

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

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

func (*SimpletokenFilterer) WatchApproval

func (_Simpletoken *SimpletokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *SimpletokenApproval, 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 (*SimpletokenFilterer) WatchTransfer

func (_Simpletoken *SimpletokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *SimpletokenTransfer, 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 SimpletokenRaw

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

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

func (*SimpletokenRaw) Call

func (_Simpletoken *SimpletokenRaw) 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 (*SimpletokenRaw) Transact

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

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

func (*SimpletokenRaw) Transfer

func (_Simpletoken *SimpletokenRaw) 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 SimpletokenSession

type SimpletokenSession struct {
	Contract     *Simpletoken      // 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
}

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

func (*SimpletokenSession) Allowance

func (_Simpletoken *SimpletokenSession) 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 (*SimpletokenSession) Approve

func (_Simpletoken *SimpletokenSession) 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 (*SimpletokenSession) BalanceOf

func (_Simpletoken *SimpletokenSession) 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 (*SimpletokenSession) Decimals

func (_Simpletoken *SimpletokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*SimpletokenSession) DecreaseAllowance

func (_Simpletoken *SimpletokenSession) 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 (*SimpletokenSession) IncreaseAllowance

func (_Simpletoken *SimpletokenSession) 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 (*SimpletokenSession) Name

func (_Simpletoken *SimpletokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*SimpletokenSession) Symbol

func (_Simpletoken *SimpletokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*SimpletokenSession) TotalSupply

func (_Simpletoken *SimpletokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*SimpletokenSession) Transfer

func (_Simpletoken *SimpletokenSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*SimpletokenSession) TransferFrom

func (_Simpletoken *SimpletokenSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type SimpletokenTransactor

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

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

func NewSimpletokenTransactor

func NewSimpletokenTransactor(address common.Address, transactor bind.ContractTransactor) (*SimpletokenTransactor, error)

NewSimpletokenTransactor creates a new write-only instance of Simpletoken, bound to a specific deployed contract.

func (*SimpletokenTransactor) Approve

func (_Simpletoken *SimpletokenTransactor) 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 (*SimpletokenTransactor) DecreaseAllowance

func (_Simpletoken *SimpletokenTransactor) 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 (*SimpletokenTransactor) IncreaseAllowance

func (_Simpletoken *SimpletokenTransactor) 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 (*SimpletokenTransactor) Transfer

func (_Simpletoken *SimpletokenTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*SimpletokenTransactor) TransferFrom

func (_Simpletoken *SimpletokenTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type SimpletokenTransactorRaw

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

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

func (*SimpletokenTransactorRaw) Transact

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

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

func (*SimpletokenTransactorRaw) Transfer

func (_Simpletoken *SimpletokenTransactorRaw) 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 SimpletokenTransactorSession

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

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

func (*SimpletokenTransactorSession) Approve

func (_Simpletoken *SimpletokenTransactorSession) 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 (*SimpletokenTransactorSession) DecreaseAllowance

func (_Simpletoken *SimpletokenTransactorSession) 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 (*SimpletokenTransactorSession) IncreaseAllowance

func (_Simpletoken *SimpletokenTransactorSession) 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 (*SimpletokenTransactorSession) Transfer

func (_Simpletoken *SimpletokenTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*SimpletokenTransactorSession) TransferFrom

func (_Simpletoken *SimpletokenTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type SimpletokenTransfer

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

SimpletokenTransfer represents a Transfer event raised by the Simpletoken contract.

type SimpletokenTransferIterator

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

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

func (*SimpletokenTransferIterator) Close

func (it *SimpletokenTransferIterator) Close() error

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

func (*SimpletokenTransferIterator) Error

func (it *SimpletokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SimpletokenTransferIterator) Next

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