Documentation
¶
Index ¶
- func GetP2shAddressInfo(p2shAddress string) (*tokens.P2shAddressInfo, error)
- func IsValidSwapinBindAddress(address *string) bool
- func IsValidSwapoutBindAddress(address *string) bool
- func RegisterP2shAddress(bindAddress string) (*tokens.P2shAddressInfo, error)
- type LatestScanInfo
- type PostResult
- type ServerInfo
- type Swap
- type SwapInfo
- func ConvertMgoSwapResultToSwapInfo(mr *mongodb.MgoSwapResult) *SwapInfo
- func ConvertMgoSwapResultsToSwapInfos(mrSlice []*mongodb.MgoSwapResult) []*SwapInfo
- func ConvertMgoSwapToSwapInfo(ms *mongodb.MgoSwap) *SwapInfo
- func ConvertMgoSwapsToSwapInfos(msSlice []*mongodb.MgoSwap) []*SwapInfo
- func GetSwapin(txid *string) (*SwapInfo, error)
- func GetSwapinHistory(address string, offset, limit int) ([]*SwapInfo, error)
- func GetSwapout(txid *string) (*SwapInfo, error)
- func GetSwapoutHistory(address string, offset, limit int) ([]*SwapInfo, error)
- type SwapResult
- type SwapStatistics
- type SwapStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetP2shAddressInfo ¶
func GetP2shAddressInfo(p2shAddress string) (*tokens.P2shAddressInfo, error)
GetP2shAddressInfo api
func IsValidSwapinBindAddress ¶
IsValidSwapinBindAddress api
func IsValidSwapoutBindAddress ¶
IsValidSwapoutBindAddress api
func RegisterP2shAddress ¶
func RegisterP2shAddress(bindAddress string) (*tokens.P2shAddressInfo, error)
RegisterP2shAddress api
Types ¶
type LatestScanInfo ¶
type LatestScanInfo = mongodb.MgoLatestScanInfo
LatestScanInfo type alias
func GetLatestScanInfo ¶
func GetLatestScanInfo(isSrc bool) (*LatestScanInfo, error)
GetLatestScanInfo api
type PostResult ¶
type PostResult string
PostResult post result
var SuccessPostResult PostResult = "Success"
SuccessPostResult success post result
type ServerInfo ¶
type ServerInfo struct { Identifier string SrcToken *tokens.TokenConfig DestToken *tokens.TokenConfig Version string }
ServerInfo server info
type SwapInfo ¶
type SwapInfo struct { TxID string `json:"txid"` TxHeight uint64 `json:"txheight"` TxTime uint64 `json:"txtime"` From string `json:"from"` To string `json:"to"` Bind string `json:"bind"` Value string `json:"value"` SwapTx string `json:"swaptx"` SwapHeight uint64 `json:"swapheight"` SwapTime uint64 `json:"swaptime"` SwapValue string `json:"swapvalue"` SwapType uint32 `json:"swaptype"` Status SwapStatus `json:"status"` Timestamp int64 `json:"timestamp"` Memo string `json:"memo"` Confirmations uint64 `json:"confirmations"` }
SwapInfo swap info
func ConvertMgoSwapResultToSwapInfo ¶
func ConvertMgoSwapResultToSwapInfo(mr *mongodb.MgoSwapResult) *SwapInfo
ConvertMgoSwapResultToSwapInfo convert
func ConvertMgoSwapResultsToSwapInfos ¶
func ConvertMgoSwapResultsToSwapInfos(mrSlice []*mongodb.MgoSwapResult) []*SwapInfo
ConvertMgoSwapResultsToSwapInfos convert
func ConvertMgoSwapToSwapInfo ¶
ConvertMgoSwapToSwapInfo convert
func ConvertMgoSwapsToSwapInfos ¶
ConvertMgoSwapsToSwapInfos convert
func GetSwapinHistory ¶
GetSwapinHistory api
type SwapResult ¶
type SwapResult = mongodb.MgoSwapResult
SwapResult type alias
func GetRawSwapinResult ¶
func GetRawSwapinResult(txid *string) (*SwapResult, error)
GetRawSwapinResult api
func GetRawSwapoutResult ¶
func GetRawSwapoutResult(txid *string) (*SwapResult, error)
GetRawSwapoutResult api
Click to show internal directories.
Click to hide internal directories.