@defisaver/sdk 0.1.8 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/ACTIONS.md +236 -19
  2. package/AccessLists/AaveAccessLists.js +28 -0
  3. package/AccessLists/BalancerAccessLists.js +20 -0
  4. package/AccessLists/CompoundAccessLists.js +33 -0
  5. package/AccessLists/DyDxAccessLists.js +14 -0
  6. package/AccessLists/FlashLoanAccessLists.js +27 -0
  7. package/AccessLists/GuniAccessLists.js +15 -0
  8. package/AccessLists/InstaAccessLists.js +17 -0
  9. package/AccessLists/LidoAccessLists.js +21 -0
  10. package/AccessLists/LiquityAccessLists.js +81 -0
  11. package/AccessLists/MStableAccessLists.js +18 -0
  12. package/AccessLists/MakerAccessLists.js +44 -0
  13. package/AccessLists/RariAccessLists.js +12 -0
  14. package/AccessLists/ReflexerAccessLists.js +53 -0
  15. package/AccessLists/UniswapAccessLists.js +41 -0
  16. package/AccessLists/UtilsAccessLists.js +41 -0
  17. package/AccessLists/YearnAccessLists.js +14 -0
  18. package/AccessLists/index.js +41 -0
  19. package/DEV.md +36 -0
  20. package/package.json +1 -1
  21. package/src/Action.js +18 -2
  22. package/src/Recipe.js +22 -0
  23. package/src/actions/aave/index.js +0 -2
  24. package/src/actions/basic/AutomationV2Unsub.js +2 -2
  25. package/src/actions/flashloan/BalancerFlashLoanAction.js +2 -2
  26. package/src/actions/flashloan/BalancerFlashLoanPaybackAction.js +2 -2
  27. package/src/actions/flashloan/MakerFlashLoanPaybackAction.js +2 -2
  28. package/src/actions/guni/GUniDeposit.js +43 -0
  29. package/src/actions/guni/GUniWithdraw.js +32 -0
  30. package/src/actions/guni/index.js +6 -0
  31. package/src/actions/index.js +6 -0
  32. package/src/actions/mstable/MStableClaimAction.js +38 -0
  33. package/src/actions/mstable/MStableDepositAction.js +63 -0
  34. package/src/actions/mstable/MStableWithdrawAction.js +66 -0
  35. package/src/actions/mstable/index.js +9 -0
  36. package/src/actions/rari/RariDepositAction.js +31 -0
  37. package/src/actions/rari/RariWithdrawAction.js +33 -0
  38. package/src/actions/rari/index.js +6 -0
  39. package/src/addresses.js +16 -2
  40. package/src/types.js +11 -0
  41. package/test/accessLists/MockAccessLists.json +1482 -0
  42. package/test/accessLists/Recipe.js +126 -0
  43. package/test/accessLists/access-lists.js +108 -0
  44. package/src/actions/aave/AaveMigrateLendAction.js +0 -18
package/ACTIONS.md CHANGED
@@ -10,9 +10,6 @@
10
10
  <dt><a href="#AaveCollateralSwitchAction">AaveCollateralSwitchAction</a></dt>
11
11
  <dd><p>AaveCollateralSwitchAction - Aave enable/disable token usage as collateral</p>
12
12
  </dd>
13
- <dt><a href="#AaveMigrateLendAction">AaveMigrateLendAction</a></dt>
14
- <dd><p>AaveMigrateLendAction - Migrates Lend to Aave</p>
15
- </dd>
16
13
  <dt><a href="#AavePaybackAction">AavePaybackAction</a></dt>
17
14
  <dd><p>AavePaybackAction - Payback borrowed tokens from Aave</p>
18
15
  </dd>
@@ -86,15 +83,39 @@
86
83
  <dt><a href="#AaveV2FlashLoanPaybackAction">AaveV2FlashLoanPaybackAction</a></dt>
87
84
  <dd><p>Pays back a single flashloan from Aave v2</p>
88
85
  </dd>
