vectorRewarder

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 VectorRewarderABI = VectorRewarderMetaData.ABI

VectorRewarderABI is the input ABI used to generate the binding from. Deprecated: Use VectorRewarderMetaData.ABI instead.

View Source
var VectorRewarderMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountReward\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"}],\"name\":\"donateRewards\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"}],\"name\":\"earned\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getReward\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRewardUser\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakingToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isRewardToken\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mainRewardToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"operator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountReward\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"}],\"name\":\"queueNewRewards\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"}],\"name\":\"rewardDecimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"}],\"name\":\"rewardPerToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"\",\"type\":\"address\"}],\"name\":\"rewards\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"rewardToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerTokenStored\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"queuedRewards\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"historicalRewards\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_for\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"stakeFor\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakingDecimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakingToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"updateFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userRewardPerTokenPaid\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_for\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"claim\",\"type\":\"bool\"}],\"name\":\"withdrawFor\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

VectorRewarderMetaData contains all meta data concerning the VectorRewarder contract.

Functions

This section is empty.

Types

type VectorRewarder

type VectorRewarder struct {
	VectorRewarderCaller     // Read-only binding to the contract
	VectorRewarderTransactor // Write-only binding to the contract
	VectorRewarderFilterer   // Log filterer for contract events
}

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

func NewVectorRewarder

func NewVectorRewarder(address common.Address, backend bind.ContractBackend) (*VectorRewarder, error)

NewVectorRewarder creates a new instance of VectorRewarder, bound to a specific deployed contract.

type VectorRewarderCaller

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

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

func NewVectorRewarderCaller

func NewVectorRewarderCaller(address common.Address, caller bind.ContractCaller) (*VectorRewarderCaller, error)

NewVectorRewarderCaller creates a new read-only instance of VectorRewarder, bound to a specific deployed contract.

func (*VectorRewarderCaller) BalanceOf

func (_VectorRewarder *VectorRewarderCaller) BalanceOf(opts *bind.CallOpts, _account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _account) view returns(uint256)

func (*VectorRewarderCaller) Earned

func (_VectorRewarder *VectorRewarderCaller) Earned(opts *bind.CallOpts, _account common.Address, _rewardToken common.Address) (*big.Int, error)

Earned is a free data retrieval call binding the contract method 0x211dc32d.

Solidity: function earned(address _account, address _rewardToken) view returns(uint256)

func (*VectorRewarderCaller) GetStakingToken

func (_VectorRewarder *VectorRewarderCaller) GetStakingToken(opts *bind.CallOpts) (common.Address, error)

GetStakingToken is a free data retrieval call binding the contract method 0x9f9106d1.

Solidity: function getStakingToken() view returns(address)

func (*VectorRewarderCaller) IsRewardToken

func (_VectorRewarder *VectorRewarderCaller) IsRewardToken(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsRewardToken is a free data retrieval call binding the contract method 0xb5fd73f8.

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

func (*VectorRewarderCaller) MainRewardToken

func (_VectorRewarder *VectorRewarderCaller) MainRewardToken(opts *bind.CallOpts) (common.Address, error)

MainRewardToken is a free data retrieval call binding the contract method 0xf3fc7c2b.

Solidity: function mainRewardToken() view returns(address)

func (*VectorRewarderCaller) Operator

func (_VectorRewarder *VectorRewarderCaller) Operator(opts *bind.CallOpts) (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*VectorRewarderCaller) Owner

func (_VectorRewarder *VectorRewarderCaller) 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 (*VectorRewarderCaller) RewardDecimals

func (_VectorRewarder *VectorRewarderCaller) RewardDecimals(opts *bind.CallOpts, _rewardToken common.Address) (*big.Int, error)

RewardDecimals is a free data retrieval call binding the contract method 0x99da1729.

Solidity: function rewardDecimals(address _rewardToken) view returns(uint256)

func (*VectorRewarderCaller) RewardManager

func (_VectorRewarder *VectorRewarderCaller) RewardManager(opts *bind.CallOpts) (common.Address, error)

RewardManager is a free data retrieval call binding the contract method 0x0f4ef8a6.

Solidity: function rewardManager() view returns(address)

func (*VectorRewarderCaller) RewardPerToken

func (_VectorRewarder *VectorRewarderCaller) RewardPerToken(opts *bind.CallOpts, _rewardToken common.Address) (*big.Int, error)

RewardPerToken is a free data retrieval call binding the contract method 0xf1229777.

Solidity: function rewardPerToken(address _rewardToken) view returns(uint256)

func (*VectorRewarderCaller) RewardTokens

func (_VectorRewarder *VectorRewarderCaller) 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)

