Documentation ¶
Index ¶
- Variables
- type TraderjoeSimpleReward
- type TraderjoeSimpleRewardCaller
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) Balance(opts *bind.CallOpts) (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) IsNative(opts *bind.CallOpts) (bool, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) LpToken(opts *bind.CallOpts) (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) MCJ(opts *bind.CallOpts) (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) PendingTokens(opts *bind.CallOpts, _user common.Address) (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) PoolInfo(opts *bind.CallOpts) (struct{ ... }, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) RewardToken(opts *bind.CallOpts) (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) TokenPerSec(opts *bind.CallOpts) (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) UserInfo(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- type TraderjoeSimpleRewardCallerRaw
- type TraderjoeSimpleRewardCallerSession
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) Balance() (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) IsNative() (bool, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) LpToken() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) MCJ() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) Owner() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) PendingOwner() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) PendingTokens(_user common.Address) (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) PoolInfo() (struct{ ... }, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) RewardToken() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) TokenPerSec() (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) UserInfo(arg0 common.Address) (struct{ ... }, error)
- type TraderjoeSimpleRewardFilterer
- type TraderjoeSimpleRewardRaw
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TraderjoeSimpleRewardSession
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) Balance() (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) ClaimOwnership() (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) EmergencyWithdraw() (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) IsNative() (bool, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) LpToken() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) MCJ() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) OnJoeReward(_user common.Address, _lpAmount *big.Int) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) Owner() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) PendingOwner() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) PendingTokens(_user common.Address) (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) PoolInfo() (struct{ ... }, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) RewardToken() (common.Address, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) SetRewardRate(_tokenPerSec *big.Int) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) TokenPerSec() (*big.Int, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) TransferOwnership(newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) UserInfo(arg0 common.Address) (struct{ ... }, error)
- type TraderjoeSimpleRewardTransactor
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) ClaimOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) EmergencyWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) OnJoeReward(opts *bind.TransactOpts, _user common.Address, _lpAmount *big.Int) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) SetRewardRate(opts *bind.TransactOpts, _tokenPerSec *big.Int) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)
- type TraderjoeSimpleRewardTransactorRaw
- type TraderjoeSimpleRewardTransactorSession
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) ClaimOwnership() (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) EmergencyWithdraw() (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) OnJoeReward(_user common.Address, _lpAmount *big.Int) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) SetRewardRate(_tokenPerSec *big.Int) (*types.Transaction, error)
- func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) TransferOwnership(newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var TraderjoeSimpleRewardABI = TraderjoeSimpleRewardMetaData.ABI
TraderjoeSimpleRewardABI is the input ABI used to generate the binding from. Deprecated: Use TraderjoeSimpleRewardMetaData.ABI instead.
var TraderjoeSimpleRewardMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"MCJ\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"balance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"emergencyWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isNative\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lpToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_lpAmount\",\"type\":\"uint256\"}],\"name\":\"onJoeReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"pendingTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"pending\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"accTokenPerShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastRewardTimestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenPerSec\",\"type\":\"uint256\"}],\"name\":\"setRewardRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenPerSec\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"direct\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"renounce\",\"type\":\"bool\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDebt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
TraderjoeSimpleRewardMetaData contains all meta data concerning the TraderjoeSimpleReward contract.
Functions ¶
This section is empty.
Types ¶
type TraderjoeSimpleReward ¶
type TraderjoeSimpleReward struct { TraderjoeSimpleRewardCaller // Read-only binding to the contract TraderjoeSimpleRewardTransactor // Write-only binding to the contract TraderjoeSimpleRewardFilterer // Log filterer for contract events }
TraderjoeSimpleReward is an auto generated Go binding around an Ethereum contract.
func NewTraderjoeSimpleReward ¶
func NewTraderjoeSimpleReward(address common.Address, backend bind.ContractBackend) (*TraderjoeSimpleReward, error)
NewTraderjoeSimpleReward creates a new instance of TraderjoeSimpleReward, bound to a specific deployed contract.
type TraderjoeSimpleRewardCaller ¶
type TraderjoeSimpleRewardCaller struct {
// contains filtered or unexported fields
}
TraderjoeSimpleRewardCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTraderjoeSimpleRewardCaller ¶
func NewTraderjoeSimpleRewardCaller(address common.Address, caller bind.ContractCaller) (*TraderjoeSimpleRewardCaller, error)
NewTraderjoeSimpleRewardCaller creates a new read-only instance of TraderjoeSimpleReward, bound to a specific deployed contract.
func (*TraderjoeSimpleRewardCaller) Balance ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) Balance(opts *bind.CallOpts) (*big.Int, error)
Balance is a free data retrieval call binding the contract method 0xb69ef8a8.
Solidity: function balance() view returns(uint256)
func (*TraderjoeSimpleRewardCaller) IsNative ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) IsNative(opts *bind.CallOpts) (bool, error)
IsNative is a free data retrieval call binding the contract method 0x73cfc6b2.
Solidity: function isNative() view returns(bool)
func (*TraderjoeSimpleRewardCaller) LpToken ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) LpToken(opts *bind.CallOpts) (common.Address, error)
LpToken is a free data retrieval call binding the contract method 0x5fcbd285.
Solidity: function lpToken() view returns(address)
func (*TraderjoeSimpleRewardCaller) MCJ ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) MCJ(opts *bind.CallOpts) (common.Address, error)
MCJ is a free data retrieval call binding the contract method 0x30628e15.
Solidity: function MCJ() view returns(address)
func (*TraderjoeSimpleRewardCaller) Owner ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) 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 (*TraderjoeSimpleRewardCaller) PendingOwner ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error)
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
func (*TraderjoeSimpleRewardCaller) PendingTokens ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) PendingTokens(opts *bind.CallOpts, _user common.Address) (*big.Int, error)
PendingTokens is a free data retrieval call binding the contract method 0xc031a66f.
Solidity: function pendingTokens(address _user) view returns(uint256 pending)
func (*TraderjoeSimpleRewardCaller) PoolInfo ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) PoolInfo(opts *bind.CallOpts) (struct { AccTokenPerShare *big.Int LastRewardTimestamp *big.Int }, error)
PoolInfo is a free data retrieval call binding the contract method 0x5a2f3d09.
Solidity: function poolInfo() view returns(uint256 accTokenPerShare, uint256 lastRewardTimestamp)
func (*TraderjoeSimpleRewardCaller) RewardToken ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) RewardToken(opts *bind.CallOpts) (common.Address, error)
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*TraderjoeSimpleRewardCaller) TokenPerSec ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) TokenPerSec(opts *bind.CallOpts) (*big.Int, error)
TokenPerSec is a free data retrieval call binding the contract method 0x50fd1f3e.
Solidity: function tokenPerSec() view returns(uint256)
func (*TraderjoeSimpleRewardCaller) UserInfo ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCaller) UserInfo(opts *bind.CallOpts, arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
type TraderjoeSimpleRewardCallerRaw ¶
type TraderjoeSimpleRewardCallerRaw struct {
Contract *TraderjoeSimpleRewardCaller // Generic read-only contract binding to access the raw methods on
}
TraderjoeSimpleRewardCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TraderjoeSimpleRewardCallerRaw) Call ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerRaw) 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 TraderjoeSimpleRewardCallerSession ¶
type TraderjoeSimpleRewardCallerSession struct { Contract *TraderjoeSimpleRewardCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TraderjoeSimpleRewardCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TraderjoeSimpleRewardCallerSession) Balance ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) Balance() (*big.Int, error)
Balance is a free data retrieval call binding the contract method 0xb69ef8a8.
Solidity: function balance() view returns(uint256)
func (*TraderjoeSimpleRewardCallerSession) IsNative ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) IsNative() (bool, error)
IsNative is a free data retrieval call binding the contract method 0x73cfc6b2.
Solidity: function isNative() view returns(bool)
func (*TraderjoeSimpleRewardCallerSession) LpToken ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) LpToken() (common.Address, error)
LpToken is a free data retrieval call binding the contract method 0x5fcbd285.
Solidity: function lpToken() view returns(address)
func (*TraderjoeSimpleRewardCallerSession) MCJ ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) MCJ() (common.Address, error)
MCJ is a free data retrieval call binding the contract method 0x30628e15.
Solidity: function MCJ() view returns(address)
func (*TraderjoeSimpleRewardCallerSession) Owner ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*TraderjoeSimpleRewardCallerSession) PendingOwner ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) PendingOwner() (common.Address, error)
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
func (*TraderjoeSimpleRewardCallerSession) PendingTokens ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) PendingTokens(_user common.Address) (*big.Int, error)
PendingTokens is a free data retrieval call binding the contract method 0xc031a66f.
Solidity: function pendingTokens(address _user) view returns(uint256 pending)
func (*TraderjoeSimpleRewardCallerSession) PoolInfo ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) PoolInfo() (struct { AccTokenPerShare *big.Int LastRewardTimestamp *big.Int }, error)
PoolInfo is a free data retrieval call binding the contract method 0x5a2f3d09.
Solidity: function poolInfo() view returns(uint256 accTokenPerShare, uint256 lastRewardTimestamp)
func (*TraderjoeSimpleRewardCallerSession) RewardToken ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) RewardToken() (common.Address, error)
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*TraderjoeSimpleRewardCallerSession) TokenPerSec ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) TokenPerSec() (*big.Int, error)
TokenPerSec is a free data retrieval call binding the contract method 0x50fd1f3e.
Solidity: function tokenPerSec() view returns(uint256)
func (*TraderjoeSimpleRewardCallerSession) UserInfo ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardCallerSession) UserInfo(arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
type TraderjoeSimpleRewardFilterer ¶
type TraderjoeSimpleRewardFilterer struct {
// contains filtered or unexported fields
}
TraderjoeSimpleRewardFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTraderjoeSimpleRewardFilterer ¶
func NewTraderjoeSimpleRewardFilterer(address common.Address, filterer bind.ContractFilterer) (*TraderjoeSimpleRewardFilterer, error)
NewTraderjoeSimpleRewardFilterer creates a new log filterer instance of TraderjoeSimpleReward, bound to a specific deployed contract.
type TraderjoeSimpleRewardRaw ¶
type TraderjoeSimpleRewardRaw struct {
Contract *TraderjoeSimpleReward // Generic contract binding to access the raw methods on
}
TraderjoeSimpleRewardRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TraderjoeSimpleRewardRaw) Call ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardRaw) 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 (*TraderjoeSimpleRewardRaw) Transact ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TraderjoeSimpleRewardRaw) Transfer ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardRaw) 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 TraderjoeSimpleRewardSession ¶
type TraderjoeSimpleRewardSession struct { Contract *TraderjoeSimpleReward // 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 }
TraderjoeSimpleRewardSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TraderjoeSimpleRewardSession) Balance ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) Balance() (*big.Int, error)
Balance is a free data retrieval call binding the contract method 0xb69ef8a8.
Solidity: function balance() view returns(uint256)
func (*TraderjoeSimpleRewardSession) ClaimOwnership ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) ClaimOwnership() (*types.Transaction, error)
ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.
Solidity: function claimOwnership() returns()
func (*TraderjoeSimpleRewardSession) EmergencyWithdraw ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) EmergencyWithdraw() (*types.Transaction, error)
EmergencyWithdraw is a paid mutator transaction binding the contract method 0xdb2e21bc.
Solidity: function emergencyWithdraw() returns()
func (*TraderjoeSimpleRewardSession) IsNative ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) IsNative() (bool, error)
IsNative is a free data retrieval call binding the contract method 0x73cfc6b2.
Solidity: function isNative() view returns(bool)
func (*TraderjoeSimpleRewardSession) LpToken ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) LpToken() (common.Address, error)
LpToken is a free data retrieval call binding the contract method 0x5fcbd285.
Solidity: function lpToken() view returns(address)
func (*TraderjoeSimpleRewardSession) MCJ ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) MCJ() (common.Address, error)
MCJ is a free data retrieval call binding the contract method 0x30628e15.
Solidity: function MCJ() view returns(address)
func (*TraderjoeSimpleRewardSession) OnJoeReward ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) OnJoeReward(_user common.Address, _lpAmount *big.Int) (*types.Transaction, error)
OnJoeReward is a paid mutator transaction binding the contract method 0x1a7af8b0.
Solidity: function onJoeReward(address _user, uint256 _lpAmount) returns()
func (*TraderjoeSimpleRewardSession) Owner ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*TraderjoeSimpleRewardSession) PendingOwner ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) PendingOwner() (common.Address, error)
PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.
Solidity: function pendingOwner() view returns(address)
func (*TraderjoeSimpleRewardSession) PendingTokens ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) PendingTokens(_user common.Address) (*big.Int, error)
PendingTokens is a free data retrieval call binding the contract method 0xc031a66f.
Solidity: function pendingTokens(address _user) view returns(uint256 pending)
func (*TraderjoeSimpleRewardSession) PoolInfo ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) PoolInfo() (struct { AccTokenPerShare *big.Int LastRewardTimestamp *big.Int }, error)
PoolInfo is a free data retrieval call binding the contract method 0x5a2f3d09.
Solidity: function poolInfo() view returns(uint256 accTokenPerShare, uint256 lastRewardTimestamp)
func (*TraderjoeSimpleRewardSession) RewardToken ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) RewardToken() (common.Address, error)
RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.
Solidity: function rewardToken() view returns(address)
func (*TraderjoeSimpleRewardSession) SetRewardRate ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) SetRewardRate(_tokenPerSec *big.Int) (*types.Transaction, error)
SetRewardRate is a paid mutator transaction binding the contract method 0x9e447fc6.
Solidity: function setRewardRate(uint256 _tokenPerSec) returns()
func (*TraderjoeSimpleRewardSession) TokenPerSec ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) TokenPerSec() (*big.Int, error)
TokenPerSec is a free data retrieval call binding the contract method 0x50fd1f3e.
Solidity: function tokenPerSec() view returns(uint256)
func (*TraderjoeSimpleRewardSession) TransferOwnership ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) TransferOwnership(newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0x078dfbe7.
Solidity: function transferOwnership(address newOwner, bool direct, bool renounce) returns()
func (*TraderjoeSimpleRewardSession) UserInfo ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardSession) UserInfo(arg0 common.Address) (struct { Amount *big.Int RewardDebt *big.Int }, error)
UserInfo is a free data retrieval call binding the contract method 0x1959a002.
Solidity: function userInfo(address ) view returns(uint256 amount, uint256 rewardDebt)
type TraderjoeSimpleRewardTransactor ¶
type TraderjoeSimpleRewardTransactor struct {
// contains filtered or unexported fields
}
TraderjoeSimpleRewardTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTraderjoeSimpleRewardTransactor ¶
func NewTraderjoeSimpleRewardTransactor(address common.Address, transactor bind.ContractTransactor) (*TraderjoeSimpleRewardTransactor, error)
NewTraderjoeSimpleRewardTransactor creates a new write-only instance of TraderjoeSimpleReward, bound to a specific deployed contract.
func (*TraderjoeSimpleRewardTransactor) ClaimOwnership ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) ClaimOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.
Solidity: function claimOwnership() returns()
func (*TraderjoeSimpleRewardTransactor) EmergencyWithdraw ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) EmergencyWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)
EmergencyWithdraw is a paid mutator transaction binding the contract method 0xdb2e21bc.
Solidity: function emergencyWithdraw() returns()
func (*TraderjoeSimpleRewardTransactor) OnJoeReward ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) OnJoeReward(opts *bind.TransactOpts, _user common.Address, _lpAmount *big.Int) (*types.Transaction, error)
OnJoeReward is a paid mutator transaction binding the contract method 0x1a7af8b0.
Solidity: function onJoeReward(address _user, uint256 _lpAmount) returns()
func (*TraderjoeSimpleRewardTransactor) SetRewardRate ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) SetRewardRate(opts *bind.TransactOpts, _tokenPerSec *big.Int) (*types.Transaction, error)
SetRewardRate is a paid mutator transaction binding the contract method 0x9e447fc6.
Solidity: function setRewardRate(uint256 _tokenPerSec) returns()
func (*TraderjoeSimpleRewardTransactor) TransferOwnership ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0x078dfbe7.
Solidity: function transferOwnership(address newOwner, bool direct, bool renounce) returns()
type TraderjoeSimpleRewardTransactorRaw ¶
type TraderjoeSimpleRewardTransactorRaw struct {
Contract *TraderjoeSimpleRewardTransactor // Generic write-only contract binding to access the raw methods on
}
TraderjoeSimpleRewardTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TraderjoeSimpleRewardTransactorRaw) Transact ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TraderjoeSimpleRewardTransactorRaw) Transfer ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorRaw) 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 TraderjoeSimpleRewardTransactorSession ¶
type TraderjoeSimpleRewardTransactorSession struct { Contract *TraderjoeSimpleRewardTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TraderjoeSimpleRewardTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TraderjoeSimpleRewardTransactorSession) ClaimOwnership ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) ClaimOwnership() (*types.Transaction, error)
ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.
Solidity: function claimOwnership() returns()
func (*TraderjoeSimpleRewardTransactorSession) EmergencyWithdraw ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) EmergencyWithdraw() (*types.Transaction, error)
EmergencyWithdraw is a paid mutator transaction binding the contract method 0xdb2e21bc.
Solidity: function emergencyWithdraw() returns()
func (*TraderjoeSimpleRewardTransactorSession) OnJoeReward ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) OnJoeReward(_user common.Address, _lpAmount *big.Int) (*types.Transaction, error)
OnJoeReward is a paid mutator transaction binding the contract method 0x1a7af8b0.
Solidity: function onJoeReward(address _user, uint256 _lpAmount) returns()
func (*TraderjoeSimpleRewardTransactorSession) SetRewardRate ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) SetRewardRate(_tokenPerSec *big.Int) (*types.Transaction, error)
SetRewardRate is a paid mutator transaction binding the contract method 0x9e447fc6.
Solidity: function setRewardRate(uint256 _tokenPerSec) returns()
func (*TraderjoeSimpleRewardTransactorSession) TransferOwnership ¶
func (_TraderjoeSimpleReward *TraderjoeSimpleRewardTransactorSession) TransferOwnership(newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0x078dfbe7.
Solidity: function transferOwnership(address newOwner, bool direct, bool renounce) returns()