KyberFairLaunchV2

package
v0.1.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KyberFairLaunchV2ABI = KyberFairLaunchV2MetaData.ABI

KyberFairLaunchV2ABI is the input ABI used to generate the binding from. Deprecated: Use KyberFairLaunchV2MetaData.ABI instead.

View Source
var KyberFairLaunchV2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stakeToken\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"_startTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_endTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_vestingDuration\",\"type\":\"uint32\"},{\"internalType\":\"uint256[]\",\"name\":\"_totalRewards\",\"type\":\"uint256[]\"},{\"internalType\":\"string\",\"name\":\"_tokenName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_tokenSymbol\",\"type\":\"string\"}],\"name\":\"addPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"rewardTokenIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"adminWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_shouldHarvest\",\"type\":\"bool\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"emergencyWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"getPoolInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalStake\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"stakeToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"generatedToken\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"startTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"endTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"lastRewardTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"vestingDuration\",\"type\":\"uint32\"},{\"internalType\":\"uint256[]\",\"name\":\"rewardPerSeconds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"rewardMultipliers\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"accRewardPerShares\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRewardTokens\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getUserInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"unclaimedRewards\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"lastRewardPerShares\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"harvest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_pids\",\"type\":\"uint256[]\"}],\"name\":\"harvestMultiplePools\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"multipliers\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"pendingRewards\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"memoryrewards\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"poolExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"_startTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_endTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_vestingDuration\",\"type\":\"uint32\"},{\"internalType\":\"uint256[]\",\"name\":\"_totalRewards\",\"type\":\"uint256[]\"}],\"name\":\"renewPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardLocker\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"rewardTokens\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"transferAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"transferAdminQuickly\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"_endTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_vestingDuration\",\"type\":\"uint32\"},{\"internalType\":\"uint256[]\",\"name\":\"_totalRewards\",\"type\":\"uint256[]\"}],\"name\":\"updatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"updatePoolRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"withdrawAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

KyberFairLaunchV2MetaData contains all meta data concerning the KyberFairLaunchV2 contract.

Functions

This section is empty.

Types

type KyberFairLaunchV2

type KyberFairLaunchV2 struct {
	KyberFairLaunchV2Caller     // Read-only binding to the contract
	KyberFairLaunchV2Transactor // Write-only binding to the contract
	KyberFairLaunchV2Filterer   // Log filterer for contract events
}

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

func NewKyberFairLaunchV2

func NewKyberFairLaunchV2(address common.Address, backend bind.ContractBackend) (*KyberFairLaunchV2, error)

NewKyberFairLaunchV2 creates a new instance of KyberFairLaunchV2, bound to a specific deployed contract.

type KyberFairLaunchV2Caller

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

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

func NewKyberFairLaunchV2Caller

func NewKyberFairLaunchV2Caller(address common.Address, caller bind.ContractCaller) (*KyberFairLaunchV2Caller, error)

NewKyberFairLaunchV2Caller creates a new read-only instance of KyberFairLaunchV2, bound to a specific deployed contract.

func (*KyberFairLaunchV2Caller) Admin

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) Admin(opts *bind.CallOpts) (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*KyberFairLaunchV2Caller) GetPoolInfo

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) GetPoolInfo(opts *bind.CallOpts, _pid *big.Int) (struct {
	TotalStake         *big.Int
	StakeToken         common.Address
	GeneratedToken     common.Address
	StartTime          uint32
	EndTime            uint32
	LastRewardTime     uint32
	VestingDuration    uint32
	RewardPerSeconds   []*big.Int
	RewardMultipliers  []*big.Int
	AccRewardPerShares []*big.Int
}, error)

GetPoolInfo is a free data retrieval call binding the contract method 0x2f380b35.

Solidity: function getPoolInfo(uint256 _pid) view returns(uint256 totalStake, address stakeToken, address generatedToken, uint32 startTime, uint32 endTime, uint32 lastRewardTime, uint32 vestingDuration, uint256[] rewardPerSeconds, uint256[] rewardMultipliers, uint256[] accRewardPerShares)

func (*KyberFairLaunchV2Caller) GetRewardTokens

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) GetRewardTokens(opts *bind.CallOpts) ([]common.Address, error)

GetRewardTokens is a free data retrieval call binding the contract method 0xc4f59f9b.

Solidity: function getRewardTokens() view returns(address[])

