KyberRewardLocker

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 KyberRewardLockerABI = KyberRewardLockerMetaData.ABI

KyberRewardLockerABI is the input ABI used to generate the binding from. Deprecated: Use KyberRewardLockerMetaData.ABI instead.

View Source
var KyberRewardLockerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"accountEscrowedBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"accountVestedBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_rewardContract\",\"type\":\"address\"}],\"name\":\"addRewardsContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getRewardContractsPerToken\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"rewardContracts\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getVestingScheduleAtIndex\",\"outputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"startBlock\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endBlock\",\"type\":\"uint64\"},{\"internalType\":\"uint128\",\"name\":\"quantity\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"vestedQuantity\",\"type\":\"uint128\"}],\"internalType\":\"structIKyberRewardLocker.VestingSchedule\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getVestingSchedules\",\"outputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"startBlock\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"endBlock\",\"type\":\"uint64\"},{\"internalType\":\"uint128\",\"name\":\"quantity\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"vestedQuantity\",\"type\":\"uint128\"}],\"internalType\":\"structIKyberRewardLocker.VestingSchedule[]\",\"name\":\"schedules\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"name\":\"lock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startBlock\",\"type\":\"uint256\"}],\"name\":\"lockWithStartBlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"numVestingSchedules\",\"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\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_rewardContract\",\"type\":\"address\"}],\"name\":\"removeRewardsContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"_vestingDuration\",\"type\":\"uint64\"}],\"name\":\"setVestingDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"vestCompletedSchedules\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"name\":\"vestCompletedSchedulesForMultipleTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"vestedAmounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"indexes\",\"type\":\"uint256[]\"}],\"name\":\"vestScheduleAtIndices\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[][]\",\"name\":\"indices\",\"type\":\"uint256[][]\"}],\"name\":\"vestScheduleForMultipleTokensAtIndices\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"vestedAmounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"startIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endIndex\",\"type\":\"uint256\"}],\"name\":\"vestSchedulesInRange\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"vestingDurationPerToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

KyberRewardLockerMetaData contains all meta data concerning the KyberRewardLocker contract.

Functions

This section is empty.

Types

type IKyberRewardLockerVestingSchedule

type IKyberRewardLockerVestingSchedule struct {
	StartBlock     uint64
	EndBlock       uint64
	Quantity       *big.Int
	VestedQuantity *big.Int
}

IKyberRewardLockerVestingSchedule is an auto generated low-level Go binding around an user-defined struct.

type KyberRewardLocker

type KyberRewardLocker struct {
	KyberRewardLockerCaller     // Read-only binding to the contract
	KyberRewardLockerTransactor // Write-only binding to the contract
	KyberRewardLockerFilterer   // Log filterer for contract events
}

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

func NewKyberRewardLocker

func NewKyberRewardLocker(address common.Address, backend bind.ContractBackend) (*KyberRewardLocker, error)

NewKyberRewardLocker creates a new instance of KyberRewardLocker, bound to a specific deployed contract.

type KyberRewardLockerCaller

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

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

func NewKyberRewardLockerCaller

func NewKyberRewardLockerCaller(address common.Address, caller bind.ContractCaller) (*KyberRewardLockerCaller, error)

NewKyberRewardLockerCaller creates a new read-only instance of KyberRewardLocker, bound to a specific deployed contract.

func (*KyberRewardLockerCaller) AccountEscrowedBalance

func (_KyberRewardLocker *KyberRewardLockerCaller) AccountEscrowedBalance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

AccountEscrowedBalance is a free data retrieval call binding the contract method 0x6e732b70.

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

func (*KyberRewardLockerCaller) AccountVestedBalance

func (_KyberRewardLocker *KyberRewardLockerCaller) AccountVestedBalance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

AccountVestedBalance is a free data retrieval call binding the contract method 0x3b5bfa8b.

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

func (*KyberRewardLockerCaller) Admin

func (_KyberRewardLocker *KyberRewardLockerCaller) 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 (*KyberRewardLockerCaller) GetRewardContractsPerToken

