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

my branch update #7

Closed
wants to merge 904 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
904 commits
Select commit Hold shift + click to select a range
b94dbd1
fix: styles
JackieJoo Dec 14, 2023
e523659
fix: add non-existent-set handling
JackieJoo Dec 15, 2023
0a050b9
fix: clean
JackieJoo Dec 15, 2023
63663dc
2.42.27-solidly-v3.2
JackieJoo Dec 15, 2023
b0dd459
fix: clean
JackieJoo Dec 15, 2023
c8e53d0
disable wombat to prevent it from polling
mwamedacen Dec 17, 2023
6a57f5a
2.42.28
mwamedacen Dec 17, 2023
e6ad588
Merge pull request #606 from paraswap/hotfix/disable-wombat
mwamedacen Dec 17, 2023
54d656d
fix: change liquidity for pools
JackieJoo Dec 18, 2023
6584b08
2.42.27-solidly-v3.3
JackieJoo Dec 18, 2023
682bfc8
fix: acc to comments
JackieJoo Dec 18, 2023
2075e9a
2.42.27-solidly-v3.4
JackieJoo Dec 18, 2023
538a1c7
fix: merge master
JackieJoo Dec 19, 2023
8882cce
2.42.29
JackieJoo Dec 19, 2023
3189efd
Merge pull request #599 from paraswap/feat/BACK-1408
JackieJoo Dec 19, 2023
788a993
camelotV2: fix pool discovery logic
mwamedacen Dec 23, 2023
ff1d796
bump dex-lib
mwamedacen Dec 23, 2023
1d9a6a0
remove deadcode
mwamedacen Dec 23, 2023
192a780
fix key construction
mwamedacen Dec 23, 2023
a8c476b
add error
mwamedacen Dec 23, 2023
950d0c3
better pool identifier code
mwamedacen Dec 23, 2023
62c1a7f
2.42.30-camelotv2-pooldiscoveryfix.0
mwamedacen Dec 23, 2023
c034b86
2.42.30-camelotv2-pooldiscoveryfix.1
mwamedacen Dec 23, 2023
22e4d20
add missing initialize
mwamedacen Dec 23, 2023
74eb430
2.42.30-camelotv2-pooldiscoveryfix.2
mwamedacen Dec 23, 2023
8d15a6a
2.42.30
mwamedacen Dec 23, 2023
e33cd8c
implement wombat using event base approach
sandy-wombat Dec 24, 2023
bee9806
camelot: add pool discovery tests
KanievskyiDanylo Dec 24, 2023
1b3128b
Merge pull request #608 from paraswap/BACK-1424/fix-camelot-v2-pool-d…
mwamedacen Dec 25, 2023
3475bc5
fix: generateState from all instances on certain events
JackieJoo Dec 27, 2023
eb4f7f8
fix: minor
JackieJoo Dec 27, 2023
c92c097
2.42.29-wombat
JackieJoo Dec 27, 2023
2bf6eee
fix: implement throttling
JackieJoo Dec 28, 2023
eb9e8d6
2.42.29-wombat.2
JackieJoo Dec 28, 2023
07228de
fix: cleaning
JackieJoo Dec 28, 2023
cd59f8f
fix: cleaning
JackieJoo Dec 28, 2023
7147011
fix: cleaning 2
JackieJoo Dec 28, 2023
e43b7be
fix: add logging for rpc calls
JackieJoo Jan 2, 2024
4a098d4
2.42.29-wombat.3
JackieJoo Jan 2, 2024
c0686fd
fix: update logging
JackieJoo Jan 2, 2024
9f6c899
2.42.29-wombat.4
JackieJoo Jan 2, 2024
c4613f4
fix: resolve merge conflicts
JackieJoo Jan 3, 2024
0a47473
2.42.31
JackieJoo Jan 3, 2024
d955da0
Merge pull request #610 from paraswap/feat/BACK-1423
JackieJoo Jan 3, 2024
8fcbdf5
fix: remove excessive logging
JackieJoo Jan 3, 2024
4077862
2.42.32
JackieJoo Jan 3, 2024
eaed414
Merge pull request #612 from paraswap/feat/BACK-1423
JackieJoo Jan 3, 2024
4bc1c67
pass taker to rfq apis
mwamedacen Jan 15, 2024
76c370e
2.42.33-back-1411-rfq-dynamic-taker.0
mwamedacen Jan 15, 2024
6ee872b
rename
mwamedacen Jan 15, 2024
6c28cf5
generalise naming for allowed taker
mwamedacen Jan 15, 2024
fea6dad
2.42.33-back-1411-rfq-dynamic-taker.1
mwamedacen Jan 15, 2024
26ddfc5
2.43.0
mwamedacen Jan 18, 2024
b52b30b
Merge pull request #618 from paraswap/feat/BACK-1411-rfq-dynamic-taker
mwamedacen Jan 18, 2024
ecae2ab
add abi for swETH and adapter for Swell
dannydalton-swell Dec 12, 2023
1b9ab20
fix: comment import
JackieJoo Jan 8, 2024
ea83a30
swell: subscribe to reprice event change + implement pricing + swap p…
mwamedacen Feb 15, 2024
1d055fe
swell: reactivate integration - move address to config
mwamedacen Feb 15, 2024
179aa62
fix adapter
mwamedacen Feb 16, 2024
b67d069
2.44.0
mwamedacen Feb 16, 2024
e47bb2b
upate adapter05
mwamedacen Feb 16, 2024
f6630a0
add test for swell
mwamedacen Feb 19, 2024
322ea65
Merge pull request #622 from paraswap/feat/BACK-1432
mwamedacen Feb 19, 2024
3c40f80
feat: use aave address book
sakulstra Feb 19, 2024
9cd1458
fix missing exclusion of Aerodrome in main implem
mwamedacen Feb 20, 2024
30205c9
dedup dexKeys
mwamedacen Feb 20, 2024
55e4069
2.44.1
mwamedacen Feb 20, 2024
282b77d
Merge pull request #624 from paraswap/fix/BACK-1464
mwamedacen Feb 20, 2024
1e42a4b
fix: use tokenlist for v2
sakulstra Feb 21, 2024
132c0cb
chore: use stable version
sakulstra Feb 21, 2024
fc69609
Merge branch 'master' of github.com:paraswap/paraswap-dex-lib into fe…
mwamedacen Feb 29, 2024
e991c97
2.44.2-aave-updates.0
mwamedacen Mar 1, 2024
9538784
aaveV3: add new chains adapters
mwamedacen Mar 4, 2024
9917a3f
2.44.2-aave-updates.1
mwamedacen Mar 4, 2024
4d3dea1
2.45.0
mwamedacen Mar 4, 2024
cdc9576
Merge pull request #625 from paraswap/feat/aave-updates
mwamedacen Mar 4, 2024
095d1a2
chore: Update with master.
johngrantuk Mar 11, 2024
7cc3600
fix: GyroE V1 dont use token rates. Add test against onchain query fo…
johngrantuk Mar 12, 2024
313054a
feat: Handle GyroE V2.
johngrantuk Mar 12, 2024
d03378f
test: Remove unused SG field tests.
johngrantuk Mar 13, 2024
5a385c4
fix: Gyro3, fix missing SG field. Update tests.
johngrantuk Mar 13, 2024
d6fdfeb
fix: Fix broken GyroE integration test by using correct pool for comp…
johngrantuk Mar 13, 2024
40e9302
fix: Fix broken CS integration test. Remove Linear as not supported.
johngrantuk Mar 13, 2024
69009fe
test: Remove bbausd test as no longer valid after vulnerability.
johngrantuk Mar 13, 2024
a2681b3
test: Change e2e to use GYD<>sDAI as pool has liquidity.
johngrantuk Mar 13, 2024
95e0c3a
chore: readme updates
0xSokka Mar 18, 2024
993101d
Merge pull request #629 from paraswap/chore/readme-updates
mwamedacen Mar 18, 2024
fdb0853
Revert "Merge pull request #629 from paraswap/chore/readme-updates"
mwamedacen Mar 18, 2024
1db27da
chore: add executor address to dexalot firm quote
jaimi-io Mar 22, 2024
d74c3e7
2.45.1-dexalot-executor-address.0
aburkut Mar 25, 2024
ebbc58b
Merge remote-tracking branch 'origin/master' into balancer-gyro
0xSokka Apr 1, 2024
32cb84f
chore: buy
0xSokka Apr 1, 2024
575284b
2.45.1-balancerv2-gyro.0
0xSokka Apr 1, 2024
6bd6d16
2.46.0-0
0xSokka Apr 1, 2024
84c4110
2.45.1-balancerv2-gyro.0
0xSokka Apr 1, 2024
c6e2362
bump @paraswap/core@2.0.0
aburkut Apr 2, 2024
2dafe74
2.45.1-core.2.0
aburkut Apr 2, 2024
804cb93
uncomment
0xSokka Apr 2, 2024
5ac5e47
chore: buy working for the most part
0xSokka Apr 2, 2024
1a39675
chore: calculation
0xSokka Apr 3, 2024
3a9e021
2.46.0
aburkut Apr 3, 2024
dd5cddd
Merge pull request #634 from paraswap/aburkut/core-2.0
aburkut Apr 3, 2024
a8e5c0a
solve merge conflicts
aburkut Apr 3, 2024
d1d33d3
2.46.1-dexalot-executor-address.0
aburkut Apr 3, 2024
cc4373b
fix for incorrectly solved conflict
aburkut Apr 3, 2024
6725c8d
2.46.1-dexalot-executor-address.1
aburkut Apr 3, 2024
20763da
Merge remote-tracking branch 'origin/master' into chore/balancer-gyro
0xSokka Apr 3, 2024
2e9e859
2.46.1-balancerv2-gyro.0
0xSokka Apr 3, 2024
b14b3ea
chore: debug pools
0xSokka Apr 3, 2024
b45c67d
2.46.1-balancerv2-gyro.1
0xSokka Apr 3, 2024
6504022
2.46.1-balancerv2-gyro.2
0xSokka Apr 3, 2024
c96f297
chore: add test
0xSokka Apr 3, 2024
7327eba
balancerV2: prevent one pool price to fail other pools prices
mwamedacen Apr 3, 2024
c30f623
chore: remove logs
0xSokka Apr 3, 2024
48268f9
Merge branch 'chore/balancer-gyro' of github.com:paraswap/paraswap-de…
0xSokka Apr 3, 2024
b5fc93c
2.46.1-balancerv2-gyro.3
0xSokka Apr 3, 2024
ebf5423
chore: remove loggers
0xSokka Apr 3, 2024
d51d6a3
2.46.1
aburkut Apr 4, 2024
49b34a4
Merge pull request #632 from paraswap/aburkut/dexalot-add-executor
aburkut Apr 4, 2024
b055e37
chore: update test
0xSokka Apr 4, 2024
7e2815e
BACK-1503: Re-assess need for poolconfig in uniswapV3 & forks
aburkut Apr 4, 2024
51f46ba
chore: use fees from sor
0xSokka Apr 4, 2024
1666d52
push key/val struct into new pools channel
aburkut Apr 5, 2024
3e62668
2.46.2-remove-univ3-poolconfigs.1
aburkut Apr 5, 2024
fbd4f65
fix: add fantom chain for solidlyV3
JackieJoo Apr 5, 2024
faf5dff
2.46.1-solidly-v3-fantom
JackieJoo Apr 5, 2024
e1cd245
fix: merge conflicts
JackieJoo Apr 5, 2024
27699f0
fix: Gyro3 rounding and fees.
johngrantuk Apr 5, 2024
f108c3d
Merge pull request #639 from johngrantuk/chore/balancer-gyro
0xSokka Apr 5, 2024
417576e
bump sdk:6.6.0
aburkut Apr 5, 2024
9c90077
2.46.1-balancerv2-gyro.4
0xSokka Apr 5, 2024
2b21e9a
get pool info from is_messages key
aburkut Apr 5, 2024
0070086
2.46.2-remove-univ3-poolconfigs.2
aburkut Apr 5, 2024
8d35f66
get pool info from is_messages key for algebra, solidlyv3 and pancake…
aburkut Apr 5, 2024
fa522c3
rollback changes in univ3 e2e tests
aburkut Apr 5, 2024
a8c809a
add fixes
aburkut Apr 5, 2024
c7edbda
2.46.2-remove-univ3-poolconfigs.3
aburkut Apr 5, 2024
8d89eba
remove console.log
aburkut Apr 5, 2024
c00012a
uniswapV2: add missing chains
mwamedacen Apr 5, 2024
fad6238
2.47.0
mwamedacen Apr 5, 2024
4b3f55a
fix uniswapV2 alias to be always univ2
mwamedacen Apr 5, 2024
4091e7f
2.47.1
mwamedacen Apr 5, 2024
7ee7ab0
Merge pull request #640 from paraswap/feat/uniswap-v2-all-chains
mwamedacen Apr 5, 2024
f620a05
balancer-v2: disable investment pool
mwamedacen Apr 7, 2024
03d1561
2.47.2
mwamedacen Apr 7, 2024
6721d0f
Merge pull request #641 from paraswap/fix/balancer-v2-disable-investm…
mwamedacen Apr 7, 2024
825b6ec
fix: remove quoter (unused)
JackieJoo Apr 8, 2024
97808d3
fix: merge conflicts
JackieJoo Apr 8, 2024
e50fd25
2.47.3-solidly-v3.2
JackieJoo Apr 8, 2024
83ea19a
2.47.3
JackieJoo Apr 8, 2024
f3cb3f1
Merge pull request #637 from paraswap/feat/BACK-1504
JackieJoo Apr 8, 2024
faa3cbf
2.47.4
0xSokka Apr 8, 2024
e2de26d
fix: add logs & relax restriction ttl
JackieJoo Apr 9, 2024
fde3c9c
2.47.4-hashflow-mm
JackieJoo Apr 9, 2024
114a2b4
fix: user restriction check
JackieJoo Apr 9, 2024
0b688cd
fix: small cleaning
JackieJoo Apr 9, 2024
d41f636
Merge remote-tracking branch 'origin/master' into chore/balancer-gyro
0xSokka Apr 9, 2024
f627a27
fix: address comments
JackieJoo Apr 9, 2024
69c1609
2.47.4
JackieJoo Apr 9, 2024
f2e1a13
2.47.5
JackieJoo Apr 9, 2024
94e5a56
Merge pull request #643 from paraswap/feat/BACK-1506
JackieJoo Apr 9, 2024
cbcfe93
Merge remote-tracking branch 'origin/master' into chore/balancer-gyro
0xSokka Apr 9, 2024
c9c80cd
2.47.6
0xSokka Apr 9, 2024
c121ece
chore: changes
0xSokka Apr 9, 2024
bbede3a
2.47.7
0xSokka Apr 9, 2024
51b9baf
Merge pull request #633 from paraswap/chore/balancer-gyro
0xSokka Apr 9, 2024
4c223b4
Merge branch 'master' of github.com:paraswap/paraswap-dex-lib into ab…
mwamedacen Apr 9, 2024
ceda678
2.47.8-remove-univ3-poolconfigs.0
mwamedacen Apr 9, 2024
7421c58
fix requested changes
aburkut Apr 10, 2024
6d6dae2
2.47.8-remove-univ3-poolconfigs.1
aburkut Apr 10, 2024
912689e
fix requested changes
aburkut Apr 10, 2024
294faf6
2.47.8-remove-univ3-poolconfigs.2
aburkut Apr 10, 2024
236628a
disable maserPoolNeeded for univ3 factories
aburkut Apr 10, 2024
cd70841
2.47.8-remove-univ3-poolconfigs.3
aburkut Apr 10, 2024
0720c69
2.48.0
aburkut Apr 10, 2024
c7b1a1c
Merge pull request #636 from paraswap/aburkut/univ3-fork-poolconfigs-…
aburkut Apr 10, 2024
c97b808
adding SpookySwapV3 configuration
RitzyDevUK Mar 23, 2024
77029e8
Merge branch 'master' into aburkut/back-1511-spooky-v3
aburkut Apr 12, 2024
e23f4f8
add e2e and integration tests
aburkut Apr 12, 2024
5dc546c
2.48.1-spookyswapv3-fantom.0
aburkut Apr 12, 2024
eaf87ff
2.48.1
aburkut Apr 15, 2024
ca07f3d
Merge pull request #645 from paraswap/aburkut/back-1511-spooky-v3
aburkut Apr 15, 2024
1bf1751
fix: merge conflicts
JackieJoo Apr 15, 2024
8f9799f
fix: update state multicall address
JackieJoo Apr 15, 2024
ade7781
add new boolean param special for generic rfq
aburkut Apr 16, 2024
6218c88
2.48.2-generic-rfq-special-param.0
aburkut Apr 16, 2024
050dd15
add pharaohV1
0xShad0w Apr 16, 2024
8a97b74
add integration.test
0xShad0w Apr 16, 2024
2933ddb
2.48.2
aburkut Apr 17, 2024
34f92e9
Merge pull request #648 from paraswap/aburkut/back-1517-rfq-improvement
aburkut Apr 17, 2024
4a59cc2
fix: add logging for debugging
JackieJoo Apr 17, 2024
bea110b
fix: add logging for debugging
JackieJoo Apr 17, 2024
6c540e7
fix: minor
JackieJoo Apr 18, 2024
202fb06
fix: add fee code & extend tests
JackieJoo Apr 18, 2024
34683bc
fix: cleaning
JackieJoo Apr 18, 2024
fc4f12b
Merge branch 'master' into feat/BACK-1516
JackieJoo Apr 19, 2024
8ce319b
2.48.2-pharaoh
JackieJoo Apr 19, 2024
889c604
fix: update integration test
JackieJoo Apr 19, 2024
fa1e990
2.48.2-pharaoh.2
JackieJoo Apr 19, 2024
790f0de
2.48.3
JackieJoo Apr 24, 2024
a64d283
Merge pull request #647 from paraswap/feat/BACK-1516
JackieJoo Apr 24, 2024
9334c36
etherfi: minimal dex integration for tx params build only
mwamedacen Apr 24, 2024
9e6e618
2.48.4-etherfi.0
mwamedacen Apr 24, 2024
1c642b8
etherfi: properly nullify target address
mwamedacen Apr 24, 2024
2849031
2.48.4-etherfi.1
mwamedacen Apr 24, 2024
6873134
etherfi: fix wrong order of conds
mwamedacen Apr 24, 2024
ee38551
2.48.4-etherfi.2
mwamedacen Apr 24, 2024
2a9d394
etherfi: handle weth->eth->eETH
mwamedacen Apr 24, 2024
0bbbe3f
2.48.4-etherfi.3
mwamedacen Apr 24, 2024
126f5a4
etherfi: fix approve scenario
mwamedacen Apr 24, 2024
b5697b6
2.48.4-etherfi.4
mwamedacen Apr 24, 2024
ec30c30
Merge branch 'master' into feat/BACK-1532
JackieJoo Apr 24, 2024
00580ba
fix: rewrite tests
JackieJoo Apr 24, 2024
4c05a3e
2.49.0
mwamedacen Apr 25, 2024
ac24c10
Merge pull request #657 from paraswap/feat/BACK-1528-etherfi
mwamedacen Apr 25, 2024
8cce1d5
fix: minor
JackieJoo Apr 25, 2024
cedef10
fix: update router & cleaning
JackieJoo Apr 26, 2024
660c2cf
fix: merge
JackieJoo Apr 26, 2024
4efe6f4
2.49.0-pharaoh-v1
JackieJoo Apr 26, 2024
078fbbe
fix: acc to review
JackieJoo Apr 26, 2024
42d013a
2.49.0-pharaoh-v1.2
JackieJoo Apr 26, 2024
2347444
fix: add fees
JackieJoo Apr 26, 2024
b57800a
2.49.0-pharaoh-v1.3
JackieJoo Apr 26, 2024
ef64ab2
base: add 7 univ2 forks
mwamedacen Apr 26, 2024
fae3ef2
2.49.1-base-uniswapv2.0
mwamedacen Apr 26, 2024
9c97aa1
chore: update WOOFi Polygon, Arbitrum, Optimism, Base config
0xmer1in Apr 26, 2024
0164fcd
2.49.1-base-uniswapv2-plus-woofiv2-updated.0
mwamedacen Apr 26, 2024
2a8b921
base: add bulk tests for uniswapV2 forks
mwamedacen Apr 26, 2024
34a2b3d
feat: add alien base univ3
KanievskyiDanylo Apr 26, 2024
7838e39
Merge branch 'feat/alien-base-univ3' into BACK-1533/add-univ2-forks-base
KanievskyiDanylo Apr 26, 2024
d6b2bf2
2.49.1-base-uniswapv2-plus-woofiv2-updated.1
KanievskyiDanylo Apr 26, 2024
25ad49c
chore: rename AlienBaseV3 to AlienV3
KanievskyiDanylo Apr 26, 2024
0512d90
base: add alien (univ2 fork) subgraph
mwamedacen Apr 29, 2024
295b019
2.49.1-base-uniswapv2-plus-woofiv2-updated.2
mwamedacen Apr 29, 2024
6d8d1f2
feat: adapt AlienBase to UniswapV3 fork
KanievskyiDanylo Apr 29, 2024
4e6b6e3
2.49.1-base-uniswapv2-plus-woofiv2-updated.3
KanievskyiDanylo Apr 29, 2024
1b30c1f
2.49.1
mwamedacen Apr 29, 2024
8419391
Merge pull request #660 from paraswap/BACK-1533/add-univ2-forks-base
mwamedacen Apr 29, 2024
75a6bb0
fix: merge
JackieJoo Apr 29, 2024
8ffb38b
2.49.2
JackieJoo Apr 29, 2024
91d6056
Merge pull request #658 from paraswap/feat/BACK-1532
JackieJoo Apr 29, 2024
8eeef00
swapBasedV3: first shot
mwamedacen Apr 29, 2024
1a2dd7b
SwapBased: refactor for more code reuse
mwamedacen Apr 29, 2024
f71b6b6
2.50.0
mwamedacen Apr 29, 2024
711df6b
algebra: adapter config
mwamedacen Apr 30, 2024
adfe438
2.50.1
mwamedacen Apr 30, 2024
e899748
SwapBasedV3: fix tests
mwamedacen Apr 30, 2024
a9f94cb
swapBasd: fix subgraphs urls
mwamedacen Apr 30, 2024
2f4e53c
2.50.2
mwamedacen Apr 30, 2024
3de675b
Merge pull request #664 from paraswap/feat/swapbased-algebra-fork
KanievskyiDanylo May 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HTTP_PROVIDER_1=
HTTP_PROVIDER_137=
HTTP_PROVIDER_43114=

