simplecoin

package
v0.0.0-...-4a160f0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package simplecoin is generated code for accessing the simple coin smart contract.

Index

Constants

This section is empty.

Variables

View Source
var SimplecoinABI = SimplecoinMetaData.ABI

SimplecoinABI is the input ABI used to generate the binding from. Deprecated: Use SimplecoinMetaData.ABI instead.

View Source
var SimplecoinBin = SimplecoinMetaData.Bin

SimplecoinBin is the compiled bytecode used for deploying new contracts. Deprecated: Use SimplecoinMetaData.Bin instead.

View Source
var SimplecoinMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"initialSupply\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"frozen\",\"type\":\"bool\"}],\"name\":\"EventFrozenAccount\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"}],\"name\":\"EventLog\",\"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\":\"EventTransfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"CoinBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"freeze\",\"type\":\"bool\"}],\"name\":\"FreezeAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"FrozenAccount\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"mintedAmount\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561000f575f80fd5b506040516117b03803806117b08339818101604052810190610031919061020d565b335f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061009f5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826100a560201b60201c565b506102c0565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100fb575f80fd5b8060015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546101479190610265565b925050819055508173ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f64af04e507117cfe690abc373ad27eb3c6a0b3202af0972ff3dc089e501e3a45836040516101ca91906102a7565b60405180910390a35050565b5f80fd5b5f819050919050565b6101ec816101da565b81146101f6575f80fd5b50565b5f81519050610207816101e3565b92915050565b5f60208284031215610222576102216101d6565b5b5f61022f848285016101f9565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61026f826101da565b915061027a836101da565b925082820190508082111561029257610291610238565b5b92915050565b6102a1816101da565b82525050565b5f6020820190506102ba5f830184610298565b92915050565b6114e3806102cd5f395ff3fe608060405234801561000f575f80fd5b5060043610610060575f3560e01c80630f6798a51461006457806369ca02dd146100805780638bdf15341461009c578063ab31471e146100cc578063b4a99a4e146100fc578063d16a7a4b1461011a575b5f80fd5b61007e60048036038101906100799190610d0e565b610136565b005b61009a60048036038101906100959190610d0e565b610267565b005b6100b660048036038101906100b19190610d4c565b610441565b6040516100c39190610d86565b60405180910390f35b6100e660048036038101906100e19190610d4c565b610456565b6040516100f39190610db9565b60405180910390f35b610104610473565b6040516101119190610de1565b60405180910390f35b610134600480360381019061012f9190610e24565b610496565b005b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461018c575f80fd5b8060015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546101d89190610e8f565b925050819055508173ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f64af04e507117cfe690abc373ad27eb3c6a0b3202af0972ff3dc089e501e3a458360405161025b9190610d86565b60405180910390a35050565b5f61027333848461057d565b9050805f0151156102bf5780602001516040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b69190610f32565b60405180910390fd5b8160015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461030b9190610f52565b925050819055508160015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461035e9190610e8f565b925050819055507fd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a61038f836107f8565b61039885610976565b6103a133610976565b6040516020016103b393929190611031565b6040516020818303038152906040526040516103cf9190610f32565b60405180910390a18273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f64af04e507117cfe690abc373ad27eb3c6a0b3202af0972ff3dc089e501e3a45846040516104349190610d86565b60405180910390a3505050565b6001602052805f5260405f205f915090505481565b6002602052805f5260405f205f915054906101000a900460ff1681565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104ec575f80fd5b8060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f3ed8718a0f403576721b15da1095392a64cc33255a766b58bf4d5a0e116bcb1d828260405161057192919061108e565b60405180910390a15050565b610585610c62565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105fd576105f66040518060400160405280601f81526020017f63616e27742073656e64206d6f6e657920746f20616464726573732030783000815250610b2c565b90506107f1565b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054101561070c576107056040518060400160405280601781526020017f696e737566666963656e742066756e6473202062616c3a0000000000000000008152506106c160015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546107f8565b6040518060400160405280600a81526020017f2020616d6f756e743a2000000000000000000000000000000000000000000000815250610700866107f8565b610b53565b90506107f1565b60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548260015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546107939190610e8f565b116107e6576107df6040518060400160405280601081526020017f696e76616c696420616d6f756e743a20000000000000000000000000000000008152506107da846107f8565b610ba2565b90506107f1565b6107ee610beb565b90505b9392505050565b60605f820361083e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050610971565b5f8290505f5b5f821461086d578080610856906110b5565b915050600a826108669190611129565b9150610844565b5f8167ffffffffffffffff81111561088857610887611159565b5b6040519080825280601f01601f1916602001820160405280156108ba5781602001600182028036833780820191505090505b5090505f8290505b5f8614610969576001816108d69190610f52565b90505f600a80886108e79190611129565b6108f19190611186565b876108fc9190610f52565b603061090891906111d3565b90505f8160f81b90508084848151811061092557610924611207565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600a886109609190611129565b975050506108c2565b819450505050505b919050565b60605f602867ffffffffffffffff81111561099457610993611159565b5b6040519080825280601f01601f1916602001820160405280156109c65781602001600182028036833780820191505090505b5090505f5b6014811015610b22575f8160136109e29190610f52565b60086109ee9190611186565b60026109fa9190611363565b8573ffffffffffffffffffffffffffffffffffffffff16610a1b9190611129565b60f81b90505f60108260f81c610a3191906113ad565b60f81b90505f8160f81c6010610a4791906113dd565b8360f81c610a559190611419565b60f81b9050610a6382610c1d565b85856002610a719190611186565b81518110610a8257610a81611207565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350610ab981610c1d565b856001866002610ac99190611186565b610ad39190610e8f565b81518110610ae457610ae3611207565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535050505080806001019150506109cb565b5080915050919050565b610b34610c62565b6040518060400160405280600115158152602001838152509050919050565b610b5b610c62565b604051806040016040528060011515815260200186868686604051602001610b86949392919061144d565b6040516020818303038152906040528152509050949350505050565b610baa610c62565b60405180604001604052806001151581526020018484604051602001610bd192919061148a565b604051602081830303815290604052815250905092915050565b610bf3610c62565b60405180604001604052805f1515815260200160405180602001604052805f815250815250905090565b5f600a8260f81c60ff161015610c475760308260f81c610c3d91906111d3565b60f81b9050610c5d565b60578260f81c610c5791906111d3565b60f81b90505b919050565b60405180604001604052805f15158152602001606081525090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610caa82610c81565b9050919050565b610cba81610ca0565b8114610cc4575f80fd5b50565b5f81359050610cd581610cb1565b92915050565b5f819050919050565b610ced81610cdb565b8114610cf7575f80fd5b50565b5f81359050610d0881610ce4565b92915050565b5f8060408385031215610d2457610d23610c7d565b5b5f610d3185828601610cc7565b9250506020610d4285828601610cfa565b9150509250929050565b5f60208284031215610d6157610d60610c7d565b5b5f610d6e84828501610cc7565b91505092915050565b610d8081610cdb565b82525050565b5f602082019050610d995f830184610d77565b92915050565b5f8115159050919050565b610db381610d9f565b82525050565b5f602082019050610dcc5f830184610daa565b92915050565b610ddb81610ca0565b82525050565b5f602082019050610df45f830184610dd2565b92915050565b610e0381610d9f565b8114610e0d575f80fd5b50565b5f81359050610e1e81610dfa565b92915050565b5f8060408385031215610e3a57610e39610c7d565b5b5f610e4785828601610cc7565b9250506020610e5885828601610e10565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610e9982610cdb565b9150610ea483610cdb565b9250828201905080821115610ebc57610ebb610e62565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610f0482610ec2565b610f0e8185610ecc565b9350610f1e818560208601610edc565b610f2781610eea565b840191505092915050565b5f6020820190508181035f830152610f4a8184610efa565b905092915050565b5f610f5c82610cdb565b9150610f6783610cdb565b9250828203905081811115610f7f57610f7e610e62565b5b92915050565b7f7472616e73666572656420000000000000000000000000000000000000000000815250565b5f81905092915050565b5f610fbf82610ec2565b610fc98185610fab565b9350610fd9818560208601610edc565b80840191505092915050565b7f20746f2000000000000000000000000000000000000000000000000000000000815250565b7f2066726f6d200000000000000000000000000000000000000000000000000000815250565b5f61103b82610f85565b600b8201915061104b8286610fb5565b915061105682610fe5565b6004820191506110668285610fb5565b91506110718261100b565b6006820191506110818284610fb5565b9150819050949350505050565b5f6040820190506110a15f830185610dd2565b6110ae6020830184610daa565b9392505050565b5f6110bf82610cdb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036110f1576110f0610e62565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61113382610cdb565b915061113e83610cdb565b92508261114e5761114d6110fc565b5b828204905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f61119082610cdb565b915061119b83610cdb565b92508282026111a981610cdb565b915082820484148315176111c0576111bf610e62565b5b5092915050565b5f60ff82169050919050565b5f6111dd826111c7565b91506111e8836111c7565b9250828201905060ff81111561120157611200610e62565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8160011c9050919050565b5f808291508390505b60018511156112895780860481111561126557611264610e62565b5b60018516156112745780820291505b808102905061128285611234565b9450611249565b94509492505050565b5f826112a1576001905061135c565b816112ae575f905061135c565b81600181146112c457600281146112ce576112fd565b600191505061135c565b60ff8411156112e0576112df610e62565b5b8360020a9150848211156112f7576112f6610e62565b5b5061135c565b5060208310610133831016604e8410600b84101617156113325782820a90508381111561132d5761132c610e62565b5b61135c565b61133f8484846001611240565b9250905081840481111561135657611355610e62565b5b81810290505b9392505050565b5f61136d82610cdb565b915061137883610cdb565b92506113a57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611292565b905092915050565b5f6113b7826111c7565b91506113c2836111c7565b9250826113d2576113d16110fc565b5b828204905092915050565b5f6113e7826111c7565b91506113f2836111c7565b9250828202611400816111c7565b915080821461141257611411610e62565b5b5092915050565b5f611423826111c7565b915061142e836111c7565b9250828203905060ff81111561144757611446610e62565b5b92915050565b5f6114588287610fb5565b91506114648286610fb5565b91506114708285610fb5565b915061147c8284610fb5565b915081905095945050505050565b5f6114958285610fb5565b91506114a18284610fb5565b9150819050939250505056fea26469706673582212201bdfee72c8095916610f37540cecf0128407aba2a6c3b808bd8684edd0980f2964736f6c63430008190033",
}

