wallet

package
v0.0.0-...-9762c8f Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvironmentTest       = "test"
	EnvironmentStaging    = "staging"
	EnvironmentProduction = "production"

	AccountKeyFraction = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts

type Accounts struct {
	// contains filtered or unexported fields
}

func NewAccounts

func NewAccounts(
	accessAddress string,
	creatorAddress flow.Address,
	creatorKeyIndex int,
	creatorSigner crypto.Signer,
	accountLimit int,
) (*Accounts, error)

func (*Accounts) Create

func (a *Accounts) Create(newAccountKey *flow.AccountKey) (*model.Account, error)

func (*Accounts) GetLimit

func (a *Accounts) GetLimit() int

type AccountsCollector

type AccountsCollector struct {
	// contains filtered or unexported fields
}

func NewAccountsCollector

func NewAccountsCollector(networkType string) *AccountsCollector

func (*AccountsCollector) CurrentNumberOfAccounts

func (ac *AccountsCollector) CurrentNumberOfAccounts(accounts int)

CurrentNumberOfAccounts records the current number of accounts created by the service.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a hardware wallet service.

func NewService

func NewService(port int, logger zerolog.Logger, accounts *Accounts, store storage.Store, networkType string) *Service

NewService creates a new hardware wallet service.

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop()

Jump to

Keyboard shortcuts

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