traderjoeRewardDistributor

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TraderjoeRewardDistributorABI = TraderjoeRewardDistributorMetaData.ABI

TraderjoeRewardDistributorABI is the input ABI used to generate the binding from. Deprecated: Use TraderjoeRewardDistributorMetaData.ABI instead.

View Source
var TraderjoeRewardDistributorMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"rewardType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"_grantReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"rewardType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"jToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"rewardSupplySpeed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardBorrowSpeed\",\"type\":\"uint256\"}],\"name\":\"_setRewardSpeed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"rewardType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"}],\"name\":\"claimReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"rewardType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"jTokens\",\"type\":\"address[]\"}],\"name\":\"claimReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"rewardType\",\"type\":\"uint8\"},{\"internalType\":\"address[]\",\"name\":\"holders\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"jTokens\",\"type\":\"address[]\"},{\"internalType\":\"bool\",\"name\":\"borrowers\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"suppliers\",\"type\":\"bool\"}],\"name\":\"claimReward\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"joeAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"joetroller\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardAccrued\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardBorrowSpeeds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardBorrowState\",\"outputs\":[{\"internalType\":\"uint224\",\"name\":\"index\",\"type\":\"uint224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardBorrowerIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardInitialIndex\",\"outputs\":[{\"internalType\":\"uint224\",\"name\":\"\",\"type\":\"uint224\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardSupplierIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardSupplySpeeds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardSupplyState\",\"outputs\":[{\"internalType\":\"uint224\",\"name\":\"index\",\"type\":\"uint224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newAdmin\",\"type\":\"address\"}],\"name\":\"setAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newJoeAddress\",\"type\":\"address\"}],\"name\":\"setJoeAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_joetroller\",\"type\":\"address\"}],\"name\":\"setJoetroller\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"jToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"supplier\",\"type\":\"address\"}],\"name\":\"updateAndDistributeSupplierRewardsForToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

TraderjoeRewardDistributorMetaData contains all meta data concerning the TraderjoeRewardDistributor contract.

Functions

This section is empty.

Types

type TraderjoeRewardDistributor

type TraderjoeRewardDistributor struct {
	TraderjoeRewardDistributorCaller     // Read-only binding to the contract
	TraderjoeRewardDistributorTransactor // Write-only binding to the contract
	TraderjoeRewardDistributorFilterer   // Log filterer for contract events
}

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

func NewTraderjoeRewardDistributor

func NewTraderjoeRewardDistributor(address common.Address, backend bind.ContractBackend) (*TraderjoeRewardDistributor, error)

NewTraderjoeRewardDistributor creates a new instance of TraderjoeRewardDistributor, bound to a specific deployed contract.

type TraderjoeRewardDistributorCaller

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

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

func NewTraderjoeRewardDistributorCaller

func NewTraderjoeRewardDistributorCaller(address common.Address, caller bind.ContractCaller) (*TraderjoeRewardDistributorCaller, error)

NewTraderjoeRewardDistributorCaller creates a new read-only instance of TraderjoeRewardDistributor, bound to a specific deployed contract.

func (*TraderjoeRewardDistributorCaller) Admin

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) 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 (*TraderjoeRewardDistributorCaller) GetBlockTimestamp

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) GetBlockTimestamp(opts *bind.CallOpts) (*big.Int, error)

GetBlockTimestamp is a free data retrieval call binding the contract method 0x796b89b9.

Solidity: function getBlockTimestamp() view returns(uint256)

func (*TraderjoeRewardDistributorCaller) JoeAddress

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) JoeAddress(opts *bind.CallOpts) (common.Address, error)

JoeAddress is a free data retrieval call binding the contract method 0xcb15d8e2.

Solidity: function joeAddress() view returns(address)

func (*TraderjoeRewardDistributorCaller) Joetroller

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) Joetroller(opts *bind.CallOpts) (common.Address, error)

Joetroller is a free data retrieval call binding the contract method 0x6330533c.

Solidity: function joetroller() view returns(address)

