Versions in this module Expand all Collapse all v0 v0.6.5 Aug 18, 2023 Changes in this version + const CacheTTL + const GasLimitMultiplier + const MaxGasLimit + const NethermindRevertRegex + func DecodeAbi(abiEncoded string) (*abi.ABI, error) + func EncodeAbiStr(abiStr string) (string, error) + func GetContractVersion(rp *RocketPool, contractAddress common.Address, opts *bind.CallOpts) (uint8, error) + type Contract struct + ABI *abi.ABI + Address *common.Address + Client ExecutionClient + Contract *bind.BoundContract + func GetRocketVersionContractForAddress(rp *RocketPool, address common.Address) (*Contract, error) + func (c *Contract) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (c *Contract) GetTransactionEvents(txReceipt *types.Receipt, eventName string, eventPrototype interface{}) ([]interface{}, error) + func (c *Contract) GetTransactionGasInfo(opts *bind.TransactOpts, method string, params ...interface{}) (GasInfo, error) + func (c *Contract) GetTransferGasInfo(opts *bind.TransactOpts) (GasInfo, error) + func (c *Contract) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (c *Contract) Transfer(opts *bind.TransactOpts) (common.Hash, error) + type ExecutionClient interface + BalanceAt func(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error) + BlockNumber func(ctx context.Context) (uint64, error) + CallContract func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + CodeAt func(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) + EstimateGas func(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error) + FilterLogs func(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error) + HeaderByHash func(ctx context.Context, hash common.Hash) (*types.Header, error) + HeaderByNumber func(ctx context.Context, number *big.Int) (*types.Header, error) + NonceAt func(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error) + PendingCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + PendingNonceAt func(ctx context.Context, account common.Address) (uint64, error) + SendTransaction func(ctx context.Context, tx *types.Transaction) error + SubscribeFilterLogs func(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) + SuggestGasPrice func(ctx context.Context) (*big.Int, error) + SuggestGasTipCap func(ctx context.Context) (*big.Int, error) + SyncProgress func(ctx context.Context) (*ethereum.SyncProgress, error) + TransactionByHash func(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type GasInfo struct + EstGasLimit uint64 + SafeGasLimit uint64 + type LegacyVersionWrapper interface + GetContract func(contractName string, opts *bind.CallOpts) (*Contract, error) + GetContractWithAddress func(contractName string, address common.Address) (*Contract, error) + GetEncodedABI func(contractName string) string + GetVersion func() *version.Version + GetVersionedContractName func(contractName string) (string, bool) + type LegacyVersionWrapper_v1_0_0 struct + func (m *LegacyVersionWrapper_v1_0_0) GetContract(contractName string, opts *bind.CallOpts) (*Contract, error) + func (m *LegacyVersionWrapper_v1_0_0) GetContractWithAddress(contractName string, address common.Address) (*Contract, error) + func (m *LegacyVersionWrapper_v1_0_0) GetEncodedABI(contractName string) string + func (m *LegacyVersionWrapper_v1_0_0) GetVersion() *version.Version + func (m *LegacyVersionWrapper_v1_0_0) GetVersionedContractName(contractName string) (string, bool) + type LegacyVersionWrapper_v1_1_0 struct + func (m *LegacyVersionWrapper_v1_1_0) GetContract(contractName string, opts *bind.CallOpts) (*Contract, error) + func (m *LegacyVersionWrapper_v1_1_0) GetContractWithAddress(contractName string, address common.Address) (*Contract, error) + func (m *LegacyVersionWrapper_v1_1_0) GetEncodedABI(contractName string) string + func (m *LegacyVersionWrapper_v1_1_0) GetVersion() *version.Version + func (m *LegacyVersionWrapper_v1_1_0) GetVersionedContractName(contractName string) (string, bool) + type LegacyVersionWrapper_v1_1_0_rc1 struct + func (m *LegacyVersionWrapper_v1_1_0_rc1) GetContract(contractName string, opts *bind.CallOpts) (*Contract, error) + func (m *LegacyVersionWrapper_v1_1_0_rc1) GetContractWithAddress(contractName string, address common.Address) (*Contract, error) + func (m *LegacyVersionWrapper_v1_1_0_rc1) GetEncodedABI(contractName string) string + func (m *LegacyVersionWrapper_v1_1_0_rc1) GetVersion() *version.Version + func (m *LegacyVersionWrapper_v1_1_0_rc1) GetVersionedContractName(contractName string) (string, bool) + type RocketPool struct + Client ExecutionClient + RocketStorage *contracts.RocketStorage + RocketStorageContract *Contract + VersionManager *VersionManager + func NewRocketPool(client ExecutionClient, rocketStorageAddress common.Address) (*RocketPool, error) + func (rp *RocketPool) GetABI(contractName string, opts *bind.CallOpts) (*abi.ABI, error) + func (rp *RocketPool) GetABIs(opts *bind.CallOpts, contractNames ...string) ([]*abi.ABI, error) + func (rp *RocketPool) GetAddress(contractName string, opts *bind.CallOpts) (*common.Address, error) + func (rp *RocketPool) GetAddresses(opts *bind.CallOpts, contractNames ...string) ([]*common.Address, error) + func (rp *RocketPool) GetContract(contractName string, opts *bind.CallOpts) (*Contract, error) + func (rp *RocketPool) GetContracts(opts *bind.CallOpts, contractNames ...string) ([]*Contract, error) + func (rp *RocketPool) MakeContract(contractName string, address common.Address, opts *bind.CallOpts) (*Contract, error) + type VersionManager struct + V1_0_0 LegacyVersionWrapper + V1_1_0 LegacyVersionWrapper + V1_1_0_RC1 LegacyVersionWrapper + func NewVersionManager(rp *RocketPool) *VersionManager