Skip to content
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

feat: gelato estimate for testnet #4774

Merged
merged 2 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion packages/agents/cartographer/api/gelato2.http
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
# just a few examples, more examples here: https://postgrest.org/en/stable/api.html#horizontal-filtering-rows

### get conversion rate
GET {{Url}}/oracles/{{chainId}}/conversionRate?to=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
GET {{Url}}/oracles/{{chainId}}/conversionRate?to=0x0000000000000000000000000000000000000000

### get estimate
GET {{Url}}/oracles/{{chainId}}/estimate?paymentToken=0x0000000000000000000000000000000000000000&gasLimit=1000000
4 changes: 2 additions & 2 deletions packages/utils/src/peripherals/gelato.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ const EquivalentChainsForGelato: Record<number, number> = {

// TESTNETS
4: 1, // rinkeby
5: 1, // goerli
5: 5, // goerli
1337: 1, // local chain
1338: 1, // local chain
13337: 1, // local chain
13338: 1, // local chain
420: 1, // optimism-goerli
420: 420, // optimism-goerli
80001: 137, // mumbai (polygon testnet)
421613: 1, // arbitrum-goerli
10200: 100, // chiado (gnosis testnet)
Expand Down