TENDERLY_TOKEN=
TENDERLY_ACCOUNT_ID=
TENDERLY_PROJECT=
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/dex-lib",
"version": "2.36.1",
"version": "2.50.2",
"main": "build/index.js",
"types": "build/index.d.ts",
"repository": "https://github.com/paraswap/paraswap-dex-lib",
Expand All @@ -11,7 +11,7 @@
"access": "public"
},
"devDependencies": {
"@paraswap/sdk": "6.2.1",
"@paraswap/sdk": "6.6.0",
"@types/async": "^3.2.15",
"@types/axios": "0.14.0",
"@types/express": "^4.17.14",
Expand Down Expand Up @@ -51,15 +51,18 @@
},
"dependencies": {
"@0x/utils": "^4.5.2",
"@balancer-labs/sor": "4.1.1-beta.4",
"@bgd-labs/aave-address-book": "2.21.1",
"@ethersproject/abi": "^5.7.0",
"@hashflow/sdk": "1.2.4",
"@hashflow/taker-js": "0.0.2",
"@paraswap/core": "1.1.0",
"@hashflow/taker-js": "0.3.4",
"@paraswap/core": "2.0.0",
"async": "^3.2.4",
"axios": "0.26.0",
"bignumber.js": "9.1.0",
"cross-fetch": "^3.1.5",
"es6-promise": "^4.2.8",
"ethers": "^5.6.5",
"ethers": "^5.7.2",
"joi": "^17.7.0",
"lens.ts": "^0.5.1",
"lodash": "4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion scripts/dex-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function testIntegration(argv: IOptions) {
process.env.NODE_ENV = 'test';
}

