platypusChefV2

package
v0.0.3-less-vector-pools Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlatypusChefV2ABI = PlatypusChefV2MetaData.ABI

PlatypusChefV2ABI is the input ABI used to generate the binding from. Deprecated: Use PlatypusChefV2MetaData.ABI instead.

View Source
var PlatypusChefV2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_baseAllocPoint\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_lpToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_rewarder\",\"type\":\"address\"}],\"name\":\"add\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"claimablePtp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"depositFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dialutingRepartition\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"emergencyPtpWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"emergencyWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ptp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_vePtp\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_ptpPerSec\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_dialutingRepartition\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_startTimestamp\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"massUpdatePools\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxPoolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_pids\",\"type\":\"uint256[]\"}],\"name\":\"migrate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_pids\",\"type\":\"uint256[]\"}],\"name\":\"multiClaim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newMasterPlatypus\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonDialutingRepartition\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ownerCandidate\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"pendingTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"pendingPtp\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"bonusTokenAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"bonusTokenSymbol\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"pendingBonusToken\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"}],\"name\":\"poolAdjustFactor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"poolInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"baseAllocPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastRewardTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accPtpPerShare\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"rewarder\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sumOfFactors\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accPtpPerFactorShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"adjustedAllocPoint\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"proposeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ptp\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ptpPerSec\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"rewarderBonusTokenInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"bonusTokenAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"bonusTokenSymbol\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_baseAllocPoint\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_rewarder\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"overwrite\",\"type\":\"bool\"}],\"name\":\"set\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_maxPoolLength\",\"type\":\"uint256\"}],\"name\":\"setMaxPoolLength\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newMasterPlatypus\",\"type\":\"address\"}],\"name\":\"setNewMasterPlatypus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newVePtp\",\"type\":\"address\"}],\"name\":\"setVePtp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalAdjustedAllocPoint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalBaseAllocPoint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_ptpPerSec\",\"type\":\"uint256\"}],\"name\":\"updateEmissionRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_dialutingRepartition\",\"type\":\"uint256\"}],\"name\":\"updateEmissionRepartition\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_newVePtpBalance\",\"type\":\"uint256\"}],\"name\":\"updateFactor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"updatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDebt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"factor\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vePtp\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

PlatypusChefV2MetaData contains all meta data concerning the PlatypusChefV2 contract.

Functions

This section is empty.

Types

type PlatypusChefV2

type PlatypusChefV2 struct {
	PlatypusChefV2Caller     // Read-only binding to the contract
	PlatypusChefV2Transactor // Write-only binding to the contract
	PlatypusChefV2Filterer   // Log filterer for contract events
}

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

func NewPlatypusChefV2

func NewPlatypusChefV2(address common.Address, backend bind.ContractBackend) (*PlatypusChefV2, error)

NewPlatypusChefV2 creates a new instance of PlatypusChefV2, bound to a specific deployed contract.

type PlatypusChefV2Caller

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

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

func NewPlatypusChefV2Caller

func NewPlatypusChefV2Caller(address common.Address, caller bind.ContractCaller) (*PlatypusChefV2Caller, error)

NewPlatypusChefV2Caller creates a new read-only instance of PlatypusChefV2, bound to a specific deployed contract.

func (*PlatypusChefV2Caller) ClaimablePtp

