Help us shape the future of Go! Take the 2026 Go Developer Survey

mintableerc20

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mintableerc20ABI = Mintableerc20MetaData.ABI

Mintableerc20ABI is the input ABI used to generate the binding from. Deprecated: Use Mintableerc20MetaData.ABI instead.

View Source
var Mintableerc20Bin = Mintableerc20MetaData.Bin

Mintableerc20Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use Mintableerc20MetaData.Bin instead.

View Source
var Mintableerc20MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"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\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"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\":\"\",\"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\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\"}]",
	Bin: "0x60806040523480156200001157600080fd5b50604051620009763803806200097683398101604081905262000034916200011f565b600062000042838262000218565b50600162000051828262000218565b505050620002e4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008257600080fd5b81516001600160401b03808211156200009f576200009f6200005a565b604051601f8301601f19908116603f01168101908282118183101715620000ca57620000ca6200005a565b81604052838152602092508683858801011115620000e757600080fd5b600091505b838210156200010b5785820183015181830184015290820190620000ec565b600093810190920192909252949350505050565b600080604083850312156200013357600080fd5b82516001600160401b03808211156200014b57600080fd5b620001598683870162000070565b935060208501519150808211156200017057600080fd5b506200017f8582860162000070565b9150509250929050565b600181811c908216806200019e57607f821691505b602082108103620001bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021357600081815260208120601f850160051c81016020861015620001ee5750805b601f850160051c820191505b818110156200020f57828155600101620001fa565b5050505b505050565b81516001600160401b038111156200023457620002346200005a565b6200024c8162000245845462000189565b84620001c5565b602080601f8311600181146200028457600084156200026b5750858301515b600019600386901b1c1916600185901b1785556200020f565b600085815260208120601f198616915b82811015620002b55788860151825594840194600190910190840162000294565b5085821015620002d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61068280620002f46000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806340c10f191161006657806340c10f191461012857806370a082311461013d57806395d89b411461015d578063a9059cbb14610165578063dd62ed3e1461017857600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb578063313ce5671461010e575b600080fd5b6100ab6101a3565b6040516100b891906104b1565b60405180910390f35b6100d46100cf36600461051b565b610231565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d4610109366004610545565b61029e565b610116601281565b60405160ff90911681526020016100b8565b61013b61013636600461051b565b61038b565b005b6100ed61014b366004610581565b60036020526000908152604090205481565b6100ab610414565b6100d461017336600461051b565b610421565b6100ed6101863660046105a3565b600460209081526000928352604080842090915290825290205481565b600080546101b0906105d6565b80601f01602080910402602001604051908101604052809291908181526020018280546101dc906105d6565b80156102295780601f106101fe57610100808354040283529160200191610229565b820191906000526020600020905b81548152906001019060200180831161020c57829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028c9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526004602090815260408083203384529091528120805483919083906102d3908490610626565b90915550506001600160a01b03841660009081526003602052604081208054849290610300908490610626565b90915550506001600160a01b0383166000908152600360205260408120805484929061032d908490610639565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161037991815260200190565b60405180910390a35060019392505050565b806002600082825461039d9190610639565b90915550506001600160a01b038216600090815260036020526040812080548392906103ca908490610639565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600180546101b0906105d6565b33600090815260036020526040812080548391908390610442908490610626565b90915550506001600160a01b0383166000908152600360205260408120805484929061046f908490610639565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161028c565b600060208083528351808285015260005b818110156104de578581018301518582016040015282016104c2565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461051657600080fd5b919050565b6000806040838503121561052e57600080fd5b610537836104ff565b946020939093013593505050565b60008060006060848603121561055a57600080fd5b610563846104ff565b9250610571602085016104ff565b9150604084013590509250925092565b60006020828403121561059357600080fd5b61059c826104ff565b9392505050565b600080604083850312156105b657600080fd5b6105bf836104ff565b91506105cd602084016104ff565b90509250929050565b600181811c908216806105ea57607f821691505b60208210810361060a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561029857610298610610565b808201808211156102985761029861061056fea26469706673582212202dd5c467bf43fd8ac18a8a61ba0d72bd972fe5578b9423a313202c31db709b5264736f6c63430008120033",
}

Mintableerc20MetaData contains all meta data concerning the Mintableerc20 contract.

Functions

This section is empty.

Types

type Mintableerc20

type Mintableerc20 struct {
	Mintableerc20Caller     // Read-only binding to the contract
	Mintableerc20Transactor // Write-only binding to the contract
	Mintableerc20Filterer   // Log filterer for contract events
}

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

func DeployMintableerc20

func DeployMintableerc20(auth *bind.TransactOpts, backend bind.ContractBackend, _name string, _symbol string) (common.Address, *types.Transaction, *Mintableerc20, error)

DeployMintableerc20 deploys a new Ethereum contract, binding an instance of Mintableerc20 to it.

func NewMintableerc20

func NewMintableerc20(address common.Address, backend bind.ContractBackend) (*Mintableerc20, error)

NewMintableerc20 creates a new instance of Mintableerc20, bound to a specific deployed contract.

type Mintableerc20Approval

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

Mintableerc20Approval represents a Approval event raised by the Mintableerc20 contract.

type Mintableerc20ApprovalIterator

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

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

func (*Mintableerc20ApprovalIterator) Close

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

func (*Mintableerc20ApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Mintableerc20ApprovalIterator) Next

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 Mintableerc20Caller

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

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

func NewMintableerc20Caller

func NewMintableerc20Caller(address common.Address, caller bind.ContractCaller) (*Mintableerc20Caller, error)

NewMintableerc20Caller creates a new read-only instance of Mintableerc20, bound to a specific deployed contract.

func (*Mintableerc20Caller) Allowance