func (_KyberRewardLocker *KyberRewardLockerCaller) GetRewardContractsPerToken(opts *bind.CallOpts, token common.Address) ([]common.Address, error)

GetRewardContractsPerToken is a free data retrieval call binding the contract method 0xbbd8a328.

Solidity: function getRewardContractsPerToken(address token) view returns(address[] rewardContracts)

func (*KyberRewardLockerCaller) GetVestingScheduleAtIndex

func (_KyberRewardLocker *KyberRewardLockerCaller) GetVestingScheduleAtIndex(opts *bind.CallOpts, account common.Address, token common.Address, index *big.Int) (IKyberRewardLockerVestingSchedule, error)

GetVestingScheduleAtIndex is a free data retrieval call binding the contract method 0x0a3b7e31.

Solidity: function getVestingScheduleAtIndex(address account, address token, uint256 index) view returns((uint64,uint64,uint128,uint128))

func (*KyberRewardLockerCaller) GetVestingSchedules

func (_KyberRewardLocker *KyberRewardLockerCaller) GetVestingSchedules(opts *bind.CallOpts, account common.Address, token common.Address) ([]IKyberRewardLockerVestingSchedule, error)

GetVestingSchedules is a free data retrieval call binding the contract method 0x2f50bd72.

Solidity: function getVestingSchedules(address account, address token) view returns((uint64,uint64,uint128,uint128)[] schedules)

func (*KyberRewardLockerCaller) NumVestingSchedules

func (_KyberRewardLocker *KyberRewardLockerCaller) NumVestingSchedules(opts *bind.CallOpts, account common.Address, token common.Address) (*big.Int, error)

NumVestingSchedules is a free data retrieval call binding the contract method 0x679f7f77.

Solidity: function numVestingSchedules(address account, address token) view returns(uint256)

func (*KyberRewardLockerCaller) PendingAdmin

func (_KyberRewardLocker *KyberRewardLockerCaller) 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 (*KyberRewardLockerCaller) VestingDurationPerToken