func (_PlatypusChefV2 *PlatypusChefV2Caller) ClaimablePtp(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (*big.Int, error)

ClaimablePtp is a free data retrieval call binding the contract method 0x8b4d83a3.

Solidity: function claimablePtp(uint256 , address ) view returns(uint256)

func (*PlatypusChefV2Caller) DialutingRepartition

func (_PlatypusChefV2 *PlatypusChefV2Caller) DialutingRepartition(opts *bind.CallOpts) (*big.Int, error)

DialutingRepartition is a free data retrieval call binding the contract method 0x05ed1de4.

Solidity: function dialutingRepartition() view returns(uint256)

func (*PlatypusChefV2Caller) MaxPoolLength

func (_PlatypusChefV2 *PlatypusChefV2Caller) MaxPoolLength(opts *bind.CallOpts) (*big.Int, error)

MaxPoolLength is a free data retrieval call binding the contract method 0x7b62a738.

Solidity: function maxPoolLength() view returns(uint256)

func (*PlatypusChefV2Caller) NewMasterPlatypus

func (_PlatypusChefV2 *PlatypusChefV2Caller) NewMasterPlatypus(opts *bind.CallOpts) (common.Address, error)

NewMasterPlatypus is a free data retrieval call binding the contract method 0x01126816.

Solidity: function newMasterPlatypus() view returns(address)

func (*PlatypusChefV2Caller) NonDialutingRepartition

func (_PlatypusChefV2 *PlatypusChefV2Caller) NonDialutingRepartition(opts *bind.CallOpts) (*big.Int, error)

NonDialutingRepartition is a free data retrieval call binding the contract method 0xf87bbc56.

Solidity: function nonDialutingRepartition() view returns(uint256)

func (*PlatypusChefV2Caller) Owner

func (_PlatypusChefV2 *PlatypusChefV2Caller) 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 (*PlatypusChefV2Caller) OwnerCandidate

func (_PlatypusChefV2 *PlatypusChefV2Caller) OwnerCandidate(opts *bind.CallOpts) (common.Address, error)

OwnerCandidate is a free data retrieval call binding the contract method 0x5f504a82.

Solidity: function ownerCandidate() view returns(address)

func (*PlatypusChefV2Caller) Paused

func (_PlatypusChefV2 *PlatypusChefV2Caller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*PlatypusChefV2Caller) PendingTokens

func (_PlatypusChefV2 *PlatypusChefV2Caller) PendingTokens(opts *bind.CallOpts, _pid *big.Int, _user common.Address) (struct {
	PendingPtp        *big.Int
	BonusTokenAddress common.Address
	BonusTokenSymbol  string
	PendingBonusToken *big.Int
}, error)

PendingTokens is a free data retrieval call binding the contract method 0xffcd4263.

Solidity: function pendingTokens(uint256 _pid, address _user) view returns(uint256 pendingPtp, address bonusTokenAddress, string bonusTokenSymbol, uint256 pendingBonusToken)

func (*PlatypusChefV2Caller) PoolAdjustFactor

func (_PlatypusChefV2 *PlatypusChefV2Caller) PoolAdjustFactor(opts *bind.CallOpts, pid *big.Int) (*big.Int, error)

PoolAdjustFactor is a free data retrieval call binding the contract method 0x2b685580.

Solidity: function poolAdjustFactor(uint256 pid) view returns(uint256)

func (*PlatypusChefV2Caller) PoolInfo

func (_PlatypusChefV2 *PlatypusChefV2Caller) PoolInfo(opts *bind.CallOpts, arg0 *big.Int) (struct {
	LpToken              common.Address
	BaseAllocPoint       *big.Int
	LastRewardTimestamp  *big.Int
	AccPtpPerShare       *big.Int
	Rewarder             common.Address
	SumOfFactors         *big.Int
	AccPtpPerFactorShare *big.Int
	AdjustedAllocPoint   *big.Int
}, error)

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

Solidity: function poolInfo(uint256 ) view returns(address lpToken, uint256 baseAllocPoint, uint256 lastRewardTimestamp, uint256 accPtpPerShare, address rewarder, uint256 sumOfFactors, uint256 accPtpPerFactorShare, uint256 adjustedAllocPoint)

func (*PlatypusChefV2Caller) PoolLength

func (_PlatypusChefV2 *PlatypusChefV2Caller) 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 (*PlatypusChefV2Caller) Ptp

func (_PlatypusChefV2 *PlatypusChefV2Caller) Ptp(opts *bind.CallOpts) (common.Address, error)

Ptp is a free data retrieval call binding the contract method 0x6af66772.

Solidity: function ptp() view returns(address)

func (*PlatypusChefV2Caller) PtpPerSec

func (_PlatypusChefV2 *PlatypusChefV2Caller) PtpPerSec(opts *bind.CallOpts) (*big.Int, error)

PtpPerSec is a free data retrieval call binding the contract method 0x9702d3e2.

Solidity: function ptpPerSec() view returns(uint256)

func (*PlatypusChefV2Caller) RewarderBonusTokenInfo

func (_PlatypusChefV2 *PlatypusChefV2Caller) RewarderBonusTokenInfo(opts *bind.CallOpts, _pid *big.Int) (struct {
	BonusTokenAddress common.Address
	BonusTokenSymbol  string
}, error)

RewarderBonusTokenInfo is a free data retrieval call binding the contract method 0xbc70fdbc.

Solidity: function rewarderBonusTokenInfo(uint256 _pid) view returns(address bonusTokenAddress, string bonusTokenSymbol)

func (*PlatypusChefV2Caller) StartTimestamp

func (_PlatypusChefV2 *PlatypusChefV2Caller) StartTimestamp(opts *bind.CallOpts) (*big.Int, error)

StartTimestamp is a free data retrieval call binding the contract method 0xe6fd48bc.

Solidity: function startTimestamp() view returns(uint256)

func (*PlatypusChefV2Caller) TotalAdjustedAllocPoint

func (_PlatypusChefV2 *PlatypusChefV2Caller) TotalAdjustedAllocPoint(opts *bind.CallOpts) (*big.Int, error)

TotalAdjustedAllocPoint is a free data retrieval call binding the contract method 0x91ea1d68.

Solidity: function totalAdjustedAllocPoint() view returns(uint256)

func (*PlatypusChefV2Caller) TotalBaseAllocPoint

func (_PlatypusChefV2 *PlatypusChefV2Caller) TotalBaseAllocPoint(opts *bind.CallOpts) (*big.Int, error)

TotalBaseAllocPoint is a free data retrieval call binding the contract method 0x33e045fc.

Solidity: function totalBaseAllocPoint() view returns(uint256)

func (*PlatypusChefV2Caller) UserInfo

func (_PlatypusChefV2 *PlatypusChefV2Caller) UserInfo(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
	Factor     *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, uint256 factor)

func (*PlatypusChefV2Caller) VePtp

func (_PlatypusChefV2 *PlatypusChefV2Caller) VePtp(opts *bind.CallOpts) (common.Address, error)

VePtp is a free data retrieval call binding the contract method 0x82c780a1.

Solidity: function vePtp() view returns(address)

type PlatypusChefV2CallerRaw

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

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

func (*PlatypusChefV2CallerRaw) Call

func (_PlatypusChefV2 *PlatypusChefV2CallerRaw) 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 PlatypusChefV2CallerSession

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

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

func (*PlatypusChefV2CallerSession) ClaimablePtp

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) ClaimablePtp(arg0 *big.Int, arg1 common.Address) (*big.Int, error)

