eth

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWalletAccount

func GetWalletAccount(mnemonic, path string) (accounts.Account, string, error)

Types

type Service

type Service struct {
	// ks     *keystore.KeyStore
	Client *ethclient.Client
}

EthService ethereum service

func (*Service) CloseAllocation

func (es *Service) CloseAllocation(privateKeyHex, address, contract, alloID, poi string) (*types.Transaction, error)

func (*Service) GetAllocation

func (es *Service) GetAllocation(contractAddress, alloID string) (staking.IStakingDataAllocation, error)

func (*Service) GetAllocationState

func (es *Service) GetAllocationState(contractAddress, alloID string) (uint8, error)

Directories

Path Synopsis
abi

Jump to

Keyboard shortcuts

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