staking

package
v0.1.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StakingABI = StakingMetaData.ABI

StakingABI is the input ABI used to generate the binding from. Deprecated: Use StakingMetaData.ABI instead.

View Source
var StakingBin = StakingMetaData.Bin

StakingBin is the compiled bytecode used for deploying new contracts. Deprecated: Use StakingMetaData.Bin instead.

View Source
var StakingMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Delegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"validatorSrc\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"validatorDest\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Redelegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Undelegated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"delegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"validatorSrc\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"validatorDest\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"redelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"undelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"validator\",\"type\":\"string\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b5061064c806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806303f24de11461005157806331fb67c21461006d5780637dd0209d146100895780638dfc8897146100a5575b600080fd5b61006b6004803603810190610066919061034d565b6100c1565b005b610087600480360381019061008291906103a9565b610100565b005b6100a3600480360381019061009e91906103f2565b61013c565b005b6100bf60048036038101906100ba919061034d565b61017e565b005b7fc181d211c1379e7ca130a707f3b1d49177b2c9eaca63f5b1c0fced957bd94d193383836040516100f493929190610555565b60405180910390a15050565b7f271a84b5abc74645a8af43af4da7b3540bb0ac7603fbae9ff8b2e2df548332d03382604051610131929190610593565b60405180910390a150565b7f1e4f99bac1ee5d1d13ed93a8febbb6730c1760e6b40b62f4971ecd57f184c20b3384848460405161017194939291906105c3565b60405180910390a1505050565b7fb6be07748cf5d5075de9024d60c8dadb2346190b734318a49a330774ab1effc63383836040516101b193929190610555565b60405180910390a15050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610224826101db565b810181811067ffffffffffffffff82111715610243576102426101ec565b5b80604052505050565b60006102566101bd565b9050610262828261021b565b919050565b600067ffffffffffffffff821115610282576102816101ec565b5b61028b826101db565b9050602081019050919050565b82818337600083830152505050565b60006102ba6102b584610267565b61024c565b9050828152602081018484840111156102d6576102d56101d6565b5b6102e1848285610298565b509392505050565b600082601f8301126102fe576102fd6101d1565b5b813561030e8482602086016102a7565b91505092915050565b6000819050919050565b61032a81610317565b811461033557600080fd5b50565b60008135905061034781610321565b92915050565b60008060408385031215610364576103636101c7565b5b600083013567ffffffffffffffff811115610382576103816101cc565b5b61038e858286016102e9565b925050602061039f85828601610338565b9150509250929050565b6000602082840312156103bf576103be6101c7565b5b600082013567ffffffffffffffff8111156103dd576103dc6101cc565b5b6103e9848285016102e9565b91505092915050565b60008060006060848603121561040b5761040a6101c7565b5b600084013567ffffffffffffffff811115610429576104286101cc565b5b610435868287016102e9565b935050602084013567ffffffffffffffff811115610456576104556101cc565b5b610462868287016102e9565b925050604061047386828701610338565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104a88261047d565b9050919050565b6104b88161049d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156104f85780820151818401526020810190506104dd565b83811115610507576000848401525b50505050565b6000610518826104be565b61052281856104c9565b93506105328185602086016104da565b61053b816101db565b840191505092915050565b61054f81610317565b82525050565b600060608201905061056a60008301866104af565b818103602083015261057c818561050d565b905061058b6040830184610546565b949350505050565b60006040820190506105a860008301856104af565b81810360208301526105ba818461050d565b90509392505050565b60006080820190506105d860008301876104af565b81810360208301526105ea818661050d565b905081810360408301526105fe818561050d565b905061060d6060830184610546565b9594505050505056fea26469706673582212204ad9fe08bc2cf7c9337302599efc5369362d8c9a6b584a83407d415262a7518d64736f6c634300080a0033",
}

StakingMetaData contains all meta data concerning the Staking contract.

Functions

This section is empty.

Types

type Staking

type Staking struct {
	StakingCaller     // Read-only binding to the contract
	StakingTransactor // Write-only binding to the contract
	StakingFilterer   // Log filterer for contract events
}

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

func DeployStaking

func DeployStaking(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Staking, error)

