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

Feature: velocore adapter #213

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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: 5 additions & 0 deletions src/adapters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import { SwellSwEthAdapter } from './swell/products/sw-eth/swellSwEthAdapter'
import { SyncswapPoolAdapter } from './syncswap/products/pool/syncswapPoolAdapter'
import { UniswapV2PoolAdapter } from './uniswap-v2/products/pool/uniswapV2PoolAdapter'
import { UniswapV3PoolAdapter } from './uniswap-v3/products/pool/uniswapV3PoolAdapter'
import { VelocorePoolAdapter } from './velocore/products/pool/velocorePoolAdapter'
import { XfaiDexAdapter } from './xfai/products/dex/xfaiDexAdapter'

export const supportedProtocols: Record<
Expand Down Expand Up @@ -298,6 +299,10 @@ export const supportedProtocols: Record<
[Chain.Base]: [UniswapV3PoolAdapter],
},

[Protocol.Velocore]: {
[Chain.Linea]: [VelocorePoolAdapter],
},

[Protocol.Xfai]: {
[Chain.Linea]: [XfaiDexAdapter],
},
Expand Down
2 changes: 2 additions & 0 deletions src/adapters/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { testCases as swellTestCases } from './swell/tests/testCases'
import { testCases as syncSwapTestCases } from './syncswap/tests/testCases'
import { testCases as uniswapV2TestCases } from './uniswap-v2/tests/testCases'
import { testCases as uniswapV3TestCases } from './uniswap-v3/tests/testCases'
import { testCases as velocoreTestCases } from './velocore/tests/testCases'
import { testCases as xfaiTestCases } from './xfai/tests/testCases'

const TEST_TIMEOUT = 300000
Expand Down Expand Up @@ -79,6 +80,7 @@ function runAllTests() {
runProtocolTests(Protocol.SyncSwap, syncSwapTestCases)
runProtocolTests(Protocol.UniswapV2, uniswapV2TestCases)
runProtocolTests(Protocol.UniswapV3, uniswapV3TestCases)
runProtocolTests(Protocol.Velocore, velocoreTestCases)
runProtocolTests(Protocol.Xfai, xfaiTestCases)
}

Expand Down
1 change: 1 addition & 0 deletions src/adapters/protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const Protocol = {
SyncSwap: 'syncswap',
UniswapV2: 'uniswap-v2',
UniswapV3: 'uniswap-v3',
Velocore: 'velocore',
Xfai: 'xfai',
} as const
export type Protocol = (typeof Protocol)[keyof typeof Protocol]
Loading