You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CAP-21 introduces a change to how time is represented in the protocol and it also changes the way you access transaction preconditions. The relevant changes are described in the XDR diff. When a project starts using the updated XDR, it must first be updated to conform to the new predicate time types as well as the new way transaction conditions are accessed. In summary,
relBefore is a Duration rather than an Int64
absBefore is a TimePoint rather than an Int64
timebounds preconditions are accessed via tx.Cond.TimeBounds rather than tx.TimeBounds
similarly, transactions w/ timebounds should be constructed on the Cond field with the PreconditionTypePrecondTime type
Shaptic
changed the title
Update claimable balances to use time structures over raw timestamps in SDKs
Meta: Update claimable balances to use structures over timestamps in SDKs
Mar 7, 2022
Shaptic
changed the title
Meta: Update claimable balances to use structures over timestamps in SDKs
Update claimable balances to use structures over timestamps in SDKs
Mar 7, 2022
Shaptic
changed the title
Update claimable balances to use structures over timestamps in SDKs
all: Update codebase to conform to new XDR types
Mar 14, 2022
Breakdown and Rollout: Horizon & Protocol 19. See #4261 for the master issue.
CAP-21 introduces a change to how time is represented in the protocol and it also changes the way you access transaction preconditions. The relevant changes are described in the XDR diff. When a project starts using the updated XDR, it must first be updated to conform to the new predicate time types as well as the new way transaction conditions are accessed. In summary,
tx.Cond.TimeBounds
rather thantx.TimeBounds
Cond
field with thePreconditionTypePrecondTime
typeThe text was updated successfully, but these errors were encountered: