ethservice

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 (e *EthService) DelegatedRecipient(userAddress common.Address) (common.Address, error)

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 (e *EthService) NativeDelegationCountForNodeOperator(nodeOperatorAddress common.Address) (*big.Int, error)

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 (e *EthService) TotalReDelegationsInETH(userAddress common.Address) (*big.Int, error)

func (*EthService) TotalReDelegationsInETHFromK2LP

func (e *EthService) TotalReDelegationsInETHFromK2LP(userAddress common.Address) (*big.Int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL