Documentation ¶
Index ¶
- func GetUtxoKey(scriptPk *btcjson.ScriptPubKeyResult) string
- func GetUtxoKey1(scriptPk *btcjson.ScriptPubKeyResult) string
- type Service
- func (exp *Service) AssetInfo(tokenHash string) (string, string)
- func (exp *Service) ChainId2Name(chainId uint32) string
- func (exp *Service) CheckChains(context *ctx.Context)
- func (s *Service) Close()
- func (exp *Service) DayOfTime(t uint32) uint32
- func (exp *Service) DayOfTimeAddOne(t uint32) uint32
- func (exp *Service) DayOfTimeSubOne(t uint32) uint32
- func (exp *Service) DayOfTimeUp(t uint32) uint32
- func (exp *Service) FormatAmount(precision uint64, amount uint64) string
- func (exp *Service) FormatFee(chain uint32, fee uint64) string
- func (exp *Service) GetAddressTxList(chainId uint32, addr string, start uint32, end uint32) (int64, string)
- func (exp *Service) GetChain(chainId uint32) *model.ChainInfo
- func (exp *Service) GetChainInfos() []*model.ChainInfo
- func (srv *Service) GetConsumeGas(ctx *ctx.Context, hash ethcommon.Hash) uint64
- func (exp *Service) GetCrossTx(hash string) (int64, string)
- func (exp *Service) GetCrossTxList(start int, end int) (int64, string)
- func (exp *Service) GetExplorerInfo(start uint32, end uint32) (int64, string)
- func (exp *Service) GetLatestValidator() (int64, string)
- func (exp *Service) GetToken(tokenHash string) *model.ChainToken
- func (exp *Service) GetTokenTxList(token string, start uint32, end uint32) (int64, string)
- func (exp *Service) Hash2Address(chainId uint32, value string) string
- func (srv *Service) LoadAllianceCrossTxFromChain(context *ctx.Context)
- func (srv *Service) LoadCosmosCrossTxFromChain(context *ctx.Context)
- func (srv *Service) LoadEthCrossTxFromChain(context *ctx.Context)
- func (srv *Service) LoadNeoCrossTxFromChain(context *ctx.Context)
- func (srv *Service) LoadOntCrossTxFromChain(context *ctx.Context)
- func (self *Service) MonitorBtcChainFromAlliance(context *ctx.Context)
- func (self *Service) ParseBtcCrossTransfer(rawTx *btcjson.TxRawResult) (xtype uint32, toAddress string, tChainid uint64, amount int64, extData []byte, ...)
- func (s *Service) Ping() (err error)
- func (exp *Service) SearchToken(name string, chainId uint32) *model.ChainToken
- func (exp *Service) Start(context *ctx.Context)
- func (exp *Service) TxType2Name(ttype uint32) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUtxoKey ¶
func GetUtxoKey(scriptPk *btcjson.ScriptPubKeyResult) string
func GetUtxoKey1 ¶
func GetUtxoKey1(scriptPk *btcjson.ScriptPubKeyResult) string
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ChainId2Name ¶
func (*Service) CheckChains ¶
func (*Service) DayOfTimeAddOne ¶
func (*Service) DayOfTimeSubOne ¶
func (*Service) DayOfTimeUp ¶
func (*Service) FormatAmount ¶
func (*Service) GetAddressTxList ¶
func (*Service) GetChainInfos ¶
func (*Service) GetConsumeGas ¶
func (*Service) GetCrossTx ¶
GetCrossTx gets cross tx by Tx
func (*Service) GetCrossTxList ¶
TODO GetCrossTxList gets Cross transaction list from start to end (to be optimized)
func (*Service) GetExplorerInfo ¶
GetExplorerInfo shows explorer information, such as current blockheight (the number of blockchain and so on) on the home page.
func (*Service) GetLatestValidator ¶
GetCrossTx gets cross tx by Tx
func (*Service) GetTokenTxList ¶
func (*Service) Hash2Address ¶
func (*Service) LoadAllianceCrossTxFromChain ¶
loadAllianceCrossTxFromChain synchronizes cross txs from Alliance network
func (*Service) LoadCosmosCrossTxFromChain ¶
func (*Service) LoadEthCrossTxFromChain ¶
loadOntCrossTxFromChain synchronizes cross txs from Ethereum network
func (*Service) LoadNeoCrossTxFromChain ¶
loadOntCrossTxFromChain synchronizes cross txs from Neo network
func (*Service) LoadOntCrossTxFromChain ¶
loadOntCrossTxFromChain synchronizes cross txs from Ontology network
func (*Service) MonitorBtcChainFromAlliance ¶
func (*Service) ParseBtcCrossTransfer ¶
func (*Service) SearchToken ¶
func (exp *Service) SearchToken(name string, chainId uint32) *model.ChainToken
func (*Service) TxType2Name ¶
Click to show internal directories.
Click to hide internal directories.