contracts

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BeaconDepositABI = "" /* 1613-byte string literal not displayed */

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

Variables

View Source
var SnapshotDelegationABI = SnapshotDelegationMetaData.ABI

SnapshotDelegationABI is the input ABI used to generate the binding from. Deprecated: Use SnapshotDelegationMetaData.ABI instead.

View Source
var SnapshotDelegationMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"}],\"name\":\"ClearDelegate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"}],\"name\":\"SetDelegate\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"clearDelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"delegation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"}],\"name\":\"setDelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

SnapshotDelegationMetaData contains all meta data concerning the SnapshotDelegation contract.

Functions

This section is empty.

Types

type BeaconDeposit

type BeaconDeposit struct {
	BeaconDepositCaller     // Read-only binding to the contract
	BeaconDepositTransactor // Write-only binding to the contract
	BeaconDepositFilterer   // Log filterer for contract events
}

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

func NewBeaconDeposit

func NewBeaconDeposit(address common.Address, backend bind.ContractBackend) (*BeaconDeposit, error)

NewBeaconDeposit creates a new instance of BeaconDeposit, bound to a specific deployed contract.

type BeaconDepositCaller

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

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

func NewBeaconDepositCaller

func NewBeaconDepositCaller(address common.Address, caller bind.ContractCaller) (*BeaconDepositCaller, error)

NewBeaconDepositCaller creates a new read-only instance of BeaconDeposit, bound to a specific deployed contract.

func (*BeaconDepositCaller) GetDepositCount

func (_BeaconDeposit *BeaconDepositCaller) GetDepositCount(opts *bind.CallOpts) ([]byte, error)

GetDepositCount is a free data retrieval call binding the contract method 0x621fd130.

Solidity: function get_deposit_count() view returns(bytes)

func (*BeaconDepositCaller) GetDepositRoot

func (_BeaconDeposit *BeaconDepositCaller) GetDepositRoot(opts *bind.CallOpts) ([32]byte, error)

GetDepositRoot is a free data retrieval call binding the contract method 0xc5f2892f.

Solidity: function get_deposit_root() view returns(bytes32)

func (*BeaconDepositCaller) SupportsInterface

func (_BeaconDeposit *BeaconDepositCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)

type BeaconDepositCallerRaw

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

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

func (*BeaconDepositCallerRaw) Call

func (_BeaconDeposit *BeaconDepositCallerRaw) 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 BeaconDepositCallerSession

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

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

func (*BeaconDepositCallerSession) GetDepositCount

func (_BeaconDeposit *BeaconDepositCallerSession) GetDepositCount() ([]byte, error)

GetDepositCount is a free data retrieval call binding the contract method 0x621fd130.

Solidity: function get_deposit_count() view returns(bytes)

func (*BeaconDepositCallerSession) GetDepositRoot

func (_BeaconDeposit *BeaconDepositCallerSession) GetDepositRoot() ([32]byte, error)

GetDepositRoot is a free data retrieval call binding the contract method 0xc5f2892f.

Solidity: function get_deposit_root() view returns(bytes32)

func (*BeaconDepositCallerSession) SupportsInterface

func (_BeaconDeposit *BeaconDepositCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)

type BeaconDepositDepositEvent

type BeaconDepositDepositEvent struct {
	Pubkey                []byte
	WithdrawalCredentials []byte
	Amount                []byte
	Signature             []byte
	Index                 []byte
	Raw                   types.Log // Blockchain specific contextual infos
}

BeaconDepositDepositEvent represents a DepositEvent event raised by the BeaconDeposit contract.

type BeaconDepositDepositEventIterator

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

BeaconDepositDepositEventIterator is returned from FilterDepositEvent and is used to iterate over the raw logs and unpacked data for DepositEvent events raised by the BeaconDeposit contract.

func (*BeaconDepositDepositEventIterator) Close

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

func (*BeaconDepositDepositEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BeaconDepositDepositEventIterator) 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 BeaconDepositFilterer

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

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

func NewBeaconDepositFilterer

func NewBeaconDepositFilterer(address common.Address, filterer bind.ContractFilterer) (*BeaconDepositFilterer, error)

NewBeaconDepositFilterer creates a new log filterer instance of BeaconDeposit, bound to a specific deployed contract.

func (*BeaconDepositFilterer) FilterDepositEvent

func (_BeaconDeposit *BeaconDepositFilterer) FilterDepositEvent(opts *bind.FilterOpts) (*BeaconDepositDepositEventIterator, error)

FilterDepositEvent is a free log retrieval operation binding the contract event 0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5.

Solidity: event DepositEvent(bytes pubkey, bytes withdrawal_credentials, bytes amount, bytes signature, bytes index)

func (*BeaconDepositFilterer) ParseDepositEvent

func (_BeaconDeposit *BeaconDepositFilterer) ParseDepositEvent(log types.Log) (*BeaconDepositDepositEvent, error)

ParseDepositEvent is a log parse operation binding the contract event 0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5.

Solidity: event DepositEvent(bytes pubkey, bytes withdrawal_credentials, bytes amount, bytes signature, bytes index)

func (*BeaconDepositFilterer) WatchDepositEvent

func (_BeaconDeposit *BeaconDepositFilterer) WatchDepositEvent(opts *bind.WatchOpts, sink chan<- *BeaconDepositDepositEvent) (event.Subscription, error)

WatchDepositEvent is a free log subscription operation binding the contract event 0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5.

Solidity: event DepositEvent(bytes pubkey, bytes withdrawal_credentials, bytes amount, bytes signature, bytes index)

type BeaconDepositRaw

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

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

func (*BeaconDepositRaw) Call

func (_BeaconDeposit *BeaconDepositRaw) 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 (*BeaconDepositRaw) Transact

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

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

func (*BeaconDepositRaw) Transfer

func (_BeaconDeposit *BeaconDepositRaw) 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 BeaconDepositSession

type BeaconDepositSession struct {
	Contract     *BeaconDeposit    // 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
}

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

func (*BeaconDepositSession) Deposit

func (_BeaconDeposit *BeaconDepositSession) Deposit(pubkey []byte, withdrawal_credentials []byte, signature []byte, deposit_data_root [32]byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x22895118.

Solidity: function deposit(bytes pubkey, bytes withdrawal_credentials, bytes signature, bytes32 deposit_data_root) payable returns()

func (*BeaconDepositSession) GetDepositCount

func (_BeaconDeposit *BeaconDepositSession) GetDepositCount() ([]byte, error)

GetDepositCount is a free data retrieval call binding the contract method 0x621fd130.

Solidity: function get_deposit_count() view returns(bytes)

func (*BeaconDepositSession) GetDepositRoot

func (_BeaconDeposit *BeaconDepositSession) GetDepositRoot() ([32]byte, error)

GetDepositRoot is a free data retrieval call binding the contract method 0xc5f2892f.

Solidity: function get_deposit_root() view returns(bytes32)

func (*BeaconDepositSession) SupportsInterface

func (_BeaconDeposit *BeaconDepositSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)

type BeaconDepositTransactor

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

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

func NewBeaconDepositTransactor

func NewBeaconDepositTransactor(address common.Address, transactor bind.ContractTransactor) (*BeaconDepositTransactor, error)

NewBeaconDepositTransactor creates a new write-only instance of BeaconDeposit, bound to a specific deployed contract.

func (*BeaconDepositTransactor) Deposit

func (_BeaconDeposit *BeaconDepositTransactor) Deposit(opts *bind.TransactOpts, pubkey []byte, withdrawal_credentials []byte, signature []byte, deposit_data_root [32]byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x22895118.

Solidity: function deposit(bytes pubkey, bytes withdrawal_credentials, bytes signature, bytes32 deposit_data_root) payable returns()

type BeaconDepositTransactorRaw

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

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

func (*BeaconDepositTransactorRaw) Transact

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

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

func (*BeaconDepositTransactorRaw) Transfer

func (_BeaconDeposit *BeaconDepositTransactorRaw) 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 BeaconDepositTransactorSession

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

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

func (*BeaconDepositTransactorSession) Deposit

func (_BeaconDeposit *BeaconDepositTransactorSession) Deposit(pubkey []byte, withdrawal_credentials []byte, signature []byte, deposit_data_root [32]byte) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x22895118.

Solidity: function deposit(bytes pubkey, bytes withdrawal_credentials, bytes signature, bytes32 deposit_data_root) payable returns()

type SnapshotDelegation added in v1.4.2

type SnapshotDelegation struct {
	SnapshotDelegationCaller     // Read-only binding to the contract
	SnapshotDelegationTransactor // Write-only binding to the contract
	SnapshotDelegationFilterer   // Log filterer for contract events
}

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

func NewSnapshotDelegation added in v1.4.2

func NewSnapshotDelegation(address common.Address, backend bind.ContractBackend) (*SnapshotDelegation, error)

NewSnapshotDelegation creates a new instance of SnapshotDelegation, bound to a specific deployed contract.

type SnapshotDelegationCaller added in v1.4.2

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

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

func NewSnapshotDelegationCaller added in v1.4.2

func NewSnapshotDelegationCaller(address common.Address, caller bind.ContractCaller) (*SnapshotDelegationCaller, error)

NewSnapshotDelegationCaller creates a new read-only instance of SnapshotDelegation, bound to a specific deployed contract.

func (*SnapshotDelegationCaller) Delegation added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationCaller) Delegation(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (common.Address, error)

Delegation is a free data retrieval call binding the contract method 0x74c6c454.

Solidity: function delegation(address , bytes32 ) view returns(address)

type SnapshotDelegationCallerRaw added in v1.4.2

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

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

func (*SnapshotDelegationCallerRaw) Call added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationCallerRaw) 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 SnapshotDelegationCallerSession added in v1.4.2

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

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

func (*SnapshotDelegationCallerSession) Delegation added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationCallerSession) Delegation(arg0 common.Address, arg1 [32]byte) (common.Address, error)