SimplecoinMetaData contains all meta data concerning the Simplecoin contract.

Functions

This section is empty.

Types

type Simplecoin

type Simplecoin struct {
	SimplecoinCaller     // Read-only binding to the contract
	SimplecoinTransactor // Write-only binding to the contract
	SimplecoinFilterer   // Log filterer for contract events
}

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

func DeploySimplecoin

func DeploySimplecoin(auth *bind.TransactOpts, backend bind.ContractBackend, initialSupply *big.Int) (common.Address, *types.Transaction, *Simplecoin, error)

DeploySimplecoin deploys a new Ethereum contract, binding an instance of Simplecoin to it.

func NewSimplecoin

func NewSimplecoin(address common.Address, backend bind.ContractBackend) (*Simplecoin, error)

NewSimplecoin creates a new instance of Simplecoin, bound to a specific deployed contract.

type SimplecoinCaller

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

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

func NewSimplecoinCaller

func NewSimplecoinCaller(address common.Address, caller bind.ContractCaller) (*SimplecoinCaller, error)

NewSimplecoinCaller creates a new read-only instance of Simplecoin, bound to a specific deployed contract.

func (*SimplecoinCaller) CoinBalance

func (_Simplecoin *SimplecoinCaller) CoinBalance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

CoinBalance is a free data retrieval call binding the contract method 0x8bdf1534.

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