86
+ <dt><a href="#BalancerFlashLoanAction">BalancerFlashLoanAction</a></dt>
87
+ <dd><p>Gets a flashloan from Balancer</p>
88
+ </dd>
89
+ <dt><a href="#BalancerFlashLoanPaybackAction">BalancerFlashLoanPaybackAction</a></dt>
90
+ <dd><p>Pays back a flashloan from Balancer</p>
91
+ </dd>
89
92
  <dt><a href="#DyDxFlashLoanAction">DyDxFlashLoanAction</a></dt>
90
93
  <dd><p>Gets a flashloan from DyDx</p>
91
94
  </dd>
92
95
  <dt><a href="#DyDxFlashLoanPaybackAction">DyDxFlashLoanPaybackAction</a></dt>
93
96
  <dd><p>Pays back a flashloan from DyDx</p>
94
97
  </dd>
98
+ <dt><a href="#MakerFlashLoanAction">MakerFlashLoanAction</a></dt>
99
+ <dd><p>Gets a flashloan from Maker</p>
100
+ </dd>
101
+ <dt><a href="#MakerFlashLoanPaybackAction">MakerFlashLoanPaybackAction</a></dt>
102
+ <dd><p>Pays back a flashloan from Maker</p>
103
+ </dd>
104
+ <dt><a href="#GUniDeposit">GUniDeposit</a></dt>
105
+ <dd><p>Action that adds liquidity to G-UNI pool of interest (mints G-UNI LP tokens)</p>
106
+ </dd>
107
+ <dt><a href="#GUniWithdraw">GUniWithdraw</a></dt>
108
+ <dd><p>Action that removes liquidity from a G-UNI pool and burns G-UNI LP tokens</p>
109
+ </dd>
95
110
  <dt><a href="#LidoStakeAction">LidoStakeAction</a></dt>
96
111
  <dd><p>LidoStakeAction - Receives WETH, transforms it to ETH then sends it to Lido staking contract receiving stETH in return</p>
97
112
  </dd>
113
+ <dt><a href="#LidoUnwrapAction">LidoUnwrapAction</a></dt>
114
+ <dd><p>LidoUnwrapAction - Unwraps WStEth into StEth</p>
115
+ </dd>
116
+ <dt><a href="#LidoWrapAction">LidoWrapAction</a></dt>
117
+ <dd><p>LidoWrapAction - Turns WETH or StEth into WStEth</p>
118
+ </dd>
98
119
  <dt><a href="#LiquityBorrowAction">LiquityBorrowAction</a></dt>
99
120
  <dd><p>LiquityBorrowAction - Borrows LUSD from the trove</p>
100
121
  </dd>
@@ -161,6 +182,21 @@
161
182
  <dt><a href="#MakerWithdrawAction">MakerWithdrawAction</a></dt>
162
183
  <dd><p>MakerWithdrawAction - Withdraw token from a Vault</p>
163
184
  </dd>
185
+ <dt><a href="#MStableClaimAction">MStableClaimAction</a></dt>
186
+ <dd><p>MStableClaimAction</p>
187
+ </dd>
188
+ <dt><a href="#MStableDepositAction">MStableDepositAction</a></dt>
189
+ <dd><p>MStableDepositAction</p>
190
+ </dd>
191
+ <dt><a href="#MStableWithdrawAction">MStableWithdrawAction</a></dt>
192
+ <dd><p>MStableWithdrawAction</p>
193
+ </dd>
194
+ <dt><a href="#RariDepositAction">RariDepositAction</a></dt>
195
+ <dd><p>RariDepositAction - action that deposits one stablecoin (DAI, USDC, USDT, TUSD, BUSD, and sUSD) and receives RSPT back</p>
196
+ </dd>
197
+ <dt><a href="#RariWithdrawAction">RariWithdrawAction</a></dt>
198
+ <dd><p>RariWithdrawAction - Send pool tokens to fund manager which burns them, receive underlying stablecoin back</p>
199
+ </dd>
164
200
  <dt><a href="#ReflexerGenerateAction">ReflexerGenerateAction</a></dt>
