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(paraswap): add optimism to swap #91

Merged
merged 4 commits into from
Oct 31, 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
6 changes: 6 additions & 0 deletions .changeset/unlucky-impalas-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@rabbitholegg/questdk-plugin-paraswap": minor
"@rabbitholegg/questdk-plugin-registry": minor
---

Add Optimism to Paraswap Swap
6 changes: 5 additions & 1 deletion packages/paraswap/src/chain-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ export const ETH_CHAIN_ID = 1
export const ARB_ONE_CHAIN_ID = 42161
export const OPTIMISM_CHAIN_ID = 10

export const SWAP_CHAIN_ID_ARRAY = [ETH_CHAIN_ID, ARB_ONE_CHAIN_ID]
export const SWAP_CHAIN_ID_ARRAY = [
ETH_CHAIN_ID,
ARB_ONE_CHAIN_ID,
OPTIMISM_CHAIN_ID,
]
export const STAKE_CHAIN_ID_ARRAY = [ETH_CHAIN_ID, OPTIMISM_CHAIN_ID]
20 changes: 20 additions & 0 deletions packages/paraswap/src/contract-addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,26 @@ export const DEFAULT_SWAP_TOKEN_LIST: {
'0xaf88d065e77c8cc2239327c5edb3a432268e5831',
'0xf97f4df75117a78c1a5a0dbb814af92458539fb4',
],
[OPTIMISM_CHAIN_ID]: [
'0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
'0x4200000000000000000000000000000000000006',
'0x4200000000000000000000000000000000000042',
'0x76fb31fb4af56892a25e32cfc43de717950c9278',
'0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
'0x94b008aa00579c1307b0ef2c499ad98a8ce58e58',
'0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6',
'0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9',
'0x7f5c764cbc14f9669b88837ca1490cca17c31607',
'0x68f180fcce6836688e9084f035309e29bf0a2095',
'0xf329e36c7bf6e5e86ce2150875a84ce77f477375',
'0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee',
'0x6ab707aca953edaefbc4fd23ba73294241490620',
'0x191c10aa4af7c30e871e70c95db0e4eb77237530',
'0x6d80113e533a2c0fe82eabd35f1875dcea89ea97',
'0x625e7708f30ca75bfd92586e17077590c60eb4cd',
'0x078f358208685046a11c85e8ad32895ded33a249',
'0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8',
],
} as const

export const DEFAULT_STAKE_TOKEN_LIST: {
Expand Down
Loading