func (*TraderjoeRewardDistributorCaller) RewardAccrued

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) RewardAccrued(opts *bind.CallOpts, arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardAccrued is a free data retrieval call binding the contract method 0x05b9783d.

Solidity: function rewardAccrued(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCaller) RewardBorrowSpeeds

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) RewardBorrowSpeeds(opts *bind.CallOpts, arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardBorrowSpeeds is a free data retrieval call binding the contract method 0xbf095955.

Solidity: function rewardBorrowSpeeds(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCaller) RewardBorrowState

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) RewardBorrowState(opts *bind.CallOpts, arg0 uint8, arg1 common.Address) (struct {
	Index     *big.Int
	Timestamp uint32
}, error)

RewardBorrowState is a free data retrieval call binding the contract method 0x4b3a0a74.

Solidity: function rewardBorrowState(uint8 , address ) view returns(uint224 index, uint32 timestamp)

func (*TraderjoeRewardDistributorCaller) RewardBorrowerIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) RewardBorrowerIndex(opts *bind.CallOpts, arg0 uint8, arg1 common.Address, arg2 common.Address) (*big.Int, error)

RewardBorrowerIndex is a free data retrieval call binding the contract method 0x7937969d.

Solidity: function rewardBorrowerIndex(uint8 , address , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCaller) RewardInitialIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) RewardInitialIndex(opts *bind.CallOpts) (*big.Int, error)

RewardInitialIndex is a free data retrieval call binding the contract method 0x66f91a24.

Solidity: function rewardInitialIndex() view returns(uint224)

func (*TraderjoeRewardDistributorCaller) RewardSupplierIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) RewardSupplierIndex(opts *bind.CallOpts, arg0 uint8, arg1 common.Address, arg2 common.Address) (*big.Int, error)

RewardSupplierIndex is a free data retrieval call binding the contract method 0x88e972b8.

Solidity: function rewardSupplierIndex(uint8 , address , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCaller) RewardSupplySpeeds

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) RewardSupplySpeeds(opts *bind.CallOpts, arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardSupplySpeeds is a free data retrieval call binding the contract method 0x030ce638.

Solidity: function rewardSupplySpeeds(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCaller) RewardSupplyState

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCaller) RewardSupplyState(opts *bind.CallOpts, arg0 uint8, arg1 common.Address) (struct {
	Index     *big.Int
	Timestamp uint32
}, error)

RewardSupplyState is a free data retrieval call binding the contract method 0xd81c5e45.

Solidity: function rewardSupplyState(uint8 , address ) view returns(uint224 index, uint32 timestamp)

type TraderjoeRewardDistributorCallerRaw

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

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

func (*TraderjoeRewardDistributorCallerRaw) Call

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerRaw) 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 TraderjoeRewardDistributorCallerSession

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

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

func (*TraderjoeRewardDistributorCallerSession) Admin

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) Admin() (common.Address, error)

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

Solidity: function admin() view returns(address)

func (*TraderjoeRewardDistributorCallerSession) GetBlockTimestamp

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) GetBlockTimestamp() (*big.Int, error)

GetBlockTimestamp is a free data retrieval call binding the contract method 0x796b89b9.

Solidity: function getBlockTimestamp() view returns(uint256)

func (*TraderjoeRewardDistributorCallerSession) JoeAddress

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) JoeAddress() (common.Address, error)

JoeAddress is a free data retrieval call binding the contract method 0xcb15d8e2.

Solidity: function joeAddress() view returns(address)

func (*TraderjoeRewardDistributorCallerSession) Joetroller

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) Joetroller() (common.Address, error)

Joetroller is a free data retrieval call binding the contract method 0x6330533c.

Solidity: function joetroller() view returns(address)

func (*TraderjoeRewardDistributorCallerSession) RewardAccrued

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) RewardAccrued(arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardAccrued is a free data retrieval call binding the contract method 0x05b9783d.

Solidity: function rewardAccrued(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCallerSession) RewardBorrowSpeeds

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) RewardBorrowSpeeds(arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardBorrowSpeeds is a free data retrieval call binding the contract method 0xbf095955.

Solidity: function rewardBorrowSpeeds(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCallerSession) RewardBorrowState

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) RewardBorrowState(arg0 uint8, arg1 common.Address) (struct {
	Index     *big.Int
	Timestamp uint32
}, error)

RewardBorrowState is a free data retrieval call binding the contract method 0x4b3a0a74.