165
201
  <dd><p>ReflexerGenerateAction - Generated Dai from a Safe</p>
166
202
  </dd>
@@ -244,21 +280,6 @@ AaveClaimStkAaveAction - Claims stkAave from incentives controller
244
280
  AaveCollateralSwitchAction - Aave enable/disable token usage as collateral
245
281
 
246
282
  **Kind**: global class
247
- <a name="AaveMigrateLendAction"></a>
248
-
249
- ## AaveMigrateLendAction
250
- AaveMigrateLendAction - Migrates Lend to Aave
251
-
252
- **Kind**: global class
253
- <a name="new_AaveMigrateLendAction_new"></a>
254
-
255
- ### new AaveMigrateLendAction(lendAmount, from, to)
256
- **Params**
257
-
258
- - lendAmount <code>string</code>
259
- - from <code>EthAddress</code>
260
- - to <code>EthAddress</code>
261
-
262
283
  <a name="AavePaybackAction"></a>
263
284
 
264
285
  ## AavePaybackAction
@@ -526,7 +547,7 @@ CompoundPaybackAction - Payback borrowed tokens from Compound
526
547
  - cTokenAddr <code>EthAddress</code>
527
548
  - amount <code>string</code> - Wei amount in underlying asset decimals (not cAsset) - ie. 18 dec for cETH, not 8
528
549
  - from <code>EthAddress</code>
529
- - onBehalf <code>Array.&lt;EthAddress&gt;</code>
550
+ - onBehalf <code>EthAddress</code> - Defaults to DsProxy address if 0x0
530
551
 
531
552
  <a name="CompoundSupplyAction"></a>
532
553
 
@@ -621,6 +642,36 @@ Pays back a single flashloan from Aave v2
621
642
  - loanAmount <code>string</code>
622
643
  - tokenAddr <code>EthAddress</code>
623
644
 
645
+ <a name="BalancerFlashLoanAction"></a>
646
+
647
+ ## BalancerFlashLoanAction
648
+ Gets a flashloan from Balancer
649
+
650
+ **Kind**: global class
651
+ <a name="new_BalancerFlashLoanAction_new"></a>
652
+
653
+ ### new BalancerFlashLoanAction(tokens, amounts, flParamGetterAddr, flParamGetterData)
654
+ **Params**
655
+
656
+ - tokens <code>Array.&lt;EthAddress&gt;</code>
657
+ - amounts <code>Array.&lt;string&gt;</code>
658
+ - flParamGetterAddr <code>EthAddress</code>
659
+ - flParamGetterData <code>bytes</code>
660
+
661
+ <a name="BalancerFlashLoanPaybackAction"></a>
662
+
663
+ ## BalancerFlashLoanPaybackAction
664
+ Pays back a flashloan from Balancer
665
+
666
+ **Kind**: global class
667
+ <a name="new_BalancerFlashLoanPaybackAction_new"></a>
668
+
669
+ ### new BalancerFlashLoanPaybackAction(loanAmount, tokenAddr)
670
+ **Params**
671
+
672
+ - loanAmount <code>string</code>
673
+ - tokenAddr <code>EthAddress</code>
674
+
624
675
  <a name="DyDxFlashLoanAction"></a>
625
676
 
626
677
  ## DyDxFlashLoanAction
@@ -651,6 +702,46 @@ Pays back a flashloan from DyDx
651
702
  - loanAmount <code>string</code>
652
703
  - tokenAddr <code>EthAddress</code>
653
704
 
705
+ <a name="MakerFlashLoanAction"></a>
706
+
707
+ ## MakerFlashLoanAction
708
+ Gets a flashloan from Maker
709
+
710
+ **Kind**: global class
711
+ <a name="new_MakerFlashLoanAction_new"></a>
712
+
713
+ ### new MakerFlashLoanAction(amount, flParamGetterAddr, flParamGetterData)
714
+ **Params**
715
+
716
+ - amount <code>string</code>
717
+ - flParamGetterAddr <code>EthAddress</code>
718
+ - flParamGetterData <code>bytes</code>
719
+
720
+ <a name="MakerFlashLoanPaybackAction"></a>
721
+
722
+ ## MakerFlashLoanPaybackAction
723
+ Pays back a flashloan from Maker
724
+
725
+ **Kind**: global class
726
+ <a name="new_MakerFlashLoanPaybackAction_new"></a>
727
+
728
+ ### new MakerFlashLoanPaybackAction(loanAmount)
729
+ **Params**
730
+
731
+ - loanAmount <code>string</code>
732
+
733
+ <a name="GUniDeposit"></a>
734
+
735
+ ## GUniDeposit
736
+ Action that adds liquidity to G-UNI pool of interest (mints G-UNI LP tokens)
737
+
738
+ **Kind**: global class
739
+ <a name="GUniWithdraw"></a>
740
+
741
+ ## GUniWithdraw
742
+ Action that removes liquidity from a G-UNI pool and burns G-UNI LP tokens
743
+
744
+ **Kind**: global class
654
745
  <a name="LidoStakeAction"></a>
655
746
 
656
747
  ## LidoStakeAction
@@ -666,6 +757,37 @@ LidoStakeAction - Receives WETH, transforms it to ETH then sends it to Lido stak
666
757
  - from <code>EthAddress</code> - WETH will be taken from this address
667
758
  - to <code>EthAddress</code> - stETH will be sent to this address
668
759
 
760
+ <a name="LidoUnwrapAction"></a>
761
+
762
+ ## LidoUnwrapAction
763
+ LidoUnwrapAction - Unwraps WStEth into StEth
764
+
765
+ **Kind**: global class
766
+ <a name="new_LidoUnwrapAction_new"></a>
767
+
768
+ ### new LidoUnwrapAction(amount, from, to)
769
+ **Params**
770
+
771
+ - amount <code>string</code> - amount of WStEth to pull and Unwrap
772
+ - from <code>EthAddress</code> - WstEth will be taken from this address
773
+ - to <code>EthAddress</code> - stETH will be sent to this address
774
+
775
+ <a name="LidoWrapAction"></a>
776
+
777
+ ## LidoWrapAction
778
+ LidoWrapAction - Turns WETH or StEth into WStEth
779
+
780
+ **Kind**: global class
781
+ <a name="new_LidoWrapAction_new"></a>
782
+
783
+ ### new LidoWrapAction(amount, from, to, useEth)
784
+ **Params**
785
+
786
+ - amount <code>string</code> - amount to pull and stake
787
+ - from <code>EthAddress</code> - tokens will be taken from this address
788
+ - to <code>EthAddress</code> - WStEth will be sent to this address
789
+ - useEth <code>boolean</code> - true for using WETH, false for using stEth
790
+
669
791
  <a name="LiquityBorrowAction"></a>
670
792
 
671
793
  ## LiquityBorrowAction
@@ -999,6 +1121,101 @@ MakerWithdrawAction - Withdraw token from a Vault
999
1121
  - to <code>EthAddress</code>
1000
1122
  - mcdManager <code>EthAddress</code>
1001
1123
 
