Commit Graph

358 Commits

Author SHA1 Message Date
Richa-iitr
775f062cf9 minor modifications 2022-04-03 18:26:58 +05:30
Richa-iitr
5f7449fd27 Modified tests, amount approved 2022-04-03 17:31:16 +05:30
bhavik-m
34802d0dc7 removed to param 2022-04-03 03:31:38 +05:30
bhavik-m
dfb2c8132d passed vault addr in params 2022-04-02 22:41:33 +05:30
pradyuman-verma
423a090978
minor fixees 2022-04-02 22:39:19 +05:30
pradyuman-verma
985a8d3698
fixed test case logic 2022-04-02 20:36:31 +05:30
Richa-iitr
df450aa6f1 added tests 2022-04-02 15:23:19 +05:30
bhavik-m
f55e0abeb1 added test 2022-04-01 22:33:40 +05:30
Tianjie Wei
74a7effdb4 Addressing PR comments 2022-03-31 08:27:31 -07:00
pradyuman-verma
fe81e26428
added DSA compound check 2022-03-24 01:46:39 +05:30
pradyuman-verma
ea78b1ccb4
Merge branch 'aave-v2-to-v3-import' of https://github.com/Instadapp/dsa-connectors into aave-v3-addresses-update 2022-03-24 01:21:10 +05:30
pradyuman-verma
c549769454
minor fixes 2022-03-24 01:15:43 +05:30
pradyuman-verma
6a5784d067
fixed test 2022-03-24 01:11:18 +05:30
pradyuman-verma
96573dc193
minor fix 2022-03-23 16:21:56 +05:30
pradyuman-verma
fc8aa786bd
updated compound test 2022-03-23 16:13:46 +05:30
0xPradyuman
af8ff0a769
Merge pull request #153 from Instadapp/uniswapv3-router
[mainnet] uniswap v3 auto router
2022-03-22 22:23:51 +05:30
bhavik-m
3628a291b1 Merge branch 'main' into uniswapv3-router 2022-03-07 16:35:25 +05:30
bhavik-m
2d308f2e35 removed referral param 2022-03-07 01:00:45 +05:30
bhavik-m
cb89771f7e added referral parameter in deposit func 2022-03-07 00:39:38 +05:30
bhavik-m
9b7fe50973 added test 2022-03-07 00:16:32 +05:30
Chinmay Chougaonkar
9a8f204508 added Compound spells before flashPayback 2022-03-05 20:00:23 +05:30
Chinmay Chougaonkar
5cd4eb192c use wallets in tests 2022-03-05 12:39:25 +05:30
Chinmay Chougaonkar
be278c62f5 added deployAndEnable for connector and instapool in test script 2022-03-05 12:27:30 +05:30
Chinmay Chougaonkar
ba847889d8 started writing tests 2022-03-03 18:08:06 +05:30
bhavik-m
8f00678366 fix conflicts 2022-03-02 18:26:54 +05:30
Dimitri
eb8ddce70a
Merge branch 'Instadapp:main' into mstable/save 2022-02-14 12:35:18 +01:00
Tianjie Wei
ffbdafbbc2 Migrating tests to typescript 2022-02-02 10:22:30 -08:00
Tianjie Wei
f5ac85692e Merge branch 'main' into notional-v2 2022-02-02 09:07:02 -08:00
weitianjie2000
4dd1d14f01
Fixing static analysis errors (#3) 2022-01-31 19:23:43 -08:00
weitianjie2000
f39fa90327
Migrating Notional v2 connector tests (#2)
* Migrating tests

* Adding more tests

* Adding more tests and helper functions

* Adding more tests

* Cleaning up
2022-01-31 13:04:27 -08:00
Thrilok kumar
7823f8299e
Merge pull request #138 from Instadapp/feat/quickswap-fix
updated sushi-incentive connector
2022-01-30 21:12:09 +05:30
Thrilok kumar
89e88c873d
Merge pull request #125 from pangolindex/main
Added Pangolin Connector
2022-01-27 18:38:20 +05:30
Thrilok kumar
109da23bac
Merge pull request #147 from Instadapp/feat/sushiswap
Sushiswap connector
2022-01-27 18:35:35 +05:30
Dimitri
571a69ea3c chore: add stores 2022-01-27 19:34:47 +07:00
Dimitri
9c83fd0924 chore: clean up 2022-01-24 22:55:44 +07:00
Thrilok kumar
a2da523c19
Merge pull request #161 from Instadapp/uniswapv3Router-polygon
Uniswapv3 Router [Polygon]
2022-01-21 01:58:56 +05:30
bhavik-m
1c741889d1 testcases 2022-01-20 23:15:20 +05:30
bhavik-m
b47efe271c added test and minor fix 2022-01-17 01:25:55 +05:30
Thrilok Kumar
b10d346103 minor change 2022-01-17 00:57:37 +05:30
Thrilok Kumar
43a40a11bb code refactoring 2022-01-17 00:56:38 +05:30
bhavik-m
4f7ccc5efa added uniswap router connector 2022-01-16 23:03:25 +05:30
bhavik-m
731cb2162d updated test and contract 2022-01-16 21:54:44 +05:30
bhavik-m
e8407f72e8 fix testcase 2022-01-15 20:07:32 +05:30
Thrilok Kumar
c790d683d3 minor changes 2022-01-14 19:38:35 +05:30
Thrilok Kumar
b74ae7b1ef Fixed uniswap v3 router test case 2022-01-14 19:14:54 +05:30
bhavik-m
946503b531 minor fix 2022-01-14 02:34:57 +05:30
bhavik
2ceebccfbd add tests 2022-01-14 02:04:23 +05:30
Pedro
7884bb31e0 Add Pangolin Stake Connector and Tests
Resolve errors

Resolve review issues

Fix comment

Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>

Added NatSpec to Staking Connector

Fix NatSpecs
2022-01-11 15:33:26 -04:00
Pedro
358b9bfebb Added Pangolin Exchange Connector
Fixed Contract

Add: test to Pangolin connector

Fix InstaDapp Addresses/Scripts/PNG Connector

Removed unnecessary scripts

Moved PNG connector contract and Connector tests
2022-01-11 15:32:56 -04:00
0xBhavik
f712c84528
Merge branch 'main' into feat/sushiswap 2022-01-11 17:15:24 +05:30
Thrilok kumar
bcc4862d70
Merge pull request #127 from Instadapp/feat/0x
Feat/0x
2022-01-10 17:16:49 +05:30
Thrilok kumar
550049e0c9
Merge branch 'main' into feat/paraswap 2022-01-08 15:56:23 +05:30
0xPradyuman
e35b3d41e3
Merge branch 'main' into feat/0x 2022-01-06 12:38:27 +05:30
pradyuman-verma
e0b1658081
added sushiswap avalanche tests 2022-01-06 00:05:17 +05:30
pradyuman-verma
aeae64a15f
sushiswap arbitrum tests 2022-01-05 23:50:16 +05:30
pradyuman-verma
a0a3342c82
sushiswap polygon tests 2022-01-05 23:44:46 +05:30
Dimitri
531ac64ba5 chore: consolidate functions to deposit and swap 2022-01-02 15:28:40 +07:00
bhavik mehta
ac3ef0f071 changed contract name 2022-01-01 17:18:13 +05:30
Dimitri
b8fc97f6c0 chore: cleanup 2021-12-30 17:43:37 +07:00
Dimitri
f354f2112a chore: add mainnet tests 2021-12-30 17:43:22 +07:00
Dimitri
972b8a8ebb wip: add swap tests 2021-12-30 16:22:24 +07:00
Dimitri
ceb90406cd chore: add standadized functions 2021-12-30 16:21:54 +07:00
bhavik
a48ab3c0b3 tests: minor fixes 2021-12-30 12:15:18 +05:30
Dimitri
14008b3bf9 wip: reward claim tests 2021-12-30 12:05:46 +07:00
bhavik
aa5d3c3f30 added testcases 2021-12-29 23:52:21 +05:30
Dimitri
e892220020 wip: withdraw tests 2021-12-29 20:06:43 +07:00
Dimitri
67004ca16d wip: deposit tests 2021-12-29 17:37:54 +07:00
bhavik
612980c52b updated-contract 2021-12-26 18:38:47 +05:30
pradyuman-verma
37f5fe5748
quickswap deployed update 2021-12-15 18:13:58 +05:30
pradyuman-verma
4f5fb523be
fixed quickswap tests 2021-12-15 17:52:53 +05:30
pradyuman-verma
99d9d17f23
updated sushi tests 2021-12-15 16:37:32 +05:30
pradyuman-verma
2a0a61f1e1 update 2021-12-15 00:54:54 +05:30
pradyuman-verma
95ed18984f added sushiswap tests 2021-12-13 21:17:28 +05:30
pradyuman-verma
aa98f91e02 Merge branch 'quickswap-fix' into feat/quickswap 2021-12-13 16:50:21 +05:30
bhavik
9b6c759ce8 updated-test 2021-12-13 16:19:13 +05:30
bhavik
aba4325ebe added-test 2021-12-13 16:19:02 +05:30
pradyuman-verma
7b8659b91c update 2021-12-13 15:51:06 +05:30
pradyuman-verma
4162176d96 Merge branch 'feat/quickswap' of https://github.com/Instadapp/dsa-connectors into feat/quickswap 2021-12-13 15:50:51 +05:30
pradyuman-verma
c7fc18143c added typescript support 2021-12-13 15:50:32 +05:30
pradyuman-verma
baa2200cf2 added quickswap testcases 2021-12-13 15:50:32 +05:30
cryptoDev222
650009f45e feat/implement sushiswap double incentive 2021-12-13 15:50:32 +05:30
cryptoDev222
102be3a91c implement sushi connector 2021-12-13 15:50:32 +05:30
pradyuman-verma
606f933eb7 updated ubiquity tests 2021-12-13 04:07:25 +05:30
zapaz.eth
4a7f1cc1d1 Merge branch 'main' into ubiquity 2021-12-12 21:20:08 +01:00
bhavik
d416e342ea fixed typo 2021-12-12 21:23:30 +05:30
pradyuman-verma
fe4d30aee8 updated tests 2021-12-12 19:41:43 +05:30
bhavik
25dc808012 Merge branch 'feat/0x' of github.com:Instadapp/dsa-connectors into feat/0x 2021-12-12 19:17:32 +05:30
bhavik
d2cb02aef3 updated polygon test 2021-12-12 19:15:11 +05:30
pradyuman-verma
1457ae2509 fixes 2021-12-12 19:01:49 +05:30
pradyuman-verma
2f6f66f640 fixed mainnet 0x test 2021-12-12 18:51:58 +05:30
bhavik
f6e147290b added test on polygon 2021-12-12 18:26:27 +05:30
bhavik
8798e36d1d fixed minor issue 2021-12-12 15:52:09 +05:30
bhavik
128b076c94 updated-test 2021-12-12 15:45:25 +05:30
bhavik
a5bb2e6a5a added-test 2021-12-12 00:20:22 +05:30
bhavik
29724c2fc8 updated-test 2021-12-11 19:48:50 +05:30
bhavik
0d44bd896a fixed typo 2021-12-11 15:46:32 +05:30
bhavik
a4c236ebeb added test 2021-12-11 15:46:32 +05:30
bhavik
19d8d85eaf added test for 0x 2021-12-11 15:46:32 +05:30
pradyuman-verma
6e7381056f updated scripts 2021-12-11 13:37:45 +05:30
pradyuman-verma
ec124db7a1 updated scripts 2021-12-11 13:37:45 +05:30
pradyuman-verma
06e5295533 updated scripts 2021-12-11 13:37:45 +05:30
pradyuman-verma
f8a812fb2f fixed liquidity test 2021-12-11 13:37:45 +05:30
pradyuman-verma
92b99247ea fixed tests 2021-12-11 13:37:45 +05:30
pradyuman-verma
46b0c02e18 updated test: multichain constants 2021-12-11 13:37:45 +05:30
pradyuman-verma
bd96a95853 update 2021-12-11 13:37:45 +05:30
pradyuman-verma
c2ccad9668 added test runner scripts + test cases fix 2021-12-11 13:37:45 +05:30
pradyuman-verma
2d594b0ad7 updated test cases + scripts + fixes 2021-12-11 13:37:45 +05:30
pradyuman-verma
5c275f3ad8 updated tests and scripts 2021-12-11 13:37:45 +05:30
pradyuman-verma
e4d39cbb31 update 2021-12-11 13:37:45 +05:30
pradyuman-verma
6f14a93e8a removed errors 2021-12-11 13:37:45 +05:30
Thrilok Kumar
65f3d3f9ac fixed ts types 2021-12-11 13:37:45 +05:30
pradyuman-verma
6863f08c5f segregated scripts 2021-12-11 13:37:45 +05:30
0xBhavik
280c03dae1 Testcases typescript (#124)
* initial commit

* converted testcases to ts

* Update test/mainnet/aave/v1.test.ts

Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>

* Update test/mainnet/aave/v1.test.ts

Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>

* Update test/mainnet/aave/v1.test.ts

Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>

* updated test

* updated-test

* removed typechain

Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>
2021-12-11 13:37:45 +05:30
pradyuman-verma
d7185bb6dd fix: initial commit for shift 2021-12-11 13:37:19 +05:30
pradyuman-verma
144df2d650
fix: removed mistakenly added sample folder 2021-11-21 12:50:14 +05:30
pradyuman-verma
c92d05bae0
test cases update 2021-11-20 17:57:45 +05:30
pradyuman-verma
c952949ded
final update 2021-11-20 16:00:56 +05:30
pradyuman-verma
86ea7dd608
update 2021-11-20 03:25:52 +05:30
pradyuman-verma
62899b3a6a
fix 2021-11-20 01:59:08 +05:30
pradyuman-verma
d96fae5728
added calculate pool address using tokens and fee 2021-11-20 00:13:17 +05:30
pradyuman-verma
060a35f723
fixes 2021-11-19 21:24:42 +05:30
pradyuman-verma
4fadaa0515
minor fix 2021-11-19 19:52:34 +05:30
pradyuman-verma
90ff0eedf0
fix: minor 2021-11-19 14:02:48 +05:30
pradyuman-verma
d59c8e76ed
fix: minor 2021-11-19 14:02:18 +05:30
pradyuman-verma
ea3072e802
fix: minor 2021-11-19 13:59:07 +05:30
pradyuman-verma
faa1cc6b0f
fix 2021-11-19 02:06:41 +05:30
pradyuman-verma
4736e8dadc
feat: sample uniswap connector on arbitrum 2021-11-19 02:04:28 +05:30
Alain Papazoglou
684bc6acb9
Merge branch 'main' into ubiquity 2021-11-02 09:29:42 +01:00
Thrilok kumar
2d186feb6f
Merge pull request #93 from eccheung4/pooltogether-connector-polygon
Pooltogether Polygon connector
2021-10-21 00:02:57 +05:30
zapaz.eth
a7ef817d95 improvments 2021-10-16 11:40:18 +02:00
zapaz.eth
dffd14c2fe add withdraw functionnality 2021-10-16 11:21:41 +02:00
eccheung4
5224f45d5c fix: update test for renaming of ConnectV2PoolTogetherPolygon 2021-10-12 06:16:25 -07:00
Thrilok kumar
3334476544
Merge pull request #73 from eccheung4/pooltogether-connector
PoolTogether connector
2021-10-12 14:44:47 +05:30
zapaz.eth
a12320f8fd ubiquity connector after rebase main 2021-10-11 18:47:51 +02:00
eccheung4
4873bbf25f fix: update tests for polygon and use AAVE and USDC sponsor pool 2021-10-04 13:37:30 -07:00
eccheung4
220e826e01 fix: remove code for PODs 2021-09-29 07:38:03 -07:00
eccheung4
bbc690e13d initial: copy of files from mainnet connector 2021-09-29 07:35:12 -07:00
cryptoDev222
48cf6a02fe fix testcases 2021-09-29 00:19:30 -05:00
eccheung4
e28def660c feat: add claim() for Pod TokenDrop 2021-09-19 10:24:24 -07:00
cryptoDev222
a55585136e Merge branch 'feat/deploy-from-cmd' of https://github.com/Instadapp/dsa-connectors into feat/deploy-from-cmd 2021-09-17 14:45:19 -05:00
cryptoDev222
84075c39b6 feat: deploy connectors from cmd and minor fix on uniswap v3 connector 2021-09-17 14:44:09 -05:00
Thrilok kumar
f73472b920
Merge branch 'main' into feature/yearn-v2-connector 2021-09-11 18:51:16 +05:30
Thrilok kumar
28a0d67979
Merge pull request #72 from Instadapp/feat/ERC721-deposit/withdraw
Add ERC721 and ERC1155 connector
2021-09-11 13:42:42 +05:30
eccheung4
2705ab4ad9 Fix: Add convertEthToWeth logic for WETH PrizePools 2021-09-09 16:32:24 -07:00
cryptoDev222
cf53215d13 refactor: minor fixes 2021-09-07 15:20:19 -05:00
cryptoDev222
9142035f1f Merge branch 'feat/uniswap-staker' of https://github.com/Instadapp/dsa-connectors into feat/uniswap-staker 2021-09-07 14:36:34 -05:00
cryptoDev222
a2717f0853 refactor: minor fixes 2021-09-07 14:35:46 -05:00
Thrilok Kumar
331e016638 Merge branch 'main' into feat/uniswap-staker 2021-09-07 23:44:47 +05:30
Thomas Bouder
bc80d780ec
👷 Update after review 2021-09-07 13:31:24 +02:00
Thomas Bouder
90b0a62f47
👷 Review update 2021-09-07 10:04:51 +02:00
eccheung4
0518a123fe Fix: use token address instead of prizePool address in depositToPod() 2021-09-02 22:57:08 -07:00
eccheung4
ac504364d9 Fix: Add maximumExitFee examples to test 2021-09-02 22:35:39 -07:00
eccheung4
3a052b9800 Fix: Remove referrer as it's not used 2021-09-02 13:43:23 -07:00
eccheung4
f9762d8dfc Fix: replace where relevant with address(this) 2021-09-02 10:35:02 -07:00
cryptoDev222
1252c0f427 refactor: minor fixes and implement ETH-INST pool test 2021-09-02 03:09:09 -05:00
eccheung4
a8ad815814 Clean up code a bit 2021-08-31 17:19:15 -07:00
eccheung4
3207bdd3b0 Fix uniswap LP test 2021-08-31 09:57:45 -07:00
cryptoDev222
d39dc1d509 feat: implement ERC721/1155 testcase 2021-08-31 11:17:03 -05:00
cryptoDev222
453848c7f5 feat: ERC721 test case 2021-08-31 09:41:31 -05:00
Edwin Cheung
e7788adac9
Merge branch 'main' into pooltogether-connector 2021-08-29 22:07:30 -07:00
Thomas Bouder
f323508f7f
Merge branch 'main' into feature/yearn-v2-connector 2021-08-29 19:01:03 +02:00
Thrilok kumar
4c2fb6efca
Merge pull request #68 from Instadapp/feat/uniswap-v3-connector
Uniswap v3 connector
2021-08-29 22:19:26 +05:30
eccheung4
c797730f96 Add claimed amount for setId in claim function and event 2021-08-28 16:01:15 -07:00
eccheung4
8748fc3734 Add test for Uniswap POOL LP PrizePool and Faucet, update hardhat fork blockNumber 2021-08-28 10:34:55 -07:00
Edwin Cheung
e3ddf057cf
Merge branch 'Instadapp:main' into pooltogether-connector 2021-08-27 10:19:54 -07:00
cryptoDev222
c26e01a72b refactor: improve test case 2021-08-25 16:26:43 -05:00
cryptoDev222
509d2cf3bd refactor: fix deposit/withdraw function 2021-08-24 14:56:55 -05:00
cryptoDev222
30eb39378f implement uniswap v3 staker 2021-08-24 14:04:17 -05:00
Thomas Bouder
81a50e969d
Add new Yearn vault connector 2021-08-23 23:35:06 +02:00
yaron velner
ed791eba47 b.liquity 2021-08-23 13:06:49 +03:00
yaronvel
7ced8a1279
Merge branch 'Instadapp:main' into main 2021-08-23 10:57:44 +03:00
cryptoDev222
2c1bbf6c36 feat: fix uniswap v3 test script 2021-08-20 16:33:54 -05:00
eccheung4
7ea00d7d03 Add depositToPod and withdrawFromPod functions 2021-08-18 21:58:00 -07:00
eccheung4
6ab5a1ef3e Merge branch 'main' into pooltogether-connector 2021-08-13 14:38:55 -07:00
cryptoDev222
04a26554b7 fix issues 2021-08-12 17:12:11 -05:00
cryptoDev222
77bcdb8049 testcase script file and case tokenID 0 2021-08-12 10:44:34 -05:00
eccheung4
bf80497bb2 Add claimAll function 2021-08-11 15:36:57 -07:00
Thrilok Kumar
553dc995e9 Fix test case 2021-08-12 00:41:28 +05:30
cryptoDev222
251092e020 initial uniswap testcase 2021-08-11 08:52:01 -05:00
Edward Mulraney
56b101f2f9 handle repayments in adjust() and upate tests 2021-08-10 11:18:32 +01:00
eccheung4
8d9600b3b2 Add TokenFaucet and claim function 2021-08-05 10:56:02 -07:00
Edward Mulraney
e999422c59 Merge branch 'main' of github.com:liquity/dsa-connectors 2021-07-12 10:25:52 +01:00
yaron velner
8a70ccddff hardhat contracts instead of web3 contracts in test 2021-07-06 11:42:25 +03:00
yaron velner
2fac6a94ff close test 2021-07-06 11:26:32 +03:00
yaron velner
6fa171df23 deposit and borrow test 2021-07-06 09:17:12 +03:00
yaron velner
07705981d6 basic b.makerdao tests 2021-07-06 00:08:32 +03:00
yaron velner
e892d52c51 b.compound 2021-07-05 21:58:51 +03:00
eccheung4
1de8b7d5b3 Add some comments 2021-07-05 09:30:43 -07:00
eccheung4
8702de7dd1 WIP: Withdrawal Working 2021-07-05 06:52:20 -07:00
eccheung4
aa6e61a6d7 WIP: Deposit test seems to be working 2021-07-03 23:55:45 -07:00
Edward Mulraney
7ef923929c fix broken tests from instadapp PR 2021-06-30 17:16:05 +01:00
Edward Mulraney
003ef06887 Merge branch 'main' of github.com:Instadapp/dsa-connectors 2021-06-25 09:41:09 +01:00
Thrilok kumar
d26e38e7cd
Update instapool.test.js 2021-06-24 17:08:42 +05:30
Thrilok Kumar
1cce1fffea Added flashloan testcases 2021-06-24 16:58:01 +05:30
Edward Mulraney
4ea58ba50d log the eth and lqty gains from stability pool operations. general tidy up 2021-06-09 21:02:06 +01:00
Edward Mulraney
7588733d98 add tests to ensure getId/setIds all work 2021-06-08 16:57:36 +01:00
Edward Mulraney
5be5cb6866 include all gains from staking/stability-pool when performing operations on them 2021-06-04 15:55:04 +01:00
Edward Mulraney
97db94fe59 add test for instadapp event return values. address PR comments:
- add setUints to all applicable functions
    - use uint256 rather than uint for event data
2021-06-04 12:18:16 +01:00
Daksh Miglani
678fd641fb test: 💍 add aave v1 and v2 tests 2021-06-04 16:17:41 +05:30
Edward Mulraney
a1203c66ae add liquity connector 2021-06-01 15:50:52 +01:00