olympus

package
v0.0.0-...-bd3dd7f Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OlympusStakingABI = OlympusStakingMetaData.ABI

OlympusStakingABI is the input ABI used to generate the binding from. Deprecated: Use OlympusStakingMetaData.ABI instead.

View Source
var OlympusStakingMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ohm\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_sOHM\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_gOHM\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_epochLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_firstEpochNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_firstEpochTime\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_authority\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractIOlympusAuthority\",\"name\":\"authority\",\"type\":\"address\"}],\"name\":\"AuthorityUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"distributor\",\"type\":\"address\"}],\"name\":\"DistributorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"warmup\",\"type\":\"uint256\"}],\"name\":\"WarmupSet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"OHM\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"authority\",\"outputs\":[{\"internalType\":\"contractIOlympusAuthority\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_rebasing\",\"type\":\"bool\"}],\"name\":\"claim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"distributor\",\"outputs\":[{\"internalType\":\"contractIDistributor\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"epoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"distribute\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"forfeit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gOHM\",\"outputs\":[{\"internalType\":\"contractIgOHM\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"index\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rebase\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sOHM\",\"outputs\":[{\"internalType\":\"contractIsOHM\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"secondsToNextEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIOlympusAuthority\",\"name\":\"_newAuthority\",\"type\":\"address\"}],\"name\":\"setAuthority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_distributor\",\"type\":\"address\"}],\"name\":\"setDistributor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_warmupPeriod\",\"type\":\"uint256\"}],\"name\":\"setWarmupLength\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_rebasing\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"_claim\",\"type\":\"bool\"}],\"name\":\"stake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"supplyInWarmup\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"toggleLock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_trigger\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"_rebasing\",\"type\":\"bool\"}],\"name\":\"unstake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"unwrap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"sBalance_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"warmupInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"deposit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gons\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"lock\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"warmupPeriod\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"wrap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gBalance_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

OlympusStakingMetaData contains all meta data concerning the OlympusStaking contract.

Functions

This section is empty.

Types

type OlympusStaking

type OlympusStaking struct {
	OlympusStakingCaller     // Read-only binding to the contract
	OlympusStakingTransactor // Write-only binding to the contract
	OlympusStakingFilterer   // Log filterer for contract events
}

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

func NewOlympusStaking

func NewOlympusStaking(address common.Address, backend bind.ContractBackend) (*OlympusStaking, error)

NewOlympusStaking creates a new instance of OlympusStaking, bound to a specific deployed contract.

type OlympusStakingAuthorityUpdated

