http

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

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewERC20StatusHandler

func NewERC20StatusHandler(erc20InfoAPI erc20types.ERC20InfoAPI) httprouter.Handle

NewERC20StatusHandler creates a handler to handle the API calls to /erc20/downloader/status.

func NewGetERC20RelatedAddressHandler

func NewGetERC20RelatedAddressHandler(erc20Registry erc20types.ERC20Registry) httprouter.Handle

NewGetERC20RelatedAddressHandler creates a handler to handle the API calls to /transactiondb/erc20/addresses/:address.

func NewGetERC20TransactionID

func NewGetERC20TransactionID(erc20Registry erc20types.ERC20Registry) httprouter.Handle

NewGetERC20TransactionID creates a handler to handle the API calls to /transactiondb/erc20/transactions/:txid.

func RegisterConsensusHTTPHandlers

func RegisterConsensusHTTPHandlers(router api.Router, erc20Registry erc20types.ERC20Registry)

RegisterConsensusHTTPHandlers registers the 3Bot handlers for all consensus HTTP endpoints.

func RegisterERC20HTTPHandlers

func RegisterERC20HTTPHandlers(router api.Router, erc20InfoAPI erc20types.ERC20InfoAPI)

RegisterERC20HTTPHandlers registers the (tfchain-specific) handlers for all ERC20 HTTP endpoints.

func RegisterExplorerHTTPHandlers

func RegisterExplorerHTTPHandlers(router api.Router, erc20Registry erc20types.ERC20Registry)

RegisterExplorerHTTPHandlers registers the 3Bot handlers for all explorer HTTP endpoints.

Types

type ERC20BalanceInformation

type ERC20BalanceInformation struct {
	BalanceInfo erc20types.ERC20BalanceInfo `json:"balanceinfo"`
}

ERC20BalanceInformation contains the Bridge Contract's balance info

type ERC20SyncingStatus

type ERC20SyncingStatus struct {
	Status erc20types.ERC20SyncStatus `json:"status"`
}

ERC20SyncingStatus contains a Ethereum syncing status.

type GetERC20RelatedAddress

type GetERC20RelatedAddress struct {
	TFTAddress   types.UnlockHash        `json:"tftaddress"`
	ERC20Address erc20types.ERC20Address `json:"erc20address"`
}

GetERC20RelatedAddress contains the requested ERC20-related addresses.

type GetERC20TransactionID

type GetERC20TransactionID struct {
	ERC20TransaxtionID   erc20types.ERC20Hash `json:"er20txid"`
	TfchainTransactionID types.TransactionID  `json:"tfttxid"`
}

GetERC20TransactionID contains the requested info found for the given ERC20 TransactionID.

Jump to

Keyboard shortcuts

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