Documentation ¶
Index ¶
- type EthService
- func (e *EthService) Configure(cfg config.EthServiceConfig, logger *logrus.Entry) error
- func (e *EthService) ConnectedChainId() *big.Int
- func (e *EthService) DelegatedRecipient(userAddress common.Address) (common.Address, error)
- func (e *EthService) FetchPNORegistryAddressFromK2NodeOperator() (string, error)
- func (e *EthService) FetchProposerRegistryAddressFromK2Lending() (string, error)
- func (e *EthService) FetchProposerRegistryAddressFromK2NodeOperator() (string, error)
- func (e *EthService) IsPreferredNodeOperator(userAddress common.Address) (bool, error)
- func (e *EthService) LienContractAddress() (common.Address, error)
- func (e *EthService) NativeDelegationCountForNodeOperator(nodeOperatorAddress common.Address) (*big.Int, error)
- func (e *EthService) ReDelegateToPreferredNodeOperatorFromNativeDelegation(nodeOperatorAddress common.Address, amount *big.Int) (tx *types.Transaction, err error)
- func (e *EthService) SetDelegatedRecipient(recipientAddress common.Address) (tx *types.Transaction, err error)
- func (e *EthService) SetMaxGasPrice(maxGasPrice uint64)
- func (e *EthService) Status() (*ethereum.SyncProgress, error)
- func (e *EthService) TotalReDelegationsInETH(userAddress common.Address) (*big.Int, error)
- func (e *EthService) TotalReDelegationsInETHFromK2LP(userAddress common.Address) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthService ¶
type EthService struct {
// contains filtered or unexported fields
}
func NewEthService ¶
func NewEthService() *EthService
func (*EthService) Configure ¶
func (e *EthService) Configure(cfg config.EthServiceConfig, logger *logrus.Entry) error
func (*EthService) ConnectedChainId ¶
func (e *EthService) ConnectedChainId() *big.Int
func (*EthService) DelegatedRecipient ¶
func (*EthService) FetchPNORegistryAddressFromK2NodeOperator ¶
func (e *EthService) FetchPNORegistryAddressFromK2NodeOperator() (string, error)
func (*EthService) FetchProposerRegistryAddressFromK2Lending ¶
func (e *EthService) FetchProposerRegistryAddressFromK2Lending() (string, error)
func (*EthService) FetchProposerRegistryAddressFromK2NodeOperator ¶
func (e *EthService) FetchProposerRegistryAddressFromK2NodeOperator() (string, error)
func (*EthService) IsPreferredNodeOperator ¶
func (e *EthService) IsPreferredNodeOperator(userAddress common.Address) (bool, error)
func (*EthService) LienContractAddress ¶
func (e *EthService) LienContractAddress() (common.Address, error)
func (*EthService) NativeDelegationCountForNodeOperator ¶
func (*EthService) ReDelegateToPreferredNodeOperatorFromNativeDelegation ¶
func (e *EthService) ReDelegateToPreferredNodeOperatorFromNativeDelegation(nodeOperatorAddress common.Address, amount *big.Int) (tx *types.Transaction, err error)
func (*EthService) SetDelegatedRecipient ¶
func (e *EthService) SetDelegatedRecipient(recipientAddress common.Address) (tx *types.Transaction, err error)
func (*EthService) SetMaxGasPrice ¶
func (e *EthService) SetMaxGasPrice(maxGasPrice uint64)
func (*EthService) Status ¶
func (e *EthService) Status() (*ethereum.SyncProgress, error)
func (*EthService) TotalReDelegationsInETH ¶
func (*EthService) TotalReDelegationsInETHFromK2LP ¶
Click to show internal directories.
Click to hide internal directories.