wallet

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRemoteHandler

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

func AddWalletHandler

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

func ImportHandler

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

func ListHandler

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

func ListWalletHandler

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

func RemoveHandler

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

func RemoveWalletHandler

func RemoveWalletHandler(
	ctx context.Context,
	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