Solidity: function rewardBorrowState(uint8 , address ) view returns(uint224 index, uint32 timestamp)

func (*TraderjoeRewardDistributorCallerSession) RewardBorrowerIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) RewardBorrowerIndex(arg0 uint8, arg1 common.Address, arg2 common.Address) (*big.Int, error)

RewardBorrowerIndex is a free data retrieval call binding the contract method 0x7937969d.

Solidity: function rewardBorrowerIndex(uint8 , address , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCallerSession) RewardInitialIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) RewardInitialIndex() (*big.Int, error)

RewardInitialIndex is a free data retrieval call binding the contract method 0x66f91a24.

Solidity: function rewardInitialIndex() view returns(uint224)

func (*TraderjoeRewardDistributorCallerSession) RewardSupplierIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) RewardSupplierIndex(arg0 uint8, arg1 common.Address, arg2 common.Address) (*big.Int, error)

RewardSupplierIndex is a free data retrieval call binding the contract method 0x88e972b8.

Solidity: function rewardSupplierIndex(uint8 , address , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCallerSession) RewardSupplySpeeds

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) RewardSupplySpeeds(arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardSupplySpeeds is a free data retrieval call binding the contract method 0x030ce638.

Solidity: function rewardSupplySpeeds(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorCallerSession) RewardSupplyState

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorCallerSession) RewardSupplyState(arg0 uint8, arg1 common.Address) (struct {
	Index     *big.Int
	Timestamp uint32
}, error)

RewardSupplyState is a free data retrieval call binding the contract method 0xd81c5e45.

Solidity: function rewardSupplyState(uint8 , address ) view returns(uint224 index, uint32 timestamp)

type TraderjoeRewardDistributorFilterer

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

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

func NewTraderjoeRewardDistributorFilterer

func NewTraderjoeRewardDistributorFilterer(address common.Address, filterer bind.ContractFilterer) (*TraderjoeRewardDistributorFilterer, error)

NewTraderjoeRewardDistributorFilterer creates a new log filterer instance of TraderjoeRewardDistributor, bound to a specific deployed contract.

type TraderjoeRewardDistributorRaw

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

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

func (*TraderjoeRewardDistributorRaw) Call

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorRaw) 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 (*TraderjoeRewardDistributorRaw) Transact

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

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

func (*TraderjoeRewardDistributorRaw) Transfer

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorRaw) 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 TraderjoeRewardDistributorSession

type TraderjoeRewardDistributorSession struct {
	Contract     *TraderjoeRewardDistributor // 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
}

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

func (*TraderjoeRewardDistributorSession) Admin

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) Admin() (common.Address, error)

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

Solidity: function admin() view returns(address)

func (*TraderjoeRewardDistributorSession) ClaimReward

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) ClaimReward(rewardType uint8, holder common.Address) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x0952c563.

Solidity: function claimReward(uint8 rewardType, address holder) returns()

func (*TraderjoeRewardDistributorSession) ClaimReward0

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) ClaimReward0(rewardType uint8, holder common.Address, jTokens []common.Address) (*types.Transaction, error)

ClaimReward0 is a paid mutator transaction binding the contract method 0x744532ae.

Solidity: function claimReward(uint8 rewardType, address holder, address[] jTokens) returns()

func (*TraderjoeRewardDistributorSession) ClaimReward1

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) ClaimReward1(rewardType uint8, holders []common.Address, jTokens []common.Address, borrowers bool, suppliers bool) (*types.Transaction, error)

ClaimReward1 is a paid mutator transaction binding the contract method 0x8805714b.

Solidity: function claimReward(uint8 rewardType, address[] holders, address[] jTokens, bool borrowers, bool suppliers) payable returns()

func (*TraderjoeRewardDistributorSession) GetBlockTimestamp

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) GetBlockTimestamp() (*big.Int, error)

GetBlockTimestamp is a free data retrieval call binding the contract method 0x796b89b9.

Solidity: function getBlockTimestamp() view returns(uint256)

func (*TraderjoeRewardDistributorSession) GrantReward

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) GrantReward(rewardType uint8, recipient common.Address, amount *big.Int) (*types.Transaction, error)

GrantReward is a paid mutator transaction binding the contract method 0x2f32b11f.

Solidity: function _grantReward(uint8 rewardType, address recipient, uint256 amount) returns()

