masterchef

package
v0.0.0-...-8a9fa6e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MasterchefABI = "" /* 8079-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Masterchef

type Masterchef struct {
	MasterchefCaller     // Read-only binding to the contract
	MasterchefTransactor // Write-only binding to the contract
	MasterchefFilterer   // Log filterer for contract events
}

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

func NewMasterchef

func NewMasterchef(address common.Address, backend bind.ContractBackend) (*Masterchef, error)

NewMasterchef creates a new instance of Masterchef, bound to a specific deployed contract.

type MasterchefCaller

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

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

func NewMasterchefCaller

func NewMasterchefCaller(address common.Address, caller bind.ContractCaller) (*MasterchefCaller, error)

NewMasterchefCaller creates a new read-only instance of Masterchef, bound to a specific deployed contract.

func (*MasterchefCaller) BONUSMULTIPLIER

func (_Masterchef *MasterchefCaller) BONUSMULTIPLIER(opts *bind.CallOpts) (*big.Int, error)

BONUSMULTIPLIER is a free data retrieval call binding the contract method 0x8aa28550.

Solidity: function BONUS_MULTIPLIER() view returns(uint256)

func (*MasterchefCaller) Cake

func (_Masterchef *MasterchefCaller) Cake(opts *bind.CallOpts) (common.Address, error)

Cake is a free data retrieval call binding the contract method 0xdce17484.

Solidity: function cake() view returns(address)

func (*MasterchefCaller) CakePerBlock

func (_Masterchef *MasterchefCaller) CakePerBlock(opts *bind.CallOpts) (*big.Int, error)

CakePerBlock is a free data retrieval call binding the contract method 0x0755e0b6.

Solidity: function cakePerBlock() view returns(uint256)

func (*MasterchefCaller) Devaddr

func (_Masterchef *MasterchefCaller) Devaddr(opts *bind.CallOpts) (common.Address, error)

Devaddr is a free data retrieval call binding the contract method 0xd49e77cd.

Solidity: function devaddr() view returns(address)

func (*MasterchefCaller) GetMultiplier

func (_Masterchef *MasterchefCaller) GetMultiplier(opts *bind.CallOpts, _from *big.Int, _to *big.Int) (*big.Int, error)

GetMultiplier is a free data retrieval call binding the contract method 0x8dbb1e3a.

Solidity: function getMultiplier(uint256 _from, uint256 _to) view returns(uint256)

func (*MasterchefCaller) Migrator

func (_Masterchef *MasterchefCaller) Migrator(opts *bind.CallOpts) (common.Address, error)

Migrator is a free data retrieval call binding the contract method 0x7cd07e47.

Solidity: function migrator() view returns(address)

func (*MasterchefCaller) Owner

func (_Masterchef *MasterchefCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MasterchefCaller) PendingCake

func (_Masterchef *MasterchefCaller) PendingCake(opts *bind.CallOpts, _pid *big.Int, _user common.Address) (*big.Int, error)

PendingCake is a free data retrieval call binding the contract method 0x1175a1dd.

Solidity: function pendingCake(uint256 _pid, address _user) view returns(uint256)

func (*MasterchefCaller) PoolInfo

func (_Masterchef *MasterchefCaller) PoolInfo(opts *bind.CallOpts, arg0 *big.Int) (struct {
	LpToken         common.Address
	AllocPoint      *big.Int
	LastRewardBlock *big.Int
	AccCakePerShare *big.Int
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(address lpToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accCakePerShare)

func (*MasterchefCaller) PoolLength

func (_Masterchef *MasterchefCaller) PoolLength(opts *bind.CallOpts) (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256)

func (*MasterchefCaller) StartBlock

func (_Masterchef *MasterchefCaller) StartBlock(opts *bind.CallOpts) (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() view returns(uint256)

func (*MasterchefCaller) Syrup

func (_Masterchef *MasterchefCaller) Syrup(opts *bind.CallOpts) (common.Address, error)

Syrup is a free data retrieval call binding the contract method 0x86a952c4.

Solidity: function syrup() view returns(address)

func (*MasterchefCaller) TotalAllocPoint

func (_Masterchef *MasterchefCaller) TotalAllocPoint(opts *bind.CallOpts) (*big.Int, error)

TotalAllocPoint is a free data retrieval call binding the contract method 0x17caf6f1.

Solidity: function totalAllocPoint() view returns(uint256)

func (*MasterchefCaller) UserInfo

func (_Masterchef *MasterchefCaller) UserInfo(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 amount, uint256 rewardDebt)

type MasterchefCallerRaw

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

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

func (*MasterchefCallerRaw) Call

func (_Masterchef *MasterchefCallerRaw) 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 MasterchefCallerSession

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

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

func (*MasterchefCallerSession) BONUSMULTIPLIER

func (_Masterchef *MasterchefCallerSession) BONUSMULTIPLIER() (*big.Int, error)

BONUSMULTIPLIER is a free data retrieval call binding the contract method 0x8aa28550.

Solidity: function BONUS_MULTIPLIER() view returns(uint256)

func (*MasterchefCallerSession) Cake

func (_Masterchef *MasterchefCallerSession) Cake() (common.Address, error)

Cake is a free data retrieval call binding the contract method 0xdce17484.

Solidity: function cake() view returns(address)

func (*MasterchefCallerSession) CakePerBlock

func (_Masterchef *MasterchefCallerSession) CakePerBlock() (*big.Int, error)

CakePerBlock is a free data retrieval call binding the contract method 0x0755e0b6.

Solidity: function cakePerBlock() view returns(uint256)

func (*MasterchefCallerSession) Devaddr

func (_Masterchef *MasterchefCallerSession) Devaddr() (common.Address, error)

Devaddr is a free data retrieval call binding the contract method 0xd49e77cd.

Solidity: function devaddr() view returns(address)

func (*MasterchefCallerSession) GetMultiplier

func (_Masterchef *MasterchefCallerSession) GetMultiplier(_from *big.Int, _to *big.Int) (*big.Int, error)

GetMultiplier is a free data retrieval call binding the contract method 0x8dbb1e3a.

Solidity: function getMultiplier(uint256 _from, uint256 _to) view returns(uint256)

func (*MasterchefCallerSession) Migrator

func (_Masterchef *MasterchefCallerSession) Migrator() (common.Address, error)

Migrator is a free data retrieval call binding the contract method 0x7cd07e47.

Solidity: function migrator() view returns(address)

func (*MasterchefCallerSession) Owner

func (_Masterchef *MasterchefCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MasterchefCallerSession) PendingCake

func (_Masterchef *MasterchefCallerSession) PendingCake(_pid *big.Int, _user common.Address) (*big.Int, error)

PendingCake is a free data retrieval call binding the contract method 0x1175a1dd.

Solidity: function pendingCake(uint256 _pid, address _user) view returns(uint256)

func (*MasterchefCallerSession) PoolInfo

func (_Masterchef *MasterchefCallerSession) PoolInfo(arg0 *big.Int) (struct {
	LpToken         common.Address
	AllocPoint      *big.Int
	LastRewardBlock *big.Int
	AccCakePerShare *big.Int
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(address lpToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accCakePerShare)

func (*MasterchefCallerSession) PoolLength

func (_Masterchef *MasterchefCallerSession) PoolLength() (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256)

func (*MasterchefCallerSession) StartBlock

func (_Masterchef *MasterchefCallerSession) StartBlock() (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() view returns(uint256)

func (*MasterchefCallerSession) Syrup

func (_Masterchef *MasterchefCallerSession) Syrup() (common.Address, error)

Syrup is a free data retrieval call binding the contract method 0x86a952c4.

Solidity: function syrup() view returns(address)

func (*MasterchefCallerSession) TotalAllocPoint

func (_Masterchef *MasterchefCallerSession) TotalAllocPoint() (*big.Int, error)

TotalAllocPoint is a free data retrieval call binding the contract method 0x17caf6f1.

Solidity: function totalAllocPoint() view returns(uint256)

func (*MasterchefCallerSession) UserInfo

func (_Masterchef *MasterchefCallerSession) UserInfo(arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 amount, uint256 rewardDebt)

type MasterchefDeposit

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

MasterchefDeposit represents a Deposit event raised by the Masterchef contract.

type MasterchefDepositIterator

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

MasterchefDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Masterchef contract.

func (*MasterchefDepositIterator) Close

func (it *MasterchefDepositIterator) Close() error

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

func (*MasterchefDepositIterator) Error

func (it *MasterchefDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MasterchefDepositIterator) Next

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

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

MasterchefEmergencyWithdraw represents a EmergencyWithdraw event raised by the Masterchef contract.

type MasterchefEmergencyWithdrawIterator

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

MasterchefEmergencyWithdrawIterator is returned from FilterEmergencyWithdraw and is used to iterate over the raw logs and unpacked data for EmergencyWithdraw events raised by the Masterchef contract.

func (*MasterchefEmergencyWithdrawIterator) Close

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

func (*MasterchefEmergencyWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MasterchefEmergencyWithdrawIterator) 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 MasterchefFilterer

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

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

func NewMasterchefFilterer

func NewMasterchefFilterer(address common.Address, filterer bind.ContractFilterer) (*MasterchefFilterer, error)

NewMasterchefFilterer creates a new log filterer instance of Masterchef, bound to a specific deployed contract.

func (*MasterchefFilterer) FilterDeposit

func (_Masterchef *MasterchefFilterer) FilterDeposit(opts *bind.FilterOpts, user []common.Address, pid []*big.Int) (*MasterchefDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.

Solidity: event Deposit(address indexed user, uint256 indexed pid, uint256 amount)

func (*MasterchefFilterer) FilterEmergencyWithdraw

func (_Masterchef *MasterchefFilterer) FilterEmergencyWithdraw(opts *bind.FilterOpts, user []common.Address, pid []*big.Int) (*MasterchefEmergencyWithdrawIterator, error)

FilterEmergencyWithdraw is a free log retrieval operation binding the contract event 0xbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595.

Solidity: event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount)

func (*MasterchefFilterer) FilterOwnershipTransferred

func (_Masterchef *MasterchefFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MasterchefOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*MasterchefFilterer) FilterWithdraw

func (_Masterchef *MasterchefFilterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address, pid []*big.Int) (*MasterchefWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.

Solidity: event Withdraw(address indexed user, uint256 indexed pid, uint256 amount)

func (*MasterchefFilterer) ParseDeposit

func (_Masterchef *MasterchefFilterer) ParseDeposit(log types.Log) (*MasterchefDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.

Solidity: event Deposit(address indexed user, uint256 indexed pid, uint256 amount)

func (*MasterchefFilterer) ParseEmergencyWithdraw

func (_Masterchef *MasterchefFilterer) ParseEmergencyWithdraw(log types.Log) (*MasterchefEmergencyWithdraw, error)

ParseEmergencyWithdraw is a log parse operation binding the contract event 0xbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595.

Solidity: event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount)

func (*MasterchefFilterer) ParseOwnershipTransferred

func (_Masterchef *MasterchefFilterer) ParseOwnershipTransferred(log types.Log) (*MasterchefOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*MasterchefFilterer) ParseWithdraw

func (_Masterchef *MasterchefFilterer) ParseWithdraw(log types.Log) (*MasterchefWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.

Solidity: event Withdraw(address indexed user, uint256 indexed pid, uint256 amount)

func (*MasterchefFilterer) WatchDeposit

func (_Masterchef *MasterchefFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *MasterchefDeposit, user []common.Address, pid []*big.Int) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.

Solidity: event Deposit(address indexed user, uint256 indexed pid, uint256 amount)

func (*MasterchefFilterer) WatchEmergencyWithdraw

func (_Masterchef *MasterchefFilterer) WatchEmergencyWithdraw(opts *bind.WatchOpts, sink chan<- *MasterchefEmergencyWithdraw, user []common.Address, pid []*big.Int) (event.Subscription, error)

WatchEmergencyWithdraw is a free log subscription operation binding the contract event 0xbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595.

Solidity: event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount)

func (*MasterchefFilterer) WatchOwnershipTransferred

func (_Masterchef *MasterchefFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MasterchefOwnershipTransferred, 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 (*MasterchefFilterer) WatchWithdraw

func (_Masterchef *MasterchefFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *MasterchefWithdraw, user []common.Address, pid []*big.Int) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.

Solidity: event Withdraw(address indexed user, uint256 indexed pid, uint256 amount)

type MasterchefOwnershipTransferred

type MasterchefOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

MasterchefOwnershipTransferred represents a OwnershipTransferred event raised by the Masterchef contract.

type MasterchefOwnershipTransferredIterator

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

MasterchefOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Masterchef contract.

func (*MasterchefOwnershipTransferredIterator) Close

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

func (*MasterchefOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MasterchefOwnershipTransferredIterator) 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 MasterchefRaw

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

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

func (*MasterchefRaw) Call

func (_Masterchef *MasterchefRaw) 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 (*MasterchefRaw) Transact

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

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

func (*MasterchefRaw) Transfer

func (_Masterchef *MasterchefRaw) 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 MasterchefSession

type MasterchefSession struct {
	Contract     *Masterchef       // 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
}

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

func (*MasterchefSession) Add

func (_Masterchef *MasterchefSession) Add(_allocPoint *big.Int, _lpToken common.Address, _withUpdate bool) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0x1eaaa045.

Solidity: function add(uint256 _allocPoint, address _lpToken, bool _withUpdate) returns()

func (*MasterchefSession) BONUSMULTIPLIER

func (_Masterchef *MasterchefSession) BONUSMULTIPLIER() (*big.Int, error)

BONUSMULTIPLIER is a free data retrieval call binding the contract method 0x8aa28550.

Solidity: function BONUS_MULTIPLIER() view returns(uint256)

func (*MasterchefSession) Cake

func (_Masterchef *MasterchefSession) Cake() (common.Address, error)

Cake is a free data retrieval call binding the contract method 0xdce17484.

Solidity: function cake() view returns(address)

func (*MasterchefSession) CakePerBlock

func (_Masterchef *MasterchefSession) CakePerBlock() (*big.Int, error)

CakePerBlock is a free data retrieval call binding the contract method 0x0755e0b6.

Solidity: function cakePerBlock() view returns(uint256)

func (*MasterchefSession) Deposit

func (_Masterchef *MasterchefSession) Deposit(_pid *big.Int, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(uint256 _pid, uint256 _amount) returns()

func (*MasterchefSession) Dev

func (_Masterchef *MasterchefSession) Dev(_devaddr common.Address) (*types.Transaction, error)

Dev is a paid mutator transaction binding the contract method 0x8d88a90e.

Solidity: function dev(address _devaddr) returns()

func (*MasterchefSession) Devaddr

func (_Masterchef *MasterchefSession) Devaddr() (common.Address, error)

Devaddr is a free data retrieval call binding the contract method 0xd49e77cd.

Solidity: function devaddr() view returns(address)

func (*MasterchefSession) EmergencyWithdraw

func (_Masterchef *MasterchefSession) EmergencyWithdraw(_pid *big.Int) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x5312ea8e.

Solidity: function emergencyWithdraw(uint256 _pid) returns()

func (*MasterchefSession) EnterStaking

func (_Masterchef *MasterchefSession) EnterStaking(_amount *big.Int) (*types.Transaction, error)

EnterStaking is a paid mutator transaction binding the contract method 0x41441d3b.

Solidity: function enterStaking(uint256 _amount) returns()

func (*MasterchefSession) GetMultiplier

func (_Masterchef *MasterchefSession) GetMultiplier(_from *big.Int, _to *big.Int) (*big.Int, error)

GetMultiplier is a free data retrieval call binding the contract method 0x8dbb1e3a.

Solidity: function getMultiplier(uint256 _from, uint256 _to) view returns(uint256)

func (*MasterchefSession) LeaveStaking

func (_Masterchef *MasterchefSession) LeaveStaking(_amount *big.Int) (*types.Transaction, error)

LeaveStaking is a paid mutator transaction binding the contract method 0x1058d281.

Solidity: function leaveStaking(uint256 _amount) returns()

func (*MasterchefSession) MassUpdatePools

func (_Masterchef *MasterchefSession) MassUpdatePools() (*types.Transaction, error)

MassUpdatePools is a paid mutator transaction binding the contract method 0x630b5ba1.

Solidity: function massUpdatePools() returns()

func (*MasterchefSession) Migrate

func (_Masterchef *MasterchefSession) Migrate(_pid *big.Int) (*types.Transaction, error)

Migrate is a paid mutator transaction binding the contract method 0x454b0608.

Solidity: function migrate(uint256 _pid) returns()

func (*MasterchefSession) Migrator

func (_Masterchef *MasterchefSession) Migrator() (common.Address, error)

Migrator is a free data retrieval call binding the contract method 0x7cd07e47.

Solidity: function migrator() view returns(address)

func (*MasterchefSession) Owner

func (_Masterchef *MasterchefSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MasterchefSession) PendingCake

func (_Masterchef *MasterchefSession) PendingCake(_pid *big.Int, _user common.Address) (*big.Int, error)

PendingCake is a free data retrieval call binding the contract method 0x1175a1dd.

Solidity: function pendingCake(uint256 _pid, address _user) view returns(uint256)

func (*MasterchefSession) PoolInfo

func (_Masterchef *MasterchefSession) PoolInfo(arg0 *big.Int) (struct {
	LpToken         common.Address
	AllocPoint      *big.Int
	LastRewardBlock *big.Int
	AccCakePerShare *big.Int
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(address lpToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accCakePerShare)

func (*MasterchefSession) PoolLength

func (_Masterchef *MasterchefSession) PoolLength() (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256)

func (*MasterchefSession) RenounceOwnership

func (_Masterchef *MasterchefSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*MasterchefSession) Set

func (_Masterchef *MasterchefSession) Set(_pid *big.Int, _allocPoint *big.Int, _withUpdate bool) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x64482f79.

Solidity: function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) returns()

func (*MasterchefSession) SetMigrator

func (_Masterchef *MasterchefSession) SetMigrator(_migrator common.Address) (*types.Transaction, error)

SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.

Solidity: function setMigrator(address _migrator) returns()

func (*MasterchefSession) StartBlock

func (_Masterchef *MasterchefSession) StartBlock() (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() view returns(uint256)

func (*MasterchefSession) Syrup

func (_Masterchef *MasterchefSession) Syrup() (common.Address, error)

Syrup is a free data retrieval call binding the contract method 0x86a952c4.

Solidity: function syrup() view returns(address)

func (*MasterchefSession) TotalAllocPoint

func (_Masterchef *MasterchefSession) TotalAllocPoint() (*big.Int, error)

TotalAllocPoint is a free data retrieval call binding the contract method 0x17caf6f1.

Solidity: function totalAllocPoint() view returns(uint256)

func (*MasterchefSession) TransferOwnership

func (_Masterchef *MasterchefSession) 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 (*MasterchefSession) UpdateMultiplier

func (_Masterchef *MasterchefSession) UpdateMultiplier(multiplierNumber *big.Int) (*types.Transaction, error)

UpdateMultiplier is a paid mutator transaction binding the contract method 0x5ffe6146.

Solidity: function updateMultiplier(uint256 multiplierNumber) returns()

func (*MasterchefSession) UpdatePool

func (_Masterchef *MasterchefSession) UpdatePool(_pid *big.Int) (*types.Transaction, error)

UpdatePool is a paid mutator transaction binding the contract method 0x51eb05a6.

Solidity: function updatePool(uint256 _pid) returns()

func (*MasterchefSession) UserInfo

func (_Masterchef *MasterchefSession) UserInfo(arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 amount, uint256 rewardDebt)

func (*MasterchefSession) Withdraw

func (_Masterchef *MasterchefSession) Withdraw(_pid *big.Int, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 _pid, uint256 _amount) returns()

type MasterchefTransactor

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

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

func NewMasterchefTransactor

func NewMasterchefTransactor(address common.Address, transactor bind.ContractTransactor) (*MasterchefTransactor, error)

NewMasterchefTransactor creates a new write-only instance of Masterchef, bound to a specific deployed contract.

func (*MasterchefTransactor) Add

func (_Masterchef *MasterchefTransactor) Add(opts *bind.TransactOpts, _allocPoint *big.Int, _lpToken common.Address, _withUpdate bool) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0x1eaaa045.

Solidity: function add(uint256 _allocPoint, address _lpToken, bool _withUpdate) returns()

func (*MasterchefTransactor) Deposit

func (_Masterchef *MasterchefTransactor) Deposit(opts *bind.TransactOpts, _pid *big.Int, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(uint256 _pid, uint256 _amount) returns()

func (*MasterchefTransactor) Dev

func (_Masterchef *MasterchefTransactor) Dev(opts *bind.TransactOpts, _devaddr common.Address) (*types.Transaction, error)

Dev is a paid mutator transaction binding the contract method 0x8d88a90e.

Solidity: function dev(address _devaddr) returns()

func (*MasterchefTransactor) EmergencyWithdraw

func (_Masterchef *MasterchefTransactor) EmergencyWithdraw(opts *bind.TransactOpts, _pid *big.Int) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x5312ea8e.

Solidity: function emergencyWithdraw(uint256 _pid) returns()

func (*MasterchefTransactor) EnterStaking

func (_Masterchef *MasterchefTransactor) EnterStaking(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

EnterStaking is a paid mutator transaction binding the contract method 0x41441d3b.

Solidity: function enterStaking(uint256 _amount) returns()

func (*MasterchefTransactor) LeaveStaking

func (_Masterchef *MasterchefTransactor) LeaveStaking(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

LeaveStaking is a paid mutator transaction binding the contract method 0x1058d281.

Solidity: function leaveStaking(uint256 _amount) returns()

func (*MasterchefTransactor) MassUpdatePools

func (_Masterchef *MasterchefTransactor) MassUpdatePools(opts *bind.TransactOpts) (*types.Transaction, error)

MassUpdatePools is a paid mutator transaction binding the contract method 0x630b5ba1.

Solidity: function massUpdatePools() returns()

func (*MasterchefTransactor) Migrate

func (_Masterchef *MasterchefTransactor) Migrate(opts *bind.TransactOpts, _pid *big.Int) (*types.Transaction, error)

Migrate is a paid mutator transaction binding the contract method 0x454b0608.

Solidity: function migrate(uint256 _pid) returns()

func (*MasterchefTransactor) RenounceOwnership

func (_Masterchef *MasterchefTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*MasterchefTransactor) Set

func (_Masterchef *MasterchefTransactor) Set(opts *bind.TransactOpts, _pid *big.Int, _allocPoint *big.Int, _withUpdate bool) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x64482f79.

Solidity: function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) returns()

func (*MasterchefTransactor) SetMigrator

func (_Masterchef *MasterchefTransactor) SetMigrator(opts *bind.TransactOpts, _migrator common.Address) (*types.Transaction, error)

SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.

Solidity: function setMigrator(address _migrator) returns()

func (*MasterchefTransactor) TransferOwnership

func (_Masterchef *MasterchefTransactor) 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 (*MasterchefTransactor) UpdateMultiplier

func (_Masterchef *MasterchefTransactor) UpdateMultiplier(opts *bind.TransactOpts, multiplierNumber *big.Int) (*types.Transaction, error)

UpdateMultiplier is a paid mutator transaction binding the contract method 0x5ffe6146.

Solidity: function updateMultiplier(uint256 multiplierNumber) returns()

func (*MasterchefTransactor) UpdatePool

func (_Masterchef *MasterchefTransactor) UpdatePool(opts *bind.TransactOpts, _pid *big.Int) (*types.Transaction, error)

UpdatePool is a paid mutator transaction binding the contract method 0x51eb05a6.

Solidity: function updatePool(uint256 _pid) returns()

func (*MasterchefTransactor) Withdraw

func (_Masterchef *MasterchefTransactor) Withdraw(opts *bind.TransactOpts, _pid *big.Int, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 _pid, uint256 _amount) returns()

type MasterchefTransactorRaw

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

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

func (*MasterchefTransactorRaw) Transact

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

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

func (*MasterchefTransactorRaw) Transfer

func (_Masterchef *MasterchefTransactorRaw) 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 MasterchefTransactorSession

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

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

func (*MasterchefTransactorSession) Add

func (_Masterchef *MasterchefTransactorSession) Add(_allocPoint *big.Int, _lpToken common.Address, _withUpdate bool) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0x1eaaa045.

Solidity: function add(uint256 _allocPoint, address _lpToken, bool _withUpdate) returns()

func (*MasterchefTransactorSession) Deposit

func (_Masterchef *MasterchefTransactorSession) Deposit(_pid *big.Int, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(uint256 _pid, uint256 _amount) returns()

func (*MasterchefTransactorSession) Dev

func (_Masterchef *MasterchefTransactorSession) Dev(_devaddr common.Address) (*types.Transaction, error)

Dev is a paid mutator transaction binding the contract method 0x8d88a90e.

Solidity: function dev(address _devaddr) returns()

func (*MasterchefTransactorSession) EmergencyWithdraw

func (_Masterchef *MasterchefTransactorSession) EmergencyWithdraw(_pid *big.Int) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x5312ea8e.

Solidity: function emergencyWithdraw(uint256 _pid) returns()

func (*MasterchefTransactorSession) EnterStaking

func (_Masterchef *MasterchefTransactorSession) EnterStaking(_amount *big.Int) (*types.Transaction, error)

EnterStaking is a paid mutator transaction binding the contract method 0x41441d3b.

Solidity: function enterStaking(uint256 _amount) returns()

func (*MasterchefTransactorSession) LeaveStaking

func (_Masterchef *MasterchefTransactorSession) LeaveStaking(_amount *big.Int) (*types.Transaction, error)

LeaveStaking is a paid mutator transaction binding the contract method 0x1058d281.

Solidity: function leaveStaking(uint256 _amount) returns()

func (*MasterchefTransactorSession) MassUpdatePools

func (_Masterchef *MasterchefTransactorSession) MassUpdatePools() (*types.Transaction, error)

MassUpdatePools is a paid mutator transaction binding the contract method 0x630b5ba1.

Solidity: function massUpdatePools() returns()

func (*MasterchefTransactorSession) Migrate

func (_Masterchef *MasterchefTransactorSession) Migrate(_pid *big.Int) (*types.Transaction, error)

Migrate is a paid mutator transaction binding the contract method 0x454b0608.

Solidity: function migrate(uint256 _pid) returns()

func (*MasterchefTransactorSession) RenounceOwnership

func (_Masterchef *MasterchefTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*MasterchefTransactorSession) Set

func (_Masterchef *MasterchefTransactorSession) Set(_pid *big.Int, _allocPoint *big.Int, _withUpdate bool) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x64482f79.

Solidity: function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) returns()

func (*MasterchefTransactorSession) SetMigrator

func (_Masterchef *MasterchefTransactorSession) SetMigrator(_migrator common.Address) (*types.Transaction, error)

SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.

Solidity: function setMigrator(address _migrator) returns()

func (*MasterchefTransactorSession) TransferOwnership

func (_Masterchef *MasterchefTransactorSession) 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 (*MasterchefTransactorSession) UpdateMultiplier

func (_Masterchef *MasterchefTransactorSession) UpdateMultiplier(multiplierNumber *big.Int) (*types.Transaction, error)

UpdateMultiplier is a paid mutator transaction binding the contract method 0x5ffe6146.

Solidity: function updateMultiplier(uint256 multiplierNumber) returns()

func (*MasterchefTransactorSession) UpdatePool

func (_Masterchef *MasterchefTransactorSession) UpdatePool(_pid *big.Int) (*types.Transaction, error)

UpdatePool is a paid mutator transaction binding the contract method 0x51eb05a6.

Solidity: function updatePool(uint256 _pid) returns()

func (*MasterchefTransactorSession) Withdraw

func (_Masterchef *MasterchefTransactorSession) Withdraw(_pid *big.Int, _amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 _pid, uint256 _amount) returns()

type MasterchefWithdraw

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

MasterchefWithdraw represents a Withdraw event raised by the Masterchef contract.

type MasterchefWithdrawIterator

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

MasterchefWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Masterchef contract.

func (*MasterchefWithdrawIterator) Close

func (it *MasterchefWithdrawIterator) Close() error

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

func (*MasterchefWithdrawIterator) Error

func (it *MasterchefWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MasterchefWithdrawIterator) Next

func (it *MasterchefWithdrawIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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