func (*VectorRewarderCaller) Rewards

func (_VectorRewarder *VectorRewarderCaller) Rewards(opts *bind.CallOpts, arg0 common.Address) (struct {
	RewardToken          common.Address
	RewardPerTokenStored *big.Int
	QueuedRewards        *big.Int
	HistoricalRewards    *big.Int
}, error)

Rewards is a free data retrieval call binding the contract method 0x0700037d.

Solidity: function rewards(address ) view returns(address rewardToken, uint256 rewardPerTokenStored, uint256 queuedRewards, uint256 historicalRewards)

func (*VectorRewarderCaller) StakingDecimals

func (_VectorRewarder *VectorRewarderCaller) StakingDecimals(opts *bind.CallOpts) (*big.Int, error)

StakingDecimals is a free data retrieval call binding the contract method 0xc11f5344.

Solidity: function stakingDecimals() view returns(uint256)

func (*VectorRewarderCaller) StakingToken

func (_VectorRewarder *VectorRewarderCaller) StakingToken(opts *bind.CallOpts) (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*VectorRewarderCaller) TotalSupply

func (_VectorRewarder *VectorRewarderCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*VectorRewarderCaller) UserRewardPerTokenPaid

func (_VectorRewarder *VectorRewarderCaller) UserRewardPerTokenPaid(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

UserRewardPerTokenPaid is a free data retrieval call binding the contract method 0x7035ab98.

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

func (*VectorRewarderCaller) UserRewards

func (_VectorRewarder *VectorRewarderCaller) UserRewards(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

UserRewards is a free data retrieval call binding the contract method 0xa980356a.

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

type VectorRewarderCallerRaw

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

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

func (*VectorRewarderCallerRaw) Call

func (_VectorRewarder *VectorRewarderCallerRaw) 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 VectorRewarderCallerSession

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

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

func (*VectorRewarderCallerSession) BalanceOf

func (_VectorRewarder *VectorRewarderCallerSession) BalanceOf(_account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _account) view returns(uint256)

func (*VectorRewarderCallerSession) Earned

func (_VectorRewarder *VectorRewarderCallerSession) Earned(_account common.Address, _rewardToken common.Address) (*big.Int, error)

Earned is a free data retrieval call binding the contract method 0x211dc32d.

Solidity: function earned(address _account, address _rewardToken) view returns(uint256)

func (*VectorRewarderCallerSession) GetStakingToken

func (_VectorRewarder *VectorRewarderCallerSession) GetStakingToken() (common.Address, error)

GetStakingToken is a free data retrieval call binding the contract method 0x9f9106d1.

Solidity: function getStakingToken() view returns(address)

func (*VectorRewarderCallerSession) IsRewardToken

func (_VectorRewarder *VectorRewarderCallerSession) IsRewardToken(arg0 common.Address) (bool, error)

IsRewardToken is a free data retrieval call binding the contract method 0xb5fd73f8.

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

func (*VectorRewarderCallerSession) MainRewardToken

func (_VectorRewarder *VectorRewarderCallerSession) MainRewardToken() (common.Address, error)

MainRewardToken is a free data retrieval call binding the contract method 0xf3fc7c2b.

Solidity: function mainRewardToken() view returns(address)

func (*VectorRewarderCallerSession) Operator

func (_VectorRewarder *VectorRewarderCallerSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*VectorRewarderCallerSession) Owner

func (_VectorRewarder *VectorRewarderCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*VectorRewarderCallerSession) RewardDecimals

func (_VectorRewarder *VectorRewarderCallerSession) RewardDecimals(_rewardToken common.Address) (*big.Int, error)

RewardDecimals is a free data retrieval call binding the contract method 0x99da1729.

Solidity: function rewardDecimals(address _rewardToken) view returns(uint256)

func (*VectorRewarderCallerSession) RewardManager

func (_VectorRewarder *VectorRewarderCallerSession) RewardManager() (common.Address, error)

RewardManager is a free data retrieval call binding the contract method 0x0f4ef8a6.

Solidity: function rewardManager() view returns(address)

func (*VectorRewarderCallerSession) RewardPerToken

func (_VectorRewarder *VectorRewarderCallerSession) RewardPerToken(_rewardToken common.Address) (*big.Int, error)

RewardPerToken is a free data retrieval call binding the contract method 0xf1229777.

Solidity: function rewardPerToken(address _rewardToken) view returns(uint256)

func (*VectorRewarderCallerSession) RewardTokens

func (_VectorRewarder *VectorRewarderCallerSession) 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 (*VectorRewarderCallerSession) Rewards

func (_VectorRewarder *VectorRewarderCallerSession) Rewards(arg0 common.Address) (struct {
	RewardToken          common.Address
	RewardPerTokenStored *big.Int
	QueuedRewards        *big.Int
	HistoricalRewards    *big.Int
}, error)

Rewards is a free data retrieval call binding the contract method 0x0700037d.

Solidity: function rewards(address ) view returns(address rewardToken, uint256 rewardPerTokenStored, uint256 queuedRewards, uint256 historicalRewards)

func (*VectorRewarderCallerSession) StakingDecimals

func (_VectorRewarder *VectorRewarderCallerSession) StakingDecimals() (*big.Int, error)

StakingDecimals is a free data retrieval call binding the contract method 0xc11f5344.

Solidity: function stakingDecimals() view returns(uint256)

func (*VectorRewarderCallerSession) StakingToken

func (_VectorRewarder *VectorRewarderCallerSession) StakingToken() (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*VectorRewarderCallerSession) TotalSupply

func (_VectorRewarder *VectorRewarderCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*VectorRewarderCallerSession) UserRewardPerTokenPaid

func (_VectorRewarder *VectorRewarderCallerSession) UserRewardPerTokenPaid(arg0 common.Address, arg1 common.Address) (*big.Int, error)

UserRewardPerTokenPaid is a free data retrieval call binding the contract method 0x7035ab98.

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

func (*VectorRewarderCallerSession) UserRewards

func (_VectorRewarder *VectorRewarderCallerSession) UserRewards(arg0 common.Address, arg1 common.Address) (*big.Int, error)

UserRewards is a free data retrieval call binding the contract method 0xa980356a.

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

type VectorRewarderFilterer

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

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

func NewVectorRewarderFilterer

func NewVectorRewarderFilterer(address common.Address, filterer bind.ContractFilterer) (*VectorRewarderFilterer, error)

NewVectorRewarderFilterer creates a new log filterer instance of VectorRewarder, bound to a specific deployed contract.

type VectorRewarderRaw

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

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

func (*VectorRewarderRaw) Call

func (_VectorRewarder *VectorRewarderRaw) 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 (*VectorRewarderRaw) Transact

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

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

func (*VectorRewarderRaw) Transfer

func (_VectorRewarder *VectorRewarderRaw) 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 VectorRewarderSession

type VectorRewarderSession struct {
	Contract     *VectorRewarder   // 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
}

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

func (*VectorRewarderSession) BalanceOf

func (_VectorRewarder *VectorRewarderSession) BalanceOf(_account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _account) view returns(uint256)

func (*VectorRewarderSession) DonateRewards

func (_VectorRewarder *VectorRewarderSession) DonateRewards(_amountReward *big.Int, _rewardToken common.Address) (*types.Transaction, error)

DonateRewards is a paid mutator transaction binding the contract method 0x5bc59ce7.

Solidity: function donateRewards(uint256 _amountReward, address _rewardToken) returns(bool)

func (*VectorRewarderSession) Earned

func (_VectorRewarder *VectorRewarderSession) Earned(_account common.Address, _rewardToken common.Address) (*big.Int, error)

Earned is a free data retrieval call binding the contract method 0x211dc32d.

Solidity: function earned(address _account, address _rewardToken) view returns(uint256)

func (*VectorRewarderSession) GetReward

func (_VectorRewarder *VectorRewarderSession) GetReward(_account common.Address) (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0xc00007b0.

Solidity: function getReward(address _account) returns(bool)

func (*VectorRewarderSession) GetRewardUser

func (_VectorRewarder *VectorRewarderSession) GetRewardUser() (*types.Transaction, error)

GetRewardUser is a paid mutator transaction binding the contract method 0x18838d33.

Solidity: function getRewardUser() returns(bool)

func (*VectorRewarderSession) GetStakingToken

func (_VectorRewarder *VectorRewarderSession) GetStakingToken() (common.Address, error)

GetStakingToken is a free data retrieval call binding the contract method 0x9f9106d1.

Solidity: function getStakingToken() view returns(address)

func (*VectorRewarderSession) IsRewardToken

func (_VectorRewarder *VectorRewarderSession) IsRewardToken(arg0 common.Address) (bool, error)

IsRewardToken is a free data retrieval call binding the contract method 0xb5fd73f8.

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

func (*VectorRewarderSession) MainRewardToken

func (_VectorRewarder *VectorRewarderSession) MainRewardToken() (common.Address, error)

MainRewardToken is a free data retrieval call binding the contract method 0xf3fc7c2b.

Solidity: function mainRewardToken() view returns(address)

func (*VectorRewarderSession) Operator

func (_VectorRewarder *VectorRewarderSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*VectorRewarderSession) Owner

func (_VectorRewarder *VectorRewarderSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*VectorRewarderSession) QueueNewRewards

func (_VectorRewarder *VectorRewarderSession) QueueNewRewards(_amountReward *big.Int, _rewardToken common.Address) (*types.Transaction, error)

QueueNewRewards is a paid mutator transaction binding the contract method 0x8fcf4822.

Solidity: function queueNewRewards(uint256 _amountReward, address _rewardToken) returns(bool)

func (*VectorRewarderSession) RenounceOwnership

func (_VectorRewarder *VectorRewarderSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*VectorRewarderSession) RewardDecimals

func (_VectorRewarder *VectorRewarderSession) RewardDecimals(_rewardToken common.Address) (*big.Int, error)

RewardDecimals is a free data retrieval call binding the contract method 0x99da1729.

Solidity: function rewardDecimals(address _rewardToken) view returns(uint256)

func (*VectorRewarderSession) RewardManager

func (_VectorRewarder *VectorRewarderSession) RewardManager() (common.Address, error)

RewardManager is a free data retrieval call binding the contract method 0x0f4ef8a6.

Solidity: function rewardManager() view returns(address)

func (*VectorRewarderSession) RewardPerToken

func (_VectorRewarder *VectorRewarderSession) RewardPerToken(_rewardToken common.Address) (*big.Int, error)

RewardPerToken is a free data retrieval call binding the contract method 0xf1229777.

Solidity: function rewardPerToken(address _rewardToken) view returns(uint256)

func (*VectorRewarderSession) RewardTokens

func (_VectorRewarder *VectorRewarderSession) 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 (*VectorRewarderSession) Rewards

func (_VectorRewarder *VectorRewarderSession) Rewards(arg0 common.Address) (struct {
	RewardToken          common.Address
	RewardPerTokenStored *big.Int
	QueuedRewards        *big.Int
	HistoricalRewards    *big.Int
}, error)

Rewards is a free data retrieval call binding the contract method 0x0700037d.

Solidity: function rewards(address ) view returns(address rewardToken, uint256 rewardPerTokenStored, uint256 queuedRewards, uint256 historicalRewards)

func (*VectorRewarderSession) StakeFor

func (_VectorRewarder *VectorRewarderSession) StakeFor(_for common.Address, _amount *big.Int) (*types.Transaction, error)

StakeFor is a paid mutator transaction binding the contract method 0x2ee40908.

Solidity: function stakeFor(address _for, uint256 _amount) returns(bool)

func (*VectorRewarderSession) StakingDecimals

func (_VectorRewarder *VectorRewarderSession) StakingDecimals() (*big.Int, error)

StakingDecimals is a free data retrieval call binding the contract method 0xc11f5344.

Solidity: function stakingDecimals() view returns(uint256)

func (*VectorRewarderSession) StakingToken

func (_VectorRewarder *VectorRewarderSession) StakingToken() (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*VectorRewarderSession) TotalSupply

func (_VectorRewarder *VectorRewarderSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*VectorRewarderSession) TransferOwnership

func (_VectorRewarder *VectorRewarderSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*VectorRewarderSession) UpdateFor

func (_VectorRewarder *VectorRewarderSession) UpdateFor(_account common.Address) (*types.Transaction, error)

UpdateFor is a paid mutator transaction binding the contract method 0x0e0a5968.

Solidity: function updateFor(address _account) returns()

func (*VectorRewarderSession) UserRewardPerTokenPaid

func (_VectorRewarder *VectorRewarderSession) UserRewardPerTokenPaid(arg0 common.Address, arg1 common.Address) (*big.Int, error)

UserRewardPerTokenPaid is a free data retrieval call binding the contract method 0x7035ab98.

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

func (*VectorRewarderSession) UserRewards

func (_VectorRewarder *VectorRewarderSession) UserRewards(arg0 common.Address, arg1 common.Address) (*big.Int, error)

UserRewards is a free data retrieval call binding the contract method 0xa980356a.

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

func (*VectorRewarderSession) WithdrawFor

func (_VectorRewarder *VectorRewarderSession) WithdrawFor(_for common.Address, _amount *big.Int, claim bool) (*types.Transaction, error)

WithdrawFor is a paid mutator transaction binding the contract method 0x0e19c699.

Solidity: function withdrawFor(address _for, uint256 _amount, bool claim) returns(bool)

type VectorRewarderTransactor

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

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

func NewVectorRewarderTransactor

func NewVectorRewarderTransactor(address common.Address, transactor bind.ContractTransactor) (*VectorRewarderTransactor, error)

NewVectorRewarderTransactor creates a new write-only instance of VectorRewarder, bound to a specific deployed contract.

func (*VectorRewarderTransactor) DonateRewards

func (_VectorRewarder *VectorRewarderTransactor) DonateRewards(opts *bind.TransactOpts, _amountReward *big.Int, _rewardToken common.Address) (*types.Transaction, error)

DonateRewards is a paid mutator transaction binding the contract method 0x5bc59ce7.

Solidity: function donateRewards(uint256 _amountReward, address _rewardToken) returns(bool)

func (*VectorRewarderTransactor) GetReward

func (_VectorRewarder *VectorRewarderTransactor) GetReward(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0xc00007b0.

Solidity: function getReward(address _account) returns(bool)

func (*VectorRewarderTransactor) GetRewardUser

func (_VectorRewarder *VectorRewarderTransactor) GetRewardUser(opts *bind.TransactOpts) (*types.Transaction, error)

GetRewardUser is a paid mutator transaction binding the contract method 0x18838d33.

Solidity: function getRewardUser() returns(bool)

func (*VectorRewarderTransactor) QueueNewRewards

func (_VectorRewarder *VectorRewarderTransactor) QueueNewRewards(opts *bind.TransactOpts, _amountReward *big.Int, _rewardToken common.Address) (*types.Transaction, error)

QueueNewRewards is a paid mutator transaction binding the contract method 0x8fcf4822.

Solidity: function queueNewRewards(uint256 _amountReward, address _rewardToken) returns(bool)

func (*VectorRewarderTransactor) RenounceOwnership

func (_VectorRewarder *VectorRewarderTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*VectorRewarderTransactor) StakeFor

func (_VectorRewarder *VectorRewarderTransactor) StakeFor(opts *bind.TransactOpts, _for common.Address, _amount *big.Int) (*types.Transaction, error)

StakeFor is a paid mutator transaction binding the contract method 0x2ee40908.

Solidity: function stakeFor(address _for, uint256 _amount) returns(bool)

func (*VectorRewarderTransactor) TransferOwnership

func (_VectorRewarder *VectorRewarderTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*VectorRewarderTransactor) UpdateFor

func (_VectorRewarder *VectorRewarderTransactor) UpdateFor(opts *bind.TransactOpts, _account common.Address) (*types.Transaction, error)

UpdateFor is a paid mutator transaction binding the contract method 0x0e0a5968.

Solidity: function updateFor(address _account) returns()

func (*VectorRewarderTransactor) WithdrawFor

func (_VectorRewarder *VectorRewarderTransactor) WithdrawFor(opts *bind.TransactOpts, _for common.Address, _amount *big.Int, claim bool) (*types.Transaction, error)

WithdrawFor is a paid mutator transaction binding the contract method 0x0e19c699.

Solidity: function withdrawFor(address _for, uint256 _amount, bool claim) returns(bool)

type VectorRewarderTransactorRaw

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

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

func (*VectorRewarderTransactorRaw) Transact

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

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

func (*VectorRewarderTransactorRaw) Transfer

func (_VectorRewarder *VectorRewarderTransactorRaw) 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 VectorRewarderTransactorSession

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

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

func (*VectorRewarderTransactorSession) DonateRewards

func (_VectorRewarder *VectorRewarderTransactorSession) DonateRewards(_amountReward *big.Int, _rewardToken common.Address) (*types.Transaction, error)

DonateRewards is a paid mutator transaction binding the contract method 0x5bc59ce7.

Solidity: function donateRewards(uint256 _amountReward, address _rewardToken) returns(bool)

func (*VectorRewarderTransactorSession) GetReward

func (_VectorRewarder *VectorRewarderTransactorSession) GetReward(_account common.Address) (*types.Transaction, error)

GetReward is a paid mutator transaction binding the contract method 0xc00007b0.

Solidity: function getReward(address _account) returns(bool)

func (*VectorRewarderTransactorSession) GetRewardUser

func (_VectorRewarder *VectorRewarderTransactorSession) GetRewardUser() (*types.Transaction, error)

GetRewardUser is a paid mutator transaction binding the contract method 0x18838d33.

Solidity: function getRewardUser() returns(bool)

func (*VectorRewarderTransactorSession) QueueNewRewards

func (_VectorRewarder *VectorRewarderTransactorSession) QueueNewRewards(_amountReward *big.Int, _rewardToken common.Address) (*types.Transaction, error)

QueueNewRewards is a paid mutator transaction binding the contract method 0x8fcf4822.

Solidity: function queueNewRewards(uint256 _amountReward, address _rewardToken) returns(bool)

func (*VectorRewarderTransactorSession) RenounceOwnership

func (_VectorRewarder *VectorRewarderTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*VectorRewarderTransactorSession) StakeFor

func (_VectorRewarder *VectorRewarderTransactorSession) StakeFor(_for common.Address, _amount *big.Int) (*types.Transaction, error)

StakeFor is a paid mutator transaction binding the contract method 0x2ee40908.

Solidity: function stakeFor(address _for, uint256 _amount) returns(bool)

func (*VectorRewarderTransactorSession) TransferOwnership

func (_VectorRewarder *VectorRewarderTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*VectorRewarderTransactorSession) UpdateFor

func (_VectorRewarder *VectorRewarderTransactorSession) UpdateFor(_account common.Address) (*types.Transaction, error)

UpdateFor is a paid mutator transaction binding the contract method 0x0e0a5968.

Solidity: function updateFor(address _account) returns()

func (*VectorRewarderTransactorSession) WithdrawFor

func (_VectorRewarder *VectorRewarderTransactorSession) WithdrawFor(_for common.Address, _amount *big.Int, claim bool) (*types.Transaction, error)

WithdrawFor is a paid mutator transaction binding the contract method 0x0e19c699.

Solidity: function withdrawFor(address _for, uint256 _amount, bool claim) returns(bool)

Jump to

Keyboard shortcuts

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