Documentation ¶
Index ¶
- type AddressPool
- func (pool *AddressPool) Dequeue() qlctypes.Address
- func (pool *AddressPool) DequeueSync() qlctypes.Address
- func (pool *AddressPool) Enqueue(address qlctypes.Address)
- func (pool *AddressPool) Front() qlctypes.Address
- func (pool *AddressPool) IsEmpty() bool
- func (pool *AddressPool) Search(address qlctypes.Address) qlctypes.Address
- func (pool *AddressPool) SearchSync(address qlctypes.Address) qlctypes.Address
- func (pool *AddressPool) Size() int
- type DebugAPI
- type DepositAPI
- func (d *DepositAPI) ChainTransactionConfirmed(ctx context.Context, h *pb.ChainTxRequest) (*pb.Boolean, error)
- func (d *DepositAPI) ChainTransactionID(ctx context.Context, hash *pb.Hash) (*pb.Hash, error)
- func (d *DepositAPI) ChainTransactionSent(ctx context.Context, h *pb.ChainTransactionSentRequest) (*pb.Boolean, error)
- func (d *DepositAPI) GetChainOwnerSign(ctx context.Context, request *proto.Hash) (*proto.String, error)
- func (d *DepositAPI) NeoTransactionConfirmed(ctx context.Context, request *pb.NeoTxConfirmedResponse) (*pb.Boolean, error)
- func (d *DepositAPI) PackNeoTransaction(ctx context.Context, request *pb.PackNeoTxRequest) (*pb.PackNeoTxResponse, error)
- func (d *DepositAPI) Refund(ctx context.Context, h *pb.Hash) (*pb.Boolean, error)
- func (d *DepositAPI) SendNeoTransaction(ctx context.Context, request *pb.SendNeoTxnRequest) (*pb.Boolean, error)
- type InfoAPI
- func (i *InfoAPI) CheckEthTransaction(ctx context.Context, Hash *pb.Hash) (*pb.Boolean, error)
- func (i *InfoAPI) CheckNeoTransaction(ctx context.Context, Hash *pb.Hash) (*pb.Boolean, error)
- func (i *InfoAPI) Config(ctx context.Context, empty *empty.Empty) (*pb.ConfigResponse, error)
- func (i *InfoAPI) Ping(ctx context.Context, empty *empty.Empty) (*pb.PingResponse, error)
- func (i *InfoAPI) SwapAmountByAddress(ctx context.Context, address *pb.Address) (*pb.AmountByAddressResponse, error)
- func (i *InfoAPI) SwapAmountByState(ctx context.Context, empty *empty.Empty) (*pb.Map, error)
- func (i *InfoAPI) SwapCountByState(ctx context.Context, empty *empty.Empty) (*pb.Map, error)
- func (i *InfoAPI) SwapInfoByTxHash(ctx context.Context, h *pb.Hash) (*pb.SwapInfo, error)
- func (i *InfoAPI) SwapInfoList(ctx context.Context, offset *pb.Offset) (*pb.SwapInfos, error)
- func (i *InfoAPI) SwapInfosByAddress(ctx context.Context, offset *pb.AddrAndOffset) (*pb.SwapInfos, error)
- func (i *InfoAPI) SwapInfosByState(ctx context.Context, offset *pb.StateAndOffset) (*pb.SwapInfos, error)
- func (i *InfoAPI) SwapUnconfirmeds(ctx context.Context, empty *empty.Empty) (*pb.SwapPendings, error)
- type QGasPledgeParam
- type QGasSwapAPI
- func (g *QGasSwapAPI) GetChainOwnerSign(ctx context.Context, param *pb.Hash) (*pb.String, error)
- func (g *QGasSwapAPI) GetPledgeSendBlock(ctx context.Context, params *pb.QGasPledgeRequest) (*pb.StateBlockHash, error)
- func (g *QGasSwapAPI) GetWithdrawRewardBlock(ctx context.Context, param *pb.Hash) (*pb.StateBlockHash, error)
- func (g *QGasSwapAPI) PledgeChainTxSent(ctx context.Context, param *pb.EthTxSentRequest) (*pb.Boolean, error)
- func (g *QGasSwapAPI) ProcessBlock(ctx context.Context, params *pb.StateBlockSigned) (*pb.Hash, error)
- func (g *QGasSwapAPI) SwapInfoByTxHash(ctx context.Context, h *pb.Hash) (*pb.QGasSwapInfo, error)
- func (g *QGasSwapAPI) SwapInfoList(ctx context.Context, offset *pb.Offset) (*pb.QGasSwapInfos, error)
- func (g *QGasSwapAPI) SwapInfosAmount(ctx context.Context, empty *empty.Empty) (*pb.Map, error)
- func (g *QGasSwapAPI) SwapInfosByAddress(ctx context.Context, offset *pb.AddrAndOffset) (*pb.QGasSwapInfos, error)
- func (g *QGasSwapAPI) SwapInfosByState(ctx context.Context, offset *pb.StateAndOffset) (*pb.QGasSwapInfos, error)
- func (g *QGasSwapAPI) SwapInfosCount(ctx context.Context, empty *empty.Empty) (*pb.Map, error)
- func (g *QGasSwapAPI) WithdrawChainTxSent(ctx context.Context, param *pb.QGasWithdrawRequest) (*pb.Boolean, error)
- type SignerService
- type TokenService
- type WithdrawAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressPool ¶ added in v1.0.1
type AddressPool struct {
// contains filtered or unexported fields
}
func AddressPools ¶ added in v1.0.1
func AddressPools(address qlctypes.Address) *AddressPool
func NewAddressPool ¶ added in v1.0.1
func NewAddressPool() *AddressPool
func (*AddressPool) Dequeue ¶ added in v1.0.1
func (pool *AddressPool) Dequeue() qlctypes.Address
func (*AddressPool) DequeueSync ¶ added in v1.0.1
func (pool *AddressPool) DequeueSync() qlctypes.Address
func (*AddressPool) Enqueue ¶ added in v1.0.1
func (pool *AddressPool) Enqueue(address qlctypes.Address)
func (*AddressPool) Front ¶ added in v1.0.1
func (pool *AddressPool) Front() qlctypes.Address
func (*AddressPool) IsEmpty ¶ added in v1.0.1
func (pool *AddressPool) IsEmpty() bool
func (*AddressPool) Search ¶ added in v1.0.1
func (pool *AddressPool) Search(address qlctypes.Address) qlctypes.Address
func (*AddressPool) SearchSync ¶ added in v1.0.1
func (pool *AddressPool) SearchSync(address qlctypes.Address) qlctypes.Address
func (*AddressPool) Size ¶ added in v1.0.1
func (pool *AddressPool) Size() int
type DebugAPI ¶
type DebugAPI struct {
// contains filtered or unexported fields
}
func NewDebugAPI ¶
type DepositAPI ¶
type DepositAPI struct {
// contains filtered or unexported fields
}
func NewDepositAPI ¶
func NewDepositAPI(ctx context.Context, cfg *config.Config, neo *neo.Transaction, e *eth.Transaction, bsc *eth.Transaction, signer *signer.SignerClient, s *gorm.DB) *DepositAPI
func (*DepositAPI) ChainTransactionConfirmed ¶ added in v1.0.1
func (d *DepositAPI) ChainTransactionConfirmed(ctx context.Context, h *pb.ChainTxRequest) (*pb.Boolean, error)
func (*DepositAPI) ChainTransactionID ¶ added in v1.0.1
func (*DepositAPI) ChainTransactionSent ¶ added in v1.0.1
func (d *DepositAPI) ChainTransactionSent(ctx context.Context, h *pb.ChainTransactionSentRequest) (*pb.Boolean, error)
func (*DepositAPI) GetChainOwnerSign ¶ added in v1.0.1
func (*DepositAPI) NeoTransactionConfirmed ¶ added in v1.0.1
func (d *DepositAPI) NeoTransactionConfirmed(ctx context.Context, request *pb.NeoTxConfirmedResponse) (*pb.Boolean, error)
func (*DepositAPI) PackNeoTransaction ¶ added in v1.0.1
func (d *DepositAPI) PackNeoTransaction(ctx context.Context, request *pb.PackNeoTxRequest) (*pb.PackNeoTxResponse, error)
func (*DepositAPI) SendNeoTransaction ¶ added in v1.0.1
func (d *DepositAPI) SendNeoTransaction(ctx context.Context, request *pb.SendNeoTxnRequest) (*pb.Boolean, error)
type InfoAPI ¶
type InfoAPI struct {
// contains filtered or unexported fields
}
func NewInfoAPI ¶
func (*InfoAPI) CheckEthTransaction ¶ added in v1.0.1
func (*InfoAPI) CheckNeoTransaction ¶ added in v1.0.1
func (*InfoAPI) SwapAmountByAddress ¶ added in v1.0.1
func (*InfoAPI) SwapAmountByState ¶ added in v1.0.1
func (*InfoAPI) SwapCountByState ¶ added in v1.0.1
func (*InfoAPI) SwapInfoByTxHash ¶ added in v1.0.1
func (*InfoAPI) SwapInfoList ¶ added in v1.0.1
func (*InfoAPI) SwapInfosByAddress ¶ added in v1.0.1
func (*InfoAPI) SwapInfosByState ¶ added in v1.0.1
func (*InfoAPI) SwapUnconfirmeds ¶ added in v1.0.1
type QGasPledgeParam ¶ added in v1.0.1
type QGasSwapAPI ¶ added in v1.0.1
type QGasSwapAPI struct {
// contains filtered or unexported fields
}
func NewQGasSwapAPI ¶ added in v1.0.1
func NewQGasSwapAPI(ctx context.Context, cfg *config.Config, q *qlc.Transaction, e *eth.Transaction, b *eth.Transaction, signer *signer.SignerClient, s *gorm.DB) *QGasSwapAPI
func (*QGasSwapAPI) GetChainOwnerSign ¶ added in v1.0.1
func (*QGasSwapAPI) GetPledgeSendBlock ¶ added in v1.0.1
func (g *QGasSwapAPI) GetPledgeSendBlock(ctx context.Context, params *pb.QGasPledgeRequest) (*pb.StateBlockHash, error)
func (*QGasSwapAPI) GetWithdrawRewardBlock ¶ added in v1.0.1
func (g *QGasSwapAPI) GetWithdrawRewardBlock(ctx context.Context, param *pb.Hash) (*pb.StateBlockHash, error)
func (*QGasSwapAPI) PledgeChainTxSent ¶ added in v1.0.1
func (g *QGasSwapAPI) PledgeChainTxSent(ctx context.Context, param *pb.EthTxSentRequest) (*pb.Boolean, error)
func (*QGasSwapAPI) ProcessBlock ¶ added in v1.0.1
func (g *QGasSwapAPI) ProcessBlock(ctx context.Context, params *pb.StateBlockSigned) (*pb.Hash, error)
func (*QGasSwapAPI) SwapInfoByTxHash ¶ added in v1.0.1
func (g *QGasSwapAPI) SwapInfoByTxHash(ctx context.Context, h *pb.Hash) (*pb.QGasSwapInfo, error)
func (*QGasSwapAPI) SwapInfoList ¶ added in v1.0.1
func (g *QGasSwapAPI) SwapInfoList(ctx context.Context, offset *pb.Offset) (*pb.QGasSwapInfos, error)
func (*QGasSwapAPI) SwapInfosAmount ¶ added in v1.0.1
func (*QGasSwapAPI) SwapInfosByAddress ¶ added in v1.0.1
func (g *QGasSwapAPI) SwapInfosByAddress(ctx context.Context, offset *pb.AddrAndOffset) (*pb.QGasSwapInfos, error)
func (*QGasSwapAPI) SwapInfosByState ¶ added in v1.0.1
func (g *QGasSwapAPI) SwapInfosByState(ctx context.Context, offset *pb.StateAndOffset) (*pb.QGasSwapInfos, error)
func (*QGasSwapAPI) SwapInfosCount ¶ added in v1.0.1
func (*QGasSwapAPI) WithdrawChainTxSent ¶ added in v1.0.1
func (g *QGasSwapAPI) WithdrawChainTxSent(ctx context.Context, param *pb.QGasWithdrawRequest) (*pb.Boolean, error)
type SignerService ¶
type SignerService struct {
// contains filtered or unexported fields
}
func NewSignerService ¶
func NewSignerService(cfg *config.SignerConfig) *SignerService
func (*SignerService) Sign ¶
func (s *SignerService) Sign(ctx context.Context, request *pb.SignRequest) (*pb.SignResponse, error)
type TokenService ¶
type TokenService struct {
// contains filtered or unexported fields
}
func NewTokenService ¶
func NewTokenService(cfg *config.SignerConfig) *TokenService
func (*TokenService) AddressList ¶
func (t *TokenService) AddressList(ctx context.Context, request *pb.AddressRequest) (*pb.AddressResponse, error)
func (*TokenService) Refresh ¶
func (t *TokenService) Refresh(ctx context.Context, request *pb.RefreshRequest) (*pb.RefreshResponse, error)
type WithdrawAPI ¶
type WithdrawAPI struct {
// contains filtered or unexported fields
}
func NewWithdrawAPI ¶
func NewWithdrawAPI(ctx context.Context, cfg *config.Config, neo *neo.Transaction, eth *eth.Transaction, bsc *eth.Transaction, s *gorm.DB) *WithdrawAPI
func (*WithdrawAPI) ChainTransactionConfirmed ¶ added in v1.0.1
func (w *WithdrawAPI) ChainTransactionConfirmed(ctx context.Context, request *pb.ChainTxRequest) (*pb.Boolean, error)
func (*WithdrawAPI) ChainTransactionSent ¶ added in v1.0.1
func (w *WithdrawAPI) ChainTransactionSent(ctx context.Context, request *pb.ChainTxRequest) (*pb.Boolean, error)
Click to show internal directories.
Click to hide internal directories.