feesharingsystem

package
v1.0.0-9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FeesharingsystemABI = FeesharingsystemMetaData.ABI

FeesharingsystemABI is the input ABI used to generate the binding from. Deprecated: Use FeesharingsystemMetaData.ABI instead.

View Source
var FeesharingsystemMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_looksRareToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_rewardToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenDistributor\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"harvestedAmount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"harvestedAmount\",\"type\":\"uint256\"}],\"name\":\"Harvest\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"numberBlocks\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardPerBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"NewRewardPeriod\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"harvestedAmount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PRECISION_FACTOR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"calculatePendingRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"calculateSharePriceInLOOKS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"calculateSharesValueInLOOKS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentRewardPerBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"claimRewardToken\",\"type\":\"bool\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"harvest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hunterGovernanceToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRewardAdjustment\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRewardBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastUpdateBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"periodEndBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardPerTokenStored\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenDistributor\",\"outputs\":[{\"internalType\":\"contractTokenDistributor\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalShares\",\"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\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDurationInBlocks\",\"type\":\"uint256\"}],\"name\":\"updateRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"userRewardPerTokenPaid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"claimRewardToken\",\"type\":\"bool\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"claimRewardToken\",\"type\":\"bool\"}],\"name\":\"withdrawAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

FeesharingsystemMetaData contains all meta data concerning the Feesharingsystem contract.

Functions

This section is empty.

Types

type Feesharingsystem

type Feesharingsystem struct {
	FeesharingsystemCaller     // Read-only binding to the contract
	FeesharingsystemTransactor // Write-only binding to the contract
	FeesharingsystemFilterer   // Log filterer for contract events
}

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

func NewFeesharingsystem

func NewFeesharingsystem(address common.Address, backend bind.ContractBackend) (*Feesharingsystem, error)

NewFeesharingsystem creates a new instance of Feesharingsystem, bound to a specific deployed contract.

type FeesharingsystemCaller

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

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

func NewFeesharingsystemCaller

func NewFeesharingsystemCaller(address common.Address, caller bind.ContractCaller) (*FeesharingsystemCaller, error)

NewFeesharingsystemCaller creates a new read-only instance of Feesharingsystem, bound to a specific deployed contract.

func (*FeesharingsystemCaller) CalculatePendingRewards

func (_Feesharingsystem *FeesharingsystemCaller) CalculatePendingRewards(opts *bind.CallOpts, user common.Address) (*big.Int, error)

CalculatePendingRewards is a free data retrieval call binding the contract method 0x097aad10.

Solidity: function calculatePendingRewards(address user) view returns(uint256)

func (*FeesharingsystemCaller) CalculateSharePriceInLOOKS

func (_Feesharingsystem *FeesharingsystemCaller) CalculateSharePriceInLOOKS(opts *bind.CallOpts) (*big.Int, error)

CalculateSharePriceInLOOKS is a free data retrieval call binding the contract method 0x6de26e38.

Solidity: function calculateSharePriceInLOOKS() view returns(uint256)

func (*FeesharingsystemCaller) CalculateSharesValueInLOOKS

func (_Feesharingsystem *FeesharingsystemCaller) CalculateSharesValueInLOOKS(opts *bind.CallOpts, user common.Address) (*big.Int, error)

CalculateSharesValueInLOOKS is a free data retrieval call binding the contract method 0xab5e32af.

Solidity: function calculateSharesValueInLOOKS(address user) view returns(uint256)

func (*FeesharingsystemCaller) CurrentRewardPerBlock

func (_Feesharingsystem *FeesharingsystemCaller) CurrentRewardPerBlock(opts *bind.CallOpts) (*big.Int, error)

CurrentRewardPerBlock is a free data retrieval call binding the contract method 0xcb4aec61.

Solidity: function currentRewardPerBlock() view returns(uint256)

func (*FeesharingsystemCaller) HunterGovernanceToken

func (_Feesharingsystem *FeesharingsystemCaller) HunterGovernanceToken(opts *bind.CallOpts) (common.Address, error)