Delegation is a free data retrieval call binding the contract method 0x74c6c454.

Solidity: function delegation(address , bytes32 ) view returns(address)

type SnapshotDelegationClearDelegate added in v1.4.2

type SnapshotDelegationClearDelegate struct {
	Delegator common.Address
	Id        [32]byte
	Delegate  common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

SnapshotDelegationClearDelegate represents a ClearDelegate event raised by the SnapshotDelegation contract.

type SnapshotDelegationClearDelegateIterator added in v1.4.2

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

SnapshotDelegationClearDelegateIterator is returned from FilterClearDelegate and is used to iterate over the raw logs and unpacked data for ClearDelegate events raised by the SnapshotDelegation contract.

func (*SnapshotDelegationClearDelegateIterator) Close added in v1.4.2

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

func (*SnapshotDelegationClearDelegateIterator) Error added in v1.4.2

Error returns any retrieval or parsing error occurred during filtering.

func (*SnapshotDelegationClearDelegateIterator) Next added in v1.4.2

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 SnapshotDelegationFilterer added in v1.4.2

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

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

func NewSnapshotDelegationFilterer added in v1.4.2

func NewSnapshotDelegationFilterer(address common.Address, filterer bind.ContractFilterer) (*SnapshotDelegationFilterer, error)

NewSnapshotDelegationFilterer creates a new log filterer instance of SnapshotDelegation, bound to a specific deployed contract.

func (*SnapshotDelegationFilterer) FilterClearDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationFilterer) FilterClearDelegate(opts *bind.FilterOpts, delegator []common.Address, id [][32]byte, delegate []common.Address) (*SnapshotDelegationClearDelegateIterator, error)

FilterClearDelegate is a free log retrieval operation binding the contract event 0x9c4f00c4291262731946e308dc2979a56bd22cce8f95906b975065e96cd5a064.

Solidity: event ClearDelegate(address indexed delegator, bytes32 indexed id, address indexed delegate)

func (*SnapshotDelegationFilterer) FilterSetDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationFilterer) FilterSetDelegate(opts *bind.FilterOpts, delegator []common.Address, id [][32]byte, delegate []common.Address) (*SnapshotDelegationSetDelegateIterator, error)

FilterSetDelegate is a free log retrieval operation binding the contract event 0xa9a7fd460f56bddb880a465a9c3e9730389c70bc53108148f16d55a87a6c468e.

Solidity: event SetDelegate(address indexed delegator, bytes32 indexed id, address indexed delegate)

func (*SnapshotDelegationFilterer) ParseClearDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationFilterer) ParseClearDelegate(log types.Log) (*SnapshotDelegationClearDelegate, error)

ParseClearDelegate is a log parse operation binding the contract event 0x9c4f00c4291262731946e308dc2979a56bd22cce8f95906b975065e96cd5a064.

Solidity: event ClearDelegate(address indexed delegator, bytes32 indexed id, address indexed delegate)

func (*SnapshotDelegationFilterer) ParseSetDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationFilterer) ParseSetDelegate(log types.Log) (*SnapshotDelegationSetDelegate, error)

ParseSetDelegate is a log parse operation binding the contract event 0xa9a7fd460f56bddb880a465a9c3e9730389c70bc53108148f16d55a87a6c468e.

Solidity: event SetDelegate(address indexed delegator, bytes32 indexed id, address indexed delegate)

func (*SnapshotDelegationFilterer) WatchClearDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationFilterer) WatchClearDelegate(opts *bind.WatchOpts, sink chan<- *SnapshotDelegationClearDelegate, delegator []common.Address, id [][32]byte, delegate []common.Address) (event.Subscription, error)

WatchClearDelegate is a free log subscription operation binding the contract event 0x9c4f00c4291262731946e308dc2979a56bd22cce8f95906b975065e96cd5a064.

Solidity: event ClearDelegate(address indexed delegator, bytes32 indexed id, address indexed delegate)

func (*SnapshotDelegationFilterer) WatchSetDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationFilterer) WatchSetDelegate(opts *bind.WatchOpts, sink chan<- *SnapshotDelegationSetDelegate, delegator []common.Address, id [][32]byte, delegate []common.Address) (event.Subscription, error)

