TestERC20

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestERC20ABI = TestERC20MetaData.ABI

TestERC20ABI is the input ABI used to generate the binding from. Deprecated: Use TestERC20MetaData.ABI instead.

View Source
var TestERC20Bin = TestERC20MetaData.Bin

TestERC20Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use TestERC20MetaData.Bin instead.

View Source
var TestERC20MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"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\":\"amount\",\"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\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":[{\"internalType\":\"bool\",\"name\":\"blocking\",\"type\":\"bool\"}],\"name\":\"blockTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"blocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"noReturnData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"noReturn\",\"type\":\"bool\"}],\"name\":\"setNoReturnData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"ok\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60e06040523480156200001157600080fd5b50604080518082018252600681526505465737432360d41b602080830191825283518085019094526005845264054535432360dc1b90840152815191929160129162000061916000919062000140565b5081516200007790600190602085019062000140565b5060ff81166080524660a0526200008d620000a4565b60c05250506006805461ffff1916905550620002c5565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051620000d8919062000222565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8280546200014e90620001e6565b90600052602060002090601f016020900481019282620001725760008555620001bd565b82601f106200018d57805160ff1916838001178555620001bd565b82800160010185558215620001bd579182015b82811115620001bd578251825591602001919060010190620001a0565b50620001cb929150620001cf565b5090565b5b80821115620001cb5760008155600101620001d0565b600181811c90821680620001fb57607f821691505b6020821081036200021c57634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c9150808316806200023f57607f831692505b602080841082036200025f57634e487b7160e01b86526022600452602486fd5b8180156200027657600181146200028857620002b7565b60ff19861689528489019650620002b7565b60008a81526020902060005b86811015620002af5781548b82015290850190830162000294565b505084890196505b509498975050505050505050565b60805160a05160c051610c89620002f5600039600061047601526000610441015260006101d10152610c896000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806340c10f19116100a2578063a9059cbb11610071578063a9059cbb14610268578063cd1b5b711461027b578063d505accf146102a5578063dd62ed3e146102b8578063e074d6a9146102e357600080fd5b806340c10f191461020d57806370a08231146102205780637ecebe001461024057806395d89b411461026057600080fd5b806323b872dd116100e957806323b872dd14610185578063303bdd2c1461019857806330adf81f146101a5578063313ce567146101cc5780633644e5151461020557600080fd5b806306fdde031461011b578063095ea7b31461013957806318160ddd1461015c5780631b24384514610173575b600080fd5b610123610304565b604051610130919061097f565b60405180910390f35b61014c6101473660046109f0565b610392565b6040519015158152602001610130565b61016560025481565b604051908152602001610130565b60065461014c90610100900460ff1681565b61014c610193366004610a1a565b6103fe565b60065461014c9060ff1681565b6101657f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6101f37f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610130565b61016561043d565b61014c61021b3660046109f0565b610498565b61016561022e366004610a56565b60036020526000908152604090205481565b61016561024e366004610a56565b60056020526000908152604090205481565b6101236104ad565b61014c6102763660046109f0565b6104ba565b6102a3610289366004610a71565b600680549115156101000261ff0019909216919091179055565b005b6102a36102b3366004610a93565b610532565b6101656102c6366004610b06565b600460209081526000928352604080842090915290825290205481565b6102a36102f1366004610a71565b6006805460ff1916911515919091179055565b6000805461031190610b39565b80601f016020809104026020016040519081016040528092919081815260200182805461033d90610b39565b801561038a5780601f1061035f5761010080835404028352916020019161038a565b820191906000526020600020905b81548152906001019060200180831161036d57829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103ed9086815260200190565b60405180910390a350600192915050565b60065460009060ff161561041457506000610436565b61041f848484610788565b50600654610100900460ff161561043257005b5060015b9392505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146104735761046e61087a565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b60006104a48383610914565b50600192915050565b6001805461031190610b39565b336000908152600360205260408120805483919083906104db908490610b89565b90915550506001600160a01b038316600081815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906103ed9086815260200190565b428410156105875760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064015b60405180910390fd5b600061059161043d565b6001600160a01b0389811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938c166060840152608083018b905260a083019390935260c08083018a90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa1580156106aa573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906106e05750886001600160a01b0316816001600160a01b0316145b61071d5760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b604482015260640161057e565b6001600160a01b0390811660009081526004602090815260408083208b8516808552908352928190208a905551898152919350918a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6001600160a01b038316600090815260046020908152604080832033845290915281205460001981146107e4576107bf8382610b89565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b0385166000908152600360205260408120805485929061080c908490610b89565b90915550506001600160a01b03808516600081815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906108679087815260200190565b60405180910390a3506001949350505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516108ac9190610ba0565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b80600260008282546109269190610c3b565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b818110156109ac57858101830151858201604001528201610990565b818111156109be576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146109eb57600080fd5b919050565b60008060408385031215610a0357600080fd5b610a0c836109d4565b946020939093013593505050565b600080600060608486031215610a2f57600080fd5b610a38846109d4565b9250610a46602085016109d4565b9150604084013590509250925092565b600060208284031215610a6857600080fd5b610436826109d4565b600060208284031215610a8357600080fd5b8135801515811461043657600080fd5b600080600080600080600060e0888a031215610aae57600080fd5b610ab7886109d4565b9650610ac5602089016109d4565b95506040880135945060608801359350608088013560ff81168114610ae957600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610b1957600080fd5b610b22836109d4565b9150610b30602084016109d4565b90509250929050565b600181811c90821680610b4d57607f821691505b602082108103610b6d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610b9b57610b9b610b73565b500390565b600080835481600182811c915080831680610bbc57607f831692505b60208084108203610bdb57634e487b7160e01b86526022600452602486fd5b818015610bef5760018114610c0057610c2d565b60ff19861689528489019650610c2d565b60008a81526020902060005b86811015610c255781548b820152908501908301610c0c565b505084890196505b509498975050505050505050565b60008219821115610c4e57610c4e610b73565b50019056fea2646970667358221220d031b950fd410b20c78afccbe6bdf1e900ba7182aa52ed583d53c885100bfd7b64736f6c634300080d0033",
}

TestERC20MetaData contains all meta data concerning the TestERC20 contract.

Functions

This section is empty.

Types

type TestERC20

type TestERC20 struct {
	TestERC20Caller     // Read-only binding to the contract
	TestERC20Transactor // Write-only binding to the contract
	TestERC20Filterer   // Log filterer for contract events
}

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

func DeployTestERC20

func DeployTestERC20(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TestERC20, error)

DeployTestERC20 deploys a new Ethereum contract, binding an instance of TestERC20 to it.

func NewTestERC20

func NewTestERC20(address common.Address, backend bind.ContractBackend) (*TestERC20, error)

NewTestERC20 creates a new instance of TestERC20, bound to a specific deployed contract.

type TestERC20Approval

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

TestERC20Approval represents a Approval event raised by the TestERC20 contract.

type TestERC20ApprovalIterator

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

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

func (*TestERC20ApprovalIterator) Close

func (it *TestERC20ApprovalIterator) Close() error

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

func (*TestERC20ApprovalIterator) Error

func (it *TestERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestERC20ApprovalIterator) Next

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

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

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

func NewTestERC20Caller

func NewTestERC20Caller(address common.Address, caller bind.ContractCaller) (*TestERC20Caller, error)

NewTestERC20Caller creates a new read-only instance of TestERC20, bound to a specific deployed contract.

func (*TestERC20Caller) Allowance

func (_TestERC20 *TestERC20Caller) 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 (*TestERC20Caller) BalanceOf

func (_TestERC20 *TestERC20Caller) 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 (*TestERC20Caller) Blocked

func (_TestERC20 *TestERC20Caller) Blocked(opts *bind.CallOpts) (bool, error)

Blocked is a free data retrieval call binding the contract method 0x303bdd2c.

Solidity: function blocked() view returns(bool)

func (*TestERC20Caller) DOMAINSEPARATOR

func (_TestERC20 *TestERC20Caller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*TestERC20Caller) Decimals

func (_TestERC20 *TestERC20Caller) 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 (*TestERC20Caller) Name

func (_TestERC20 *TestERC20Caller) 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 (*TestERC20Caller) NoReturnData

func (_TestERC20 *TestERC20Caller) NoReturnData(opts *bind.CallOpts) (bool, error)

NoReturnData is a free data retrieval call binding the contract method 0x1b243845.

Solidity: function noReturnData() view returns(bool)

func (*TestERC20Caller) Nonces

func (_TestERC20 *TestERC20Caller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

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

func (*TestERC20Caller) PERMITTYPEHASH

func (_TestERC20 *TestERC20Caller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*TestERC20Caller) Symbol

func (_TestERC20 *TestERC20Caller) 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 (*TestERC20Caller) TotalSupply

func (_TestERC20 *TestERC20Caller) 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 TestERC20CallerRaw

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

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

func (*TestERC20CallerRaw) Call

func (_TestERC20 *TestERC20CallerRaw) 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 TestERC20CallerSession

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

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

func (*TestERC20CallerSession) Allowance

func (_TestERC20 *TestERC20CallerSession) 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 (*TestERC20CallerSession) BalanceOf

func (_TestERC20 *TestERC20CallerSession) 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 (*TestERC20CallerSession) Blocked

func (_TestERC20 *TestERC20CallerSession) Blocked() (bool, error)

Blocked is a free data retrieval call binding the contract method 0x303bdd2c.

Solidity: function blocked() view returns(bool)

func (*TestERC20CallerSession) DOMAINSEPARATOR

func (_TestERC20 *TestERC20CallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*TestERC20CallerSession) Decimals

func (_TestERC20 *TestERC20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*TestERC20CallerSession) Name

func (_TestERC20 *TestERC20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*TestERC20CallerSession) NoReturnData

func (_TestERC20 *TestERC20CallerSession) NoReturnData() (bool, error)

NoReturnData is a free data retrieval call binding the contract method 0x1b243845.

Solidity: function noReturnData() view returns(bool)

func (*TestERC20CallerSession) Nonces

func (_TestERC20 *TestERC20CallerSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

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

func (*TestERC20CallerSession) PERMITTYPEHASH

func (_TestERC20 *TestERC20CallerSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*TestERC20CallerSession) Symbol

func (_TestERC20 *TestERC20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*TestERC20CallerSession) TotalSupply

func (_TestERC20 *TestERC20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type TestERC20Filterer

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

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

func NewTestERC20Filterer

func NewTestERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*TestERC20Filterer, error)

NewTestERC20Filterer creates a new log filterer instance of TestERC20, bound to a specific deployed contract.

func (*TestERC20Filterer) FilterApproval

func (_TestERC20 *TestERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TestERC20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

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

func (*TestERC20Filterer) FilterTransfer

func (_TestERC20 *TestERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TestERC20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

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

func (*TestERC20Filterer) ParseApproval

func (_TestERC20 *TestERC20Filterer) ParseApproval(log types.Log) (*TestERC20Approval, error)

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

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

func (*TestERC20Filterer) ParseTransfer

func (_TestERC20 *TestERC20Filterer) ParseTransfer(log types.Log) (*TestERC20Transfer, error)

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

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

func (*TestERC20Filterer) WatchApproval

func (_TestERC20 *TestERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TestERC20Approval, 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 amount)

func (*TestERC20Filterer) WatchTransfer

func (_TestERC20 *TestERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TestERC20Transfer, 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 amount)

type TestERC20Raw

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

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

func (*TestERC20Raw) Call

func (_TestERC20 *TestERC20Raw) 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 (*TestERC20Raw) Transact

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

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

func (*TestERC20Raw) Transfer

func (_TestERC20 *TestERC20Raw) 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 TestERC20Session

type TestERC20Session struct {
	Contract     *TestERC20        // 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
}

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

func (*TestERC20Session) Allowance

func (_TestERC20 *TestERC20Session) 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 (*TestERC20Session) Approve

func (_TestERC20 *TestERC20Session) 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 (*TestERC20Session) BalanceOf

func (_TestERC20 *TestERC20Session) 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 (*TestERC20Session) BlockTransfer

func (_TestERC20 *TestERC20Session) BlockTransfer(blocking bool) (*types.Transaction, error)

BlockTransfer is a paid mutator transaction binding the contract method 0xe074d6a9.

Solidity: function blockTransfer(bool blocking) returns()

func (*TestERC20Session) Blocked

func (_TestERC20 *TestERC20Session) Blocked() (bool, error)

Blocked is a free data retrieval call binding the contract method 0x303bdd2c.

Solidity: function blocked() view returns(bool)

func (*TestERC20Session) DOMAINSEPARATOR

func (_TestERC20 *TestERC20Session) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*TestERC20Session) Decimals

func (_TestERC20 *TestERC20Session) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*TestERC20Session) Mint

func (_TestERC20 *TestERC20Session) 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(bool)

func (*TestERC20Session) Name

func (_TestERC20 *TestERC20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*TestERC20Session) NoReturnData

func (_TestERC20 *TestERC20Session) NoReturnData() (bool, error)

NoReturnData is a free data retrieval call binding the contract method 0x1b243845.

Solidity: function noReturnData() view returns(bool)

func (*TestERC20Session) Nonces

func (_TestERC20 *TestERC20Session) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

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

func (*TestERC20Session) PERMITTYPEHASH

func (_TestERC20 *TestERC20Session) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*TestERC20Session) Permit

func (_TestERC20 *TestERC20Session) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TestERC20Session) SetNoReturnData

func (_TestERC20 *TestERC20Session) SetNoReturnData(noReturn bool) (*types.Transaction, error)

SetNoReturnData is a paid mutator transaction binding the contract method 0xcd1b5b71.

Solidity: function setNoReturnData(bool noReturn) returns()

func (*TestERC20Session) Symbol

func (_TestERC20 *TestERC20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*TestERC20Session) TotalSupply

func (_TestERC20 *TestERC20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*TestERC20Session) Transfer

func (_TestERC20 *TestERC20Session) 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 (*TestERC20Session) TransferFrom

func (_TestERC20 *TestERC20Session) 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 ok)

