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

Mainnet presets progress #11

Merged
merged 190 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
5a68130
more greenlistings
jfschwarz Sep 19, 2022
6091148
update harvesters
jfschwarz Sep 30, 2022
627adeb
whitelist some curve transactions
jfschwarz Sep 30, 2022
e701712
make scripts windows compatible
jfschwarz Sep 30, 2022
ac0af72
add santi test env
jfschwarz Sep 30, 2022
bc96f90
change way ERC20 approvals are defined in presets
jfschwarz Oct 6, 2022
7ce7070
initial draft for curve permission tooling
jfschwarz Oct 20, 2022
c06140c
curve regular pool (work by Santi & Nico)
jfschwarz Oct 27, 2022
f6541a0
added allowRegularPool and updated pool.ts and types.ts
sgzerbo Oct 27, 2022
51dc33d
wip
jfschwarz Oct 28, 2022
bf24f6f
some fixes
jfschwarz Oct 28, 2022
42b5cc1
some more fixes
jfschwarz Oct 28, 2022
467e292
Merge branch 'mainnet-presets-progress-curve' into mainnet-presets-pr…
jfschwarz Oct 28, 2022
71e42c5
adjust presets to new API
jfschwarz Oct 28, 2022
3ef49dd
adjust preset filling implementation
jfschwarz Oct 31, 2022
c48c019
Merge branch 'mainnet-presets-progress-curve' of github.com:gnosis/zo…
sgzerbo Oct 31, 2022
d57d82c
Added allowFactoryPool and allowLido
sgzerbo Oct 31, 2022
a1c3e87
implement parameter merging
jfschwarz Nov 1, 2022
1e139d2
Merge branch 'mainnet-presets-progress-curve' into mainnet-presets-pr…
jfschwarz Nov 1, 2022
b5c0c1f
adjust curve factory helper to new api
jfschwarz Nov 1, 2022
1d65866
fixed some syntax and typing errors
jfschwarz Nov 1, 2022
ce3dab4
more fixes and refactorings for curve pool helpers
jfschwarz Nov 1, 2022
63e8447
adjust lido helper to new api
jfschwarz Nov 1, 2022
e903325
test mainnet preset
sgzerbo Nov 1, 2022
60b6c17
rename
jfschwarz Nov 1, 2022
10cbb7f
fix subgraph urls
jfschwarz Nov 1, 2022
d51f83a
Added Rocket Pool and fixed bug in Lido
sgzerbo Nov 3, 2022
b96f0e7
Added Aura helper functions and fixes
sgzerbo Nov 15, 2022
e474052
Format changes
sgzerbo Nov 15, 2022
ca4300d
improve typing of aura and curve helpers
jfschwarz Nov 16, 2022
1643e3a
Fixed bug
sgzerbo Nov 18, 2022
11d5b51
Added Balancer preset
sgzerbo Dec 13, 2022
604d2c9
added subsetOf helper
jfschwarz Dec 14, 2022
484bcbd
added a failing test
jfschwarz Dec 14, 2022
fedd0cf
fix encoding of dynamic values
jfschwarz Dec 14, 2022
69ff4bf
fix test
jfschwarz Dec 14, 2022
906fcc3
implement typed preset sdk
jfschwarz Dec 20, 2022
d00485a
preserve param names
jfschwarz Dec 20, 2022
1bb42cf
small reorg
jfschwarz Dec 20, 2022
adf54ea
support placeholders
jfschwarz Dec 21, 2022
0908403
typesafe placeholders
jfschwarz Dec 21, 2022
42864e0
also export eth-sdk contracts
jfschwarz Dec 21, 2022
05fe31b
define balancer preset using new typed allow functions
jfschwarz Dec 21, 2022
ca97eec
fix function fragment lookup
jfschwarz Dec 22, 2022
7fcfa84
update allow entire contract api
jfschwarz Dec 22, 2022
67a9950
fix some bugs
jfschwarz Dec 22, 2022
5c80724
fully migrate to new placeholder format
jfschwarz Dec 23, 2022
8a708cd
Updated Balancer preset
sgzerbo Dec 28, 2022
6dafc54
Fixed bugs in Balancer preset
sgzerbo Dec 29, 2022
0a14d92
Fixed bugs in Balancer preset
sgzerbo Dec 29, 2022
d1c8283
finalize new preset API
jfschwarz Jan 3, 2023
9758c36
update deps, fix allow types for latest typechain version
jfschwarz Jan 3, 2023
ffca279
fix karpatkey scripts
jfschwarz Jan 3, 2023
4486cc8
fix placeholder value encoding
jfschwarz Jan 4, 2023
99e2133
fix all remaining issues
jfschwarz Jan 4, 2023
3bd1d7f
Merge branch 'mainnet-presets-progress' into typed-presets
jfschwarz Jan 4, 2023
71e1847
use new types sdk helpers for balancer preset
jfschwarz Jan 4, 2023
78a4d66
fix an issue
jfschwarz Jan 4, 2023
7773f7e
Balancer production presets
sgzerbo Jan 6, 2023
8c5b4bb
Fixes in Balancer presets
sgzerbo Jan 7, 2023
2cbd4d8
ENS preset
sgzerbo Jan 7, 2023
b566252
Fix in Lido helper
sgzerbo Jan 7, 2023
f8850a6
Balancer alternative preset
sgzerbo Jan 7, 2023
a04c9ba
Added some comments
sgzerbo Jan 7, 2023
3685f78
Progress in ENS preset
sgzerbo Jan 7, 2023
2ff8cce
Progress in ENS preset
sgzerbo Jan 8, 2023
a0fada6
WIP: more specific types for primitive value scopings
jfschwarz Jan 9, 2023
46f3e17
adjust balancer simulation test
jfschwarz Jan 9, 2023
d6bdc9c
add some test cases for balancer preset
jfschwarz Jan 9, 2023
2dbd090
fix a diffing issue when applying preset updates
jfschwarz Jan 9, 2023
66931ab
Added SushiSwap swaps
sgzerbo Jan 9, 2023
fef60bd
Updated tests
sgzerbo Jan 9, 2023
3f361c4
Updated tests
sgzerbo Jan 9, 2023
6e48ddf
Updated ENS presets
sgzerbo Jan 9, 2023
9962a0f
Added the swapping of WETH in UniV3
sgzerbo Jan 9, 2023
5d378e5
fix a preset function merging issue
jfschwarz Jan 10, 2023
94cc01c
upgrade hardhat
jfschwarz Jan 10, 2023
be4c3a8
add template for .env file
jfschwarz Jan 10, 2023
cbe3bf6
Tweaks to defiManagerBalancer1.ts and added tests to balancer1Manager.ts
nledo Jan 11, 2023
27f0488
Tweaks to defiManagerBalancer1.ts and added tests to balancer1Manager.ts
nledo Jan 11, 2023
2fc8c17
wip: add balancer vault swap
jfschwarz Jan 11, 2023
9ca0ebd
fix balancer swap permissions
jfschwarz Jan 11, 2023
41fc29a
balancer1Manage.ts finished and running with no errors
nledo Jan 11, 2023
54529dd
add some failing test transactions
jfschwarz Jan 12, 2023
319da22
Balancer and ENS presets finished and running with no errors. Updated…
nledo Jan 12, 2023
64a09bc
Updated swap presets
sgzerbo Jan 13, 2023
0cda389
Removed SushiSwap from deFiManageBalancer1.ts, deFiManageBalancer1.ts…
nledo Jan 13, 2023
e71a1e7
Updated Balancer preset
sgzerbo Jan 18, 2023
16444f1
Fix Lido referral addres in Balancer preset
sgzerbo Jan 18, 2023
5f175ab
Balancer preset updated
sgzerbo Jan 19, 2023
6c19ee1
Updated ENS preset
sgzerbo Jan 20, 2023
a40d214
Update to Balancer and ENS test scripts
nledo Jan 25, 2023
899cde5
Added increaseLiquidity to ENS preset
sgzerbo Jan 26, 2023
86d8f65
Update to Balancer in order to whitelist exactInput() for token swapp…
nledo Feb 4, 2023
dfbb711
Update to Balancer in order to whitelist exactInputSingle() for token…
nledo Feb 6, 2023
2e10fac
Update to ENS in order to whitelist exactInputSingle() for token swap…
nledo Feb 6, 2023
7e7caf7
add verify script
jfschwarz Feb 9, 2023
9660518
Merge branch 'mainnet-presets-progress' of github.com:gnosis/zodiac-m…
jfschwarz Feb 9, 2023
396b4d7
Rollback to ENS original preset / Added swaps in 3pool / Update to EN…
nledo Feb 10, 2023
a4c3cc0
ENS preset update
sgzerbo Feb 14, 2023
fa47d17
Merge branch 'mainnet-presets-progress' of github.com:gnosis/zodiac-m…
jfschwarz Feb 15, 2023
41db302
Offset slot in Balancer swaps in ENS preset
sgzerbo Feb 21, 2023
b491c91
Merge branch 'mainnet-presets-progress' of github.com:gnosis/zodiac-m…
jfschwarz Feb 28, 2023
ab8c90d
sdk: yarn config
jfschwarz Feb 28, 2023
3a9ce66
Aura whitelisting for GnosisDAO
nledo Feb 28, 2023
34f077b
Merge branch 'mainnet-presets-progress' into typed-presets
jfschwarz Mar 1, 2023
6a38b54
don't use any of the allow kit functions yet to avoid interfering wit…
jfschwarz Mar 1, 2023
f090827
Merge branch 'mainnet-presets-progress' into typed-presets
jfschwarz Mar 1, 2023
b350da7
migrate new preset
jfschwarz Mar 1, 2023
1689189
Merge pull request #169 from gnosis/typed-presets
jfschwarz Mar 1, 2023
6519c73
Added/Modified Gnosis Presets
nledo Mar 10, 2023
d1646ab
Added/Modified Gnosis Presets and Fixes (ENS Preset
nledo Mar 13, 2023
8a275e9
Continue with Gnosis Presets
nledo Mar 16, 2023
1a1d96b
Continue with Gnosis Presets and fixed some checks
nledo Mar 17, 2023
b85b4a4
Continue with Gnosis DAO preset in GC
nledo Mar 20, 2023
fdab7ae
Finished with v1 of Gnosis DAO preset in GC
nledo Mar 21, 2023
76ea275
Added allowErc20Revoke
nledo Mar 21, 2023
b646dcd
Refactored deFiManagerGnosisLTD.ts
nledo Mar 21, 2023
dfc8577
Gnosis Presets commands
nledo Mar 22, 2023
b01fe13
fix default provider issue
jfschwarz Mar 22, 2023
c3ed663
General refactoring
nledo Mar 22, 2023
1e220e8
Continue refactoring and Gnosis presets
nledo Mar 27, 2023
015fd1c
More refactoring / Gnosis presets
nledo Mar 30, 2023
f0b72d7
Bug after refactoring
nledo Mar 31, 2023
668d710
safeguard against exploding subsets
jfschwarz Mar 31, 2023
eb4f370
Fixed memory leak bug with Jan's help :)
nledo Mar 31, 2023
97961c4
Merge branch 'mainnet-presets-progress' of https://github.com/gnosis/…
nledo Mar 31, 2023
dca637e
Finished with v1 of Gnosis Presets and new versions of ENS and Balanc…
nledo Mar 31, 2023
f761603
Fixes and Corrections to the presets
nledo Apr 5, 2023
7d515be
Typed presets for ENS and Balancer
nledo Apr 10, 2023
1915f8c
Gnosis Presets Update
nledo Apr 12, 2023
445d87f
Directory for presets and Fix to DAO and LTD in gno
nledo Apr 17, 2023
b82ff23
Fix ENS test transactions
jfschwarz Apr 18, 2023
60a2fbe
Fix to Convex in DAO and LTD in mainnet
nledo Apr 18, 2023
7372d7f
Merge branch 'mainnet-presets-progress' of https://github.com/gnosis/…
nledo Apr 18, 2023
86cbb69
Update in Aura for DAO and LTD in mainnet
nledo Apr 19, 2023
a80ea12
EOAs update for Gnosis Safes in mainnet
nledo Apr 25, 2023
f2a3b6f
Added CompoundV3 to GnosisDAO and GnosisLTD presets
nledo Apr 26, 2023
d660643
Added CompoundV3 to GnosisDAO and GnosisLTD presets
nledo Apr 27, 2023
93cec45
Fixes to GnosisDAO and GnosisLTD presets
nledo Apr 27, 2023
17b70b0
Added bribe txs to GnosisDAO
nledo May 3, 2023
f55215b
Update to ENS / Fixes to GnosisDAO and LTD in GC and mainnet
nledo May 8, 2023
da5ce24
Update to ENS with AaveV3 and some fixes
nledo May 9, 2023
e662415
Updated directory structure for txData output
sgzerbo May 18, 2023
bad2c76
Updated directory structure for txData output
sgzerbo May 18, 2023
b36a6ad
Update in ENS Manager Preset
sgzerbo May 19, 2023
41b94e4
ENS preset update
sgzerbo May 22, 2023
152ba03
ENS preset update
sgzerbo May 29, 2023
7367f9f
Update to ENS preset and other fixes
nledo Jun 2, 2023
7c73ffb
Added Maker-DRS to ENS preset and started with Rocket Pool
nledo Jun 6, 2023
149a6e6
Updated ENS preset
nledo Jun 7, 2023
bf41104
Updated ENS preset and tests
nledo Jun 12, 2023
7a56f18
Fixes to ENS presets and Tests
nledo Jun 14, 2023
b0dea2b
Added withdrawals in Lido and tests for ENS preset
nledo Jun 16, 2023
c7dc83e
Small fixes to ENS preset
nledo Jun 21, 2023
12ef557
Added Sushiswap RouterV3 to ENS preset
nledo Jun 23, 2023
fa4c9dd
Comments in ENS preset
nledo Jul 4, 2023
fb3b855
Update to Balancer preset with new strategies
nledo Jul 12, 2023
6a5f9c5
Added Cowswap to ENS and Balancer presets
nledo Jul 15, 2023
1af8cca
Updated tests for ENS and Balancer
nledo Jul 17, 2023
5ca731d
GnosisDAO preset update and Spark bot
nledo Jul 28, 2023
6c18dff
Delegate Call Cowswap Order Signer
nledo Aug 9, 2023
60be5c7
Update ENS v3 preset / Preset Versioning / Aura Exit Strategies Helpers
nledo Aug 30, 2023
bb4f1db
simulate delegatecall
jfschwarz Aug 31, 2023
c22b1fa
patch current roles and test on mainnet fork
jfschwarz Aug 31, 2023
0a3ea49
fixes
jfschwarz Sep 1, 2023
5e80928
Balancer v3 preset / GnosisDAO Disassemble
nledo Sep 6, 2023
e0bab53
Balancer v3 preset / GnosisDAO Disassemble
nledo Sep 6, 2023
5503ee0
Test payloads for Balancer and Maker
nledo Sep 28, 2023
0a778b7
Test Payload for Maker
nledo Sep 30, 2023
05b87ec
ENS preset v4 and started with Tests
nledo Oct 5, 2023
11084cd
ENS preset v4 tests finished
nledo Oct 6, 2023
edfdcbc
ENS preset v4 and test minor fixes
nledo Oct 9, 2023
3c4e3e7
try to fix typing
jfschwarz Oct 11, 2023
afbe02d
ENS and Balancer preset updates
nledo Oct 12, 2023
08446df
add statisLessThan to utils
nledo Oct 12, 2023
5cb11f2
Update Balancer preset v3 and ENS preset v4
nledo Oct 18, 2023
a264113
Balancer preset v3 and ENS preset v4 final
nledo Oct 19, 2023
3f7b5c1
Fix to Balancer preset v3 final
nledo Oct 23, 2023
64bebc2
Removed Sushi from ENS preset v4
nledo Nov 3, 2023
282ab34
Lido Exit Strategies
nledo Nov 6, 2023
f94cfa4
Antiliquidation and Swap Roles for GnosisDAO
nledo Nov 8, 2023
d742224
Added some tests for Gnosis Chain
nledo Nov 17, 2023
c13f031
Test Safe Preset
nledo Nov 24, 2023
2e6eab5
Add Cowswap Order Signer to ENS and Balancer
nledo Dec 4, 2023
e2df484
Updated Cowswap Order Signer in GC
nledo Dec 6, 2023
87890a1
Updated Disassemble presets for GnosisDAO and GnosisLTD
nledo Dec 13, 2023
794e3fe
Merge branch 'main' into mainnet-presets-progress
jfschwarz Jan 10, 2024
c29da4a
cleanup
jfschwarz Jan 11, 2024
e8b394b
payload for kpk PBA
nledo Jan 17, 2024
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
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.tsdk": "packages/sdk/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
Expand Down
8 changes: 8 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";

const config: HardhatUserConfig = {
solidity: "0.8.17",
};

export default config;
1 change: 1 addition & 0 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@types/styled-components": "^5.1.12",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"cpy-cli": "^4.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-flowtype": "^5.7.2",
Expand Down
304 changes: 300 additions & 4 deletions packages/app/yarn.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"fmt": "yarn fmt:sol && yarn fmt:ts",
"fmt:sol": "prettier 'contracts/**/*.sol' -w",
"fmt:ts": "prettier '(test|src)/**/*.ts' -w",
"verify": "hardhat run src/scripts/verify.ts --network",
"prepack": "yarn build",
"pre-commit": "yarn lint && yarn fmt"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/sdk/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MNEMONIC=
INFURA_KEY=
ETHERSCAN_API_KEY=
9 changes: 9 additions & 0 deletions packages/sdk/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,14 @@ module.exports = {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
vars: "all",
args: "after-used",
ignoreRestSiblings: true,
varsIgnorePattern: "^_",
},
],
},
}
4 changes: 3 additions & 1 deletion packages/sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
./txData.json
./txData.json
.yarn/cache
.yarn/install-state.gz
Loading
Loading