type OlympusStakingAuthorityUpdated struct {
	Authority common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

OlympusStakingAuthorityUpdated represents a AuthorityUpdated event raised by the OlympusStaking contract.

type OlympusStakingAuthorityUpdatedIterator

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

OlympusStakingAuthorityUpdatedIterator is returned from FilterAuthorityUpdated and is used to iterate over the raw logs and unpacked data for AuthorityUpdated events raised by the OlympusStaking contract.

func (*OlympusStakingAuthorityUpdatedIterator) Close

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

func (*OlympusStakingAuthorityUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OlympusStakingAuthorityUpdatedIterator) 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 OlympusStakingCaller

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

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

func NewOlympusStakingCaller

func NewOlympusStakingCaller(address common.Address, caller bind.ContractCaller) (*OlympusStakingCaller, error)

NewOlympusStakingCaller creates a new read-only instance of OlympusStaking, bound to a specific deployed contract.

func (*OlympusStakingCaller) Authority

func (_OlympusStaking *OlympusStakingCaller) Authority(opts *bind.CallOpts) (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*OlympusStakingCaller) Distributor

func (_OlympusStaking *OlympusStakingCaller) Distributor(opts *bind.CallOpts) (common.Address, error)

Distributor is a free data retrieval call binding the contract method 0xbfe10928.

Solidity: function distributor() view returns(address)

func (*OlympusStakingCaller) Epoch

func (_OlympusStaking *OlympusStakingCaller) Epoch(opts *bind.CallOpts) (struct {
	Length     *big.Int
	Number     *big.Int
	End        *big.Int
	Distribute *big.Int
}, error)

Epoch is a free data retrieval call binding the contract method 0x900cf0cf.

Solidity: function epoch() view returns(uint256 length, uint256 number, uint256 end, uint256 distribute)

func (*OlympusStakingCaller) GOHM

func (_OlympusStaking *OlympusStakingCaller) GOHM(opts *bind.CallOpts) (common.Address, error)

GOHM is a free data retrieval call binding the contract method 0x0cd30585.

Solidity: function gOHM() view returns(address)

func (*OlympusStakingCaller) Index

func (_OlympusStaking *OlympusStakingCaller) Index(opts *bind.CallOpts) (*big.Int, error)

Index is a free data retrieval call binding the contract method 0x2986c0e5.

Solidity: function index() view returns(uint256)

func (*OlympusStakingCaller) OHM

func (_OlympusStaking *OlympusStakingCaller) OHM(opts *bind.CallOpts) (common.Address, error)

OHM is a free data retrieval call binding the contract method 0xa6c41fec.

Solidity: function OHM() view returns(address)

func (*OlympusStakingCaller) SOHM

func (_OlympusStaking *OlympusStakingCaller) SOHM(opts *bind.CallOpts) (common.Address, error)

SOHM is a free data retrieval call binding the contract method 0x15079925.

Solidity: function sOHM() view returns(address)

func (*OlympusStakingCaller) SecondsToNextEpoch

func (_OlympusStaking *OlympusStakingCaller) SecondsToNextEpoch(opts *bind.CallOpts) (*big.Int, error)

SecondsToNextEpoch is a free data retrieval call binding the contract method 0x9483c1d7.

Solidity: function secondsToNextEpoch() view returns(uint256)

func (*OlympusStakingCaller) SupplyInWarmup

func (_OlympusStaking *OlympusStakingCaller) SupplyInWarmup(opts *bind.CallOpts) (*big.Int, error)

SupplyInWarmup is a free data retrieval call binding the contract method 0x20138641.

Solidity: function supplyInWarmup() view returns(uint256)

func (*OlympusStakingCaller) WarmupInfo

func (_OlympusStaking *OlympusStakingCaller) WarmupInfo(opts *bind.CallOpts, arg0 common.Address) (struct {
	Deposit *big.Int
	Gons    *big.Int
	Expiry  *big.Int
	Lock    bool
}, error)

WarmupInfo is a free data retrieval call binding the contract method 0x6746f4c2.

Solidity: function warmupInfo(address ) view returns(uint256 deposit, uint256 gons, uint256 expiry, bool lock)

func (*OlympusStakingCaller) WarmupPeriod

func (_OlympusStaking *OlympusStakingCaller) WarmupPeriod(opts *bind.CallOpts) (*big.Int, error)

WarmupPeriod is a free data retrieval call binding the contract method 0xdeac361a.

Solidity: function warmupPeriod() view returns(uint256)

type OlympusStakingCallerRaw

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

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

func (*OlympusStakingCallerRaw) Call

func (_OlympusStaking *OlympusStakingCallerRaw) 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 OlympusStakingCallerSession

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

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

func (*OlympusStakingCallerSession) Authority

func (_OlympusStaking *OlympusStakingCallerSession) Authority() (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*OlympusStakingCallerSession) Distributor

func (_OlympusStaking *OlympusStakingCallerSession) Distributor() (common.Address, error)

Distributor is a free data retrieval call binding the contract method 0xbfe10928.

Solidity: function distributor() view returns(address)

func (*OlympusStakingCallerSession) Epoch

func (_OlympusStaking *OlympusStakingCallerSession) Epoch() (struct {
	Length     *big.Int
	Number     *big.Int
	End        *big.Int
	Distribute *big.Int
}, error)

Epoch is a free data retrieval call binding the contract method 0x900cf0cf.

Solidity: function epoch() view returns(uint256 length, uint256 number, uint256 end, uint256 distribute)

func (*OlympusStakingCallerSession) GOHM

func (_OlympusStaking *OlympusStakingCallerSession) GOHM() (common.Address, error)

GOHM is a free data retrieval call binding the contract method 0x0cd30585.

Solidity: function gOHM() view returns(address)

func (*OlympusStakingCallerSession) Index

func (_OlympusStaking *OlympusStakingCallerSession) Index() (*big.Int, error)

Index is a free data retrieval call binding the contract method 0x2986c0e5.

Solidity: function index() view returns(uint256)

func (*OlympusStakingCallerSession) OHM

func (_OlympusStaking *OlympusStakingCallerSession) OHM() (common.Address, error)

OHM is a free data retrieval call binding the contract method 0xa6c41fec.

Solidity: function OHM() view returns(address)

func (*OlympusStakingCallerSession) SOHM

func (_OlympusStaking *OlympusStakingCallerSession) SOHM() (common.Address, error)

SOHM is a free data retrieval call binding the contract method 0x15079925.

Solidity: function sOHM() view returns(address)

func (*OlympusStakingCallerSession) SecondsToNextEpoch

func (_OlympusStaking *OlympusStakingCallerSession) SecondsToNextEpoch() (*big.Int, error)

SecondsToNextEpoch is a free data retrieval call binding the contract method 0x9483c1d7.

Solidity: function secondsToNextEpoch() view returns(uint256)

func (*OlympusStakingCallerSession) SupplyInWarmup

func (_OlympusStaking *OlympusStakingCallerSession) SupplyInWarmup() (*big.Int, error)

SupplyInWarmup is a free data retrieval call binding the contract method 0x20138641.

Solidity: function supplyInWarmup() view returns(uint256)

func (*OlympusStakingCallerSession) WarmupInfo

func (_OlympusStaking *OlympusStakingCallerSession) WarmupInfo(arg0 common.Address) (struct {
	Deposit *big.Int
	Gons    *big.Int
	Expiry  *big.Int
	Lock    bool
}, error)

WarmupInfo is a free data retrieval call binding the contract method 0x6746f4c2.

Solidity: function warmupInfo(address ) view returns(uint256 deposit, uint256 gons, uint256 expiry, bool lock)

func (*OlympusStakingCallerSession) WarmupPeriod

func (_OlympusStaking *OlympusStakingCallerSession) WarmupPeriod() (*big.Int, error)

WarmupPeriod is a free data retrieval call binding the contract method 0xdeac361a.

Solidity: function warmupPeriod() view returns(uint256)

type OlympusStakingDistributorSet

type OlympusStakingDistributorSet struct {
	Distributor common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

OlympusStakingDistributorSet represents a DistributorSet event raised by the OlympusStaking contract.

type OlympusStakingDistributorSetIterator

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

OlympusStakingDistributorSetIterator is returned from FilterDistributorSet and is used to iterate over the raw logs and unpacked data for DistributorSet events raised by the OlympusStaking contract.

func (*OlympusStakingDistributorSetIterator) Close

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

func (*OlympusStakingDistributorSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OlympusStakingDistributorSetIterator) 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 OlympusStakingFilterer

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

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

func NewOlympusStakingFilterer

func NewOlympusStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*OlympusStakingFilterer, error)

NewOlympusStakingFilterer creates a new log filterer instance of OlympusStaking, bound to a specific deployed contract.

func (*OlympusStakingFilterer) FilterAuthorityUpdated

func (_OlympusStaking *OlympusStakingFilterer) FilterAuthorityUpdated(opts *bind.FilterOpts, authority []common.Address) (*OlympusStakingAuthorityUpdatedIterator, error)

FilterAuthorityUpdated is a free log retrieval operation binding the contract event 0x2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad.

Solidity: event AuthorityUpdated(address indexed authority)

func (*OlympusStakingFilterer) FilterDistributorSet

func (_OlympusStaking *OlympusStakingFilterer) FilterDistributorSet(opts *bind.FilterOpts) (*OlympusStakingDistributorSetIterator, error)

FilterDistributorSet is a free log retrieval operation binding the contract event 0x86719c518c7d99ac94b3d405d462ea876ba5cd0a978461dc9a7c9862a9485886.

Solidity: event DistributorSet(address distributor)

func (*OlympusStakingFilterer) FilterWarmupSet

func (_OlympusStaking *OlympusStakingFilterer) FilterWarmupSet(opts *bind.FilterOpts) (*OlympusStakingWarmupSetIterator, error)

FilterWarmupSet is a free log retrieval operation binding the contract event 0xac17d51c35ac71d3eddc155985908430e88946d51e2f6093e93c1c0aba08f6c4.

Solidity: event WarmupSet(uint256 warmup)

func (*OlympusStakingFilterer) ParseAuthorityUpdated

func (_OlympusStaking *OlympusStakingFilterer) ParseAuthorityUpdated(log types.Log) (*OlympusStakingAuthorityUpdated, error)

ParseAuthorityUpdated is a log parse operation binding the contract event 0x2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad.

Solidity: event AuthorityUpdated(address indexed authority)

func (*OlympusStakingFilterer) ParseDistributorSet

func (_OlympusStaking *OlympusStakingFilterer) ParseDistributorSet(log types.Log) (*OlympusStakingDistributorSet, error)

ParseDistributorSet is a log parse operation binding the contract event 0x86719c518c7d99ac94b3d405d462ea876ba5cd0a978461dc9a7c9862a9485886.

Solidity: event DistributorSet(address distributor)

func (*OlympusStakingFilterer) ParseWarmupSet

func (_OlympusStaking *OlympusStakingFilterer) ParseWarmupSet(log types.Log) (*OlympusStakingWarmupSet, error)

ParseWarmupSet is a log parse operation binding the contract event 0xac17d51c35ac71d3eddc155985908430e88946d51e2f6093e93c1c0aba08f6c4.

Solidity: event WarmupSet(uint256 warmup)

func (*OlympusStakingFilterer) WatchAuthorityUpdated

func (_OlympusStaking *OlympusStakingFilterer) WatchAuthorityUpdated(opts *bind.WatchOpts, sink chan<- *OlympusStakingAuthorityUpdated, authority []common.Address) (event.Subscription, error)

WatchAuthorityUpdated is a free log subscription operation binding the contract event 0x2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad.

Solidity: event AuthorityUpdated(address indexed authority)

func (*OlympusStakingFilterer) WatchDistributorSet

func (_OlympusStaking *OlympusStakingFilterer) WatchDistributorSet(opts *bind.WatchOpts, sink chan<- *OlympusStakingDistributorSet) (event.Subscription, error)

WatchDistributorSet is a free log subscription operation binding the contract event 0x86719c518c7d99ac94b3d405d462ea876ba5cd0a978461dc9a7c9862a9485886.

Solidity: event DistributorSet(address distributor)

func (*OlympusStakingFilterer) WatchWarmupSet

func (_OlympusStaking *OlympusStakingFilterer) WatchWarmupSet(opts *bind.WatchOpts, sink chan<- *OlympusStakingWarmupSet) (event.Subscription, error)

WatchWarmupSet is a free log subscription operation binding the contract event 0xac17d51c35ac71d3eddc155985908430e88946d51e2f6093e93c1c0aba08f6c4.

Solidity: event WarmupSet(uint256 warmup)

type OlympusStakingRaw

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

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

func (*OlympusStakingRaw) Call

func (_OlympusStaking *OlympusStakingRaw) 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 (*OlympusStakingRaw) Transact

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

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

func (*OlympusStakingRaw) Transfer

func (_OlympusStaking *OlympusStakingRaw) 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 OlympusStakingSession

type OlympusStakingSession struct {
	Contract     *OlympusStaking   // 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
}

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

func (*OlympusStakingSession) Authority

func (_OlympusStaking *OlympusStakingSession) Authority() (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*OlympusStakingSession) Claim

func (_OlympusStaking *OlympusStakingSession) Claim(_to common.Address, _rebasing bool) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x92fd2daf.

Solidity: function claim(address _to, bool _rebasing) returns(uint256)

func (*OlympusStakingSession) Distributor

func (_OlympusStaking *OlympusStakingSession) Distributor() (common.Address, error)

Distributor is a free data retrieval call binding the contract method 0xbfe10928.

Solidity: function distributor() view returns(address)

func (*OlympusStakingSession) Epoch

func (_OlympusStaking *OlympusStakingSession) Epoch() (struct {
	Length     *big.Int
	Number     *big.Int
	End        *big.Int
	Distribute *big.Int
}, error)

Epoch is a free data retrieval call binding the contract method 0x900cf0cf.

Solidity: function epoch() view returns(uint256 length, uint256 number, uint256 end, uint256 distribute)

func (*OlympusStakingSession) Forfeit

func (_OlympusStaking *OlympusStakingSession) Forfeit() (*types.Transaction, error)

Forfeit is a paid mutator transaction binding the contract method 0xf3d86e4a.

Solidity: function forfeit() returns(uint256)

func (*OlympusStakingSession) GOHM

func (_OlympusStaking *OlympusStakingSession) GOHM() (common.Address, error)

GOHM is a free data retrieval call binding the contract method 0x0cd30585.

Solidity: function gOHM() view returns(address)

func (*OlympusStakingSession) Index

func (_OlympusStaking *OlympusStakingSession) Index() (*big.Int, error)

Index is a free data retrieval call binding the contract method 0x2986c0e5.

Solidity: function index() view returns(uint256)

func (*OlympusStakingSession) OHM

func (_OlympusStaking *OlympusStakingSession) OHM() (common.Address, error)

OHM is a free data retrieval call binding the contract method 0xa6c41fec.

Solidity: function OHM() view returns(address)

func (*OlympusStakingSession) Rebase

func (_OlympusStaking *OlympusStakingSession) Rebase() (*types.Transaction, error)

Rebase is a paid mutator transaction binding the contract method 0xaf14052c.

Solidity: function rebase() returns(uint256)

func (*OlympusStakingSession) SOHM

func (_OlympusStaking *OlympusStakingSession) SOHM() (common.Address, error)

SOHM is a free data retrieval call binding the contract method 0x15079925.

Solidity: function sOHM() view returns(address)

func (*OlympusStakingSession) SecondsToNextEpoch

func (_OlympusStaking *OlympusStakingSession) SecondsToNextEpoch() (*big.Int, error)

SecondsToNextEpoch is a free data retrieval call binding the contract method 0x9483c1d7.

Solidity: function secondsToNextEpoch() view returns(uint256)

func (*OlympusStakingSession) SetAuthority

func (_OlympusStaking *OlympusStakingSession) SetAuthority(_newAuthority common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address _newAuthority) returns()

func (*OlympusStakingSession) SetDistributor

func (_OlympusStaking *OlympusStakingSession) SetDistributor(_distributor common.Address) (*types.Transaction, error)

SetDistributor is a paid mutator transaction binding the contract method 0x75619ab5.

Solidity: function setDistributor(address _distributor) returns()

func (*OlympusStakingSession) SetWarmupLength

func (_OlympusStaking *OlympusStakingSession) SetWarmupLength(_warmupPeriod *big.Int) (*types.Transaction, error)

SetWarmupLength is a paid mutator transaction binding the contract method 0x9238d592.

Solidity: function setWarmupLength(uint256 _warmupPeriod) returns()

func (*OlympusStakingSession) Stake

func (_OlympusStaking *OlympusStakingSession) Stake(_to common.Address, _amount *big.Int, _rebasing bool, _claim bool) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0xd866c9d8.

Solidity: function stake(address _to, uint256 _amount, bool _rebasing, bool _claim) returns(uint256)

func (*OlympusStakingSession) SupplyInWarmup

func (_OlympusStaking *OlympusStakingSession) SupplyInWarmup() (*big.Int, error)

SupplyInWarmup is a free data retrieval call binding the contract method 0x20138641.

Solidity: function supplyInWarmup() view returns(uint256)

func (*OlympusStakingSession) ToggleLock

func (_OlympusStaking *OlympusStakingSession) ToggleLock() (*types.Transaction, error)

ToggleLock is a paid mutator transaction binding the contract method 0xff9413d8.

Solidity: function toggleLock() returns()

func (*OlympusStakingSession) Unstake

func (_OlympusStaking *OlympusStakingSession) Unstake(_to common.Address, _amount *big.Int, _trigger bool, _rebasing bool) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x990966d5.

Solidity: function unstake(address _to, uint256 _amount, bool _trigger, bool _rebasing) returns(uint256 amount_)

func (*OlympusStakingSession) Unwrap

func (_OlympusStaking *OlympusStakingSession) Unwrap(_to common.Address, _amount *big.Int) (*types.Transaction, error)

Unwrap is a paid mutator transaction binding the contract method 0x39f47693.

Solidity: function unwrap(address _to, uint256 _amount) returns(uint256 sBalance_)

func (*OlympusStakingSession) WarmupInfo

func (_OlympusStaking *OlympusStakingSession) WarmupInfo(arg0 common.Address) (struct {
	Deposit *big.Int
	Gons    *big.Int
	Expiry  *big.Int
	Lock    bool
}, error)

WarmupInfo is a free data retrieval call binding the contract method 0x6746f4c2.

Solidity: function warmupInfo(address ) view returns(uint256 deposit, uint256 gons, uint256 expiry, bool lock)

func (*OlympusStakingSession) WarmupPeriod

func (_OlympusStaking *OlympusStakingSession) WarmupPeriod() (*big.Int, error)

WarmupPeriod is a free data retrieval call binding the contract method 0xdeac361a.

Solidity: function warmupPeriod() view returns(uint256)

func (*OlympusStakingSession) Wrap

func (_OlympusStaking *OlympusStakingSession) Wrap(_to common.Address, _amount *big.Int) (*types.Transaction, error)

Wrap is a paid mutator transaction binding the contract method 0xbf376c7a.

Solidity: function wrap(address _to, uint256 _amount) returns(uint256 gBalance_)

type OlympusStakingTransactor

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

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

func NewOlympusStakingTransactor

func NewOlympusStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*OlympusStakingTransactor, error)

NewOlympusStakingTransactor creates a new write-only instance of OlympusStaking, bound to a specific deployed contract.

func (*OlympusStakingTransactor) Claim

func (_OlympusStaking *OlympusStakingTransactor) Claim(opts *bind.TransactOpts, _to common.Address, _rebasing bool) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x92fd2daf.

Solidity: function claim(address _to, bool _rebasing) returns(uint256)

func (*OlympusStakingTransactor) Forfeit

func (_OlympusStaking *OlympusStakingTransactor) Forfeit(opts *bind.TransactOpts) (*types.Transaction, error)

Forfeit is a paid mutator transaction binding the contract method 0xf3d86e4a.

Solidity: function forfeit() returns(uint256)

func (*OlympusStakingTransactor) Rebase

func (_OlympusStaking *OlympusStakingTransactor) Rebase(opts *bind.TransactOpts) (*types.Transaction, error)

Rebase is a paid mutator transaction binding the contract method 0xaf14052c.

Solidity: function rebase() returns(uint256)

func (*OlympusStakingTransactor) SetAuthority

func (_OlympusStaking *OlympusStakingTransactor) SetAuthority(opts *bind.TransactOpts, _newAuthority common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address _newAuthority) returns()

func (*OlympusStakingTransactor) SetDistributor

