Splice.Wallet.TopUpState

Templates

template ValidatorTopUpState

The state of a given top-up loop.

Records the last time when this validator purchased traffic for this sequencer member in order to:

  1. allow for crash fault tolerant deduplication of traffic purchases

  2. allow enforcing a rate limit to prevent the validator from spending too much on traffic purchases.

Signatory: validator

Field

Type

Description

dso

Party

validator

Party

The validator operator purchasing traffic for the given sequencer member

memberId

Text

The id of the sequencer member (participant or mediator) for which traffic has been purchased

synchronizerId

Text

The id of the synchronizer for which this contract tracks purchased extra traffic

migrationId

Int

The migration id of the synchronizer for which this contract tracks purchased extra traffic

lastPurchasedAt

Time

Time when the traffic was last purchased by the validator for the given sequencer member

  • Choice Archive

    Controller: validator

    Returns: ()

    (no fields)

Functions

initialValidatorTopUpState

: Party -> Party -> Text -> Text -> ValidatorTopUpState