ClaimablePtp is a free data retrieval call binding the contract method 0x8b4d83a3.

Solidity: function claimablePtp(uint256 , address ) view returns(uint256)

func (*PlatypusChefV2CallerSession) DialutingRepartition

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) DialutingRepartition() (*big.Int, error)

DialutingRepartition is a free data retrieval call binding the contract method 0x05ed1de4.

Solidity: function dialutingRepartition() view returns(uint256)

func (*PlatypusChefV2CallerSession) MaxPoolLength

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) MaxPoolLength() (*big.Int, error)

MaxPoolLength is a free data retrieval call binding the contract method 0x7b62a738.

Solidity: function maxPoolLength() view returns(uint256)

func (*PlatypusChefV2CallerSession) NewMasterPlatypus

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) NewMasterPlatypus() (common.Address, error)

NewMasterPlatypus is a free data retrieval call binding the contract method 0x01126816.

Solidity: function newMasterPlatypus() view returns(address)

func (*PlatypusChefV2CallerSession) NonDialutingRepartition

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) NonDialutingRepartition() (*big.Int, error)

NonDialutingRepartition is a free data retrieval call binding the contract method 0xf87bbc56.

Solidity: function nonDialutingRepartition() view returns(uint256)

func (*PlatypusChefV2CallerSession) Owner

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PlatypusChefV2CallerSession) OwnerCandidate

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) OwnerCandidate() (common.Address, error)

OwnerCandidate is a free data retrieval call binding the contract method 0x5f504a82.

Solidity: function ownerCandidate() view returns(address)

func (*PlatypusChefV2CallerSession) Paused

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*PlatypusChefV2CallerSession) PendingTokens

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) PendingTokens(_pid *big.Int, _user common.Address) (struct {
	PendingPtp        *big.Int
	BonusTokenAddress common.Address
	BonusTokenSymbol  string
	PendingBonusToken *big.Int
}, error)

PendingTokens is a free data retrieval call binding the contract method 0xffcd4263.

Solidity: function pendingTokens(uint256 _pid, address _user) view returns(uint256 pendingPtp, address bonusTokenAddress, string bonusTokenSymbol, uint256 pendingBonusToken)

func (*PlatypusChefV2CallerSession) PoolAdjustFactor

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) PoolAdjustFactor(pid *big.Int) (*big.Int, error)

PoolAdjustFactor is a free data retrieval call binding the contract method 0x2b685580.

Solidity: function poolAdjustFactor(uint256 pid) view returns(uint256)

func (*PlatypusChefV2CallerSession) PoolInfo

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) PoolInfo(arg0 *big.Int) (struct {
	LpToken              common.Address
	BaseAllocPoint       *big.Int
	LastRewardTimestamp  *big.Int
	AccPtpPerShare       *big.Int
	Rewarder             common.Address
	SumOfFactors         *big.Int
	AccPtpPerFactorShare *big.Int
	AdjustedAllocPoint   *big.Int
}, error)

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

Solidity: function poolInfo(uint256 ) view returns(address lpToken, uint256 baseAllocPoint, uint256 lastRewardTimestamp, uint256 accPtpPerShare, address rewarder, uint256 sumOfFactors, uint256 accPtpPerFactorShare, uint256 adjustedAllocPoint)

func (*PlatypusChefV2CallerSession) PoolLength

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) PoolLength() (*big.Int, error)

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

Solidity: function poolLength() view returns(uint256)

func (*PlatypusChefV2CallerSession) Ptp

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) Ptp() (common.Address, error)

Ptp is a free data retrieval call binding the contract method 0x6af66772.

Solidity: function ptp() view returns(address)

func (*PlatypusChefV2CallerSession) PtpPerSec

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) PtpPerSec() (*big.Int, error)

PtpPerSec is a free data retrieval call binding the contract method 0x9702d3e2.

Solidity: function ptpPerSec() view returns(uint256)

func (*PlatypusChefV2CallerSession) RewarderBonusTokenInfo

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) RewarderBonusTokenInfo(_pid *big.Int) (struct {
	BonusTokenAddress common.Address
	BonusTokenSymbol  string
}, error)

RewarderBonusTokenInfo is a free data retrieval call binding the contract method 0xbc70fdbc.

Solidity: function rewarderBonusTokenInfo(uint256 _pid) view returns(address bonusTokenAddress, string bonusTokenSymbol)

func (*PlatypusChefV2CallerSession) StartTimestamp

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) StartTimestamp() (*big.Int, error)

StartTimestamp is a free data retrieval call binding the contract method 0xe6fd48bc.

Solidity: function startTimestamp() view returns(uint256)

func (*PlatypusChefV2CallerSession) TotalAdjustedAllocPoint

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) TotalAdjustedAllocPoint() (*big.Int, error)

TotalAdjustedAllocPoint is a free data retrieval call binding the contract method 0x91ea1d68.

Solidity: function totalAdjustedAllocPoint() view returns(uint256)

func (*PlatypusChefV2CallerSession) TotalBaseAllocPoint

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) TotalBaseAllocPoint() (*big.Int, error)

TotalBaseAllocPoint is a free data retrieval call binding the contract method 0x33e045fc.

Solidity: function totalBaseAllocPoint() view returns(uint256)

func (*PlatypusChefV2CallerSession) UserInfo

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) UserInfo(arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
	Factor     *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, uint256 factor)

func (*PlatypusChefV2CallerSession) VePtp

