mock

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	InnerAccountsDir  string
	Directories       []string
	Files             map[string]map[string][]byte
	EncryptedSeedFile []byte
	AccountPasswords  map[string]string
	WalletPassword    string
	UnlockAccounts    bool
	// contains filtered or unexported fields
}

Wallet contains an in-memory, simulated wallet implementation.

func (*Wallet) AccountNames

func (w *Wallet) AccountNames() ([]string, error)

AccountNames --

func (*Wallet) AccountsDir

func (w *Wallet) AccountsDir() string

AccountsDir --

func (*Wallet) Exists

func (w *Wallet) Exists() (bool, error)

Exists --

func (*Wallet) InitializeKeymanager

func (w *Wallet) InitializeKeymanager(_ context.Context) (keymanager.IKeymanager, error)

InitializeKeymanager --

func (*Wallet) Password

func (w *Wallet) Password() string

Password --

func (*Wallet) ReadFileAtPath

func (w *Wallet) ReadFileAtPath(_ context.Context, pathName, fileName string) ([]byte, error)

ReadFileAtPath --

func (*Wallet) WriteFileAtPath

func (w *Wallet) WriteFileAtPath(_ context.Context, pathName, fileName string, data []byte) error

WriteFileAtPath --

Jump to

Keyboard shortcuts

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