func (*KyberFairLaunchV2Caller) GetUserInfo

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) GetUserInfo(opts *bind.CallOpts, _pid *big.Int, _account common.Address) (struct {
	Amount              *big.Int
	UnclaimedRewards    []*big.Int
	LastRewardPerShares []*big.Int
}, error)

GetUserInfo is a free data retrieval call binding the contract method 0x1069f3b5.

Solidity: function getUserInfo(uint256 _pid, address _account) view returns(uint256 amount, uint256[] unclaimedRewards, uint256[] lastRewardPerShares)

func (*KyberFairLaunchV2Caller) Multipliers

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) Multipliers(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

Multipliers is a free data retrieval call binding the contract method 0xac7fc263.

Solidity: function multipliers(uint256 ) view returns(uint256)

func (*KyberFairLaunchV2Caller) PendingAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) PendingAdmin(opts *bind.CallOpts) (common.Address, error)

PendingAdmin is a free data retrieval call binding the contract method 0x26782247.

Solidity: function pendingAdmin() view returns(address)

func (*KyberFairLaunchV2Caller) PendingRewards

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) PendingRewards(opts *bind.CallOpts, _pid *big.Int, _user common.Address) ([]*big.Int, error)

PendingRewards is a free data retrieval call binding the contract method 0xd18df53c.

Solidity: function pendingRewards(uint256 _pid, address _user) view returns(uint256[] memoryrewards)

func (*KyberFairLaunchV2Caller) PoolExists

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) PoolExists(opts *bind.CallOpts, arg0 common.Address) (bool, error)

PoolExists is a free data retrieval call binding the contract method 0x1e1c6a07.

Solidity: function poolExists(address ) view returns(bool)

func (*KyberFairLaunchV2Caller) PoolLength

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) 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 (*KyberFairLaunchV2Caller) RewardLocker

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) RewardLocker(opts *bind.CallOpts) (common.Address, error)

RewardLocker is a free data retrieval call binding the contract method 0x3892601c.

Solidity: function rewardLocker() view returns(address)

func (*KyberFairLaunchV2Caller) RewardTokens

func (_KyberFairLaunchV2 *KyberFairLaunchV2Caller) RewardTokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

RewardTokens is a free data retrieval call binding the contract method 0x7bb7bed1.

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

type KyberFairLaunchV2CallerRaw

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

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

func (*KyberFairLaunchV2CallerRaw) Call

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerRaw) 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 KyberFairLaunchV2CallerSession

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

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

func (*KyberFairLaunchV2CallerSession) Admin

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*KyberFairLaunchV2CallerSession) GetPoolInfo

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) GetPoolInfo(_pid *big.Int) (struct {
	TotalStake         *big.Int
	StakeToken         common.Address
	GeneratedToken     common.Address
	StartTime          uint32
	EndTime            uint32
	LastRewardTime     uint32
	VestingDuration    uint32
	RewardPerSeconds   []*big.Int
	RewardMultipliers  []*big.Int
	AccRewardPerShares []*big.Int
}, error)

GetPoolInfo is a free data retrieval call binding the contract method 0x2f380b35.

Solidity: function getPoolInfo(uint256 _pid) view returns(uint256 totalStake, address stakeToken, address generatedToken, uint32 startTime, uint32 endTime, uint32 lastRewardTime, uint32 vestingDuration, uint256[] rewardPerSeconds, uint256[] rewardMultipliers, uint256[] accRewardPerShares)

func (*KyberFairLaunchV2CallerSession) GetRewardTokens

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) GetRewardTokens() ([]common.Address, error)

GetRewardTokens is a free data retrieval call binding the contract method 0xc4f59f9b.

Solidity: function getRewardTokens() view returns(address[])

func (*KyberFairLaunchV2CallerSession) GetUserInfo

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) GetUserInfo(_pid *big.Int, _account common.Address) (struct {
	Amount              *big.Int
	UnclaimedRewards    []*big.Int
	LastRewardPerShares []*big.Int
}, error)

GetUserInfo is a free data retrieval call binding the contract method 0x1069f3b5.

Solidity: function getUserInfo(uint256 _pid, address _account) view returns(uint256 amount, uint256[] unclaimedRewards, uint256[] lastRewardPerShares)

func (*KyberFairLaunchV2CallerSession) Multipliers

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) Multipliers(arg0 *big.Int) (*big.Int, error)

Multipliers is a free data retrieval call binding the contract method 0xac7fc263.