func (_PlatypusChefV2 *PlatypusChefV2CallerSession) VePtp() (common.Address, error)

VePtp is a free data retrieval call binding the contract method 0x82c780a1.

Solidity: function vePtp() view returns(address)

type PlatypusChefV2Filterer

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

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

func NewPlatypusChefV2Filterer

func NewPlatypusChefV2Filterer(address common.Address, filterer bind.ContractFilterer) (*PlatypusChefV2Filterer, error)

NewPlatypusChefV2Filterer creates a new log filterer instance of PlatypusChefV2, bound to a specific deployed contract.

type PlatypusChefV2Raw

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

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

func (*PlatypusChefV2Raw) Call

func (_PlatypusChefV2 *PlatypusChefV2Raw) 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 (*PlatypusChefV2Raw) Transact

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

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

func (*PlatypusChefV2Raw) Transfer

func (_PlatypusChefV2 *PlatypusChefV2Raw) 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 PlatypusChefV2Session

type PlatypusChefV2Session struct {
	Contract     *PlatypusChefV2   // 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
}

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

func (*PlatypusChefV2Session) AcceptOwnership

func (_PlatypusChefV2 *PlatypusChefV2Session) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*PlatypusChefV2Session) Add

func (_PlatypusChefV2 *PlatypusChefV2Session) Add(_baseAllocPoint *big.Int, _lpToken common.Address, _rewarder common.Address) (*types.Transaction, error)

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

Solidity: function add(uint256 _baseAllocPoint, address _lpToken, address _rewarder) returns()

func (*PlatypusChefV2Session) ClaimablePtp

func (_PlatypusChefV2 *PlatypusChefV2Session) ClaimablePtp(arg0 *big.Int, arg1 common.Address) (*big.Int, error)

ClaimablePtp is a free data retrieval call binding the contract method 0x8b4d83a3.

Solidity: function claimablePtp(uint256 , address ) view returns(uint256)

func (*PlatypusChefV2Session) Deposit

func (_PlatypusChefV2 *PlatypusChefV2Session) 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(uint256, uint256)

func (*PlatypusChefV2Session) DepositFor

func (_PlatypusChefV2 *PlatypusChefV2Session) DepositFor(_pid *big.Int, _amount *big.Int, _user common.Address) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0x90210d7e.

Solidity: function depositFor(uint256 _pid, uint256 _amount, address _user) returns()

func (*PlatypusChefV2Session) DialutingRepartition

func (_PlatypusChefV2 *PlatypusChefV2Session) DialutingRepartition() (*big.Int, error)

DialutingRepartition is a free data retrieval call binding the contract method 0x05ed1de4.

Solidity: function dialutingRepartition() view returns(uint256)

func (*PlatypusChefV2Session) EmergencyPtpWithdraw

func (_PlatypusChefV2 *PlatypusChefV2Session) EmergencyPtpWithdraw() (*types.Transaction, error)

EmergencyPtpWithdraw is a paid mutator transaction binding the contract method 0x7dd38dcc.

Solidity: function emergencyPtpWithdraw() returns()

func (*PlatypusChefV2Session) EmergencyWithdraw

func (_PlatypusChefV2 *PlatypusChefV2Session) 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 (*PlatypusChefV2Session) Initialize

func (_PlatypusChefV2 *PlatypusChefV2Session) Initialize(_ptp common.Address, _vePtp common.Address, _ptpPerSec *big.Int, _dialutingRepartition *big.Int, _startTimestamp *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(address _ptp, address _vePtp, uint256 _ptpPerSec, uint256 _dialutingRepartition, uint256 _startTimestamp) returns()

func (*PlatypusChefV2Session) MassUpdatePools

func (_PlatypusChefV2 *PlatypusChefV2Session) MassUpdatePools() (*types.Transaction, error)

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

Solidity: function massUpdatePools() returns()

func (*PlatypusChefV2Session) MaxPoolLength

func (_PlatypusChefV2 *PlatypusChefV2Session) MaxPoolLength() (*big.Int, error)

MaxPoolLength is a free data retrieval call binding the contract method 0x7b62a738.

Solidity: function maxPoolLength() view returns(uint256)

func (*PlatypusChefV2Session) Migrate

func (_PlatypusChefV2 *PlatypusChefV2Session) Migrate(_pids []*big.Int) (*types.Transaction, error)

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

Solidity: function migrate(uint256[] _pids) returns()

func (*PlatypusChefV2Session) MultiClaim

func (_PlatypusChefV2 *PlatypusChefV2Session) MultiClaim(_pids []*big.Int) (*types.Transaction, error)

MultiClaim is a paid mutator transaction binding the contract method 0x4ed73d28.

Solidity: function multiClaim(uint256[] _pids) returns(uint256, uint256[], uint256[])

func (*PlatypusChefV2Session) NewMasterPlatypus

func (_PlatypusChefV2 *PlatypusChefV2Session) NewMasterPlatypus() (common.Address, error)

NewMasterPlatypus is a free data retrieval call binding the contract method 0x01126816.

Solidity: function newMasterPlatypus() view returns(address)

func (*PlatypusChefV2Session) NonDialutingRepartition

func (_PlatypusChefV2 *PlatypusChefV2Session) NonDialutingRepartition() (*big.Int, error)

NonDialutingRepartition is a free data retrieval call binding the contract method 0xf87bbc56.

Solidity: function nonDialutingRepartition() view returns(uint256)

func (*PlatypusChefV2Session) Owner

func (_PlatypusChefV2 *PlatypusChefV2Session) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PlatypusChefV2Session) OwnerCandidate

