register

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: GPL-3.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfAddressIsRegistered

func CheckIfAddressIsRegistered(address string) (bool, error)

func CheckIfAddressIsRegistered_byteAddress

func CheckIfAddressIsRegistered_byteAddress(address [20]byte) (res bool, err error)

func CheckIfInGoodStanding

func CheckIfInGoodStanding(address string) (bool, error)

func CheckIfInGoodStanding_byteAddress

func CheckIfInGoodStanding_byteAddress(address [20]byte) (res bool, err error)

func RegisterSP

func RegisterSP(params SPParams) (txid string, err error)

func UnregisterSP

func UnregisterSP(params SPParams) (ret string, err error)

Types

type SPParams

type SPParams struct {
	Wallet         wallet.EthereumKeyset
	SLALevel       int
	PledgedStorage uint64
	Bandwidth      uint64

	CountryCode gountries.Codes // must contain A2 field
	MinAskPrice uint64          // Wei per MByte

	Stake         uint64
	HardwareProof [32]byte

	NodeID string
}

func (*SPParams) ToEncodingParams

func (s *SPParams) ToEncodingParams() *encodings.SPParams

Jump to

Keyboard shortcuts

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