HunterGovernanceToken is a free data retrieval call binding the contract method 0xf363264a.

Solidity: function hunterGovernanceToken() view returns(address)

func (*FeesharingsystemCaller) LastRewardAdjustment

func (_Feesharingsystem *FeesharingsystemCaller) LastRewardAdjustment(opts *bind.CallOpts) (*big.Int, error)

LastRewardAdjustment is a free data retrieval call binding the contract method 0x40d2abae.

Solidity: function lastRewardAdjustment() view returns(uint256)

func (*FeesharingsystemCaller) LastRewardBlock

func (_Feesharingsystem *FeesharingsystemCaller) LastRewardBlock(opts *bind.CallOpts) (*big.Int, error)

LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.

Solidity: function lastRewardBlock() view returns(uint256)

func (*FeesharingsystemCaller) LastUpdateBlock

func (_Feesharingsystem *FeesharingsystemCaller) LastUpdateBlock(opts *bind.CallOpts) (*big.Int, error)

LastUpdateBlock is a free data retrieval call binding the contract method 0xa218141b.

Solidity: function lastUpdateBlock() view returns(uint256)

func (*FeesharingsystemCaller) Owner

func (_Feesharingsystem *FeesharingsystemCaller) 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 (*FeesharingsystemCaller) PRECISIONFACTOR

func (_Feesharingsystem *FeesharingsystemCaller) PRECISIONFACTOR(opts *bind.CallOpts) (*big.Int, error)

PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.

Solidity: function PRECISION_FACTOR() view returns(uint256)

func (*FeesharingsystemCaller) PeriodEndBlock

func (_Feesharingsystem *FeesharingsystemCaller) PeriodEndBlock(opts *bind.CallOpts) (*big.Int, error)

PeriodEndBlock is a free data retrieval call binding the contract method 0x442da82f.

Solidity: function periodEndBlock() view returns(uint256)

func (*FeesharingsystemCaller) RewardPerTokenStored

func (_Feesharingsystem *FeesharingsystemCaller) RewardPerTokenStored(opts *bind.CallOpts) (*big.Int, error)

RewardPerTokenStored is a free data retrieval call binding the contract method 0xdf136d65.

Solidity: function rewardPerTokenStored() view returns(uint256)

func (*FeesharingsystemCaller) RewardToken

func (_Feesharingsystem *FeesharingsystemCaller) 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 (*FeesharingsystemCaller) TokenDistributor

func (_Feesharingsystem *FeesharingsystemCaller) TokenDistributor(opts *bind.CallOpts) (common.Address, error)

TokenDistributor is a free data retrieval call binding the contract method 0x18a6bc32.

Solidity: function tokenDistributor() view returns(address)

func (*FeesharingsystemCaller) TotalShares

func (_Feesharingsystem *FeesharingsystemCaller) TotalShares(opts *bind.CallOpts) (*big.Int, error)

TotalShares is a free data retrieval call binding the contract method 0x3a98ef39.

Solidity: function totalShares() view returns(uint256)

func (*FeesharingsystemCaller) UserInfo

