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:
allow for crash fault tolerant deduplication of traffic purchases
allow enforcing a rate limit to prevent the validator from spending too much on traffic purchases.
Signatory: validator
Field
Type
Description
dso
validator
The validator operator purchasing traffic for the given sequencer member
memberId
The id of the sequencer member (participant or mediator) for which traffic has been purchased
synchronizerId
The id of the synchronizer for which this contract tracks purchased extra traffic
migrationId
The migration id of the synchronizer for which this contract tracks purchased extra traffic
lastPurchasedAt
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