Documentation ¶
Index ¶
- func CalculateLostBond(ctx *svc.ServiceContext)
- func HandlePendingBlock(ctx *svc.ServiceContext, block schema.SyncBlock) error
- func HandlePendingEvent(ctx *svc.ServiceContext, event schema.SyncEvent) error
- func HandleRollbackBlock(ctx *svc.ServiceContext, block schema.SyncBlock) error
- func HandleRollbackEvent(ctx *svc.ServiceContext, event schema.SyncEvent) error
- func LatestBlackNumber(ctx *svc.ServiceContext)
- func LogFilter(ctx *svc.ServiceContext, block schema.SyncBlock, addresses []common.Address, ...) ([]*schema.SyncEvent, error)
- func LogsToEvents(ctx *svc.ServiceContext, logs []types.Log, syncBlockID int64) ([]*schema.SyncEvent, error)
- func Run(ctx *svc.ServiceContext)
- func SyncBlock(ctx *svc.ServiceContext)
- func SyncClaimDataLen(ctx *svc.ServiceContext)
- func SyncCredit(ctx *svc.ServiceContext)
- func SyncDispute(ctx *svc.ServiceContext)
- func SyncEvent(ctx *svc.ServiceContext)
- type RetryDisputeGameClient
- func (r *RetryDisputeGameClient) GetAllAddress(disputeGame *common.Address) (map[string]bool, error)
- func (r *RetryDisputeGameClient) GetCredit(ctx context.Context, address common.Address) (*big.Int, error)
- func (r *RetryDisputeGameClient) ProcessDisputeGameCreated(ctx context.Context, evt schema.SyncEvent) error
- func (r *RetryDisputeGameClient) ProcessDisputeGameCredit(ctx context.Context) error
- func (r *RetryDisputeGameClient) ProcessDisputeGameMove(ctx context.Context, evt schema.SyncEvent) error
- func (r *RetryDisputeGameClient) ProcessDisputeGameResolve(evt schema.SyncEvent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateLostBond ¶
func CalculateLostBond(ctx *svc.ServiceContext)
func HandlePendingBlock ¶
func HandlePendingBlock(ctx *svc.ServiceContext, block schema.SyncBlock) error
func HandlePendingEvent ¶
func HandlePendingEvent(ctx *svc.ServiceContext, event schema.SyncEvent) error
func HandleRollbackBlock ¶
func HandleRollbackBlock(ctx *svc.ServiceContext, block schema.SyncBlock) error
func HandleRollbackEvent ¶
func HandleRollbackEvent(ctx *svc.ServiceContext, event schema.SyncEvent) error
func LatestBlackNumber ¶
func LatestBlackNumber(ctx *svc.ServiceContext)
func LogsToEvents ¶
func Run ¶
func Run(ctx *svc.ServiceContext)
func SyncBlock ¶
func SyncBlock(ctx *svc.ServiceContext)
func SyncClaimDataLen ¶
func SyncClaimDataLen(ctx *svc.ServiceContext)
SyncClaimDataLen Compensation processing historical data
func SyncCredit ¶
func SyncCredit(ctx *svc.ServiceContext)
func SyncDispute ¶
func SyncDispute(ctx *svc.ServiceContext)
func SyncEvent ¶
func SyncEvent(ctx *svc.ServiceContext)
Types ¶
type RetryDisputeGameClient ¶
type RetryDisputeGameClient struct { Client *contract.RateAndRetryDisputeGameClient DB *gorm.DB DisputeGameAddress common.Address }
func (*RetryDisputeGameClient) GetAllAddress ¶
func (*RetryDisputeGameClient) ProcessDisputeGameCreated ¶
func (*RetryDisputeGameClient) ProcessDisputeGameCredit ¶
func (r *RetryDisputeGameClient) ProcessDisputeGameCredit(ctx context.Context) error
func (*RetryDisputeGameClient) ProcessDisputeGameMove ¶
func (*RetryDisputeGameClient) ProcessDisputeGameResolve ¶
func (r *RetryDisputeGameClient) ProcessDisputeGameResolve(evt schema.SyncEvent) error
Click to show internal directories.
Click to hide internal directories.