Skip to content

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Aug 4, 2025

Description

This PR updates the trampoline contract to the latest version.

Additional networks

The contract was deployed also to many new networks like Binance, Optimism, Lens, Polygon and Avalanche

Bonus

Adding all the periphery contracts in a single table with all the networks and relevant links made it a bit hard to mantain.
Instead, I broke it down in sections, so it can be easier to read and maintain.

Before:
image

After:
image

Out of scope 1

There's a discussion on hooks, with a nice introduction to them with the goal of clarifying all aspects of them and properly defining the rules.

I believe that after properly defining that, we could move some of that content to https://docs.cow.fi/ because the hooks page and hook trampoline page are insufficient.

Out of scope also more improvements in the docs other than what I described in BONUS.

Test review the page

Review page: https://docs-git-update-trampoline-cowswap.vercel.app/cow-protocol/reference/contracts/periphery

For reference: https://docs.cow.fi/cow-protocol/reference/contracts/periphery

Summary by CodeRabbit

  • Documentation
    • Improved the structure and readability of the periphery contracts documentation by organizing each contract into its own section with clear headings and details.
    • Updated the HooksTrampoline contract address and expanded its list of supported networks.
    • Enhanced tables for contract addresses and supported networks, providing clearer separation for production and staging environments.

Copy link

vercel bot commented Aug 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Aug 4, 2025 11:51am

Copy link

coderabbitai bot commented Aug 4, 2025

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

📥 Commits

Reviewing files that changed from the base of the PR and between f54d114 and 99b6d25.

📒 Files selected for processing (1)
  • docs/cow-protocol/reference/contracts/periphery/README.mdx (1 hunks)
 _______________________________________________
< Finding your faults 10 times faster than Mom. >
 -----------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).

Walkthrough

The documentation for CoW Protocol's periphery contracts was restructured from a single markdown table into a more detailed, sectioned format. Each contract now features its own subsection with headings, updated addresses, explicit network mappings, and clearer links to documentation and source code. Some contract addresses and supported networks were also updated.

Changes

Cohort / File(s) Change Summary
Periphery Contracts Documentation
docs/cow-protocol/reference/contracts/periphery/README.mdx
Reformatted contract documentation from a single table to individual sections per contract, updated contract addresses, expanded network listings, and improved clarity with explicit links and tables.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

In the warren of docs, things were quite dense,
Now each contract stands tall, with clarity immense.
Addresses updated, networks anew,
Tables and links make it easy to view.
A hop, a jump, through markdown delight—
This bunny applauds the docs, now clear and bright! 🐇✨

Tip

CodeRabbit can use your project's `biome` configuration to improve the quality of JS/TS/CSS/JSON code reviews.

Add a configuration file to your project to customize how CodeRabbit runs biome.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-trampoline

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@anxolin anxolin marked this pull request as ready for review August 4, 2025 11:53
@anxolin anxolin requested a review from a team as a code owner August 4, 2025 11:53
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
docs/cow-protocol/reference/contracts/periphery/README.mdx (4)

19-23: Normalize chain names & explorer URLs for consistency

In the network lists you mix “Arbitrum one” (lower-case “one”) with the official spelling “Arbitrum One”, and you use snowscan.xyz for Avalanche while every other chain points to its canonical explorer. Consistent naming & canonical explorers make it easier for readers (and scripts that scrape the docs) to reason about the data.

-| Arbitrum one](https://arbiscan.io/address/…
+| Arbitrum One](https://arbiscan.io/address/…

-| Avalanche](https://snowscan.xyz/address/…
+| Avalanche](https://snowtrace.io/address/…

(Apply the same normalisation across both “Production” and “Staging” rows.)


30-42: Convert HooksTrampoline address to EIP-55 checksum & reuse the EthFlow table layout

The address is currently all lower-case while the rest of the doc uses checksum notation. Using the same format avoids accidental copy-paste errors and makes visual verification easier. In addition, the long bullet list of networks is harder to scan than the table you already use for EthFlow.

-**Address**: `0x60bf78233f48ec42ee3f101b9a05ec7878728006`
+**Address**: `0x60Bf78233F48Ec42eE3f101B9a05eC7878728006`

Consider replacing the “Address / Networks” bullet section with a two-column table (Network | Address) like the one used for EthFlow and CoWUidGenerator for uniformity.


50-59: Minor consistency nits in ComposableCoW section

  1. Chain list repeats the same naming / explorer issues noted above (e.g. “Arbitrum one”, snowscan.xyz).
  2. As with HooksTrampoline, the address is lower-case; convert to checksum for coherence.
-**Address**: `0xfdafc9d1902f4e0b84f65f49f244b32b31013b74`
+**Address**: `0xfDaFc9D1902F4E0b84F65F49F244B32B31013B74`

Applying these tweaks keeps the documentation polished and machine-friendly.


68-70: Fix mixed-case mismatch between link and literal address

The Base entry links to the lower-case address but shows a checksummed literal. While both resolve, using the same casing avoids confusion.

-| [Base](https://basescan.org/address/0x96dddac514d0799e34e3f642c5006852ad24cd68) | `0x96ddDAC514d0799e34e3F642c5006852aD24CD68` |
+[Base](https://basescan.org/address/0x96ddDAC514d0799e34e3F642c5006852aD24CD68) | `0x96ddDAC514d0799e34e3F642c5006852aD24CD68` |

(Also check whether Arbitrum One and other L2s should be listed for this contract to mirror the earlier sections.)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b9cb599 and f54d114.

📒 Files selected for processing (1)
  • docs/cow-protocol/reference/contracts/periphery/README.mdx (1 hunks)

@anxolin anxolin requested a review from fedgiac August 4, 2025 11:55
Copy link
Contributor

@fedgiac fedgiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. If you're motivated you could make all addresses consistently use checksummed addresses.

Unrelated to this PR, but there are a lot of contracts that have their address missing from the docs: for example the flash-loan router or the shed.

@anxolin anxolin merged commit 53c71f3 into main Aug 6, 2025
4 of 5 checks passed
@anxolin anxolin deleted the update-trampoline branch August 6, 2025 16:43
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants