Documentation ¶
Index ¶
- func ApproveFixedSupplyRPL(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, ...) (common.Hash, error)
- func ApproveRETH(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, ...) (common.Hash, error)
- func ApproveRPL(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, ...) (common.Hash, error)
- func BurnRETH(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
- func EstimateApproveFixedSupplyRPLGas(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func EstimateApproveRETHGas(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func EstimateApproveRPLGas(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func EstimateBurnRETHGas(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func EstimateMintInflationRPLGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func EstimateSwapFixedSupplyRPLForRPLGas(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func EstimateTransferFixedSupplyRPLGas(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func EstimateTransferFromFixedSupplyRPLGas(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func EstimateTransferFromRETHGas(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func EstimateTransferFromRPLGas(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func EstimateTransferRETHGas(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func EstimateTransferRPLGas(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, ...) (rocketpool.GasInfo, error)
- func GetETHValueOfRETH(rp *rocketpool.RocketPool, rethAmount *big.Int, opts *bind.CallOpts) (*big.Int, error)
- func GetFixedSupplyRPLAllowance(rp *rocketpool.RocketPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)
- func GetFixedSupplyRPLBalance(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)
- func GetFixedSupplyRPLTotalSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetRETHAllowance(rp *rocketpool.RocketPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)
- func GetRETHBalance(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)
- func GetRETHCollateralRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)
- func GetRETHContractETHBalance(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetRETHExchangeRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)
- func GetRETHTotalCollateral(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetRETHTotalSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetRETHValueOfETH(rp *rocketpool.RocketPool, ethAmount *big.Int, opts *bind.CallOpts) (*big.Int, error)
- func GetRPLAllowance(rp *rocketpool.RocketPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)
- func GetRPLBalance(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)
- func GetRPLInflationIntervalRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetRPLInflationIntervalStartTime(rp *rocketpool.RocketPool, opts *bind.CallOpts) (time.Time, error)
- func GetRPLTotalSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func MintInflationRPL(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (common.Hash, error)
- func SwapFixedSupplyRPLForRPL(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
- func TransferFixedSupplyRPL(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, ...) (common.Hash, error)
- func TransferFromFixedSupplyRPL(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, ...) (common.Hash, error)
- func TransferFromRETH(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, ...) (common.Hash, error)
- func TransferFromRPL(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, ...) (common.Hash, error)
- func TransferRETH(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, ...) (common.Hash, error)
- func TransferRPL(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, ...) (common.Hash, error)
- type Balances
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveFixedSupplyRPL ¶
func ApproveFixedSupplyRPL(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Approve an fixed-supply RPL spender
func ApproveRETH ¶
func ApproveRETH(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Approve a rETH spender
func ApproveRPL ¶
func ApproveRPL(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Approve an RPL spender
func BurnRETH ¶
func BurnRETH(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Burn rETH for ETH
func EstimateApproveFixedSupplyRPLGas ¶
func EstimateApproveFixedSupplyRPLGas(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of ApproveFixedSupplyRPL
func EstimateApproveRETHGas ¶
func EstimateApproveRETHGas(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of ApproveRETH
func EstimateApproveRPLGas ¶
func EstimateApproveRPLGas(rp *rocketpool.RocketPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of ApproveRPL
func EstimateBurnRETHGas ¶
func EstimateBurnRETHGas(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of BurnRETH
func EstimateMintInflationRPLGas ¶
func EstimateMintInflationRPLGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of MintInflationRPL
func EstimateSwapFixedSupplyRPLForRPLGas ¶
func EstimateSwapFixedSupplyRPLForRPLGas(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of SwapFixedSupplyRPLForRPL
func EstimateTransferFixedSupplyRPLGas ¶
func EstimateTransferFixedSupplyRPLGas(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of TransferFixedSupplyRPL
func EstimateTransferFromFixedSupplyRPLGas ¶
func EstimateTransferFromFixedSupplyRPLGas(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of TransferFromFixedSupplyRPL
func EstimateTransferFromRETHGas ¶
func EstimateTransferFromRETHGas(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of TransferFromRETH
func EstimateTransferFromRPLGas ¶
func EstimateTransferFromRPLGas(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of TransferFromRPL
func EstimateTransferRETHGas ¶
func EstimateTransferRETHGas(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of TransferRETH
func EstimateTransferRPLGas ¶
func EstimateTransferRPLGas(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of TransferRPL
func GetETHValueOfRETH ¶
func GetETHValueOfRETH(rp *rocketpool.RocketPool, rethAmount *big.Int, opts *bind.CallOpts) (*big.Int, error)
Get the ETH value of an amount of rETH
func GetFixedSupplyRPLAllowance ¶
func GetFixedSupplyRPLAllowance(rp *rocketpool.RocketPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)
Get fixed-supply RPL allowance
func GetFixedSupplyRPLBalance ¶
func GetFixedSupplyRPLBalance(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)
Get fixed-supply RPL balance
func GetFixedSupplyRPLTotalSupply ¶
func GetFixedSupplyRPLTotalSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get fixed-supply RPL total supply
func GetRETHAllowance ¶
func GetRETHAllowance(rp *rocketpool.RocketPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)
Get rETH allowance
func GetRETHBalance ¶
func GetRETHBalance(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)
Get rETH balance
func GetRETHCollateralRate ¶
func GetRETHCollateralRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)
Get the rETH collateralization rate
func GetRETHContractETHBalance ¶
func GetRETHContractETHBalance(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the rETH contract ETH balance
func GetRETHExchangeRate ¶
func GetRETHExchangeRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)
Get the current ETH : rETH exchange rate
func GetRETHTotalCollateral ¶
func GetRETHTotalCollateral(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the total amount of ETH collateral available for rETH trades
func GetRETHTotalSupply ¶
func GetRETHTotalSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get rETH total supply
func GetRETHValueOfETH ¶
func GetRETHValueOfETH(rp *rocketpool.RocketPool, ethAmount *big.Int, opts *bind.CallOpts) (*big.Int, error)
Get the rETH value of an amount of ETH
func GetRPLAllowance ¶
func GetRPLAllowance(rp *rocketpool.RocketPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)
Get RPL allowance
func GetRPLBalance ¶
func GetRPLBalance(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)
Get RPL balance
func GetRPLInflationIntervalRate ¶
func GetRPLInflationIntervalRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the RPL inflation interval rate
func GetRPLInflationIntervalStartTime ¶ added in v1.8.2
func GetRPLInflationIntervalStartTime(rp *rocketpool.RocketPool, opts *bind.CallOpts) (time.Time, error)
Get the time that inflation started for this interval
func GetRPLTotalSupply ¶
func GetRPLTotalSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get RPL total supply
func MintInflationRPL ¶
func MintInflationRPL(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (common.Hash, error)
Mint new RPL tokens from inflation
func SwapFixedSupplyRPLForRPL ¶
func SwapFixedSupplyRPLForRPL(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Swap fixed-supply RPL for new RPL tokens
func TransferFixedSupplyRPL ¶
func TransferFixedSupplyRPL(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Transfer fixed-supply RPL
func TransferFromFixedSupplyRPL ¶
func TransferFromFixedSupplyRPL(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Transfer fixed-supply RPL from a sender
func TransferFromRETH ¶
func TransferFromRETH(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Transfer rETH from a sender
func TransferFromRPL ¶
func TransferFromRPL(rp *rocketpool.RocketPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Transfer RPL from a sender
func TransferRETH ¶
func TransferRETH(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Transfer rETH
func TransferRPL ¶
func TransferRPL(rp *rocketpool.RocketPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Transfer RPL
Types ¶
type Balances ¶
type Balances struct { ETH *big.Int `json:"eth"` RETH *big.Int `json:"reth"` RPL *big.Int `json:"rpl"` FixedSupplyRPL *big.Int `json:"fixedSupplyRpl"` }
Token balances
func GetBalances ¶
func GetBalances(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (Balances, error)
Get token balances of an address