bep20_token

package
v0.0.0-...-24518c4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bep20TokenABI = Bep20TokenMetaData.ABI

Bep20TokenABI is the input ABI used to generate the binding from. Deprecated: Use Bep20TokenMetaData.ABI instead.

View Source
var Bep20TokenMetaData = &bind.MetaData{
	ABI: "[{\"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\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

Bep20TokenMetaData contains all meta data concerning the Bep20Token contract.

Functions

This section is empty.

Types

type Bep20Token

type Bep20Token struct {
	Bep20TokenCaller     // Read-only binding to the contract
	Bep20TokenTransactor // Write-only binding to the contract
	Bep20TokenFilterer   // Log filterer for contract events
}

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

func NewBep20Token

func NewBep20Token(address common.Address, backend bind.ContractBackend) (*Bep20Token, error)

NewBep20Token creates a new instance of Bep20Token, bound to a specific deployed contract.

type Bep20TokenApproval

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

Bep20TokenApproval represents a Approval event raised by the Bep20Token contract.

type Bep20TokenApprovalIterator

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

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

func (*Bep20TokenApprovalIterator) Close

func (it *Bep20TokenApprovalIterator) Close() error

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

func (*Bep20TokenApprovalIterator) Error

func (it *Bep20TokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Bep20TokenApprovalIterator) Next

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

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

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

func NewBep20TokenCaller

func NewBep20TokenCaller(address common.Address, caller bind.ContractCaller) (*Bep20TokenCaller, error)

NewBep20TokenCaller creates a new read-only instance of Bep20Token, bound to a specific deployed contract.

func (*Bep20TokenCaller) Allowance

func (_Bep20Token *Bep20TokenCaller) 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 (*Bep20TokenCaller) BalanceOf

func (_Bep20Token *Bep20TokenCaller) 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 (*Bep20TokenCaller) Decimals

func (_Bep20Token *Bep20TokenCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*Bep20TokenCaller) GetOwner

func (_Bep20Token *Bep20TokenCaller) GetOwner(opts *bind.CallOpts) (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*Bep20TokenCaller) Name

func (_Bep20Token *Bep20TokenCaller) 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 (*Bep20TokenCaller) Symbol

func (_Bep20Token *Bep20TokenCaller) 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 (*Bep20TokenCaller) TotalSupply

func (_Bep20Token *Bep20TokenCaller) 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 Bep20TokenCallerRaw

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

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

func (*Bep20TokenCallerRaw) Call

func (_Bep20Token *Bep20TokenCallerRaw) 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 Bep20TokenCallerSession

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

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

func (*Bep20TokenCallerSession) Allowance

func (_Bep20Token *Bep20TokenCallerSession) 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 (*Bep20TokenCallerSession) BalanceOf

func (_Bep20Token *Bep20TokenCallerSession) 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 (*Bep20TokenCallerSession) Decimals

func (_Bep20Token *Bep20TokenCallerSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*Bep20TokenCallerSession) GetOwner

func (_Bep20Token *Bep20TokenCallerSession) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*Bep20TokenCallerSession) Name

func (_Bep20Token *Bep20TokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Bep20TokenCallerSession) Symbol

func (_Bep20Token *Bep20TokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Bep20TokenCallerSession) TotalSupply

func (_Bep20Token *Bep20TokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type Bep20TokenFilterer

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

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

func NewBep20TokenFilterer

func NewBep20TokenFilterer(address common.Address, filterer bind.ContractFilterer) (*Bep20TokenFilterer, error)

NewBep20TokenFilterer creates a new log filterer instance of Bep20Token, bound to a specific deployed contract.

func (*Bep20TokenFilterer) FilterApproval

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

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

func (_Bep20Token *Bep20TokenFilterer) ParseApproval(log types.Log) (*Bep20TokenApproval, error)

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

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

func (*Bep20TokenFilterer) ParseTransfer

func (_Bep20Token *Bep20TokenFilterer) ParseTransfer(log types.Log) (*Bep20TokenTransfer, error)

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

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

func (*Bep20TokenFilterer) WatchApproval

func (_Bep20Token *Bep20TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Bep20TokenApproval, 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 (*Bep20TokenFilterer) WatchTransfer

func (_Bep20Token *Bep20TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Bep20TokenTransfer, 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 Bep20TokenRaw

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

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

func (*Bep20TokenRaw) Call

func (_Bep20Token *Bep20TokenRaw) 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 (*Bep20TokenRaw) Transact

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

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

func (*Bep20TokenRaw) Transfer

func (_Bep20Token *Bep20TokenRaw) 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 Bep20TokenSession

type Bep20TokenSession struct {
	Contract     *Bep20Token       // 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
}

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

func (*Bep20TokenSession) Allowance

func (_Bep20Token *Bep20TokenSession) 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 (*Bep20TokenSession) Approve

func (_Bep20Token *Bep20TokenSession) 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 (*Bep20TokenSession) BalanceOf

func (_Bep20Token *Bep20TokenSession) 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 (*Bep20TokenSession) Decimals

func (_Bep20Token *Bep20TokenSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*Bep20TokenSession) GetOwner

func (_Bep20Token *Bep20TokenSession) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*Bep20TokenSession) Name

func (_Bep20Token *Bep20TokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Bep20TokenSession) Symbol

func (_Bep20Token *Bep20TokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Bep20TokenSession) TotalSupply

func (_Bep20Token *Bep20TokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Bep20TokenSession) Transfer

func (_Bep20Token *Bep20TokenSession) 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 (*Bep20TokenSession) TransferFrom

func (_Bep20Token *Bep20TokenSession) 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 Bep20TokenTransactor

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

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

func NewBep20TokenTransactor

func NewBep20TokenTransactor(address common.Address, transactor bind.ContractTransactor) (*Bep20TokenTransactor, error)

NewBep20TokenTransactor creates a new write-only instance of Bep20Token, bound to a specific deployed contract.

func (*Bep20TokenTransactor) Approve

func (_Bep20Token *Bep20TokenTransactor) 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 (*Bep20TokenTransactor) Transfer

func (_Bep20Token *Bep20TokenTransactor) 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 (*Bep20TokenTransactor) TransferFrom

func (_Bep20Token *Bep20TokenTransactor) 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 Bep20TokenTransactorRaw

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

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

func (*Bep20TokenTransactorRaw) Transact

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

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

func (*Bep20TokenTransactorRaw) Transfer

func (_Bep20Token *Bep20TokenTransactorRaw) 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 Bep20TokenTransactorSession

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

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

func (*Bep20TokenTransactorSession) Approve

func (_Bep20Token *Bep20TokenTransactorSession) 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 (*Bep20TokenTransactorSession) Transfer

func (_Bep20Token *Bep20TokenTransactorSession) 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 (*Bep20TokenTransactorSession) TransferFrom

func (_Bep20Token *Bep20TokenTransactorSession) 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 Bep20TokenTransfer

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

Bep20TokenTransfer represents a Transfer event raised by the Bep20Token contract.

type Bep20TokenTransferIterator

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

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

func (*Bep20TokenTransferIterator) Close

func (it *Bep20TokenTransferIterator) Close() error

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

func (*Bep20TokenTransferIterator) Error

func (it *Bep20TokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Bep20TokenTransferIterator) Next

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