func (_KyberRewardLocker *KyberRewardLockerCaller) VestingDurationPerToken(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

VestingDurationPerToken is a free data retrieval call binding the contract method 0xaaf54385.

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

type KyberRewardLockerCallerRaw

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

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

func (*KyberRewardLockerCallerRaw) Call

func (_KyberRewardLocker *KyberRewardLockerCallerRaw) 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 KyberRewardLockerCallerSession

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

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

func (*KyberRewardLockerCallerSession) AccountEscrowedBalance

func (_KyberRewardLocker *KyberRewardLockerCallerSession) AccountEscrowedBalance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

AccountEscrowedBalance is a free data retrieval call binding the contract method 0x6e732b70.

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

func (*KyberRewardLockerCallerSession) AccountVestedBalance

func (_KyberRewardLocker *KyberRewardLockerCallerSession) AccountVestedBalance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

AccountVestedBalance is a free data retrieval call binding the contract method 0x3b5bfa8b.

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

func (*KyberRewardLockerCallerSession) Admin

func (_KyberRewardLocker *KyberRewardLockerCallerSession) Admin() (common.Address, error)

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

Solidity: function admin() view returns(address)

func (*KyberRewardLockerCallerSession) GetRewardContractsPerToken

func (_KyberRewardLocker *KyberRewardLockerCallerSession) GetRewardContractsPerToken(token common.Address) ([]common.Address, error)

GetRewardContractsPerToken is a free data retrieval call binding the contract method 0xbbd8a328.

Solidity: function getRewardContractsPerToken(address token) view returns(address[] rewardContracts)

func (*KyberRewardLockerCallerSession) GetVestingScheduleAtIndex

func (_KyberRewardLocker *KyberRewardLockerCallerSession) GetVestingScheduleAtIndex(account common.Address, token common.Address, index *big.Int) (IKyberRewardLockerVestingSchedule, error)

GetVestingScheduleAtIndex is a free data retrieval call binding the contract method 0x0a3b7e31.

Solidity: function getVestingScheduleAtIndex(address account, address token, uint256 index) view returns((uint64,uint64,uint128,uint128))

func (*KyberRewardLockerCallerSession) GetVestingSchedules

func (_KyberRewardLocker *KyberRewardLockerCallerSession) GetVestingSchedules(account common.Address, token common.Address) ([]IKyberRewardLockerVestingSchedule, error)

GetVestingSchedules is a free data retrieval call binding the contract method 0x2f50bd72.

Solidity: function getVestingSchedules(address account, address token) view returns((uint64,uint64,uint128,uint128)[] schedules)

func (*KyberRewardLockerCallerSession) NumVestingSchedules

func (_KyberRewardLocker *KyberRewardLockerCallerSession) NumVestingSchedules(account common.Address, token common.Address) (*big.Int, error)

NumVestingSchedules is a free data retrieval call binding the contract method 0x679f7f77.

Solidity: function numVestingSchedules(address account, address token) view returns(uint256)

func (*KyberRewardLockerCallerSession) PendingAdmin

func (_KyberRewardLocker *KyberRewardLockerCallerSession) PendingAdmin() (common.Address, error)

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

Solidity: function pendingAdmin() view returns(address)

func (*KyberRewardLockerCallerSession) VestingDurationPerToken

func (_KyberRewardLocker *KyberRewardLockerCallerSession) VestingDurationPerToken(arg0 common.Address) (*big.Int, error)

VestingDurationPerToken is a free data retrieval call binding the contract method 0xaaf54385.

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

type KyberRewardLockerFilterer

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

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

func NewKyberRewardLockerFilterer

func NewKyberRewardLockerFilterer(address common.Address, filterer bind.ContractFilterer) (*KyberRewardLockerFilterer, error)

NewKyberRewardLockerFilterer creates a new log filterer instance of KyberRewardLocker, bound to a specific deployed contract.

type KyberRewardLockerRaw

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

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

func (*KyberRewardLockerRaw) Call

func (_KyberRewardLocker *KyberRewardLockerRaw) 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 (*KyberRewardLockerRaw) Transact

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

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

func (*KyberRewardLockerRaw) Transfer

func (_KyberRewardLocker *KyberRewardLockerRaw) 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 KyberRewardLockerSession

type KyberRewardLockerSession struct {
	Contract     *KyberRewardLocker // 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
}

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

func (*KyberRewardLockerSession) AccountEscrowedBalance

func (_KyberRewardLocker *KyberRewardLockerSession) AccountEscrowedBalance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

AccountEscrowedBalance is a free data retrieval call binding the contract method 0x6e732b70.

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

func (*KyberRewardLockerSession) AccountVestedBalance

func (_KyberRewardLocker *KyberRewardLockerSession) AccountVestedBalance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

AccountVestedBalance is a free data retrieval call binding the contract method 0x3b5bfa8b.

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

func (*KyberRewardLockerSession) AddRewardsContract

func (_KyberRewardLocker *KyberRewardLockerSession) AddRewardsContract(token common.Address, _rewardContract common.Address) (*types.Transaction, error)

AddRewardsContract is a paid mutator transaction binding the contract method 0xf793d77e.

Solidity: function addRewardsContract(address token, address _rewardContract) returns()

func (*KyberRewardLockerSession) Admin

func (_KyberRewardLocker *KyberRewardLockerSession) Admin() (common.Address, error)

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

Solidity: function admin() view returns(address)

func (*KyberRewardLockerSession) ClaimAdmin

func (_KyberRewardLocker *KyberRewardLockerSession) ClaimAdmin() (*types.Transaction, error)

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

Solidity: function claimAdmin() returns()

func (*KyberRewardLockerSession) GetRewardContractsPerToken

func (_KyberRewardLocker *KyberRewardLockerSession) GetRewardContractsPerToken(token common.Address) ([]common.Address, error)

GetRewardContractsPerToken is a free data retrieval call binding the contract method 0xbbd8a328.

Solidity: function getRewardContractsPerToken(address token) view returns(address[] rewardContracts)

func (*KyberRewardLockerSession) GetVestingScheduleAtIndex

func (_KyberRewardLocker *KyberRewardLockerSession) GetVestingScheduleAtIndex(account common.Address, token common.Address, index *big.Int) (IKyberRewardLockerVestingSchedule, error)

GetVestingScheduleAtIndex is a free data retrieval call binding the contract method 0x0a3b7e31.

Solidity: function getVestingScheduleAtIndex(address account, address token, uint256 index) view returns((uint64,uint64,uint128,uint128))

func (*KyberRewardLockerSession) GetVestingSchedules

func (_KyberRewardLocker *KyberRewardLockerSession) GetVestingSchedules(account common.Address, token common.Address) ([]IKyberRewardLockerVestingSchedule, error)

GetVestingSchedules is a free data retrieval call binding the contract method 0x2f50bd72.

Solidity: function getVestingSchedules(address account, address token) view returns((uint64,uint64,uint128,uint128)[] schedules)

func (*KyberRewardLockerSession) Lock

func (_KyberRewardLocker *KyberRewardLockerSession) Lock(token common.Address, account common.Address, quantity *big.Int) (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0x7750c9f0.

Solidity: function lock(address token, address account, uint256 quantity) returns()

func (*KyberRewardLockerSession) LockWithStartBlock

func (_KyberRewardLocker *KyberRewardLockerSession) LockWithStartBlock(token common.Address, account common.Address, quantity *big.Int, startBlock *big.Int) (*types.Transaction, error)

LockWithStartBlock is a paid mutator transaction binding the contract method 0xa5d21e31.

Solidity: function lockWithStartBlock(address token, address account, uint256 quantity, uint256 startBlock) returns()

func (*KyberRewardLockerSession) NumVestingSchedules

func (_KyberRewardLocker *KyberRewardLockerSession) NumVestingSchedules(account common.Address, token common.Address) (*big.Int, error)

NumVestingSchedules is a free data retrieval call binding the contract method 0x679f7f77.

Solidity: function numVestingSchedules(address account, address token) view returns(uint256)

func (*KyberRewardLockerSession) PendingAdmin

func (_KyberRewardLocker *KyberRewardLockerSession) PendingAdmin() (common.Address, error)

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

Solidity: function pendingAdmin() view returns(address)

func (*KyberRewardLockerSession) RemoveRewardsContract

func (_KyberRewardLocker *KyberRewardLockerSession) RemoveRewardsContract(token common.Address, _rewardContract common.Address) (*types.Transaction, error)

RemoveRewardsContract is a paid mutator transaction binding the contract method 0x4c9d00cc.

Solidity: function removeRewardsContract(address token, address _rewardContract) returns()

func (*KyberRewardLockerSession) SetVestingDuration

func (_KyberRewardLocker *KyberRewardLockerSession) SetVestingDuration(token common.Address, _vestingDuration uint64) (*types.Transaction, error)

SetVestingDuration is a paid mutator transaction binding the contract method 0xcb1d086b.

Solidity: function setVestingDuration(address token, uint64 _vestingDuration) returns()

func (*KyberRewardLockerSession) TransferAdmin

func (_KyberRewardLocker *KyberRewardLockerSession) 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 (*KyberRewardLockerSession) TransferAdminQuickly

func (_KyberRewardLocker *KyberRewardLockerSession) 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 (*KyberRewardLockerSession) VestCompletedSchedules

func (_KyberRewardLocker *KyberRewardLockerSession) VestCompletedSchedules(token common.Address) (*types.Transaction, error)

VestCompletedSchedules is a paid mutator transaction binding the contract method 0xfdfaaa05.

Solidity: function vestCompletedSchedules(address token) returns(uint256)

func (*KyberRewardLockerSession) VestCompletedSchedulesForMultipleTokens

func (_KyberRewardLocker *KyberRewardLockerSession) VestCompletedSchedulesForMultipleTokens(tokens []common.Address) (*types.Transaction, error)

VestCompletedSchedulesForMultipleTokens is a paid mutator transaction binding the contract method 0x9059aa6a.

Solidity: function vestCompletedSchedulesForMultipleTokens(address[] tokens) returns(uint256[] vestedAmounts)

func (*KyberRewardLockerSession) VestScheduleAtIndices

func (_KyberRewardLocker *KyberRewardLockerSession) VestScheduleAtIndices(token common.Address, indexes []*big.Int) (*types.Transaction, error)

VestScheduleAtIndices is a paid mutator transaction binding the contract method 0x0f5636c3.

Solidity: function vestScheduleAtIndices(address token, uint256[] indexes) returns(uint256)

func (*KyberRewardLockerSession) VestScheduleForMultipleTokensAtIndices

func (_KyberRewardLocker *KyberRewardLockerSession) VestScheduleForMultipleTokensAtIndices(tokens []common.Address, indices [][]*big.Int) (*types.Transaction, error)

VestScheduleForMultipleTokensAtIndices is a paid mutator transaction binding the contract method 0x4d4f3d93.

Solidity: function vestScheduleForMultipleTokensAtIndices(address[] tokens, uint256[][] indices) returns(uint256[] vestedAmounts)

func (*KyberRewardLockerSession) VestSchedulesInRange

func (_KyberRewardLocker *KyberRewardLockerSession) VestSchedulesInRange(token common.Address, startIndex *big.Int, endIndex *big.Int) (*types.Transaction, error)

VestSchedulesInRange is a paid mutator transaction binding the contract method 0xc33fddf8.

Solidity: function vestSchedulesInRange(address token, uint256 startIndex, uint256 endIndex) returns(uint256)

func (*KyberRewardLockerSession) VestingDurationPerToken

func (_KyberRewardLocker *KyberRewardLockerSession) VestingDurationPerToken(arg0 common.Address) (*big.Int, error)

VestingDurationPerToken is a free data retrieval call binding the contract method 0xaaf54385.

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

type KyberRewardLockerTransactor

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

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

func NewKyberRewardLockerTransactor

func NewKyberRewardLockerTransactor(address common.Address, transactor bind.ContractTransactor) (*KyberRewardLockerTransactor, error)

NewKyberRewardLockerTransactor creates a new write-only instance of KyberRewardLocker, bound to a specific deployed contract.

func (*KyberRewardLockerTransactor) AddRewardsContract

func (_KyberRewardLocker *KyberRewardLockerTransactor) AddRewardsContract(opts *bind.TransactOpts, token common.Address, _rewardContract common.Address) (*types.Transaction, error)

AddRewardsContract is a paid mutator transaction binding the contract method 0xf793d77e.

Solidity: function addRewardsContract(address token, address _rewardContract) returns()

func (*KyberRewardLockerTransactor) ClaimAdmin

func (_KyberRewardLocker *KyberRewardLockerTransactor) ClaimAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function claimAdmin() returns()

func (*KyberRewardLockerTransactor) Lock

func (_KyberRewardLocker *KyberRewardLockerTransactor) Lock(opts *bind.TransactOpts, token common.Address, account common.Address, quantity *big.Int) (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0x7750c9f0.

Solidity: function lock(address token, address account, uint256 quantity) returns()

func (*KyberRewardLockerTransactor) LockWithStartBlock

func (_KyberRewardLocker *KyberRewardLockerTransactor) LockWithStartBlock(opts *bind.TransactOpts, token common.Address, account common.Address, quantity *big.Int, startBlock *big.Int) (*types.Transaction, error)

LockWithStartBlock is a paid mutator transaction binding the contract method 0xa5d21e31.

Solidity: function lockWithStartBlock(address token, address account, uint256 quantity, uint256 startBlock) returns()

func (*KyberRewardLockerTransactor) RemoveRewardsContract

func (_KyberRewardLocker *KyberRewardLockerTransactor) RemoveRewardsContract(opts *bind.TransactOpts, token common.Address, _rewardContract common.Address) (*types.Transaction, error)

RemoveRewardsContract is a paid mutator transaction binding the contract method 0x4c9d00cc.

Solidity: function removeRewardsContract(address token, address _rewardContract) returns()

func (*KyberRewardLockerTransactor) SetVestingDuration

func (_KyberRewardLocker *KyberRewardLockerTransactor) SetVestingDuration(opts *bind.TransactOpts, token common.Address, _vestingDuration uint64) (*types.Transaction, error)

SetVestingDuration is a paid mutator transaction binding the contract method 0xcb1d086b.

Solidity: function setVestingDuration(address token, uint64 _vestingDuration) returns()

func (*KyberRewardLockerTransactor) TransferAdmin

func (_KyberRewardLocker *KyberRewardLockerTransactor) 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 (*KyberRewardLockerTransactor) TransferAdminQuickly

func (_KyberRewardLocker *KyberRewardLockerTransactor) 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 (*KyberRewardLockerTransactor) VestCompletedSchedules

func (_KyberRewardLocker *KyberRewardLockerTransactor) VestCompletedSchedules(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

VestCompletedSchedules is a paid mutator transaction binding the contract method 0xfdfaaa05.

Solidity: function vestCompletedSchedules(address token) returns(uint256)

func (*KyberRewardLockerTransactor) VestCompletedSchedulesForMultipleTokens

func (_KyberRewardLocker *KyberRewardLockerTransactor) VestCompletedSchedulesForMultipleTokens(opts *bind.TransactOpts, tokens []common.Address) (*types.Transaction, error)

VestCompletedSchedulesForMultipleTokens is a paid mutator transaction binding the contract method 0x9059aa6a.

Solidity: function vestCompletedSchedulesForMultipleTokens(address[] tokens) returns(uint256[] vestedAmounts)

func (*KyberRewardLockerTransactor) VestScheduleAtIndices

func (_KyberRewardLocker *KyberRewardLockerTransactor) VestScheduleAtIndices(opts *bind.TransactOpts, token common.Address, indexes []*big.Int) (*types.Transaction, error)

VestScheduleAtIndices is a paid mutator transaction binding the contract method 0x0f5636c3.

Solidity: function vestScheduleAtIndices(address token, uint256[] indexes) returns(uint256)

func (*KyberRewardLockerTransactor) VestScheduleForMultipleTokensAtIndices

func (_KyberRewardLocker *KyberRewardLockerTransactor) VestScheduleForMultipleTokensAtIndices(opts *bind.TransactOpts, tokens []common.Address, indices [][]*big.Int) (*types.Transaction, error)

VestScheduleForMultipleTokensAtIndices is a paid mutator transaction binding the contract method 0x4d4f3d93.

Solidity: function vestScheduleForMultipleTokensAtIndices(address[] tokens, uint256[][] indices) returns(uint256[] vestedAmounts)

func (*KyberRewardLockerTransactor) VestSchedulesInRange

func (_KyberRewardLocker *KyberRewardLockerTransactor) VestSchedulesInRange(opts *bind.TransactOpts, token common.Address, startIndex *big.Int, endIndex *big.Int) (*types.Transaction, error)

VestSchedulesInRange is a paid mutator transaction binding the contract method 0xc33fddf8.

Solidity: function vestSchedulesInRange(address token, uint256 startIndex, uint256 endIndex) returns(uint256)

type KyberRewardLockerTransactorRaw

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

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

func (*KyberRewardLockerTransactorRaw) Transact

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

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

func (*KyberRewardLockerTransactorRaw) Transfer

func (_KyberRewardLocker *KyberRewardLockerTransactorRaw) 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 KyberRewardLockerTransactorSession

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

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

func (*KyberRewardLockerTransactorSession) AddRewardsContract

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) AddRewardsContract(token common.Address, _rewardContract common.Address) (*types.Transaction, error)

AddRewardsContract is a paid mutator transaction binding the contract method 0xf793d77e.

Solidity: function addRewardsContract(address token, address _rewardContract) returns()

func (*KyberRewardLockerTransactorSession) ClaimAdmin

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) ClaimAdmin() (*types.Transaction, error)

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

Solidity: function claimAdmin() returns()

func (*KyberRewardLockerTransactorSession) Lock

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) Lock(token common.Address, account common.Address, quantity *big.Int) (*types.Transaction, error)

Lock is a paid mutator transaction binding the contract method 0x7750c9f0.

Solidity: function lock(address token, address account, uint256 quantity) returns()

func (*KyberRewardLockerTransactorSession) LockWithStartBlock

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) LockWithStartBlock(token common.Address, account common.Address, quantity *big.Int, startBlock *big.Int) (*types.Transaction, error)