DeployStaking deploys a new Ethereum contract, binding an instance of Staking to it.

func NewStaking

func NewStaking(address common.Address, backend bind.ContractBackend) (*Staking, error)

NewStaking creates a new instance of Staking, bound to a specific deployed contract.

type StakingCaller

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

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

func NewStakingCaller

func NewStakingCaller(address common.Address, caller bind.ContractCaller) (*StakingCaller, error)

NewStakingCaller creates a new read-only instance of Staking, bound to a specific deployed contract.

type StakingCallerRaw

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

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

func (*StakingCallerRaw) Call

func (_Staking *StakingCallerRaw) 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 StakingCallerSession

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

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

type StakingDelegated

type StakingDelegated struct {
	Delegator common.Address
	Validator string
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingDelegated represents a Delegated event raised by the Staking contract.

type StakingDelegatedIterator

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

StakingDelegatedIterator is returned from FilterDelegated and is used to iterate over the raw logs and unpacked data for Delegated events raised by the Staking contract.

func (*StakingDelegatedIterator) Close

func (it *StakingDelegatedIterator) Close() error

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

func (*StakingDelegatedIterator) Error

func (it *StakingDelegatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingDelegatedIterator) Next

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

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

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

func NewStakingFilterer

func NewStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingFilterer, error)

NewStakingFilterer creates a new log filterer instance of Staking, bound to a specific deployed contract.

func (*StakingFilterer) FilterDelegated

func (_Staking *StakingFilterer) FilterDelegated(opts *bind.FilterOpts) (*StakingDelegatedIterator, error)

FilterDelegated is a free log retrieval operation binding the contract event 0xc181d211c1379e7ca130a707f3b1d49177b2c9eaca63f5b1c0fced957bd94d19.

Solidity: event Delegated(address delegator, string validator, uint256 amount)

func (*StakingFilterer) FilterRedelegated

func (_Staking *StakingFilterer) FilterRedelegated(opts *bind.FilterOpts) (*StakingRedelegatedIterator, error)

FilterRedelegated is a free log retrieval operation binding the contract event 0x1e4f99bac1ee5d1d13ed93a8febbb6730c1760e6b40b62f4971ecd57f184c20b.

Solidity: event Redelegated(address delegator, string validatorSrc, string validatorDest, uint256 amount)

func (*StakingFilterer) FilterUndelegated

func (_Staking *StakingFilterer) FilterUndelegated(opts *bind.FilterOpts) (*StakingUndelegatedIterator, error)

FilterUndelegated is a free log retrieval operation binding the contract event 0xb6be07748cf5d5075de9024d60c8dadb2346190b734318a49a330774ab1effc6.

Solidity: event Undelegated(address delegator, string validator, uint256 amount)

func (*StakingFilterer) FilterWithdrew

func (_Staking *StakingFilterer) FilterWithdrew(opts *bind.FilterOpts) (*StakingWithdrewIterator, error)

FilterWithdrew is a free log retrieval operation binding the contract event 0x271a84b5abc74645a8af43af4da7b3540bb0ac7603fbae9ff8b2e2df548332d0.

Solidity: event Withdrew(address delegator, string validator)

func (*StakingFilterer) ParseDelegated

func (_Staking *StakingFilterer) ParseDelegated(log types.Log) (*StakingDelegated, error)

ParseDelegated is a log parse operation binding the contract event 0xc181d211c1379e7ca130a707f3b1d49177b2c9eaca63f5b1c0fced957bd94d19.

Solidity: event Delegated(address delegator, string validator, uint256 amount)

func (*StakingFilterer) ParseRedelegated

func (_Staking *StakingFilterer) ParseRedelegated(log types.Log) (*StakingRedelegated, error)

ParseRedelegated is a log parse operation binding the contract event 0x1e4f99bac1ee5d1d13ed93a8febbb6730c1760e6b40b62f4971ecd57f184c20b.

Solidity: event Redelegated(address delegator, string validatorSrc, string validatorDest, uint256 amount)

func (*StakingFilterer) ParseUndelegated

func (_Staking *StakingFilterer) ParseUndelegated(log types.Log) (*StakingUndelegated, error)

