cw20

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: 15 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

This section is empty.

Variables

View Source
var Cw20ABI = Cw20MetaData.ABI

Cw20ABI is the input ABI used to generate the binding from. Deprecated: Use Cw20MetaData.ABI instead.

View Source
var Cw20MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"Cw20Address_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"}],\"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\":\"AddrPrecompile\",\"outputs\":[{\"internalType\":\"contractIAddr\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Cw20Address\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"JsonPrecompile\",\"outputs\":[{\"internalType\":\"contractIJson\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WasmdPrecompile\",\"outputs\":[{\"internalType\":\"contractIWasmd\",\"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\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

Cw20MetaData contains all meta data concerning the Cw20 contract.

Functions

func CurrentVersion

func CurrentVersion(ctx sdk.Context) uint16

func GetABI

func GetABI() []byte

func GetBin

func GetBin() []byte

func GetLegacyBin

func GetLegacyBin() []byte

func GetParsedABI

func GetParsedABI() *abi.ABI

func IsCodeFromBin

func IsCodeFromBin(code []byte) bool

func SetVersionWithOffset

func SetVersionWithOffset(offset int16)

SetVersionWithOffset allows for overriding the version for integration test scenarios

Types

type Cw20

type Cw20 struct {
	Cw20Caller     // Read-only binding to the contract
	Cw20Transactor // Write-only binding to the contract
	Cw20Filterer   // Log filterer for contract events
}

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

func NewCw20

func NewCw20(address common.Address, backend bind.ContractBackend) (*Cw20, error)

NewCw20 creates a new instance of Cw20, bound to a specific deployed contract.

type Cw20Approval

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

Cw20Approval represents a Approval event raised by the Cw20 contract.

type Cw20ApprovalIterator

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

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

func (*Cw20ApprovalIterator) Close

func (it *Cw20ApprovalIterator) Close() error

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

func (*Cw20ApprovalIterator) Error

func (it *Cw20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Cw20ApprovalIterator) Next

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

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

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

func NewCw20Caller

func NewCw20Caller(address common.Address, caller bind.ContractCaller) (*Cw20Caller, error)

NewCw20Caller creates a new read-only instance of Cw20, bound to a specific deployed contract.

func (*Cw20Caller) AddrPrecompile

func (_Cw20 *Cw20Caller) AddrPrecompile(opts *bind.CallOpts) (common.Address, error)

AddrPrecompile is a free data retrieval call binding the contract method 0xc2aed302.

Solidity: function AddrPrecompile() view returns(address)

func (*Cw20Caller) Allowance

func (_Cw20 *Cw20Caller) 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 (*Cw20Caller) BalanceOf

func (_Cw20 *Cw20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

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

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

func (*Cw20Caller) Cw20Address

func (_Cw20 *Cw20Caller) Cw20Address(opts *bind.CallOpts) (string, error)

Cw20Address is a free data retrieval call binding the contract method 0xda73d16b.

Solidity: function Cw20Address() view returns(string)

func (*Cw20Caller) Decimals

func (_Cw20 *Cw20Caller) 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 (*Cw20Caller) JsonPrecompile

func (_Cw20 *Cw20Caller) JsonPrecompile(opts *bind.CallOpts) (common.Address, error)

JsonPrecompile is a free data retrieval call binding the contract method 0xde4725cc.

Solidity: function JsonPrecompile() view returns(address)

func (*Cw20Caller) Name

func (_Cw20 *Cw20Caller) 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 (*Cw20Caller) Symbol

func (_Cw20 *Cw20Caller) 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 (*Cw20Caller) TotalSupply

func (_Cw20 *Cw20Caller) 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)

func (*Cw20Caller) WasmdPrecompile

func (_Cw20 *Cw20Caller) WasmdPrecompile(opts *bind.CallOpts) (common.Address, error)

WasmdPrecompile is a free data retrieval call binding the contract method 0xf00b0255.

Solidity: function WasmdPrecompile() view returns(address)

type Cw20CallerRaw

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

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

func (*Cw20CallerRaw) Call

func (_Cw20 *Cw20CallerRaw) 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 Cw20CallerSession

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

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

func (*Cw20CallerSession) AddrPrecompile

func (_Cw20 *Cw20CallerSession) AddrPrecompile() (common.Address, error)

AddrPrecompile is a free data retrieval call binding the contract method 0xc2aed302.

Solidity: function AddrPrecompile() view returns(address)

func (*Cw20CallerSession) Allowance

func (_Cw20 *Cw20CallerSession) 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 (*Cw20CallerSession) BalanceOf

func (_Cw20 *Cw20CallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*Cw20CallerSession) Cw20Address

func (_Cw20 *Cw20CallerSession) Cw20Address() (string, error)

Cw20Address is a free data retrieval call binding the contract method 0xda73d16b.

Solidity: function Cw20Address() view returns(string)

func (*Cw20CallerSession) Decimals

func (_Cw20 *Cw20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*Cw20CallerSession) JsonPrecompile

func (_Cw20 *Cw20CallerSession) JsonPrecompile() (common.Address, error)