func (_PlatypusChefV2 *PlatypusChefV2Session) OwnerCandidate() (common.Address, error)

OwnerCandidate is a free data retrieval call binding the contract method 0x5f504a82.

Solidity: function ownerCandidate() view returns(address)

func (*PlatypusChefV2Session) Pause

func (_PlatypusChefV2 *PlatypusChefV2Session) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*PlatypusChefV2Session) Paused

func (_PlatypusChefV2 *PlatypusChefV2Session) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*PlatypusChefV2Session) PendingTokens

func (_PlatypusChefV2 *PlatypusChefV2Session) PendingTokens(_pid *big.Int, _user common.Address) (struct {
	PendingPtp        *big.Int
	BonusTokenAddress common.Address
	BonusTokenSymbol  string
	PendingBonusToken *big.Int
}, error)

PendingTokens is a free data retrieval call binding the contract method 0xffcd4263.

Solidity: function pendingTokens(uint256 _pid, address _user) view returns(uint256 pendingPtp, address bonusTokenAddress, string bonusTokenSymbol, uint256 pendingBonusToken)

func (*PlatypusChefV2Session) PoolAdjustFactor

func (_PlatypusChefV2 *PlatypusChefV2Session) PoolAdjustFactor(pid *big.Int) (*big.Int, error)

PoolAdjustFactor is a free data retrieval call binding the contract method 0x2b685580.

Solidity: function poolAdjustFactor(uint256 pid) view returns(uint256)

func (*PlatypusChefV2Session) PoolInfo

func (_PlatypusChefV2 *PlatypusChefV2Session) PoolInfo(arg0 *big.Int) (struct {
	LpToken              common.Address
	BaseAllocPoint       *big.Int
	LastRewardTimestamp  *big.Int
	AccPtpPerShare       *big.Int
	Rewarder             common.Address
	SumOfFactors         *big.Int
	AccPtpPerFactorShare *big.Int
	AdjustedAllocPoint   *big.Int
}, error)

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

Solidity: function poolInfo(uint256 ) view returns(address lpToken, uint256 baseAllocPoint, uint256 lastRewardTimestamp, uint256 accPtpPerShare, address rewarder, uint256 sumOfFactors, uint256 accPtpPerFactorShare, uint256 adjustedAllocPoint)

func (*PlatypusChefV2Session) PoolLength

func (_PlatypusChefV2 *PlatypusChefV2Session) PoolLength() (*big.Int, error)

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

Solidity: function poolLength() view returns(uint256)

func (*PlatypusChefV2Session) ProposeOwner

func (_PlatypusChefV2 *PlatypusChefV2Session) ProposeOwner(newOwner common.Address) (*types.Transaction, error)

ProposeOwner is a paid mutator transaction binding the contract method 0xb5ed298a.

Solidity: function proposeOwner(address newOwner) returns()

func (*PlatypusChefV2Session) Ptp

func (_PlatypusChefV2 *PlatypusChefV2Session) Ptp() (common.Address, error)

Ptp is a free data retrieval call binding the contract method 0x6af66772.

Solidity: function ptp() view returns(address)

func (*PlatypusChefV2Session) PtpPerSec

func (_PlatypusChefV2 *PlatypusChefV2Session) PtpPerSec() (*big.Int, error)

PtpPerSec is a free data retrieval call binding the contract method 0x9702d3e2.

Solidity: function ptpPerSec() view returns(uint256)

func (*PlatypusChefV2Session) RenounceOwnership

func (_PlatypusChefV2 *PlatypusChefV2Session) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PlatypusChefV2Session) RewarderBonusTokenInfo

func (_PlatypusChefV2 *PlatypusChefV2Session) RewarderBonusTokenInfo(_pid *big.Int) (struct {
	BonusTokenAddress common.Address
	BonusTokenSymbol  string
}, error)

RewarderBonusTokenInfo is a free data retrieval call binding the contract method 0xbc70fdbc.

Solidity: function rewarderBonusTokenInfo(uint256 _pid) view returns(address bonusTokenAddress, string bonusTokenSymbol)

func (*PlatypusChefV2Session) Set

func (_PlatypusChefV2 *PlatypusChefV2Session) Set(_pid *big.Int, _baseAllocPoint *big.Int, _rewarder common.Address, overwrite bool) (*types.Transaction, error)

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

Solidity: function set(uint256 _pid, uint256 _baseAllocPoint, address _rewarder, bool overwrite) returns()

func (*PlatypusChefV2Session) SetMaxPoolLength

func (_PlatypusChefV2 *PlatypusChefV2Session) SetMaxPoolLength(_maxPoolLength *big.Int) (*types.Transaction, error)

SetMaxPoolLength is a paid mutator transaction binding the contract method 0x53c5eb44.

Solidity: function setMaxPoolLength(uint256 _maxPoolLength) returns()

func (*PlatypusChefV2Session) SetNewMasterPlatypus

func (_PlatypusChefV2 *PlatypusChefV2Session) SetNewMasterPlatypus(_newMasterPlatypus common.Address) (*types.Transaction, error)

SetNewMasterPlatypus is a paid mutator transaction binding the contract method 0x7b261591.

Solidity: function setNewMasterPlatypus(address _newMasterPlatypus) returns()

