common

package
v0.184.52 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AndroidPlatform = "android"
	IOSPlatform     = "ios"
	WindowsPlatform = "windows"
)

Variables

View Source
var DISPLAY_NAME_EXT = []string{"_eth", ".eth", "-eth"}
View Source
var ErrInvalidDisplayNameEthSuffix = errors.New(`usernames ending with "eth" are not allowed`)
View Source
var ErrInvalidDisplayNameNotAllowed = errors.New("name is not allowed")
View Source
var ErrInvalidDisplayNameRegExp = errors.New("only letters, numbers, underscores and hyphens allowed")
View Source
var IsMobilePlatform = func() bool {
	return OperatingSystemIs(AndroidPlatform) || OperatingSystemIs(IOSPlatform)
}

Functions

func IsENSName added in v0.179.18

func IsENSName(displayName string) bool

implementation referenced from https://github.com/embarklabs/embark/blob/master/packages/plugins/ens/src/index.js

func IsNil added in v0.182.35

func IsNil(i interface{}) bool

func OperatingSystemIs added in v0.171.1

func OperatingSystemIs(targetOS string) bool

func RecoverKey added in v0.171.21

func ValidateDisplayName added in v0.178.1

func ValidateDisplayName(displayName *string) error

Types

type StatusService

type StatusService interface {
	Start() error
	Stop() error
	Protocols() []p2p.Protocol
	APIs() []rpc.API
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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