Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status Manager usable by contract #10389

Closed
turadg opened this issue Nov 1, 2024 · 0 comments · Fixed by #10406
Closed

Status Manager usable by contract #10389

turadg opened this issue Nov 1, 2024 · 0 comments · Fixed by #10406
Assignees
Labels
enhancement New feature or request

Comments

@turadg
Copy link
Member

turadg commented Nov 1, 2024

What is the Problem Being Solved?

Fast USDC needs to keep track of the status of transaction in flight.

Description of the Design

A StatusManager exo that has a map store in its state.

The store is keyed by a composite tuple (MintedAmount, EUD) and the value is an array of matching transactions.

Each transaction has a state and the exo validates state transitions.

Tentative: a separate facet for the Advancer and Settler for POLA.

No vstorage output yet.

Security Considerations

Scaling Considerations

Test Plan

Exo test of transition validation

Contract test is separate: #10388

Upgrade Considerations

@turadg turadg added the enhancement New feature or request label Nov 1, 2024
@turadg turadg added this to the FU1: package integration milestone Nov 1, 2024
@turadg turadg assigned dckc, turadg and 0xpatrickdev and unassigned dckc and turadg Nov 4, 2024
@mergify mergify bot closed this as completed in #10406 Nov 12, 2024
mergify bot added a commit that referenced this issue Nov 12, 2024
closes: #10389

## Description
- `StatusManager` with `OBSERVED`, `ADVANCED` states tracked in local `MapStore`
- `StatusManager` state updates via `Settler` and `Advancer`
- `CctpTxEvidence` type, typeGuard, and fixtures

### Security Considerations
See FastUSDC thread model

### Scaling Considerations
- includes a `seenTxs` SetStore that will keep track of every tx observed by fusdc contract to assert uniqueness

### Documentation Considerations
Includes state diagram in exos/README.md and the usual jsdoc

### Testing Considerations
Includes unit tests of exos with a mocked LCA.

### Upgrade Considerations
None, unreleased
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants