api

package
v0.0.0-...-5c64d9c Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIService

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

func InitAPIService

func InitAPIService(address string, wlm *walletmanager.WalletManager, networkController NetworkController) (*APIService, error)

func (*APIService) CreateAccount

func (api *APIService) CreateAccount(c *gin.Context)

func (*APIService) DeleteAccount

func (api *APIService) DeleteAccount(c *gin.Context)

func (*APIService) GetAccount

func (api *APIService) GetAccount(c *gin.Context)

func (*APIService) GetTokenList

func (api *APIService) GetTokenList(c *gin.Context)

func (*APIService) ListAccounts

func (api *APIService) ListAccounts(c *gin.Context)

func (*APIService) ListPairs

func (api *APIService) ListPairs(c *gin.Context)

func (*APIService) ListPools

func (api *APIService) ListPools(c *gin.Context)

func (*APIService) Serve

func (api *APIService) Serve() error

func (*APIService) Start

func (api *APIService) Start() error

func (*APIService) Stop

func (api *APIService) Stop() error

func (*APIService) SwitchNetwork

func (api *APIService) SwitchNetwork(networkParam common.NetworkID, incclient *incclient.IncClient) error

func (*APIService) UpdateAccount

func (api *APIService) UpdateAccount(c *gin.Context)

func (*APIService) WatchToken

func (api *APIService) WatchToken(c *gin.Context)

type NetworkController

type NetworkController interface {
	GetCurrentNetwork() string
	GetNetworkList() []common.NetworkID
	AddNetwork(networkID common.NetworkID) error
	SwitchNetwork(network string) error
}

Jump to

Keyboard shortcuts

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