type TestERC20Transactor

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

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

func NewTestERC20Transactor

func NewTestERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*TestERC20Transactor, error)

NewTestERC20Transactor creates a new write-only instance of TestERC20, bound to a specific deployed contract.

func (*TestERC20Transactor) Approve

func (_TestERC20 *TestERC20Transactor) 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 (*TestERC20Transactor) BlockTransfer

func (_TestERC20 *TestERC20Transactor) BlockTransfer(opts *bind.TransactOpts, blocking bool) (*types.Transaction, error)

BlockTransfer is a paid mutator transaction binding the contract method 0xe074d6a9.

Solidity: function blockTransfer(bool blocking) returns()

func (*TestERC20Transactor) Mint

func (_TestERC20 *TestERC20Transactor) 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(bool)

func (*TestERC20Transactor) Permit

func (_TestERC20 *TestERC20Transactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TestERC20Transactor) SetNoReturnData

func (_TestERC20 *TestERC20Transactor) SetNoReturnData(opts *bind.TransactOpts, noReturn bool) (*types.Transaction, error)

SetNoReturnData is a paid mutator transaction binding the contract method 0xcd1b5b71.

Solidity: function setNoReturnData(bool noReturn) returns()

func (*TestERC20Transactor) Transfer

func (_TestERC20 *TestERC20Transactor) 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 (*TestERC20Transactor) TransferFrom