ParseUndelegated is a log parse operation binding the contract event 0xb6be07748cf5d5075de9024d60c8dadb2346190b734318a49a330774ab1effc6.

Solidity: event Undelegated(address delegator, string validator, uint256 amount)

func (*StakingFilterer) ParseWithdrew

func (_Staking *StakingFilterer) ParseWithdrew(log types.Log) (*StakingWithdrew, error)

ParseWithdrew is a log parse operation binding the contract event 0x271a84b5abc74645a8af43af4da7b3540bb0ac7603fbae9ff8b2e2df548332d0.

Solidity: event Withdrew(address delegator, string validator)

func (*StakingFilterer) WatchDelegated

func (_Staking *StakingFilterer) WatchDelegated(opts *bind.WatchOpts, sink chan<- *StakingDelegated) (event.Subscription, error)

WatchDelegated is a free log subscription operation binding the contract event 0xc181d211c1379e7ca130a707f3b1d49177b2c9eaca63f5b1c0fced957bd94d19.

Solidity: event Delegated(address delegator, string validator, uint256 amount)

func (*StakingFilterer) WatchRedelegated

func (_Staking *StakingFilterer) WatchRedelegated(opts *bind.WatchOpts, sink chan<- *StakingRedelegated) (event.Subscription, error)

WatchRedelegated is a free log subscription operation binding the contract event 0x1e4f99bac1ee5d1d13ed93a8febbb6730c1760e6b40b62f4971ecd57f184c20b.

Solidity: event Redelegated(address delegator, string validatorSrc, string validatorDest, uint256 amount)

func (*StakingFilterer) WatchUndelegated

func (_Staking *StakingFilterer) WatchUndelegated(opts *bind.WatchOpts, sink chan<- *StakingUndelegated) (event.Subscription, error)

WatchUndelegated is a free log subscription operation binding the contract event 0xb6be07748cf5d5075de9024d60c8dadb2346190b734318a49a330774ab1effc6.

Solidity: event Undelegated(address delegator, string validator, uint256 amount)

func (*StakingFilterer) WatchWithdrew

func (_Staking *StakingFilterer) WatchWithdrew(opts *bind.WatchOpts, sink chan<- *StakingWithdrew) (event.Subscription, error)

WatchWithdrew is a free log subscription operation binding the contract event 0x271a84b5abc74645a8af43af4da7b3540bb0ac7603fbae9ff8b2e2df548332d0.

Solidity: event Withdrew(address delegator, string validator)

type StakingRaw

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

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

func (*StakingRaw) Call

func (_Staking *StakingRaw) 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 (*StakingRaw) Transact

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

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

func (*StakingRaw) Transfer

func (_Staking *StakingRaw) 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 StakingRedelegated

type StakingRedelegated struct {
	Delegator     common.Address
	ValidatorSrc  string
	ValidatorDest string
	Amount        *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

StakingRedelegated represents a Redelegated event raised by the Staking contract.

type StakingRedelegatedIterator

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

StakingRedelegatedIterator is returned from FilterRedelegated and is used to iterate over the raw logs and unpacked data for Redelegated events raised by the Staking contract.

func (*StakingRedelegatedIterator) Close

func (it *StakingRedelegatedIterator) Close() error

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

func (*StakingRedelegatedIterator) Error

func (it *StakingRedelegatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingRedelegatedIterator) Next

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

type StakingSession struct {
	Contract     *Staking          // 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
}

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

func (*StakingSession) Delegate

func (_Staking *StakingSession) Delegate(validator string, amount *big.Int) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x03f24de1.

Solidity: function delegate(string validator, uint256 amount) returns()

func (*StakingSession) Redelegate

func (_Staking *StakingSession) Redelegate(validatorSrc string, validatorDest string, amount *big.Int) (*types.Transaction, error)

Redelegate is a paid mutator transaction binding the contract method 0x7dd0209d.

Solidity: function redelegate(string validatorSrc, string validatorDest, uint256 amount) returns()

func (*StakingSession) Undelegate

func (_Staking *StakingSession) Undelegate(validator string, amount *big.Int) (*types.Transaction, error)

Undelegate is a paid mutator transaction binding the contract method 0x8dfc8897.

Solidity: function undelegate(string validator, uint256 amount) returns()

func (*StakingSession) Withdraw

func (_Staking *StakingSession) Withdraw(validator string) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x31fb67c2.

Solidity: function withdraw(string validator) returns()

type StakingTransactor

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

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

func NewStakingTransactor

func NewStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingTransactor, error)