Solidity: function multipliers(uint256 ) view returns(uint256)

func (*KyberFairLaunchV2CallerSession) PendingAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) PendingAdmin() (common.Address, error)

PendingAdmin is a free data retrieval call binding the contract method 0x26782247.

Solidity: function pendingAdmin() view returns(address)

func (*KyberFairLaunchV2CallerSession) PendingRewards

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) PendingRewards(_pid *big.Int, _user common.Address) ([]*big.Int, error)

PendingRewards is a free data retrieval call binding the contract method 0xd18df53c.

Solidity: function pendingRewards(uint256 _pid, address _user) view returns(uint256[] memoryrewards)

func (*KyberFairLaunchV2CallerSession) PoolExists

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) PoolExists(arg0 common.Address) (bool, error)

PoolExists is a free data retrieval call binding the contract method 0x1e1c6a07.

Solidity: function poolExists(address ) view returns(bool)

func (*KyberFairLaunchV2CallerSession) PoolLength

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) PoolLength() (*big.Int, error)

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

Solidity: function poolLength() view returns(uint256)

func (*KyberFairLaunchV2CallerSession) RewardLocker

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) RewardLocker() (common.Address, error)

RewardLocker is a free data retrieval call binding the contract method 0x3892601c.

Solidity: function rewardLocker() view returns(address)

func (*KyberFairLaunchV2CallerSession) RewardTokens

func (_KyberFairLaunchV2 *KyberFairLaunchV2CallerSession) RewardTokens(arg0 *big.Int) (common.Address, error)

RewardTokens is a free data retrieval call binding the contract method 0x7bb7bed1.

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

type KyberFairLaunchV2Filterer

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

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

func NewKyberFairLaunchV2Filterer

func NewKyberFairLaunchV2Filterer(address common.Address, filterer bind.ContractFilterer) (*KyberFairLaunchV2Filterer, error)

NewKyberFairLaunchV2Filterer creates a new log filterer instance of KyberFairLaunchV2, bound to a specific deployed contract.

type KyberFairLaunchV2Raw

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

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

func (*KyberFairLaunchV2Raw) Call

func (_KyberFairLaunchV2 *KyberFairLaunchV2Raw) 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 (*KyberFairLaunchV2Raw) Transact

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

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

func (*KyberFairLaunchV2Raw) Transfer

func (_KyberFairLaunchV2 *KyberFairLaunchV2Raw) 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 KyberFairLaunchV2Session

type KyberFairLaunchV2Session struct {
	Contract     *KyberFairLaunchV2 // 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
}

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

func (*KyberFairLaunchV2Session) AddPool

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) AddPool(_stakeToken common.Address, _startTime uint32, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int, _tokenName string, _tokenSymbol string) (*types.Transaction, error)

AddPool is a paid mutator transaction binding the contract method 0xfef12687.

Solidity: function addPool(address _stakeToken, uint32 _startTime, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards, string _tokenName, string _tokenSymbol) returns()

func (*KyberFairLaunchV2Session) Admin

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*KyberFairLaunchV2Session) AdminWithdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) AdminWithdraw(rewardTokenIndex *big.Int, amount *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0xd12e4ceb.

Solidity: function adminWithdraw(uint256 rewardTokenIndex, uint256 amount) returns()

func (*KyberFairLaunchV2Session) ClaimAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) ClaimAdmin() (*types.Transaction, error)

ClaimAdmin is a paid mutator transaction binding the contract method 0x77f50f97.

Solidity: function claimAdmin() returns()

func (*KyberFairLaunchV2Session) Deposit

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) Deposit(_pid *big.Int, _amount *big.Int, _shouldHarvest bool) (*types.Transaction, error)

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

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

func (*KyberFairLaunchV2Session) EmergencyWithdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) 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 (*KyberFairLaunchV2Session) GetPoolInfo

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) GetPoolInfo(_pid *big.Int) (struct {
	TotalStake         *big.Int
	StakeToken         common.Address
	GeneratedToken     common.Address
	StartTime          uint32
	EndTime            uint32
	LastRewardTime     uint32
	VestingDuration    uint32
	RewardPerSeconds   []*big.Int
	RewardMultipliers  []*big.Int
	AccRewardPerShares []*big.Int
}, error)

GetPoolInfo is a free data retrieval call binding the contract method 0x2f380b35.

