Conversation
✅ Deploy Preview for vortex-sandbox ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for vortexfi ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR prepares a production release by adding a new TokenRelayer deployment on Base (chainId 8453), wiring per-chain relayer addresses into the Alfredpay offramp flow, and tightening Alfredpay quote amount rounding.
Changes:
- Add Hardhat deployment scripts for Base/Polygon/Arbitrum and commit the Base (8453) Ignition deployment outputs (addresses + artifacts).
- Replace the single TokenRelayer address constant with a per-network resolver and use it in typed-data construction and execution.
- Round Alfredpay offramp input amounts down to the ERC20 decimals when deriving quote amounts.
Reviewed changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| contracts/relayer/package.json | Adds deploy scripts for base/polygon/arbitrum networks. |
| contracts/relayer/ignition/deployments/chain-8453/journal.jsonl | Records the Base deployment execution journal for TokenRelayer. |
| contracts/relayer/ignition/deployments/chain-8453/deployed_addresses.json | Adds the deployed TokenRelayer address for Base (8453). |
| contracts/relayer/ignition/deployments/chain-8453/artifacts/TokenRelayer#TokenRelayer.json | Commits the Hardhat artifact for the Base deployment. |
| contracts/relayer/ignition/deployments/chain-8453/artifacts/TokenRelayer#TokenRelayer.dbg.json | Commits the debug artifact pointer for the Base deployment. |
| bun.lock | Updates Bun lockfile metadata. |
| apps/api/src/api/services/transactions/offramp/routes/evm-to-alfredpay.ts | Introduces per-network relayer mapping and uses it for permit/payload typed data. |
| apps/api/src/api/services/quote/engines/partners/offramp-alfredpay.ts | Rounds derived input amounts down to the Alfredpay ERC20 decimals. |
| apps/api/src/api/services/phases/handlers/squidrouter-permit-execution-handler.ts | Switches TokenRelayer execution to use the per-network relayer resolver. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
222
to
225
| const hash = await walletClient.writeContract({ | ||
| abi: tokenRelayerAbi, | ||
| address: RELAYER_ADDRESS as `0x${string}`, | ||
| address: getRelayerAddress(fromNetwork), | ||
| args: [ |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.