Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
48a4685
feat(scenarios): add Velocity support - state templates
92Infinitus92 Nov 2, 2026
319335f
ci: claude code review
failfmi Oct 7, 2026
ba50432
fix(scenarios): bundle the Velocity 2.170.0 IDL and move the pin
92Infinitus92 Nov 3, 2026
467c698
docs(scenarios): explain Velocity reloads and pauses
92Infinitus92 Nov 3, 2026
b807bfe
docs(scenarios): read the Velocity oracle exponent
92Infinitus92 Nov 3, 2026
25bc1b5
docs(scenarios): read the Velocity oracle exponent in the price note
92Infinitus92 Nov 3, 2026
be444ef
Merge upstream/main into feat/velocity-support
92Infinitus92 Nov 6, 2026
fb68145
feat(scenarios): keep the Velocity oracle posted with keep-alive
92Infinitus92 Nov 9, 2026
187ebb6
feat(scenarios): let a scenario make Velocity fills read the oracle o…
92Infinitus92 Nov 9, 2026
42fa047
Merge feat/scenarios/keep-alive-toggle into feat/velocity-support
92Infinitus92 Nov 9, 2026
3aae662
feat(scenarios): keep every loaded Velocity oracle posted with owned …
92Infinitus92 Nov 9, 2026
0ff3610
docs(scenarios): say every loaded Velocity oracle is kept posted
92Infinitus92 Nov 9, 2026
4f8f3b6
docs(scenarios): say in each price template that it keeps every loade…
92Infinitus92 Nov 10, 2026
dfeec60
Merge feat/scenarios/keep-alive-toggle into feat/velocity-support
92Infinitus92 Nov 10, 2026
bf9949d
test(scenarios): price the Velocity taker at its auction end so it cr…
92Infinitus92 Nov 10, 2026
f713474
docs(scenarios): explain how to keep one Velocity oracle stale while …
92Infinitus92 Nov 10, 2026
757eb4e
test(scenarios): drop the pinned deploy slot from the Velocity tests
92Infinitus92 Nov 19, 2026
26f1c82
feat(scenarios): Velocity funding, leverage, position and position to…
92Infinitus92 Nov 20, 2026
871423a
test(scenarios): prove the Velocity lookup recipes against mainnet
92Infinitus92 Nov 20, 2026
8a13065
Merge feat/scenarios/keep-alive-toggle into feat/velocity-support
92Infinitus92 Nov 20, 2026
384dff0
feat(scenarios): keep only the oracle a Velocity price override write…
92Infinitus92 Nov 20, 2026
bc02a4d
docs(scenarios): give each Velocity oracle a transaction reads its ow…
92Infinitus92 Nov 20, 2026
930665c
test(scenarios): give the Velocity tests their own diff_indices and l…
92Infinitus92 Nov 20, 2026
3952bf1
test(scenarios): move the Velocity tests under tests/protocols
92Infinitus92 Nov 20, 2026
4de1498
docs(scenarios): let a Velocity reposting override write any posted_slot
92Infinitus92 Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/core/src/scenarios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Protocols that are natively supported by Surfpool will have their IDLs included
- **Pump v1** - Bonding curve launchpad with curve reserve and global config override templates
- **Phoenix Eternal** - Perpetuals venue with trader collateral, mark price, maintenance margin, market fee, withdraw limit, trader capability, stop-loss trigger and delegated permission templates. See [protocols/phoenix-eternal/README.md](./protocols/phoenix-eternal/README.md)
- **PumpSwap v1** - Constant-product AMM with pool state and global config override templates, including canonical pool derivation for migrated pump.fun coins
- **Velocity** - Perpetuals exchange built on the Drift v2 program, with oracle price, perp market risk, exchange status, trading fee, spot market risk, funding, account leverage cap and perp position templates; each oracle an oracle price override writes is kept posted. See [protocols/velocity/v1/README.md](./protocols/velocity/v1/README.md)

For custom protocols, an IDL can be registered at runtime using the [`surfnet_registerIdl`](https://docs.surfpool.run/rpc/cheatcodes#surfnet-registeridl) RPC cheatcode.

Expand Down
358 changes: 358 additions & 0 deletions crates/core/src/scenarios/protocols/velocity/v1/README.md

Large diffs are not rendered by default.

Loading
Loading