Documentation ¶
Index ¶
- Constants
- type Pancake
- type PancakeAdminTokenRecovery
- type PancakeAdminTokenRecoveryIterator
- type PancakeCaller
- func (_Pancake *PancakeCaller) AccTokenPerShare(opts *bind.CallOpts) (*big.Int, error)
- func (_Pancake *PancakeCaller) BonusEndBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Pancake *PancakeCaller) HasUserLimit(opts *bind.CallOpts) (bool, error)
- func (_Pancake *PancakeCaller) IsInitialized(opts *bind.CallOpts) (bool, error)
- func (_Pancake *PancakeCaller) LastRewardBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Pancake *PancakeCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Pancake *PancakeCaller) PRECISIONFACTOR(opts *bind.CallOpts) (*big.Int, error)
- func (_Pancake *PancakeCaller) PendingReward(opts *bind.CallOpts, _user common.Address) (*big.Int, error)
- func (_Pancake *PancakeCaller) PoolLimitPerUser(opts *bind.CallOpts) (*big.Int, error)
- func (_Pancake *PancakeCaller) RewardPerBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Pancake *PancakeCaller) RewardToken(opts *bind.CallOpts) (common.Address, error)
- func (_Pancake *PancakeCaller) SMARTCHEFFACTORY(opts *bind.CallOpts) (common.Address, error)
- func (_Pancake *PancakeCaller) StakedToken(opts *bind.CallOpts) (common.Address, error)
- func (_Pancake *PancakeCaller) StartBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Pancake *PancakeCaller) UserInfo(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- type PancakeCallerRaw
- type PancakeCallerSession
- func (_Pancake *PancakeCallerSession) AccTokenPerShare() (*big.Int, error)
- func (_Pancake *PancakeCallerSession) BonusEndBlock() (*big.Int, error)
- func (_Pancake *PancakeCallerSession) HasUserLimit() (bool, error)
- func (_Pancake *PancakeCallerSession) IsInitialized() (bool, error)
- func (_Pancake *PancakeCallerSession) LastRewardBlock() (*big.Int, error)
- func (_Pancake *PancakeCallerSession) Owner() (common.Address, error)
- func (_Pancake *PancakeCallerSession) PRECISIONFACTOR() (*big.Int, error)
- func (_Pancake *PancakeCallerSession) PendingReward(_user common.Address) (*big.Int, error)
- func (_Pancake *PancakeCallerSession) PoolLimitPerUser() (*big.Int, error)
- func (_Pancake *PancakeCallerSession) RewardPerBlock() (*big.Int, error)
- func (_Pancake *PancakeCallerSession) RewardToken() (common.Address, error)
- func (_Pancake *PancakeCallerSession) SMARTCHEFFACTORY() (common.Address, error)
- func (_Pancake *PancakeCallerSession) StakedToken() (common.Address, error)
- func (_Pancake *PancakeCallerSession) StartBlock() (*big.Int, error)
- func (_Pancake *PancakeCallerSession) UserInfo(arg0 common.Address) (struct{ ... }, error)
- type PancakeDeposit
- type PancakeDepositIterator
- type PancakeEmergencyWithdraw
- type PancakeEmergencyWithdrawIterator
- type PancakeFilterer
- func (_Pancake *PancakeFilterer) FilterAdminTokenRecovery(opts *bind.FilterOpts) (*PancakeAdminTokenRecoveryIterator, error)
- func (_Pancake *PancakeFilterer) FilterDeposit(opts *bind.FilterOpts, user []common.Address) (*PancakeDepositIterator, error)
- func (_Pancake *PancakeFilterer) FilterEmergencyWithdraw(opts *bind.FilterOpts, user []common.Address) (*PancakeEmergencyWithdrawIterator, error)
- func (_Pancake *PancakeFilterer) FilterNewPoolLimit(opts *bind.FilterOpts) (*PancakeNewPoolLimitIterator, error)
- func (_Pancake *PancakeFilterer) FilterNewRewardPerBlock(opts *bind.FilterOpts) (*PancakeNewRewardPerBlockIterator, error)
- func (_Pancake *PancakeFilterer) FilterNewStartAndEndBlocks(opts *bind.FilterOpts) (*PancakeNewStartAndEndBlocksIterator, error)
- func (_Pancake *PancakeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*PancakeOwnershipTransferredIterator, error)
- func (_Pancake *PancakeFilterer) FilterRewardsStop(opts *bind.FilterOpts) (*PancakeRewardsStopIterator, error)
- func (_Pancake *PancakeFilterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address) (*PancakeWithdrawIterator, error)
- func (_Pancake *PancakeFilterer) ParseAdminTokenRecovery(log types.Log) (*PancakeAdminTokenRecovery, error)
- func (_Pancake *PancakeFilterer) ParseDeposit(log types.Log) (*PancakeDeposit, error)
- func (_Pancake *PancakeFilterer) ParseEmergencyWithdraw(log types.Log) (*PancakeEmergencyWithdraw, error)
- func (_Pancake *PancakeFilterer) ParseNewPoolLimit(log types.Log) (*PancakeNewPoolLimit, error)
- func (_Pancake *PancakeFilterer) ParseNewRewardPerBlock(log types.Log) (*PancakeNewRewardPerBlock, error)
- func (_Pancake *PancakeFilterer) ParseNewStartAndEndBlocks(log types.Log) (*PancakeNewStartAndEndBlocks, error)
- func (_Pancake *PancakeFilterer) ParseOwnershipTransferred(log types.Log) (*PancakeOwnershipTransferred, error)
- func (_Pancake *PancakeFilterer) ParseRewardsStop(log types.Log) (*PancakeRewardsStop, error)
- func (_Pancake *PancakeFilterer) ParseWithdraw(log types.Log) (*PancakeWithdraw, error)
- func (_Pancake *PancakeFilterer) WatchAdminTokenRecovery(opts *bind.WatchOpts, sink chan<- *PancakeAdminTokenRecovery) (event.Subscription, error)
- func (_Pancake *PancakeFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *PancakeDeposit, user []common.Address) (event.Subscription, error)
- func (_Pancake *PancakeFilterer) WatchEmergencyWithdraw(opts *bind.WatchOpts, sink chan<- *PancakeEmergencyWithdraw, ...) (event.Subscription, error)
- func (_Pancake *PancakeFilterer) WatchNewPoolLimit(opts *bind.WatchOpts, sink chan<- *PancakeNewPoolLimit) (event.Subscription, error)
- func (_Pancake *PancakeFilterer) WatchNewRewardPerBlock(opts *bind.WatchOpts, sink chan<- *PancakeNewRewardPerBlock) (event.Subscription, error)
- func (_Pancake *PancakeFilterer) WatchNewStartAndEndBlocks(opts *bind.WatchOpts, sink chan<- *PancakeNewStartAndEndBlocks) (event.Subscription, error)
- func (_Pancake *PancakeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PancakeOwnershipTransferred, ...) (event.Subscription, error)
- func (_Pancake *PancakeFilterer) WatchRewardsStop(opts *bind.WatchOpts, sink chan<- *PancakeRewardsStop) (event.Subscription, error)
- func (_Pancake *PancakeFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *PancakeWithdraw, user []common.Address) (event.Subscription, error)
- type PancakeNewPoolLimit
- type PancakeNewPoolLimitIterator
- type PancakeNewRewardPerBlock
- type PancakeNewRewardPerBlockIterator
- type PancakeNewStartAndEndBlocks
- type PancakeNewStartAndEndBlocksIterator
- type PancakeOwnershipTransferred
- type PancakeOwnershipTransferredIterator
- type PancakeRaw
- func (_Pancake *PancakeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Pancake *PancakeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Pancake *PancakeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PancakeRewardsStop
- type PancakeRewardsStopIterator
- type PancakeSession
- func (_Pancake *PancakeSession) AccTokenPerShare() (*big.Int, error)
- func (_Pancake *PancakeSession) BonusEndBlock() (*big.Int, error)
- func (_Pancake *PancakeSession) Deposit(_amount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeSession) EmergencyRewardWithdraw(_amount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeSession) EmergencyWithdraw() (*types.Transaction, error)
- func (_Pancake *PancakeSession) HasUserLimit() (bool, error)
- func (_Pancake *PancakeSession) Initialize(_stakedToken common.Address, _rewardToken common.Address, ...) (*types.Transaction, error)
- func (_Pancake *PancakeSession) IsInitialized() (bool, error)
- func (_Pancake *PancakeSession) LastRewardBlock() (*big.Int, error)
- func (_Pancake *PancakeSession) Owner() (common.Address, error)
- func (_Pancake *PancakeSession) PRECISIONFACTOR() (*big.Int, error)
- func (_Pancake *PancakeSession) PendingReward(_user common.Address) (*big.Int, error)
- func (_Pancake *PancakeSession) PoolLimitPerUser() (*big.Int, error)
- func (_Pancake *PancakeSession) RecoverWrongTokens(_tokenAddress common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeSession) RenounceOwnership() (*types.Transaction, error)
- func (_Pancake *PancakeSession) RewardPerBlock() (*big.Int, error)
- func (_Pancake *PancakeSession) RewardToken() (common.Address, error)
- func (_Pancake *PancakeSession) SMARTCHEFFACTORY() (common.Address, error)
- func (_Pancake *PancakeSession) StakedToken() (common.Address, error)
- func (_Pancake *PancakeSession) StartBlock() (*big.Int, error)
- func (_Pancake *PancakeSession) StopReward() (*types.Transaction, error)
- func (_Pancake *PancakeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Pancake *PancakeSession) UpdatePoolLimitPerUser(_hasUserLimit bool, _poolLimitPerUser *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeSession) UpdateRewardPerBlock(_rewardPerBlock *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeSession) UpdateStartAndEndBlocks(_startBlock *big.Int, _bonusEndBlock *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeSession) UserInfo(arg0 common.Address) (struct{ ... }, error)
- func (_Pancake *PancakeSession) Withdraw(_amount *big.Int) (*types.Transaction, error)
- type PancakeTransactor
- func (_Pancake *PancakeTransactor) Deposit(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) EmergencyRewardWithdraw(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) EmergencyWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) Initialize(opts *bind.TransactOpts, _stakedToken common.Address, ...) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) RecoverWrongTokens(opts *bind.TransactOpts, _tokenAddress common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) StopReward(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) UpdatePoolLimitPerUser(opts *bind.TransactOpts, _hasUserLimit bool, _poolLimitPerUser *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) UpdateRewardPerBlock(opts *bind.TransactOpts, _rewardPerBlock *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) UpdateStartAndEndBlocks(opts *bind.TransactOpts, _startBlock *big.Int, _bonusEndBlock *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactor) Withdraw(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- type PancakeTransactorRaw
- type PancakeTransactorSession
- func (_Pancake *PancakeTransactorSession) Deposit(_amount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) EmergencyRewardWithdraw(_amount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) EmergencyWithdraw() (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) Initialize(_stakedToken common.Address, _rewardToken common.Address, ...) (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) RecoverWrongTokens(_tokenAddress common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) StopReward() (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) UpdatePoolLimitPerUser(_hasUserLimit bool, _poolLimitPerUser *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) UpdateRewardPerBlock(_rewardPerBlock *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) UpdateStartAndEndBlocks(_startBlock *big.Int, _bonusEndBlock *big.Int) (*types.Transaction, error)
- func (_Pancake *PancakeTransactorSession) Withdraw(_amount *big.Int) (*types.Transaction, error)
- type PancakeWithdraw
- type PancakeWithdrawIterator
Constants ¶
const PancakeABI = "" /* 7843-byte string literal not displayed */
PancakeABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pancake ¶
type Pancake struct { PancakeCaller // Read-only binding to the contract PancakeTransactor // Write-only binding to the contract PancakeFilterer // Log filterer for contract events }
Pancake is an auto generated Go binding around an Ethereum contract.
func NewPancake ¶
NewPancake creates a new instance of Pancake, bound to a specific deployed contract.
type PancakeAdminTokenRecovery ¶
type PancakeAdminTokenRecovery struct { TokenRecovered common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PancakeAdminTokenRecovery represents a AdminTokenRecovery event raised by the Pancake contract.
type PancakeAdminTokenRecoveryIterator ¶
type PancakeAdminTokenRecoveryIterator struct { Event *PancakeAdminTokenRecovery // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeAdminTokenRecoveryIterator is returned from FilterAdminTokenRecovery and is used to iterate over the raw logs and unpacked data for AdminTokenRecovery events raised by the Pancake contract.
func (*PancakeAdminTokenRecoveryIterator) Close ¶
func (it *PancakeAdminTokenRecoveryIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeAdminTokenRecoveryIterator) Error ¶
func (it *PancakeAdminTokenRecoveryIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeAdminTokenRecoveryIterator) Next ¶
func (it *PancakeAdminTokenRecoveryIterator) 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 PancakeCaller ¶
type PancakeCaller struct {
// contains filtered or unexported fields
}
PancakeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPancakeCaller ¶
func NewPancakeCaller(address common.Address, caller bind.ContractCaller) (*PancakeCaller, error)
NewPancakeCaller creates a new read-only instance of Pancake, bound to a specific deployed contract.
func (*PancakeCaller) AccTokenPerShare ¶
AccTokenPerShare is a free data retrieval call binding the contract method 0x8f662915.
Solidity: function accTokenPerShare() view returns(uint256)
func (*PancakeCaller) BonusEndBlock ¶
BonusEndBlock is a free data retrieval call binding the contract method 0x1aed6553.
Solidity: function bonusEndBlock() view returns(uint256)
func (*PancakeCaller) HasUserLimit ¶
func (_Pancake *PancakeCaller) HasUserLimit(opts *bind.CallOpts) (bool, error)
HasUserLimit is a free data retrieval call binding the contract method 0x92e8990e.
Solidity: function hasUserLimit() view returns(bool)
func (*PancakeCaller) IsInitialized ¶
func (_Pancake *PancakeCaller) IsInitialized(opts *bind.CallOpts) (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*PancakeCaller) LastRewardBlock ¶
LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.
Solidity: function lastRewardBlock() view returns(uint256)
func (*PancakeCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*PancakeCaller) PRECISIONFACTOR ¶
PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.
Solidity: function PRECISION_FACTOR() view returns(uint256)
func (*PancakeCaller) PendingReward ¶
func (_Pancake *PancakeCaller) PendingReward(opts *bind.CallOpts, _user common.Address) (*big.Int, error)
PendingReward is a free data retrieval call binding the contract method 0xf40f0f52.
Solidity: function pendingReward(address _user) view returns(uint256)
func (*PancakeCaller) PoolLimitPerUser ¶
PoolLimitPerUser is a free data retrieval call binding the contract method 0x66fe9f8a.
Solidity: function poolLimitPerUser() view returns(uint256)
func (*PancakeCaller) RewardPerBlock ¶
RewardPerBlock is a free data retrieval call binding the contract method 0x8ae39cac.
Solidity: function rewardPerBlock() view returns(uint256)
func (*PancakeCaller) RewardToken ¶
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*PancakeCaller) SMARTCHEFFACTORY ¶
SMARTCHEFFACTORY is a free data retrieval call binding the contract method 0xbd617191.
Solidity: function SMART_CHEF_FACTORY() view returns(address)
func (*PancakeCaller) StakedToken ¶
StakedToken is a free data retrieval call binding the contract method 0xcc7a262e.
Solidity: function stakedToken() view returns(address)
func (*PancakeCaller) StartBlock ¶
StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.
Solidity: function startBlock() view returns(uint256)
func (*PancakeCaller) UserInfo ¶
func (_Pancake *PancakeCaller) UserInfo(opts *bind.CallOpts, arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
type PancakeCallerRaw ¶
type PancakeCallerRaw struct {
Contract *PancakeCaller // Generic read-only contract binding to access the raw methods on
}
PancakeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PancakeCallerRaw) Call ¶
func (_Pancake *PancakeCallerRaw) 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 PancakeCallerSession ¶
type PancakeCallerSession struct { Contract *PancakeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PancakeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PancakeCallerSession) AccTokenPerShare ¶
func (_Pancake *PancakeCallerSession) AccTokenPerShare() (*big.Int, error)
AccTokenPerShare is a free data retrieval call binding the contract method 0x8f662915.
Solidity: function accTokenPerShare() view returns(uint256)
func (*PancakeCallerSession) BonusEndBlock ¶
func (_Pancake *PancakeCallerSession) BonusEndBlock() (*big.Int, error)
BonusEndBlock is a free data retrieval call binding the contract method 0x1aed6553.
Solidity: function bonusEndBlock() view returns(uint256)
func (*PancakeCallerSession) HasUserLimit ¶
func (_Pancake *PancakeCallerSession) HasUserLimit() (bool, error)
HasUserLimit is a free data retrieval call binding the contract method 0x92e8990e.
Solidity: function hasUserLimit() view returns(bool)
func (*PancakeCallerSession) IsInitialized ¶
func (_Pancake *PancakeCallerSession) IsInitialized() (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*PancakeCallerSession) LastRewardBlock ¶
func (_Pancake *PancakeCallerSession) LastRewardBlock() (*big.Int, error)
LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.
Solidity: function lastRewardBlock() view returns(uint256)
func (*PancakeCallerSession) Owner ¶
func (_Pancake *PancakeCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*PancakeCallerSession) PRECISIONFACTOR ¶
func (_Pancake *PancakeCallerSession) PRECISIONFACTOR() (*big.Int, error)
PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.
Solidity: function PRECISION_FACTOR() view returns(uint256)
func (*PancakeCallerSession) PendingReward ¶
PendingReward is a free data retrieval call binding the contract method 0xf40f0f52.
Solidity: function pendingReward(address _user) view returns(uint256)
func (*PancakeCallerSession) PoolLimitPerUser ¶
func (_Pancake *PancakeCallerSession) PoolLimitPerUser() (*big.Int, error)
PoolLimitPerUser is a free data retrieval call binding the contract method 0x66fe9f8a.
Solidity: function poolLimitPerUser() view returns(uint256)
func (*PancakeCallerSession) RewardPerBlock ¶
func (_Pancake *PancakeCallerSession) RewardPerBlock() (*big.Int, error)
RewardPerBlock is a free data retrieval call binding the contract method 0x8ae39cac.
Solidity: function rewardPerBlock() view returns(uint256)
func (*PancakeCallerSession) RewardToken ¶
func (_Pancake *PancakeCallerSession) RewardToken() (common.Address, error)
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*PancakeCallerSession) SMARTCHEFFACTORY ¶
func (_Pancake *PancakeCallerSession) SMARTCHEFFACTORY() (common.Address, error)
SMARTCHEFFACTORY is a free data retrieval call binding the contract method 0xbd617191.
Solidity: function SMART_CHEF_FACTORY() view returns(address)
func (*PancakeCallerSession) StakedToken ¶
func (_Pancake *PancakeCallerSession) StakedToken() (common.Address, error)
StakedToken is a free data retrieval call binding the contract method 0xcc7a262e.
Solidity: function stakedToken() view returns(address)
func (*PancakeCallerSession) StartBlock ¶
func (_Pancake *PancakeCallerSession) StartBlock() (*big.Int, error)
StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.
Solidity: function startBlock() view returns(uint256)
func (*PancakeCallerSession) UserInfo ¶
func (_Pancake *PancakeCallerSession) UserInfo(arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
type PancakeDeposit ¶
type PancakeDeposit struct { User common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PancakeDeposit represents a Deposit event raised by the Pancake contract.
type PancakeDepositIterator ¶
type PancakeDepositIterator struct { Event *PancakeDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Pancake contract.
func (*PancakeDepositIterator) Close ¶
func (it *PancakeDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeDepositIterator) Error ¶
func (it *PancakeDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeDepositIterator) Next ¶
func (it *PancakeDepositIterator) 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 PancakeEmergencyWithdraw ¶
type PancakeEmergencyWithdraw struct { User common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PancakeEmergencyWithdraw represents a EmergencyWithdraw event raised by the Pancake contract.
type PancakeEmergencyWithdrawIterator ¶
type PancakeEmergencyWithdrawIterator struct { Event *PancakeEmergencyWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeEmergencyWithdrawIterator is returned from FilterEmergencyWithdraw and is used to iterate over the raw logs and unpacked data for EmergencyWithdraw events raised by the Pancake contract.
func (*PancakeEmergencyWithdrawIterator) Close ¶
func (it *PancakeEmergencyWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeEmergencyWithdrawIterator) Error ¶
func (it *PancakeEmergencyWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeEmergencyWithdrawIterator) Next ¶
func (it *PancakeEmergencyWithdrawIterator) 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 PancakeFilterer ¶
type PancakeFilterer struct {
// contains filtered or unexported fields
}
PancakeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPancakeFilterer ¶
func NewPancakeFilterer(address common.Address, filterer bind.ContractFilterer) (*PancakeFilterer, error)
NewPancakeFilterer creates a new log filterer instance of Pancake, bound to a specific deployed contract.
func (*PancakeFilterer) FilterAdminTokenRecovery ¶
func (_Pancake *PancakeFilterer) FilterAdminTokenRecovery(opts *bind.FilterOpts) (*PancakeAdminTokenRecoveryIterator, error)
FilterAdminTokenRecovery is a free log retrieval operation binding the contract event 0x74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129.
Solidity: event AdminTokenRecovery(address tokenRecovered, uint256 amount)
func (*PancakeFilterer) FilterDeposit ¶
func (_Pancake *PancakeFilterer) FilterDeposit(opts *bind.FilterOpts, user []common.Address) (*PancakeDepositIterator, error)
FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed user, uint256 amount)
func (*PancakeFilterer) FilterEmergencyWithdraw ¶
func (_Pancake *PancakeFilterer) FilterEmergencyWithdraw(opts *bind.FilterOpts, user []common.Address) (*PancakeEmergencyWithdrawIterator, error)
FilterEmergencyWithdraw is a free log retrieval operation binding the contract event 0x5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695.
Solidity: event EmergencyWithdraw(address indexed user, uint256 amount)
func (*PancakeFilterer) FilterNewPoolLimit ¶
func (_Pancake *PancakeFilterer) FilterNewPoolLimit(opts *bind.FilterOpts) (*PancakeNewPoolLimitIterator, error)
FilterNewPoolLimit is a free log retrieval operation binding the contract event 0x241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c.
Solidity: event NewPoolLimit(uint256 poolLimitPerUser)
func (*PancakeFilterer) FilterNewRewardPerBlock ¶
func (_Pancake *PancakeFilterer) FilterNewRewardPerBlock(opts *bind.FilterOpts) (*PancakeNewRewardPerBlockIterator, error)
FilterNewRewardPerBlock is a free log retrieval operation binding the contract event 0x0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df.
Solidity: event NewRewardPerBlock(uint256 rewardPerBlock)
func (*PancakeFilterer) FilterNewStartAndEndBlocks ¶
func (_Pancake *PancakeFilterer) FilterNewStartAndEndBlocks(opts *bind.FilterOpts) (*PancakeNewStartAndEndBlocksIterator, error)
FilterNewStartAndEndBlocks is a free log retrieval operation binding the contract event 0x7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06.
Solidity: event NewStartAndEndBlocks(uint256 startBlock, uint256 endBlock)
func (*PancakeFilterer) FilterOwnershipTransferred ¶
func (_Pancake *PancakeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PancakeOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*PancakeFilterer) FilterRewardsStop ¶
func (_Pancake *PancakeFilterer) FilterRewardsStop(opts *bind.FilterOpts) (*PancakeRewardsStopIterator, error)
FilterRewardsStop is a free log retrieval operation binding the contract event 0xfed9fcb0ca3d1e761a4b929792bb24082fba92dca81252646ad306d306806566.
Solidity: event RewardsStop(uint256 blockNumber)
func (*PancakeFilterer) FilterWithdraw ¶
func (_Pancake *PancakeFilterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address) (*PancakeWithdrawIterator, error)
FilterWithdraw is a free log retrieval operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.
Solidity: event Withdraw(address indexed user, uint256 amount)
func (*PancakeFilterer) ParseAdminTokenRecovery ¶
func (_Pancake *PancakeFilterer) ParseAdminTokenRecovery(log types.Log) (*PancakeAdminTokenRecovery, error)
ParseAdminTokenRecovery is a log parse operation binding the contract event 0x74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129.
Solidity: event AdminTokenRecovery(address tokenRecovered, uint256 amount)
func (*PancakeFilterer) ParseDeposit ¶
func (_Pancake *PancakeFilterer) ParseDeposit(log types.Log) (*PancakeDeposit, error)
ParseDeposit is a log parse operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed user, uint256 amount)
func (*PancakeFilterer) ParseEmergencyWithdraw ¶
func (_Pancake *PancakeFilterer) ParseEmergencyWithdraw(log types.Log) (*PancakeEmergencyWithdraw, error)
ParseEmergencyWithdraw is a log parse operation binding the contract event 0x5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695.
Solidity: event EmergencyWithdraw(address indexed user, uint256 amount)
func (*PancakeFilterer) ParseNewPoolLimit ¶
func (_Pancake *PancakeFilterer) ParseNewPoolLimit(log types.Log) (*PancakeNewPoolLimit, error)
ParseNewPoolLimit is a log parse operation binding the contract event 0x241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c.
Solidity: event NewPoolLimit(uint256 poolLimitPerUser)
func (*PancakeFilterer) ParseNewRewardPerBlock ¶
func (_Pancake *PancakeFilterer) ParseNewRewardPerBlock(log types.Log) (*PancakeNewRewardPerBlock, error)
ParseNewRewardPerBlock is a log parse operation binding the contract event 0x0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df.
Solidity: event NewRewardPerBlock(uint256 rewardPerBlock)
func (*PancakeFilterer) ParseNewStartAndEndBlocks ¶
func (_Pancake *PancakeFilterer) ParseNewStartAndEndBlocks(log types.Log) (*PancakeNewStartAndEndBlocks, error)
ParseNewStartAndEndBlocks is a log parse operation binding the contract event 0x7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06.
Solidity: event NewStartAndEndBlocks(uint256 startBlock, uint256 endBlock)
func (*PancakeFilterer) ParseOwnershipTransferred ¶
func (_Pancake *PancakeFilterer) ParseOwnershipTransferred(log types.Log) (*PancakeOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*PancakeFilterer) ParseRewardsStop ¶
func (_Pancake *PancakeFilterer) ParseRewardsStop(log types.Log) (*PancakeRewardsStop, error)
ParseRewardsStop is a log parse operation binding the contract event 0xfed9fcb0ca3d1e761a4b929792bb24082fba92dca81252646ad306d306806566.
Solidity: event RewardsStop(uint256 blockNumber)
func (*PancakeFilterer) ParseWithdraw ¶
func (_Pancake *PancakeFilterer) ParseWithdraw(log types.Log) (*PancakeWithdraw, error)
ParseWithdraw is a log parse operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.
Solidity: event Withdraw(address indexed user, uint256 amount)
func (*PancakeFilterer) WatchAdminTokenRecovery ¶
func (_Pancake *PancakeFilterer) WatchAdminTokenRecovery(opts *bind.WatchOpts, sink chan<- *PancakeAdminTokenRecovery) (event.Subscription, error)
WatchAdminTokenRecovery is a free log subscription operation binding the contract event 0x74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129.
Solidity: event AdminTokenRecovery(address tokenRecovered, uint256 amount)
func (*PancakeFilterer) WatchDeposit ¶
func (_Pancake *PancakeFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *PancakeDeposit, user []common.Address) (event.Subscription, error)
WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed user, uint256 amount)
func (*PancakeFilterer) WatchEmergencyWithdraw ¶
func (_Pancake *PancakeFilterer) WatchEmergencyWithdraw(opts *bind.WatchOpts, sink chan<- *PancakeEmergencyWithdraw, user []common.Address) (event.Subscription, error)
WatchEmergencyWithdraw is a free log subscription operation binding the contract event 0x5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695.
Solidity: event EmergencyWithdraw(address indexed user, uint256 amount)
func (*PancakeFilterer) WatchNewPoolLimit ¶
func (_Pancake *PancakeFilterer) WatchNewPoolLimit(opts *bind.WatchOpts, sink chan<- *PancakeNewPoolLimit) (event.Subscription, error)
WatchNewPoolLimit is a free log subscription operation binding the contract event 0x241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c.
Solidity: event NewPoolLimit(uint256 poolLimitPerUser)
func (*PancakeFilterer) WatchNewRewardPerBlock ¶
func (_Pancake *PancakeFilterer) WatchNewRewardPerBlock(opts *bind.WatchOpts, sink chan<- *PancakeNewRewardPerBlock) (event.Subscription, error)
WatchNewRewardPerBlock is a free log subscription operation binding the contract event 0x0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df.
Solidity: event NewRewardPerBlock(uint256 rewardPerBlock)
func (*PancakeFilterer) WatchNewStartAndEndBlocks ¶
func (_Pancake *PancakeFilterer) WatchNewStartAndEndBlocks(opts *bind.WatchOpts, sink chan<- *PancakeNewStartAndEndBlocks) (event.Subscription, error)
WatchNewStartAndEndBlocks is a free log subscription operation binding the contract event 0x7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06.
Solidity: event NewStartAndEndBlocks(uint256 startBlock, uint256 endBlock)
func (*PancakeFilterer) WatchOwnershipTransferred ¶
func (_Pancake *PancakeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PancakeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*PancakeFilterer) WatchRewardsStop ¶
func (_Pancake *PancakeFilterer) WatchRewardsStop(opts *bind.WatchOpts, sink chan<- *PancakeRewardsStop) (event.Subscription, error)
WatchRewardsStop is a free log subscription operation binding the contract event 0xfed9fcb0ca3d1e761a4b929792bb24082fba92dca81252646ad306d306806566.
Solidity: event RewardsStop(uint256 blockNumber)
func (*PancakeFilterer) WatchWithdraw ¶
func (_Pancake *PancakeFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *PancakeWithdraw, user []common.Address) (event.Subscription, error)
WatchWithdraw is a free log subscription operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.
Solidity: event Withdraw(address indexed user, uint256 amount)
type PancakeNewPoolLimit ¶
type PancakeNewPoolLimit struct { PoolLimitPerUser *big.Int Raw types.Log // Blockchain specific contextual infos }
PancakeNewPoolLimit represents a NewPoolLimit event raised by the Pancake contract.
type PancakeNewPoolLimitIterator ¶
type PancakeNewPoolLimitIterator struct { Event *PancakeNewPoolLimit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeNewPoolLimitIterator is returned from FilterNewPoolLimit and is used to iterate over the raw logs and unpacked data for NewPoolLimit events raised by the Pancake contract.
func (*PancakeNewPoolLimitIterator) Close ¶
func (it *PancakeNewPoolLimitIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeNewPoolLimitIterator) Error ¶
func (it *PancakeNewPoolLimitIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeNewPoolLimitIterator) Next ¶
func (it *PancakeNewPoolLimitIterator) 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 PancakeNewRewardPerBlock ¶
type PancakeNewRewardPerBlock struct { RewardPerBlock *big.Int Raw types.Log // Blockchain specific contextual infos }
PancakeNewRewardPerBlock represents a NewRewardPerBlock event raised by the Pancake contract.
type PancakeNewRewardPerBlockIterator ¶
type PancakeNewRewardPerBlockIterator struct { Event *PancakeNewRewardPerBlock // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeNewRewardPerBlockIterator is returned from FilterNewRewardPerBlock and is used to iterate over the raw logs and unpacked data for NewRewardPerBlock events raised by the Pancake contract.
func (*PancakeNewRewardPerBlockIterator) Close ¶
func (it *PancakeNewRewardPerBlockIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeNewRewardPerBlockIterator) Error ¶
func (it *PancakeNewRewardPerBlockIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeNewRewardPerBlockIterator) Next ¶
func (it *PancakeNewRewardPerBlockIterator) 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 PancakeNewStartAndEndBlocks ¶
type PancakeNewStartAndEndBlocks struct { StartBlock *big.Int EndBlock *big.Int Raw types.Log // Blockchain specific contextual infos }
PancakeNewStartAndEndBlocks represents a NewStartAndEndBlocks event raised by the Pancake contract.
type PancakeNewStartAndEndBlocksIterator ¶
type PancakeNewStartAndEndBlocksIterator struct { Event *PancakeNewStartAndEndBlocks // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeNewStartAndEndBlocksIterator is returned from FilterNewStartAndEndBlocks and is used to iterate over the raw logs and unpacked data for NewStartAndEndBlocks events raised by the Pancake contract.
func (*PancakeNewStartAndEndBlocksIterator) Close ¶
func (it *PancakeNewStartAndEndBlocksIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeNewStartAndEndBlocksIterator) Error ¶
func (it *PancakeNewStartAndEndBlocksIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeNewStartAndEndBlocksIterator) Next ¶
func (it *PancakeNewStartAndEndBlocksIterator) 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 PancakeOwnershipTransferred ¶
type PancakeOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
PancakeOwnershipTransferred represents a OwnershipTransferred event raised by the Pancake contract.
type PancakeOwnershipTransferredIterator ¶
type PancakeOwnershipTransferredIterator struct { Event *PancakeOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Pancake contract.
func (*PancakeOwnershipTransferredIterator) Close ¶
func (it *PancakeOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeOwnershipTransferredIterator) Error ¶
func (it *PancakeOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeOwnershipTransferredIterator) Next ¶
func (it *PancakeOwnershipTransferredIterator) 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 PancakeRaw ¶
type PancakeRaw struct {
Contract *Pancake // Generic contract binding to access the raw methods on
}
PancakeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PancakeRaw) Call ¶
func (_Pancake *PancakeRaw) 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 (*PancakeRaw) Transact ¶
func (_Pancake *PancakeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PancakeRaw) Transfer ¶
func (_Pancake *PancakeRaw) 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 PancakeRewardsStop ¶
type PancakeRewardsStop struct { BlockNumber *big.Int Raw types.Log // Blockchain specific contextual infos }
PancakeRewardsStop represents a RewardsStop event raised by the Pancake contract.
type PancakeRewardsStopIterator ¶
type PancakeRewardsStopIterator struct { Event *PancakeRewardsStop // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeRewardsStopIterator is returned from FilterRewardsStop and is used to iterate over the raw logs and unpacked data for RewardsStop events raised by the Pancake contract.
func (*PancakeRewardsStopIterator) Close ¶
func (it *PancakeRewardsStopIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeRewardsStopIterator) Error ¶
func (it *PancakeRewardsStopIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeRewardsStopIterator) Next ¶
func (it *PancakeRewardsStopIterator) 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 PancakeSession ¶
type PancakeSession struct { Contract *Pancake // 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 }
PancakeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PancakeSession) AccTokenPerShare ¶
func (_Pancake *PancakeSession) AccTokenPerShare() (*big.Int, error)
AccTokenPerShare is a free data retrieval call binding the contract method 0x8f662915.
Solidity: function accTokenPerShare() view returns(uint256)
func (*PancakeSession) BonusEndBlock ¶
func (_Pancake *PancakeSession) BonusEndBlock() (*big.Int, error)
BonusEndBlock is a free data retrieval call binding the contract method 0x1aed6553.
Solidity: function bonusEndBlock() view returns(uint256)
func (*PancakeSession) Deposit ¶
func (_Pancake *PancakeSession) Deposit(_amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.
Solidity: function deposit(uint256 _amount) returns()
func (*PancakeSession) EmergencyRewardWithdraw ¶
func (_Pancake *PancakeSession) EmergencyRewardWithdraw(_amount *big.Int) (*types.Transaction, error)
EmergencyRewardWithdraw is a paid mutator transaction binding the contract method 0x3279beab.
Solidity: function emergencyRewardWithdraw(uint256 _amount) returns()
func (*PancakeSession) EmergencyWithdraw ¶
func (_Pancake *PancakeSession) EmergencyWithdraw() (*types.Transaction, error)
EmergencyWithdraw is a paid mutator transaction binding the contract method 0xdb2e21bc.
Solidity: function emergencyWithdraw() returns()
func (*PancakeSession) HasUserLimit ¶
func (_Pancake *PancakeSession) HasUserLimit() (bool, error)
HasUserLimit is a free data retrieval call binding the contract method 0x92e8990e.
Solidity: function hasUserLimit() view returns(bool)
func (*PancakeSession) Initialize ¶
func (_Pancake *PancakeSession) Initialize(_stakedToken common.Address, _rewardToken common.Address, _rewardPerBlock *big.Int, _startBlock *big.Int, _bonusEndBlock *big.Int, _poolLimitPerUser *big.Int, _admin common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x83a5041c.
Solidity: function initialize(address _stakedToken, address _rewardToken, uint256 _rewardPerBlock, uint256 _startBlock, uint256 _bonusEndBlock, uint256 _poolLimitPerUser, address _admin) returns()
func (*PancakeSession) IsInitialized ¶
func (_Pancake *PancakeSession) IsInitialized() (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*PancakeSession) LastRewardBlock ¶
func (_Pancake *PancakeSession) LastRewardBlock() (*big.Int, error)
LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.
Solidity: function lastRewardBlock() view returns(uint256)
func (*PancakeSession) Owner ¶
func (_Pancake *PancakeSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*PancakeSession) PRECISIONFACTOR ¶
func (_Pancake *PancakeSession) PRECISIONFACTOR() (*big.Int, error)
PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.
Solidity: function PRECISION_FACTOR() view returns(uint256)
func (*PancakeSession) PendingReward ¶
PendingReward is a free data retrieval call binding the contract method 0xf40f0f52.
Solidity: function pendingReward(address _user) view returns(uint256)
func (*PancakeSession) PoolLimitPerUser ¶
func (_Pancake *PancakeSession) PoolLimitPerUser() (*big.Int, error)
PoolLimitPerUser is a free data retrieval call binding the contract method 0x66fe9f8a.
Solidity: function poolLimitPerUser() view returns(uint256)
func (*PancakeSession) RecoverWrongTokens ¶
func (_Pancake *PancakeSession) RecoverWrongTokens(_tokenAddress common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
RecoverWrongTokens is a paid mutator transaction binding the contract method 0x3f138d4b.
Solidity: function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) returns()
func (*PancakeSession) RenounceOwnership ¶
func (_Pancake *PancakeSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PancakeSession) RewardPerBlock ¶
func (_Pancake *PancakeSession) RewardPerBlock() (*big.Int, error)
RewardPerBlock is a free data retrieval call binding the contract method 0x8ae39cac.
Solidity: function rewardPerBlock() view returns(uint256)
func (*PancakeSession) RewardToken ¶
func (_Pancake *PancakeSession) RewardToken() (common.Address, error)
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*PancakeSession) SMARTCHEFFACTORY ¶
func (_Pancake *PancakeSession) SMARTCHEFFACTORY() (common.Address, error)
SMARTCHEFFACTORY is a free data retrieval call binding the contract method 0xbd617191.
Solidity: function SMART_CHEF_FACTORY() view returns(address)
func (*PancakeSession) StakedToken ¶
func (_Pancake *PancakeSession) StakedToken() (common.Address, error)
StakedToken is a free data retrieval call binding the contract method 0xcc7a262e.
Solidity: function stakedToken() view returns(address)
func (*PancakeSession) StartBlock ¶
func (_Pancake *PancakeSession) StartBlock() (*big.Int, error)
StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.
Solidity: function startBlock() view returns(uint256)
func (*PancakeSession) StopReward ¶
func (_Pancake *PancakeSession) StopReward() (*types.Transaction, error)
StopReward is a paid mutator transaction binding the contract method 0x80dc0672.
Solidity: function stopReward() returns()
func (*PancakeSession) TransferOwnership ¶
func (_Pancake *PancakeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*PancakeSession) UpdatePoolLimitPerUser ¶
func (_Pancake *PancakeSession) UpdatePoolLimitPerUser(_hasUserLimit bool, _poolLimitPerUser *big.Int) (*types.Transaction, error)
UpdatePoolLimitPerUser is a paid mutator transaction binding the contract method 0xa0b40905.
Solidity: function updatePoolLimitPerUser(bool _hasUserLimit, uint256 _poolLimitPerUser) returns()
func (*PancakeSession) UpdateRewardPerBlock ¶
func (_Pancake *PancakeSession) UpdateRewardPerBlock(_rewardPerBlock *big.Int) (*types.Transaction, error)
UpdateRewardPerBlock is a paid mutator transaction binding the contract method 0x01f8a976.
Solidity: function updateRewardPerBlock(uint256 _rewardPerBlock) returns()
func (*PancakeSession) UpdateStartAndEndBlocks ¶
func (_Pancake *PancakeSession) UpdateStartAndEndBlocks(_startBlock *big.Int, _bonusEndBlock *big.Int) (*types.Transaction, error)
UpdateStartAndEndBlocks is a paid mutator transaction binding the contract method 0x9513997f.
Solidity: function updateStartAndEndBlocks(uint256 _startBlock, uint256 _bonusEndBlock) returns()
func (*PancakeSession) UserInfo ¶
func (_Pancake *PancakeSession) UserInfo(arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
func (*PancakeSession) Withdraw ¶
func (_Pancake *PancakeSession) 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 PancakeTransactor ¶
type PancakeTransactor struct {
// contains filtered or unexported fields
}
PancakeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPancakeTransactor ¶
func NewPancakeTransactor(address common.Address, transactor bind.ContractTransactor) (*PancakeTransactor, error)
NewPancakeTransactor creates a new write-only instance of Pancake, bound to a specific deployed contract.
func (*PancakeTransactor) Deposit ¶
func (_Pancake *PancakeTransactor) Deposit(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.
Solidity: function deposit(uint256 _amount) returns()
func (*PancakeTransactor) EmergencyRewardWithdraw ¶
func (_Pancake *PancakeTransactor) EmergencyRewardWithdraw(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
EmergencyRewardWithdraw is a paid mutator transaction binding the contract method 0x3279beab.
Solidity: function emergencyRewardWithdraw(uint256 _amount) returns()
func (*PancakeTransactor) EmergencyWithdraw ¶
func (_Pancake *PancakeTransactor) EmergencyWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)
EmergencyWithdraw is a paid mutator transaction binding the contract method 0xdb2e21bc.
Solidity: function emergencyWithdraw() returns()
func (*PancakeTransactor) Initialize ¶
func (_Pancake *PancakeTransactor) Initialize(opts *bind.TransactOpts, _stakedToken common.Address, _rewardToken common.Address, _rewardPerBlock *big.Int, _startBlock *big.Int, _bonusEndBlock *big.Int, _poolLimitPerUser *big.Int, _admin common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x83a5041c.
Solidity: function initialize(address _stakedToken, address _rewardToken, uint256 _rewardPerBlock, uint256 _startBlock, uint256 _bonusEndBlock, uint256 _poolLimitPerUser, address _admin) returns()
func (*PancakeTransactor) RecoverWrongTokens ¶
func (_Pancake *PancakeTransactor) RecoverWrongTokens(opts *bind.TransactOpts, _tokenAddress common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
RecoverWrongTokens is a paid mutator transaction binding the contract method 0x3f138d4b.
Solidity: function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) returns()
func (*PancakeTransactor) RenounceOwnership ¶
func (_Pancake *PancakeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PancakeTransactor) StopReward ¶
func (_Pancake *PancakeTransactor) StopReward(opts *bind.TransactOpts) (*types.Transaction, error)
StopReward is a paid mutator transaction binding the contract method 0x80dc0672.
Solidity: function stopReward() returns()
func (*PancakeTransactor) TransferOwnership ¶
func (_Pancake *PancakeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*PancakeTransactor) UpdatePoolLimitPerUser ¶
func (_Pancake *PancakeTransactor) UpdatePoolLimitPerUser(opts *bind.TransactOpts, _hasUserLimit bool, _poolLimitPerUser *big.Int) (*types.Transaction, error)
UpdatePoolLimitPerUser is a paid mutator transaction binding the contract method 0xa0b40905.
Solidity: function updatePoolLimitPerUser(bool _hasUserLimit, uint256 _poolLimitPerUser) returns()
func (*PancakeTransactor) UpdateRewardPerBlock ¶
func (_Pancake *PancakeTransactor) UpdateRewardPerBlock(opts *bind.TransactOpts, _rewardPerBlock *big.Int) (*types.Transaction, error)
UpdateRewardPerBlock is a paid mutator transaction binding the contract method 0x01f8a976.
Solidity: function updateRewardPerBlock(uint256 _rewardPerBlock) returns()
func (*PancakeTransactor) UpdateStartAndEndBlocks ¶
func (_Pancake *PancakeTransactor) UpdateStartAndEndBlocks(opts *bind.TransactOpts, _startBlock *big.Int, _bonusEndBlock *big.Int) (*types.Transaction, error)
UpdateStartAndEndBlocks is a paid mutator transaction binding the contract method 0x9513997f.
Solidity: function updateStartAndEndBlocks(uint256 _startBlock, uint256 _bonusEndBlock) returns()
func (*PancakeTransactor) Withdraw ¶
func (_Pancake *PancakeTransactor) 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 PancakeTransactorRaw ¶
type PancakeTransactorRaw struct {
Contract *PancakeTransactor // Generic write-only contract binding to access the raw methods on
}
PancakeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PancakeTransactorRaw) Transact ¶
func (_Pancake *PancakeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PancakeTransactorRaw) Transfer ¶
func (_Pancake *PancakeTransactorRaw) 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 PancakeTransactorSession ¶
type PancakeTransactorSession struct { Contract *PancakeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PancakeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PancakeTransactorSession) Deposit ¶
func (_Pancake *PancakeTransactorSession) Deposit(_amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.
Solidity: function deposit(uint256 _amount) returns()
func (*PancakeTransactorSession) EmergencyRewardWithdraw ¶
func (_Pancake *PancakeTransactorSession) EmergencyRewardWithdraw(_amount *big.Int) (*types.Transaction, error)
EmergencyRewardWithdraw is a paid mutator transaction binding the contract method 0x3279beab.
Solidity: function emergencyRewardWithdraw(uint256 _amount) returns()
func (*PancakeTransactorSession) EmergencyWithdraw ¶
func (_Pancake *PancakeTransactorSession) EmergencyWithdraw() (*types.Transaction, error)
EmergencyWithdraw is a paid mutator transaction binding the contract method 0xdb2e21bc.
Solidity: function emergencyWithdraw() returns()
func (*PancakeTransactorSession) Initialize ¶
func (_Pancake *PancakeTransactorSession) Initialize(_stakedToken common.Address, _rewardToken common.Address, _rewardPerBlock *big.Int, _startBlock *big.Int, _bonusEndBlock *big.Int, _poolLimitPerUser *big.Int, _admin common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x83a5041c.
Solidity: function initialize(address _stakedToken, address _rewardToken, uint256 _rewardPerBlock, uint256 _startBlock, uint256 _bonusEndBlock, uint256 _poolLimitPerUser, address _admin) returns()
func (*PancakeTransactorSession) RecoverWrongTokens ¶
func (_Pancake *PancakeTransactorSession) RecoverWrongTokens(_tokenAddress common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
RecoverWrongTokens is a paid mutator transaction binding the contract method 0x3f138d4b.
Solidity: function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) returns()
func (*PancakeTransactorSession) RenounceOwnership ¶
func (_Pancake *PancakeTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PancakeTransactorSession) StopReward ¶
func (_Pancake *PancakeTransactorSession) StopReward() (*types.Transaction, error)
StopReward is a paid mutator transaction binding the contract method 0x80dc0672.
Solidity: function stopReward() returns()
func (*PancakeTransactorSession) TransferOwnership ¶
func (_Pancake *PancakeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*PancakeTransactorSession) UpdatePoolLimitPerUser ¶
func (_Pancake *PancakeTransactorSession) UpdatePoolLimitPerUser(_hasUserLimit bool, _poolLimitPerUser *big.Int) (*types.Transaction, error)
UpdatePoolLimitPerUser is a paid mutator transaction binding the contract method 0xa0b40905.
Solidity: function updatePoolLimitPerUser(bool _hasUserLimit, uint256 _poolLimitPerUser) returns()
func (*PancakeTransactorSession) UpdateRewardPerBlock ¶
func (_Pancake *PancakeTransactorSession) UpdateRewardPerBlock(_rewardPerBlock *big.Int) (*types.Transaction, error)
UpdateRewardPerBlock is a paid mutator transaction binding the contract method 0x01f8a976.
Solidity: function updateRewardPerBlock(uint256 _rewardPerBlock) returns()
func (*PancakeTransactorSession) UpdateStartAndEndBlocks ¶
func (_Pancake *PancakeTransactorSession) UpdateStartAndEndBlocks(_startBlock *big.Int, _bonusEndBlock *big.Int) (*types.Transaction, error)
UpdateStartAndEndBlocks is a paid mutator transaction binding the contract method 0x9513997f.
Solidity: function updateStartAndEndBlocks(uint256 _startBlock, uint256 _bonusEndBlock) returns()
func (*PancakeTransactorSession) Withdraw ¶
func (_Pancake *PancakeTransactorSession) 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 PancakeWithdraw ¶
type PancakeWithdraw struct { User common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PancakeWithdraw represents a Withdraw event raised by the Pancake contract.
type PancakeWithdrawIterator ¶
type PancakeWithdrawIterator struct { Event *PancakeWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PancakeWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Pancake contract.
func (*PancakeWithdrawIterator) Close ¶
func (it *PancakeWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PancakeWithdrawIterator) Error ¶
func (it *PancakeWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PancakeWithdrawIterator) Next ¶
func (it *PancakeWithdrawIterator) 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.