func (*PlatypusChefV2Session) SetVePtp

func (_PlatypusChefV2 *PlatypusChefV2Session) SetVePtp(_newVePtp common.Address) (*types.Transaction, error)

SetVePtp is a paid mutator transaction binding the contract method 0x90d9c1c3.

Solidity: function setVePtp(address _newVePtp) returns()

func (*PlatypusChefV2Session) StartTimestamp

func (_PlatypusChefV2 *PlatypusChefV2Session) StartTimestamp() (*big.Int, error)

StartTimestamp is a free data retrieval call binding the contract method 0xe6fd48bc.

Solidity: function startTimestamp() view returns(uint256)

func (*PlatypusChefV2Session) TotalAdjustedAllocPoint

func (_PlatypusChefV2 *PlatypusChefV2Session) TotalAdjustedAllocPoint() (*big.Int, error)

TotalAdjustedAllocPoint is a free data retrieval call binding the contract method 0x91ea1d68.

Solidity: function totalAdjustedAllocPoint() view returns(uint256)

func (*PlatypusChefV2Session) TotalBaseAllocPoint

func (_PlatypusChefV2 *PlatypusChefV2Session) TotalBaseAllocPoint() (*big.Int, error)

TotalBaseAllocPoint is a free data retrieval call binding the contract method 0x33e045fc.

Solidity: function totalBaseAllocPoint() view returns(uint256)

func (*PlatypusChefV2Session) Unpause

func (_PlatypusChefV2 *PlatypusChefV2Session) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*PlatypusChefV2Session) UpdateEmissionRate

func (_PlatypusChefV2 *PlatypusChefV2Session) UpdateEmissionRate(_ptpPerSec *big.Int) (*types.Transaction, error)

UpdateEmissionRate is a paid mutator transaction binding the contract method 0x0ba84cd2.

Solidity: function updateEmissionRate(uint256 _ptpPerSec) returns()

func (*PlatypusChefV2Session) UpdateEmissionRepartition

func (_PlatypusChefV2 *PlatypusChefV2Session) UpdateEmissionRepartition(_dialutingRepartition *big.Int) (*types.Transaction, error)

UpdateEmissionRepartition is a paid mutator transaction binding the contract method 0xe0a4ed43.

Solidity: function updateEmissionRepartition(uint256 _dialutingRepartition) returns()

func (*PlatypusChefV2Session) UpdateFactor

func (_PlatypusChefV2 *PlatypusChefV2Session) UpdateFactor(_user common.Address, _newVePtpBalance *big.Int) (*types.Transaction, error)

UpdateFactor is a paid mutator transaction binding the contract method 0x4f00a93e.

Solidity: function updateFactor(address _user, uint256 _newVePtpBalance) returns()

func (*PlatypusChefV2Session) UpdatePool

func (_PlatypusChefV2 *PlatypusChefV2Session) 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 (*PlatypusChefV2Session) UserInfo

func (_PlatypusChefV2 *PlatypusChefV2Session) UserInfo(arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
	Factor     *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, uint256 factor)

func (*PlatypusChefV2Session) VePtp

func (_PlatypusChefV2 *PlatypusChefV2Session) VePtp() (common.Address, error)

VePtp is a free data retrieval call binding the contract method 0x82c780a1.

Solidity: function vePtp() view returns(address)

func (*PlatypusChefV2Session) Withdraw

func (_PlatypusChefV2 *PlatypusChefV2Session) 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(uint256, uint256)

type PlatypusChefV2Transactor

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

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

func NewPlatypusChefV2Transactor

func NewPlatypusChefV2Transactor(address common.Address, transactor bind.ContractTransactor) (*PlatypusChefV2Transactor, error)

NewPlatypusChefV2Transactor creates a new write-only instance of PlatypusChefV2, bound to a specific deployed contract.

func (*PlatypusChefV2Transactor) AcceptOwnership

func (_PlatypusChefV2 *PlatypusChefV2Transactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*PlatypusChefV2Transactor) Add

func (_PlatypusChefV2 *PlatypusChefV2Transactor) Add(opts *bind.TransactOpts, _baseAllocPoint *big.Int, _lpToken common.Address, _rewarder common.Address) (*types.Transaction, error)

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

Solidity: function add(uint256 _baseAllocPoint, address _lpToken, address _rewarder) returns()

func (*PlatypusChefV2Transactor) Deposit

func (_PlatypusChefV2 *PlatypusChefV2Transactor) 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(uint256, uint256)

func (*PlatypusChefV2Transactor) DepositFor

func (_PlatypusChefV2 *PlatypusChefV2Transactor) DepositFor(opts *bind.TransactOpts, _pid *big.Int, _amount *big.Int, _user common.Address) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0x90210d7e.

Solidity: function depositFor(uint256 _pid, uint256 _amount, address _user) returns()

func (*PlatypusChefV2Transactor) EmergencyPtpWithdraw

func (_PlatypusChefV2 *PlatypusChefV2Transactor) EmergencyPtpWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)

EmergencyPtpWithdraw is a paid mutator transaction binding the contract method 0x7dd38dcc.

Solidity: function emergencyPtpWithdraw() returns()

func (*PlatypusChefV2Transactor) EmergencyWithdraw

func (_PlatypusChefV2 *PlatypusChefV2Transactor) 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 (*PlatypusChefV2Transactor) Initialize

