ZRX

package
v0.0.0-...-cc46cae Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ZRXABI = "" /* 2309-byte string literal not displayed */

ZRXABI is the input ABI used to generate the binding from.

Variables

View Source
var File_ZRX_ZRX_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Approval

type Approval struct {
	Ts      *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	Owner   []byte                 `protobuf:"bytes,2,opt,name=Owner,proto3" json:"Owner,omitempty"`     //	address
	Spender []byte                 `protobuf:"bytes,3,opt,name=Spender,proto3" json:"Spender,omitempty"` //	address
	Value   []byte                 `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"`     //	uint256
	// contains filtered or unexported fields
}

func (*Approval) Descriptor deprecated

func (*Approval) Descriptor() ([]byte, []int)

Deprecated: Use Approval.ProtoReflect.Descriptor instead.

func (*Approval) GetOwner

func (x *Approval) GetOwner() []byte

func (*Approval) GetSpender

func (x *Approval) GetSpender() []byte

func (*Approval) GetTs

func (x *Approval) GetTs() *timestamppb.Timestamp

func (*Approval) GetValue

func (x *Approval) GetValue() []byte

func (*Approval) ProtoMessage

func (*Approval) ProtoMessage()

func (*Approval) ProtoReflect

func (x *Approval) ProtoReflect() protoreflect.Message

func (*Approval) Reset

func (x *Approval) Reset()

func (*Approval) String

func (x *Approval) String() string

type SmartContract

type SmartContract struct{}

func (*SmartContract) Message

func (sc *SmartContract) Message(eventName string, contractAbi *abi.ABI, vLog types.Log, timestamp *timestamppb.Timestamp) protoreflect.ProtoMessage

type Transfer

type Transfer struct {
	Ts    *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	From  []byte                 `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"`   //	address
	To    []byte                 `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"`       //	address
	Value []byte                 `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` //	uint256
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetFrom

func (x *Transfer) GetFrom() []byte

func (*Transfer) GetTo

func (x *Transfer) GetTo() []byte

func (*Transfer) GetTs

func (x *Transfer) GetTs() *timestamppb.Timestamp

func (*Transfer) GetValue

func (x *Transfer) GetValue() []byte

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

type ZRX

type ZRX struct {
	ZRXCaller     // Read-only binding to the contract
	ZRXTransactor // Write-only binding to the contract
	ZRXFilterer   // Log filterer for contract events
}

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

func NewZRX

func NewZRX(address common.Address, backend bind.ContractBackend) (*ZRX, error)

NewZRX creates a new instance of ZRX, bound to a specific deployed contract.

type ZRXApproval

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

ZRXApproval represents a Approval event raised by the ZRX contract.

type ZRXApprovalIterator

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

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

func (*ZRXApprovalIterator) Close

func (it *ZRXApprovalIterator) Close() error

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

func (*ZRXApprovalIterator) Error

func (it *ZRXApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZRXApprovalIterator) Next

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

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

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

func NewZRXCaller

func NewZRXCaller(address common.Address, caller bind.ContractCaller) (*ZRXCaller, error)

NewZRXCaller creates a new read-only instance of ZRX, bound to a specific deployed contract.

func (*ZRXCaller) Allowance

func (_ZRX *ZRXCaller) 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) returns(uint256)

func (*ZRXCaller) BalanceOf

func (_ZRX *ZRXCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

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

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

func (*ZRXCaller) Decimals

func (_ZRX *ZRXCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() returns(uint8)

func (*ZRXCaller) Name

func (_ZRX *ZRXCaller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() returns(string)

func (*ZRXCaller) Symbol

func (_ZRX *ZRXCaller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() returns(string)

func (*ZRXCaller) TotalSupply

func (_ZRX *ZRXCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() returns(uint256)

type ZRXCallerRaw

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

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

func (*ZRXCallerRaw) Call

func (_ZRX *ZRXCallerRaw) 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 ZRXCallerSession

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

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

func (*ZRXCallerSession) Allowance

func (_ZRX *ZRXCallerSession) 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) returns(uint256)

func (*ZRXCallerSession) BalanceOf

func (_ZRX *ZRXCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

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

func (*ZRXCallerSession) Decimals

func (_ZRX *ZRXCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() returns(uint8)

func (*ZRXCallerSession) Name

func (_ZRX *ZRXCallerSession) Name() (string, error)

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

Solidity: function name() returns(string)

func (*ZRXCallerSession) Symbol

func (_ZRX *ZRXCallerSession) Symbol() (string, error)

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

Solidity: function symbol() returns(string)

func (*ZRXCallerSession) TotalSupply

func (_ZRX *ZRXCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() returns(uint256)

type ZRXFilterer

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

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

func NewZRXFilterer

func NewZRXFilterer(address common.Address, filterer bind.ContractFilterer) (*ZRXFilterer, error)

NewZRXFilterer creates a new log filterer instance of ZRX, bound to a specific deployed contract.

func (*ZRXFilterer) FilterApproval

func (_ZRX *ZRXFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*ZRXApprovalIterator, 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 (*ZRXFilterer) FilterTransfer

func (_ZRX *ZRXFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*ZRXTransferIterator, 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 (*ZRXFilterer) ParseApproval

func (_ZRX *ZRXFilterer) ParseApproval(log types.Log) (*ZRXApproval, error)

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

Solidity: event Approval(address indexed _owner, address indexed _spender, uint256 _value)

func (*ZRXFilterer) ParseTransfer

func (_ZRX *ZRXFilterer) ParseTransfer(log types.Log) (*ZRXTransfer, error)

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

Solidity: event Transfer(address indexed _from, address indexed _to, uint256 _value)

func (*ZRXFilterer) WatchApproval

func (_ZRX *ZRXFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZRXApproval, _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 (*ZRXFilterer) WatchTransfer

func (_ZRX *ZRXFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ZRXTransfer, _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 ZRXRaw

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

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

func (*ZRXRaw) Call

func (_ZRX *ZRXRaw) 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 (*ZRXRaw) Transact

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

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

func (*ZRXRaw) Transfer

func (_ZRX *ZRXRaw) 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 ZRXSession

type ZRXSession struct {
	Contract     *ZRX              // 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
}

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

func (*ZRXSession) Allowance

func (_ZRX *ZRXSession) 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) returns(uint256)

func (*ZRXSession) Approve

func (_ZRX *ZRXSession) 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 (*ZRXSession) BalanceOf

func (_ZRX *ZRXSession) BalanceOf(_owner common.Address) (*big.Int, error)

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

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

func (*ZRXSession) Decimals

func (_ZRX *ZRXSession) Decimals() (uint8, error)

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

Solidity: function decimals() returns(uint8)

func (*ZRXSession) Name

func (_ZRX *ZRXSession) Name() (string, error)

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

Solidity: function name() returns(string)

func (*ZRXSession) Symbol

func (_ZRX *ZRXSession) Symbol() (string, error)

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

Solidity: function symbol() returns(string)

func (*ZRXSession) TotalSupply

func (_ZRX *ZRXSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() returns(uint256)

func (*ZRXSession) Transfer

func (_ZRX *ZRXSession) 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 (*ZRXSession) TransferFrom

func (_ZRX *ZRXSession) 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)

type ZRXTransactor

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

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

func NewZRXTransactor

func NewZRXTransactor(address common.Address, transactor bind.ContractTransactor) (*ZRXTransactor, error)

NewZRXTransactor creates a new write-only instance of ZRX, bound to a specific deployed contract.

func (*ZRXTransactor) Approve

func (_ZRX *ZRXTransactor) 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 (*ZRXTransactor) Transfer

func (_ZRX *ZRXTransactor) 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 (*ZRXTransactor) TransferFrom

func (_ZRX *ZRXTransactor) 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)

type ZRXTransactorRaw

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

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

func (*ZRXTransactorRaw) Transact

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

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

func (*ZRXTransactorRaw) Transfer

func (_ZRX *ZRXTransactorRaw) 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 ZRXTransactorSession

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

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

func (*ZRXTransactorSession) Approve

func (_ZRX *ZRXTransactorSession) 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 (*ZRXTransactorSession) Transfer

func (_ZRX *ZRXTransactorSession) 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 (*ZRXTransactorSession) TransferFrom

func (_ZRX *ZRXTransactorSession) 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)

type ZRXTransfer

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

ZRXTransfer represents a Transfer event raised by the ZRX contract.

type ZRXTransferIterator

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

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

func (*ZRXTransferIterator) Close

func (it *ZRXTransferIterator) Close() error

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

func (*ZRXTransferIterator) Error

func (it *ZRXTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZRXTransferIterator) Next

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