native

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const CurrentVersion uint16 = 1

Variables

View Source
var NativeABI = NativeMetaData.ABI

NativeABI is the input ABI used to generate the binding from. Deprecated: Use NativeMetaData.ABI instead.

View Source
var NativeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"denom_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals_\",\"type\":\"uint8\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSpender\",\"type\":\"error\"},{\"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\":[],\"name\":\"BankPrecompile\",\"outputs\":[{\"internalType\":\"contractIBank\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":\"value\",\"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\":\"ddecimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"denom\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nname\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ssymbol\",\"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\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

NativeMetaData contains all meta data concerning the Native contract.

Functions

func GetABI

func GetABI() []byte

func GetBin

func GetBin() []byte

func GetParsedABI

func GetParsedABI() *abi.ABI

func IsCodeFromBin

func IsCodeFromBin(code []byte) bool

Types

type Native

type Native struct {
	NativeCaller     // Read-only binding to the contract
	NativeTransactor // Write-only binding to the contract
	NativeFilterer   // Log filterer for contract events
}

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

func NewNative

func NewNative(address common.Address, backend bind.ContractBackend) (*Native, error)

NewNative creates a new instance of Native, bound to a specific deployed contract.

type NativeApproval

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

NativeApproval represents a Approval event raised by the Native contract.

type NativeApprovalIterator

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

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

func (*NativeApprovalIterator) Close

func (it *NativeApprovalIterator) Close() error

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

func (*NativeApprovalIterator) Error

func (it *NativeApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NativeApprovalIterator) Next

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

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

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

func NewNativeCaller

func NewNativeCaller(address common.Address, caller bind.ContractCaller) (*NativeCaller, error)

NewNativeCaller creates a new read-only instance of Native, bound to a specific deployed contract.

func (*NativeCaller) Allowance

func (_Native *NativeCaller) 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 (*NativeCaller) BalanceOf

func (_Native *NativeCaller) 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 (*NativeCaller) BankPrecompile

func (_Native *NativeCaller) BankPrecompile(opts *bind.CallOpts) (common.Address, error)

BankPrecompile is a free data retrieval call binding the contract method 0x566732c1.

Solidity: function BankPrecompile() view returns(address)

func (*NativeCaller) Ddecimals

func (_Native *NativeCaller) Ddecimals(opts *bind.CallOpts) (uint8, error)

Ddecimals is a free data retrieval call binding the contract method 0xa8ad11e4.

Solidity: function ddecimals() view returns(uint8)

func (*NativeCaller) Decimals

func (_Native *NativeCaller) 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 (*NativeCaller) Denom

func (_Native *NativeCaller) Denom(opts *bind.CallOpts) (string, error)

Denom is a free data retrieval call binding the contract method 0xc370b042.

Solidity: function denom() view returns(string)

func (*NativeCaller) Name

func (_Native *NativeCaller) 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 (*NativeCaller) Nname

func (_Native *NativeCaller) Nname(opts *bind.CallOpts) (string, error)

Nname is a free data retrieval call binding the contract method 0x8a0989f5.

Solidity: function nname() view returns(string)

func (*NativeCaller) Ssymbol

func (_Native *NativeCaller) Ssymbol(opts *bind.CallOpts) (string, error)

Ssymbol is a free data retrieval call binding the contract method 0x9e10aa24.

Solidity: function ssymbol() view returns(string)

func (*NativeCaller) Symbol

func (_Native *NativeCaller) 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 (*NativeCaller) TotalSupply

func (_Native *NativeCaller) 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 NativeCallerRaw

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

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

func (*NativeCallerRaw) Call

func (_Native *NativeCallerRaw) 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 NativeCallerSession

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

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

func (*NativeCallerSession) Allowance

func (_Native *NativeCallerSession) 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 (*NativeCallerSession) BalanceOf

func (_Native *NativeCallerSession) 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 (*NativeCallerSession) BankPrecompile

func (_Native *NativeCallerSession) BankPrecompile() (common.Address, error)

BankPrecompile is a free data retrieval call binding the contract method 0x566732c1.

Solidity: function BankPrecompile() view returns(address)

func (*NativeCallerSession) Ddecimals

func (_Native *NativeCallerSession) Ddecimals() (uint8, error)

Ddecimals is a free data retrieval call binding the contract method 0xa8ad11e4.

Solidity: function ddecimals() view returns(uint8)

func (*NativeCallerSession) Decimals

func (_Native *NativeCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*NativeCallerSession) Denom

func (_Native *NativeCallerSession) Denom() (string, error)

Denom is a free data retrieval call binding the contract method 0xc370b042.

Solidity: function denom() view returns(string)

func (*NativeCallerSession) Name