func (_PlatypusChefV2 *PlatypusChefV2Transactor) Initialize(opts *bind.TransactOpts, _ptp common.Address, _vePtp common.Address, _ptpPerSec *big.Int, _dialutingRepartition *big.Int, _startTimestamp *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(address _ptp, address _vePtp, uint256 _ptpPerSec, uint256 _dialutingRepartition, uint256 _startTimestamp) returns()

func (*PlatypusChefV2Transactor) MassUpdatePools

func (_PlatypusChefV2 *PlatypusChefV2Transactor) MassUpdatePools(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function massUpdatePools() returns()

func (*PlatypusChefV2Transactor) Migrate

func (_PlatypusChefV2 *PlatypusChefV2Transactor) Migrate(opts *bind.TransactOpts, _pids []*big.Int) (*types.Transaction, error)

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

Solidity: function migrate(uint256[] _pids) returns()

func (*PlatypusChefV2Transactor) MultiClaim

func (_PlatypusChefV2 *PlatypusChefV2Transactor) MultiClaim(opts *bind.TransactOpts, _pids []*big.Int) (*types.Transaction, error)

MultiClaim is a paid mutator transaction binding the contract method 0x4ed73d28.

Solidity: function multiClaim(uint256[] _pids) returns(uint256, uint256[], uint256[])

func (*PlatypusChefV2Transactor) Pause

func (_PlatypusChefV2 *PlatypusChefV2Transactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*PlatypusChefV2Transactor) ProposeOwner

func (_PlatypusChefV2 *PlatypusChefV2Transactor) ProposeOwner(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

ProposeOwner is a paid mutator transaction binding the contract method 0xb5ed298a.

Solidity: function proposeOwner(address newOwner) returns()

func (*PlatypusChefV2Transactor) RenounceOwnership

func (_PlatypusChefV2 *PlatypusChefV2Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PlatypusChefV2Transactor) Set

func (_PlatypusChefV2 *PlatypusChefV2Transactor) Set(opts *bind.TransactOpts, _pid *big.Int, _baseAllocPoint *big.Int, _rewarder common.Address, overwrite bool) (*types.Transaction, error)

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

Solidity: function set(uint256 _pid, uint256 _baseAllocPoint, address _rewarder, bool overwrite) returns()

func (*PlatypusChefV2Transactor) SetMaxPoolLength

func (_PlatypusChefV2 *PlatypusChefV2Transactor) SetMaxPoolLength(opts *bind.TransactOpts, _maxPoolLength *big.Int) (*types.Transaction, error)

SetMaxPoolLength is a paid mutator transaction binding the contract method 0x53c5eb44.

Solidity: function setMaxPoolLength(uint256 _maxPoolLength) returns()

func (*PlatypusChefV2Transactor) SetNewMasterPlatypus

func (_PlatypusChefV2 *PlatypusChefV2Transactor) SetNewMasterPlatypus(opts *bind.TransactOpts, _newMasterPlatypus common.Address) (*types.Transaction, error)

SetNewMasterPlatypus is a paid mutator transaction binding the contract method 0x7b261591.

Solidity: function setNewMasterPlatypus(address _newMasterPlatypus) returns()

func (*PlatypusChefV2Transactor) SetVePtp

func (_PlatypusChefV2 *PlatypusChefV2Transactor) SetVePtp(opts *bind.TransactOpts, _newVePtp common.Address) (*types.Transaction, error)

SetVePtp is a paid mutator transaction binding the contract method 0x90d9c1c3.

Solidity: function setVePtp(address _newVePtp) returns()

func (*PlatypusChefV2Transactor) Unpause

func (_PlatypusChefV2 *PlatypusChefV2Transactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*PlatypusChefV2Transactor) UpdateEmissionRate

func (_PlatypusChefV2 *PlatypusChefV2Transactor) UpdateEmissionRate(opts *bind.TransactOpts, _ptpPerSec *big.Int) (*types.Transaction, error)

UpdateEmissionRate is a paid mutator transaction binding the contract method 0x0ba84cd2.

Solidity: function updateEmissionRate(uint256 _ptpPerSec) returns()

func (*PlatypusChefV2Transactor) UpdateEmissionRepartition

func (_PlatypusChefV2 *PlatypusChefV2Transactor) UpdateEmissionRepartition(opts *bind.TransactOpts, _dialutingRepartition *big.Int) (*types.Transaction, error)

UpdateEmissionRepartition is a paid mutator transaction binding the contract method 0xe0a4ed43.

Solidity: function updateEmissionRepartition(uint256 _dialutingRepartition) returns()

func (*PlatypusChefV2Transactor) UpdateFactor

func (_PlatypusChefV2 *PlatypusChefV2Transactor) UpdateFactor(opts *bind.TransactOpts, _user common.Address, _newVePtpBalance *big.Int) (*types.Transaction, error)

UpdateFactor is a paid mutator transaction binding the contract method 0x4f00a93e.

Solidity: function updateFactor(address _user, uint256 _newVePtpBalance) returns()

func (*PlatypusChefV2Transactor) UpdatePool

func (_PlatypusChefV2 *PlatypusChefV2Transactor) 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 (*PlatypusChefV2Transactor) Withdraw

func (_PlatypusChefV2 *PlatypusChefV2Transactor) 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(uint256, uint256)

type PlatypusChefV2TransactorRaw

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

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

func (*PlatypusChefV2TransactorRaw) Transact

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

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

func (*PlatypusChefV2TransactorRaw) Transfer

func (_PlatypusChefV2 *PlatypusChefV2TransactorRaw) 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 PlatypusChefV2TransactorSession

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

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

func (*PlatypusChefV2TransactorSession) AcceptOwnership

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*PlatypusChefV2TransactorSession) Add

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) Add(_baseAllocPoint *big.Int, _lpToken common.Address, _rewarder common.Address) (*types.Transaction, error)

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

Solidity: function add(uint256 _baseAllocPoint, address _lpToken, address _rewarder) returns()

func (*PlatypusChefV2TransactorSession) Deposit

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) 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(uint256, uint256)

