ZenBase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZenBaseABI = ZenBaseMetaData.ABI

ZenBaseABI is the input ABI used to generate the binding from. Deprecated: Use ZenBaseMetaData.ABI instead.

View Source
var ZenBaseBin = ZenBaseMetaData.Bin

ZenBaseBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ZenBaseMetaData.Bin instead.

View Source
var ZenBaseMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"transactionPostProcessor\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSpender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TransactionProcessed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"txType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"successful\",\"type\":\"bool\"},{\"internalType\":\"uint64\",\"name\":\"gasUsed\",\"type\":\"uint64\"}],\"internalType\":\"structStructs.Transaction[]\",\"name\":\"transactions\",\"type\":\"tuple[]\"}],\"name\":\"onBlockEnd\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"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\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561000f575f5ffd5b50604051610fe0380380610fe083398101604081905261002e91610191565b33604051806040016040528060038152602001622d32b760e91b815250604051806040016040528060038152602001622d22a760e91b815250816003908161007691906102a8565b50600461008382826102a8565b5050506001600160a01b0381166100b8575f604051631e4fbdf760e01b81526004016100af9190610372565b60405180910390fd5b6100c18161010d565b506001600160a01b0381166100e85760405162461bcd60e51b81526004016100af90610380565b600680546001600160a01b0319166001600160a01b03929092169190911790556103c8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f6001600160a01b0382165b92915050565b6101798161015e565b8114610183575f5ffd5b50565b805161016a81610170565b5f602082840312156101a4576101a45f5ffd5b6101ae8383610186565b9392505050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52602260045260245ffd5b6002810460018216806101f157607f821691505b602082108103610203576102036101c9565b50919050565b5f61016a6102148381565b90565b61022083610209565b81545f1960089490940293841b1916921b91909117905550565b5f610246818484610217565b505050565b818110156102655761025d5f8261023a565b60010161024b565b5050565b601f821115610246575f818152602090206020601f8501048101602085101561028f5750805b6102a16020601f86010483018261024b565b5050505050565b81516001600160401b038111156102c1576102c16101b5565b6102cb82546101dd565b6102d6828285610269565b506020601f821160018114610309575f83156102f25750848201515b5f19600885021c19811660028502178555506102a1565b5f84815260208120601f198516915b828110156103385787850151825560209485019460019092019101610318565b508482101561035457838701515f19601f87166008021c191681555b50505050600202600101905550565b61036c8161015e565b82525050565b6020810161016a8284610363565b6020808252810161016a81602481527f496e76616c6964207472616e73616374696f6e20616e616c797a6572206164646020820152637265737360e01b604082015260600190565b610c0b806103d55f395ff3fe608060405234801561000f575f5ffd5b50600436106100da575f3560e01c8063715018a6116100885780639f9976af116100635780639f9976af146101a2578063a9059cbb146101b5578063dd62ed3e146101c8578063f2fde38b14610200575f5ffd5b8063715018a6146101775780638da5cb5b1461018157806395d89b411461019a575f5ffd5b806323b872dd116100b857806323b872dd1461012d578063313ce5671461014057806370a082311461014f575f5ffd5b806306fdde03146100de578063095ea7b3146100fc57806318160ddd1461011c575b5f5ffd5b6100e6610213565b6040516100f39190610861565b60405180910390f35b61010f61010a3660046108b8565b6102a3565b6040516100f391906108f8565b6002545b6040516100f3919061090c565b61010f61013b36600461091a565b6102bc565b60126040516100f39190610969565b61012061015d366004610977565b6001600160a01b03165f9081526020819052604090205490565b61017f6102df565b005b6005546001600160a01b03166040516100f3919061099d565b6100e66102f2565b61017f6101b03660046109f9565b610301565b61010f6101c33660046108b8565b6103ab565b6101206101d6366004610a3e565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61017f61020e366004610977565b6103b8565b60606003805461022290610a7f565b80601f016020809104026020016040519081016040528092919081815260200182805461024e90610a7f565b80156102995780601f1061027057610100808354040283529160200191610299565b820191905f5260205f20905b81548152906001019060200180831161027c57829003601f168201915b5050505050905090565b5f336102b081858561040e565b60019150505b92915050565b5f336102c985828561041b565b6102d485858561049c565b506001949350505050565b6102e7610512565b6102f05f610558565b565b60606004805461022290610a7f565b6006546001600160a01b031633146103345760405162461bcd60e51b815260040161032b90610aab565b60405180910390fd5b5f8190036103545760405162461bcd60e51b815260040161032b90610b0c565b5f5b818110156103a65761039e83838381811061037357610373610b47565b90506020028101906103859190610b5b565b6103979061010081019060e001610977565b60016105c1565b600101610356565b505050565b5f336102b081858561049c565b6103c0610512565b6001600160a01b038116610402575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161032b919061099d565b61040b81610558565b50565b6103a683838360016105f9565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146104965781811015610488578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161032b93929190610b7e565b61049684848484035f6105f9565b50505050565b6001600160a01b0383166104de575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161032b919061099d565b6001600160a01b038216610507575f60405163ec442f0560e01b815260040161032b919061099d565b6103a68383836106fb565b6005546001600160a01b031633146102f057336040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161032b919061099d565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166105ea575f60405163ec442f0560e01b815260040161032b919061099d565b6105f55f83836106fb565b5050565b6001600160a01b03841661063b575f6040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161032b919061099d565b6001600160a01b03831661067d575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161032b919061099d565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561049657826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516106ed919061090c565b60405180910390a350505050565b6001600160a01b038316610725578060025f82825461071a9190610bc2565b9091555061079b9050565b6001600160a01b0383165f908152602081905260409020548181101561077d578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161032b93929190610b7e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166107b7576002805482900390556107d5565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610818919061090c565b60405180910390a3505050565b8281835e505f910152565b5f610839825190565b808452602084019350610850818560208601610825565b601f01601f19169290920192915050565b602080825281016108728184610830565b9392505050565b5f6001600160a01b0382166102b6565b61089281610879565b811461040b575f5ffd5b80356102b681610889565b80610892565b80356102b6816108a7565b5f5f604083850312156108cc576108cc5f5ffd5b6108d6848461089c565b91506108e584602085016108ad565b90509250929050565b8015155b82525050565b602081016102b682846108ee565b806108f2565b602081016102b68284610906565b5f5f5f6060848603121561092f5761092f5f5ffd5b610939858561089c565b9250610948856020860161089c565b915061095785604086016108ad565b90509250925092565b60ff81166108f2565b602081016102b68284610960565b5f6020828403121561098a5761098a5f5ffd5b610872838361089c565b6108f281610879565b602081016102b68284610994565b5f5f83601f8401126109be576109be5f5ffd5b50813567ffffffffffffffff8111156109d8576109d85f5ffd5b6020830191508360208202830111156109f2576109f25f5ffd5b9250929050565b5f5f60208385031215610a0d57610a0d5f5ffd5b823567ffffffffffffffff811115610a2657610a265f5ffd5b610a32858286016109ab565b92509250509250929050565b5f5f60408385031215610a5257610a525f5ffd5b610a5c848461089c565b91506108e5846020850161089c565b634e487b7160e01b5f52602260045260245ffd5b600281046001821680610a9357607f821691505b602082108103610aa557610aa5610a6b565b50919050565b602080825281016102b681602c81527f43616c6c65723a2063616c6c6572206973206e6f74207468652064657369676e60208201527f6174656420616464726573730000000000000000000000000000000000000000604082015260600190565b602080825281016102b681601a81527f4e6f207472616e73616374696f6e7320746f20636f6e76657274000000000000602082015260400190565b634e487b7160e01b5f52603260045260245ffd5b5f823561013e1936849003018112610b7457610b745f5ffd5b9190910192915050565b60608101610b8c8286610994565b610b996020830185610906565b610ba66040830184610906565b949350505050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156102b6576102b6610bae56fea26469706673582212202f3fe83c28332a1b3f7a1b0a4814756d6537d3bf5156d725954b66819c1364aa64736f6c634300081c0033",
}