Solidity: function getPoolInfo(uint256 _pid) view returns(uint256 totalStake, address stakeToken, address generatedToken, uint32 startTime, uint32 endTime, uint32 lastRewardTime, uint32 vestingDuration, uint256[] rewardPerSeconds, uint256[] rewardMultipliers, uint256[] accRewardPerShares)

func (*KyberFairLaunchV2Session) GetRewardTokens

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) GetRewardTokens() ([]common.Address, error)

GetRewardTokens is a free data retrieval call binding the contract method 0xc4f59f9b.

Solidity: function getRewardTokens() view returns(address[])

func (*KyberFairLaunchV2Session) GetUserInfo

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) GetUserInfo(_pid *big.Int, _account common.Address) (struct {
	Amount              *big.Int
	UnclaimedRewards    []*big.Int
	LastRewardPerShares []*big.Int
}, error)

GetUserInfo is a free data retrieval call binding the contract method 0x1069f3b5.

Solidity: function getUserInfo(uint256 _pid, address _account) view returns(uint256 amount, uint256[] unclaimedRewards, uint256[] lastRewardPerShares)

func (*KyberFairLaunchV2Session) Harvest

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) Harvest(_pid *big.Int) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0xddc63262.

Solidity: function harvest(uint256 _pid) returns()

func (*KyberFairLaunchV2Session) HarvestMultiplePools

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) HarvestMultiplePools(_pids []*big.Int) (*types.Transaction, error)

HarvestMultiplePools is a paid mutator transaction binding the contract method 0x52fd9f2f.

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

func (*KyberFairLaunchV2Session) Multipliers

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) Multipliers(arg0 *big.Int) (*big.Int, error)

Multipliers is a free data retrieval call binding the contract method 0xac7fc263.

Solidity: function multipliers(uint256 ) view returns(uint256)

func (*KyberFairLaunchV2Session) PendingAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) PendingAdmin() (common.Address, error)

PendingAdmin is a free data retrieval call binding the contract method 0x26782247.

Solidity: function pendingAdmin() view returns(address)

func (*KyberFairLaunchV2Session) PendingRewards

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) PendingRewards(_pid *big.Int, _user common.Address) ([]*big.Int, error)

PendingRewards is a free data retrieval call binding the contract method 0xd18df53c.

Solidity: function pendingRewards(uint256 _pid, address _user) view returns(uint256[] memoryrewards)

func (*KyberFairLaunchV2Session) PoolExists

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) PoolExists(arg0 common.Address) (bool, error)

PoolExists is a free data retrieval call binding the contract method 0x1e1c6a07.

Solidity: function poolExists(address ) view returns(bool)

func (*KyberFairLaunchV2Session) PoolLength

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) PoolLength() (*big.Int, error)

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

Solidity: function poolLength() view returns(uint256)

func (*KyberFairLaunchV2Session) RenewPool

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) RenewPool(_pid *big.Int, _startTime uint32, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int) (*types.Transaction, error)

RenewPool is a paid mutator transaction binding the contract method 0xc401fb4f.

Solidity: function renewPool(uint256 _pid, uint32 _startTime, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards) returns()

func (*KyberFairLaunchV2Session) RewardLocker

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) RewardLocker() (common.Address, error)

RewardLocker is a free data retrieval call binding the contract method 0x3892601c.

Solidity: function rewardLocker() view returns(address)

func (*KyberFairLaunchV2Session) RewardTokens

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) RewardTokens(arg0 *big.Int) (common.Address, error)

RewardTokens is a free data retrieval call binding the contract method 0x7bb7bed1.

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

func (*KyberFairLaunchV2Session) TransferAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) TransferAdmin(newAdmin common.Address) (*types.Transaction, error)

TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.

Solidity: function transferAdmin(address newAdmin) returns()

func (*KyberFairLaunchV2Session) TransferAdminQuickly

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) TransferAdminQuickly(newAdmin common.Address) (*types.Transaction, error)

TransferAdminQuickly is a paid mutator transaction binding the contract method 0x7acc8678.

Solidity: function transferAdminQuickly(address newAdmin) returns()

func (*KyberFairLaunchV2Session) UpdatePool

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) UpdatePool(_pid *big.Int, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int) (*types.Transaction, error)

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

Solidity: function updatePool(uint256 _pid, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards) returns()

func (*KyberFairLaunchV2Session) UpdatePoolRewards

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) UpdatePoolRewards(_pid *big.Int) (*types.Transaction, error)