JsonPrecompile is a free data retrieval call binding the contract method 0xde4725cc.

Solidity: function JsonPrecompile() view returns(address)

func (*Cw20CallerSession) Name

func (_Cw20 *Cw20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Cw20CallerSession) Symbol

func (_Cw20 *Cw20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Cw20CallerSession) TotalSupply

func (_Cw20 *Cw20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Cw20CallerSession) WasmdPrecompile

func (_Cw20 *Cw20CallerSession) WasmdPrecompile() (common.Address, error)

WasmdPrecompile is a free data retrieval call binding the contract method 0xf00b0255.

Solidity: function WasmdPrecompile() view returns(address)

type Cw20Filterer

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

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

func NewCw20Filterer

func NewCw20Filterer(address common.Address, filterer bind.ContractFilterer) (*Cw20Filterer, error)

NewCw20Filterer creates a new log filterer instance of Cw20, bound to a specific deployed contract.

func (*Cw20Filterer) FilterApproval

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

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

func (_Cw20 *Cw20Filterer) ParseApproval(log types.Log) (*Cw20Approval, error)

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

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

func (*Cw20Filterer) ParseTransfer

func (_Cw20 *Cw20Filterer) ParseTransfer(log types.Log) (*Cw20Transfer, error)

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

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

func (*Cw20Filterer) WatchApproval

func (_Cw20 *Cw20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Cw20Approval, 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 (*Cw20Filterer) WatchTransfer

func (_Cw20 *Cw20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Cw20Transfer, 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 Cw20Raw

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

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

func (*Cw20Raw) Call

func (_Cw20 *Cw20Raw) 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 (*Cw20Raw) Transact

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

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

func (*Cw20Raw) Transfer

func (_Cw20 *Cw20Raw) 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 Cw20Session

type Cw20Session struct {
	Contract     *Cw20             // 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
}

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

func (*Cw20Session) AddrPrecompile

func (_Cw20 *Cw20Session) AddrPrecompile() (common.Address, error)

AddrPrecompile is a free data retrieval call binding the contract method 0xc2aed302.

Solidity: function AddrPrecompile() view returns(address)

func (*Cw20Session) Allowance

func (_Cw20 *Cw20Session) 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 (*Cw20Session) Approve

func (_Cw20 *Cw20Session) 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 (*Cw20Session) BalanceOf

func (_Cw20 *Cw20Session) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*Cw20Session) Cw20Address

func (_Cw20 *Cw20Session) Cw20Address() (string, error)

Cw20Address is a free data retrieval call binding the contract method 0xda73d16b.

Solidity: function Cw20Address() view returns(string)

func (*Cw20Session) Decimals

func (_Cw20 *Cw20Session) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*Cw20Session) JsonPrecompile

func (_Cw20 *Cw20Session) JsonPrecompile() (common.Address, error)

JsonPrecompile is a free data retrieval call binding the contract method 0xde4725cc.

Solidity: function JsonPrecompile() view returns(address)

func (*Cw20Session) Name

func (_Cw20 *Cw20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Cw20Session) Symbol

func (_Cw20 *Cw20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Cw20Session) TotalSupply

func (_Cw20 *Cw20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Cw20Session) Transfer

func (_Cw20 *Cw20Session) 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 (*Cw20Session) TransferFrom

func (_Cw20 *Cw20Session) 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)

func (*Cw20Session) WasmdPrecompile

func (_Cw20 *Cw20Session) WasmdPrecompile() (common.Address, error)

WasmdPrecompile is a free data retrieval call binding the contract method 0xf00b0255.

Solidity: function WasmdPrecompile() view returns(address)

type Cw20Transactor

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

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

func NewCw20Transactor

func NewCw20Transactor(address common.Address, transactor bind.ContractTransactor) (*Cw20Transactor, error)

NewCw20Transactor creates a new write-only instance of Cw20, bound to a specific deployed contract.

func (*Cw20Transactor) Approve

func (_Cw20 *Cw20Transactor) 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 (*Cw20Transactor) Transfer

func (_Cw20 *Cw20Transactor) 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 (*Cw20Transactor) TransferFrom

func (_Cw20 *Cw20Transactor) 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 Cw20TransactorRaw

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

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

func (*Cw20TransactorRaw) Transact

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

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

func (*Cw20TransactorRaw) Transfer

func (_Cw20 *Cw20TransactorRaw) 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 Cw20TransactorSession

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

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

func (*Cw20TransactorSession) Approve

func (_Cw20 *Cw20TransactorSession) 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 (*Cw20TransactorSession) Transfer

func (_Cw20 *Cw20TransactorSession) 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 (*Cw20TransactorSession) TransferFrom

func (_Cw20 *Cw20TransactorSession) 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 Cw20Transfer

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

Cw20Transfer represents a Transfer event raised by the Cw20 contract.

type Cw20TransferIterator

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

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

func (*Cw20TransferIterator) Close

func (it *Cw20TransferIterator) Close() error

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

func (*Cw20TransferIterator) Error

func (it *Cw20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Cw20TransferIterator) Next

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