LockWithStartBlock is a paid mutator transaction binding the contract method 0xa5d21e31.

Solidity: function lockWithStartBlock(address token, address account, uint256 quantity, uint256 startBlock) returns()

func (*KyberRewardLockerTransactorSession) RemoveRewardsContract

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) RemoveRewardsContract(token common.Address, _rewardContract common.Address) (*types.Transaction, error)

RemoveRewardsContract is a paid mutator transaction binding the contract method 0x4c9d00cc.

Solidity: function removeRewardsContract(address token, address _rewardContract) returns()

func (*KyberRewardLockerTransactorSession) SetVestingDuration

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) SetVestingDuration(token common.Address, _vestingDuration uint64) (*types.Transaction, error)

SetVestingDuration is a paid mutator transaction binding the contract method 0xcb1d086b.

Solidity: function setVestingDuration(address token, uint64 _vestingDuration) returns()

func (*KyberRewardLockerTransactorSession) TransferAdmin

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) 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 (*KyberRewardLockerTransactorSession) TransferAdminQuickly

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) 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 (*KyberRewardLockerTransactorSession) VestCompletedSchedules

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) VestCompletedSchedules(token common.Address) (*types.Transaction, error)

VestCompletedSchedules is a paid mutator transaction binding the contract method 0xfdfaaa05.