func (*SimplecoinCaller) FrozenAccount

func (_Simplecoin *SimplecoinCaller) FrozenAccount(opts *bind.CallOpts, arg0 common.Address) (bool, error)

FrozenAccount is a free data retrieval call binding the contract method 0xab31471e.

Solidity: function FrozenAccount(address ) view returns(bool)

func (*SimplecoinCaller) Owner

func (_Simplecoin *SimplecoinCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb4a99a4e.

Solidity: function Owner() view returns(address)

type SimplecoinCallerRaw

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

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

func (*SimplecoinCallerRaw) Call

func (_Simplecoin *SimplecoinCallerRaw) 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 SimplecoinCallerSession

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

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

func (*SimplecoinCallerSession) CoinBalance

func (_Simplecoin *SimplecoinCallerSession) CoinBalance(arg0 common.Address) (*big.Int, error)

CoinBalance is a free data retrieval call binding the contract method 0x8bdf1534.

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

func (*SimplecoinCallerSession) FrozenAccount

func (_Simplecoin *SimplecoinCallerSession) FrozenAccount(arg0 common.Address) (bool, error)

FrozenAccount is a free data retrieval call binding the contract method 0xab31471e.

Solidity: function FrozenAccount(address ) view returns(bool)

func (*SimplecoinCallerSession) Owner

func (_Simplecoin *SimplecoinCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb4a99a4e.

Solidity: function Owner() view returns(address)

type SimplecoinEventFrozenAccount

type SimplecoinEventFrozenAccount struct {
	Target common.Address
	Frozen bool
	Raw    types.Log // Blockchain specific contextual infos
}

SimplecoinEventFrozenAccount represents a EventFrozenAccount event raised by the Simplecoin contract.

type SimplecoinEventFrozenAccountIterator

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

SimplecoinEventFrozenAccountIterator is returned from FilterEventFrozenAccount and is used to iterate over the raw logs and unpacked data for EventFrozenAccount events raised by the Simplecoin contract.

func (*SimplecoinEventFrozenAccountIterator) Close

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

func (*SimplecoinEventFrozenAccountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SimplecoinEventFrozenAccountIterator) 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 SimplecoinEventLog

type SimplecoinEventLog struct {
	Value string
	Raw   types.Log // Blockchain specific contextual infos
}

SimplecoinEventLog represents a EventLog event raised by the Simplecoin contract.

type SimplecoinEventLogIterator

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

SimplecoinEventLogIterator is returned from FilterEventLog and is used to iterate over the raw logs and unpacked data for EventLog events raised by the Simplecoin contract.

func (*SimplecoinEventLogIterator) Close

func (it *SimplecoinEventLogIterator) Close() error

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

func (*SimplecoinEventLogIterator) Error

func (it *SimplecoinEventLogIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SimplecoinEventLogIterator) Next

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

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

SimplecoinEventTransfer represents a EventTransfer event raised by the Simplecoin contract.

type SimplecoinEventTransferIterator

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

SimplecoinEventTransferIterator is returned from FilterEventTransfer and is used to iterate over the raw logs and unpacked data for EventTransfer events raised by the Simplecoin contract.

func (*SimplecoinEventTransferIterator) Close

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

func (*SimplecoinEventTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SimplecoinEventTransferIterator) 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 SimplecoinFilterer

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

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

func NewSimplecoinFilterer

func NewSimplecoinFilterer(address common.Address, filterer bind.ContractFilterer) (*SimplecoinFilterer, error)

NewSimplecoinFilterer creates a new log filterer instance of Simplecoin, bound to a specific deployed contract.

func (*SimplecoinFilterer) FilterEventFrozenAccount

func (_Simplecoin *SimplecoinFilterer) FilterEventFrozenAccount(opts *bind.FilterOpts) (*SimplecoinEventFrozenAccountIterator, error)

FilterEventFrozenAccount is a free log retrieval operation binding the contract event 0x3ed8718a0f403576721b15da1095392a64cc33255a766b58bf4d5a0e116bcb1d.

Solidity: event EventFrozenAccount(address target, bool frozen)

func (*SimplecoinFilterer) FilterEventLog

func (_Simplecoin *SimplecoinFilterer) FilterEventLog(opts *bind.FilterOpts) (*SimplecoinEventLogIterator, error)

FilterEventLog is a free log retrieval operation binding the contract event 0xd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a.

Solidity: event EventLog(string value)

func (*SimplecoinFilterer) FilterEventTransfer

func (_Simplecoin *SimplecoinFilterer) FilterEventTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*SimplecoinEventTransferIterator, error)

FilterEventTransfer is a free log retrieval operation binding the contract event 0x64af04e507117cfe690abc373ad27eb3c6a0b3202af0972ff3dc089e501e3a45.

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

func (*SimplecoinFilterer) ParseEventFrozenAccount

func (_Simplecoin *SimplecoinFilterer) ParseEventFrozenAccount(log types.Log) (*SimplecoinEventFrozenAccount, error)

ParseEventFrozenAccount is a log parse operation binding the contract event 0x3ed8718a0f403576721b15da1095392a64cc33255a766b58bf4d5a0e116bcb1d.

Solidity: event EventFrozenAccount(address target, bool frozen)

func (*SimplecoinFilterer) ParseEventLog

func (_Simplecoin *SimplecoinFilterer) ParseEventLog(log types.Log) (*SimplecoinEventLog, error)

ParseEventLog is a log parse operation binding the contract event 0xd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a.

Solidity: event EventLog(string value)

func (*SimplecoinFilterer) ParseEventTransfer

func (_Simplecoin *SimplecoinFilterer) ParseEventTransfer(log types.Log) (*SimplecoinEventTransfer, error)

ParseEventTransfer is a log parse operation binding the contract event 0x64af04e507117cfe690abc373ad27eb3c6a0b3202af0972ff3dc089e501e3a45.

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

func (*SimplecoinFilterer) WatchEventFrozenAccount

func (_Simplecoin *SimplecoinFilterer) WatchEventFrozenAccount(opts *bind.WatchOpts, sink chan<- *SimplecoinEventFrozenAccount) (event.Subscription, error)

WatchEventFrozenAccount is a free log subscription operation binding the contract event 0x3ed8718a0f403576721b15da1095392a64cc33255a766b58bf4d5a0e116bcb1d.

Solidity: event EventFrozenAccount(address target, bool frozen)

func (*SimplecoinFilterer) WatchEventLog

func (_Simplecoin *SimplecoinFilterer) WatchEventLog(opts *bind.WatchOpts, sink chan<- *SimplecoinEventLog) (event.Subscription, error)

WatchEventLog is a free log subscription operation binding the contract event 0xd3c51ea1865a5f43e30629abcc5e5f1f5a8a28d7cd45aface7cb4bb5c4a1a18a.

Solidity: event EventLog(string value)

func (*SimplecoinFilterer) WatchEventTransfer

func (_Simplecoin *SimplecoinFilterer) WatchEventTransfer(opts *bind.WatchOpts, sink chan<- *SimplecoinEventTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchEventTransfer is a free log subscription operation binding the contract event 0x64af04e507117cfe690abc373ad27eb3c6a0b3202af0972ff3dc089e501e3a45.

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

type SimplecoinRaw

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

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

func (*SimplecoinRaw) Call

func (_Simplecoin *SimplecoinRaw) 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 (*SimplecoinRaw) Transact

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

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

func (*SimplecoinRaw) Transfer

func (_Simplecoin *SimplecoinRaw) 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 SimplecoinSession

type SimplecoinSession struct {
	Contract     *Simplecoin       // 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
}

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

func (*SimplecoinSession) CoinBalance

func (_Simplecoin *SimplecoinSession) CoinBalance(arg0 common.Address) (*big.Int, error)

CoinBalance is a free data retrieval call binding the contract method 0x8bdf1534.

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

func (*SimplecoinSession) FreezeAccount

func (_Simplecoin *SimplecoinSession) FreezeAccount(target common.Address, freeze bool) (*types.Transaction, error)

FreezeAccount is a paid mutator transaction binding the contract method 0xd16a7a4b.

Solidity: function FreezeAccount(address target, bool freeze) returns()

func (*SimplecoinSession) FrozenAccount

func (_Simplecoin *SimplecoinSession) FrozenAccount(arg0 common.Address) (bool, error)

FrozenAccount is a free data retrieval call binding the contract method 0xab31471e.

Solidity: function FrozenAccount(address ) view returns(bool)

func (*SimplecoinSession) Mint

func (_Simplecoin *SimplecoinSession) Mint(recipient common.Address, mintedAmount *big.Int) (*types.Transaction, error)

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

Solidity: function Mint(address recipient, uint256 mintedAmount) returns()

func (*SimplecoinSession) Owner

func (_Simplecoin *SimplecoinSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb4a99a4e.

Solidity: function Owner() view returns(address)

func (*SimplecoinSession) Transfer

func (_Simplecoin *SimplecoinSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

type SimplecoinTransactor

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

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

func NewSimplecoinTransactor

func NewSimplecoinTransactor(address common.Address, transactor bind.ContractTransactor) (*SimplecoinTransactor, error)

NewSimplecoinTransactor creates a new write-only instance of Simplecoin, bound to a specific deployed contract.

func (*SimplecoinTransactor) FreezeAccount

func (_Simplecoin *SimplecoinTransactor) FreezeAccount(opts *bind.TransactOpts, target common.Address, freeze bool) (*types.Transaction, error)

FreezeAccount is a paid mutator transaction binding the contract method 0xd16a7a4b.

Solidity: function FreezeAccount(address target, bool freeze) returns()

func (*SimplecoinTransactor) Mint

func (_Simplecoin *SimplecoinTransactor) Mint(opts *bind.TransactOpts, recipient common.Address, mintedAmount *big.Int) (*types.Transaction, error)

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

Solidity: function Mint(address recipient, uint256 mintedAmount) returns()

func (*SimplecoinTransactor) Transfer

func (_Simplecoin *SimplecoinTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

type SimplecoinTransactorRaw

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

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

func (*SimplecoinTransactorRaw) Transact

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

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

func (*SimplecoinTransactorRaw) Transfer

func (_Simplecoin *SimplecoinTransactorRaw) 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 SimplecoinTransactorSession

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

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

func (*SimplecoinTransactorSession) FreezeAccount

func (_Simplecoin *SimplecoinTransactorSession) FreezeAccount(target common.Address, freeze bool) (*types.Transaction, error)

FreezeAccount is a paid mutator transaction binding the contract method 0xd16a7a4b.

Solidity: function FreezeAccount(address target, bool freeze) returns()

func (*SimplecoinTransactorSession) Mint

func (_Simplecoin *SimplecoinTransactorSession) Mint(recipient common.Address, mintedAmount *big.Int) (*types.Transaction, error)

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

Solidity: function Mint(address recipient, uint256 mintedAmount) returns()

func (*SimplecoinTransactorSession) Transfer

func (_Simplecoin *SimplecoinTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL