Documentation ¶
Index ¶
- Constants
- Variables
- type Approval
- func (*Approval) Descriptor() ([]byte, []int)deprecated
- func (x *Approval) GetAmount() []byte
- func (x *Approval) GetOwner() []byte
- func (x *Approval) GetSpender() []byte
- func (x *Approval) GetTs() *timestamppb.Timestamp
- func (*Approval) ProtoMessage()
- func (x *Approval) ProtoReflect() protoreflect.Message
- func (x *Approval) Reset()
- func (x *Approval) String() string
- type COMP
- type COMPApproval
- type COMPApprovalIterator
- type COMPCaller
- func (_COMP *COMPCaller) Allowance(opts *bind.CallOpts, account common.Address, spender common.Address) (*big.Int, error)
- func (_COMP *COMPCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_COMP *COMPCaller) Checkpoints(opts *bind.CallOpts, arg0 common.Address, arg1 uint32) (struct{ ... }, error)
- func (_COMP *COMPCaller) DELEGATIONTYPEHASH(opts *bind.CallOpts) ([32]byte, error)
- func (_COMP *COMPCaller) DOMAINTYPEHASH(opts *bind.CallOpts) ([32]byte, error)
- func (_COMP *COMPCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_COMP *COMPCaller) Delegates(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_COMP *COMPCaller) GetCurrentVotes(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_COMP *COMPCaller) GetPriorVotes(opts *bind.CallOpts, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_COMP *COMPCaller) Name(opts *bind.CallOpts) (string, error)
- func (_COMP *COMPCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_COMP *COMPCaller) NumCheckpoints(opts *bind.CallOpts, arg0 common.Address) (uint32, error)
- func (_COMP *COMPCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_COMP *COMPCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type COMPCallerRaw
- type COMPCallerSession
- func (_COMP *COMPCallerSession) Allowance(account common.Address, spender common.Address) (*big.Int, error)
- func (_COMP *COMPCallerSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_COMP *COMPCallerSession) Checkpoints(arg0 common.Address, arg1 uint32) (struct{ ... }, error)
- func (_COMP *COMPCallerSession) DELEGATIONTYPEHASH() ([32]byte, error)
- func (_COMP *COMPCallerSession) DOMAINTYPEHASH() ([32]byte, error)
- func (_COMP *COMPCallerSession) Decimals() (uint8, error)
- func (_COMP *COMPCallerSession) Delegates(arg0 common.Address) (common.Address, error)
- func (_COMP *COMPCallerSession) GetCurrentVotes(account common.Address) (*big.Int, error)
- func (_COMP *COMPCallerSession) GetPriorVotes(account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_COMP *COMPCallerSession) Name() (string, error)
- func (_COMP *COMPCallerSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_COMP *COMPCallerSession) NumCheckpoints(arg0 common.Address) (uint32, error)
- func (_COMP *COMPCallerSession) Symbol() (string, error)
- func (_COMP *COMPCallerSession) TotalSupply() (*big.Int, error)
- type COMPDelegateChanged
- type COMPDelegateChangedIterator
- type COMPDelegateVotesChanged
- type COMPDelegateVotesChangedIterator
- type COMPFilterer
- func (_COMP *COMPFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*COMPApprovalIterator, error)
- func (_COMP *COMPFilterer) FilterDelegateChanged(opts *bind.FilterOpts, delegator []common.Address, ...) (*COMPDelegateChangedIterator, error)
- func (_COMP *COMPFilterer) FilterDelegateVotesChanged(opts *bind.FilterOpts, delegate []common.Address) (*COMPDelegateVotesChangedIterator, error)
- func (_COMP *COMPFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*COMPTransferIterator, error)
- func (_COMP *COMPFilterer) ParseApproval(log types.Log) (*COMPApproval, error)
- func (_COMP *COMPFilterer) ParseDelegateChanged(log types.Log) (*COMPDelegateChanged, error)
- func (_COMP *COMPFilterer) ParseDelegateVotesChanged(log types.Log) (*COMPDelegateVotesChanged, error)
- func (_COMP *COMPFilterer) ParseTransfer(log types.Log) (*COMPTransfer, error)
- func (_COMP *COMPFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *COMPApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_COMP *COMPFilterer) WatchDelegateChanged(opts *bind.WatchOpts, sink chan<- *COMPDelegateChanged, ...) (event.Subscription, error)
- func (_COMP *COMPFilterer) WatchDelegateVotesChanged(opts *bind.WatchOpts, sink chan<- *COMPDelegateVotesChanged, ...) (event.Subscription, error)
- func (_COMP *COMPFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *COMPTransfer, from []common.Address, ...) (event.Subscription, error)
- type COMPRaw
- func (_COMP *COMPRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_COMP *COMPRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_COMP *COMPRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type COMPSession
- func (_COMP *COMPSession) Allowance(account common.Address, spender common.Address) (*big.Int, error)
- func (_COMP *COMPSession) Approve(spender common.Address, rawAmount *big.Int) (*types.Transaction, error)
- func (_COMP *COMPSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_COMP *COMPSession) Checkpoints(arg0 common.Address, arg1 uint32) (struct{ ... }, error)
- func (_COMP *COMPSession) DELEGATIONTYPEHASH() ([32]byte, error)
- func (_COMP *COMPSession) DOMAINTYPEHASH() ([32]byte, error)
- func (_COMP *COMPSession) Decimals() (uint8, error)
- func (_COMP *COMPSession) Delegate(delegatee common.Address) (*types.Transaction, error)
- func (_COMP *COMPSession) DelegateBySig(delegatee common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_COMP *COMPSession) Delegates(arg0 common.Address) (common.Address, error)
- func (_COMP *COMPSession) GetCurrentVotes(account common.Address) (*big.Int, error)
- func (_COMP *COMPSession) GetPriorVotes(account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_COMP *COMPSession) Name() (string, error)
- func (_COMP *COMPSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_COMP *COMPSession) NumCheckpoints(arg0 common.Address) (uint32, error)
- func (_COMP *COMPSession) Symbol() (string, error)
- func (_COMP *COMPSession) TotalSupply() (*big.Int, error)
- func (_COMP *COMPSession) Transfer(dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
- func (_COMP *COMPSession) TransferFrom(src common.Address, dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
- type COMPTransactor
- func (_COMP *COMPTransactor) Approve(opts *bind.TransactOpts, spender common.Address, rawAmount *big.Int) (*types.Transaction, error)
- func (_COMP *COMPTransactor) Delegate(opts *bind.TransactOpts, delegatee common.Address) (*types.Transaction, error)
- func (_COMP *COMPTransactor) DelegateBySig(opts *bind.TransactOpts, delegatee common.Address, nonce *big.Int, ...) (*types.Transaction, error)
- func (_COMP *COMPTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
- func (_COMP *COMPTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, ...) (*types.Transaction, error)
- type COMPTransactorRaw
- type COMPTransactorSession
- func (_COMP *COMPTransactorSession) Approve(spender common.Address, rawAmount *big.Int) (*types.Transaction, error)
- func (_COMP *COMPTransactorSession) Delegate(delegatee common.Address) (*types.Transaction, error)
- func (_COMP *COMPTransactorSession) DelegateBySig(delegatee common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_COMP *COMPTransactorSession) Transfer(dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
- func (_COMP *COMPTransactorSession) TransferFrom(src common.Address, dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
- type COMPTransfer
- type COMPTransferIterator
- type DelegateChanged
- func (*DelegateChanged) Descriptor() ([]byte, []int)deprecated
- func (x *DelegateChanged) GetDelegator() []byte
- func (x *DelegateChanged) GetFromDelegate() []byte
- func (x *DelegateChanged) GetToDelegate() []byte
- func (x *DelegateChanged) GetTs() *timestamppb.Timestamp
- func (*DelegateChanged) ProtoMessage()
- func (x *DelegateChanged) ProtoReflect() protoreflect.Message
- func (x *DelegateChanged) Reset()
- func (x *DelegateChanged) String() string
- type DelegateVotesChanged
- func (*DelegateVotesChanged) Descriptor() ([]byte, []int)deprecated
- func (x *DelegateVotesChanged) GetDelegate() []byte
- func (x *DelegateVotesChanged) GetNewBalance() []byte
- func (x *DelegateVotesChanged) GetPreviousBalance() []byte
- func (x *DelegateVotesChanged) GetTs() *timestamppb.Timestamp
- func (*DelegateVotesChanged) ProtoMessage()
- func (x *DelegateVotesChanged) ProtoReflect() protoreflect.Message
- func (x *DelegateVotesChanged) Reset()
- func (x *DelegateVotesChanged) String() string
- type SmartContract
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transfer) GetAmount() []byte
- func (x *Transfer) GetFrom() []byte
- func (x *Transfer) GetTo() []byte
- func (x *Transfer) GetTs() *timestamppb.Timestamp
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
Constants ¶
const COMPABI = "" /* 7225-byte string literal not displayed */
COMPABI is the input ABI used to generate the binding from.
Variables ¶
var File_Comp_Comp_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 Amount []byte `protobuf:"bytes,4,opt,name=Amount,proto3" json:"Amount,omitempty"` // uint256 // contains filtered or unexported fields }
func (*Approval) Descriptor
deprecated
func (*Approval) GetSpender ¶
func (*Approval) GetTs ¶
func (x *Approval) GetTs() *timestamppb.Timestamp
func (*Approval) ProtoMessage ¶
func (*Approval) ProtoMessage()
func (*Approval) ProtoReflect ¶
func (x *Approval) ProtoReflect() protoreflect.Message
type COMP ¶
type COMP struct { COMPCaller // Read-only binding to the contract COMPTransactor // Write-only binding to the contract COMPFilterer // Log filterer for contract events }
COMP is an auto generated Go binding around an Ethereum contract.
type COMPApproval ¶
type COMPApproval struct { Owner common.Address Spender common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
COMPApproval represents a Approval event raised by the COMP contract.
type COMPApprovalIterator ¶
type COMPApprovalIterator struct { Event *COMPApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COMPApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the COMP contract.
func (*COMPApprovalIterator) Close ¶
func (it *COMPApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COMPApprovalIterator) Error ¶
func (it *COMPApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COMPApprovalIterator) Next ¶
func (it *COMPApprovalIterator) 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 COMPCaller ¶
type COMPCaller struct {
// contains filtered or unexported fields
}
COMPCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCOMPCaller ¶
func NewCOMPCaller(address common.Address, caller bind.ContractCaller) (*COMPCaller, error)
NewCOMPCaller creates a new read-only instance of COMP, bound to a specific deployed contract.
func (*COMPCaller) Allowance ¶
func (_COMP *COMPCaller) Allowance(opts *bind.CallOpts, account common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address account, address spender) view returns(uint256)
func (*COMPCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*COMPCaller) Checkpoints ¶
func (_COMP *COMPCaller) Checkpoints(opts *bind.CallOpts, arg0 common.Address, arg1 uint32) (struct { FromBlock uint32 Votes *big.Int }, error)
Checkpoints is a free data retrieval call binding the contract method 0xf1127ed8.
Solidity: function checkpoints(address , uint32 ) view returns(uint32 fromBlock, uint96 votes)
func (*COMPCaller) DELEGATIONTYPEHASH ¶
func (_COMP *COMPCaller) DELEGATIONTYPEHASH(opts *bind.CallOpts) ([32]byte, error)
DELEGATIONTYPEHASH is a free data retrieval call binding the contract method 0xe7a324dc.
Solidity: function DELEGATION_TYPEHASH() view returns(bytes32)
func (*COMPCaller) DOMAINTYPEHASH ¶
func (_COMP *COMPCaller) DOMAINTYPEHASH(opts *bind.CallOpts) ([32]byte, error)
DOMAINTYPEHASH is a free data retrieval call binding the contract method 0x20606b70.
Solidity: function DOMAIN_TYPEHASH() view returns(bytes32)
func (*COMPCaller) Decimals ¶
func (_COMP *COMPCaller) 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 (*COMPCaller) Delegates ¶
func (_COMP *COMPCaller) Delegates(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
Delegates is a free data retrieval call binding the contract method 0x587cde1e.
Solidity: function delegates(address ) view returns(address)
func (*COMPCaller) GetCurrentVotes ¶
func (_COMP *COMPCaller) GetCurrentVotes(opts *bind.CallOpts, account common.Address) (*big.Int, error)
GetCurrentVotes is a free data retrieval call binding the contract method 0xb4b5ea57.
Solidity: function getCurrentVotes(address account) view returns(uint96)
func (*COMPCaller) GetPriorVotes ¶
func (_COMP *COMPCaller) GetPriorVotes(opts *bind.CallOpts, account common.Address, blockNumber *big.Int) (*big.Int, error)
GetPriorVotes is a free data retrieval call binding the contract method 0x782d6fe1.
Solidity: function getPriorVotes(address account, uint256 blockNumber) view returns(uint96)
func (*COMPCaller) Name ¶
func (_COMP *COMPCaller) 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 (*COMPCaller) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*COMPCaller) NumCheckpoints ¶
NumCheckpoints is a free data retrieval call binding the contract method 0x6fcfff45.
Solidity: function numCheckpoints(address ) view returns(uint32)
func (*COMPCaller) Symbol ¶
func (_COMP *COMPCaller) 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 (*COMPCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type COMPCallerRaw ¶
type COMPCallerRaw struct {
Contract *COMPCaller // Generic read-only contract binding to access the raw methods on
}
COMPCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*COMPCallerRaw) Call ¶
func (_COMP *COMPCallerRaw) 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 COMPCallerSession ¶
type COMPCallerSession struct { Contract *COMPCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
COMPCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*COMPCallerSession) Allowance ¶
func (_COMP *COMPCallerSession) Allowance(account common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address account, address spender) view returns(uint256)
func (*COMPCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*COMPCallerSession) Checkpoints ¶
func (_COMP *COMPCallerSession) Checkpoints(arg0 common.Address, arg1 uint32) (struct { FromBlock uint32 Votes *big.Int }, error)
Checkpoints is a free data retrieval call binding the contract method 0xf1127ed8.
Solidity: function checkpoints(address , uint32 ) view returns(uint32 fromBlock, uint96 votes)
func (*COMPCallerSession) DELEGATIONTYPEHASH ¶
func (_COMP *COMPCallerSession) DELEGATIONTYPEHASH() ([32]byte, error)
DELEGATIONTYPEHASH is a free data retrieval call binding the contract method 0xe7a324dc.
Solidity: function DELEGATION_TYPEHASH() view returns(bytes32)
func (*COMPCallerSession) DOMAINTYPEHASH ¶
func (_COMP *COMPCallerSession) DOMAINTYPEHASH() ([32]byte, error)
DOMAINTYPEHASH is a free data retrieval call binding the contract method 0x20606b70.
Solidity: function DOMAIN_TYPEHASH() view returns(bytes32)
func (*COMPCallerSession) Decimals ¶
func (_COMP *COMPCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*COMPCallerSession) Delegates ¶
Delegates is a free data retrieval call binding the contract method 0x587cde1e.
Solidity: function delegates(address ) view returns(address)
func (*COMPCallerSession) GetCurrentVotes ¶
GetCurrentVotes is a free data retrieval call binding the contract method 0xb4b5ea57.
Solidity: function getCurrentVotes(address account) view returns(uint96)
func (*COMPCallerSession) GetPriorVotes ¶
func (_COMP *COMPCallerSession) GetPriorVotes(account common.Address, blockNumber *big.Int) (*big.Int, error)
GetPriorVotes is a free data retrieval call binding the contract method 0x782d6fe1.
Solidity: function getPriorVotes(address account, uint256 blockNumber) view returns(uint96)
func (*COMPCallerSession) Name ¶
func (_COMP *COMPCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*COMPCallerSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*COMPCallerSession) NumCheckpoints ¶
func (_COMP *COMPCallerSession) NumCheckpoints(arg0 common.Address) (uint32, error)
NumCheckpoints is a free data retrieval call binding the contract method 0x6fcfff45.
Solidity: function numCheckpoints(address ) view returns(uint32)
func (*COMPCallerSession) Symbol ¶
func (_COMP *COMPCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*COMPCallerSession) TotalSupply ¶
func (_COMP *COMPCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type COMPDelegateChanged ¶
type COMPDelegateChanged struct { Delegator common.Address FromDelegate common.Address ToDelegate common.Address Raw types.Log // Blockchain specific contextual infos }
COMPDelegateChanged represents a DelegateChanged event raised by the COMP contract.
type COMPDelegateChangedIterator ¶
type COMPDelegateChangedIterator struct { Event *COMPDelegateChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COMPDelegateChangedIterator is returned from FilterDelegateChanged and is used to iterate over the raw logs and unpacked data for DelegateChanged events raised by the COMP contract.
func (*COMPDelegateChangedIterator) Close ¶
func (it *COMPDelegateChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COMPDelegateChangedIterator) Error ¶
func (it *COMPDelegateChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COMPDelegateChangedIterator) Next ¶
func (it *COMPDelegateChangedIterator) 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 COMPDelegateVotesChanged ¶
type COMPDelegateVotesChanged struct { Delegate common.Address PreviousBalance *big.Int NewBalance *big.Int Raw types.Log // Blockchain specific contextual infos }
COMPDelegateVotesChanged represents a DelegateVotesChanged event raised by the COMP contract.
type COMPDelegateVotesChangedIterator ¶
type COMPDelegateVotesChangedIterator struct { Event *COMPDelegateVotesChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COMPDelegateVotesChangedIterator is returned from FilterDelegateVotesChanged and is used to iterate over the raw logs and unpacked data for DelegateVotesChanged events raised by the COMP contract.
func (*COMPDelegateVotesChangedIterator) Close ¶
func (it *COMPDelegateVotesChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COMPDelegateVotesChangedIterator) Error ¶
func (it *COMPDelegateVotesChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COMPDelegateVotesChangedIterator) Next ¶
func (it *COMPDelegateVotesChangedIterator) 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 COMPFilterer ¶
type COMPFilterer struct {
// contains filtered or unexported fields
}
COMPFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCOMPFilterer ¶
func NewCOMPFilterer(address common.Address, filterer bind.ContractFilterer) (*COMPFilterer, error)
NewCOMPFilterer creates a new log filterer instance of COMP, bound to a specific deployed contract.
func (*COMPFilterer) FilterApproval ¶
func (_COMP *COMPFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*COMPApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*COMPFilterer) FilterDelegateChanged ¶
func (_COMP *COMPFilterer) FilterDelegateChanged(opts *bind.FilterOpts, delegator []common.Address, fromDelegate []common.Address, toDelegate []common.Address) (*COMPDelegateChangedIterator, error)
FilterDelegateChanged is a free log retrieval operation binding the contract event 0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f.
Solidity: event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate)
func (*COMPFilterer) FilterDelegateVotesChanged ¶
func (_COMP *COMPFilterer) FilterDelegateVotesChanged(opts *bind.FilterOpts, delegate []common.Address) (*COMPDelegateVotesChangedIterator, error)
FilterDelegateVotesChanged is a free log retrieval operation binding the contract event 0xdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724.
Solidity: event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance)
func (*COMPFilterer) FilterTransfer ¶
func (_COMP *COMPFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*COMPTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
func (*COMPFilterer) ParseApproval ¶
func (_COMP *COMPFilterer) ParseApproval(log types.Log) (*COMPApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*COMPFilterer) ParseDelegateChanged ¶
func (_COMP *COMPFilterer) ParseDelegateChanged(log types.Log) (*COMPDelegateChanged, error)
ParseDelegateChanged is a log parse operation binding the contract event 0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f.
Solidity: event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate)
func (*COMPFilterer) ParseDelegateVotesChanged ¶
func (_COMP *COMPFilterer) ParseDelegateVotesChanged(log types.Log) (*COMPDelegateVotesChanged, error)
ParseDelegateVotesChanged is a log parse operation binding the contract event 0xdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724.
Solidity: event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance)
func (*COMPFilterer) ParseTransfer ¶
func (_COMP *COMPFilterer) ParseTransfer(log types.Log) (*COMPTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
func (*COMPFilterer) WatchApproval ¶
func (_COMP *COMPFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *COMPApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*COMPFilterer) WatchDelegateChanged ¶
func (_COMP *COMPFilterer) WatchDelegateChanged(opts *bind.WatchOpts, sink chan<- *COMPDelegateChanged, delegator []common.Address, fromDelegate []common.Address, toDelegate []common.Address) (event.Subscription, error)
WatchDelegateChanged is a free log subscription operation binding the contract event 0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f.
Solidity: event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate)
func (*COMPFilterer) WatchDelegateVotesChanged ¶
func (_COMP *COMPFilterer) WatchDelegateVotesChanged(opts *bind.WatchOpts, sink chan<- *COMPDelegateVotesChanged, delegate []common.Address) (event.Subscription, error)
WatchDelegateVotesChanged is a free log subscription operation binding the contract event 0xdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724.
Solidity: event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance)
func (*COMPFilterer) WatchTransfer ¶
func (_COMP *COMPFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *COMPTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
type COMPRaw ¶
type COMPRaw struct {
Contract *COMP // Generic contract binding to access the raw methods on
}
COMPRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*COMPRaw) Call ¶
func (_COMP *COMPRaw) 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 (*COMPRaw) Transact ¶
func (_COMP *COMPRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*COMPRaw) Transfer ¶
func (_COMP *COMPRaw) 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 COMPSession ¶
type COMPSession struct { Contract *COMP // 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 }
COMPSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*COMPSession) Allowance ¶
func (_COMP *COMPSession) Allowance(account common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address account, address spender) view returns(uint256)
func (*COMPSession) Approve ¶
func (_COMP *COMPSession) Approve(spender common.Address, rawAmount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 rawAmount) returns(bool)
func (*COMPSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*COMPSession) Checkpoints ¶
func (_COMP *COMPSession) Checkpoints(arg0 common.Address, arg1 uint32) (struct { FromBlock uint32 Votes *big.Int }, error)
Checkpoints is a free data retrieval call binding the contract method 0xf1127ed8.
Solidity: function checkpoints(address , uint32 ) view returns(uint32 fromBlock, uint96 votes)
func (*COMPSession) DELEGATIONTYPEHASH ¶
func (_COMP *COMPSession) DELEGATIONTYPEHASH() ([32]byte, error)
DELEGATIONTYPEHASH is a free data retrieval call binding the contract method 0xe7a324dc.
Solidity: function DELEGATION_TYPEHASH() view returns(bytes32)
func (*COMPSession) DOMAINTYPEHASH ¶
func (_COMP *COMPSession) DOMAINTYPEHASH() ([32]byte, error)
DOMAINTYPEHASH is a free data retrieval call binding the contract method 0x20606b70.
Solidity: function DOMAIN_TYPEHASH() view returns(bytes32)
func (*COMPSession) Decimals ¶
func (_COMP *COMPSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*COMPSession) Delegate ¶
func (_COMP *COMPSession) Delegate(delegatee common.Address) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.
Solidity: function delegate(address delegatee) returns()
func (*COMPSession) DelegateBySig ¶
func (_COMP *COMPSession) DelegateBySig(delegatee common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
DelegateBySig is a paid mutator transaction binding the contract method 0xc3cda520.
Solidity: function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) returns()
func (*COMPSession) Delegates ¶
Delegates is a free data retrieval call binding the contract method 0x587cde1e.
Solidity: function delegates(address ) view returns(address)
func (*COMPSession) GetCurrentVotes ¶
GetCurrentVotes is a free data retrieval call binding the contract method 0xb4b5ea57.
Solidity: function getCurrentVotes(address account) view returns(uint96)
func (*COMPSession) GetPriorVotes ¶
func (_COMP *COMPSession) GetPriorVotes(account common.Address, blockNumber *big.Int) (*big.Int, error)
GetPriorVotes is a free data retrieval call binding the contract method 0x782d6fe1.
Solidity: function getPriorVotes(address account, uint256 blockNumber) view returns(uint96)
func (*COMPSession) Name ¶
func (_COMP *COMPSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*COMPSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*COMPSession) NumCheckpoints ¶
func (_COMP *COMPSession) NumCheckpoints(arg0 common.Address) (uint32, error)
NumCheckpoints is a free data retrieval call binding the contract method 0x6fcfff45.
Solidity: function numCheckpoints(address ) view returns(uint32)
func (*COMPSession) Symbol ¶
func (_COMP *COMPSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*COMPSession) TotalSupply ¶
func (_COMP *COMPSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*COMPSession) Transfer ¶
func (_COMP *COMPSession) Transfer(dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 rawAmount) returns(bool)
func (*COMPSession) TransferFrom ¶
func (_COMP *COMPSession) TransferFrom(src common.Address, dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 rawAmount) returns(bool)
type COMPTransactor ¶
type COMPTransactor struct {
// contains filtered or unexported fields
}
COMPTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCOMPTransactor ¶
func NewCOMPTransactor(address common.Address, transactor bind.ContractTransactor) (*COMPTransactor, error)
NewCOMPTransactor creates a new write-only instance of COMP, bound to a specific deployed contract.
func (*COMPTransactor) Approve ¶
func (_COMP *COMPTransactor) Approve(opts *bind.TransactOpts, spender common.Address, rawAmount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 rawAmount) returns(bool)
func (*COMPTransactor) Delegate ¶
func (_COMP *COMPTransactor) Delegate(opts *bind.TransactOpts, delegatee common.Address) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.
Solidity: function delegate(address delegatee) returns()
func (*COMPTransactor) DelegateBySig ¶
func (_COMP *COMPTransactor) DelegateBySig(opts *bind.TransactOpts, delegatee common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
DelegateBySig is a paid mutator transaction binding the contract method 0xc3cda520.
Solidity: function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) returns()
func (*COMPTransactor) Transfer ¶
func (_COMP *COMPTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 rawAmount) returns(bool)
func (*COMPTransactor) TransferFrom ¶
func (_COMP *COMPTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 rawAmount) returns(bool)
type COMPTransactorRaw ¶
type COMPTransactorRaw struct {
Contract *COMPTransactor // Generic write-only contract binding to access the raw methods on
}
COMPTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*COMPTransactorRaw) Transact ¶
func (_COMP *COMPTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*COMPTransactorRaw) Transfer ¶
func (_COMP *COMPTransactorRaw) 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 COMPTransactorSession ¶
type COMPTransactorSession struct { Contract *COMPTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
COMPTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*COMPTransactorSession) Approve ¶
func (_COMP *COMPTransactorSession) Approve(spender common.Address, rawAmount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 rawAmount) returns(bool)
func (*COMPTransactorSession) Delegate ¶
func (_COMP *COMPTransactorSession) Delegate(delegatee common.Address) (*types.Transaction, error)
Delegate is a paid mutator transaction binding the contract method 0x5c19a95c.
Solidity: function delegate(address delegatee) returns()
func (*COMPTransactorSession) DelegateBySig ¶
func (_COMP *COMPTransactorSession) DelegateBySig(delegatee common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
DelegateBySig is a paid mutator transaction binding the contract method 0xc3cda520.
Solidity: function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) returns()
func (*COMPTransactorSession) Transfer ¶
func (_COMP *COMPTransactorSession) Transfer(dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 rawAmount) returns(bool)
func (*COMPTransactorSession) TransferFrom ¶
func (_COMP *COMPTransactorSession) TransferFrom(src common.Address, dst common.Address, rawAmount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 rawAmount) returns(bool)
type COMPTransfer ¶
type COMPTransfer struct { From common.Address To common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
COMPTransfer represents a Transfer event raised by the COMP contract.
type COMPTransferIterator ¶
type COMPTransferIterator struct { Event *COMPTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
COMPTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the COMP contract.
func (*COMPTransferIterator) Close ¶
func (it *COMPTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*COMPTransferIterator) Error ¶
func (it *COMPTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*COMPTransferIterator) Next ¶
func (it *COMPTransferIterator) 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 DelegateChanged ¶
type DelegateChanged struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Delegator []byte `protobuf:"bytes,2,opt,name=Delegator,proto3" json:"Delegator,omitempty"` // address FromDelegate []byte `protobuf:"bytes,3,opt,name=FromDelegate,proto3" json:"FromDelegate,omitempty"` // address ToDelegate []byte `protobuf:"bytes,4,opt,name=ToDelegate,proto3" json:"ToDelegate,omitempty"` // address // contains filtered or unexported fields }
func (*DelegateChanged) Descriptor
deprecated
func (*DelegateChanged) Descriptor() ([]byte, []int)
Deprecated: Use DelegateChanged.ProtoReflect.Descriptor instead.
func (*DelegateChanged) GetDelegator ¶
func (x *DelegateChanged) GetDelegator() []byte
func (*DelegateChanged) GetFromDelegate ¶
func (x *DelegateChanged) GetFromDelegate() []byte
func (*DelegateChanged) GetToDelegate ¶
func (x *DelegateChanged) GetToDelegate() []byte
func (*DelegateChanged) GetTs ¶
func (x *DelegateChanged) GetTs() *timestamppb.Timestamp
func (*DelegateChanged) ProtoMessage ¶
func (*DelegateChanged) ProtoMessage()
func (*DelegateChanged) ProtoReflect ¶
func (x *DelegateChanged) ProtoReflect() protoreflect.Message
func (*DelegateChanged) Reset ¶
func (x *DelegateChanged) Reset()
func (*DelegateChanged) String ¶
func (x *DelegateChanged) String() string
type DelegateVotesChanged ¶
type DelegateVotesChanged struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Delegate []byte `protobuf:"bytes,2,opt,name=Delegate,proto3" json:"Delegate,omitempty"` // address PreviousBalance []byte `protobuf:"bytes,3,opt,name=PreviousBalance,proto3" json:"PreviousBalance,omitempty"` // uint256 NewBalance []byte `protobuf:"bytes,4,opt,name=NewBalance,proto3" json:"NewBalance,omitempty"` // uint256 // contains filtered or unexported fields }
func (*DelegateVotesChanged) Descriptor
deprecated
func (*DelegateVotesChanged) Descriptor() ([]byte, []int)
Deprecated: Use DelegateVotesChanged.ProtoReflect.Descriptor instead.
func (*DelegateVotesChanged) GetDelegate ¶
func (x *DelegateVotesChanged) GetDelegate() []byte
func (*DelegateVotesChanged) GetNewBalance ¶
func (x *DelegateVotesChanged) GetNewBalance() []byte
func (*DelegateVotesChanged) GetPreviousBalance ¶
func (x *DelegateVotesChanged) GetPreviousBalance() []byte
func (*DelegateVotesChanged) GetTs ¶
func (x *DelegateVotesChanged) GetTs() *timestamppb.Timestamp
func (*DelegateVotesChanged) ProtoMessage ¶
func (*DelegateVotesChanged) ProtoMessage()
func (*DelegateVotesChanged) ProtoReflect ¶
func (x *DelegateVotesChanged) ProtoReflect() protoreflect.Message
func (*DelegateVotesChanged) Reset ¶
func (x *DelegateVotesChanged) Reset()
func (*DelegateVotesChanged) String ¶
func (x *DelegateVotesChanged) 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 Amount []byte `protobuf:"bytes,4,opt,name=Amount,proto3" json:"Amount,omitempty"` // uint256 // contains filtered or unexported fields }
func (*Transfer) Descriptor
deprecated
func (*Transfer) GetTs ¶
func (x *Transfer) GetTs() *timestamppb.Timestamp
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
func (*Transfer) ProtoReflect ¶
func (x *Transfer) ProtoReflect() protoreflect.Message