-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add new Avalanche and Polygon networks
#143
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
Changes from all commits
5743863
1c4aaeb
a47c267
5776df1
44f73f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,6 +109,8 @@ declare module 'fastify' { | |
| [SupportedChainId.SEPOLIA]: Orderbook; | ||
| [SupportedChainId.GNOSIS_CHAIN]: Orderbook; | ||
| [SupportedChainId.MAINNET]: Orderbook; | ||
| [SupportedChainId.POLYGON]: Orderbook; | ||
| [SupportedChainId.AVALANCHE]: Orderbook; | ||
|
Comment on lines
+112
to
+113
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify orderbook implementation matches type definitions. The type definitions now include 🏁 Script executed: #!/bin/bash
# Description: Check if there are any usages of the new orderbook properties that would fail at runtime
# Expected: Find usages of orderbook[SupportedChainId.POLYGON] or orderbook[SupportedChainId.AVALANCHE]
echo "Searching for POLYGON orderbook usage..."
rg -A 3 -B 3 "orderbook.*POLYGON|orderbook\[.*137\]"
echo "Searching for AVALANCHE orderbook usage..."
rg -A 3 -B 3 "orderbook.*AVALANCHE|orderbook\[.*43114\]"
echo "Searching for any orderbook property access patterns..."
rg -A 2 "orderbook\[SupportedChainId\."Length of output: 462 To verify the mismatch between the type declarations and the actual decorated properties, let’s inspect the relevant sections of 🏁 Script executed: #!/bin/bash
# Locate the orderbook plugin file
file=$(fd orderbook.ts | head -n 1)
echo "Inspecting $file"
echo -e "\n--- Interface extension section ---"
rg -n -C2 "declare module 'fastify'" "$file"
echo -e "\n--- Decorate implementation section ---"
rg -n -C3 "fastify.decorate" "$file"Length of output: 816 🏁 Script executed: #!/bin/bash
file=apps/twap/src/app/plugins/orderbook.ts
echo "--- Interface extension (lines 90-130) ---"
sed -n '90,130p' "$file"Length of output: 890 Ensure POLYGON and AVALANCHE orderbooks are actually decorated The Please either:
Files to update:
🤖 Prompt for AI Agents |
||
| }; | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.