1124
+ <a name="MStableClaimAction"></a>
1125
+
1126
+ ## MStableClaimAction
1127
+ MStableClaimAction
1128
+
1129
+ **Kind**: global class
1130
+ <a name="new_MStableClaimAction_new"></a>
1131
+
1132
+ ### new MStableClaimAction(vaultAddress, to, first, last)
1133
+ **Params**
1134
+
1135
+ - vaultAddress
1136
+ - to
1137
+ - first
1138
+ - last
1139
+
1140
+ <a name="MStableDepositAction"></a>
1141
+
1142
+ ## MStableDepositAction
1143
+ MStableDepositAction
1144
+
1145
+ **Kind**: global class
1146
+ <a name="new_MStableDepositAction_new"></a>
1147
+
1148
+ ### new MStableDepositAction(bAsset, mAsset, saveAddress, vaultAddress, from, to, amount, minOut, stake)
1149
+ **Params**
1150
+
1151
+ - bAsset
1152
+ - mAsset
1153
+ - saveAddress
1154
+ - vaultAddress
1155
+ - from
1156
+ - to
1157
+ - amount
1158
+ - minOut
1159
+ - stake
1160
+
1161
+ <a name="MStableWithdrawAction"></a>
1162
+
1163
+ ## MStableWithdrawAction
1164
+ MStableWithdrawAction
1165
+
1166
+ **Kind**: global class
1167
+ <a name="new_MStableWithdrawAction_new"></a>
1168
+
1169
+ ### new MStableWithdrawAction(bAsset, mAsset, saveAddress, vaultAddress, from, to, amount, minOut, stake)
1170
+ **Params**
1171
+
1172
+ - bAsset
1173
+ - mAsset
1174
+ - saveAddress
1175
+ - vaultAddress
1176
+ - from
1177
+ - to
1178
+ - amount
1179
+ - minOut
1180
+ - stake
1181
+
1182
+ <a name="RariDepositAction"></a>
1183
+
1184
+ ## RariDepositAction
1185
+ RariDepositAction - action that deposits one stablecoin (DAI, USDC, USDT, TUSD, BUSD, and sUSD) and receives RSPT back
1186
+
1187
+ **Kind**: global class
1188
+ <a name="new_RariDepositAction_new"></a>
1189
+
1190
+ ### new RariDepositAction(fundManager, stablecoinAddress, poolTokenAddress, amount, from, to)
1191
+ **Params**
1192
+
1193
+ - fundManager <code>EthAddress</code> - fundManager for the pool which we want to deposit into
1194
+ - stablecoinAddress <code>EthAddress</code> - stablecoin token address
1195
+ - poolTokenAddress <code>EthAddress</code> - poolTokenAddress
1196
+ - amount <code>string</code> - amount of stablecoin to pull and deposit
1197
+ - from <code>EthAddress</code> - stablecoins will be taken from this address
1198
+ - to <code>EthAddress</code> - RSPT will be sent to this address
1199
+
1200
+ <a name="RariWithdrawAction"></a>
1201
+
1202
+ ## RariWithdrawAction
1203
+ RariWithdrawAction - Send pool tokens to fund manager which burns them, receive underlying stablecoin back
1204
+
1205
+ **Kind**: global class
1206
+ <a name="new_RariWithdrawAction_new"></a>
1207
+
1208
+ ### new RariWithdrawAction(fundManager, poolTokenAddress, poolTokensAmountToPull, from, stablecoinAddress, stablecoinAmountToWithdraw, to)
1209
+ **Params**
1210
+
1211
+ - fundManager <code>EthAddress</code> - fundManager for the pool which we want to withdraw from
1212
+ - poolTokenAddress <code>EthAddress</code> - poolToken address
1213
+ - poolTokensAmountToPull <code>string</code> - amount of tokens to pull to proxy
1214
+ - from <code>EthAddress</code> - poolTokens will be taken from this address
1215
+ - stablecoinAddress <code>EthAddress</code> - stablecoin token address
1216
+ - stablecoinAmountToWithdraw <code>string</code> - amount of stablecoin to withdraw from Rari
1217
+ - to <code>EthAddress</code> - stablecoins withdrawn will be sent to this address
1218
+
1002
1219
  <a name="ReflexerGenerateAction"></a>
1003
1220
 
1004
1221
  ## ReflexerGenerateAction
