@superfluid-finance/ethereum-contracts 1.7.2-dev.09f3be3.0 → 1.7.2-dev.2cebc84.0

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 (173) hide show
  1. package/artifacts/contracts/apps/SuperfluidLoaderLibrary.sol/SuperfluidLoaderLibrary.json +2 -2
  2. package/build/contracts/AccessControl.json +1 -1
  3. package/build/contracts/AccessControlEnumerable.json +1 -1
  4. package/build/contracts/Address.json +1 -1
  5. package/build/contracts/AgreementBase.json +18 -18
  6. package/build/contracts/AgreementLibrary.json +165 -165
  7. package/build/contracts/BaseRelayRecipient.json +57 -57
  8. package/build/contracts/BatchLiquidator.json +382 -382
  9. package/build/contracts/BatchOperation.json +614 -614
  10. package/build/contracts/CFAv1Forwarder.json +1250 -1250
  11. package/build/contracts/CFAv1ForwarderDeployerLibrary.json +2384 -2384
  12. package/build/contracts/CFAv1Library.json +389 -389
  13. package/build/contracts/CallUtils.json +198 -198
  14. package/build/contracts/ClosingOnUpdateFlowTestApp.json +1525 -1525
  15. package/build/contracts/ConstantFlowAgreementV1.json +1087 -1087
  16. package/build/contracts/ConstantInflowNFT.json +402 -402
  17. package/build/contracts/ConstantOutflowNFT.json +661 -661
  18. package/build/contracts/Context.json +1 -1
  19. package/build/contracts/ContextDefinitions.json +614 -614
  20. package/build/contracts/CustomSuperTokenBase.json +19 -19
  21. package/build/contracts/ERC165.json +1 -1
  22. package/build/contracts/ERC1820Implementer.json +1 -1
  23. package/build/contracts/ERC1820RegistryCompiled.json +22 -22
  24. package/build/contracts/ERC20.json +1 -1
  25. package/build/contracts/ERC20WithTokenInfo.json +23 -23
  26. package/build/contracts/ERC777Helper.json +384 -384
  27. package/build/contracts/ERC777RecipientDrainingGas.json +863 -863
  28. package/build/contracts/ERC777RecipientReverting.json +863 -863
  29. package/build/contracts/EnumerableSet.json +1 -1
  30. package/build/contracts/EventsEmitter.json +43 -43
  31. package/build/contracts/ExclusiveInflowTestApp.json +1525 -1525
  32. package/build/contracts/FixedSizeData.json +200 -200
  33. package/build/contracts/FlowExchangeTestApp.json +1526 -1526
  34. package/build/contracts/FlowNFTBase.json +1280 -1280
  35. package/build/contracts/FlowOperatorDefinitions.json +614 -614
  36. package/build/contracts/ForwarderBase.json +190 -190
  37. package/build/contracts/FullUpgradableSuperTokenProxy.json +116 -116
  38. package/build/contracts/IAccessControl.json +1 -1
  39. package/build/contracts/IAccessControlEnumerable.json +1 -1
  40. package/build/contracts/IConstantFlowAgreementV1.json +677 -677
  41. package/build/contracts/IConstantInflowNFT.json +54 -54
  42. package/build/contracts/IConstantOutflowNFT.json +107 -107
  43. package/build/contracts/IDAv1Forwarder.json +912 -912
  44. package/build/contracts/IDAv1ForwarderDeployerLibrary.json +2384 -2384
  45. package/build/contracts/IDAv1Library.json +430 -430
  46. package/build/contracts/IERC165.json +1 -1
  47. package/build/contracts/IERC1820Implementer.json +1 -1
  48. package/build/contracts/IERC1820Registry.json +1 -1
  49. package/build/contracts/IERC20.json +1 -1
  50. package/build/contracts/IERC20Metadata.json +1 -1
  51. package/build/contracts/IERC20Permit.json +1 -1
  52. package/build/contracts/IERC721.json +1 -1
  53. package/build/contracts/IERC721Metadata.json +1 -1
  54. package/build/contracts/IERC777.json +1 -1
  55. package/build/contracts/IERC777Recipient.json +1 -1
  56. package/build/contracts/IERC777Sender.json +1 -1
  57. package/build/contracts/IFlowNFTBase.json +115 -115
  58. package/build/contracts/IInstantDistributionAgreementV1.json +667 -667
  59. package/build/contracts/IMultiSigWallet.json +31 -31
  60. package/build/contracts/IPoolAdminNFT.json +7 -7
  61. package/build/contracts/IPoolMemberNFT.json +7 -7
  62. package/build/contracts/IPureSuperToken.json +62 -62
  63. package/build/contracts/IPureSuperTokenCustom.json +62 -62
  64. package/build/contracts/IRelayRecipient.json +27 -27
  65. package/build/contracts/IResolver.json +38 -38
  66. package/build/contracts/ISETH.json +67 -67
  67. package/build/contracts/ISETHCustom.json +67 -67
  68. package/build/contracts/ISuperAgreement.json +50 -50
  69. package/build/contracts/ISuperApp.json +191 -191
  70. package/build/contracts/ISuperToken.json +695 -695
  71. package/build/contracts/ISuperTokenFactory.json +225 -225
  72. package/build/contracts/ISuperfluid.json +904 -904
  73. package/build/contracts/ISuperfluidGovernance.json +251 -251
  74. package/build/contracts/ISuperfluidToken.json +407 -407
  75. package/build/contracts/ITOGAv1.json +1346 -1346
  76. package/build/contracts/ITOGAv2.json +1346 -1346
  77. package/build/contracts/ITOGAv3.json +1346 -1346
  78. package/build/contracts/Initializable.json +1 -1
  79. package/build/contracts/InstantDistributionAgreementV1.json +594 -594
  80. package/build/contracts/Math.json +1 -1
  81. package/build/contracts/NonClosableOutflowTestApp.json +1526 -1526
  82. package/build/contracts/Ownable.json +1 -1
  83. package/build/contracts/Proxy.json +1 -1
  84. package/build/contracts/ProxyDeployerLibrary.json +2382 -2382
  85. package/build/contracts/PureSuperToken.json +106 -106
  86. package/build/contracts/Resolver.json +98 -98
  87. package/build/contracts/SETHProxy.json +224 -224
  88. package/build/contracts/SafeCast.json +1 -1
  89. package/build/contracts/SafeERC20.json +1 -1
  90. package/build/contracts/SafeGasLibrary.json +51 -51
  91. package/build/contracts/SafeMath.json +1 -1
  92. package/build/contracts/SelfDeletingFlowTestApp.json +1525 -1525
  93. package/build/contracts/SlotsBitmapLibrary.json +457 -457
  94. package/build/contracts/StreamRedirector.json +704 -704
  95. package/build/contracts/Strings.json +1 -1
  96. package/build/contracts/SuperAppBase.json +42 -42
  97. package/build/contracts/SuperAppBaseFlow.json +138 -138
  98. package/build/contracts/SuperAppDefinitions.json +614 -614
  99. package/build/contracts/SuperToken.json +2714 -2714
  100. package/build/contracts/SuperTokenDeployerLibrary.json +2383 -2383
  101. package/build/contracts/SuperTokenFactory.json +1347 -1347
  102. package/build/contracts/SuperTokenFactoryBase.json +1329 -1329
  103. package/build/contracts/SuperTokenV1Library.json +1483 -1483
  104. package/build/contracts/SuperUpgrader.json +439 -439
  105. package/build/contracts/Superfluid.json +5196 -5196
  106. package/build/contracts/SuperfluidCFAv1DeployerLibrary.json +2383 -2383
  107. package/build/contracts/SuperfluidFrameworkDeployer.json +1260 -1260
  108. package/build/contracts/SuperfluidFrameworkDeploymentSteps.json +2382 -2382
  109. package/build/contracts/SuperfluidGovDeployerLibrary.json +2383 -2383
  110. package/build/contracts/SuperfluidGovernanceBase.json +2449 -2449
  111. package/build/contracts/SuperfluidGovernanceConfigs.json +614 -614
  112. package/build/contracts/SuperfluidGovernanceII.json +155 -155
  113. package/build/contracts/SuperfluidGovernanceIIProxy.json +135 -135
  114. package/build/contracts/SuperfluidHostDeployerLibrary.json +2382 -2382
  115. package/build/contracts/SuperfluidIDAv1DeployerLibrary.json +2383 -2383
  116. package/build/contracts/SuperfluidLoader.json +207 -207
  117. package/build/contracts/SuperfluidLoaderDeployerLibrary.json +2384 -2384
  118. package/build/contracts/SuperfluidLoaderLibrary.json +485 -351
  119. package/build/contracts/SuperfluidNFTLogicDeployerLibrary.json +2387 -2387
  120. package/build/contracts/SuperfluidPeripheryDeployerLibrary.json +2385 -2385
  121. package/build/contracts/SuperfluidToken.json +1423 -1423
  122. package/build/contracts/TOGA.json +1360 -1360
  123. package/build/contracts/TestGovernance.json +250 -250
  124. package/build/contracts/TestResolver.json +47 -47
  125. package/build/contracts/TestToken.json +102 -102
  126. package/build/contracts/TokenDeployerLibrary.json +2384 -2384
  127. package/build/contracts/TokenInfo.json +32 -32
  128. package/build/contracts/UUPSProxiable.json +139 -139
  129. package/build/contracts/UUPSProxy.json +81 -81
  130. package/build/contracts/UUPSUtils.json +37 -37
  131. package/build/contracts-sizes.txt +15 -15
  132. package/build/typechain/factories/contracts/apps/SuperfluidLoaderLibrary__factory.d.ts +1 -1
  133. package/build/typechain/factories/contracts/apps/SuperfluidLoaderLibrary__factory.d.ts.map +1 -1
  134. package/build/typechain/factories/contracts/apps/SuperfluidLoaderLibrary__factory.js +1 -1
  135. package/build/typechain/factories/contracts/apps/SuperfluidLoaderLibrary__factory.js.map +1 -1
  136. package/contracts/apps/SuperfluidLoaderLibrary.sol +4 -1
  137. package/package.json +4 -5
  138. package/ops-scripts/.eslintrc.js +0 -15
  139. package/ops-scripts/artifacts/ERC1820Registry.json +0 -5
  140. package/ops-scripts/deploy-aux-contracts.js +0 -99
  141. package/ops-scripts/deploy-deterministically.js +0 -169
  142. package/ops-scripts/deploy-erc1820.js +0 -83
  143. package/ops-scripts/deploy-framework.js +0 -895
  144. package/ops-scripts/deploy-mfa.ts +0 -27
  145. package/ops-scripts/deploy-super-token.js +0 -206
  146. package/ops-scripts/deploy-test-environment.js +0 -98
  147. package/ops-scripts/deploy-test-token.js +0 -86
  148. package/ops-scripts/deploy-unlisted-pure-super-token.js +0 -69
  149. package/ops-scripts/deploy-unlisted-super-token.js +0 -68
  150. package/ops-scripts/gov-create-new-app-registration-key.js +0 -75
  151. package/ops-scripts/gov-create-new-factory-registration.js +0 -49
  152. package/ops-scripts/gov-set-3Ps-config.js +0 -67
  153. package/ops-scripts/gov-set-reward-address.js +0 -60
  154. package/ops-scripts/gov-set-token-min-deposit.js +0 -53
  155. package/ops-scripts/gov-set-trusted-forwarder.js +0 -80
  156. package/ops-scripts/gov-transfer-framework-ownership.js +0 -90
  157. package/ops-scripts/gov-upgrade-governance.js +0 -87
  158. package/ops-scripts/gov-upgrade-super-token-logic.js +0 -193
  159. package/ops-scripts/info-inspect-account.js +0 -118
  160. package/ops-scripts/info-list-apps.js +0 -55
  161. package/ops-scripts/info-print-contract-addresses.js +0 -136
  162. package/ops-scripts/info-scan-deployments.js +0 -63
  163. package/ops-scripts/info-show-protocol.js +0 -400
  164. package/ops-scripts/libs/common.js +0 -436
  165. package/ops-scripts/libs/getConfig.js +0 -289
  166. package/ops-scripts/libs/truffleScriptRunnerFactory.js +0 -97
  167. package/ops-scripts/resolver-list-super-token.js +0 -73
  168. package/ops-scripts/resolver-register-token.js +0 -72
  169. package/ops-scripts/resolver-reset-deployment.js +0 -54
  170. package/ops-scripts/resolver-set-key-value.js +0 -69
  171. package/ops-scripts/resolver-unlist-super-token.js +0 -61
  172. package/ops-scripts/tmp-trigger-token-transfer.js +0 -33
  173. package/ops-scripts/validate-nft-addresses.ts +0 -49