require('../node_modules/jest-cli/build/cli').run(
require('../node_modules/jest-cli/build').run(
`src\/dex\/${dexNameParam}\/.+\.test\.ts`,
);
}
Expand Down
281 changes: 281 additions & 0 deletions src/abi/algebra/SwapRouter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
[
{
"inputs": [
{ "internalType": "address", "name": "_factory", "type": "address" },
{ "internalType": "address", "name": "_WNativeToken", "type": "address" },
{ "internalType": "address", "name": "_poolDeployer", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "WNativeToken",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "int256", "name": "amount0Delta", "type": "int256" },
{ "internalType": "int256", "name": "amount1Delta", "type": "int256" },
{ "internalType": "bytes", "name": "_data", "type": "bytes" }
],
"name": "algebraSwapCallback",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{ "internalType": "bytes", "name": "path", "type": "bytes" },
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
{
"internalType": "uint256",
"name": "amountOutMinimum",
"type": "uint256"
}
],
"internalType": "struct ISwapRouter.ExactInputParams",
"name": "params",
"type": "tuple"
}
],
"name": "exactInput",
"outputs": [
{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{ "internalType": "address", "name": "tokenIn", "type": "address" },
{ "internalType": "address", "name": "tokenOut", "type": "address" },
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
{
"internalType": "uint256",
"name": "amountOutMinimum",
"type": "uint256"
},
{
"internalType": "uint160",
"name": "limitSqrtPrice",
"type": "uint160"
}
],
"internalType": "struct ISwapRouter.ExactInputSingleParams",
"name": "params",
"type": "tuple"
}
],
"name": "exactInputSingleSupportingFeeOnTransferTokens",
"outputs": [
{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{ "internalType": "bytes", "name": "path", "type": "bytes" },
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
{ "internalType": "uint256", "name": "amountOut", "type": "uint256" },
{
"internalType": "uint256",
"name": "amountInMaximum",
"type": "uint256"
}
],
"internalType": "struct ISwapRouter.ExactOutputParams",
"name": "params",
"type": "tuple"
}
],
"name": "exactOutput",
"outputs": [
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{ "internalType": "address", "name": "tokenIn", "type": "address" },
{ "internalType": "address", "name": "tokenOut", "type": "address" },
{ "internalType": "uint24", "name": "fee", "type": "uint24" },
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
{ "internalType": "uint256", "name": "amountOut", "type": "uint256" },
{
"internalType": "uint256",
"name": "amountInMaximum",
"type": "uint256"
},
{
"internalType": "uint160",
"name": "limitSqrtPrice",
"type": "uint160"
}
],
"internalType": "struct ISwapRouter.ExactOutputSingleParams",
"name": "params",
"type": "tuple"
}
],
"name": "exactOutputSingle",
"outputs": [
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "factory",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "bytes[]", "name": "data", "type": "bytes[]" }
],
"name": "multicall",
"outputs": [
{ "internalType": "bytes[]", "name": "results", "type": "bytes[]" }
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "poolDeployer",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "refundNativeToken",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "token", "type": "address" },
{ "internalType": "uint256", "name": "value", "type": "uint256" },
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
{ "internalType": "uint8", "name": "v", "type": "uint8" },
{ "internalType": "bytes32", "name": "r", "type": "bytes32" },
{ "internalType": "bytes32", "name": "s", "type": "bytes32" }
],
"name": "selfPermit",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "token", "type": "address" },
{ "internalType": "uint256", "name": "nonce", "type": "uint256" },
{ "internalType": "uint256", "name": "expiry", "type": "uint256" },
{ "internalType": "uint8", "name": "v", "type": "uint8" },
{ "internalType": "bytes32", "name": "r", "type": "bytes32" },
{ "internalType": "bytes32", "name": "s", "type": "bytes32" }
],
"name": "selfPermitAllowed",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "token", "type": "address" },
{ "internalType": "uint256", "name": "nonce", "type": "uint256" },
{ "internalType": "uint256", "name": "expiry", "type": "uint256" },
{ "internalType": "uint8", "name": "v", "type": "uint8" },
{ "internalType": "bytes32", "name": "r", "type": "bytes32" },
{ "internalType": "bytes32", "name": "s", "type": "bytes32" }
],
"name": "selfPermitAllowedIfNecessary",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "token", "type": "address" },
{ "internalType": "uint256", "name": "value", "type": "uint256" },
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
{ "internalType": "uint8", "name": "v", "type": "uint8" },
{ "internalType": "bytes32", "name": "r", "type": "bytes32" },
{ "internalType": "bytes32", "name": "s", "type": "bytes32" }
],
"name": "selfPermitIfNecessary",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "token", "type": "address" },
{ "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
{ "internalType": "address", "name": "recipient", "type": "address" }
],
"name": "sweepToken",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "token", "type": "address" },
{ "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "feeBips", "type": "uint256" },
{ "internalType": "address", "name": "feeRecipient", "type": "address" }
],
"name": "sweepTokenWithFee",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
{ "internalType": "address", "name": "recipient", "type": "address" }
],
"name": "unwrapWNativeToken",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "feeBips", "type": "uint256" },
{ "internalType": "address", "name": "feeRecipient", "type": "address" }
],
"name": "unwrapWNativeTokenWithFee",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{ "stateMutability": "payable", "type": "receive" }
]