func (_TestERC20 *TestERC20Transactor) 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 ok)

type TestERC20TransactorRaw

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

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

func (*TestERC20TransactorRaw) Transact

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

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

func (*TestERC20TransactorRaw) Transfer

func (_TestERC20 *TestERC20TransactorRaw) 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 TestERC20TransactorSession

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

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

func (*TestERC20TransactorSession) Approve

func (_TestERC20 *TestERC20TransactorSession) 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 (*TestERC20TransactorSession) BlockTransfer

func (_TestERC20 *TestERC20TransactorSession) BlockTransfer(blocking bool) (*types.Transaction, error)

BlockTransfer is a paid mutator transaction binding the contract method 0xe074d6a9.

Solidity: function blockTransfer(bool blocking) returns()

func (*TestERC20TransactorSession) Mint

func (_TestERC20 *TestERC20TransactorSession) 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(bool)

func (*TestERC20TransactorSession) Permit

func (_TestERC20 *TestERC20TransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*TestERC20TransactorSession) SetNoReturnData

func (_TestERC20 *TestERC20TransactorSession) SetNoReturnData(noReturn bool) (*types.Transaction, error)

SetNoReturnData is a paid mutator transaction binding the contract method 0xcd1b5b71.

Solidity: function setNoReturnData(bool noReturn) returns()

func (*TestERC20TransactorSession) Transfer

func (_TestERC20 *TestERC20TransactorSession) 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 (*TestERC20TransactorSession) TransferFrom

func (_TestERC20 *TestERC20TransactorSession) 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 ok)

type TestERC20Transfer

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

TestERC20Transfer represents a Transfer event raised by the TestERC20 contract.

type TestERC20TransferIterator

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

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

func (*TestERC20TransferIterator) Close

func (it *TestERC20TransferIterator) Close() error

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

func (*TestERC20TransferIterator) Error

func (it *TestERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestERC20TransferIterator) Next

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