Documentation ¶
Index ¶
- Constants
- func UpdateBlockRange(fromBlock int64, toBlock int64, readService *read.ReadService, ...) (int, error)
- func UpdateCometTxsRange(fromBlock int64, toBlock int64, readService *read.ReadService, ...) (int, error)
- type UpdateService
- func (us *UpdateService) UpdateAssetPoolBalances(ctx context.Context) error
- func (us *UpdateService) UpdateAssetPrices(ctx context.Context) error
- func (us *UpdateService) UpdateBlockSigners(ctx context.Context, fromBlock int64, toBlock int64) error
- func (us *UpdateService) UpdateBlockSignersAllNew(ctx context.Context) error
- func (us *UpdateService) UpdateCometTxs(ctx context.Context, fromBlock int64, toBlock int64) error
- func (us *UpdateService) UpdateCometTxsAllNew(ctx context.Context) error
- func (us *UpdateService) UpdateNetworkHistorySegments(ctx context.Context, apiURLs []string) error
- func (us *UpdateService) UpdatePartiesTotalBalances(ctx context.Context) error
- func (us *UpdateService) UpdateUnfinalizedDepositsBalances(ctx context.Context) error
- func (us *UpdateService) UpdateUnrealisedWithdrawalsBalances(ctx context.Context) error
Constants ¶
View Source
const (
BLOCK_NUM_IN_24h int64 = 123500 // 24[h/day] * 60[min/h] * 60[sec/h] / 0.7[block/sec]
)
View Source
const UpdaterType = "updater"
Variables ¶
This section is empty.
Functions ¶
func UpdateBlockRange ¶
func UpdateBlockRange( fromBlock int64, toBlock int64, readService *read.ReadService, blockSignerStore *sqlstore.BlockSigner, logger *logging.Logger, ) (int, error)
Types ¶
type UpdateService ¶
type UpdateService struct {
// contains filtered or unexported fields
}
func NewUpdateService ¶
func NewUpdateService( readService *read.ReadService, storeService *services.StoreService, log *logging.Logger, ) (*UpdateService, error)
func (*UpdateService) UpdateAssetPoolBalances ¶
func (us *UpdateService) UpdateAssetPoolBalances(ctx context.Context) error
func (*UpdateService) UpdateAssetPrices ¶
func (us *UpdateService) UpdateAssetPrices(ctx context.Context) error
func (*UpdateService) UpdateBlockSigners ¶
func (*UpdateService) UpdateBlockSignersAllNew ¶
func (us *UpdateService) UpdateBlockSignersAllNew(ctx context.Context) error
func (*UpdateService) UpdateCometTxs ¶
func (*UpdateService) UpdateCometTxsAllNew ¶
func (us *UpdateService) UpdateCometTxsAllNew(ctx context.Context) error
func (*UpdateService) UpdateNetworkHistorySegments ¶
func (us *UpdateService) UpdateNetworkHistorySegments(ctx context.Context, apiURLs []string) error
func (*UpdateService) UpdatePartiesTotalBalances ¶
func (us *UpdateService) UpdatePartiesTotalBalances(ctx context.Context) error
func (*UpdateService) UpdateUnfinalizedDepositsBalances ¶
func (us *UpdateService) UpdateUnfinalizedDepositsBalances(ctx context.Context) error
func (*UpdateService) UpdateUnrealisedWithdrawalsBalances ¶
func (us *UpdateService) UpdateUnrealisedWithdrawalsBalances(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.