func (_Feesharingsystem *FeesharingsystemCaller) UserInfo(opts *bind.CallOpts, arg0 common.Address) (struct {
	Shares                 *big.Int
	UserRewardPerTokenPaid *big.Int
	Rewards                *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x1959a002.

Solidity: function userInfo(address ) view returns(uint256 shares, uint256 userRewardPerTokenPaid, uint256 rewards)

type FeesharingsystemCallerRaw

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

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

func (*FeesharingsystemCallerRaw) Call

func (_Feesharingsystem *FeesharingsystemCallerRaw) 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 FeesharingsystemCallerSession

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

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

func (*FeesharingsystemCallerSession) CalculatePendingRewards

func (_Feesharingsystem *FeesharingsystemCallerSession) CalculatePendingRewards(user common.Address) (*big.Int, error)

CalculatePendingRewards is a free data retrieval call binding the contract method 0x097aad10.

Solidity: function calculatePendingRewards(address user) view returns(uint256)

func (*FeesharingsystemCallerSession) CalculateSharePriceInLOOKS

func (_Feesharingsystem *FeesharingsystemCallerSession) CalculateSharePriceInLOOKS() (*big.Int, error)

CalculateSharePriceInLOOKS is a free data retrieval call binding the contract method 0x6de26e38.

Solidity: function calculateSharePriceInLOOKS() view returns(uint256)

func (*FeesharingsystemCallerSession) CalculateSharesValueInLOOKS

func (_Feesharingsystem *FeesharingsystemCallerSession) CalculateSharesValueInLOOKS(user common.Address) (*big.Int, error)

CalculateSharesValueInLOOKS is a free data retrieval call binding the contract method 0xab5e32af.

Solidity: function calculateSharesValueInLOOKS(address user) view returns(uint256)

func (*FeesharingsystemCallerSession) CurrentRewardPerBlock

func (_Feesharingsystem *FeesharingsystemCallerSession) CurrentRewardPerBlock() (*big.Int, error)

CurrentRewardPerBlock is a free data retrieval call binding the contract method 0xcb4aec61.

Solidity: function currentRewardPerBlock() view returns(uint256)

func (*FeesharingsystemCallerSession) HunterGovernanceToken

func (_Feesharingsystem *FeesharingsystemCallerSession) HunterGovernanceToken() (common.Address, error)

HunterGovernanceToken is a free data retrieval call binding the contract method 0xf363264a.

Solidity: function hunterGovernanceToken() view returns(address)

func (*FeesharingsystemCallerSession) LastRewardAdjustment

func (_Feesharingsystem *FeesharingsystemCallerSession) LastRewardAdjustment() (*big.Int, error)

LastRewardAdjustment is a free data retrieval call binding the contract method 0x40d2abae.

Solidity: function lastRewardAdjustment() view returns(uint256)

func (*FeesharingsystemCallerSession) LastRewardBlock

func (_Feesharingsystem *FeesharingsystemCallerSession) LastRewardBlock() (*big.Int, error)

LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.

Solidity: function lastRewardBlock() view returns(uint256)

func (*FeesharingsystemCallerSession) LastUpdateBlock

func (_Feesharingsystem *FeesharingsystemCallerSession) LastUpdateBlock() (*big.Int, error)

LastUpdateBlock is a free data retrieval call binding the contract method 0xa218141b.

Solidity: function lastUpdateBlock() view returns(uint256)

func (*FeesharingsystemCallerSession) Owner

func (_Feesharingsystem *FeesharingsystemCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FeesharingsystemCallerSession) PRECISIONFACTOR

func (_Feesharingsystem *FeesharingsystemCallerSession) PRECISIONFACTOR() (*big.Int, error)

PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.

Solidity: function PRECISION_FACTOR() view returns(uint256)

func (*FeesharingsystemCallerSession) PeriodEndBlock

func (_Feesharingsystem *FeesharingsystemCallerSession) PeriodEndBlock() (*big.Int, error)

PeriodEndBlock is a free data retrieval call binding the contract method 0x442da82f.

Solidity: function periodEndBlock() view returns(uint256)

func (*FeesharingsystemCallerSession) RewardPerTokenStored

func (_Feesharingsystem *FeesharingsystemCallerSession) RewardPerTokenStored() (*big.Int, error)

RewardPerTokenStored is a free data retrieval call binding the contract method 0xdf136d65.

Solidity: function rewardPerTokenStored() view returns(uint256)

func (*FeesharingsystemCallerSession) RewardToken

func (_Feesharingsystem *FeesharingsystemCallerSession) RewardToken() (common.Address, error)

RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.

Solidity: function rewardToken() view returns(address)

func (*FeesharingsystemCallerSession) TokenDistributor

func (_Feesharingsystem *FeesharingsystemCallerSession) TokenDistributor() (common.Address, error)

TokenDistributor is a free data retrieval call binding the contract method 0x18a6bc32.

Solidity: function tokenDistributor() view returns(address)

func (*FeesharingsystemCallerSession) TotalShares

func (_Feesharingsystem *FeesharingsystemCallerSession) TotalShares() (*big.Int, error)

TotalShares is a free data retrieval call binding the contract method 0x3a98ef39.

Solidity: function totalShares() view returns(uint256)

func (*FeesharingsystemCallerSession) UserInfo

func (_Feesharingsystem *FeesharingsystemCallerSession) UserInfo(arg0 common.Address) (struct {
	Shares                 *big.Int
	UserRewardPerTokenPaid *big.Int
	Rewards                *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x1959a002.

Solidity: function userInfo(address ) view returns(uint256 shares, uint256 userRewardPerTokenPaid, uint256 rewards)

type FeesharingsystemDeposit

type FeesharingsystemDeposit struct {
	User            common.Address
	Amount          *big.Int
	HarvestedAmount *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

FeesharingsystemDeposit represents a Deposit event raised by the Feesharingsystem contract.

type FeesharingsystemDepositIterator

type FeesharingsystemDepositIterator struct {
	Event *FeesharingsystemDeposit // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

FeesharingsystemDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Feesharingsystem contract.

func (*FeesharingsystemDepositIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*FeesharingsystemDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeesharingsystemDepositIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type FeesharingsystemFilterer

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

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

func NewFeesharingsystemFilterer

func NewFeesharingsystemFilterer(address common.Address, filterer bind.ContractFilterer) (*FeesharingsystemFilterer, error)

NewFeesharingsystemFilterer creates a new log filterer instance of Feesharingsystem, bound to a specific deployed contract.

func (*FeesharingsystemFilterer) FilterDeposit

func (_Feesharingsystem *FeesharingsystemFilterer) FilterDeposit(opts *bind.FilterOpts, user []common.Address) (*FeesharingsystemDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.

Solidity: event Deposit(address indexed user, uint256 amount, uint256 harvestedAmount)

func (*FeesharingsystemFilterer) FilterHarvest

func (_Feesharingsystem *FeesharingsystemFilterer) FilterHarvest(opts *bind.FilterOpts, user []common.Address) (*FeesharingsystemHarvestIterator, error)

FilterHarvest is a free log retrieval operation binding the contract event 0xc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba.

Solidity: event Harvest(address indexed user, uint256 harvestedAmount)

func (*FeesharingsystemFilterer) FilterNewRewardPeriod

func (_Feesharingsystem *FeesharingsystemFilterer) FilterNewRewardPeriod(opts *bind.FilterOpts) (*FeesharingsystemNewRewardPeriodIterator, error)

FilterNewRewardPeriod is a free log retrieval operation binding the contract event 0x55b4fa63fe43865f67b4f2c4a4df1cf9e6c1f85767211b44b45cf4649b2c2b51.

Solidity: event NewRewardPeriod(uint256 numberBlocks, uint256 rewardPerBlock, uint256 reward)

func (*FeesharingsystemFilterer) FilterOwnershipTransferred

func (_Feesharingsystem *FeesharingsystemFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FeesharingsystemOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*FeesharingsystemFilterer) FilterWithdraw

func (_Feesharingsystem *FeesharingsystemFilterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address) (*FeesharingsystemWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.

Solidity: event Withdraw(address indexed user, uint256 amount, uint256 harvestedAmount)

func (*FeesharingsystemFilterer) ParseDeposit

func (_Feesharingsystem *FeesharingsystemFilterer) ParseDeposit(log types.Log) (*FeesharingsystemDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.

Solidity: event Deposit(address indexed user, uint256 amount, uint256 harvestedAmount)

func (*FeesharingsystemFilterer) ParseHarvest

func (_Feesharingsystem *FeesharingsystemFilterer) ParseHarvest(log types.Log) (*FeesharingsystemHarvest, error)

ParseHarvest is a log parse operation binding the contract event 0xc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba.

Solidity: event Harvest(address indexed user, uint256 harvestedAmount)

func (*FeesharingsystemFilterer) ParseNewRewardPeriod

func (_Feesharingsystem *FeesharingsystemFilterer) ParseNewRewardPeriod(log types.Log) (*FeesharingsystemNewRewardPeriod, error)

ParseNewRewardPeriod is a log parse operation binding the contract event 0x55b4fa63fe43865f67b4f2c4a4df1cf9e6c1f85767211b44b45cf4649b2c2b51.

Solidity: event NewRewardPeriod(uint256 numberBlocks, uint256 rewardPerBlock, uint256 reward)

func (*FeesharingsystemFilterer) ParseOwnershipTransferred

func (_Feesharingsystem *FeesharingsystemFilterer) ParseOwnershipTransferred(log types.Log) (*FeesharingsystemOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*FeesharingsystemFilterer) ParseWithdraw

func (_Feesharingsystem *FeesharingsystemFilterer) ParseWithdraw(log types.Log) (*FeesharingsystemWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.

Solidity: event Withdraw(address indexed user, uint256 amount, uint256 harvestedAmount)

func (*FeesharingsystemFilterer) WatchDeposit

func (_Feesharingsystem *FeesharingsystemFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *FeesharingsystemDeposit, user []common.Address) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15.

Solidity: event Deposit(address indexed user, uint256 amount, uint256 harvestedAmount)

func (*FeesharingsystemFilterer) WatchHarvest

func (_Feesharingsystem *FeesharingsystemFilterer) WatchHarvest(opts *bind.WatchOpts, sink chan<- *FeesharingsystemHarvest, user []common.Address) (event.Subscription, error)

WatchHarvest is a free log subscription operation binding the contract event 0xc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba.

Solidity: event Harvest(address indexed user, uint256 harvestedAmount)

func (*FeesharingsystemFilterer) WatchNewRewardPeriod

func (_Feesharingsystem *FeesharingsystemFilterer) WatchNewRewardPeriod(opts *bind.WatchOpts, sink chan<- *FeesharingsystemNewRewardPeriod) (event.Subscription, error)

WatchNewRewardPeriod is a free log subscription operation binding the contract event 0x55b4fa63fe43865f67b4f2c4a4df1cf9e6c1f85767211b44b45cf4649b2c2b51.

Solidity: event NewRewardPeriod(uint256 numberBlocks, uint256 rewardPerBlock, uint256 reward)

func (*FeesharingsystemFilterer) WatchOwnershipTransferred

func (_Feesharingsystem *FeesharingsystemFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FeesharingsystemOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*FeesharingsystemFilterer) WatchWithdraw

func (_Feesharingsystem *FeesharingsystemFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *FeesharingsystemWithdraw, user []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568.

Solidity: event Withdraw(address indexed user, uint256 amount, uint256 harvestedAmount)

type FeesharingsystemHarvest

type FeesharingsystemHarvest struct {
	User            common.Address
	HarvestedAmount *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

FeesharingsystemHarvest represents a Harvest event raised by the Feesharingsystem contract.

type FeesharingsystemHarvestIterator

type FeesharingsystemHarvestIterator struct {
	Event *FeesharingsystemHarvest // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

FeesharingsystemHarvestIterator is returned from FilterHarvest and is used to iterate over the raw logs and unpacked data for Harvest events raised by the Feesharingsystem contract.

func (*FeesharingsystemHarvestIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*FeesharingsystemHarvestIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeesharingsystemHarvestIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type FeesharingsystemNewRewardPeriod

type FeesharingsystemNewRewardPeriod struct {
	NumberBlocks   *big.Int
	RewardPerBlock *big.Int
	Reward         *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

FeesharingsystemNewRewardPeriod represents a NewRewardPeriod event raised by the Feesharingsystem contract.

type FeesharingsystemNewRewardPeriodIterator

type FeesharingsystemNewRewardPeriodIterator struct {
	Event *FeesharingsystemNewRewardPeriod // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

FeesharingsystemNewRewardPeriodIterator is returned from FilterNewRewardPeriod and is used to iterate over the raw logs and unpacked data for NewRewardPeriod events raised by the Feesharingsystem contract.

func (*FeesharingsystemNewRewardPeriodIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*FeesharingsystemNewRewardPeriodIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeesharingsystemNewRewardPeriodIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type FeesharingsystemOwnershipTransferred

type FeesharingsystemOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

FeesharingsystemOwnershipTransferred represents a OwnershipTransferred event raised by the Feesharingsystem contract.

type FeesharingsystemOwnershipTransferredIterator

type FeesharingsystemOwnershipTransferredIterator struct {
	Event *FeesharingsystemOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

FeesharingsystemOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Feesharingsystem contract.

func (*FeesharingsystemOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*FeesharingsystemOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeesharingsystemOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type FeesharingsystemRaw

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

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

func (*FeesharingsystemRaw) Call

func (_Feesharingsystem *FeesharingsystemRaw) 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 (*FeesharingsystemRaw) Transact

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

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

func (*FeesharingsystemRaw) Transfer

func (_Feesharingsystem *FeesharingsystemRaw) 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 FeesharingsystemSession

type FeesharingsystemSession struct {
	Contract     *Feesharingsystem // 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
}

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

func (*FeesharingsystemSession) CalculatePendingRewards

func (_Feesharingsystem *FeesharingsystemSession) CalculatePendingRewards(user common.Address) (*big.Int, error)

CalculatePendingRewards is a free data retrieval call binding the contract method 0x097aad10.

Solidity: function calculatePendingRewards(address user) view returns(uint256)

func (*FeesharingsystemSession) CalculateSharePriceInLOOKS

func (_Feesharingsystem *FeesharingsystemSession) CalculateSharePriceInLOOKS() (*big.Int, error)

CalculateSharePriceInLOOKS is a free data retrieval call binding the contract method 0x6de26e38.

Solidity: function calculateSharePriceInLOOKS() view returns(uint256)

func (*FeesharingsystemSession) CalculateSharesValueInLOOKS

func (_Feesharingsystem *FeesharingsystemSession) CalculateSharesValueInLOOKS(user common.Address) (*big.Int, error)

CalculateSharesValueInLOOKS is a free data retrieval call binding the contract method 0xab5e32af.

Solidity: function calculateSharesValueInLOOKS(address user) view returns(uint256)

func (*FeesharingsystemSession) CurrentRewardPerBlock

func (_Feesharingsystem *FeesharingsystemSession) CurrentRewardPerBlock() (*big.Int, error)

CurrentRewardPerBlock is a free data retrieval call binding the contract method 0xcb4aec61.

Solidity: function currentRewardPerBlock() view returns(uint256)

func (*FeesharingsystemSession) Deposit

func (_Feesharingsystem *FeesharingsystemSession) Deposit(amount *big.Int, claimRewardToken bool) (*types.Transaction, error)

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

Solidity: function deposit(uint256 amount, bool claimRewardToken) returns()

func (*FeesharingsystemSession) Harvest

func (_Feesharingsystem *FeesharingsystemSession) Harvest() (*types.Transaction, error)

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

Solidity: function harvest() returns()

func (*FeesharingsystemSession) HunterGovernanceToken

func (_Feesharingsystem *FeesharingsystemSession) HunterGovernanceToken() (common.Address, error)

HunterGovernanceToken is a free data retrieval call binding the contract method 0xf363264a.

Solidity: function hunterGovernanceToken() view returns(address)

func (*FeesharingsystemSession) LastRewardAdjustment

func (_Feesharingsystem *FeesharingsystemSession) LastRewardAdjustment() (*big.Int, error)

LastRewardAdjustment is a free data retrieval call binding the contract method 0x40d2abae.

Solidity: function lastRewardAdjustment() view returns(uint256)

func (*FeesharingsystemSession) LastRewardBlock

func (_Feesharingsystem *FeesharingsystemSession) LastRewardBlock() (*big.Int, error)

LastRewardBlock is a free data retrieval call binding the contract method 0xa9f8d181.

Solidity: function lastRewardBlock() view returns(uint256)

func (*FeesharingsystemSession) LastUpdateBlock

func (_Feesharingsystem *FeesharingsystemSession) LastUpdateBlock() (*big.Int, error)

LastUpdateBlock is a free data retrieval call binding the contract method 0xa218141b.

Solidity: function lastUpdateBlock() view returns(uint256)

func (*FeesharingsystemSession) Owner

func (_Feesharingsystem *FeesharingsystemSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FeesharingsystemSession) PRECISIONFACTOR

func (_Feesharingsystem *FeesharingsystemSession) PRECISIONFACTOR() (*big.Int, error)

PRECISIONFACTOR is a free data retrieval call binding the contract method 0xccd34cd5.

Solidity: function PRECISION_FACTOR() view returns(uint256)

func (*FeesharingsystemSession) PeriodEndBlock

func (_Feesharingsystem *FeesharingsystemSession) PeriodEndBlock() (*big.Int, error)

PeriodEndBlock is a free data retrieval call binding the contract method 0x442da82f.

Solidity: function periodEndBlock() view returns(uint256)

func (*FeesharingsystemSession) RenounceOwnership

func (_Feesharingsystem *FeesharingsystemSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*FeesharingsystemSession) RewardPerTokenStored

func (_Feesharingsystem *FeesharingsystemSession) RewardPerTokenStored() (*big.Int, error)

RewardPerTokenStored is a free data retrieval call binding the contract method 0xdf136d65.

Solidity: function rewardPerTokenStored() view returns(uint256)

func (*FeesharingsystemSession) RewardToken

func (_Feesharingsystem *FeesharingsystemSession) RewardToken() (common.Address, error)

RewardToken is a free data retrieval call binding the contract method 0xf7c618c1.

Solidity: function rewardToken() view returns(address)

func (*FeesharingsystemSession) TokenDistributor

func (_Feesharingsystem *FeesharingsystemSession) TokenDistributor() (common.Address, error)

TokenDistributor is a free data retrieval call binding the contract method 0x18a6bc32.

Solidity: function tokenDistributor() view returns(address)

func (*FeesharingsystemSession) TotalShares

func (_Feesharingsystem *FeesharingsystemSession) TotalShares() (*big.Int, error)

TotalShares is a free data retrieval call binding the contract method 0x3a98ef39.

Solidity: function totalShares() view returns(uint256)

func (*FeesharingsystemSession) TransferOwnership

func (_Feesharingsystem *FeesharingsystemSession) 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 (*FeesharingsystemSession) UpdateRewards

func (_Feesharingsystem *FeesharingsystemSession) UpdateRewards(reward *big.Int, rewardDurationInBlocks *big.Int) (*types.Transaction, error)

UpdateRewards is a paid mutator transaction binding the contract method 0x97e50818.

Solidity: function updateRewards(uint256 reward, uint256 rewardDurationInBlocks) returns()

func (*FeesharingsystemSession) UserInfo

func (_Feesharingsystem *FeesharingsystemSession) UserInfo(arg0 common.Address) (struct {
	Shares                 *big.Int
	UserRewardPerTokenPaid *big.Int
	Rewards                *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x1959a002.

Solidity: function userInfo(address ) view returns(uint256 shares, uint256 userRewardPerTokenPaid, uint256 rewards)

func (*FeesharingsystemSession) Withdraw

func (_Feesharingsystem *FeesharingsystemSession) Withdraw(shares *big.Int, claimRewardToken bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 shares, bool claimRewardToken) returns()

func (*FeesharingsystemSession) WithdrawAll

func (_Feesharingsystem *FeesharingsystemSession) WithdrawAll(claimRewardToken bool) (*types.Transaction, error)

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

Solidity: function withdrawAll(bool claimRewardToken) returns()

type FeesharingsystemTransactor

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

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

func NewFeesharingsystemTransactor

func NewFeesharingsystemTransactor(address common.Address, transactor bind.ContractTransactor) (*FeesharingsystemTransactor, error)

NewFeesharingsystemTransactor creates a new write-only instance of Feesharingsystem, bound to a specific deployed contract.

func (*FeesharingsystemTransactor) Deposit

func (_Feesharingsystem *FeesharingsystemTransactor) Deposit(opts *bind.TransactOpts, amount *big.Int, claimRewardToken bool) (*types.Transaction, error)

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

Solidity: function deposit(uint256 amount, bool claimRewardToken) returns()

func (*FeesharingsystemTransactor) Harvest

func (_Feesharingsystem *FeesharingsystemTransactor) Harvest(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function harvest() returns()

func (*FeesharingsystemTransactor) RenounceOwnership

func (_Feesharingsystem *FeesharingsystemTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*FeesharingsystemTransactor) TransferOwnership

func (_Feesharingsystem *FeesharingsystemTransactor) 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 (*FeesharingsystemTransactor) UpdateRewards

func (_Feesharingsystem *FeesharingsystemTransactor) UpdateRewards(opts *bind.TransactOpts, reward *big.Int, rewardDurationInBlocks *big.Int) (*types.Transaction, error)

UpdateRewards is a paid mutator transaction binding the contract method 0x97e50818.

Solidity: function updateRewards(uint256 reward, uint256 rewardDurationInBlocks) returns()

func (*FeesharingsystemTransactor) Withdraw

func (_Feesharingsystem *FeesharingsystemTransactor) Withdraw(opts *bind.TransactOpts, shares *big.Int, claimRewardToken bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 shares, bool claimRewardToken) returns()

func (*FeesharingsystemTransactor) WithdrawAll

func (_Feesharingsystem *FeesharingsystemTransactor) WithdrawAll(opts *bind.TransactOpts, claimRewardToken bool) (*types.Transaction, error)

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

Solidity: function withdrawAll(bool claimRewardToken) returns()

type FeesharingsystemTransactorRaw

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

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

func (*FeesharingsystemTransactorRaw) Transact

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

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

func (*FeesharingsystemTransactorRaw) Transfer

func (_Feesharingsystem *FeesharingsystemTransactorRaw) 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 FeesharingsystemTransactorSession

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

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

func (*FeesharingsystemTransactorSession) Deposit

func (_Feesharingsystem *FeesharingsystemTransactorSession) Deposit(amount *big.Int, claimRewardToken bool) (*types.Transaction, error)

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

Solidity: function deposit(uint256 amount, bool claimRewardToken) returns()

func (*FeesharingsystemTransactorSession) Harvest

func (_Feesharingsystem *FeesharingsystemTransactorSession) Harvest() (*types.Transaction, error)

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

Solidity: function harvest() returns()

func (*FeesharingsystemTransactorSession) RenounceOwnership

func (_Feesharingsystem *FeesharingsystemTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*FeesharingsystemTransactorSession) TransferOwnership

func (_Feesharingsystem *FeesharingsystemTransactorSession) 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 (*FeesharingsystemTransactorSession) UpdateRewards

func (_Feesharingsystem *FeesharingsystemTransactorSession) UpdateRewards(reward *big.Int, rewardDurationInBlocks *big.Int) (*types.Transaction, error)

UpdateRewards is a paid mutator transaction binding the contract method 0x97e50818.

Solidity: function updateRewards(uint256 reward, uint256 rewardDurationInBlocks) returns()

func (*FeesharingsystemTransactorSession) Withdraw

func (_Feesharingsystem *FeesharingsystemTransactorSession) Withdraw(shares *big.Int, claimRewardToken bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 shares, bool claimRewardToken) returns()

func (*FeesharingsystemTransactorSession) WithdrawAll

func (_Feesharingsystem *FeesharingsystemTransactorSession) WithdrawAll(claimRewardToken bool) (*types.Transaction, error)

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

Solidity: function withdrawAll(bool claimRewardToken) returns()

type FeesharingsystemWithdraw

type FeesharingsystemWithdraw struct {
	User            common.Address
	Amount          *big.Int
	HarvestedAmount *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

FeesharingsystemWithdraw represents a Withdraw event raised by the Feesharingsystem contract.

type FeesharingsystemWithdrawIterator

type FeesharingsystemWithdrawIterator struct {
	Event *FeesharingsystemWithdraw // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

FeesharingsystemWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Feesharingsystem contract.

func (*FeesharingsystemWithdrawIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*FeesharingsystemWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeesharingsystemWithdrawIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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