WatchSetDelegate is a free log subscription operation binding the contract event 0xa9a7fd460f56bddb880a465a9c3e9730389c70bc53108148f16d55a87a6c468e.

Solidity: event SetDelegate(address indexed delegator, bytes32 indexed id, address indexed delegate)

type SnapshotDelegationRaw added in v1.4.2

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

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

func (*SnapshotDelegationRaw) Call added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationRaw) 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 (*SnapshotDelegationRaw) Transact added in v1.4.2

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

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

func (*SnapshotDelegationRaw) Transfer added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationRaw) 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 SnapshotDelegationSession added in v1.4.2

type SnapshotDelegationSession struct {
	Contract     *SnapshotDelegation // 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
}

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

func (*SnapshotDelegationSession) ClearDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationSession) ClearDelegate(id [32]byte) (*types.Transaction, error)

ClearDelegate is a paid mutator transaction binding the contract method 0xf0bedbe2.

Solidity: function clearDelegate(bytes32 id) returns()

func (*SnapshotDelegationSession) Delegation added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationSession) Delegation(arg0 common.Address, arg1 [32]byte) (common.Address, error)

Delegation is a free data retrieval call binding the contract method 0x74c6c454.

Solidity: function delegation(address , bytes32 ) view returns(address)

func (*SnapshotDelegationSession) SetDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationSession) SetDelegate(id [32]byte, delegate common.Address) (*types.Transaction, error)

SetDelegate is a paid mutator transaction binding the contract method 0xbd86e508.

Solidity: function setDelegate(bytes32 id, address delegate) returns()

type SnapshotDelegationSetDelegate added in v1.4.2

type SnapshotDelegationSetDelegate struct {
	Delegator common.Address
	Id        [32]byte
	Delegate  common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

SnapshotDelegationSetDelegate represents a SetDelegate event raised by the SnapshotDelegation contract.

type SnapshotDelegationSetDelegateIterator added in v1.4.2

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

SnapshotDelegationSetDelegateIterator is returned from FilterSetDelegate and is used to iterate over the raw logs and unpacked data for SetDelegate events raised by the SnapshotDelegation contract.

func (*SnapshotDelegationSetDelegateIterator) Close added in v1.4.2

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

func (*SnapshotDelegationSetDelegateIterator) Error added in v1.4.2

Error returns any retrieval or parsing error occurred during filtering.

func (*SnapshotDelegationSetDelegateIterator) Next added in v1.4.2

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 SnapshotDelegationTransactor added in v1.4.2

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

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

func NewSnapshotDelegationTransactor added in v1.4.2

func NewSnapshotDelegationTransactor(address common.Address, transactor bind.ContractTransactor) (*SnapshotDelegationTransactor, error)

NewSnapshotDelegationTransactor creates a new write-only instance of SnapshotDelegation, bound to a specific deployed contract.

func (*SnapshotDelegationTransactor) ClearDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationTransactor) ClearDelegate(opts *bind.TransactOpts, id [32]byte) (*types.Transaction, error)

ClearDelegate is a paid mutator transaction binding the contract method 0xf0bedbe2.

Solidity: function clearDelegate(bytes32 id) returns()

func (*SnapshotDelegationTransactor) SetDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationTransactor) SetDelegate(opts *bind.TransactOpts, id [32]byte, delegate common.Address) (*types.Transaction, error)

SetDelegate is a paid mutator transaction binding the contract method 0xbd86e508.

Solidity: function setDelegate(bytes32 id, address delegate) returns()

type SnapshotDelegationTransactorRaw added in v1.4.2

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

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

func (*SnapshotDelegationTransactorRaw) Transact added in v1.4.2

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

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

func (*SnapshotDelegationTransactorRaw) Transfer added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationTransactorRaw) 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 SnapshotDelegationTransactorSession added in v1.4.2

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

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

func (*SnapshotDelegationTransactorSession) ClearDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationTransactorSession) ClearDelegate(id [32]byte) (*types.Transaction, error)

ClearDelegate is a paid mutator transaction binding the contract method 0xf0bedbe2.

Solidity: function clearDelegate(bytes32 id) returns()

func (*SnapshotDelegationTransactorSession) SetDelegate added in v1.4.2

func (_SnapshotDelegation *SnapshotDelegationTransactorSession) SetDelegate(id [32]byte, delegate common.Address) (*types.Transaction, error)

SetDelegate is a paid mutator transaction binding the contract method 0xbd86e508.

Solidity: function setDelegate(bytes32 id, address delegate) returns()

Jump to

Keyboard shortcuts

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