rpcapi

package
v3.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetSwapConfigArgs added in v3.2.0

type GetSwapConfigArgs struct {
	TokenID string `json:"tokenid"`
	ChainID string `json:"chainid"`
}

GetSwapConfigArgs args

type GetTokenConfigArgs

type GetTokenConfigArgs struct {
	ChainID string `json:"chainid"`
	Address string `json:"address"`
}

GetTokenConfigArgs args

type RPCNullArgs

type RPCNullArgs struct{}

RPCNullArgs null args

type RouterGetSwapHistoryArgs

type RouterGetSwapHistoryArgs struct {
	ChainID string `json:"chainid"`
	Address string `json:"address"`
	Offset  int    `json:"offset"`
	Limit   int    `json:"limit"`
	Status  string `json:"status"`
}

RouterGetSwapHistoryArgs args

type RouterSwapAPI

type RouterSwapAPI struct{}

RouterSwapAPI rpc api handler

func (*RouterSwapAPI) AdminCall

func (s *RouterSwapAPI) AdminCall(r *http.Request, rawTx, result *string) (err error)

AdminCall admin call

func (*RouterSwapAPI) GetAllChainIDs

func (s *RouterSwapAPI) GetAllChainIDs(r *http.Request, args *RPCNullArgs, result *[]*big.Int) error

GetAllChainIDs api

func (*RouterSwapAPI) GetAllMultichainTokens

func (s *RouterSwapAPI) GetAllMultichainTokens(r *http.Request, args *string, result *map[string]string) error

GetAllMultichainTokens api nolint:gocritic // rpc need result of pointer type

func (*RouterSwapAPI) GetAllTokenIDs

func (s *RouterSwapAPI) GetAllTokenIDs(r *http.Request, args *RPCNullArgs, result *[]string) error

GetAllTokenIDs api

func (*RouterSwapAPI) GetChainConfig

func (s *RouterSwapAPI) GetChainConfig(r *http.Request, args *string, result *swapapi.ChainConfig) error

GetChainConfig api

func (*RouterSwapAPI) GetRouterSwap

func (s *RouterSwapAPI) GetRouterSwap(r *http.Request, args *RouterSwapKeyArgs, result *swapapi.SwapInfo) error

GetRouterSwap api

func (*RouterSwapAPI) GetRouterSwapHistory

func (s *RouterSwapAPI) GetRouterSwapHistory(r *http.Request, args *RouterGetSwapHistoryArgs, result *[]*swapapi.SwapInfo) error

GetRouterSwapHistory api

func (*RouterSwapAPI) GetServerInfo

func (s *RouterSwapAPI) GetServerInfo(r *http.Request, args *RPCNullArgs, result *swapapi.ServerInfo) error

GetServerInfo api

func (*RouterSwapAPI) GetSwapConfig added in v3.2.0

func (s *RouterSwapAPI) GetSwapConfig(r *http.Request, args *GetSwapConfigArgs, result *swapapi.SwapConfig) error

GetSwapConfig api

func (*RouterSwapAPI) GetTokenConfig

func (s *RouterSwapAPI) GetTokenConfig(r *http.Request, args *GetTokenConfigArgs, result *swapapi.TokenConfig) error

GetTokenConfig api

func (*RouterSwapAPI) GetVersionInfo

func (s *RouterSwapAPI) GetVersionInfo(r *http.Request, args *RPCNullArgs, result *string) error

GetVersionInfo api

func (*RouterSwapAPI) RegisterRouterSwap

func (s *RouterSwapAPI) RegisterRouterSwap(r *http.Request, args *RouterSwapKeyArgs, result *swapapi.MapIntResult) error

RegisterRouterSwap api

type RouterSwapKeyArgs

type RouterSwapKeyArgs struct {
	ChainID  string `json:"chainid"`
	TxID     string `json:"txid"`
	LogIndex string `json:"logindex"`
}

RouterSwapKeyArgs args

Jump to

Keyboard shortcuts

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