func (*TraderjoeRewardDistributorSession) Initialize

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) Initialize() (*types.Transaction, error)

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

Solidity: function initialize() returns()

func (*TraderjoeRewardDistributorSession) JoeAddress

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) JoeAddress() (common.Address, error)

JoeAddress is a free data retrieval call binding the contract method 0xcb15d8e2.

Solidity: function joeAddress() view returns(address)

func (*TraderjoeRewardDistributorSession) Joetroller

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) Joetroller() (common.Address, error)

Joetroller is a free data retrieval call binding the contract method 0x6330533c.

Solidity: function joetroller() view returns(address)

func (*TraderjoeRewardDistributorSession) RewardAccrued

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) RewardAccrued(arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardAccrued is a free data retrieval call binding the contract method 0x05b9783d.

Solidity: function rewardAccrued(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorSession) RewardBorrowSpeeds

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) RewardBorrowSpeeds(arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardBorrowSpeeds is a free data retrieval call binding the contract method 0xbf095955.

Solidity: function rewardBorrowSpeeds(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorSession) RewardBorrowState

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) RewardBorrowState(arg0 uint8, arg1 common.Address) (struct {
	Index     *big.Int
	Timestamp uint32
}, error)

RewardBorrowState is a free data retrieval call binding the contract method 0x4b3a0a74.

Solidity: function rewardBorrowState(uint8 , address ) view returns(uint224 index, uint32 timestamp)

func (*TraderjoeRewardDistributorSession) RewardBorrowerIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) RewardBorrowerIndex(arg0 uint8, arg1 common.Address, arg2 common.Address) (*big.Int, error)

RewardBorrowerIndex is a free data retrieval call binding the contract method 0x7937969d.

Solidity: function rewardBorrowerIndex(uint8 , address , address ) view returns(uint256)

func (*TraderjoeRewardDistributorSession) RewardInitialIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) RewardInitialIndex() (*big.Int, error)

RewardInitialIndex is a free data retrieval call binding the contract method 0x66f91a24.

Solidity: function rewardInitialIndex() view returns(uint224)

func (*TraderjoeRewardDistributorSession) RewardSupplierIndex

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) RewardSupplierIndex(arg0 uint8, arg1 common.Address, arg2 common.Address) (*big.Int, error)

RewardSupplierIndex is a free data retrieval call binding the contract method 0x88e972b8.

Solidity: function rewardSupplierIndex(uint8 , address , address ) view returns(uint256)

func (*TraderjoeRewardDistributorSession) RewardSupplySpeeds

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) RewardSupplySpeeds(arg0 uint8, arg1 common.Address) (*big.Int, error)

RewardSupplySpeeds is a free data retrieval call binding the contract method 0x030ce638.

Solidity: function rewardSupplySpeeds(uint8 , address ) view returns(uint256)

func (*TraderjoeRewardDistributorSession) RewardSupplyState

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) RewardSupplyState(arg0 uint8, arg1 common.Address) (struct {
	Index     *big.Int
	Timestamp uint32
}, error)

RewardSupplyState is a free data retrieval call binding the contract method 0xd81c5e45.

Solidity: function rewardSupplyState(uint8 , address ) view returns(uint224 index, uint32 timestamp)

func (*TraderjoeRewardDistributorSession) SetAdmin

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) SetAdmin(_newAdmin common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _newAdmin) returns()

func (*TraderjoeRewardDistributorSession) SetJoeAddress

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) SetJoeAddress(newJoeAddress common.Address) (*types.Transaction, error)

SetJoeAddress is a paid mutator transaction binding the contract method 0xfcc4cfd1.

Solidity: function setJoeAddress(address newJoeAddress) returns()

func (*TraderjoeRewardDistributorSession) SetJoetroller

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) SetJoetroller(_joetroller common.Address) (*types.Transaction, error)

SetJoetroller is a paid mutator transaction binding the contract method 0x1f9f3511.

Solidity: function setJoetroller(address _joetroller) returns()

func (*TraderjoeRewardDistributorSession) SetRewardSpeed

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) SetRewardSpeed(rewardType uint8, jToken common.Address, rewardSupplySpeed *big.Int, rewardBorrowSpeed *big.Int) (*types.Transaction, error)

