wallets

package
v0.0.0-...-9dc0c09 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CREATE_WALLET_ACC_ENDPOINT = "/"
View Source
const WALLETS_DOMAIN_URL = "/api/wallets"

Variables

This section is empty.

Functions

func RunDomain

func RunDomain(r *gin.Engine, walletsEnv *WalletsEnv, middlewares ...gin.HandlerFunc)

func WalletsRegister

func WalletsRegister(router *gin.RouterGroup, env *WalletsEnv)

Types

type CreateWalletParams

type CreateWalletParams struct {
	Password string `json:"password" binding:"required,password"`
}

type WalletResponse

type WalletResponse struct {
	Account common.Address `json:"account"`
}

type WalletSerializer

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

func (WalletSerializer) Response

func (t WalletSerializer) Response() WalletResponse

type WalletsEnv

type WalletsEnv struct {
	Keystore services.KeystoreService
}

func (*WalletsEnv) CreateWallet

func (env *WalletsEnv) CreateWallet(c *gin.Context)

Jump to

Keyboard shortcuts

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