rpcapi

package
v3.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package rpcapi provides JSON RPC service.

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"`
	FromChainID string `json:"fromchainid"`
	ToChainID   string `json:"tochainid"`
}

GetSwapConfigArgs args

type GetTokenConfigArgs

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

GetTokenConfigArgs args

type OracleInfoArgs added in v3.4.0

type OracleInfoArgs struct {
	Enode     string `json:"enode"`
	Timestamp int64  `json:"timestamp"`
}

OracleInfoArgs 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) GetFeeConfig added in v3.6.0

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

GetFeeConfig api

func (*RouterSwapAPI) GetOracleInfo added in v3.4.0

func (s *RouterSwapAPI) GetOracleInfo(r *http.Request, args *RPCNullArgs, result *getOracleInfoResult) error

GetOracleInfo 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) GetRouterSwaps added in v3.6.1

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

GetRouterSwaps api

func (*RouterSwapAPI) GetServerInfo

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

GetServerInfo api

func (*RouterSwapAPI) GetStatusInfo added in v3.4.0

func (s *RouterSwapAPI) GetStatusInfo(r *http.Request, statuses *string, result *getStatusInfoResult) error

GetStatusInfo 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

func (*RouterSwapAPI) ReportOracleInfo added in v3.4.0

func (s *RouterSwapAPI) ReportOracleInfo(r *http.Request, args *OracleInfoArgs, result *string) error

ReportOracleInfo 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