NewStakingTransactor creates a new write-only instance of Staking, bound to a specific deployed contract.

func (*StakingTransactor) Delegate

func (_Staking *StakingTransactor) Delegate(opts *bind.TransactOpts, validator string, amount *big.Int) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x03f24de1.

Solidity: function delegate(string validator, uint256 amount) returns()

func (*StakingTransactor) Redelegate

func (_Staking *StakingTransactor) Redelegate(opts *bind.TransactOpts, validatorSrc string, validatorDest string, amount *big.Int) (*types.Transaction, error)

Redelegate is a paid mutator transaction binding the contract method 0x7dd0209d.

Solidity: function redelegate(string validatorSrc, string validatorDest, uint256 amount) returns()

func (*StakingTransactor) Undelegate

func (_Staking *StakingTransactor) Undelegate(opts *bind.TransactOpts, validator string, amount *big.Int) (*types.Transaction, error)

Undelegate is a paid mutator transaction binding the contract method 0x8dfc8897.

Solidity: function undelegate(string validator, uint256 amount) returns()

func (*StakingTransactor) Withdraw

func (_Staking *StakingTransactor) Withdraw(opts *bind.TransactOpts, validator string) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x31fb67c2.

Solidity: function withdraw(string validator) returns()

type StakingTransactorRaw

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

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

func (*StakingTransactorRaw) Transact

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

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

func (*StakingTransactorRaw) Transfer

func (_Staking *StakingTransactorRaw) 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 StakingTransactorSession

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

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

func (*StakingTransactorSession) Delegate

func (_Staking *StakingTransactorSession) Delegate(validator string, amount *big.Int) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x03f24de1.

Solidity: function delegate(string validator, uint256 amount) returns()

func (*StakingTransactorSession) Redelegate

func (_Staking *StakingTransactorSession) Redelegate(validatorSrc string, validatorDest string, amount *big.Int) (*types.Transaction, error)

Redelegate is a paid mutator transaction binding the contract method 0x7dd0209d.

Solidity: function redelegate(string validatorSrc, string validatorDest, uint256 amount) returns()

func (*StakingTransactorSession) Undelegate

func (_Staking *StakingTransactorSession) Undelegate(validator string, amount *big.Int) (*types.Transaction, error)

Undelegate is a paid mutator transaction binding the contract method 0x8dfc8897.

Solidity: function undelegate(string validator, uint256 amount) returns()

func (*StakingTransactorSession) Withdraw

func (_Staking *StakingTransactorSession) Withdraw(validator string) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x31fb67c2.

Solidity: function withdraw(string validator) returns()

type StakingUndelegated

type StakingUndelegated struct {
	Delegator common.Address
	Validator string
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingUndelegated represents a Undelegated event raised by the Staking contract.

type StakingUndelegatedIterator

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

StakingUndelegatedIterator is returned from FilterUndelegated and is used to iterate over the raw logs and unpacked data for Undelegated events raised by the Staking contract.

func (*StakingUndelegatedIterator) Close

func (it *StakingUndelegatedIterator) Close() error

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

func (*StakingUndelegatedIterator) Error

func (it *StakingUndelegatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingUndelegatedIterator) Next

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

type StakingWithdrew struct {
	Delegator common.Address
	Validator string
	Raw       types.Log // Blockchain specific contextual infos
}

StakingWithdrew represents a Withdrew event raised by the Staking contract.

type StakingWithdrewIterator

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

StakingWithdrewIterator is returned from FilterWithdrew and is used to iterate over the raw logs and unpacked data for Withdrew events raised by the Staking contract.

func (*StakingWithdrewIterator) Close

func (it *StakingWithdrewIterator) Close() error

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

func (*StakingWithdrewIterator) Error

func (it *StakingWithdrewIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingWithdrewIterator) Next

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