Solidity: function vestCompletedSchedules(address token) returns(uint256)

func (*KyberRewardLockerTransactorSession) VestCompletedSchedulesForMultipleTokens

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) VestCompletedSchedulesForMultipleTokens(tokens []common.Address) (*types.Transaction, error)

VestCompletedSchedulesForMultipleTokens is a paid mutator transaction binding the contract method 0x9059aa6a.

Solidity: function vestCompletedSchedulesForMultipleTokens(address[] tokens) returns(uint256[] vestedAmounts)

func (*KyberRewardLockerTransactorSession) VestScheduleAtIndices

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) VestScheduleAtIndices(token common.Address, indexes []*big.Int) (*types.Transaction, error)

VestScheduleAtIndices is a paid mutator transaction binding the contract method 0x0f5636c3.

Solidity: function vestScheduleAtIndices(address token, uint256[] indexes) returns(uint256)

func (*KyberRewardLockerTransactorSession) VestScheduleForMultipleTokensAtIndices

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) VestScheduleForMultipleTokensAtIndices(tokens []common.Address, indices [][]*big.Int) (*types.Transaction, error)

VestScheduleForMultipleTokensAtIndices is a paid mutator transaction binding the contract method 0x4d4f3d93.

Solidity: function vestScheduleForMultipleTokensAtIndices(address[] tokens, uint256[][] indices) returns(uint256[] vestedAmounts)

func (*KyberRewardLockerTransactorSession) VestSchedulesInRange

func (_KyberRewardLocker *KyberRewardLockerTransactorSession) VestSchedulesInRange(token common.Address, startIndex *big.Int, endIndex *big.Int) (*types.Transaction, error)

VestSchedulesInRange is a paid mutator transaction binding the contract method 0xc33fddf8.

Solidity: function vestSchedulesInRange(address token, uint256 startIndex, uint256 endIndex) returns(uint256)

Jump to

Keyboard shortcuts

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