@@ -0,0 +1,28 @@
1
+ const AaveAccessLists = {
2
+ AaveSupply: [
3
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
4
+ ],
5
+
6
+ AaveWithdraw: [
7
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
8
+ ],
9
+
10
+ AaveBorrow: [
11
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
12
+ ],
13
+
14
+ AavePayback: [
15
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
16
+ ],
17
+
18
+ AaveCollateralSwitch: [],
19
+
20
+ AaveClaimStkAave: [
21
+ ['0xd784927Ff2f95ba542BfC824c8a8a98F3495f6b5', []], // StakedTokenIncentivesController
22
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
23
+ ],
24
+ };
25
+
26
+ module.exports = {
27
+ AaveAccessLists,
28
+ };
@@ -0,0 +1,20 @@
1
+ const BalancerAccessLists = {
2
+ BalancerV2Supply: [
3
+ ['0xBA12222222228d8Ba445958a75a0704d566BF2C8', []], // Vault
4
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
5
+ ],
6
+
7
+ BalancerV2Withdraw: [
8
+ ['0xBA12222222228d8Ba445958a75a0704d566BF2C8', []], // Vault
9
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
10
+ ],
11
+
12
+ BalancerV2Claim: [
13
+ ['0x6d19b2bF3A36A61530909Ae65445a906D98A2Fa8', []], // MerkleRedeem
14
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
15
+ ],
16
+ };
17
+
18
+ module.exports = {
19
+ BalancerAccessLists,
20
+ };
@@ -0,0 +1,33 @@
1
+ const CompoundAccessLists = {
2
+ CompSupply: [
3
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
4
+ ],
5
+
6
+ CompWithdraw: [
7
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
8
+ ],
9
+
10
+ CompBorrow: [
11
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
12
+ ],
13
+
14
+ CompPayback: [
15
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
16
+ ],
17
+
18
+ CompCollateralSwitch: [
19
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
20
+ ],
21
+
22
+ CompGetDebt: [],
23
+
24
+ CompClaim: [
25
+ ['0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B', []], // Comptroller
26
+ ['0xc00e94Cb662C3520282E6f5717214004A7f26888', []], // Comp
27
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
28
+ ],
29
+ };
30
+
31
+ module.exports = {
32
+ CompoundAccessLists,
33
+ };
@@ -0,0 +1,14 @@
1
+ const DyDxAccessLists = {
2
+ DyDxSupply: [
3
+ ['0x1E0447b19BB6EcFdAe1e4AE1694b0C3659614e4e', []], // SoloMargin
4
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
5
+ ],
6
+ DyDxWithdraw: [
7
+ ['0x1E0447b19BB6EcFdAe1e4AE1694b0C3659614e4e', []], // SoloMargin
8
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
9
+ ],
10
+ };
11
+
12
+ module.exports = {
13
+ DyDxAccessLists,
14
+ };
@@ -0,0 +1,27 @@
1
+ const FlashLoanAccessLists = {
2
+ FLDyDx: [
3
+ ['0x1E0447b19BB6EcFdAe1e4AE1694b0C3659614e4e', []], // SoloMargin
4
+ ['0x47f159C90850D5cE09E21F931d504536840f34b4', []], // FLFeeFaucet
5
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
6
+ ],
7
+
8
+ FLAaveV2: [
9
+ ['0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9', []], // LendingPool
10
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
11
+ ],
12
+
13
+ FLMaker: [
14
+ ['0x1EB4CF3A948E7D72A198fe073cCb8C7a948cD853', []], // DssFlash
15
+ ['0x6B175474E89094C44Da98b954EedeAC495271d0F', []], // Dai
16
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
17
+ ],
18
+
19
+ FLBalancer: [
20
+ ['0xBA12222222228d8Ba445958a75a0704d566BF2C8', []], // Vault
21
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
22
+ ],
23
+ };
24
+
25
+ module.exports = {
26
+ FlashLoanAccessLists,
27
+ };
@@ -0,0 +1,15 @@
1
+ const GuniAccessLists = {
2
+ GUniDeposit: [
3
+ ['0x14E6D67F824C3a7b4329d3228807f8654294e4bd', []], // GuniRouter02
4
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
5
+ ],
6
+
7
+ GUniWithdraw: [
8
+ ['0x14E6D67F824C3a7b4329d3228807f8654294e4bd', []], // GuniRouter02
9
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
10
+ ],
11
+ };
12
+
13
+ module.exports = {
14
+ GuniAccessLists,
15
+ };
@@ -0,0 +1,17 @@
1
+ const InstaAccessLists = {
2
+ ClaimInstMaker: [
3
+ ['0x2971AdFa57b20E5a416aE5a708A8655A9c74f723', []], // InstaIndex
4
+ ['0x5ef30b9986345249bc32d8928B7ee64DE9435E39', []], // DssCdpManager
5
+ ['0xAC838332afc2937FdED89c16a59b2ED8e8e2743c', []], // InstaMakerDAOMerkleDistributor
6
+ ['0x6f40d4A6237C257fff2dB00FA0510DeEECd303eb', []], // InstaToken
7
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
8
+ ],
9
+
10
+ InstPullTokens: [
11
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
12
+ ],
13
+ };
14
+
15
+ module.exports = {
16
+ InstaAccessLists,
17
+ };
@@ -0,0 +1,21 @@
1
+ const LidoAccessLists = {
2
+ LidoStake: [
3
+ ['0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', []], // Weth
4
+ ['0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84', []], // lidoStEth
5
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
6
+ ],
7
+
8
+ LidoWrap: [
9
+ ['0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0', []], // lidoWrappedStEth
10
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
11
+ ],
12
+
13
+ LidoUnwrap: [
14
+ ['0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0', []], // lidoWrappedStEth
15
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
16
+ ],
17
+ };
18
+
19
+ module.exports = {
20
+ LidoAccessLists,
21
+ };
@@ -0,0 +1,81 @@
1
+ const LiquityAccessLists = {
2
+ LiquityOpen: [
3
+ ['0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', []], // Weth
4
+ ['0x24179CD81c9e782A4096035f7eC97fB8B783e007', []], // BorrowerOperations
5
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
6
+ ],
7
+
8
+ LiquityBorrow: [
9
+ ['0x24179CD81c9e782A4096035f7eC97fB8B783e007', []], // BorrowerOperations
10
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
11
+ ],
12
+
13
+ LiquityPayback: [
14
+ ['0x24179CD81c9e782A4096035f7eC97fB8B783e007', []], // BorrowerOperations
15
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
16
+ ],
17
+
18
+ LiquitySupply: [
19
+ ['0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', []], // Weth
20
+ ['0x24179CD81c9e782A4096035f7eC97fB8B783e007', []], // BorrowerOperations
21
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
22
+ ],
23
+
24
+ LiquityWithdraw: [
25
+ ['0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', []], // Weth
26
+ ['0x24179CD81c9e782A4096035f7eC97fB8B783e007', []], // BorrowerOperations
27
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
28
+ ],
29
+
30
+ LiquityClose: [
31
+ ['0xA39739EF8b0231DbFA0DcdA07d7e29faAbCf4bb2', []], // TroveManager
32
+ ['0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', []], // Weth
33
+ ['0x24179CD81c9e782A4096035f7eC97fB8B783e007', []], // BorrowerOperations
34
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
35
+ ],
36
+
37
+ LiquityClaim: [
38
+ ['0x3D32e8b97Ed5881324241Cf03b2DA5E2EBcE5521', []], // CollSurplusPool
39
+ ['0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', []], // Weth
40
+ ['0x24179CD81c9e782A4096035f7eC97fB8B783e007', []], // BorrowerOperations
41
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
42
+ ],
43
+
44
+ LiquityRedeem: [
45
+ ['0x5f98805A4E8be255a32880FDeC7F6728C6568bA0', []], // Lusd
46
+ ['0xA39739EF8b0231DbFA0DcdA07d7e29faAbCf4bb2', []], // TroveManager
47
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
48
+ ],
49
+
50
+ LiquitySPDeposit: [
51
+ ['0x66017D22b0f8556afDd19FC67041899Eb65a21bb', []], // StabilityPool
52
+ ['0x6DEA81C8171D0bA574754EF6F8b412F2Ed88c54D', []], // Lqty
53
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
54
+ ],
55
+
56
+ LiquitySPWithdraw: [
57
+ ['0x66017D22b0f8556afDd19FC67041899Eb65a21bb', []], // StabilityPool
58
+ ['0x6DEA81C8171D0bA574754EF6F8b412F2Ed88c54D', []], // Lqty
59
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
60
+ ],
61
+
62
+ LiquityStake: [
63
+ ['0x4f9Fbb3f1E99B56e0Fe2892e623Ed36A76Fc605d', []], // LQTYStaking
64
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
65
+ ],
66
+
67
+ LiquityUnstake: [
68
+ ['0x4f9Fbb3f1E99B56e0Fe2892e623Ed36A76Fc605d', []], // LQTYStaking
69
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
70
+ ],
71
+
72
+ LiquityEthGainToTrove: [
73
+ ['0x66017D22b0f8556afDd19FC67041899Eb65a21bb', []], // StabilityPool
74
+ ['0x6DEA81C8171D0bA574754EF6F8b412F2Ed88c54D', []], // Lqty
75
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
76
+ ],
77
+ };
78
+
79
+ module.exports = {
80
+ LiquityAccessLists,
81
+ };
@@ -0,0 +1,18 @@
1
+ const MStableAccessLists = {
2
+ MStableDeposit: [
3
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
4
+ ],
5
+
6
+ MStableWithdraw: [
7
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
8
+ ],
9
+
10
+ MStableClaim: [
11
+ ['0xa3BeD4E1c75D00fa6f4E5E6922DB7261B5E9AcD2', []], // MTA
12
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
13
+ ],
14
+ };
15
+
16
+ module.exports = {
17
+ MStableAccessLists,
18
+ };
@@ -0,0 +1,44 @@
1
+ const MakerAccessLists = {
2
+ McdOpen: [
3
+ ['0x5ef30b9986345249bc32d8928B7ee64DE9435E39', []], // DssCdpManager
4
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
5
+ ],
6
+
7
+ McdSupply: [
8
+ ['0x5ef30b9986345249bc32d8928B7ee64DE9435E39', []], // DssCdpManager
9
+ ['0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B', []], // Vat
10
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
11
+ ],
12
+
13
+ McdWithdraw: [
14
+ ['0x5ef30b9986345249bc32d8928B7ee64DE9435E39', []], // DssCdpManager
15
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
16
+ ],
17
+
18
+ McdGenerate: [
19
+ ['0x5ef30b9986345249bc32d8928B7ee64DE9435E39', []], // DssCdpManager
20
+ ['0x19c0976f590D67707E62397C87829d896Dc0f1F1', []], // Jug
21
+ ['0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B', []], // Vat
22
+ ['0x9759A6Ac90977b93B58547b4A71c78317f391A28', []], // DaiJoin
23
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
24
+ ],
25
+
26
+ McdPayback: [
27
+ ['0x5ef30b9986345249bc32d8928B7ee64DE9435E39', []], // DssCdpManager
28
+ ['0x6B175474E89094C44Da98b954EedeAC495271d0F', []], // Dai
29
+ ['0x9759A6Ac90977b93B58547b4A71c78317f391A28', []], // DaiJoin
30
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
31
+ ],
32
+
33
+ McdGive: [
34
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
35
+ ],
36
+
37
+ McdMerge: [
38
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
39
+ ],
40
+ };
41
+
42
+ module.exports = {
43
+ MakerAccessLists,
44
+ };
@@ -0,0 +1,12 @@
1
+ const RariAccessLists = {
2
+ RariDeposit: [
3
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
4
+ ],
5
+ RariWithdraw: [
6
+ ['0x5c55B921f590a89C1Ebe84dF170E655a82b62126', []], // DefisaverLogger
7
+ ],
8
+ };
9
+
10
+ module.exports = {
11
+ RariAccessLists,
12
+ };