wallet

package
v0.2.46 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRemoteHandler

func AddRemoteHandler(
	db *gorm.DB,
	ctx context.Context,
	lotusClient jsonrpc.RPCClient,
	request AddRemoteRequest,
) (*model.Wallet, error)

func AddWalletHandler

func AddWalletHandler(
	db *gorm.DB,
	datasetName string,
	wallet string,
) (*model.WalletAssignment, error)

func ImportHandler

func ImportHandler(
	db *gorm.DB,
	ctx context.Context,
	lotusClient jsonrpc.RPCClient,
	request ImportRequest,
) (*model.Wallet, error)

func ListHandler

func ListHandler(
	db *gorm.DB,
) ([]model.Wallet, error)

func ListWalletHandler

func ListWalletHandler(
	db *gorm.DB,
	datasetName string,
) ([]model.Wallet, error)

func RemoveHandler

func RemoveHandler(
	db *gorm.DB,
	address string,
) error

func RemoveWalletHandler

func RemoveWalletHandler(
	db *gorm.DB,
	datasetName string,
	wallet string,
) error

Types

type AddRemoteRequest

type AddRemoteRequest struct {
	Address    string `json:"address"`    // Address is the Filecoin full address of the wallet
	RemotePeer string `json:"remotePeer"` // RemotePeer is the remote peer ID of the wallet, for remote signing purpose
}

type ImportRequest

type ImportRequest struct {
	PrivateKey string `json:"privateKey"` // This is the exported private key from lotus wallet export
}

Jump to

Keyboard shortcuts

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