Documentation ¶
Index ¶
- func GenerateAddress(ggp *gogopool.GoGoPool, nodeAddress common.Address, ...) (common.Address, error)
- func GetDeposits(ggp *gogopool.GoGoPool, pubkeys map[ggptypes.ValidatorPubkey]bool, ...) (map[ggptypes.ValidatorPubkey][]DepositData, error)
- func GetNodeSalt(nodeAddress common.Address, salt *big.Int) common.Hash
- func WaitForTransaction(client *client.EthClientProxy, hash common.Hash) (*types.Receipt, error)
- type BeaconDepositEvent
- type DepositData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAddress ¶ added in v0.2.3
func GenerateAddress(ggp *gogopool.GoGoPool, nodeAddress common.Address, depositType ggptypes.MinipoolDeposit, salt *big.Int, minipoolBytecode []byte) (common.Address, error)
Precompute the address of a minipool based on the node wallet, deposit type, and unique salt If you set minipoolBytecode to nil, this will retrieve it from the contracts using minipool.GetMinipoolBytecode().
func GetDeposits ¶ added in v0.2.3
func GetDeposits(ggp *gogopool.GoGoPool, pubkeys map[ggptypes.ValidatorPubkey]bool, startBlock *big.Int, intervalSize *big.Int, opts *bind.CallOpts) (map[ggptypes.ValidatorPubkey][]DepositData, error)
Gets all of the deposit contract's deposit events for the provided pubkeys
func GetNodeSalt ¶ added in v0.2.3
Combine a node's address and a salt to retreive a new salt compatible with depositing
func WaitForTransaction ¶
Wait for a transaction to get mined
Types ¶
type BeaconDepositEvent ¶ added in v0.2.3
type BeaconDepositEvent struct { Pubkey []byte `abi:"pubkey"` WithdrawalCredentials []byte `abi:"withdrawal_credentials"` Amount []byte `abi:"amount"` Signature []byte `abi:"signature"` Index []byte `abi:"index"` Raw types.Log // Blockchain specific contextual infos }
BeaconDepositEvent represents a DepositEvent event raised by the BeaconDeposit contract.
type DepositData ¶ added in v0.2.3
type DepositData struct { Pubkey ggptypes.ValidatorPubkey `json:"pubkey"` WithdrawalCredentials common.Hash `json:"withdrawalCredentials"` Amount uint64 `json:"amount"` Signature ggptypes.ValidatorSignature `json:"signature"` TxHash common.Hash `json:"txHash"` BlockNumber uint64 `json:"blockNumber"` TxIndex uint `json:"txIndex"` }
Formatted Beacon deposit event data
Click to show internal directories.
Click to hide internal directories.