func (_OlympusStaking *OlympusStakingTransactor) SetDistributor(opts *bind.TransactOpts, _distributor common.Address) (*types.Transaction, error)

SetDistributor is a paid mutator transaction binding the contract method 0x75619ab5.

Solidity: function setDistributor(address _distributor) returns()

func (*OlympusStakingTransactor) SetWarmupLength

func (_OlympusStaking *OlympusStakingTransactor) SetWarmupLength(opts *bind.TransactOpts, _warmupPeriod *big.Int) (*types.Transaction, error)

SetWarmupLength is a paid mutator transaction binding the contract method 0x9238d592.

Solidity: function setWarmupLength(uint256 _warmupPeriod) returns()

func (*OlympusStakingTransactor) Stake

func (_OlympusStaking *OlympusStakingTransactor) Stake(opts *bind.TransactOpts, _to common.Address, _amount *big.Int, _rebasing bool, _claim bool) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0xd866c9d8.

Solidity: function stake(address _to, uint256 _amount, bool _rebasing, bool _claim) returns(uint256)

func (*OlympusStakingTransactor) ToggleLock

func (_OlympusStaking *OlympusStakingTransactor) ToggleLock(opts *bind.TransactOpts) (*types.Transaction, error)

ToggleLock is a paid mutator transaction binding the contract method 0xff9413d8.

