Documentation ¶
Overview ¶
Package rpcapi provides JSON RPC service.
Index ¶
- type GetSwapConfigArgs
- type GetTokenConfigArgs
- type OracleInfoArgs
- type RPCNullArgs
- type RouterGetSwapHistoryArgs
- type RouterSwapAPI
- func (s *RouterSwapAPI) AdminCall(r *http.Request, rawTx, result *string) (err error)
- func (s *RouterSwapAPI) GetAllChainIDs(r *http.Request, args *RPCNullArgs, result *[]*big.Int) error
- func (s *RouterSwapAPI) GetAllMultichainTokens(r *http.Request, args *string, result *map[string]string) error
- func (s *RouterSwapAPI) GetAllTokenIDs(r *http.Request, args *RPCNullArgs, result *[]string) error
- func (s *RouterSwapAPI) GetChainConfig(r *http.Request, args *string, result *swapapi.ChainConfig) error
- func (s *RouterSwapAPI) GetFeeConfig(r *http.Request, args *GetSwapConfigArgs, result *swapapi.FeeConfig) error
- func (s *RouterSwapAPI) GetOracleInfo(r *http.Request, args *RPCNullArgs, result *getOracleInfoResult) error
- func (s *RouterSwapAPI) GetRouterSwap(r *http.Request, args *RouterSwapKeyArgs, result *swapapi.SwapInfo) error
- func (s *RouterSwapAPI) GetRouterSwapHistory(r *http.Request, args *RouterGetSwapHistoryArgs, result *[]*swapapi.SwapInfo) error
- func (s *RouterSwapAPI) GetRouterSwaps(r *http.Request, args *RouterSwapKeyArgs, result *[]*swapapi.SwapInfo) error
- func (s *RouterSwapAPI) GetServerInfo(r *http.Request, args *RPCNullArgs, result *swapapi.ServerInfo) error
- func (s *RouterSwapAPI) GetStatusInfo(r *http.Request, statuses *string, result *getStatusInfoResult) error
- func (s *RouterSwapAPI) GetSwapConfig(r *http.Request, args *GetSwapConfigArgs, result *swapapi.SwapConfig) error
- func (s *RouterSwapAPI) GetTokenConfig(r *http.Request, args *GetTokenConfigArgs, result *swapapi.TokenConfig) error
- func (s *RouterSwapAPI) GetVersionInfo(r *http.Request, args *RPCNullArgs, result *string) error
- func (s *RouterSwapAPI) RegisterRouterSwap(r *http.Request, args *RouterSwapKeyArgs, result *swapapi.MapIntResult) error
- func (s *RouterSwapAPI) ReportOracleInfo(r *http.Request, args *OracleInfoArgs, result *string) error
- type RouterSwapKeyArgs
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 ¶
GetTokenConfigArgs args
type OracleInfoArgs ¶ added in v3.4.0
OracleInfoArgs 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
Click to show internal directories.
Click to hide internal directories.