UpdatePoolRewards is a paid mutator transaction binding the contract method 0xadb82b31.

Solidity: function updatePoolRewards(uint256 _pid) returns()

func (*KyberFairLaunchV2Session) Withdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) 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()

func (*KyberFairLaunchV2Session) WithdrawAll

func (_KyberFairLaunchV2 *KyberFairLaunchV2Session) WithdrawAll(_pid *big.Int) (*types.Transaction, error)

WithdrawAll is a paid mutator transaction binding the contract method 0x958e2d31.

Solidity: function withdrawAll(uint256 _pid) returns()

type KyberFairLaunchV2Transactor

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

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

func NewKyberFairLaunchV2Transactor

func NewKyberFairLaunchV2Transactor(address common.Address, transactor bind.ContractTransactor) (*KyberFairLaunchV2Transactor, error)

NewKyberFairLaunchV2Transactor creates a new write-only instance of KyberFairLaunchV2, bound to a specific deployed contract.

func (*KyberFairLaunchV2Transactor) AddPool

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) AddPool(opts *bind.TransactOpts, _stakeToken common.Address, _startTime uint32, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int, _tokenName string, _tokenSymbol string) (*types.Transaction, error)

AddPool is a paid mutator transaction binding the contract method 0xfef12687.

Solidity: function addPool(address _stakeToken, uint32 _startTime, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards, string _tokenName, string _tokenSymbol) returns()

func (*KyberFairLaunchV2Transactor) AdminWithdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) AdminWithdraw(opts *bind.TransactOpts, rewardTokenIndex *big.Int, amount *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0xd12e4ceb.

Solidity: function adminWithdraw(uint256 rewardTokenIndex, uint256 amount) returns()

func (*KyberFairLaunchV2Transactor) ClaimAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) ClaimAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

ClaimAdmin is a paid mutator transaction binding the contract method 0x77f50f97.

Solidity: function claimAdmin() returns()

func (*KyberFairLaunchV2Transactor) Deposit

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) Deposit(opts *bind.TransactOpts, _pid *big.Int, _amount *big.Int, _shouldHarvest bool) (*types.Transaction, error)

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

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

func (*KyberFairLaunchV2Transactor) EmergencyWithdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) 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 (*KyberFairLaunchV2Transactor) Harvest

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) Harvest(opts *bind.TransactOpts, _pid *big.Int) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0xddc63262.

Solidity: function harvest(uint256 _pid) returns()

func (*KyberFairLaunchV2Transactor) HarvestMultiplePools

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) HarvestMultiplePools(opts *bind.TransactOpts, _pids []*big.Int) (*types.Transaction, error)

HarvestMultiplePools is a paid mutator transaction binding the contract method 0x52fd9f2f.

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

func (*KyberFairLaunchV2Transactor) RenewPool

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) RenewPool(opts *bind.TransactOpts, _pid *big.Int, _startTime uint32, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int) (*types.Transaction, error)

RenewPool is a paid mutator transaction binding the contract method 0xc401fb4f.

Solidity: function renewPool(uint256 _pid, uint32 _startTime, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards) returns()

func (*KyberFairLaunchV2Transactor) TransferAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) TransferAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.

Solidity: function transferAdmin(address newAdmin) returns()

func (*KyberFairLaunchV2Transactor) TransferAdminQuickly

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) TransferAdminQuickly(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

TransferAdminQuickly is a paid mutator transaction binding the contract method 0x7acc8678.

Solidity: function transferAdminQuickly(address newAdmin) returns()

func (*KyberFairLaunchV2Transactor) UpdatePool

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) UpdatePool(opts *bind.TransactOpts, _pid *big.Int, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int) (*types.Transaction, error)

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

Solidity: function updatePool(uint256 _pid, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards) returns()

func (*KyberFairLaunchV2Transactor) UpdatePoolRewards

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) UpdatePoolRewards(opts *bind.TransactOpts, _pid *big.Int) (*types.Transaction, error)

UpdatePoolRewards is a paid mutator transaction binding the contract method 0xadb82b31.

Solidity: function updatePoolRewards(uint256 _pid) returns()

func (*KyberFairLaunchV2Transactor) Withdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) 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()

func (*KyberFairLaunchV2Transactor) WithdrawAll

func (_KyberFairLaunchV2 *KyberFairLaunchV2Transactor) WithdrawAll(opts *bind.TransactOpts, _pid *big.Int) (*types.Transaction, error)