SetRewardSpeed is a paid mutator transaction binding the contract method 0x1d94cb94.

Solidity: function _setRewardSpeed(uint8 rewardType, address jToken, uint256 rewardSupplySpeed, uint256 rewardBorrowSpeed) returns()

func (*TraderjoeRewardDistributorSession) UpdateAndDistributeSupplierRewardsForToken

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorSession) UpdateAndDistributeSupplierRewardsForToken(jToken common.Address, supplier common.Address) (*types.Transaction, error)

UpdateAndDistributeSupplierRewardsForToken is a paid mutator transaction binding the contract method 0x670e8afd.

Solidity: function updateAndDistributeSupplierRewardsForToken(address jToken, address supplier) returns()

type TraderjoeRewardDistributorTransactor

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

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

func NewTraderjoeRewardDistributorTransactor

func NewTraderjoeRewardDistributorTransactor(address common.Address, transactor bind.ContractTransactor) (*TraderjoeRewardDistributorTransactor, error)

NewTraderjoeRewardDistributorTransactor creates a new write-only instance of TraderjoeRewardDistributor, bound to a specific deployed contract.

func (*TraderjoeRewardDistributorTransactor) ClaimReward

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) ClaimReward(opts *bind.TransactOpts, rewardType uint8, holder common.Address) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x0952c563.

Solidity: function claimReward(uint8 rewardType, address holder) returns()

func (*TraderjoeRewardDistributorTransactor) ClaimReward0

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) ClaimReward0(opts *bind.TransactOpts, rewardType uint8, holder common.Address, jTokens []common.Address) (*types.Transaction, error)

ClaimReward0 is a paid mutator transaction binding the contract method 0x744532ae.

Solidity: function claimReward(uint8 rewardType, address holder, address[] jTokens) returns()

func (*TraderjoeRewardDistributorTransactor) ClaimReward1

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) ClaimReward1(opts *bind.TransactOpts, rewardType uint8, holders []common.Address, jTokens []common.Address, borrowers bool, suppliers bool) (*types.Transaction, error)

ClaimReward1 is a paid mutator transaction binding the contract method 0x8805714b.

Solidity: function claimReward(uint8 rewardType, address[] holders, address[] jTokens, bool borrowers, bool suppliers) payable returns()

func (*TraderjoeRewardDistributorTransactor) GrantReward

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) GrantReward(opts *bind.TransactOpts, rewardType uint8, recipient common.Address, amount *big.Int) (*types.Transaction, error)

GrantReward is a paid mutator transaction binding the contract method 0x2f32b11f.

Solidity: function _grantReward(uint8 rewardType, address recipient, uint256 amount) returns()

func (*TraderjoeRewardDistributorTransactor) Initialize

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function initialize() returns()

func (*TraderjoeRewardDistributorTransactor) SetAdmin

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) SetAdmin(opts *bind.TransactOpts, _newAdmin common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _newAdmin) returns()

func (*TraderjoeRewardDistributorTransactor) SetJoeAddress

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) SetJoeAddress(opts *bind.TransactOpts, newJoeAddress common.Address) (*types.Transaction, error)

SetJoeAddress is a paid mutator transaction binding the contract method 0xfcc4cfd1.

Solidity: function setJoeAddress(address newJoeAddress) returns()

func (*TraderjoeRewardDistributorTransactor) SetJoetroller

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) SetJoetroller(opts *bind.TransactOpts, _joetroller common.Address) (*types.Transaction, error)

SetJoetroller is a paid mutator transaction binding the contract method 0x1f9f3511.

Solidity: function setJoetroller(address _joetroller) returns()

func (*TraderjoeRewardDistributorTransactor) SetRewardSpeed

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) SetRewardSpeed(opts *bind.TransactOpts, rewardType uint8, jToken common.Address, rewardSupplySpeed *big.Int, rewardBorrowSpeed *big.Int) (*types.Transaction, error)

SetRewardSpeed is a paid mutator transaction binding the contract method 0x1d94cb94.

Solidity: function _setRewardSpeed(uint8 rewardType, address jToken, uint256 rewardSupplySpeed, uint256 rewardBorrowSpeed) returns()