ZenBaseMetaData contains all meta data concerning the ZenBase contract.

Functions

This section is empty.

Types

type StructsTransaction

type StructsTransaction struct {
	TxType     uint8
	Nonce      *big.Int
	GasPrice   *big.Int
	GasLimit   *big.Int
	To         common.Address
	Value      *big.Int
	Data       []byte
	From       common.Address
	Successful bool
	GasUsed    uint64
}

StructsTransaction is an auto generated low-level Go binding around an user-defined struct.

type ZenBase

type ZenBase struct {
	ZenBaseCaller     // Read-only binding to the contract
	ZenBaseTransactor // Write-only binding to the contract
	ZenBaseFilterer   // Log filterer for contract events
}

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

func DeployZenBase

func DeployZenBase(auth *bind.TransactOpts, backend bind.ContractBackend, transactionPostProcessor common.Address) (common.Address, *types.Transaction, *ZenBase, error)

DeployZenBase deploys a new Ethereum contract, binding an instance of ZenBase to it.

func NewZenBase

func NewZenBase(address common.Address, backend bind.ContractBackend) (*ZenBase, error)

NewZenBase creates a new instance of ZenBase, bound to a specific deployed contract.

type ZenBaseApproval

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

ZenBaseApproval represents a Approval event raised by the ZenBase contract.