Solidity: function toggleLock() returns()

func (*OlympusStakingTransactor) Unstake

func (_OlympusStaking *OlympusStakingTransactor) Unstake(opts *bind.TransactOpts, _to common.Address, _amount *big.Int, _trigger bool, _rebasing bool) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x990966d5.

Solidity: function unstake(address _to, uint256 _amount, bool _trigger, bool _rebasing) returns(uint256 amount_)

func (*OlympusStakingTransactor) Unwrap

func (_OlympusStaking *OlympusStakingTransactor) Unwrap(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)

Unwrap is a paid mutator transaction binding the contract method 0x39f47693.

Solidity: function unwrap(address _to, uint256 _amount) returns(uint256 sBalance_)

func (*OlympusStakingTransactor) Wrap

func (_OlympusStaking *OlympusStakingTransactor) Wrap(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)

Wrap is a paid mutator transaction binding the contract method 0xbf376c7a.

Solidity: function wrap(address _to, uint256 _amount) returns(uint256 gBalance_)

type OlympusStakingTransactorRaw

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

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

func (*OlympusStakingTransactorRaw) Transact

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

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

func (*OlympusStakingTransactorRaw) Transfer

func (_OlympusStaking *OlympusStakingTransactorRaw) 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 OlympusStakingTransactorSession

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

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

