hrc20

package
v0.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Hrc20ABI = "" /* 3636-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Hrc20

type Hrc20 struct {
	Hrc20Caller     // Read-only binding to the contract
	Hrc20Transactor // Write-only binding to the contract
	Hrc20Filterer   // Log filterer for contract events
}

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

func NewHrc20

func NewHrc20(address common.Address, backend bind.ContractBackend) (*Hrc20, error)

NewHrc20 creates a new instance of Hrc20, bound to a specific deployed contract.

type Hrc20Approval

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

Hrc20Approval represents a Approval event raised by the Hrc20 contract.

type Hrc20ApprovalIterator

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

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

func (*Hrc20ApprovalIterator) Close

func (it *Hrc20ApprovalIterator) Close() error

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

func (*Hrc20ApprovalIterator) Error

func (it *Hrc20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Hrc20ApprovalIterator) Next

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

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

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

func NewHrc20Caller

func NewHrc20Caller(address common.Address, caller bind.ContractCaller) (*Hrc20Caller, error)

NewHrc20Caller creates a new read-only instance of Hrc20, bound to a specific deployed contract.

func (*Hrc20Caller) Allowance

func (_Hrc20 *Hrc20Caller) 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 (*Hrc20Caller) BalanceOf

func (_Hrc20 *Hrc20Caller) 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 (*Hrc20Caller) Decimals

func (_Hrc20 *Hrc20Caller) 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 (*Hrc20Caller) Name

func (_Hrc20 *Hrc20Caller) 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 (*Hrc20Caller) Symbol

func (_Hrc20 *Hrc20Caller) 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 (*Hrc20Caller) TotalSupply

func (_Hrc20 *Hrc20Caller) 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 Hrc20CallerRaw

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

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

func (*Hrc20CallerRaw) Call

func (_Hrc20 *Hrc20CallerRaw) 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 Hrc20CallerSession

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

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

func (*Hrc20CallerSession) Allowance

func (_Hrc20 *Hrc20CallerSession) 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 (*Hrc20CallerSession) BalanceOf

func (_Hrc20 *Hrc20CallerSession) 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 (*Hrc20CallerSession) Decimals

func (_Hrc20 *Hrc20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*Hrc20CallerSession) Name

func (_Hrc20 *Hrc20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Hrc20CallerSession) Symbol

func (_Hrc20 *Hrc20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Hrc20CallerSession) TotalSupply

func (_Hrc20 *Hrc20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type Hrc20Filterer

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

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

func NewHrc20Filterer

func NewHrc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Hrc20Filterer, error)

NewHrc20Filterer creates a new log filterer instance of Hrc20, bound to a specific deployed contract.

func (*Hrc20Filterer) FilterApproval

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

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

func (_Hrc20 *Hrc20Filterer) ParseApproval(log types.Log) (*Hrc20Approval, error)

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

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

func (*Hrc20Filterer) ParseTransfer

func (_Hrc20 *Hrc20Filterer) ParseTransfer(log types.Log) (*Hrc20Transfer, error)

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

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

func (*Hrc20Filterer) WatchApproval

func (_Hrc20 *Hrc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Hrc20Approval, 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 (*Hrc20Filterer) WatchTransfer

func (_Hrc20 *Hrc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Hrc20Transfer, 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 Hrc20Raw

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

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

func (*Hrc20Raw) Call

func (_Hrc20 *Hrc20Raw) 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 (*Hrc20Raw) Transact

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

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

func (*Hrc20Raw) Transfer

func (_Hrc20 *Hrc20Raw) 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 Hrc20Session

type Hrc20Session struct {
	Contract     *Hrc20            // 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
}

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

func (*Hrc20Session) Allowance

func (_Hrc20 *Hrc20Session) 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 (*Hrc20Session) Approve

func (_Hrc20 *Hrc20Session) 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 (*Hrc20Session) BalanceOf

func (_Hrc20 *Hrc20Session) 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 (*Hrc20Session) Decimals

func (_Hrc20 *Hrc20Session) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*Hrc20Session) DecreaseAllowance

func (_Hrc20 *Hrc20Session) 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 (*Hrc20Session) IncreaseAllowance

func (_Hrc20 *Hrc20Session) 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 (*Hrc20Session) Name

func (_Hrc20 *Hrc20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Hrc20Session) Symbol

func (_Hrc20 *Hrc20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Hrc20Session) TotalSupply

func (_Hrc20 *Hrc20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Hrc20Session) Transfer

func (_Hrc20 *Hrc20Session) 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 (*Hrc20Session) TransferFrom

func (_Hrc20 *Hrc20Session) 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 Hrc20Transactor

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

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

func NewHrc20Transactor

func NewHrc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Hrc20Transactor, error)

NewHrc20Transactor creates a new write-only instance of Hrc20, bound to a specific deployed contract.

func (*Hrc20Transactor) Approve

func (_Hrc20 *Hrc20Transactor) 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 (*Hrc20Transactor) DecreaseAllowance

func (_Hrc20 *Hrc20Transactor) 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 (*Hrc20Transactor) IncreaseAllowance

func (_Hrc20 *Hrc20Transactor) 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 (*Hrc20Transactor) Transfer

func (_Hrc20 *Hrc20Transactor) 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 (*Hrc20Transactor) TransferFrom

func (_Hrc20 *Hrc20Transactor) 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 Hrc20TransactorRaw

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

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

func (*Hrc20TransactorRaw) Transact

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

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

func (*Hrc20TransactorRaw) Transfer

func (_Hrc20 *Hrc20TransactorRaw) 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 Hrc20TransactorSession

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

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

func (*Hrc20TransactorSession) Approve

func (_Hrc20 *Hrc20TransactorSession) 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 (*Hrc20TransactorSession) DecreaseAllowance

func (_Hrc20 *Hrc20TransactorSession) 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 (*Hrc20TransactorSession) IncreaseAllowance

func (_Hrc20 *Hrc20TransactorSession) 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 (*Hrc20TransactorSession) Transfer

func (_Hrc20 *Hrc20TransactorSession) 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 (*Hrc20TransactorSession) TransferFrom

func (_Hrc20 *Hrc20TransactorSession) 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 Hrc20Transfer

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

Hrc20Transfer represents a Transfer event raised by the Hrc20 contract.

type Hrc20TransferIterator

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

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

func (*Hrc20TransferIterator) Close

func (it *Hrc20TransferIterator) Close() error

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

func (*Hrc20TransferIterator) Error

func (it *Hrc20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Hrc20TransferIterator) Next

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