@@ -15,15 +15,15 @@
15
15
  "absolutePath": "project:/contracts/upgradability/UUPSUtils.sol",
16
16
  "exportedSymbols": {
17
17
  "UUPSUtils": [
18
- 47069
18
+ 47080
19
19
  ]
20
20
  },
21
- "id": 47070,
21
+ "id": 47081,
22
22
  "license": "AGPLv3",
23
23
  "nodeType": "SourceUnit",
24
24
  "nodes": [
25
25
  {
26
- "id": 47047,
26
+ "id": 47058,
27
27
  "literals": [
28
28
  "solidity",
29
29
  "0.8",
@@ -39,15 +39,15 @@
39
39
  "contractDependencies": [],
40
40
  "contractKind": "library",
41
41
  "documentation": {
42
- "id": 47048,
42
+ "id": 47059,
43
43
  "nodeType": "StructuredDocumentation",
44
44
  "src": "60:76:110",
45
45
  "text": " @title UUPS (Universal Upgradeable Proxy Standard) Shared Library"
46
46
  },
47
47
  "fullyImplemented": true,
48
- "id": 47069,
48
+ "id": 47080,
49
49
  "linearizedBaseContracts": [
50
- 47069
50
+ 47080
51
51
  ],
52
52
  "name": "UUPSUtils",
53
53
  "nameLocation": "145:9:110",
@@ -56,17 +56,17 @@
56
56
  {
57
57
  "constant": true,
58
58
  "documentation": {
59
- "id": 47049,
59
+ "id": 47060,
60
60
  "nodeType": "StructuredDocumentation",
61
61
  "src": "162:288:110",
62
62
  "text": " @dev Implementation slot constant.\n Using https://eips.ethereum.org/EIPS/eip-1967 standard\n Storage slot 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc\n (obtained as bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1))."
63
63
  },
64
- "id": 47052,
64
+ "id": 47063,
65
65
  "mutability": "constant",
66
66
  "name": "_IMPLEMENTATION_SLOT",
67
67
  "nameLocation": "481:20:110",
68
68
  "nodeType": "VariableDeclaration",
69
- "scope": 47069,
69
+ "scope": 47080,
70
70
  "src": "455:115:110",
71
71
  "stateVariable": true,
72
72
  "storageLocation": "default",
@@ -75,7 +75,7 @@
75
75
  "typeString": "bytes32"
76
76
  },
77
77
  "typeName": {
78
- "id": 47050,
78
+ "id": 47061,
79
79
  "name": "bytes32",
80
80
  "nodeType": "ElementaryTypeName",
81
81
  "src": "455:7:110",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "value": {
88
88
  "hexValue": "307833363038393461313362613161333231303636376338323834393264623938646361336532303736636333373335613932306133636135303564333832626263",
89
- "id": 47051,
89
+ "id": 47062,
90
90
  "isConstant": false,
91
91
  "isLValue": false,
92
92
  "isPure": true,
@@ -104,7 +104,7 @@
104
104
  },
105
105
  {
106
106
  "body": {
107
- "id": 47059,
107
+ "id": 47070,
108
108
  "nodeType": "Block",
109
109
  "src": "681:107:110",
110
110
  "statements": [
@@ -145,33 +145,33 @@
145
145
  "evmVersion": "paris",
146
146
  "externalReferences": [
147
147
  {
148
- "declaration": 47052,
148
+ "declaration": 47063,
149
149
  "isOffset": false,
150
150
  "isSlot": false,
151
151
  "src": "751:20:110",
152
152
  "valueSize": 1
153
153
  },
154
154
  {
155
- "declaration": 47056,
155
+ "declaration": 47067,
156
156
  "isOffset": false,
157
157
  "isSlot": false,
158
158
  "src": "737:4:110",
159
159
  "valueSize": 1
160
160
  }
161
161
  ],
162
- "id": 47058,
162
+ "id": 47069,
163
163
  "nodeType": "InlineAssembly",
164
164
  "src": "691:91:110"
165
165
  }
166
166
  ]
167
167
  },
168
168
  "documentation": {
169
- "id": 47053,
169
+ "id": 47064,
170
170
  "nodeType": "StructuredDocumentation",
171
171
  "src": "577:36:110",
172
172
  "text": "@dev Get implementation address."
173
173
  },
174
- "id": 47060,
174
+ "id": 47071,
175
175
  "implemented": true,
176
176
  "kind": "function",
177
177
  "modifiers": [],
@@ -179,23 +179,23 @@
179
179
  "nameLocation": "627:14:110",
180
180
  "nodeType": "FunctionDefinition",
181
181
  "parameters": {
182
- "id": 47054,
182
+ "id": 47065,
183
183
  "nodeType": "ParameterList",
184
184
  "parameters": [],
185
185
  "src": "641:2:110"
186
186
  },
187
187
  "returnParameters": {
188
- "id": 47057,
188
+ "id": 47068,
189
189
  "nodeType": "ParameterList",
190
190
  "parameters": [
191
191
  {
192
192
  "constant": false,
193
- "id": 47056,
193
+ "id": 47067,
194
194
  "mutability": "mutable",
195
195
  "name": "impl",
196
196
  "nameLocation": "675:4:110",
197
197
  "nodeType": "VariableDeclaration",
198
- "scope": 47060,
198
+ "scope": 47071,
199
199
  "src": "667:12:110",
200
200
  "stateVariable": false,
201
201
  "storageLocation": "default",
@@ -204,7 +204,7 @@
204
204
  "typeString": "address"
205
205
  },
206
206
  "typeName": {
207
- "id": 47055,
207
+ "id": 47066,
208
208
  "name": "address",
209
209
  "nodeType": "ElementaryTypeName",
210
210
  "src": "667:7:110",
@@ -219,7 +219,7 @@
219
219
  ],
220
220
  "src": "666:14:110"
221
221
  },
222
- "scope": 47069,
222
+ "scope": 47080,
223
223
  "src": "618:170:110",
224
224
  "stateMutability": "view",
225
225
  "virtual": false,
@@ -227,7 +227,7 @@
227
227
  },
228
228
  {
229
229
  "body": {
230
- "id": 47067,
230
+ "id": 47078,
231
231
  "nodeType": "Block",
232
232
  "src": "896:171:110",
233
233
  "statements": [
@@ -266,33 +266,33 @@
266
266
  "evmVersion": "paris",
267
267
  "externalReferences": [
268
268
  {
269
- "declaration": 47052,
269
+ "declaration": 47063,
270
270
  "isOffset": false,
271
271
  "isSlot": false,
272
272
  "src": "988:20:110",
273
273
  "valueSize": 1
274
274
  },
275
275
  {
276
- "declaration": 47063,
276
+ "declaration": 47074,
277
277
  "isOffset": false,
278
278
  "isSlot": false,
279
279
  "src": "1026:11:110",
280
280
  "valueSize": 1
281
281
  }
282
282
  ],
283
- "id": 47066,
283
+ "id": 47077,
284
284
  "nodeType": "InlineAssembly",
285
285
  "src": "906:155:110"
286
286
  }
287
287
  ]
288
288
  },
289
289
  "documentation": {
290
- "id": 47061,
290
+ "id": 47072,
291
291
  "nodeType": "StructuredDocumentation",
292
292
  "src": "794:40:110",
293
293
  "text": "@dev Set new implementation address."
294
294
  },
295
- "id": 47068,
295
+ "id": 47079,
296
296
  "implemented": true,
297
297
  "kind": "function",
298
298
  "modifiers": [],
@@ -300,17 +300,17 @@
300
300
  "nameLocation": "848:17:110",
301
301
  "nodeType": "FunctionDefinition",
302
302
  "parameters": {
303
- "id": 47064,
303
+ "id": 47075,
304
304
  "nodeType": "ParameterList",
305
305
  "parameters": [
306
306
  {
307
307
  "constant": false,
308
- "id": 47063,
308
+ "id": 47074,
309
309
  "mutability": "mutable",
310
310
  "name": "codeAddress",
311
311
  "nameLocation": "874:11:110",
312
312
  "nodeType": "VariableDeclaration",
313
- "scope": 47068,
313
+ "scope": 47079,
314
314
  "src": "866:19:110",
315
315
  "stateVariable": false,
316
316
  "storageLocation": "default",
@@ -319,7 +319,7 @@
319
319
  "typeString": "address"
320
320
  },
321
321
  "typeName": {
322
- "id": 47062,
322
+ "id": 47073,
323
323
  "name": "address",
324
324
  "nodeType": "ElementaryTypeName",
325
325
  "src": "866:7:110",
@@ -335,19 +335,19 @@
335
335
  "src": "865:21:110"
336
336
  },
337
337
  "returnParameters": {
338
- "id": 47065,
338
+ "id": 47076,
339
339
  "nodeType": "ParameterList",
340
340
  "parameters": [],
341
341
  "src": "896:0:110"
342
342
  },
343
- "scope": 47069,
343
+ "scope": 47080,
344
344
  "src": "839:228:110",
345
345
  "stateMutability": "nonpayable",
346
346
  "virtual": false,
347
347
  "visibility": "internal"
348
348
  }
349
349
  ],
350
- "scope": 47070,
350
+ "scope": 47081,
351
351
  "src": "137:933:110",
352
352
  "usedErrors": []
353
353
  }
@@ -360,7 +360,7 @@
360
360
  },
361
361
  "networks": {},
362
362
  "schemaVersion": "3.4.13",
363
- "updatedAt": "2023-06-28T11:03:19.439Z",
363
+ "updatedAt": "2023-07-13T10:28:32.377Z",
364
364
  "devdoc": {
365
365
  "kind": "dev",
366
366
  "methods": {},
@@ -1,27 +1,27 @@
1
- SuperToken.sol : 19368 (5208)
1
+ SuperTokenFactory.sol : 8168 (16408)
2
2
  ConstantInflowNFT.sol : 8574 (16002)
3
+ FullUpgradableSuperTokenProxy.sol : 565 (24011)
4
+ FlowNFTBase.sol : 2 (24574)
5
+ SuperToken.sol : 19368 (5208)
3
6
  SuperfluidToken.sol : 2 (24574)
4
7
  ConstantOutflowNFT.sol : 9295 (15281)
5
- FullUpgradableSuperTokenProxy.sol : 565 (24011)
6
- SuperTokenFactory.sol : 8168 (16408)
7
8
  Superfluid.sol : 21010 (3566)
8
- FlowNFTBase.sol : 2 (24574)
9
9
  InstantDistributionAgreementV1.sol : 21272 (3304)
10
- AgreementBase.sol : 2 (24574)
11
10
  AgreementLibrary.sol : 143 (24433)
12
11
  ConstantFlowAgreementV1.sol : 21770 (2806)
13
- SuperfluidGovernanceII.sol : 8151 (16425)
12
+ AgreementBase.sol : 2 (24574)
14
13
  SuperfluidGovernanceBase.sol : 2 (24574)
15
- IDAv1Forwarder.sol : 6828 (17748)
16
- CFAv1Forwarder.sol : 6109 (18467)
17
- SuperfluidLoader.sol : 1260 (23316)
14
+ SuperfluidGovernanceII.sol : 8151 (16425)
15
+ SuperfluidFrameworkDeployer.sol : 22151 (2425)
16
+ SuperfluidFrameworkDeploymentSteps.sol : 1558 (23018)
17
+ SuperUpgrader.sol : 6541 (18035)
18
18
  TestToken.sol : 3280 (21296)
19
19
  TOGA.sol : 6197 (18379)
20
- ForwarderBase.sol : 2 (24574)
21
- Resolver.sol : 3608 (20968)
22
- BatchLiquidator.sol : 2522 (22054)
23
- SuperUpgrader.sol : 6541 (18035)
24
20
  TestResolver.sol : 3802 (20774)
25
- SuperfluidFrameworkDeploymentSteps.sol : 1558 (23018)
26
21
  TestGovernance.sol : 7457 (17119)
27
- SuperfluidFrameworkDeployer.sol : 22151 (2425)
22
+ CFAv1Forwarder.sol : 6109 (18467)
23
+ Resolver.sol : 3608 (20968)
24
+ BatchLiquidator.sol : 2522 (22054)
25
+ IDAv1Forwarder.sol : 6828 (17748)
26
+ ForwarderBase.sol : 2 (24574)
27
+ SuperfluidLoader.sol : 1260 (23316)
@@ -13,7 +13,7 @@ export declare class SuperfluidLoaderLibrary__factory extends ContractFactory {
13
13
  }): TransactionRequest;
14
14
  attach(address: string): SuperfluidLoaderLibrary;
15
15
  connect(signer: Signer): SuperfluidLoaderLibrary__factory;
16
- static readonly bytecode = "0x6102ab61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c806320bc44251461003a575b600080fd5b61004261005e565b6040516001600160a01b03909116815260200160405180910390f35b6000600146036100815750734e583d9390082b65bef884b629dfa426114ced6d90565b600a46036100a2575073567c4b141ed61923967ca25ef4906c8781069a1090565b603846036100c3575073d1e2cfb6441680002eb7a44223160ab9b67d7e6e90565b606446036100e45750732dfe937cd98ab92e59cf3139138f18c823a4efe790565b608946036101055750733e14dc1b13c488a8d5d310918780c983bd5982e790565b61a4b14603610127575073cf8acb4ef033eff16e8080aed4c7d5b9285d219290565b61a4ec4603610149575073a4ff07cf81c02cfd356184879d953970ca95758590565b61a86a460361016b57507360377c7016e4cdb03c87ef474896c11cb560752c90565b6005460361018c57507322ff293e14f1ec3a09b137e9e06084afd63addf990565b62066eed46036101af575073e40983c2476032a0915600b9472b3141aa5b5ba990565b6101a446036101d1575073e40983c2476032a0915600b9472b3141aa5b5ba990565b61a86946036101f357507385fe79b998509b77bf10a8bd4001d58475d2938690565b620138814603610216575073eb796bdb90ffa0f28255275e16936d25d341860390565b62aa36a74603610239575073109412e3c84f0539b43d39db691b08c90f58dc7c90565b62014a33460361025c575073507c3a7c6ccc253884a2e3a3ee2a211cc7e796a690565b604051633732a25760e11b815260040160405180910390fdfea2646970667358221220c0024553761c01c9ea4069fa6e77a9ec6d74182dd7c599f2a7b8af793cd7adf964736f6c63430008130033";
16
+ static readonly bytecode = "0x6102cd61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c806320bc44251461003a575b600080fd5b61004261005e565b6040516001600160a01b03909116815260200160405180910390f35b6000600146036100815750734e583d9390082b65bef884b629dfa426114ced6d90565b600a46036100a2575073567c4b141ed61923967ca25ef4906c8781069a1090565b603846036100c3575073d1e2cfb6441680002eb7a44223160ab9b67d7e6e90565b606446036100e45750732dfe937cd98ab92e59cf3139138f18c823a4efe790565b608946036101055750733e14dc1b13c488a8d5d310918780c983bd5982e790565b61a4b14603610127575073cf8acb4ef033eff16e8080aed4c7d5b9285d219290565b61a4ec4603610149575073a4ff07cf81c02cfd356184879d953970ca95758590565b61a86a460361016b57507360377c7016e4cdb03c87ef474896c11cb560752c90565b6005460361018c57507322ff293e14f1ec3a09b137e9e06084afd63addf990565b62066eed46036101af575073e40983c2476032a0915600b9472b3141aa5b5ba990565b6101a446036101d1575073e40983c2476032a0915600b9472b3141aa5b5ba990565b61a86946036101f357507385fe79b998509b77bf10a8bd4001d58475d2938690565b620138814603610216575073eb796bdb90ffa0f28255275e16936d25d341860390565b62aa36a74603610239575073109412e3c84f0539b43d39db691b08c90f58dc7c90565b62014a33460361025c575073507c3a7c6ccc253884a2e3a3ee2a211cc7e796a690565b6105a2460361027e575073e64f81d5ddda1c7172e5c6d964e8ef1bd82d870490565b604051633732a25760e11b815260040160405180910390fdfea2646970667358221220ec07713423b1251e198cd522f9504aba3780cd63d19aecb2633cf9edff7fbb6964736f6c63430008130033";
17
17
  static readonly abi: readonly [{
18
18
  readonly inputs: readonly [];
19
19
  readonly name: "UnsupportedNetwork";
@@ -1 +1 @@
1
- {"version":3,"file":"SuperfluidLoaderLibrary__factory.d.ts","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/apps/SuperfluidLoaderLibrary__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,uBAAuB,EACvB,gCAAgC,EACjC,MAAM,iDAAiD,CAAC;AA0BzD,KAAK,wCAAwC,GACzC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,gCAAiC,SAAQ,eAAe;gBACvD,GAAG,IAAI,EAAE,wCAAwC;IAQpD,MAAM,CACb,SAAS,CAAC,EAAE,SAAS,GAAG;QAAE,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;KAAE,GACxD,OAAO,CAAC,uBAAuB,CAAC;IAG1B,oBAAoB,CAC3B,SAAS,CAAC,EAAE,SAAS,GAAG;QAAE,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;KAAE,GACxD,kBAAkB;IAGZ,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB;IAGhD,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,gCAAgC;IAIlE,MAAM,CAAC,QAAQ,CAAC,QAAQ,k9CAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,gCAAgC;IAG1D,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAClC,uBAAuB;CAO3B"}
1
+ {"version":3,"file":"SuperfluidLoaderLibrary__factory.d.ts","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/apps/SuperfluidLoaderLibrary__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,uBAAuB,EACvB,gCAAgC,EACjC,MAAM,iDAAiD,CAAC;AA0BzD,KAAK,wCAAwC,GACzC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,gCAAiC,SAAQ,eAAe;gBACvD,GAAG,IAAI,EAAE,wCAAwC;IAQpD,MAAM,CACb,SAAS,CAAC,EAAE,SAAS,GAAG;QAAE,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;KAAE,GACxD,OAAO,CAAC,uBAAuB,CAAC;IAG1B,oBAAoB,CAC3B,SAAS,CAAC,EAAE,SAAS,GAAG;QAAE,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;KAAE,GACxD,kBAAkB;IAGZ,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB;IAGhD,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,gCAAgC;IAIlE,MAAM,CAAC,QAAQ,CAAC,QAAQ,shDAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,gCAAgC;IAG1D,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAClC,uBAAuB;CAO3B"}
@@ -25,7 +25,7 @@ const _abi = [
25
25
  type: "function",
26
26
  },
27
27
  ];
28
- const _bytecode = "0x6102ab61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c806320bc44251461003a575b600080fd5b61004261005e565b6040516001600160a01b03909116815260200160405180910390f35b6000600146036100815750734e583d9390082b65bef884b629dfa426114ced6d90565b600a46036100a2575073567c4b141ed61923967ca25ef4906c8781069a1090565b603846036100c3575073d1e2cfb6441680002eb7a44223160ab9b67d7e6e90565b606446036100e45750732dfe937cd98ab92e59cf3139138f18c823a4efe790565b608946036101055750733e14dc1b13c488a8d5d310918780c983bd5982e790565b61a4b14603610127575073cf8acb4ef033eff16e8080aed4c7d5b9285d219290565b61a4ec4603610149575073a4ff07cf81c02cfd356184879d953970ca95758590565b61a86a460361016b57507360377c7016e4cdb03c87ef474896c11cb560752c90565b6005460361018c57507322ff293e14f1ec3a09b137e9e06084afd63addf990565b62066eed46036101af575073e40983c2476032a0915600b9472b3141aa5b5ba990565b6101a446036101d1575073e40983c2476032a0915600b9472b3141aa5b5ba990565b61a86946036101f357507385fe79b998509b77bf10a8bd4001d58475d2938690565b620138814603610216575073eb796bdb90ffa0f28255275e16936d25d341860390565b62aa36a74603610239575073109412e3c84f0539b43d39db691b08c90f58dc7c90565b62014a33460361025c575073507c3a7c6ccc253884a2e3a3ee2a211cc7e796a690565b604051633732a25760e11b815260040160405180910390fdfea2646970667358221220c0024553761c01c9ea4069fa6e77a9ec6d74182dd7c599f2a7b8af793cd7adf964736f6c63430008130033";
28
+ const _bytecode = "0x6102cd61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c806320bc44251461003a575b600080fd5b61004261005e565b6040516001600160a01b03909116815260200160405180910390f35b6000600146036100815750734e583d9390082b65bef884b629dfa426114ced6d90565b600a46036100a2575073567c4b141ed61923967ca25ef4906c8781069a1090565b603846036100c3575073d1e2cfb6441680002eb7a44223160ab9b67d7e6e90565b606446036100e45750732dfe937cd98ab92e59cf3139138f18c823a4efe790565b608946036101055750733e14dc1b13c488a8d5d310918780c983bd5982e790565b61a4b14603610127575073cf8acb4ef033eff16e8080aed4c7d5b9285d219290565b61a4ec4603610149575073a4ff07cf81c02cfd356184879d953970ca95758590565b61a86a460361016b57507360377c7016e4cdb03c87ef474896c11cb560752c90565b6005460361018c57507322ff293e14f1ec3a09b137e9e06084afd63addf990565b62066eed46036101af575073e40983c2476032a0915600b9472b3141aa5b5ba990565b6101a446036101d1575073e40983c2476032a0915600b9472b3141aa5b5ba990565b61a86946036101f357507385fe79b998509b77bf10a8bd4001d58475d2938690565b620138814603610216575073eb796bdb90ffa0f28255275e16936d25d341860390565b62aa36a74603610239575073109412e3c84f0539b43d39db691b08c90f58dc7c90565b62014a33460361025c575073507c3a7c6ccc253884a2e3a3ee2a211cc7e796a690565b6105a2460361027e575073e64f81d5ddda1c7172e5c6d964e8ef1bd82d870490565b604051633732a25760e11b815260040160405180910390fdfea2646970667358221220ec07713423b1251e198cd522f9504aba3780cd63d19aecb2633cf9edff7fbb6964736f6c63430008130033";
29
29
  const isSuperArgs = (xs) => xs.length > 1;
30
30
  class SuperfluidLoaderLibrary__factory extends ethers_1.ContractFactory {
31
31
  constructor(...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"SuperfluidLoaderLibrary__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/apps/SuperfluidLoaderLibrary__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAA6E;AAQ7E,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAM,SAAS,GACb,88CAA88C,CAAC;AAMj9C,MAAM,WAAW,GAAG,CAClB,EAA4C,EACS,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,gCAAiC,SAAQ,wBAAe;IACnE,YAAY,GAAG,IAA8C;QAC3D,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;YACrB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;SAChB;aAAM;YACL,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACjC;IACH,CAAC;IAEQ,MAAM,CACb,SAAyD;QAEzD,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAqC,CAAC;IAC3E,CAAC;IACQ,oBAAoB,CAC3B,SAAyD;QAEzD,OAAO,KAAK,CAAC,oBAAoB,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;IACQ,MAAM,CAAC,OAAe;QAC7B,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAA4B,CAAC;IAC1D,CAAC;IACQ,OAAO,CAAC,MAAc;QAC7B,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAqC,CAAC;IACnE,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,cAAK,CAAC,SAAS,CAAC,IAAI,CAAqC,CAAC;IACvE,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,gBAAgB,CACU,CAAC;IAC/B,CAAC;;AAxCH,4EAyCC;AAfiB,yCAAQ,GAAG,SAAS,CAAC;AACrB,oCAAG,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"SuperfluidLoaderLibrary__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/apps/SuperfluidLoaderLibrary__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAA6E;AAQ7E,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAM,SAAS,GACb,khDAAkhD,CAAC;AAMrhD,MAAM,WAAW,GAAG,CAClB,EAA4C,EACS,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,gCAAiC,SAAQ,wBAAe;IACnE,YAAY,GAAG,IAA8C;QAC3D,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;YACrB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;SAChB;aAAM;YACL,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACjC;IACH,CAAC;IAEQ,MAAM,CACb,SAAyD;QAEzD,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAqC,CAAC;IAC3E,CAAC;IACQ,oBAAoB,CAC3B,SAAyD;QAEzD,OAAO,KAAK,CAAC,oBAAoB,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;IACQ,MAAM,CAAC,OAAe;QAC7B,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAA4B,CAAC;IAC1D,CAAC;IACQ,OAAO,CAAC,MAAc;QAC7B,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAqC,CAAC;IACnE,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,cAAK,CAAC,SAAS,CAAC,IAAI,CAAqC,CAAC;IACvE,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,gBAAgB,CACU,CAAC;IAC/B,CAAC;;AAxCH,4EAyCC;AAfiB,yCAAQ,GAAG,SAAS,CAAC;AACrB,oCAAG,GAAG,IAAI,CAAC"}
@@ -22,6 +22,7 @@ library SuperfluidLoaderLibrary {
22
22
  uint256 private constant ARBITRUM_GOERLI = 421613;
23
23
  uint256 private constant OPTIMISM_GOERLI = 420;
24
24
  uint256 private constant AVALANCHE_FUJI = 43113;
25
+ uint256 private constant ZKEVM_TESTNET = 1442;
25
26
 
26
27
 
27
28
  function getHost() public view returns (address) {
@@ -53,8 +54,10 @@ library SuperfluidLoaderLibrary {
53
54
  return 0xEB796bdb90fFA0f28255275e16936D25d3418603;
54
55
  } else if (block.chainid == ETH_SEPOLIA) {
55
56
  return 0x109412E3C84f0539b43d39dB691B08c90f58dC7c;
56
- } else if (block.chainid == BASE_GOERLI) {
57
+ } else if (block.chainid == BASE_GOERLI) {
57
58
  return 0x507c3a7C6Ccc253884A2e3a3ee2A211cC7E796a6;
59
+ } else if (block.chainid == ZKEVM_TESTNET) {
60
+ return 0xe64f81d5dDdA1c7172e5C6d964E8ef1BD82D8704;
58
61
  } else {
59
62
  revert UnsupportedNetwork();
60
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superfluid-finance/ethereum-contracts",
3
- "version": "1.7.2-dev.09f3be3.0",
3
+ "version": "1.7.2-dev.2cebc84.0",
4
4
  "description": " Ethereum contracts implementation for the Superfluid Protocol",
5
5
  "homepage": "https://github.com/superfluid-finance/protocol-monorepo/tree/dev/packages/ethereum-contracts#readme",
6
6
  "repository": {
@@ -22,7 +22,6 @@
22
22
  "artifacts/contracts/**/*.json",
23
23
  "!/**/*.dbg.json",
24
24
  "dev-scripts/**/*",
25
- "ops-scripts/**/*",
26
25
  "scripts/**/*",
27
26
  "utils/**/*",
28
27
  "/build/typechain/**/*"
@@ -79,7 +78,7 @@
79
78
  "@safe-global/safe-core-sdk": "^3.3.3",
80
79
  "@safe-global/safe-service-client": "^2.0.1",
81
80
  "@safe-global/safe-web3-lib": "^1.9.3",
82
- "@superfluid-finance/js-sdk": "^0.6.4-dev.09f3be3.0",
81
+ "@superfluid-finance/js-sdk": "^0.6.4-dev.2cebc84.0",
83
82
  "@truffle/contract": "4.6.18",
84
83
  "ethereumjs-tx": "2.1.2",
85
84
  "ethereumjs-util": "7.1.5",
@@ -87,7 +86,7 @@
87
86
  },
88
87
  "devDependencies": {
89
88
  "@nomiclabs/hardhat-truffle5": "^2.0.7",
90
- "@superfluid-finance/metadata": "git+https://github.com/superfluid-finance/metadata.git",
89
+ "@superfluid-finance/metadata": "^1.1.9-dev.2cebc84.0",
91
90
  "async": "^3.2.4",
92
91
  "csv-writer": "^1.6.0",
93
92
  "ganache-time-traveler": "1.0.16",
@@ -97,6 +96,6 @@
97
96
  "solidity-coverage": "0.8.2",
98
97
  "solidity-docgen": "^0.6.0-beta.35",
99
98
  "truffle-flattener": "^1.6.0",
100
- "truffle-plugin-verify": "0.6.2"
99
+ "truffle-plugin-verify": "0.6.4"
101
100
  }
102
101
  }
@@ -1,15 +0,0 @@
1
- module.exports = {
2
- globals: {
3
- web3: true,
4
- artifacts: true,
5
- describe: true,
6
- contract: true,
7
- before: true,
8
- beforeEach: true,
9
- it: true,
10
- assert: true,
11
- },
12
- rules: {
13
- "no-console": "off",
14
- },
15
- };
@@ -1,5 +0,0 @@
1
- {
2
- "abi": "[{\"constant\":false,\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\"},{\"name\":\"_interfaceHash\",\"type\":\"bytes32\"},{\"name\":\"_implementer\",\"type\":\"address\"}],\"name\":\"setInterfaceImplementer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"getManager\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\"},{\"name\":\"_newManager\",\"type\":\"address\"}],\"name\":\"setManager\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_interfaceName\",\"type\":\"string\"}],\"name\":\"interfaceHash\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_contract\",\"type\":\"address\"},{\"name\":\"_interfaceId\",\"type\":\"bytes4\"}],\"name\":\"updateERC165Cache\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_addr\",\"type\":\"address\"},{\"name\":\"_interfaceHash\",\"type\":\"bytes32\"}],\"name\":\"getInterfaceImplementer\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_contract\",\"type\":\"address\"},{\"name\":\"_interfaceId\",\"type\":\"bytes4\"}],\"name\":\"implementsERC165InterfaceNoCache\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_contract\",\"type\":\"address\"},{\"name\":\"_interfaceId\",\"type\":\"bytes4\"}],\"name\":\"implementsERC165Interface\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"addr\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"interfaceHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"implementer\",\"type\":\"address\"}],\"name\":\"InterfaceImplementerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"addr\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newManager\",\"type\":\"address\"}],\"name\":\"ManagerChanged\",\"type\":\"event\"}]",
3
-
4
- "bin": "608060405234801561001057600080fd5b506109c5806100206000396000f3fe608060405234801561001057600080fd5b50600436106100a5576000357c010000000000000000000000000000000000000000000000000000000090048063a41e7d5111610078578063a41e7d51146101d4578063aabbb8ca1461020a578063b705676514610236578063f712f3e814610280576100a5565b806329965a1d146100aa5780633d584063146100e25780635df8122f1461012457806365ba36c114610152575b600080fd5b6100e0600480360360608110156100c057600080fd5b50600160a060020a038135811691602081013591604090910135166102b6565b005b610108600480360360208110156100f857600080fd5b5035600160a060020a0316610570565b60408051600160a060020a039092168252519081900360200190f35b6100e06004803603604081101561013a57600080fd5b50600160a060020a03813581169160200135166105bc565b6101c26004803603602081101561016857600080fd5b81019060208101813564010000000081111561018357600080fd5b82018360208201111561019557600080fd5b803590602001918460018302840111640100000000831117156101b757600080fd5b5090925090506106b3565b60408051918252519081900360200190f35b6100e0600480360360408110156101ea57600080fd5b508035600160a060020a03169060200135600160e060020a0319166106ee565b6101086004803603604081101561022057600080fd5b50600160a060020a038135169060200135610778565b61026c6004803603604081101561024c57600080fd5b508035600160a060020a03169060200135600160e060020a0319166107ef565b604080519115158252519081900360200190f35b61026c6004803603604081101561029657600080fd5b508035600160a060020a03169060200135600160e060020a0319166108aa565b6000600160a060020a038416156102cd57836102cf565b335b9050336102db82610570565b600160a060020a031614610339576040805160e560020a62461bcd02815260206004820152600f60248201527f4e6f7420746865206d616e616765720000000000000000000000000000000000604482015290519081900360640190fd5b6103428361092a565b15610397576040805160e560020a62461bcd02815260206004820152601a60248201527f4d757374206e6f7420626520616e204552433136352068617368000000000000604482015290519081900360640190fd5b600160a060020a038216158015906103b85750600160a060020a0382163314155b156104ff5760405160200180807f455243313832305f4143434550545f4d4147494300000000000000000000000081525060140190506040516020818303038152906040528051906020012082600160a060020a031663249cb3fa85846040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083815260200182600160a060020a0316600160a060020a031681526020019250505060206040518083038186803b15801561047e57600080fd5b505afa158015610492573d6000803e3d6000fd5b505050506040513d60208110156104a857600080fd5b5051146104ff576040805160e560020a62461bcd02815260206004820181905260248201527f446f6573206e6f7420696d706c656d656e742074686520696e74657266616365604482015290519081900360640190fd5b600160a060020a03818116600081815260208181526040808320888452909152808220805473ffffffffffffffffffffffffffffffffffffffff19169487169485179055518692917f93baa6efbd2244243bfee6ce4cfdd1d04fc4c0e9a786abd3a41313bd352db15391a450505050565b600160a060020a03818116600090815260016020526040812054909116151561059a5750806105b7565b50600160a060020a03808216600090815260016020526040902054165b919050565b336105c683610570565b600160a060020a031614610624576040805160e560020a62461bcd02815260206004820152600f60248201527f4e6f7420746865206d616e616765720000000000000000000000000000000000604482015290519081900360640190fd5b81600160a060020a031681600160a060020a0316146106435780610646565b60005b600160a060020a03838116600081815260016020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169585169590951790945592519184169290917f605c2dbf762e5f7d60a546d42e7205dcb1b011ebc62a61736a57c9089d3a43509190a35050565b600082826040516020018083838082843780830192505050925050506040516020818303038152906040528051906020012090505b92915050565b6106f882826107ef565b610703576000610705565b815b600160a060020a03928316600081815260208181526040808320600160e060020a031996909616808452958252808320805473ffffffffffffffffffffffffffffffffffffffff19169590971694909417909555908152600284528181209281529190925220805460ff19166001179055565b600080600160a060020a038416156107905783610792565b335b905061079d8361092a565b156107c357826107ad82826108aa565b6107b85760006107ba565b815b925050506106e8565b600160a060020a0390811660009081526020818152604080832086845290915290205416905092915050565b6000808061081d857f01ffc9a70000000000000000000000000000000000000000000000000000000061094c565b909250905081158061082d575080155b1561083d576000925050506106e8565b61084f85600160e060020a031961094c565b909250905081158061086057508015155b15610870576000925050506106e8565b61087a858561094c565b909250905060018214801561088f5750806001145b1561089f576001925050506106e8565b506000949350505050565b600160a060020a0382166000908152600260209081526040808320600160e060020a03198516845290915281205460ff1615156108f2576108eb83836107ef565b90506106e8565b50600160a060020a03808316600081815260208181526040808320600160e060020a0319871684529091529020549091161492915050565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff161590565b6040517f01ffc9a7000000000000000000000000000000000000000000000000000000008082526004820183905260009182919060208160248189617530fa90519096909550935050505056fea165627a7a72305820377f4a2d4301ede9949f163f319021a6e9c687c292a5e2b2c4734c126b524e6c0029"
5
- }
@@ -1,99 +0,0 @@
1
- const {
2
- getScriptRunnerFactory: S,
3
- extractWeb3Options,
4
- } = require("./libs/common");
5
-
6
- const SuperfluidSDK = require("@superfluid-finance/js-sdk");
7
-
8
- const SuperfluidGovernanceIIProxy = artifacts.require(
9
- "SuperfluidGovernanceIIProxy"
10
- );
11
- const SuperfluidGovernanceII = artifacts.require("SuperfluidGovernanceII");
12
- const TOGA = artifacts.require("TOGA");
13
-
14
- const BatchLiquidator = artifacts.require("BatchLiquidator");
15
-
16
- /**
17
- * @dev Deploy auxiliary contracts: governance, TOGA, BatchLiquidator
18
- * To be used after a community mainnet deployment,
19
- * with the "handover account" set as message sender.
20
- * - deploy SuperfluidGovernanceII with proxy
21
- * - set 3Ps config
22
- * - deploy TOGA
23
- * - set TOGA as rewardAddress
24
- * - deploy BatchLiquidator
25
- *
26
- * @param web3 The web3 instance to be used
27
- * @param from address to use for funding the deployer account
28
- *
29
- * Usage: npx truffle exec ops-scripts/deploy-aux-contracts.js
30
- *
31
- * (optional) ENV vars:
32
- * - GOV_LIQUIDATION_PERIOD overrides the default value of 4 hours
33
- * - GOV_PATRICIAN_PERIOD overrides the default value of 30 minutes
34
- * - TOGA_MIN_BOND_DURATION overrides the default value of 7 days
35
- *
36
- * You may also need to set RESOLVER_ADDRESS if not yet set in js-sdk.
37
- */
38
- module.exports = eval(`(${S.toString()})()`)(async function (
39
- args,
40
- options = {}
41
- ) {
42
- let {protocolReleaseVersion} = options;
43
-
44
- console.log("======== Deploying auxiliary contracts ========");
45
-
46
- const sf = new SuperfluidSDK.Framework({
47
- ...extractWeb3Options(options),
48
- version: protocolReleaseVersion,
49
- });
50
- await sf.initialize();
51
-
52
- console.log("deploying production governance...");
53
- const govProxy = await SuperfluidGovernanceIIProxy.new();
54
- console.log("governance proxy deployed at:", govProxy.address);
55
- const govLogic = await SuperfluidGovernanceII.new();
56
- console.log("governance logic deployed at:", govLogic.address);
57
- await govLogic.castrate();
58
- console.log("marked gov logic as initialized (castrate)");
59
- await govProxy.initializeProxy(govLogic.address);
60
- console.log("governance proxy initialized with logic");
61
- const gov = await SuperfluidGovernanceII.at(govProxy.address);
62
-
63
- const liquidationPeriod = process.env.GOV_LIQUIDATION_PERIOD || 14400;
64
- const patricianPeriod = process.env.GOV_PATRICIAN_PERIOD || 1800;
65
- await gov.setPPPConfig(
66
- sf.host.address,
67
- "0x0000000000000000000000000000000000000000", // default - for all tokens
68
- liquidationPeriod,
69
- patricianPeriod
70
- );
71
- console.log(
72
- `set 3Ps config to liquidation period of ${liquidationPeriod} and patrician period of ${patricianPeriod}`
73
- );
74
-
75
- console.log("deploying solvency related contracts");
76
- const minBondDuration = process.env.TOGA_MIN_BOND_DURATION || 604800;
77
- const toga = await TOGA.new(
78
- sf.host.address,
79
- minBondDuration
80
- );
81
- console.log("TOGA deployed at:", toga.address);
82
-
83
- await gov.setRewardAddress(
84
- sf.host.address,
85
- "0x0000000000000000000000000000000000000000",
86
- toga.address
87
- );
88
- console.log("reward address set to TOGA");
89
-
90
- const batchLiquidator = await BatchLiquidator.new();
91
- console.log("BatchLiquidator deployed at:", batchLiquidator.address);
92
-
93
- console.log("");
94
- console.log("LEFT TO BE DONE MANUALLY:");
95
- console.log("replace old governance with new governance:");
96
- console.log(
97
- `gov.replaceGovernance(${sf.host.address}, ${govProxy.address})`
98
- );
99
- });