func (_Mintableerc20 *Mintableerc20Caller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*Mintableerc20Caller) BalanceOf

func (_Mintableerc20 *Mintableerc20Caller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

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

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

func (*Mintableerc20Caller) Decimals

func (_Mintableerc20 *Mintableerc20Caller) 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 (*Mintableerc20Caller) Name

func (_Mintableerc20 *Mintableerc20Caller) 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 (*Mintableerc20Caller) Symbol

func (_Mintableerc20 *Mintableerc20Caller) 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 (*Mintableerc20Caller) TotalSupply

func (_Mintableerc20 *Mintableerc20Caller) 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 Mintableerc20CallerRaw

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

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

func (*Mintableerc20CallerRaw) Call

func (_Mintableerc20 *Mintableerc20CallerRaw) 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 Mintableerc20CallerSession

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

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

func (*Mintableerc20CallerSession) Allowance

func (_Mintableerc20 *Mintableerc20CallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*Mintableerc20CallerSession) BalanceOf

func (_Mintableerc20 *Mintableerc20CallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)

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

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

func (*Mintableerc20CallerSession) Decimals

func (_Mintableerc20 *Mintableerc20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*Mintableerc20CallerSession) Name

func (_Mintableerc20 *Mintableerc20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Mintableerc20CallerSession) Symbol

func (_Mintableerc20 *Mintableerc20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Mintableerc20CallerSession) TotalSupply

func (_Mintableerc20 *Mintableerc20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type Mintableerc20Filterer

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

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

func NewMintableerc20Filterer

func NewMintableerc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Mintableerc20Filterer, error)

NewMintableerc20Filterer creates a new log filterer instance of Mintableerc20, bound to a specific deployed contract.

func (*Mintableerc20Filterer) FilterApproval

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

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

func (_Mintableerc20 *Mintableerc20Filterer) ParseApproval(log types.Log) (*Mintableerc20Approval, error)

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

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

func (*Mintableerc20Filterer) ParseTransfer

func (_Mintableerc20 *Mintableerc20Filterer) ParseTransfer(log types.Log) (*Mintableerc20Transfer, error)

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

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

func (*Mintableerc20Filterer) WatchApproval

func (_Mintableerc20 *Mintableerc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Mintableerc20Approval, 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 (*Mintableerc20Filterer) WatchTransfer

func (_Mintableerc20 *Mintableerc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Mintableerc20Transfer, 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 Mintableerc20Raw

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

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

func (*Mintableerc20Raw) Call

func (_Mintableerc20 *Mintableerc20Raw) 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 (*Mintableerc20Raw) Transact

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

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

func (*Mintableerc20Raw) Transfer

func (_Mintableerc20 *Mintableerc20Raw) 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 Mintableerc20Session

type Mintableerc20Session struct {
	Contract     *Mintableerc20    // 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
}

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

func (*Mintableerc20Session) Allowance

func (_Mintableerc20 *Mintableerc20Session) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*Mintableerc20Session) Approve

func (_Mintableerc20 *Mintableerc20Session) 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 (*Mintableerc20Session) BalanceOf

func (_Mintableerc20 *Mintableerc20Session) BalanceOf(arg0 common.Address) (*big.Int, error)

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

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

func (*Mintableerc20Session) Decimals

func (_Mintableerc20 *Mintableerc20Session) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*Mintableerc20Session) Mint

func (_Mintableerc20 *Mintableerc20Session) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address to, uint256 amount) returns()

func (*Mintableerc20Session) Name

func (_Mintableerc20 *Mintableerc20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*Mintableerc20Session) Symbol

func (_Mintableerc20 *Mintableerc20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*Mintableerc20Session) TotalSupply

func (_Mintableerc20 *Mintableerc20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*Mintableerc20Session) Transfer

func (_Mintableerc20 *Mintableerc20Session) 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 (*Mintableerc20Session) TransferFrom

func (_Mintableerc20 *Mintableerc20Session) 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 Mintableerc20Transactor

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

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

func NewMintableerc20Transactor

func NewMintableerc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Mintableerc20Transactor, error)

NewMintableerc20Transactor creates a new write-only instance of Mintableerc20, bound to a specific deployed contract.

func (*Mintableerc20Transactor) Approve

func (_Mintableerc20 *Mintableerc20Transactor) 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 (*Mintableerc20Transactor) Mint

func (_Mintableerc20 *Mintableerc20Transactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address to, uint256 amount) returns()

func (*Mintableerc20Transactor) Transfer

func (_Mintableerc20 *Mintableerc20Transactor) 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 (*Mintableerc20Transactor) TransferFrom

func (_Mintableerc20 *Mintableerc20Transactor) 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 Mintableerc20TransactorRaw

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

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

func (*Mintableerc20TransactorRaw) Transact

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

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

func (*Mintableerc20TransactorRaw) Transfer

func (_Mintableerc20 *Mintableerc20TransactorRaw) 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 Mintableerc20TransactorSession

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

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

func (*Mintableerc20TransactorSession) Approve

func (_Mintableerc20 *Mintableerc20TransactorSession) 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 (*Mintableerc20TransactorSession) Mint

func (_Mintableerc20 *Mintableerc20TransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address to, uint256 amount) returns()

func (*Mintableerc20TransactorSession) Transfer

func (_Mintableerc20 *Mintableerc20TransactorSession) 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 (*Mintableerc20TransactorSession) TransferFrom

func (_Mintableerc20 *Mintableerc20TransactorSession) 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 Mintableerc20Transfer

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

Mintableerc20Transfer represents a Transfer event raised by the Mintableerc20 contract.

type Mintableerc20TransferIterator

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

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

func (*Mintableerc20TransferIterator) Close

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

func (*Mintableerc20TransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Mintableerc20TransferIterator) Next

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