minipool
import "github.com/rocket-pool/rocketpool-go/minipool"
import "github.com/rocket-pool/rocketpool-go/minipool"
Index
- Constants
- func EstimateSubmitMinipoolWithdrawableGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func GetActiveMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
- func GetFinalisedMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
- func GetMinipoolAddresses(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]common.Address, error)
- func GetMinipoolAt(rp *rocketpool.RocketPool, index uint64, opts *bind.CallOpts) (common.Address, error)
- func GetMinipoolByPubkey(rp *rocketpool.RocketPool, pubkey rptypes.ValidatorPubkey, opts *bind.CallOpts) (common.Address, error)
- func GetMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
- func GetMinipoolExists(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (bool, error)
- func GetMinipoolPubkey(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (rptypes.ValidatorPubkey, error)
- func GetNodeActiveMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetNodeFinalisedMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetNodeMinipoolAddresses(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]common.Address, error)
- func GetNodeMinipoolAt(rp *rocketpool.RocketPool, nodeAddress common.Address, index uint64, opts *bind.CallOpts) (common.Address, error)
- func GetNodeMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetNodeValidatingMinipoolAt(rp *rocketpool.RocketPool, nodeAddress common.Address, index uint64, opts *bind.CallOpts) (common.Address, error)
- func GetNodeValidatingMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetNodeValidatingMinipoolPubkeys(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]rptypes.ValidatorPubkey, error)
- func GetQueueEffectiveCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetQueueLength(rp *rocketpool.RocketPool, depositType rptypes.MinipoolDeposit, opts *bind.CallOpts) (uint64, error)
- func GetQueueNextCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetQueueTotalCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetQueueTotalLength(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
- func SubmitMinipoolWithdrawable(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
- type Minipool
- func NewMinipool(rp *rocketpool.RocketPool, address common.Address) (*Minipool, error)
- func (mp *Minipool) CalculateNodeShare(balance *big.Int, opts *bind.CallOpts) (*big.Int, error)
- func (mp *Minipool) CalculateUserShare(balance *big.Int, opts *bind.CallOpts) (*big.Int, error)
- func (mp *Minipool) Close(opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) DelegateRollback(opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) DelegateUpgrade(opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) Dissolve(opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) DistributeBalance(opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) DistributeBalanceAndFinalise(opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) EstimateCloseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateDelegateRollbackGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateDelegateUpgradeGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateDissolveGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateDistributeBalanceAndFinaliseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateDistributeBalanceGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateFinaliseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateRefundGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateSetUseLatestDelegateGas(setting bool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) EstimateStakeGas(validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func (mp *Minipool) Finalise(opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) GetDelegate(opts *bind.CallOpts) (common.Address, error)
- func (mp *Minipool) GetDepositType(opts *bind.CallOpts) (rptypes.MinipoolDeposit, error)
- func (mp *Minipool) GetEffectiveDelegate(opts *bind.CallOpts) (common.Address, error)
- func (mp *Minipool) GetFinalised(opts *bind.CallOpts) (bool, error)
- func (mp *Minipool) GetNodeAddress(opts *bind.CallOpts) (common.Address, error)
- func (mp *Minipool) GetNodeDepositAssigned(opts *bind.CallOpts) (bool, error)
- func (mp *Minipool) GetNodeDepositBalance(opts *bind.CallOpts) (*big.Int, error)
- func (mp *Minipool) GetNodeDetails(opts *bind.CallOpts) (NodeDetails, error)
- func (mp *Minipool) GetNodeFee(opts *bind.CallOpts) (float64, error)
- func (mp *Minipool) GetNodeRefundBalance(opts *bind.CallOpts) (*big.Int, error)
- func (mp *Minipool) GetPreviousDelegate(opts *bind.CallOpts) (common.Address, error)
- func (mp *Minipool) GetStatus(opts *bind.CallOpts) (rptypes.MinipoolStatus, error)
- func (mp *Minipool) GetStatusBlock(opts *bind.CallOpts) (uint64, error)
- func (mp *Minipool) GetStatusDetails(opts *bind.CallOpts) (StatusDetails, error)
- func (mp *Minipool) GetStatusTime(opts *bind.CallOpts) (time.Time, error)
- func (mp *Minipool) GetUseLatestDelegate(opts *bind.CallOpts) (bool, error)
- func (mp *Minipool) GetUserDepositAssigned(opts *bind.CallOpts) (bool, error)
- func (mp *Minipool) GetUserDepositAssignedTime(opts *bind.CallOpts) (time.Time, error)
- func (mp *Minipool) GetUserDepositBalance(opts *bind.CallOpts) (*big.Int, error)
- func (mp *Minipool) GetUserDetails(opts *bind.CallOpts) (UserDetails, error)
- func (mp *Minipool) GetWithdrawalCredentials(opts *bind.CallOpts) (common.Hash, error)
- func (mp *Minipool) Refund(opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) SetUseLatestDelegate(setting bool, opts *bind.TransactOpts) (common.Hash, error)
- func (mp *Minipool) Stake(validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, opts *bind.TransactOpts) (common.Hash, error)
- type MinipoolCountsPerStatus
- type MinipoolDetails
- func GetMinipoolDetails(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (MinipoolDetails, error)
- func GetMinipools(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]MinipoolDetails, error)
- func GetNodeMinipools(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]MinipoolDetails, error)
- type NodeDetails
- type QueueCapacity
- type QueueLengths
- type StatusDetails
- type UserDetails
Constants
Settings
const (
MinipoolAddressBatchSize = 50
MinipoolDetailsBatchSize = 20
)
const (
MinipoolAddressBatchSize = 50
MinipoolDetailsBatchSize = 20
)
func EstimateSubmitMinipoolWithdrawableGas
func EstimateSubmitMinipoolWithdrawableGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func EstimateSubmitMinipoolWithdrawableGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of SubmitMinipoolWithdrawable
func GetActiveMinipoolCount
func GetActiveMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
func GetActiveMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
Get the number of active minipools in the network
func GetFinalisedMinipoolCount
func GetFinalisedMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
func GetFinalisedMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
Get the number of finalised minipools in the network
func GetMinipoolAddresses
func GetMinipoolAddresses(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]common.Address, error)
func GetMinipoolAddresses(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]common.Address, error)
Get all minipool addresses
func GetMinipoolAt
func GetMinipoolAt(rp *rocketpool.RocketPool, index uint64, opts *bind.CallOpts) (common.Address, error)
func GetMinipoolAt(rp *rocketpool.RocketPool, index uint64, opts *bind.CallOpts) (common.Address, error)
Get a minipool address by index
func GetMinipoolByPubkey
func GetMinipoolByPubkey(rp *rocketpool.RocketPool, pubkey rptypes.ValidatorPubkey, opts *bind.CallOpts) (common.Address, error)
func GetMinipoolByPubkey(rp *rocketpool.RocketPool, pubkey rptypes.ValidatorPubkey, opts *bind.CallOpts) (common.Address, error)
Get a minipool address by validator pubkey
func GetMinipoolCount
func GetMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
func GetMinipoolCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
Get the minipool count
func GetMinipoolExists
func GetMinipoolExists(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (bool, error)
func GetMinipoolExists(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (bool, error)
Check whether a minipool exists
func GetMinipoolPubkey
func GetMinipoolPubkey(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (rptypes.ValidatorPubkey, error)
func GetMinipoolPubkey(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (rptypes.ValidatorPubkey, error)
Get a minipool's validator pubkey
func GetNodeActiveMinipoolCount
func GetNodeActiveMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
func GetNodeActiveMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
Get the number of minipools owned by a node that are not finalised
func GetNodeFinalisedMinipoolCount
func GetNodeFinalisedMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
func GetNodeFinalisedMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
Get the number of minipools owned by a node that are finalised
func GetNodeMinipoolAddresses
func GetNodeMinipoolAddresses(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]common.Address, error)
func GetNodeMinipoolAddresses(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]common.Address, error)
Get a node's minipool addresses
func GetNodeMinipoolAt
func GetNodeMinipoolAt(rp *rocketpool.RocketPool, nodeAddress common.Address, index uint64, opts *bind.CallOpts) (common.Address, error)
func GetNodeMinipoolAt(rp *rocketpool.RocketPool, nodeAddress common.Address, index uint64, opts *bind.CallOpts) (common.Address, error)
Get a node's minipool address by index
func GetNodeMinipoolCount
func GetNodeMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
func GetNodeMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
Get a node's minipool count
func GetNodeValidatingMinipoolAt
func GetNodeValidatingMinipoolAt(rp *rocketpool.RocketPool, nodeAddress common.Address, index uint64, opts *bind.CallOpts) (common.Address, error)
func GetNodeValidatingMinipoolAt(rp *rocketpool.RocketPool, nodeAddress common.Address, index uint64, opts *bind.CallOpts) (common.Address, error)
Get a node's validating minipool address by index
func GetNodeValidatingMinipoolCount
func GetNodeValidatingMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
func GetNodeValidatingMinipoolCount(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (uint64, error)
Get a node's validating minipool count
func GetNodeValidatingMinipoolPubkeys
func GetNodeValidatingMinipoolPubkeys(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]rptypes.ValidatorPubkey, error)
func GetNodeValidatingMinipoolPubkeys(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]rptypes.ValidatorPubkey, error)
Get a node's validating minipool pubkeys
func GetQueueEffectiveCapacity
func GetQueueEffectiveCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
func GetQueueEffectiveCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the total effective capacity of the minipool queue (used in node demand calculation)
func GetQueueLength
func GetQueueLength(rp *rocketpool.RocketPool, depositType rptypes.MinipoolDeposit, opts *bind.CallOpts) (uint64, error)
func GetQueueLength(rp *rocketpool.RocketPool, depositType rptypes.MinipoolDeposit, opts *bind.CallOpts) (uint64, error)
Get the length of a single minipool queue
func GetQueueNextCapacity
func GetQueueNextCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
func GetQueueNextCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the capacity of the next minipool in the queue
func GetQueueTotalCapacity
func GetQueueTotalCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
func GetQueueTotalCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the total capacity of the minipool queue
func GetQueueTotalLength
func GetQueueTotalLength(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
func GetQueueTotalLength(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
Get the total length of the minipool queue
func SubmitMinipoolWithdrawable
func SubmitMinipoolWithdrawable(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
func SubmitMinipoolWithdrawable(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Submit a minipool withdrawable event
type Minipool
Minipool contract
type Minipool struct {
Address common.Address
Contract *rocketpool.Contract
RocketPool *rocketpool.RocketPool
}
type Minipool struct {
Address common.Address
Contract *rocketpool.Contract
RocketPool *rocketpool.RocketPool
}
func NewMinipool
func NewMinipool(rp *rocketpool.RocketPool, address common.Address) (*Minipool, error)
func NewMinipool(rp *rocketpool.RocketPool, address common.Address) (*Minipool, error)
Create new minipool contract
func (*Minipool) CalculateNodeShare
func (mp *Minipool) CalculateNodeShare(balance *big.Int, opts *bind.CallOpts) (*big.Int, error)
func (mp *Minipool) CalculateNodeShare(balance *big.Int, opts *bind.CallOpts) (*big.Int, error)
Given a validator balance, calculates how much belongs to the node taking into consideration rewards and penalties
func (*Minipool) CalculateUserShare
func (mp *Minipool) CalculateUserShare(balance *big.Int, opts *bind.CallOpts) (*big.Int, error)
func (mp *Minipool) CalculateUserShare(balance *big.Int, opts *bind.CallOpts) (*big.Int, error)
Given a validator balance, calculates how much belongs to rETH users taking into consideration rewards and penalties
func (*Minipool) Close
func (mp *Minipool) Close(opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) Close(opts *bind.TransactOpts) (common.Hash, error)
Withdraw node balances from the dissolved minipool and close it
func (*Minipool) DelegateRollback
func (mp *Minipool) DelegateRollback(opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) DelegateRollback(opts *bind.TransactOpts) (common.Hash, error)
Rollback to previous delegate contract
func (*Minipool) DelegateUpgrade
func (mp *Minipool) DelegateUpgrade(opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) DelegateUpgrade(opts *bind.TransactOpts) (common.Hash, error)
Upgrade this minipool to the latest network delegate contract
func (*Minipool) Dissolve
func (mp *Minipool) Dissolve(opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) Dissolve(opts *bind.TransactOpts) (common.Hash, error)
Dissolve the initialized or prelaunch minipool
func (*Minipool) DistributeBalance
func (mp *Minipool) DistributeBalance(opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) DistributeBalance(opts *bind.TransactOpts) (common.Hash, error)
Distribute the minipool's ETH balance to the node operator and rETH staking pool. !!! WARNING !!! DO NOT CALL THIS until the minipool's validator has exited from the Beacon Chain and the balance has been deposited into the minipool!
func (*Minipool) DistributeBalanceAndFinalise
func (mp *Minipool) DistributeBalanceAndFinalise(opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) DistributeBalanceAndFinalise(opts *bind.TransactOpts) (common.Hash, error)
Distribute the minipool's ETH balance to the node operator and rETH staking pool, then finalises the minipool !!! WARNING !!! DO NOT CALL THIS until the minipool's validator has exited from the Beacon Chain and the balance has been deposited into the minipool!
func (*Minipool) EstimateCloseGas
func (mp *Minipool) EstimateCloseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateCloseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of Close
func (*Minipool) EstimateDelegateRollbackGas
func (mp *Minipool) EstimateDelegateRollbackGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateDelegateRollbackGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of DelegateRollback
func (*Minipool) EstimateDelegateUpgradeGas
func (mp *Minipool) EstimateDelegateUpgradeGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateDelegateUpgradeGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of DelegateUpgrade
func (*Minipool) EstimateDissolveGas
func (mp *Minipool) EstimateDissolveGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateDissolveGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of Dissolve
func (*Minipool) EstimateDistributeBalanceAndFinaliseGas
func (mp *Minipool) EstimateDistributeBalanceAndFinaliseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateDistributeBalanceAndFinaliseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of DistributeBalanceAndFinalise
func (*Minipool) EstimateDistributeBalanceGas
func (mp *Minipool) EstimateDistributeBalanceGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateDistributeBalanceGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of DistributeBalance
func (*Minipool) EstimateFinaliseGas
func (mp *Minipool) EstimateFinaliseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateFinaliseGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of Finalise
func (*Minipool) EstimateRefundGas
func (mp *Minipool) EstimateRefundGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateRefundGas(opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of Refund
func (*Minipool) EstimateSetUseLatestDelegateGas
func (mp *Minipool) EstimateSetUseLatestDelegateGas(setting bool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateSetUseLatestDelegateGas(setting bool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of SetUseLatestDelegate
func (*Minipool) EstimateStakeGas
func (mp *Minipool) EstimateStakeGas(validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
func (mp *Minipool) EstimateStakeGas(validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of Stake
func (*Minipool) Finalise
func (mp *Minipool) Finalise(opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) Finalise(opts *bind.TransactOpts) (common.Hash, error)
Finalise a minipool to get the RPL stake back
func (*Minipool) GetDelegate
func (mp *Minipool) GetDelegate(opts *bind.CallOpts) (common.Address, error)
func (mp *Minipool) GetDelegate(opts *bind.CallOpts) (common.Address, error)
Returns the address of the minipool's stored delegate
func (*Minipool) GetDepositType
func (mp *Minipool) GetDepositType(opts *bind.CallOpts) (rptypes.MinipoolDeposit, error)
func (mp *Minipool) GetDepositType(opts *bind.CallOpts) (rptypes.MinipoolDeposit, error)
Get deposit type
func (*Minipool) GetEffectiveDelegate
func (mp *Minipool) GetEffectiveDelegate(opts *bind.CallOpts) (common.Address, error)
func (mp *Minipool) GetEffectiveDelegate(opts *bind.CallOpts) (common.Address, error)
Returns the delegate which will be used when calling this minipool taking into account useLatestDelegate setting
func (*Minipool) GetFinalised
func (mp *Minipool) GetFinalised(opts *bind.CallOpts) (bool, error)
func (mp *Minipool) GetFinalised(opts *bind.CallOpts) (bool, error)
func (*Minipool) GetNodeAddress
func (mp *Minipool) GetNodeAddress(opts *bind.CallOpts) (common.Address, error)
func (mp *Minipool) GetNodeAddress(opts *bind.CallOpts) (common.Address, error)
func (*Minipool) GetNodeDepositAssigned
func (mp *Minipool) GetNodeDepositAssigned(opts *bind.CallOpts) (bool, error)
func (mp *Minipool) GetNodeDepositAssigned(opts *bind.CallOpts) (bool, error)
func (*Minipool) GetNodeDepositBalance
func (mp *Minipool) GetNodeDepositBalance(opts *bind.CallOpts) (*big.Int, error)
func (mp *Minipool) GetNodeDepositBalance(opts *bind.CallOpts) (*big.Int, error)
func (*Minipool) GetNodeDetails
func (mp *Minipool) GetNodeDetails(opts *bind.CallOpts) (NodeDetails, error)
func (mp *Minipool) GetNodeDetails(opts *bind.CallOpts) (NodeDetails, error)
Get node details
func (*Minipool) GetNodeFee
func (mp *Minipool) GetNodeFee(opts *bind.CallOpts) (float64, error)
func (mp *Minipool) GetNodeFee(opts *bind.CallOpts) (float64, error)
func (*Minipool) GetNodeRefundBalance
func (mp *Minipool) GetNodeRefundBalance(opts *bind.CallOpts) (*big.Int, error)
func (mp *Minipool) GetNodeRefundBalance(opts *bind.CallOpts) (*big.Int, error)
func (*Minipool) GetPreviousDelegate
func (mp *Minipool) GetPreviousDelegate(opts *bind.CallOpts) (common.Address, error)
func (mp *Minipool) GetPreviousDelegate(opts *bind.CallOpts) (common.Address, error)
Returns the address of the minipool's previous delegate (or address(0) if not set)
func (*Minipool) GetStatus
func (mp *Minipool) GetStatus(opts *bind.CallOpts) (rptypes.MinipoolStatus, error)
func (mp *Minipool) GetStatus(opts *bind.CallOpts) (rptypes.MinipoolStatus, error)
func (*Minipool) GetStatusBlock
func (mp *Minipool) GetStatusBlock(opts *bind.CallOpts) (uint64, error)
func (mp *Minipool) GetStatusBlock(opts *bind.CallOpts) (uint64, error)
func (*Minipool) GetStatusDetails
func (mp *Minipool) GetStatusDetails(opts *bind.CallOpts) (StatusDetails, error)
func (mp *Minipool) GetStatusDetails(opts *bind.CallOpts) (StatusDetails, error)
Get status details
func (*Minipool) GetStatusTime
func (mp *Minipool) GetStatusTime(opts *bind.CallOpts) (time.Time, error)
func (mp *Minipool) GetStatusTime(opts *bind.CallOpts) (time.Time, error)
func (*Minipool) GetUseLatestDelegate
func (mp *Minipool) GetUseLatestDelegate(opts *bind.CallOpts) (bool, error)
func (mp *Minipool) GetUseLatestDelegate(opts *bind.CallOpts) (bool, error)
Getter for useLatestDelegate setting
func (*Minipool) GetUserDepositAssigned
func (mp *Minipool) GetUserDepositAssigned(opts *bind.CallOpts) (bool, error)
func (mp *Minipool) GetUserDepositAssigned(opts *bind.CallOpts) (bool, error)
func (*Minipool) GetUserDepositAssignedTime
func (mp *Minipool) GetUserDepositAssignedTime(opts *bind.CallOpts) (time.Time, error)
func (mp *Minipool) GetUserDepositAssignedTime(opts *bind.CallOpts) (time.Time, error)
func (*Minipool) GetUserDepositBalance
func (mp *Minipool) GetUserDepositBalance(opts *bind.CallOpts) (*big.Int, error)
func (mp *Minipool) GetUserDepositBalance(opts *bind.CallOpts) (*big.Int, error)
func (*Minipool) GetUserDetails
func (mp *Minipool) GetUserDetails(opts *bind.CallOpts) (UserDetails, error)
func (mp *Minipool) GetUserDetails(opts *bind.CallOpts) (UserDetails, error)
Get user deposit details
func (*Minipool) GetWithdrawalCredentials
func (mp *Minipool) GetWithdrawalCredentials(opts *bind.CallOpts) (common.Hash, error)
func (mp *Minipool) GetWithdrawalCredentials(opts *bind.CallOpts) (common.Hash, error)
Get withdrawal credentials
func (*Minipool) Refund
func (mp *Minipool) Refund(opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) Refund(opts *bind.TransactOpts) (common.Hash, error)
Refund node ETH from the minipool
func (*Minipool) SetUseLatestDelegate
func (mp *Minipool) SetUseLatestDelegate(setting bool, opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) SetUseLatestDelegate(setting bool, opts *bind.TransactOpts) (common.Hash, error)
If set to true, will automatically use the latest delegate contract
func (*Minipool) Stake
func (mp *Minipool) Stake(validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, opts *bind.TransactOpts) (common.Hash, error)
func (mp *Minipool) Stake(validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, opts *bind.TransactOpts) (common.Hash, error)
Progress the prelaunch minipool to staking
type MinipoolCountsPerStatus
The counts of minipools per status
type MinipoolCountsPerStatus struct {
Initialized *big.Int `abi:"initializedCount"`
Prelaunch *big.Int `abi:"prelaunchCount"`
Staking *big.Int `abi:"stakingCount"`
Withdrawable *big.Int `abi:"withdrawableCount"`
Dissolved *big.Int `abi:"dissolvedCount"`
}
type MinipoolCountsPerStatus struct {
Initialized *big.Int `abi:"initializedCount"`
Prelaunch *big.Int `abi:"prelaunchCount"`
Staking *big.Int `abi:"stakingCount"`
Withdrawable *big.Int `abi:"withdrawableCount"`
Dissolved *big.Int `abi:"dissolvedCount"`
}
func GetMinipoolCountPerStatus
func GetMinipoolCountPerStatus(rp *rocketpool.RocketPool, offset, limit uint64, opts *bind.CallOpts) (MinipoolCountsPerStatus, error)
func GetMinipoolCountPerStatus(rp *rocketpool.RocketPool, offset, limit uint64, opts *bind.CallOpts) (MinipoolCountsPerStatus, error)
Get the minipool count by status
type MinipoolDetails
Minipool details
type MinipoolDetails struct {
Address common.Address `json:"address"`
Exists bool `json:"exists"`
Pubkey rptypes.ValidatorPubkey `json:"pubkey"`
}
type MinipoolDetails struct {
Address common.Address `json:"address"`
Exists bool `json:"exists"`
Pubkey rptypes.ValidatorPubkey `json:"pubkey"`
}
func GetMinipoolDetails
func GetMinipoolDetails(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (MinipoolDetails, error)
func GetMinipoolDetails(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (MinipoolDetails, error)
Get a minipool's details
func GetMinipools
func GetMinipools(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]MinipoolDetails, error)
func GetMinipools(rp *rocketpool.RocketPool, opts *bind.CallOpts) ([]MinipoolDetails, error)
Get all minipool details
func GetNodeMinipools
func GetNodeMinipools(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]MinipoolDetails, error)
func GetNodeMinipools(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) ([]MinipoolDetails, error)
Get a node's minipool details
type NodeDetails
type NodeDetails struct {
Address common.Address `json:"address"`
Fee float64 `json:"fee"`
DepositBalance *big.Int `json:"depositBalance"`
RefundBalance *big.Int `json:"refundBalance"`
DepositAssigned bool `json:"depositAssigned"`
}
type NodeDetails struct {
Address common.Address `json:"address"`
Fee float64 `json:"fee"`
DepositBalance *big.Int `json:"depositBalance"`
RefundBalance *big.Int `json:"refundBalance"`
DepositAssigned bool `json:"depositAssigned"`
}
type QueueCapacity
Minipool queue capacity
type QueueCapacity struct {
Total *big.Int
Effective *big.Int
NextMinipool *big.Int
}
type QueueCapacity struct {
Total *big.Int
Effective *big.Int
NextMinipool *big.Int
}
func GetQueueCapacity
func GetQueueCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (QueueCapacity, error)
func GetQueueCapacity(rp *rocketpool.RocketPool, opts *bind.CallOpts) (QueueCapacity, error)
Get minipool queue capacity
type QueueLengths
Minipool queue lengths
type QueueLengths struct {
Total uint64
FullDeposit uint64
HalfDeposit uint64
EmptyDeposit uint64
}
type QueueLengths struct {
Total uint64
FullDeposit uint64
HalfDeposit uint64
EmptyDeposit uint64
}
func GetQueueLengths
func GetQueueLengths(rp *rocketpool.RocketPool, opts *bind.CallOpts) (QueueLengths, error)
func GetQueueLengths(rp *rocketpool.RocketPool, opts *bind.CallOpts) (QueueLengths, error)
Get minipool queue lengths
type StatusDetails
Minipool detail types
type StatusDetails struct {
Status rptypes.MinipoolStatus `json:"status"`
StatusBlock uint64 `json:"statusBlock"`
StatusTime time.Time `json:"statusTime"`
}
type StatusDetails struct {
Status rptypes.MinipoolStatus `json:"status"`
StatusBlock uint64 `json:"statusBlock"`
StatusTime time.Time `json:"statusTime"`
}
type UserDetails
type UserDetails struct {
DepositBalance *big.Int `json:"depositBalance"`
DepositAssigned bool `json:"depositAssigned"`
DepositAssignedTime time.Time `json:"depositAssignedTime"`
}
type UserDetails struct {
DepositBalance *big.Int `json:"depositBalance"`
DepositAssigned bool `json:"depositAssigned"`
DepositAssignedTime time.Time `json:"depositAssignedTime"`
}