func (_Native *NativeCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*NativeCallerSession) Nname

func (_Native *NativeCallerSession) Nname() (string, error)

Nname is a free data retrieval call binding the contract method 0x8a0989f5.

Solidity: function nname() view returns(string)

func (*NativeCallerSession) Ssymbol

func (_Native *NativeCallerSession) Ssymbol() (string, error)

Ssymbol is a free data retrieval call binding the contract method 0x9e10aa24.

Solidity: function ssymbol() view returns(string)

func (*NativeCallerSession) Symbol

func (_Native *NativeCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*NativeCallerSession) TotalSupply

func (_Native *NativeCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type NativeFilterer

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

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

func NewNativeFilterer

func NewNativeFilterer(address common.Address, filterer bind.ContractFilterer) (*NativeFilterer, error)

NewNativeFilterer creates a new log filterer instance of Native, bound to a specific deployed contract.

func (*NativeFilterer) FilterApproval

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

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

func (_Native *NativeFilterer) ParseApproval(log types.Log) (*NativeApproval, error)

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

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

func (*NativeFilterer) ParseTransfer

func (_Native *NativeFilterer) ParseTransfer(log types.Log) (*NativeTransfer, error)

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

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

func (*NativeFilterer) WatchApproval

func (_Native *NativeFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *NativeApproval, 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 (*NativeFilterer) WatchTransfer

func (_Native *NativeFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *NativeTransfer, 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 NativeRaw

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

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

func (*NativeRaw) Call

func (_Native *NativeRaw) 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 (*NativeRaw) Transact

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

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

func (*NativeRaw) Transfer

func (_Native *NativeRaw) 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 NativeSession

type NativeSession struct {
	Contract     *Native           // 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
}

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

func (*NativeSession) Allowance

func (_Native *NativeSession) 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 (*NativeSession) Approve

func (_Native *NativeSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*NativeSession) BalanceOf

func (_Native *NativeSession) 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 (*NativeSession) BankPrecompile

func (_Native *NativeSession) BankPrecompile() (common.Address, error)

BankPrecompile is a free data retrieval call binding the contract method 0x566732c1.

Solidity: function BankPrecompile() view returns(address)

func (*NativeSession) Ddecimals

func (_Native *NativeSession) Ddecimals() (uint8, error)

Ddecimals is a free data retrieval call binding the contract method 0xa8ad11e4.

Solidity: function ddecimals() view returns(uint8)

func (*NativeSession) Decimals

func (_Native *NativeSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*NativeSession) Denom

func (_Native *NativeSession) Denom() (string, error)

Denom is a free data retrieval call binding the contract method 0xc370b042.

Solidity: function denom() view returns(string)

func (*NativeSession) Name

func (_Native *NativeSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*NativeSession) Nname

func (_Native *NativeSession) Nname() (string, error)

Nname is a free data retrieval call binding the contract method 0x8a0989f5.

Solidity: function nname() view returns(string)

func (*NativeSession) Ssymbol

func (_Native *NativeSession) Ssymbol() (string, error)

Ssymbol is a free data retrieval call binding the contract method 0x9e10aa24.

Solidity: function ssymbol() view returns(string)

func (*NativeSession) Symbol

func (_Native *NativeSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*NativeSession) TotalSupply

func (_Native *NativeSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*NativeSession) Transfer

func (_Native *NativeSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*NativeSession) TransferFrom

func (_Native *NativeSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

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

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

type NativeTransactor

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

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

func NewNativeTransactor

func NewNativeTransactor(address common.Address, transactor bind.ContractTransactor) (*NativeTransactor, error)

NewNativeTransactor creates a new write-only instance of Native, bound to a specific deployed contract.

func (*NativeTransactor) Approve

func (_Native *NativeTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*NativeTransactor) Transfer

func (_Native *NativeTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*NativeTransactor) TransferFrom

func (_Native *NativeTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

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

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

type NativeTransactorRaw

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

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

func (*NativeTransactorRaw) Transact

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

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

func (*NativeTransactorRaw) Transfer

func (_Native *NativeTransactorRaw) 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 NativeTransactorSession

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

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

func (*NativeTransactorSession) Approve

func (_Native *NativeTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*NativeTransactorSession) Transfer

func (_Native *NativeTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*NativeTransactorSession) TransferFrom

func (_Native *NativeTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

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

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

type NativeTransfer

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

NativeTransfer represents a Transfer event raised by the Native contract.

type NativeTransferIterator

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

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

func (*NativeTransferIterator) Close

func (it *NativeTransferIterator) Close() error

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

func (*NativeTransferIterator) Error

func (it *NativeTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NativeTransferIterator) Next

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