lpvault

package
v1.3.5-rc-8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const VaultABI = "" /* 3325-byte string literal not displayed */

VaultABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vault

type Vault struct {
	VaultCaller     // Read-only binding to the contract
	VaultTransactor // Write-only binding to the contract
	VaultFilterer   // Log filterer for contract events
}

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

func NewVault

func NewVault(address common.Address, backend bind.ContractBackend) (*Vault, error)

NewVault creates a new instance of Vault, bound to a specific deployed contract.

type VaultCaller

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

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

func NewVaultCaller

func NewVaultCaller(address common.Address, caller bind.ContractCaller) (*VaultCaller, error)

NewVaultCaller creates a new read-only instance of Vault, bound to a specific deployed contract.

func (*VaultCaller) EpochDuration

func (_Vault *VaultCaller) EpochDuration(opts *bind.CallOpts) (*big.Int, error)

EpochDuration is a free data retrieval call binding the contract method 0x4ff0876a.

Solidity: function epochDuration() view returns(uint256)

func (*VaultCaller) EpochStart

func (_Vault *VaultCaller) EpochStart(opts *bind.CallOpts) (*big.Int, error)

EpochStart is a free data retrieval call binding the contract method 0x15e5a1e5.

Solidity: function epochStart() view returns(uint256)

func (*VaultCaller) GetCurrentEpoch

func (_Vault *VaultCaller) GetCurrentEpoch(opts *bind.CallOpts) (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() view returns(uint256)

func (*VaultCaller) GetEpochStake

func (_Vault *VaultCaller) GetEpochStake(opts *bind.CallOpts, userAddress common.Address, epochId *big.Int) (*big.Int, error)

GetEpochStake is a free data retrieval call binding the contract method 0x43312451.

Solidity: function getEpochStake(address userAddress, uint128 epochId) view returns(uint256)

func (*VaultCaller) GetPoolSize

func (_Vault *VaultCaller) GetPoolSize(opts *bind.CallOpts, epochId *big.Int) (*big.Int, error)

GetPoolSize is a free data retrieval call binding the contract method 0xf7e251f8.

Solidity: function getPoolSize(uint128 epochId) view returns(uint256)

func (*VaultCaller) LastInitializedEpoch

func (_Vault *VaultCaller) LastInitializedEpoch(opts *bind.CallOpts) (*big.Int, error)

LastInitializedEpoch is a free data retrieval call binding the contract method 0x9c7ec881.

Solidity: function lastInitializedEpoch() view returns(uint128)

func (*VaultCaller) NROFEPOCHS

func (_Vault *VaultCaller) NROFEPOCHS(opts *bind.CallOpts) (*big.Int, error)

NROFEPOCHS is a free data retrieval call binding the contract method 0x05917ac0.

Solidity: function NR_OF_EPOCHS() view returns(uint256)

func (*VaultCaller) TOTALDISTRIBUTEDAMOUNT

func (_Vault *VaultCaller) TOTALDISTRIBUTEDAMOUNT(opts *bind.CallOpts) (*big.Int, error)

TOTALDISTRIBUTEDAMOUNT is a free data retrieval call binding the contract method 0x674247d6.

Solidity: function TOTAL_DISTRIBUTED_AMOUNT() view returns(uint256)

func (*VaultCaller) UserLastEpochIdHarvested

func (_Vault *VaultCaller) UserLastEpochIdHarvested(opts *bind.CallOpts) (*big.Int, error)

UserLastEpochIdHarvested is a free data retrieval call binding the contract method 0xa1c130d4.

Solidity: function userLastEpochIdHarvested() view returns(uint256)

type VaultCallerRaw

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

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

func (*VaultCallerRaw) Call

func (_Vault *VaultCallerRaw) 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 VaultCallerSession

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

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

func (*VaultCallerSession) EpochDuration

func (_Vault *VaultCallerSession) EpochDuration() (*big.Int, error)

EpochDuration is a free data retrieval call binding the contract method 0x4ff0876a.

Solidity: function epochDuration() view returns(uint256)

func (*VaultCallerSession) EpochStart

func (_Vault *VaultCallerSession) EpochStart() (*big.Int, error)

EpochStart is a free data retrieval call binding the contract method 0x15e5a1e5.

Solidity: function epochStart() view returns(uint256)

func (*VaultCallerSession) GetCurrentEpoch

func (_Vault *VaultCallerSession) GetCurrentEpoch() (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() view returns(uint256)

func (*VaultCallerSession) GetEpochStake

func (_Vault *VaultCallerSession) GetEpochStake(userAddress common.Address, epochId *big.Int) (*big.Int, error)

GetEpochStake is a free data retrieval call binding the contract method 0x43312451.

Solidity: function getEpochStake(address userAddress, uint128 epochId) view returns(uint256)

func (*VaultCallerSession) GetPoolSize

func (_Vault *VaultCallerSession) GetPoolSize(epochId *big.Int) (*big.Int, error)

GetPoolSize is a free data retrieval call binding the contract method 0xf7e251f8.

Solidity: function getPoolSize(uint128 epochId) view returns(uint256)

func (*VaultCallerSession) LastInitializedEpoch

func (_Vault *VaultCallerSession) LastInitializedEpoch() (*big.Int, error)

LastInitializedEpoch is a free data retrieval call binding the contract method 0x9c7ec881.

Solidity: function lastInitializedEpoch() view returns(uint128)

func (*VaultCallerSession) NROFEPOCHS

func (_Vault *VaultCallerSession) NROFEPOCHS() (*big.Int, error)

NROFEPOCHS is a free data retrieval call binding the contract method 0x05917ac0.

Solidity: function NR_OF_EPOCHS() view returns(uint256)

func (*VaultCallerSession) TOTALDISTRIBUTEDAMOUNT

func (_Vault *VaultCallerSession) TOTALDISTRIBUTEDAMOUNT() (*big.Int, error)

TOTALDISTRIBUTEDAMOUNT is a free data retrieval call binding the contract method 0x674247d6.

Solidity: function TOTAL_DISTRIBUTED_AMOUNT() view returns(uint256)

func (*VaultCallerSession) UserLastEpochIdHarvested

func (_Vault *VaultCallerSession) UserLastEpochIdHarvested() (*big.Int, error)

UserLastEpochIdHarvested is a free data retrieval call binding the contract method 0xa1c130d4.

Solidity: function userLastEpochIdHarvested() view returns(uint256)

type VaultFilterer

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

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

func NewVaultFilterer

func NewVaultFilterer(address common.Address, filterer bind.ContractFilterer) (*VaultFilterer, error)

NewVaultFilterer creates a new log filterer instance of Vault, bound to a specific deployed contract.

func (*VaultFilterer) FilterHarvest

func (_Vault *VaultFilterer) FilterHarvest(opts *bind.FilterOpts, user []common.Address, epochId []*big.Int) (*VaultHarvestIterator, error)

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

Solidity: event Harvest(address indexed user, uint128 indexed epochId, uint256 amount)

func (*VaultFilterer) FilterMassHarvest

func (_Vault *VaultFilterer) FilterMassHarvest(opts *bind.FilterOpts, user []common.Address) (*VaultMassHarvestIterator, error)

FilterMassHarvest is a free log retrieval operation binding the contract event 0xb68dafc1da13dc868096d0b87347c831d0bda92d178317eb1dec7f788444485c.

Solidity: event MassHarvest(address indexed user, uint256 epochsHarvested, uint256 totalValue)

func (*VaultFilterer) ParseHarvest

func (_Vault *VaultFilterer) ParseHarvest(log types.Log) (*VaultHarvest, error)

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

Solidity: event Harvest(address indexed user, uint128 indexed epochId, uint256 amount)

func (*VaultFilterer) ParseMassHarvest

func (_Vault *VaultFilterer) ParseMassHarvest(log types.Log) (*VaultMassHarvest, error)

ParseMassHarvest is a log parse operation binding the contract event 0xb68dafc1da13dc868096d0b87347c831d0bda92d178317eb1dec7f788444485c.

Solidity: event MassHarvest(address indexed user, uint256 epochsHarvested, uint256 totalValue)

func (*VaultFilterer) WatchHarvest

func (_Vault *VaultFilterer) WatchHarvest(opts *bind.WatchOpts, sink chan<- *VaultHarvest, user []common.Address, epochId []*big.Int) (event.Subscription, error)

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

Solidity: event Harvest(address indexed user, uint128 indexed epochId, uint256 amount)

func (*VaultFilterer) WatchMassHarvest

func (_Vault *VaultFilterer) WatchMassHarvest(opts *bind.WatchOpts, sink chan<- *VaultMassHarvest, user []common.Address) (event.Subscription, error)

WatchMassHarvest is a free log subscription operation binding the contract event 0xb68dafc1da13dc868096d0b87347c831d0bda92d178317eb1dec7f788444485c.

Solidity: event MassHarvest(address indexed user, uint256 epochsHarvested, uint256 totalValue)

type VaultHarvest

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

VaultHarvest represents a Harvest event raised by the Vault contract.

type VaultHarvestIterator

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

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

func (*VaultHarvestIterator) Close

func (it *VaultHarvestIterator) Close() error

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

func (*VaultHarvestIterator) Error

func (it *VaultHarvestIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultHarvestIterator) Next

func (it *VaultHarvestIterator) Next() bool

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 VaultMassHarvest

type VaultMassHarvest struct {
	User            common.Address
	EpochsHarvested *big.Int
	TotalValue      *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

VaultMassHarvest represents a MassHarvest event raised by the Vault contract.

type VaultMassHarvestIterator

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

VaultMassHarvestIterator is returned from FilterMassHarvest and is used to iterate over the raw logs and unpacked data for MassHarvest events raised by the Vault contract.

func (*VaultMassHarvestIterator) Close

func (it *VaultMassHarvestIterator) Close() error

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

func (*VaultMassHarvestIterator) Error

func (it *VaultMassHarvestIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultMassHarvestIterator) Next

func (it *VaultMassHarvestIterator) Next() bool

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 VaultRaw

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

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

func (*VaultRaw) Call

func (_Vault *VaultRaw) 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 (*VaultRaw) Transact

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

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

func (*VaultRaw) Transfer

func (_Vault *VaultRaw) 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 VaultSession

type VaultSession struct {
	Contract     *Vault            // 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
}

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

func (*VaultSession) EpochDuration

func (_Vault *VaultSession) EpochDuration() (*big.Int, error)

EpochDuration is a free data retrieval call binding the contract method 0x4ff0876a.

Solidity: function epochDuration() view returns(uint256)

func (*VaultSession) EpochStart

func (_Vault *VaultSession) EpochStart() (*big.Int, error)

EpochStart is a free data retrieval call binding the contract method 0x15e5a1e5.

Solidity: function epochStart() view returns(uint256)

func (*VaultSession) GetCurrentEpoch

func (_Vault *VaultSession) GetCurrentEpoch() (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() view returns(uint256)

func (*VaultSession) GetEpochStake

func (_Vault *VaultSession) GetEpochStake(userAddress common.Address, epochId *big.Int) (*big.Int, error)

GetEpochStake is a free data retrieval call binding the contract method 0x43312451.

Solidity: function getEpochStake(address userAddress, uint128 epochId) view returns(uint256)

func (*VaultSession) GetPoolSize

func (_Vault *VaultSession) GetPoolSize(epochId *big.Int) (*big.Int, error)

GetPoolSize is a free data retrieval call binding the contract method 0xf7e251f8.

Solidity: function getPoolSize(uint128 epochId) view returns(uint256)

func (*VaultSession) Harvest

func (_Vault *VaultSession) Harvest(epochId *big.Int) (*types.Transaction, error)

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

Solidity: function harvest(uint128 epochId) returns(uint256)

func (*VaultSession) LastInitializedEpoch

func (_Vault *VaultSession) LastInitializedEpoch() (*big.Int, error)

LastInitializedEpoch is a free data retrieval call binding the contract method 0x9c7ec881.

Solidity: function lastInitializedEpoch() view returns(uint128)

func (*VaultSession) MassHarvest

func (_Vault *VaultSession) MassHarvest() (*types.Transaction, error)

MassHarvest is a paid mutator transaction binding the contract method 0x290e4544.

Solidity: function massHarvest() returns(uint256)

func (*VaultSession) NROFEPOCHS

func (_Vault *VaultSession) NROFEPOCHS() (*big.Int, error)

NROFEPOCHS is a free data retrieval call binding the contract method 0x05917ac0.

Solidity: function NR_OF_EPOCHS() view returns(uint256)

func (*VaultSession) TOTALDISTRIBUTEDAMOUNT

func (_Vault *VaultSession) TOTALDISTRIBUTEDAMOUNT() (*big.Int, error)

TOTALDISTRIBUTEDAMOUNT is a free data retrieval call binding the contract method 0x674247d6.

Solidity: function TOTAL_DISTRIBUTED_AMOUNT() view returns(uint256)

func (*VaultSession) UserLastEpochIdHarvested

func (_Vault *VaultSession) UserLastEpochIdHarvested() (*big.Int, error)

UserLastEpochIdHarvested is a free data retrieval call binding the contract method 0xa1c130d4.

Solidity: function userLastEpochIdHarvested() view returns(uint256)

type VaultTransactor

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

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

func NewVaultTransactor

func NewVaultTransactor(address common.Address, transactor bind.ContractTransactor) (*VaultTransactor, error)

NewVaultTransactor creates a new write-only instance of Vault, bound to a specific deployed contract.

func (*VaultTransactor) Harvest

func (_Vault *VaultTransactor) Harvest(opts *bind.TransactOpts, epochId *big.Int) (*types.Transaction, error)

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

Solidity: function harvest(uint128 epochId) returns(uint256)

func (*VaultTransactor) MassHarvest

func (_Vault *VaultTransactor) MassHarvest(opts *bind.TransactOpts) (*types.Transaction, error)

MassHarvest is a paid mutator transaction binding the contract method 0x290e4544.

Solidity: function massHarvest() returns(uint256)

type VaultTransactorRaw

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

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

func (*VaultTransactorRaw) Transact

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

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

func (*VaultTransactorRaw) Transfer

func (_Vault *VaultTransactorRaw) 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 VaultTransactorSession

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

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

func (*VaultTransactorSession) Harvest

func (_Vault *VaultTransactorSession) Harvest(epochId *big.Int) (*types.Transaction, error)

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

Solidity: function harvest(uint128 epochId) returns(uint256)

func (*VaultTransactorSession) MassHarvest

func (_Vault *VaultTransactorSession) MassHarvest() (*types.Transaction, error)

MassHarvest is a paid mutator transaction binding the contract method 0x290e4544.

Solidity: function massHarvest() returns(uint256)

Jump to

Keyboard shortcuts

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