-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/celer rfq #10
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
Merged
Merged
Feat/celer rfq #10
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a5b8151
feat: rfq and celer executor
reddyismav 7a93122
feat: rfq vault executor
reddyismav 10a000e
feat: add a mark refund function to make the refunds robust
reddyismav acf917b
feat: mark for refund robustness to avoid race condition
reddyismav 0df0d44
feat: changes
reddyismav e4b35b8
feat: optimise gas for rfq
arthcp 0162dfd
feat: enforce solver signer in deploy
arthcp cacd6fe
feat: deploy rfq vault
arthcp a0e6e99
feat: deployments
arthcp fc8d4f9
feat: cctp claim executor address
reddyismav eb2b591
feat: cctp executor
reddyismav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,3 +31,5 @@ node_modules | |
| /cache-hh | ||
| /artifacts-tron | ||
| /cache_hardhat-tron | ||
|
|
||
| .DS_Store | ||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CelerExecutor": "0x61d2608694f786162d835e5773f019aeab64977d", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CelerExecutor": "0x61d2608694f786162d835e5773f019aeab64977d", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CelerExecutor": "0x61d2608694f786162d835e5773f019aeab64977d", | ||
| "CctpClaimExecutor": "0x424a31A57F7C63918eCaA2Fac38016A8af5A6eC2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CelerExecutor": "0x61d2608694f786162d835e5773f019aeab64977d" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CelerExecutor": "0x61d2608694f786162d835e5773f019aeab64977d", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CelerExecutor": "0x61d2608694f786162d835e5773f019aeab64977d", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CelerExecutor": "0x61d2608694f786162d835e5773f019aeab64977d", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CelerExecutor": "0x61d2608694f786162d835e5773f019aeab64977d", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CctpClaimExecutor": "0x424a31A57F7C63918eCaA2Fac38016A8af5A6eC2" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "RFQVaultExecutor": "0x97caCa78AC2a94c67643d07843F85AFAa44a3ea5", | ||
| "CctpClaimExecutor": "0x424a31a57f7c63918ecaa2fac38016a8af5a6ec2" | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| import { mkdir, readFile, writeFile } from 'fs/promises'; | ||
| import { dirname, resolve } from 'path'; | ||
|
|
||
| export type CctpClaimExecutorDeployments = { | ||
| CctpClaimExecutor: string; | ||
| }; | ||
|
|
||
| export function cctpClaimExecutorAddressesPath( | ||
| network: string, | ||
| stage = 'prod', | ||
| ): string { | ||
| return resolve( | ||
| process.cwd(), | ||
| 'deployments', | ||
| stage, | ||
| 'addresses', | ||
| `${network}.json`, | ||
| ); | ||
| } | ||
|
|
||
| export async function readCctpClaimExecutorAddress( | ||
| network: string, | ||
| stage = 'prod', | ||
| ): Promise<string | undefined> { | ||
| const filePath = cctpClaimExecutorAddressesPath(network, stage); | ||
|
|
||
| try { | ||
| const raw = await readFile(filePath, 'utf8'); | ||
| const deployments = JSON.parse(raw) as Partial<CctpClaimExecutorDeployments>; | ||
| const address = deployments.CctpClaimExecutor?.trim(); | ||
|
|
||
| if (!address) { | ||
| return undefined; | ||
| } | ||
|
|
||
| return address; | ||
| } catch (err) { | ||
| if ((err as NodeJS.ErrnoException).code === 'ENOENT') { | ||
| return undefined; | ||
| } | ||
|
|
||
| throw err; | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Persists CctpClaimExecutor address for a network. | ||
| */ | ||
| export async function writeCctpClaimExecutorAddress( | ||
| network: string, | ||
| address: string, | ||
| stage = 'prod', | ||
| ): Promise<string> { | ||
| const filePath = cctpClaimExecutorAddressesPath(network, stage); | ||
| let deployments: Partial<CctpClaimExecutorDeployments> = {}; | ||
|
|
||
| try { | ||
| const raw = await readFile(filePath, 'utf8'); | ||
| deployments = JSON.parse(raw) as Partial<CctpClaimExecutorDeployments>; | ||
| } catch (err) { | ||
| if ((err as NodeJS.ErrnoException).code !== 'ENOENT') { | ||
| throw err; | ||
| } | ||
| } | ||
|
|
||
| deployments.CctpClaimExecutor = address; | ||
|
|
||
| await mkdir(dirname(filePath), { recursive: true }); | ||
| await writeFile( | ||
| filePath, | ||
| `${JSON.stringify(deployments, null, 2)}\n`, | ||
| 'utf8', | ||
| ); | ||
|
|
||
| return filePath; | ||
| } |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix
SOLVER_SIGNER_ADDRESSformatting to avoid dotenv parse/lint ambiguity.This line should avoid trailing spaces/comment after
=. Keep the comment on its own line.Suggested fix
📝 Committable suggestion
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 9-9: [SpaceCharacter] The line has spaces around equal sign
(SpaceCharacter)
[warning] 9-9: [ValueWithoutQuotes] This value needs to be surrounded in quotes
(ValueWithoutQuotes)
🤖 Prompt for AI Agents
Source: Linters/SAST tools