func (*OlympusStakingTransactorSession) Claim

func (_OlympusStaking *OlympusStakingTransactorSession) Claim(_to common.Address, _rebasing bool) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x92fd2daf.

Solidity: function claim(address _to, bool _rebasing) returns(uint256)

func (*OlympusStakingTransactorSession) Forfeit

func (_OlympusStaking *OlympusStakingTransactorSession) Forfeit() (*types.Transaction, error)

Forfeit is a paid mutator transaction binding the contract method 0xf3d86e4a.

Solidity: function forfeit() returns(uint256)

func (*OlympusStakingTransactorSession) Rebase

func (_OlympusStaking *OlympusStakingTransactorSession) Rebase() (*types.Transaction, error)

Rebase is a paid mutator transaction binding the contract method 0xaf14052c.

Solidity: function rebase() returns(uint256)

func (*OlympusStakingTransactorSession) SetAuthority

func (_OlympusStaking *OlympusStakingTransactorSession) SetAuthority(_newAuthority common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address _newAuthority) returns()

func (*OlympusStakingTransactorSession) SetDistributor

func (_OlympusStaking *OlympusStakingTransactorSession) SetDistributor(_distributor common.Address) (*types.Transaction, error)

SetDistributor is a paid mutator transaction binding the contract method 0x75619ab5.

Solidity: function setDistributor(address _distributor) returns()

func (*OlympusStakingTransactorSession) SetWarmupLength

func (_OlympusStaking *OlympusStakingTransactorSession) SetWarmupLength(_warmupPeriod *big.Int) (*types.Transaction, error)

SetWarmupLength is a paid mutator transaction binding the contract method 0x9238d592.

Solidity: function setWarmupLength(uint256 _warmupPeriod) returns()

func (*OlympusStakingTransactorSession) Stake

func (_OlympusStaking *OlympusStakingTransactorSession) Stake(_to common.Address, _amount *big.Int, _rebasing bool, _claim bool) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0xd866c9d8.

Solidity: function stake(address _to, uint256 _amount, bool _rebasing, bool _claim) returns(uint256)

func (*OlympusStakingTransactorSession) ToggleLock

func (_OlympusStaking *OlympusStakingTransactorSession) ToggleLock() (*types.Transaction, error)

ToggleLock is a paid mutator transaction binding the contract method 0xff9413d8.

Solidity: function toggleLock() returns()

func (*OlympusStakingTransactorSession) Unstake

func (_OlympusStaking *OlympusStakingTransactorSession) Unstake(_to common.Address, _amount *big.Int, _trigger bool, _rebasing bool) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x990966d5.

Solidity: function unstake(address _to, uint256 _amount, bool _trigger, bool _rebasing) returns(uint256 amount_)

func (*OlympusStakingTransactorSession) Unwrap

func (_OlympusStaking *OlympusStakingTransactorSession) Unwrap(_to common.Address, _amount *big.Int) (*types.Transaction, error)

Unwrap is a paid mutator transaction binding the contract method 0x39f47693.

Solidity: function unwrap(address _to, uint256 _amount) returns(uint256 sBalance_)

func (*OlympusStakingTransactorSession) Wrap

func (_OlympusStaking *OlympusStakingTransactorSession) Wrap(_to common.Address, _amount *big.Int) (*types.Transaction, error)

Wrap is a paid mutator transaction binding the contract method 0xbf376c7a.

Solidity: function wrap(address _to, uint256 _amount) returns(uint256 gBalance_)

type OlympusStakingWarmupSet

type OlympusStakingWarmupSet struct {
	Warmup *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

OlympusStakingWarmupSet represents a WarmupSet event raised by the OlympusStaking contract.

type OlympusStakingWarmupSetIterator

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

OlympusStakingWarmupSetIterator is returned from FilterWarmupSet and is used to iterate over the raw logs and unpacked data for WarmupSet events raised by the OlympusStaking contract.

func (*OlympusStakingWarmupSetIterator) Close

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

func (*OlympusStakingWarmupSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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