func (*TraderjoeRewardDistributorTransactor) UpdateAndDistributeSupplierRewardsForToken

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactor) UpdateAndDistributeSupplierRewardsForToken(opts *bind.TransactOpts, jToken common.Address, supplier common.Address) (*types.Transaction, error)

UpdateAndDistributeSupplierRewardsForToken is a paid mutator transaction binding the contract method 0x670e8afd.

Solidity: function updateAndDistributeSupplierRewardsForToken(address jToken, address supplier) returns()

type TraderjoeRewardDistributorTransactorRaw

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

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

func (*TraderjoeRewardDistributorTransactorRaw) Transact

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

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

func (*TraderjoeRewardDistributorTransactorRaw) Transfer

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorRaw) 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 TraderjoeRewardDistributorTransactorSession

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

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

func (*TraderjoeRewardDistributorTransactorSession) ClaimReward

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) ClaimReward(rewardType uint8, holder common.Address) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x0952c563.

Solidity: function claimReward(uint8 rewardType, address holder) returns()

func (*TraderjoeRewardDistributorTransactorSession) ClaimReward0

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) ClaimReward0(rewardType uint8, holder common.Address, jTokens []common.Address) (*types.Transaction, error)

ClaimReward0 is a paid mutator transaction binding the contract method 0x744532ae.

Solidity: function claimReward(uint8 rewardType, address holder, address[] jTokens) returns()

func (*TraderjoeRewardDistributorTransactorSession) ClaimReward1

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) ClaimReward1(rewardType uint8, holders []common.Address, jTokens []common.Address, borrowers bool, suppliers bool) (*types.Transaction, error)

ClaimReward1 is a paid mutator transaction binding the contract method 0x8805714b.

Solidity: function claimReward(uint8 rewardType, address[] holders, address[] jTokens, bool borrowers, bool suppliers) payable returns()

func (*TraderjoeRewardDistributorTransactorSession) GrantReward

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) GrantReward(rewardType uint8, recipient common.Address, amount *big.Int) (*types.Transaction, error)

GrantReward is a paid mutator transaction binding the contract method 0x2f32b11f.

Solidity: function _grantReward(uint8 rewardType, address recipient, uint256 amount) returns()

func (*TraderjoeRewardDistributorTransactorSession) Initialize

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) Initialize() (*types.Transaction, error)

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

Solidity: function initialize() returns()

func (*TraderjoeRewardDistributorTransactorSession) SetAdmin

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) SetAdmin(_newAdmin common.Address) (*types.Transaction, error)

SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.

Solidity: function setAdmin(address _newAdmin) returns()

func (*TraderjoeRewardDistributorTransactorSession) SetJoeAddress

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) SetJoeAddress(newJoeAddress common.Address) (*types.Transaction, error)

SetJoeAddress is a paid mutator transaction binding the contract method 0xfcc4cfd1.

Solidity: function setJoeAddress(address newJoeAddress) returns()

func (*TraderjoeRewardDistributorTransactorSession) SetJoetroller

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) SetJoetroller(_joetroller common.Address) (*types.Transaction, error)

SetJoetroller is a paid mutator transaction binding the contract method 0x1f9f3511.

Solidity: function setJoetroller(address _joetroller) returns()

func (*TraderjoeRewardDistributorTransactorSession) SetRewardSpeed

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) SetRewardSpeed(rewardType uint8, jToken common.Address, rewardSupplySpeed *big.Int, rewardBorrowSpeed *big.Int) (*types.Transaction, error)

SetRewardSpeed is a paid mutator transaction binding the contract method 0x1d94cb94.

Solidity: function _setRewardSpeed(uint8 rewardType, address jToken, uint256 rewardSupplySpeed, uint256 rewardBorrowSpeed) returns()

func (*TraderjoeRewardDistributorTransactorSession) UpdateAndDistributeSupplierRewardsForToken

func (_TraderjoeRewardDistributor *TraderjoeRewardDistributorTransactorSession) UpdateAndDistributeSupplierRewardsForToken(jToken common.Address, supplier common.Address) (*types.Transaction, error)

UpdateAndDistributeSupplierRewardsForToken is a paid mutator transaction binding the contract method 0x670e8afd.

Solidity: function updateAndDistributeSupplierRewardsForToken(address jToken, address supplier) returns()

Jump to

Keyboard shortcuts

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