stakingbindings

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StakingbindingsABI = "" /* 6208-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Stakingbindings

type Stakingbindings struct {
	StakingbindingsCaller     // Read-only binding to the contract
	StakingbindingsTransactor // Write-only binding to the contract
	StakingbindingsFilterer   // Log filterer for contract events
}

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

func NewStakingbindings

func NewStakingbindings(address common.Address, backend bind.ContractBackend) (*Stakingbindings, error)

NewStakingbindings creates a new instance of Stakingbindings, bound to a specific deployed contract.

type StakingbindingsCaller

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

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

func NewStakingbindingsCaller

func NewStakingbindingsCaller(address common.Address, caller bind.ContractCaller) (*StakingbindingsCaller, error)

NewStakingbindingsCaller creates a new read-only instance of Stakingbindings, bound to a specific deployed contract.

func (*StakingbindingsCaller) BalanceOf

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

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

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

func (*StakingbindingsCaller) Earned

func (_Stakingbindings *StakingbindingsCaller) Earned(opts *bind.CallOpts, account common.Address) (*big.Int, error)

Earned is a free data retrieval call binding the contract method 0x008cc262.

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

func (*StakingbindingsCaller) GetRewardForDuration

func (_Stakingbindings *StakingbindingsCaller) GetRewardForDuration(opts *bind.CallOpts) (*big.Int, error)

GetRewardForDuration is a free data retrieval call binding the contract method 0x1c1f78eb.

Solidity: function getRewardForDuration() view returns(uint256)

func (*StakingbindingsCaller) LastTimeRewardApplicable

func (_Stakingbindings *StakingbindingsCaller) LastTimeRewardApplicable(opts *bind.CallOpts) (*big.Int, error)

LastTimeRewardApplicable is a free data retrieval call binding the contract method 0x80faa57d.

Solidity: function lastTimeRewardApplicable() view returns(uint256)

func (*StakingbindingsCaller) LastUpdateTime

func (_Stakingbindings *StakingbindingsCaller) LastUpdateTime(opts *bind.CallOpts) (*big.Int, error)

LastUpdateTime is a free data retrieval call binding the contract method 0xc8f33c91.

Solidity: function lastUpdateTime() view returns(uint256)

func (*StakingbindingsCaller) PeriodFinish

func (_Stakingbindings *StakingbindingsCaller) PeriodFinish(opts *bind.CallOpts) (*big.Int, error)

PeriodFinish is a free data retrieval call binding the contract method 0xebe2b12b.

Solidity: function periodFinish() view returns(uint256)

func (*StakingbindingsCaller) RewardPerToken

func (_Stakingbindings *StakingbindingsCaller) RewardPerToken(opts *bind.CallOpts) (*big.Int, error)

RewardPerToken is a free data retrieval call binding the contract method 0xcd3daf9d.

Solidity: function rewardPerToken() view returns(uint256)

func (*StakingbindingsCaller) RewardPerTokenStored

func (_Stakingbindings *StakingbindingsCaller) RewardPerTokenStored(opts *bind.CallOpts) (*big.Int, error)

RewardPerTokenStored is a free data retrieval call binding the contract method 0xdf136d65.

Solidity: function rewardPerTokenStored() view returns(uint256)

func (*StakingbindingsCaller) RewardRate

func (_Stakingbindings *StakingbindingsCaller) RewardRate(opts *bind.CallOpts) (*big.Int, error)

RewardRate is a free data retrieval call binding the contract method 0x7b0a47ee.

Solidity: function rewardRate() view returns(uint256)

func (*StakingbindingsCaller) Rewards

func (_Stakingbindings *StakingbindingsCaller) Rewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Rewards is a free data retrieval call binding the contract method 0x0700037d.

Solidity: function rewards(address ) view returns(uint256)

func (*StakingbindingsCaller) RewardsDistribution

func (_Stakingbindings *StakingbindingsCaller) RewardsDistribution(opts *bind.CallOpts) (common.Address, error)

RewardsDistribution is a free data retrieval call binding the contract method 0x3fc6df6e.

Solidity: function rewardsDistribution() view returns(address)

func (*StakingbindingsCaller) RewardsDuration

func (_Stakingbindings *StakingbindingsCaller) RewardsDuration(opts *bind.CallOpts) (*big.Int, error)

RewardsDuration is a free data retrieval call binding the contract method 0x386a9525.

Solidity: function rewardsDuration() view returns(uint256)

func (*StakingbindingsCaller) RewardsToken

func (_Stakingbindings *StakingbindingsCaller) RewardsToken(opts *bind.CallOpts) (common.Address, error)

RewardsToken is a free data retrieval call binding the contract method 0xd1af0c7d.

Solidity: function rewardsToken() view returns(address)

func (*StakingbindingsCaller) StakingToken

func (_Stakingbindings *StakingbindingsCaller) StakingToken(opts *bind.CallOpts) (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*StakingbindingsCaller) TotalSupply

func (_Stakingbindings *StakingbindingsCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*StakingbindingsCaller) UserRewardPerTokenPaid

func (_Stakingbindings *StakingbindingsCaller) UserRewardPerTokenPaid(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

UserRewardPerTokenPaid is a free data retrieval call binding the contract method 0x8b876347.

Solidity: function userRewardPerTokenPaid(address ) view returns(uint256)

type StakingbindingsCallerRaw

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

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

func (*StakingbindingsCallerRaw) Call

func (_Stakingbindings *StakingbindingsCallerRaw) 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 StakingbindingsCallerSession

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

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

func (*StakingbindingsCallerSession) BalanceOf

func (_Stakingbindings *StakingbindingsCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*StakingbindingsCallerSession) Earned

func (_Stakingbindings *StakingbindingsCallerSession) Earned(account common.Address) (*big.Int, error)

Earned is a free data retrieval call binding the contract method 0x008cc262.

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

func (*StakingbindingsCallerSession) GetRewardForDuration

func (_Stakingbindings *StakingbindingsCallerSession) GetRewardForDuration() (*big.Int, error)

GetRewardForDuration is a free data retrieval call binding the contract method 0x1c1f78eb.

Solidity: function getRewardForDuration() view returns(uint256)

func (*StakingbindingsCallerSession) LastTimeRewardApplicable

func (_Stakingbindings *StakingbindingsCallerSession) LastTimeRewardApplicable() (*big.Int, error)

LastTimeRewardApplicable is a free data retrieval call binding the contract method 0x80faa57d.

Solidity: function lastTimeRewardApplicable() view returns(uint256)

func (*StakingbindingsCallerSession) LastUpdateTime

func (_Stakingbindings *StakingbindingsCallerSession) LastUpdateTime() (*big.Int, error)

LastUpdateTime is a free data retrieval call binding the contract method 0xc8f33c91.

Solidity: function lastUpdateTime() view returns(uint256)

func (*StakingbindingsCallerSession) PeriodFinish

func (_Stakingbindings *StakingbindingsCallerSession) PeriodFinish() (*big.Int, error)

PeriodFinish is a free data retrieval call binding the contract method 0xebe2b12b.

Solidity: function periodFinish() view returns(uint256)

func (*StakingbindingsCallerSession) RewardPerToken

func (_Stakingbindings *StakingbindingsCallerSession) RewardPerToken() (*big.Int, error)

RewardPerToken is a free data retrieval call binding the contract method 0xcd3daf9d.

Solidity: function rewardPerToken() view returns(uint256)

func (*StakingbindingsCallerSession) RewardPerTokenStored

func (_Stakingbindings *StakingbindingsCallerSession) RewardPerTokenStored() (*big.Int, error)

RewardPerTokenStored is a free data retrieval call binding the contract method 0xdf136d65.

Solidity: function rewardPerTokenStored() view returns(uint256)

func (*StakingbindingsCallerSession) RewardRate

func (_Stakingbindings *StakingbindingsCallerSession) RewardRate() (*big.Int, error)

RewardRate is a free data retrieval call binding the contract method 0x7b0a47ee.

Solidity: function rewardRate() view returns(uint256)

func (*StakingbindingsCallerSession) Rewards

func (_Stakingbindings *StakingbindingsCallerSession) Rewards(arg0 common.Address) (*big.Int, error)

Rewards is a free data retrieval call binding the contract method 0x0700037d.

Solidity: function rewards(address ) view returns(uint256)

func (*StakingbindingsCallerSession) RewardsDistribution

func (_Stakingbindings *StakingbindingsCallerSession) RewardsDistribution() (common.Address, error)

RewardsDistribution is a free data retrieval call binding the contract method 0x3fc6df6e.

Solidity: function rewardsDistribution() view returns(address)

func (*StakingbindingsCallerSession) RewardsDuration

func (_Stakingbindings *StakingbindingsCallerSession) RewardsDuration() (*big.Int, error)

RewardsDuration is a free data retrieval call binding the contract method 0x386a9525.

Solidity: function rewardsDuration() view returns(uint256)

func (*StakingbindingsCallerSession) RewardsToken

func (_Stakingbindings *StakingbindingsCallerSession) RewardsToken() (common.Address, error)

RewardsToken is a free data retrieval call binding the contract method 0xd1af0c7d.

Solidity: function rewardsToken() view returns(address)

func (*StakingbindingsCallerSession) StakingToken

func (_Stakingbindings *StakingbindingsCallerSession) StakingToken() (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*StakingbindingsCallerSession) TotalSupply

func (_Stakingbindings *StakingbindingsCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*StakingbindingsCallerSession) UserRewardPerTokenPaid

func (_Stakingbindings *StakingbindingsCallerSession) UserRewardPerTokenPaid(arg0 common.Address) (*big.Int, error)

UserRewardPerTokenPaid is a free data retrieval call binding the contract method 0x8b876347.

Solidity: function userRewardPerTokenPaid(address ) view returns(uint256)

type StakingbindingsFilterer

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

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

func NewStakingbindingsFilterer

func NewStakingbindingsFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingbindingsFilterer, error)

NewStakingbindingsFilterer creates a new log filterer instance of Stakingbindings, bound to a specific deployed contract.

func (*StakingbindingsFilterer) FilterRecovered

func (_Stakingbindings *StakingbindingsFilterer) FilterRecovered(opts *bind.FilterOpts) (*StakingbindingsRecoveredIterator, error)

FilterRecovered is a free log retrieval operation binding the contract event 0x8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28.

Solidity: event Recovered(address token, uint256 amount)

func (*StakingbindingsFilterer) FilterRewardAdded

func (_Stakingbindings *StakingbindingsFilterer) FilterRewardAdded(opts *bind.FilterOpts) (*StakingbindingsRewardAddedIterator, error)

FilterRewardAdded is a free log retrieval operation binding the contract event 0xde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d.

Solidity: event RewardAdded(uint256 reward)

func (*StakingbindingsFilterer) FilterRewardPaid

func (_Stakingbindings *StakingbindingsFilterer) FilterRewardPaid(opts *bind.FilterOpts, user []common.Address) (*StakingbindingsRewardPaidIterator, error)

FilterRewardPaid is a free log retrieval operation binding the contract event 0xe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486.

Solidity: event RewardPaid(address indexed user, uint256 reward)

func (*StakingbindingsFilterer) FilterRewardsDurationUpdated

func (_Stakingbindings *StakingbindingsFilterer) FilterRewardsDurationUpdated(opts *bind.FilterOpts) (*StakingbindingsRewardsDurationUpdatedIterator, error)

FilterRewardsDurationUpdated is a free log retrieval operation binding the contract event 0xfb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3.

Solidity: event RewardsDurationUpdated(uint256 newDuration)

func (*StakingbindingsFilterer) FilterStaked

func (_Stakingbindings *StakingbindingsFilterer) FilterStaked(opts *bind.FilterOpts, user []common.Address) (*StakingbindingsStakedIterator, error)

FilterStaked is a free log retrieval operation binding the contract event 0x9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d.

Solidity: event Staked(address indexed user, uint256 amount)

func (*StakingbindingsFilterer) FilterWithdrawn

func (_Stakingbindings *StakingbindingsFilterer) FilterWithdrawn(opts *bind.FilterOpts, user []common.Address) (*StakingbindingsWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.

Solidity: event Withdrawn(address indexed user, uint256 amount)

func (*StakingbindingsFilterer) ParseRecovered

func (_Stakingbindings *StakingbindingsFilterer) ParseRecovered(log types.Log) (*StakingbindingsRecovered, error)

ParseRecovered is a log parse operation binding the contract event 0x8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28.

Solidity: event Recovered(address token, uint256 amount)

func (*StakingbindingsFilterer) ParseRewardAdded

func (_Stakingbindings *StakingbindingsFilterer) ParseRewardAdded(log types.Log) (*StakingbindingsRewardAdded, error)

ParseRewardAdded is a log parse operation binding the contract event 0xde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d.

Solidity: event RewardAdded(uint256 reward)

func (*StakingbindingsFilterer) ParseRewardPaid

func (_Stakingbindings *StakingbindingsFilterer) ParseRewardPaid(log types.Log) (*StakingbindingsRewardPaid, error)

ParseRewardPaid is a log parse operation binding the contract event 0xe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486.

Solidity: event RewardPaid(address indexed user, uint256 reward)

func (*StakingbindingsFilterer) ParseRewardsDurationUpdated

func (_Stakingbindings *StakingbindingsFilterer) ParseRewardsDurationUpdated(log types.Log) (*StakingbindingsRewardsDurationUpdated, error)

ParseRewardsDurationUpdated is a log parse operation binding the contract event 0xfb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3.

Solidity: event RewardsDurationUpdated(uint256 newDuration)

func (*StakingbindingsFilterer) ParseStaked

func (_Stakingbindings *StakingbindingsFilterer) ParseStaked(log types.Log) (*StakingbindingsStaked, error)

ParseStaked is a log parse operation binding the contract event 0x9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d.

Solidity: event Staked(address indexed user, uint256 amount)

func (*StakingbindingsFilterer) ParseWithdrawn

func (_Stakingbindings *StakingbindingsFilterer) ParseWithdrawn(log types.Log) (*StakingbindingsWithdrawn, error)

ParseWithdrawn is a log parse operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.

Solidity: event Withdrawn(address indexed user, uint256 amount)

func (*StakingbindingsFilterer) WatchRecovered

func (_Stakingbindings *StakingbindingsFilterer) WatchRecovered(opts *bind.WatchOpts, sink chan<- *StakingbindingsRecovered) (event.Subscription, error)

WatchRecovered is a free log subscription operation binding the contract event 0x8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28.

Solidity: event Recovered(address token, uint256 amount)

func (*StakingbindingsFilterer) WatchRewardAdded

func (_Stakingbindings *StakingbindingsFilterer) WatchRewardAdded(opts *bind.WatchOpts, sink chan<- *StakingbindingsRewardAdded) (event.Subscription, error)

WatchRewardAdded is a free log subscription operation binding the contract event 0xde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d.

Solidity: event RewardAdded(uint256 reward)

func (*StakingbindingsFilterer) WatchRewardPaid

func (_Stakingbindings *StakingbindingsFilterer) WatchRewardPaid(opts *bind.WatchOpts, sink chan<- *StakingbindingsRewardPaid, user []common.Address) (event.Subscription, error)

WatchRewardPaid is a free log subscription operation binding the contract event 0xe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486.

Solidity: event RewardPaid(address indexed user, uint256 reward)

func (*StakingbindingsFilterer) WatchRewardsDurationUpdated

func (_Stakingbindings *StakingbindingsFilterer) WatchRewardsDurationUpdated(opts *bind.WatchOpts, sink chan<- *StakingbindingsRewardsDurationUpdated) (event.Subscription, error)

WatchRewardsDurationUpdated is a free log subscription operation binding the contract event 0xfb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3.

Solidity: event RewardsDurationUpdated(uint256 newDuration)

func (*StakingbindingsFilterer) WatchStaked

func (_Stakingbindings *StakingbindingsFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *StakingbindingsStaked, user []common.Address) (event.Subscription, error)

WatchStaked is a free log subscription operation binding the contract event 0x9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d.

Solidity: event Staked(address indexed user, uint256 amount)

func (*StakingbindingsFilterer) WatchWithdrawn

func (_Stakingbindings *StakingbindingsFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *StakingbindingsWithdrawn, user []common.Address) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0x7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5.

Solidity: event Withdrawn(address indexed user, uint256 amount)

type StakingbindingsRaw

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

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

func (*StakingbindingsRaw) Call

func (_Stakingbindings *StakingbindingsRaw) 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 (*StakingbindingsRaw) Transact

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

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

func (*StakingbindingsRaw) Transfer

func (_Stakingbindings *StakingbindingsRaw) 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 StakingbindingsRecovered

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

StakingbindingsRecovered represents a Recovered event raised by the Stakingbindings contract.

type StakingbindingsRecoveredIterator

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

StakingbindingsRecoveredIterator is returned from FilterRecovered and is used to iterate over the raw logs and unpacked data for Recovered events raised by the Stakingbindings contract.

func (*StakingbindingsRecoveredIterator) Close

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

func (*StakingbindingsRecoveredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingbindingsRecoveredIterator) 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 StakingbindingsRewardAdded

type StakingbindingsRewardAdded struct {
	Reward *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StakingbindingsRewardAdded represents a RewardAdded event raised by the Stakingbindings contract.

type StakingbindingsRewardAddedIterator

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

StakingbindingsRewardAddedIterator is returned from FilterRewardAdded and is used to iterate over the raw logs and unpacked data for RewardAdded events raised by the Stakingbindings contract.

func (*StakingbindingsRewardAddedIterator) Close

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

func (*StakingbindingsRewardAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingbindingsRewardAddedIterator) 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 StakingbindingsRewardPaid

type StakingbindingsRewardPaid struct {
	User   common.Address
	Reward *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

StakingbindingsRewardPaid represents a RewardPaid event raised by the Stakingbindings contract.

type StakingbindingsRewardPaidIterator

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

StakingbindingsRewardPaidIterator is returned from FilterRewardPaid and is used to iterate over the raw logs and unpacked data for RewardPaid events raised by the Stakingbindings contract.

func (*StakingbindingsRewardPaidIterator) Close

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

func (*StakingbindingsRewardPaidIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingbindingsRewardPaidIterator) 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 StakingbindingsRewardsDurationUpdated

type StakingbindingsRewardsDurationUpdated struct {
	NewDuration *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

StakingbindingsRewardsDurationUpdated represents a RewardsDurationUpdated event raised by the Stakingbindings contract.

type StakingbindingsRewardsDurationUpdatedIterator

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

StakingbindingsRewardsDurationUpdatedIterator is returned from FilterRewardsDurationUpdated and is used to iterate over the raw logs and unpacked data for RewardsDurationUpdated events raised by the Stakingbindings contract.

func (*StakingbindingsRewardsDurationUpdatedIterator) Close

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

func (*StakingbindingsRewardsDurationUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingbindingsRewardsDurationUpdatedIterator) 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 StakingbindingsSession

type StakingbindingsSession struct {
	Contract     *Stakingbindings  // 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
}

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

func (*StakingbindingsSession) BalanceOf

func (_Stakingbindings *StakingbindingsSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*StakingbindingsSession) Earned

func (_Stakingbindings *StakingbindingsSession) Earned(account common.Address) (*big.Int, error)

Earned is a free data retrieval call binding the contract method 0x008cc262.

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

func (*StakingbindingsSession) Exit

func (_Stakingbindings *StakingbindingsSession) Exit() (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.

Solidity: function exit() returns()

func (*StakingbindingsSession) GetReward

func (_Stakingbindings *StakingbindingsSession) GetReward() (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0x3d18b912.

Solidity: function getReward() returns()

func (*StakingbindingsSession) GetRewardForDuration

func (_Stakingbindings *StakingbindingsSession) GetRewardForDuration() (*big.Int, error)

GetRewardForDuration is a free data retrieval call binding the contract method 0x1c1f78eb.

Solidity: function getRewardForDuration() view returns(uint256)

func (*StakingbindingsSession) Initialize

func (_Stakingbindings *StakingbindingsSession) Initialize(stakingToken_ common.Address, rewardsDuration_ *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xcd6dc687.

Solidity: function initialize(address stakingToken_, uint256 rewardsDuration_) returns()

func (*StakingbindingsSession) LastTimeRewardApplicable

func (_Stakingbindings *StakingbindingsSession) LastTimeRewardApplicable() (*big.Int, error)

LastTimeRewardApplicable is a free data retrieval call binding the contract method 0x80faa57d.

Solidity: function lastTimeRewardApplicable() view returns(uint256)

func (*StakingbindingsSession) LastUpdateTime

func (_Stakingbindings *StakingbindingsSession) LastUpdateTime() (*big.Int, error)

LastUpdateTime is a free data retrieval call binding the contract method 0xc8f33c91.

Solidity: function lastUpdateTime() view returns(uint256)

func (*StakingbindingsSession) NotifyRewardAmount

func (_Stakingbindings *StakingbindingsSession) NotifyRewardAmount(reward *big.Int) (*types.Transaction, error)

NotifyRewardAmount is a paid mutator transaction binding the contract method 0x3c6b16ab.

Solidity: function notifyRewardAmount(uint256 reward) returns()

func (*StakingbindingsSession) PeriodFinish

func (_Stakingbindings *StakingbindingsSession) PeriodFinish() (*big.Int, error)

PeriodFinish is a free data retrieval call binding the contract method 0xebe2b12b.

Solidity: function periodFinish() view returns(uint256)

func (*StakingbindingsSession) RecoverERC20

func (_Stakingbindings *StakingbindingsSession) RecoverERC20(tokenAddress common.Address, recipient common.Address) (*types.Transaction, error)

RecoverERC20 is a paid mutator transaction binding the contract method 0x886f039a.

Solidity: function recoverERC20(address tokenAddress, address recipient) returns()

func (*StakingbindingsSession) RewardPerToken

func (_Stakingbindings *StakingbindingsSession) RewardPerToken() (*big.Int, error)

RewardPerToken is a free data retrieval call binding the contract method 0xcd3daf9d.

Solidity: function rewardPerToken() view returns(uint256)

func (*StakingbindingsSession) RewardPerTokenStored

func (_Stakingbindings *StakingbindingsSession) RewardPerTokenStored() (*big.Int, error)

RewardPerTokenStored is a free data retrieval call binding the contract method 0xdf136d65.

Solidity: function rewardPerTokenStored() view returns(uint256)

func (*StakingbindingsSession) RewardRate

func (_Stakingbindings *StakingbindingsSession) RewardRate() (*big.Int, error)

RewardRate is a free data retrieval call binding the contract method 0x7b0a47ee.

Solidity: function rewardRate() view returns(uint256)

func (*StakingbindingsSession) Rewards

func (_Stakingbindings *StakingbindingsSession) Rewards(arg0 common.Address) (*big.Int, error)

Rewards is a free data retrieval call binding the contract method 0x0700037d.

Solidity: function rewards(address ) view returns(uint256)

func (*StakingbindingsSession) RewardsDistribution

func (_Stakingbindings *StakingbindingsSession) RewardsDistribution() (common.Address, error)

RewardsDistribution is a free data retrieval call binding the contract method 0x3fc6df6e.

Solidity: function rewardsDistribution() view returns(address)

func (*StakingbindingsSession) RewardsDuration

func (_Stakingbindings *StakingbindingsSession) RewardsDuration() (*big.Int, error)

RewardsDuration is a free data retrieval call binding the contract method 0x386a9525.

Solidity: function rewardsDuration() view returns(uint256)

func (*StakingbindingsSession) RewardsToken

func (_Stakingbindings *StakingbindingsSession) RewardsToken() (common.Address, error)

RewardsToken is a free data retrieval call binding the contract method 0xd1af0c7d.

Solidity: function rewardsToken() view returns(address)

func (*StakingbindingsSession) SetRewardsDuration

func (_Stakingbindings *StakingbindingsSession) SetRewardsDuration(_rewardsDuration *big.Int) (*types.Transaction, error)

SetRewardsDuration is a paid mutator transaction binding the contract method 0xcc1a378f.

Solidity: function setRewardsDuration(uint256 _rewardsDuration) returns()

func (*StakingbindingsSession) Stake

func (_Stakingbindings *StakingbindingsSession) Stake(amount *big.Int) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0xa694fc3a.

Solidity: function stake(uint256 amount) returns()

func (*StakingbindingsSession) StakingToken

func (_Stakingbindings *StakingbindingsSession) StakingToken() (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*StakingbindingsSession) TotalSupply

func (_Stakingbindings *StakingbindingsSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*StakingbindingsSession) UserRewardPerTokenPaid

func (_Stakingbindings *StakingbindingsSession) UserRewardPerTokenPaid(arg0 common.Address) (*big.Int, error)

UserRewardPerTokenPaid is a free data retrieval call binding the contract method 0x8b876347.

Solidity: function userRewardPerTokenPaid(address ) view returns(uint256)

func (*StakingbindingsSession) Withdraw

func (_Stakingbindings *StakingbindingsSession) Withdraw(amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type StakingbindingsStaked

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

StakingbindingsStaked represents a Staked event raised by the Stakingbindings contract.

type StakingbindingsStakedIterator

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

StakingbindingsStakedIterator is returned from FilterStaked and is used to iterate over the raw logs and unpacked data for Staked events raised by the Stakingbindings contract.

func (*StakingbindingsStakedIterator) Close

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

func (*StakingbindingsStakedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingbindingsStakedIterator) 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 StakingbindingsTransactor

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

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

func NewStakingbindingsTransactor

func NewStakingbindingsTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingbindingsTransactor, error)

NewStakingbindingsTransactor creates a new write-only instance of Stakingbindings, bound to a specific deployed contract.

func (*StakingbindingsTransactor) Exit

func (_Stakingbindings *StakingbindingsTransactor) Exit(opts *bind.TransactOpts) (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.

Solidity: function exit() returns()

func (*StakingbindingsTransactor) GetReward

func (_Stakingbindings *StakingbindingsTransactor) GetReward(opts *bind.TransactOpts) (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0x3d18b912.

Solidity: function getReward() returns()

func (*StakingbindingsTransactor) Initialize

func (_Stakingbindings *StakingbindingsTransactor) Initialize(opts *bind.TransactOpts, stakingToken_ common.Address, rewardsDuration_ *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xcd6dc687.

Solidity: function initialize(address stakingToken_, uint256 rewardsDuration_) returns()

func (*StakingbindingsTransactor) NotifyRewardAmount

func (_Stakingbindings *StakingbindingsTransactor) NotifyRewardAmount(opts *bind.TransactOpts, reward *big.Int) (*types.Transaction, error)

NotifyRewardAmount is a paid mutator transaction binding the contract method 0x3c6b16ab.

Solidity: function notifyRewardAmount(uint256 reward) returns()

func (*StakingbindingsTransactor) RecoverERC20

func (_Stakingbindings *StakingbindingsTransactor) RecoverERC20(opts *bind.TransactOpts, tokenAddress common.Address, recipient common.Address) (*types.Transaction, error)

RecoverERC20 is a paid mutator transaction binding the contract method 0x886f039a.

Solidity: function recoverERC20(address tokenAddress, address recipient) returns()

func (*StakingbindingsTransactor) SetRewardsDuration

func (_Stakingbindings *StakingbindingsTransactor) SetRewardsDuration(opts *bind.TransactOpts, _rewardsDuration *big.Int) (*types.Transaction, error)

SetRewardsDuration is a paid mutator transaction binding the contract method 0xcc1a378f.

Solidity: function setRewardsDuration(uint256 _rewardsDuration) returns()

func (*StakingbindingsTransactor) Stake

func (_Stakingbindings *StakingbindingsTransactor) Stake(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0xa694fc3a.

Solidity: function stake(uint256 amount) returns()

func (*StakingbindingsTransactor) Withdraw

func (_Stakingbindings *StakingbindingsTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type StakingbindingsTransactorRaw

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

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

func (*StakingbindingsTransactorRaw) Transact

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

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

func (*StakingbindingsTransactorRaw) Transfer

func (_Stakingbindings *StakingbindingsTransactorRaw) 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 StakingbindingsTransactorSession

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

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

func (*StakingbindingsTransactorSession) Exit

func (_Stakingbindings *StakingbindingsTransactorSession) Exit() (*types.Transaction, error)

Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.

Solidity: function exit() returns()

func (*StakingbindingsTransactorSession) GetReward

func (_Stakingbindings *StakingbindingsTransactorSession) GetReward() (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0x3d18b912.

Solidity: function getReward() returns()

func (*StakingbindingsTransactorSession) Initialize

func (_Stakingbindings *StakingbindingsTransactorSession) Initialize(stakingToken_ common.Address, rewardsDuration_ *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xcd6dc687.

Solidity: function initialize(address stakingToken_, uint256 rewardsDuration_) returns()

func (*StakingbindingsTransactorSession) NotifyRewardAmount

func (_Stakingbindings *StakingbindingsTransactorSession) NotifyRewardAmount(reward *big.Int) (*types.Transaction, error)

NotifyRewardAmount is a paid mutator transaction binding the contract method 0x3c6b16ab.

Solidity: function notifyRewardAmount(uint256 reward) returns()

func (*StakingbindingsTransactorSession) RecoverERC20

func (_Stakingbindings *StakingbindingsTransactorSession) RecoverERC20(tokenAddress common.Address, recipient common.Address) (*types.Transaction, error)

RecoverERC20 is a paid mutator transaction binding the contract method 0x886f039a.

Solidity: function recoverERC20(address tokenAddress, address recipient) returns()

func (*StakingbindingsTransactorSession) SetRewardsDuration

func (_Stakingbindings *StakingbindingsTransactorSession) SetRewardsDuration(_rewardsDuration *big.Int) (*types.Transaction, error)

SetRewardsDuration is a paid mutator transaction binding the contract method 0xcc1a378f.

Solidity: function setRewardsDuration(uint256 _rewardsDuration) returns()

func (*StakingbindingsTransactorSession) Stake

func (_Stakingbindings *StakingbindingsTransactorSession) Stake(amount *big.Int) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0xa694fc3a.

Solidity: function stake(uint256 amount) returns()

func (*StakingbindingsTransactorSession) Withdraw

func (_Stakingbindings *StakingbindingsTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 amount) returns()

type StakingbindingsWithdrawn

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

StakingbindingsWithdrawn represents a Withdrawn event raised by the Stakingbindings contract.

type StakingbindingsWithdrawnIterator

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

StakingbindingsWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Stakingbindings contract.

func (*StakingbindingsWithdrawnIterator) Close

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

func (*StakingbindingsWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingbindingsWithdrawnIterator) 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.

Jump to

Keyboard shortcuts

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