func (*PlatypusChefV2TransactorSession) DepositFor

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) DepositFor(_pid *big.Int, _amount *big.Int, _user common.Address) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0x90210d7e.

Solidity: function depositFor(uint256 _pid, uint256 _amount, address _user) returns()

func (*PlatypusChefV2TransactorSession) EmergencyPtpWithdraw

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) EmergencyPtpWithdraw() (*types.Transaction, error)

EmergencyPtpWithdraw is a paid mutator transaction binding the contract method 0x7dd38dcc.

Solidity: function emergencyPtpWithdraw() returns()

func (*PlatypusChefV2TransactorSession) EmergencyWithdraw

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) 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 (*PlatypusChefV2TransactorSession) Initialize

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) Initialize(_ptp common.Address, _vePtp common.Address, _ptpPerSec *big.Int, _dialutingRepartition *big.Int, _startTimestamp *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(address _ptp, address _vePtp, uint256 _ptpPerSec, uint256 _dialutingRepartition, uint256 _startTimestamp) returns()

func (*PlatypusChefV2TransactorSession) MassUpdatePools

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) MassUpdatePools() (*types.Transaction, error)

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

Solidity: function massUpdatePools() returns()

func (*PlatypusChefV2TransactorSession) Migrate

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) Migrate(_pids []*big.Int) (*types.Transaction, error)

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

Solidity: function migrate(uint256[] _pids) returns()

func (*PlatypusChefV2TransactorSession) MultiClaim

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) MultiClaim(_pids []*big.Int) (*types.Transaction, error)

MultiClaim is a paid mutator transaction binding the contract method 0x4ed73d28.

Solidity: function multiClaim(uint256[] _pids) returns(uint256, uint256[], uint256[])

func (*PlatypusChefV2TransactorSession) Pause

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*PlatypusChefV2TransactorSession) ProposeOwner

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) ProposeOwner(newOwner common.Address) (*types.Transaction, error)

ProposeOwner is a paid mutator transaction binding the contract method 0xb5ed298a.

Solidity: function proposeOwner(address newOwner) returns()

func (*PlatypusChefV2TransactorSession) RenounceOwnership

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PlatypusChefV2TransactorSession) Set

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) Set(_pid *big.Int, _baseAllocPoint *big.Int, _rewarder common.Address, overwrite bool) (*types.Transaction, error)

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

Solidity: function set(uint256 _pid, uint256 _baseAllocPoint, address _rewarder, bool overwrite) returns()

func (*PlatypusChefV2TransactorSession) SetMaxPoolLength

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) SetMaxPoolLength(_maxPoolLength *big.Int) (*types.Transaction, error)

SetMaxPoolLength is a paid mutator transaction binding the contract method 0x53c5eb44.

Solidity: function setMaxPoolLength(uint256 _maxPoolLength) returns()

func (*PlatypusChefV2TransactorSession) SetNewMasterPlatypus

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) SetNewMasterPlatypus(_newMasterPlatypus common.Address) (*types.Transaction, error)

SetNewMasterPlatypus is a paid mutator transaction binding the contract method 0x7b261591.

Solidity: function setNewMasterPlatypus(address _newMasterPlatypus) returns()

func (*PlatypusChefV2TransactorSession) SetVePtp

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) SetVePtp(_newVePtp common.Address) (*types.Transaction, error)

SetVePtp is a paid mutator transaction binding the contract method 0x90d9c1c3.

Solidity: function setVePtp(address _newVePtp) returns()

func (*PlatypusChefV2TransactorSession) Unpause

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*PlatypusChefV2TransactorSession) UpdateEmissionRate

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) UpdateEmissionRate(_ptpPerSec *big.Int) (*types.Transaction, error)

UpdateEmissionRate is a paid mutator transaction binding the contract method 0x0ba84cd2.

Solidity: function updateEmissionRate(uint256 _ptpPerSec) returns()

func (*PlatypusChefV2TransactorSession) UpdateEmissionRepartition

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) UpdateEmissionRepartition(_dialutingRepartition *big.Int) (*types.Transaction, error)

UpdateEmissionRepartition is a paid mutator transaction binding the contract method 0xe0a4ed43.

Solidity: function updateEmissionRepartition(uint256 _dialutingRepartition) returns()

func (*PlatypusChefV2TransactorSession) UpdateFactor

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) UpdateFactor(_user common.Address, _newVePtpBalance *big.Int) (*types.Transaction, error)

UpdateFactor is a paid mutator transaction binding the contract method 0x4f00a93e.

Solidity: function updateFactor(address _user, uint256 _newVePtpBalance) returns()

func (*PlatypusChefV2TransactorSession) UpdatePool

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) 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 (*PlatypusChefV2TransactorSession) Withdraw

func (_PlatypusChefV2 *PlatypusChefV2TransactorSession) 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(uint256, uint256)

Jump to

Keyboard shortcuts

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