type ZenBaseApprovalIterator

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

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

func (*ZenBaseApprovalIterator) Close

func (it *ZenBaseApprovalIterator) Close() error

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

func (*ZenBaseApprovalIterator) Error

func (it *ZenBaseApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZenBaseApprovalIterator) Next

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

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

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

func NewZenBaseCaller

func NewZenBaseCaller(address common.Address, caller bind.ContractCaller) (*ZenBaseCaller, error)

NewZenBaseCaller creates a new read-only instance of ZenBase, bound to a specific deployed contract.

func (*ZenBaseCaller) Allowance

func (_ZenBase *ZenBaseCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ZenBaseCaller) BalanceOf

func (_ZenBase *ZenBaseCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

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

func (*ZenBaseCaller) Decimals

func (_ZenBase *ZenBaseCaller) 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 (*ZenBaseCaller) Name

func (_ZenBase *ZenBaseCaller) 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 (*ZenBaseCaller) Owner

func (_ZenBase *ZenBaseCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ZenBaseCaller) Symbol

func (_ZenBase *ZenBaseCaller) 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 (*ZenBaseCaller) TotalSupply

func (_ZenBase *ZenBaseCaller) 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 ZenBaseCallerRaw

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

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

func (*ZenBaseCallerRaw) Call

func (_ZenBase *ZenBaseCallerRaw) 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 ZenBaseCallerSession

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

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

func (*ZenBaseCallerSession) Allowance

func (_ZenBase *ZenBaseCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ZenBaseCallerSession) BalanceOf

func (_ZenBase *ZenBaseCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*ZenBaseCallerSession) Decimals

func (_ZenBase *ZenBaseCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ZenBaseCallerSession) Name

func (_ZenBase *ZenBaseCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ZenBaseCallerSession) Owner

func (_ZenBase *ZenBaseCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ZenBaseCallerSession) Symbol

func (_ZenBase *ZenBaseCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ZenBaseCallerSession) TotalSupply

func (_ZenBase *ZenBaseCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ZenBaseFilterer

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

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

func NewZenBaseFilterer

func NewZenBaseFilterer(address common.Address, filterer bind.ContractFilterer) (*ZenBaseFilterer, error)

NewZenBaseFilterer creates a new log filterer instance of ZenBase, bound to a specific deployed contract.

func (*ZenBaseFilterer) FilterApproval

func (_ZenBase *ZenBaseFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ZenBaseApprovalIterator, error)

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

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

func (*ZenBaseFilterer) FilterOwnershipTransferred

func (_ZenBase *ZenBaseFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ZenBaseOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ZenBaseFilterer) FilterTransactionProcessed

func (_ZenBase *ZenBaseFilterer) FilterTransactionProcessed(opts *bind.FilterOpts) (*ZenBaseTransactionProcessedIterator, error)

FilterTransactionProcessed is a free log retrieval operation binding the contract event 0xe848a9a1096c6a1986f56a70fb7fb3250e28b1f56d41fa97ac643492c6c853d1.

Solidity: event TransactionProcessed(address sender, uint256 amount)

func (*ZenBaseFilterer) FilterTransfer

func (_ZenBase *ZenBaseFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ZenBaseTransferIterator, error)

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

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

func (*ZenBaseFilterer) ParseApproval

func (_ZenBase *ZenBaseFilterer) ParseApproval(log types.Log) (*ZenBaseApproval, error)

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

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

func (*ZenBaseFilterer) ParseOwnershipTransferred

func (_ZenBase *ZenBaseFilterer) ParseOwnershipTransferred(log types.Log) (*ZenBaseOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ZenBaseFilterer) ParseTransactionProcessed

func (_ZenBase *ZenBaseFilterer) ParseTransactionProcessed(log types.Log) (*ZenBaseTransactionProcessed, error)

ParseTransactionProcessed is a log parse operation binding the contract event 0xe848a9a1096c6a1986f56a70fb7fb3250e28b1f56d41fa97ac643492c6c853d1.

Solidity: event TransactionProcessed(address sender, uint256 amount)

func (*ZenBaseFilterer) ParseTransfer

func (_ZenBase *ZenBaseFilterer) ParseTransfer(log types.Log) (*ZenBaseTransfer, error)

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

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

func (*ZenBaseFilterer) WatchApproval

func (_ZenBase *ZenBaseFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZenBaseApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

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

func (*ZenBaseFilterer) WatchOwnershipTransferred

func (_ZenBase *ZenBaseFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ZenBaseOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ZenBaseFilterer) WatchTransactionProcessed

func (_ZenBase *ZenBaseFilterer) WatchTransactionProcessed(opts *bind.WatchOpts, sink chan<- *ZenBaseTransactionProcessed) (event.Subscription, error)

WatchTransactionProcessed is a free log subscription operation binding the contract event 0xe848a9a1096c6a1986f56a70fb7fb3250e28b1f56d41fa97ac643492c6c853d1.

Solidity: event TransactionProcessed(address sender, uint256 amount)

func (*ZenBaseFilterer) WatchTransfer

func (_ZenBase *ZenBaseFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ZenBaseTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

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

type ZenBaseOwnershipTransferred

type ZenBaseOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

ZenBaseOwnershipTransferred represents a OwnershipTransferred event raised by the ZenBase contract.

type ZenBaseOwnershipTransferredIterator

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

ZenBaseOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ZenBase contract.

func (*ZenBaseOwnershipTransferredIterator) Close

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

func (*ZenBaseOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZenBaseOwnershipTransferredIterator) 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 ZenBaseRaw

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

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

func (*ZenBaseRaw) Call

func (_ZenBase *ZenBaseRaw) 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 (*ZenBaseRaw) Transact

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

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

func (*ZenBaseRaw) Transfer

func (_ZenBase *ZenBaseRaw) 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 ZenBaseSession

type ZenBaseSession struct {
	Contract     *ZenBase          // 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
}

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

func (*ZenBaseSession) Allowance

func (_ZenBase *ZenBaseSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ZenBaseSession) Approve

func (_ZenBase *ZenBaseSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*ZenBaseSession) BalanceOf

func (_ZenBase *ZenBaseSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*ZenBaseSession) Decimals

func (_ZenBase *ZenBaseSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ZenBaseSession) Name

func (_ZenBase *ZenBaseSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ZenBaseSession) OnBlockEnd

func (_ZenBase *ZenBaseSession) OnBlockEnd(transactions []StructsTransaction) (*types.Transaction, error)

OnBlockEnd is a paid mutator transaction binding the contract method 0x9f9976af.

Solidity: function onBlockEnd((uint8,uint256,uint256,uint256,address,uint256,bytes,address,bool,uint64)[] transactions) returns()

func (*ZenBaseSession) Owner

func (_ZenBase *ZenBaseSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ZenBaseSession) RenounceOwnership

func (_ZenBase *ZenBaseSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ZenBaseSession) Symbol

func (_ZenBase *ZenBaseSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ZenBaseSession) TotalSupply

func (_ZenBase *ZenBaseSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ZenBaseSession) Transfer

func (_ZenBase *ZenBaseSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*ZenBaseSession) TransferFrom

func (_ZenBase *ZenBaseSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*ZenBaseSession) TransferOwnership

func (_ZenBase *ZenBaseSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type ZenBaseTransactionProcessed

type ZenBaseTransactionProcessed struct {
	Sender common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

ZenBaseTransactionProcessed represents a TransactionProcessed event raised by the ZenBase contract.

type ZenBaseTransactionProcessedIterator

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

ZenBaseTransactionProcessedIterator is returned from FilterTransactionProcessed and is used to iterate over the raw logs and unpacked data for TransactionProcessed events raised by the ZenBase contract.

func (*ZenBaseTransactionProcessedIterator) Close

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

func (*ZenBaseTransactionProcessedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZenBaseTransactionProcessedIterator) 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 ZenBaseTransactor

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

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

func NewZenBaseTransactor

func NewZenBaseTransactor(address common.Address, transactor bind.ContractTransactor) (*ZenBaseTransactor, error)

NewZenBaseTransactor creates a new write-only instance of ZenBase, bound to a specific deployed contract.

func (*ZenBaseTransactor) Approve

func (_ZenBase *ZenBaseTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*ZenBaseTransactor) OnBlockEnd

func (_ZenBase *ZenBaseTransactor) OnBlockEnd(opts *bind.TransactOpts, transactions []StructsTransaction) (*types.Transaction, error)

OnBlockEnd is a paid mutator transaction binding the contract method 0x9f9976af.

Solidity: function onBlockEnd((uint8,uint256,uint256,uint256,address,uint256,bytes,address,bool,uint64)[] transactions) returns()

func (*ZenBaseTransactor) RenounceOwnership

func (_ZenBase *ZenBaseTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ZenBaseTransactor) Transfer

func (_ZenBase *ZenBaseTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*ZenBaseTransactor) TransferFrom

func (_ZenBase *ZenBaseTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*ZenBaseTransactor) TransferOwnership

func (_ZenBase *ZenBaseTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type ZenBaseTransactorRaw

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

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

func (*ZenBaseTransactorRaw) Transact

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

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

func (*ZenBaseTransactorRaw) Transfer

func (_ZenBase *ZenBaseTransactorRaw) 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 ZenBaseTransactorSession

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

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

func (*ZenBaseTransactorSession) Approve

func (_ZenBase *ZenBaseTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*ZenBaseTransactorSession) OnBlockEnd

func (_ZenBase *ZenBaseTransactorSession) OnBlockEnd(transactions []StructsTransaction) (*types.Transaction, error)

OnBlockEnd is a paid mutator transaction binding the contract method 0x9f9976af.

Solidity: function onBlockEnd((uint8,uint256,uint256,uint256,address,uint256,bytes,address,bool,uint64)[] transactions) returns()

func (*ZenBaseTransactorSession) RenounceOwnership

func (_ZenBase *ZenBaseTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ZenBaseTransactorSession) Transfer

func (_ZenBase *ZenBaseTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*ZenBaseTransactorSession) TransferFrom

func (_ZenBase *ZenBaseTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*ZenBaseTransactorSession) TransferOwnership

func (_ZenBase *ZenBaseTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type ZenBaseTransfer

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

ZenBaseTransfer represents a Transfer event raised by the ZenBase contract.

type ZenBaseTransferIterator

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

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

func (*ZenBaseTransferIterator) Close

func (it *ZenBaseTransferIterator) Close() error

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

func (*ZenBaseTransferIterator) Error

func (it *ZenBaseTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZenBaseTransferIterator) Next

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