Documentation ¶
Index ¶
- Variables
- type Erc20
- type Erc20Approval
- type Erc20ApprovalIterator
- type Erc20Caller
- func (_Erc20 *Erc20Caller) Allowance(opts *bind.CallOpts, owner common.Address, delegate common.Address) (*big.Int, error)
- func (_Erc20 *Erc20Caller) BalanceOf(opts *bind.CallOpts, tokenOwner common.Address) (*big.Int, error)
- func (_Erc20 *Erc20Caller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Erc20 *Erc20Caller) Name(opts *bind.CallOpts) (string, error)
- func (_Erc20 *Erc20Caller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Erc20 *Erc20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type Erc20CallerRaw
- type Erc20CallerSession
- func (_Erc20 *Erc20CallerSession) Allowance(owner common.Address, delegate common.Address) (*big.Int, error)
- func (_Erc20 *Erc20CallerSession) BalanceOf(tokenOwner common.Address) (*big.Int, error)
- func (_Erc20 *Erc20CallerSession) Decimals() (uint8, error)
- func (_Erc20 *Erc20CallerSession) Name() (string, error)
- func (_Erc20 *Erc20CallerSession) Symbol() (string, error)
- func (_Erc20 *Erc20CallerSession) TotalSupply() (*big.Int, error)
- type Erc20Filterer
- func (_Erc20 *Erc20Filterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*Erc20ApprovalIterator, error)
- func (_Erc20 *Erc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Erc20TransferIterator, error)
- func (_Erc20 *Erc20Filterer) ParseApproval(log types.Log) (*Erc20Approval, error)
- func (_Erc20 *Erc20Filterer) ParseTransfer(log types.Log) (*Erc20Transfer, error)
- func (_Erc20 *Erc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc20Approval, tokenOwner []common.Address, ...) (event.Subscription, error)
- func (_Erc20 *Erc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc20Transfer, from []common.Address, ...) (event.Subscription, error)
- type Erc20Raw
- func (_Erc20 *Erc20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Erc20 *Erc20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Erc20 *Erc20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Erc20Session
- func (_Erc20 *Erc20Session) Allowance(owner common.Address, delegate common.Address) (*big.Int, error)
- func (_Erc20 *Erc20Session) Approve(delegate common.Address, numTokens *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) BalanceOf(tokenOwner common.Address) (*big.Int, error)
- func (_Erc20 *Erc20Session) Decimals() (uint8, error)
- func (_Erc20 *Erc20Session) Fallback(calldata []byte) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) Name() (string, error)
- func (_Erc20 *Erc20Session) Receive() (*types.Transaction, error)
- func (_Erc20 *Erc20Session) Symbol() (string, error)
- func (_Erc20 *Erc20Session) TotalSupply() (*big.Int, error)
- func (_Erc20 *Erc20Session) Transfer(receiver common.Address, numTokens *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Session) TransferFrom(owner common.Address, buyer common.Address, numTokens *big.Int) (*types.Transaction, error)
- type Erc20Transactor
- func (_Erc20 *Erc20Transactor) Approve(opts *bind.TransactOpts, delegate common.Address, numTokens *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) Transfer(opts *bind.TransactOpts, receiver common.Address, numTokens *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20Transactor) TransferFrom(opts *bind.TransactOpts, owner common.Address, buyer common.Address, ...) (*types.Transaction, error)
- type Erc20TransactorRaw
- type Erc20TransactorSession
- func (_Erc20 *Erc20TransactorSession) Approve(delegate common.Address, numTokens *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) Receive() (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) Transfer(receiver common.Address, numTokens *big.Int) (*types.Transaction, error)
- func (_Erc20 *Erc20TransactorSession) TransferFrom(owner common.Address, buyer common.Address, numTokens *big.Int) (*types.Transaction, error)
- type Erc20Transfer
- type Erc20TransferIterator
Constants ¶
This section is empty.
Variables ¶
var Erc20ABI = Erc20MetaData.ABI
Erc20ABI is the input ABI used to generate the binding from. Deprecated: Use Erc20MetaData.ABI instead.
var Erc20Bin = Erc20MetaData.Bin
Erc20Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use Erc20MetaData.Bin instead.
var Erc20MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"total\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"coinName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"coinSymbol\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"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\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"numTokens\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenOwner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"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\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"numTokens\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"numTokens\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
Bin: "0x60806040523480156200001157600080fd5b506040516200146538038062001465833981810160405281019062000037919062000220565b81600090805190602001906200004f929190620000db565b50806001908051906020019062000068929190620000db565b506005600260006101000a81548160ff021916908360ff16021790555082600581905550600554600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505062000462565b828054620000e99062000359565b90600052602060002090601f0160209004810192826200010d576000855562000159565b82601f106200012857805160ff191683800117855562000159565b8280016001018555821562000159579182015b82811115620001585782518255916020019190600101906200013b565b5b5090506200016891906200016c565b5090565b5b80821115620001875760008160009055506001016200016d565b5090565b6000620001a26200019c84620002e3565b620002ba565b905082815260208101848484011115620001c157620001c062000428565b5b620001ce84828562000323565b509392505050565b600082601f830112620001ee57620001ed62000423565b5b8151620002008482602086016200018b565b91505092915050565b6000815190506200021a8162000448565b92915050565b6000806000606084860312156200023c576200023b62000432565b5b60006200024c8682870162000209565b935050602084015167ffffffffffffffff81111562000270576200026f6200042d565b5b6200027e86828701620001d6565b925050604084015167ffffffffffffffff811115620002a257620002a16200042d565b5b620002b086828701620001d6565b9150509250925092565b6000620002c6620002d9565b9050620002d482826200038f565b919050565b6000604051905090565b600067ffffffffffffffff821115620003015762000300620003f4565b5b6200030c8262000437565b9050602081019050919050565b6000819050919050565b60005b838110156200034357808201518184015260208101905062000326565b8381111562000353576000848401525b50505050565b600060028204905060018216806200037257607f821691505b60208210811415620003895762000388620003c5565b5b50919050565b6200039a8262000437565b810181811067ffffffffffffffff82111715620003bc57620003bb620003f4565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620004538162000319565b81146200045f57600080fd5b50565b610ff380620004726000396000f3fe60806040526004361061008a5760003560e01c8063313ce56711610059578063313ce5671461016957806370a082311461019457806395d89b41146101d1578063a9059cbb146101fc578063dd62ed3e1461023957610094565b806306fdde0314610099578063095ea7b3146100c457806318160ddd1461010157806323b872dd1461012c57610094565b3661009457600080fd5b600080fd5b3480156100a557600080fd5b506100ae610276565b6040516100bb9190610c16565b60405180910390f35b3480156100d057600080fd5b506100eb60048036038101906100e69190610aec565b610304565b6040516100f89190610bfb565b60405180910390f35b34801561010d57600080fd5b506101166103f6565b6040516101239190610c98565b60405180910390f35b34801561013857600080fd5b50610153600480360381019061014e9190610a99565b610400565b6040516101609190610bfb565b60405180910390f35b34801561017557600080fd5b5061017e6106f2565b60405161018b9190610cb3565b60405180910390f35b3480156101a057600080fd5b506101bb60048036038101906101b69190610a2c565b610705565b6040516101c89190610c98565b60405180910390f35b3480156101dd57600080fd5b506101e661074e565b6040516101f39190610c16565b60405180910390f35b34801561020857600080fd5b50610223600480360381019061021e9190610aec565b6107dc565b6040516102309190610bfb565b60405180910390f35b34801561024557600080fd5b50610260600480360381019061025b9190610a59565b61097b565b60405161026d9190610c98565b60405180910390f35b6000805461028390610dfc565b80601f01602080910402602001604051908101604052809291908181526020018280546102af90610dfc565b80156102fc5780601f106102d1576101008083540402835291602001916102fc565b820191906000526020600020905b8154815290600101906020018083116102df57829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516103e49190610c98565b60405180910390a36001905092915050565b6000600554905090565b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115610484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047b90610c58565b60405180910390fd5b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115610543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053a90610c38565b60405180910390fd5b81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105929190610d40565b9250508190555081600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546106259190610d40565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461067b9190610cea565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516106df9190610c98565b60405180910390a3600190509392505050565b600260009054906101000a900460ff1681565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6001805461075b90610dfc565b80601f016020809104026020016040519081016040528092919081815260200182805461078790610dfc565b80156107d45780601f106107a9576101008083540402835291602001916107d4565b820191906000526020600020905b8154815290600101906020018083116107b757829003601f168201915b505050505081565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085790610c78565b60405180910390fd5b81600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108af9190610d40565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109059190610cea565b925050819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516109699190610c98565b60405180910390a36001905092915050565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600081359050610a1181610f8f565b92915050565b600081359050610a2681610fa6565b92915050565b600060208284031215610a4257610a41610e8c565b5b6000610a5084828501610a02565b91505092915050565b60008060408385031215610a7057610a6f610e8c565b5b6000610a7e85828601610a02565b9250506020610a8f85828601610a02565b9150509250929050565b600080600060608486031215610ab257610ab1610e8c565b5b6000610ac086828701610a02565b9350506020610ad186828701610a02565b9250506040610ae286828701610a17565b9150509250925092565b60008060408385031215610b0357610b02610e8c565b5b6000610b1185828601610a02565b9250506020610b2285828601610a17565b9150509250929050565b610b3581610d86565b82525050565b6000610b4682610cce565b610b508185610cd9565b9350610b60818560208601610dc9565b610b6981610e91565b840191505092915050565b6000610b81604083610cd9565b9150610b8c82610ea2565b604082019050919050565b6000610ba4603983610cd9565b9150610baf82610ef1565b604082019050919050565b6000610bc7603a83610cd9565b9150610bd282610f40565b604082019050919050565b610be681610db2565b82525050565b610bf581610dbc565b82525050565b6000602082019050610c106000830184610b2c565b92915050565b60006020820190508181036000830152610c308184610b3b565b905092915050565b60006020820190508181036000830152610c5181610b74565b9050919050565b60006020820190508181036000830152610c7181610b97565b9050919050565b60006020820190508181036000830152610c9181610bba565b9050919050565b6000602082019050610cad6000830184610bdd565b92915050565b6000602082019050610cc86000830184610bec565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610cf582610db2565b9150610d0083610db2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610d3557610d34610e2e565b5b828201905092915050565b6000610d4b82610db2565b9150610d5683610db2565b925082821015610d6957610d68610e2e565b5b828203905092915050565b6000610d7f82610d92565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610de7578082015181840152602081019050610dcc565b83811115610df6576000848401525b50505050565b60006002820490506001821680610e1457607f821691505b60208210811415610e2857610e27610e5d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f5468652064656c656761746520646f73656e2774206861766520656e6f75676860008201527f20616c6c6f77616e636520746f206d616b6520746865207472616e7366657221602082015250565b7f546865206f776e657220646f65736e2774206861766520656e6f75676820667560008201527f6e647320746f206d616b6520746865207472616e736665722100000000000000602082015250565b7f5468652073656e64657220646f73656e2774206861766520656e6f756768206660008201527f756e647320746f206d616b6520746865207472616e7366657221000000000000602082015250565b610f9881610d74565b8114610fa357600080fd5b50565b610faf81610db2565b8114610fba57600080fd5b5056fea26469706673582212200e5255656b357df40d9b2f85e514df2c5ce154371a2e0849bd0dfde95ed02c0764736f6c63430008070033",
}
Erc20MetaData contains all meta data concerning the Erc20 contract.
Functions ¶
This section is empty.
Types ¶
type Erc20 ¶
type Erc20 struct { Erc20Caller // Read-only binding to the contract Erc20Transactor // Write-only binding to the contract Erc20Filterer // Log filterer for contract events }
Erc20 is an auto generated Go binding around an Ethereum contract.
func DeployErc20 ¶
func DeployErc20(auth *bind.TransactOpts, backend bind.ContractBackend, total *big.Int, coinName string, coinSymbol string) (common.Address, *types.Transaction, *Erc20, error)
DeployErc20 deploys a new Ethereum contract, binding an instance of Erc20 to it.
type Erc20Approval ¶
type Erc20Approval struct { TokenOwner common.Address Spender common.Address Tokens *big.Int Raw types.Log // Blockchain specific contextual infos }
Erc20Approval represents a Approval event raised by the Erc20 contract.
type Erc20ApprovalIterator ¶
type Erc20ApprovalIterator struct { Event *Erc20Approval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Erc20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Erc20 contract.
func (*Erc20ApprovalIterator) Close ¶
func (it *Erc20ApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Erc20ApprovalIterator) Error ¶
func (it *Erc20ApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Erc20ApprovalIterator) Next ¶
func (it *Erc20ApprovalIterator) 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 Erc20Caller ¶
type Erc20Caller struct {
// contains filtered or unexported fields
}
Erc20Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewErc20Caller ¶
func NewErc20Caller(address common.Address, caller bind.ContractCaller) (*Erc20Caller, error)
NewErc20Caller creates a new read-only instance of Erc20, bound to a specific deployed contract.
func (*Erc20Caller) Allowance ¶
func (_Erc20 *Erc20Caller) Allowance(opts *bind.CallOpts, owner common.Address, delegate common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address delegate) view returns(uint256)
func (*Erc20Caller) BalanceOf ¶
func (_Erc20 *Erc20Caller) BalanceOf(opts *bind.CallOpts, tokenOwner common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address tokenOwner) view returns(uint256 balance)
func (*Erc20Caller) Decimals ¶
func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) Name ¶
func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) Symbol ¶
func (_Erc20 *Erc20Caller) 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 (*Erc20Caller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type Erc20CallerRaw ¶
type Erc20CallerRaw struct {
Contract *Erc20Caller // Generic read-only contract binding to access the raw methods on
}
Erc20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Erc20CallerRaw) Call ¶
func (_Erc20 *Erc20CallerRaw) 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 Erc20CallerSession ¶
type Erc20CallerSession struct { Contract *Erc20Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Erc20CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Erc20CallerSession) Allowance ¶
func (_Erc20 *Erc20CallerSession) Allowance(owner common.Address, delegate common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address delegate) view returns(uint256)
func (*Erc20CallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address tokenOwner) view returns(uint256 balance)
func (*Erc20CallerSession) Decimals ¶
func (_Erc20 *Erc20CallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*Erc20CallerSession) Name ¶
func (_Erc20 *Erc20CallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*Erc20CallerSession) Symbol ¶
func (_Erc20 *Erc20CallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*Erc20CallerSession) TotalSupply ¶
func (_Erc20 *Erc20CallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type Erc20Filterer ¶
type Erc20Filterer struct {
// contains filtered or unexported fields
}
Erc20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewErc20Filterer ¶
func NewErc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc20Filterer, error)
NewErc20Filterer creates a new log filterer instance of Erc20, bound to a specific deployed contract.
func (*Erc20Filterer) FilterApproval ¶
func (_Erc20 *Erc20Filterer) FilterApproval(opts *bind.FilterOpts, tokenOwner []common.Address, spender []common.Address) (*Erc20ApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed tokenOwner, address indexed spender, uint256 tokens)
func (*Erc20Filterer) FilterTransfer ¶
func (_Erc20 *Erc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Erc20TransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 tokens)
func (*Erc20Filterer) ParseApproval ¶
func (_Erc20 *Erc20Filterer) ParseApproval(log types.Log) (*Erc20Approval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed tokenOwner, address indexed spender, uint256 tokens)
func (*Erc20Filterer) ParseTransfer ¶
func (_Erc20 *Erc20Filterer) ParseTransfer(log types.Log) (*Erc20Transfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 tokens)
func (*Erc20Filterer) WatchApproval ¶
func (_Erc20 *Erc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc20Approval, tokenOwner []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 tokenOwner, address indexed spender, uint256 tokens)
func (*Erc20Filterer) WatchTransfer ¶
func (_Erc20 *Erc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc20Transfer, 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 tokens)
type Erc20Raw ¶
type Erc20Raw struct {
Contract *Erc20 // Generic contract binding to access the raw methods on
}
Erc20Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*Erc20Raw) Call ¶
func (_Erc20 *Erc20Raw) 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 (*Erc20Raw) Transact ¶
func (_Erc20 *Erc20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Erc20Raw) Transfer ¶
func (_Erc20 *Erc20Raw) 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 Erc20Session ¶
type Erc20Session struct { Contract *Erc20 // 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 }
Erc20Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Erc20Session) Allowance ¶
func (_Erc20 *Erc20Session) Allowance(owner common.Address, delegate common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address delegate) view returns(uint256)
func (*Erc20Session) Approve ¶
func (_Erc20 *Erc20Session) Approve(delegate common.Address, numTokens *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address delegate, uint256 numTokens) returns(bool)
func (*Erc20Session) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address tokenOwner) view returns(uint256 balance)
func (*Erc20Session) Decimals ¶
func (_Erc20 *Erc20Session) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*Erc20Session) Fallback ¶
func (_Erc20 *Erc20Session) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*Erc20Session) Name ¶
func (_Erc20 *Erc20Session) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*Erc20Session) Receive ¶
func (_Erc20 *Erc20Session) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*Erc20Session) Symbol ¶
func (_Erc20 *Erc20Session) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*Erc20Session) TotalSupply ¶
func (_Erc20 *Erc20Session) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*Erc20Session) Transfer ¶
func (_Erc20 *Erc20Session) Transfer(receiver common.Address, numTokens *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address receiver, uint256 numTokens) returns(bool)
func (*Erc20Session) TransferFrom ¶
func (_Erc20 *Erc20Session) TransferFrom(owner common.Address, buyer common.Address, numTokens *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address owner, address buyer, uint256 numTokens) returns(bool)
type Erc20Transactor ¶
type Erc20Transactor struct {
// contains filtered or unexported fields
}
Erc20Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewErc20Transactor ¶
func NewErc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc20Transactor, error)
NewErc20Transactor creates a new write-only instance of Erc20, bound to a specific deployed contract.
func (*Erc20Transactor) Approve ¶
func (_Erc20 *Erc20Transactor) Approve(opts *bind.TransactOpts, delegate common.Address, numTokens *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address delegate, uint256 numTokens) returns(bool)
func (*Erc20Transactor) Fallback ¶
func (_Erc20 *Erc20Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*Erc20Transactor) Receive ¶
func (_Erc20 *Erc20Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*Erc20Transactor) Transfer ¶
func (_Erc20 *Erc20Transactor) Transfer(opts *bind.TransactOpts, receiver common.Address, numTokens *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address receiver, uint256 numTokens) returns(bool)
func (*Erc20Transactor) TransferFrom ¶
func (_Erc20 *Erc20Transactor) TransferFrom(opts *bind.TransactOpts, owner common.Address, buyer common.Address, numTokens *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address owner, address buyer, uint256 numTokens) returns(bool)
type Erc20TransactorRaw ¶
type Erc20TransactorRaw struct {
Contract *Erc20Transactor // Generic write-only contract binding to access the raw methods on
}
Erc20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Erc20TransactorRaw) Transact ¶
func (_Erc20 *Erc20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Erc20TransactorRaw) Transfer ¶
func (_Erc20 *Erc20TransactorRaw) 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 Erc20TransactorSession ¶
type Erc20TransactorSession struct { Contract *Erc20Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Erc20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Erc20TransactorSession) Approve ¶
func (_Erc20 *Erc20TransactorSession) Approve(delegate common.Address, numTokens *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address delegate, uint256 numTokens) returns(bool)
func (*Erc20TransactorSession) Fallback ¶
func (_Erc20 *Erc20TransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*Erc20TransactorSession) Receive ¶
func (_Erc20 *Erc20TransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*Erc20TransactorSession) Transfer ¶
func (_Erc20 *Erc20TransactorSession) Transfer(receiver common.Address, numTokens *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address receiver, uint256 numTokens) returns(bool)
func (*Erc20TransactorSession) TransferFrom ¶
func (_Erc20 *Erc20TransactorSession) TransferFrom(owner common.Address, buyer common.Address, numTokens *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address owner, address buyer, uint256 numTokens) returns(bool)
type Erc20Transfer ¶
type Erc20Transfer struct { From common.Address To common.Address Tokens *big.Int Raw types.Log // Blockchain specific contextual infos }
Erc20Transfer represents a Transfer event raised by the Erc20 contract.
type Erc20TransferIterator ¶
type Erc20TransferIterator struct { Event *Erc20Transfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Erc20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Erc20 contract.
func (*Erc20TransferIterator) Close ¶
func (it *Erc20TransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Erc20TransferIterator) Error ¶
func (it *Erc20TransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Erc20TransferIterator) Next ¶
func (it *Erc20TransferIterator) 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.