WithdrawAll is a paid mutator transaction binding the contract method 0x958e2d31.

Solidity: function withdrawAll(uint256 _pid) returns()

type KyberFairLaunchV2TransactorRaw

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

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

func (*KyberFairLaunchV2TransactorRaw) Transact

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

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

func (*KyberFairLaunchV2TransactorRaw) Transfer

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorRaw) 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 KyberFairLaunchV2TransactorSession

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

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

func (*KyberFairLaunchV2TransactorSession) AddPool

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) AddPool(_stakeToken common.Address, _startTime uint32, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int, _tokenName string, _tokenSymbol string) (*types.Transaction, error)

AddPool is a paid mutator transaction binding the contract method 0xfef12687.

Solidity: function addPool(address _stakeToken, uint32 _startTime, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards, string _tokenName, string _tokenSymbol) returns()

func (*KyberFairLaunchV2TransactorSession) AdminWithdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) AdminWithdraw(rewardTokenIndex *big.Int, amount *big.Int) (*types.Transaction, error)

AdminWithdraw is a paid mutator transaction binding the contract method 0xd12e4ceb.

Solidity: function adminWithdraw(uint256 rewardTokenIndex, uint256 amount) returns()

func (*KyberFairLaunchV2TransactorSession) ClaimAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) ClaimAdmin() (*types.Transaction, error)

ClaimAdmin is a paid mutator transaction binding the contract method 0x77f50f97.

Solidity: function claimAdmin() returns()

func (*KyberFairLaunchV2TransactorSession) Deposit

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) Deposit(_pid *big.Int, _amount *big.Int, _shouldHarvest bool) (*types.Transaction, error)

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

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

func (*KyberFairLaunchV2TransactorSession) EmergencyWithdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) 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 (*KyberFairLaunchV2TransactorSession) Harvest

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) Harvest(_pid *big.Int) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0xddc63262.

Solidity: function harvest(uint256 _pid) returns()

func (*KyberFairLaunchV2TransactorSession) HarvestMultiplePools

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) HarvestMultiplePools(_pids []*big.Int) (*types.Transaction, error)

HarvestMultiplePools is a paid mutator transaction binding the contract method 0x52fd9f2f.

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

func (*KyberFairLaunchV2TransactorSession) RenewPool

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) RenewPool(_pid *big.Int, _startTime uint32, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int) (*types.Transaction, error)

RenewPool is a paid mutator transaction binding the contract method 0xc401fb4f.

Solidity: function renewPool(uint256 _pid, uint32 _startTime, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards) returns()

func (*KyberFairLaunchV2TransactorSession) TransferAdmin

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) TransferAdmin(newAdmin common.Address) (*types.Transaction, error)

TransferAdmin is a paid mutator transaction binding the contract method 0x75829def.

Solidity: function transferAdmin(address newAdmin) returns()

func (*KyberFairLaunchV2TransactorSession) TransferAdminQuickly

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) TransferAdminQuickly(newAdmin common.Address) (*types.Transaction, error)

TransferAdminQuickly is a paid mutator transaction binding the contract method 0x7acc8678.

Solidity: function transferAdminQuickly(address newAdmin) returns()

func (*KyberFairLaunchV2TransactorSession) UpdatePool

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) UpdatePool(_pid *big.Int, _endTime uint32, _vestingDuration uint32, _totalRewards []*big.Int) (*types.Transaction, error)

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

Solidity: function updatePool(uint256 _pid, uint32 _endTime, uint32 _vestingDuration, uint256[] _totalRewards) returns()

func (*KyberFairLaunchV2TransactorSession) UpdatePoolRewards

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) UpdatePoolRewards(_pid *big.Int) (*types.Transaction, error)

UpdatePoolRewards is a paid mutator transaction binding the contract method 0xadb82b31.

Solidity: function updatePoolRewards(uint256 _pid) returns()

func (*KyberFairLaunchV2TransactorSession) Withdraw

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) 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()

func (*KyberFairLaunchV2TransactorSession) WithdrawAll

func (_KyberFairLaunchV2 *KyberFairLaunchV2TransactorSession) WithdrawAll(_pid *big.Int) (*types.Transaction, error)

WithdrawAll is a paid mutator transaction binding the contract method 0x958e2d31.

Solidity: function withdrawAll(uint256 _pid) returns()

Jump to

Keyboard shortcuts

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