@superfluid-finance/ethereum-contracts 1.2.2-dev.ec379f7.0 → 1.2.3-dev.c960cdd.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 (112) hide show
  1. package/build/contracts/AccessControl.json +1 -1
  2. package/build/contracts/AccessControlEnumerable.json +1 -1
  3. package/build/contracts/Address.json +1 -1
  4. package/build/contracts/AgreementBase.json +9 -9
  5. package/build/contracts/AgreementLibrary.json +1 -1
  6. package/build/contracts/BaseRelayRecipient.json +1 -1
  7. package/build/contracts/BatchLiquidator.json +1023 -1023
  8. package/build/contracts/BatchOperation.json +1 -1
  9. package/build/contracts/CFAv1Library.json +1 -1
  10. package/build/contracts/CallUtils.json +1 -1
  11. package/build/contracts/ClosingOnUpdateFlowTestApp.json +3580 -3580
  12. package/build/contracts/ConstantFlowAgreementV1.json +5088 -5088
  13. package/build/contracts/Context.json +1 -1
  14. package/build/contracts/ContextDefinitions.json +1 -1
  15. package/build/contracts/Create2.json +1 -1
  16. package/build/contracts/CustomSuperTokenBase.json +1 -1
  17. package/build/contracts/ERC165.json +1 -1
  18. package/build/contracts/ERC1820Implementer.json +79 -79
  19. package/build/contracts/ERC1820RegistryCompiled.json +256 -0
  20. package/build/contracts/ERC20.json +1008 -1008
  21. package/build/contracts/ERC20Burnable.json +1 -1
  22. package/build/contracts/ERC20Pausable.json +1 -1
  23. package/build/contracts/ERC20PresetMinterPauser.json +1816 -1816
  24. package/build/contracts/ERC20WithTokenInfo.json +1 -1
  25. package/build/contracts/ERC721.json +1834 -1834
  26. package/build/contracts/ERC777Helper.json +660 -660
  27. package/build/contracts/ERC777RecipientDrainingGas.json +1871 -1871
  28. package/build/contracts/ERC777RecipientReverting.json +1893 -1893
  29. package/build/contracts/EnumerableSet.json +1 -1
  30. package/build/contracts/ExclusiveInflowTestApp.json +3608 -3608
  31. package/build/contracts/FixedSizeData.json +405 -405
  32. package/build/contracts/FlowExchangeTestApp.json +3718 -3718
  33. package/build/contracts/FlowOperatorDefinitions.json +1 -1
  34. package/build/contracts/FullUpgradableSuperTokenProxy.json +316 -316
  35. package/build/contracts/IAccessControl.json +1 -1
  36. package/build/contracts/IAccessControlEnumerable.json +1 -1
  37. package/build/contracts/IConstantFlowAgreementV1.json +1 -1
  38. package/build/contracts/IDAv1Library.json +1 -1
  39. package/build/contracts/IERC165.json +1 -1
  40. package/build/contracts/IERC1820Implementer.json +1 -1
  41. package/build/contracts/IERC1820Registry.json +1 -1
  42. package/build/contracts/IERC20.json +1 -1
  43. package/build/contracts/IERC20Metadata.json +1 -1
  44. package/build/contracts/IERC721.json +1 -1
  45. package/build/contracts/IERC721Metadata.json +1 -1
  46. package/build/contracts/IERC721Receiver.json +1 -1
  47. package/build/contracts/IERC777.json +1 -1
  48. package/build/contracts/IERC777Recipient.json +1 -1
  49. package/build/contracts/IERC777Sender.json +1 -1
  50. package/build/contracts/IInstantDistributionAgreementV1.json +1 -1
  51. package/build/contracts/IMaticBridgedNativeSuperToken.json +1 -1
  52. package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +1 -1
  53. package/build/contracts/IMultiSigWallet.json +1 -1
  54. package/build/contracts/IPureSuperToken.json +1 -1
  55. package/build/contracts/IPureSuperTokenCustom.json +1 -1
  56. package/build/contracts/IRelayRecipient.json +1 -1
  57. package/build/contracts/IResolver.json +1 -1
  58. package/build/contracts/ISETH.json +1 -1
  59. package/build/contracts/ISETHCustom.json +1 -1
  60. package/build/contracts/ISuperAgreement.json +1 -1
  61. package/build/contracts/ISuperApp.json +1 -1
  62. package/build/contracts/ISuperToken.json +1 -1
  63. package/build/contracts/ISuperTokenFactory.json +1 -1
  64. package/build/contracts/ISuperfluid.json +1 -1
  65. package/build/contracts/ISuperfluidGovernance.json +1 -1
  66. package/build/contracts/ISuperfluidToken.json +1 -1
  67. package/build/contracts/ITOGAv1.json +2143 -2143
  68. package/build/contracts/ITOGAv2.json +2143 -2143
  69. package/build/contracts/Initializable.json +1 -1
  70. package/build/contracts/InstantDistributionAgreementV1.json +5413 -5413
  71. package/build/contracts/Int96SafeMath.json +504 -504
  72. package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +968 -968
  73. package/build/contracts/NonClosableOutflowTestApp.json +3483 -3483
  74. package/build/contracts/Ownable.json +1 -1
  75. package/build/contracts/Pausable.json +1 -1
  76. package/build/contracts/Proxy.json +1 -1
  77. package/build/contracts/PureSuperToken.json +691 -691
  78. package/build/contracts/Resolver.json +1058 -1058
  79. package/build/contracts/SETHProxy.json +658 -658
  80. package/build/contracts/SafeCast.json +1 -1
  81. package/build/contracts/SafeERC20.json +1 -1
  82. package/build/contracts/SafeMath.json +1 -1
  83. package/build/contracts/SelfDeletingFlowTestApp.json +3580 -3580
  84. package/build/contracts/SlotsBitmapLibrary.json +1704 -1704
  85. package/build/contracts/Strings.json +1 -1
  86. package/build/contracts/SuperAppBase.json +1 -1
  87. package/build/contracts/SuperAppDefinitions.json +1 -1
  88. package/build/contracts/SuperToken.json +9035 -9035
  89. package/build/contracts/SuperTokenFactory.json +2071 -2071
  90. package/build/contracts/SuperTokenFactoryBase.json +988 -988
  91. package/build/contracts/SuperTokenFactoryHelper.json +1092 -1092
  92. package/build/contracts/SuperUpgrader.json +2492 -2492
  93. package/build/contracts/Superfluid.json +12968 -12968
  94. package/build/contracts/SuperfluidFrameworkDeployer.json +3440 -2173
  95. package/build/contracts/SuperfluidGovernanceBase.json +8 -8
  96. package/build/contracts/SuperfluidGovernanceConfigs.json +1 -1
  97. package/build/contracts/SuperfluidGovernanceII.json +2019 -2019
  98. package/build/contracts/SuperfluidGovernanceIIProxy.json +224 -224
  99. package/build/contracts/SuperfluidLoader.json +749 -749
  100. package/build/contracts/SuperfluidToken.json +2233 -2233
  101. package/build/contracts/TOGA.json +4118 -4118
  102. package/build/contracts/TestGovernance.json +2399 -2399
  103. package/build/contracts/TestToken.json +1267 -1267
  104. package/build/contracts/TokenCustodian.json +903 -903
  105. package/build/contracts/TokenInfo.json +1 -1
  106. package/build/contracts/UInt128SafeMath.json +174 -174
  107. package/build/contracts/UUPSProxiable.json +233 -233
  108. package/build/contracts/UUPSProxy.json +257 -257
  109. package/build/contracts/UUPSUtils.json +85 -85
  110. package/contracts/libs/ERC1820RegistryCompiled.sol +10 -0
  111. package/contracts/utils/SuperfluidFrameworkDeployer.sol +24 -9
  112. package/package.json +2 -2
@@ -7,30 +7,30 @@
7
7
  "immutableReferences": {},
8
8
  "generatedSources": [],
9
9
  "deployedGeneratedSources": [],
10
- "sourceMap": "137:933:100:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;137:933:100;;;;;;;;;;;;;;;;;",
11
- "deployedSourceMap": "137:933:100:-:0;;;;;;;;",
10
+ "sourceMap": "137:933:101:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;137:933:101;;;;;;;;;;;;;;;;;",
11
+ "deployedSourceMap": "137:933:101:-:0;;;;;;;;",
12
12
  "source": "// SPDX-License-Identifier: AGPLv3\npragma solidity 0.8.13;\n\n/**\n * @title UUPS (Universal Upgradeable Proxy Standard) Shared Library\n */\nlibrary UUPSUtils {\n\n /**\n * @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)).\n */\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /// @dev Get implementation address.\n function implementation() internal view returns (address impl) {\n assembly { // solium-disable-line\n impl := sload(_IMPLEMENTATION_SLOT)\n }\n }\n\n /// @dev Set new implementation address.\n function setImplementation(address codeAddress) internal {\n assembly {\n // solium-disable-line\n sstore(\n _IMPLEMENTATION_SLOT,\n codeAddress\n )\n }\n }\n\n}\n",
13
13
  "sourcePath": "/home/runner/work/protocol-monorepo/protocol-monorepo/packages/ethereum-contracts/contracts/upgradability/UUPSUtils.sol",
14
14
  "ast": {
15
15
  "absolutePath": "project:/contracts/upgradability/UUPSUtils.sol",
16
16
  "exportedSymbols": {
17
17
  "UUPSUtils": [
18
- 36399
18
+ 36415
19
19
  ]
20
20
  },
21
- "id": 36400,
21
+ "id": 36416,
22
22
  "license": "AGPLv3",
23
23
  "nodeType": "SourceUnit",
24
24
  "nodes": [
25
25
  {
26
- "id": 36377,
26
+ "id": 36393,
27
27
  "literals": [
28
28
  "solidity",
29
29
  "0.8",
30
30
  ".13"
31
31
  ],
32
32
  "nodeType": "PragmaDirective",
33
- "src": "35:23:100"
33
+ "src": "35:23:101"
34
34
  },
35
35
  {
36
36
  "abstract": false,
@@ -39,35 +39,35 @@
39
39
  "contractDependencies": [],
40
40
  "contractKind": "library",
41
41
  "documentation": {
42
- "id": 36378,
42
+ "id": 36394,
43
43
  "nodeType": "StructuredDocumentation",
44
- "src": "60:76:100",
44
+ "src": "60:76:101",
45
45
  "text": " @title UUPS (Universal Upgradeable Proxy Standard) Shared Library"
46
46
  },
47
47
  "fullyImplemented": true,
48
- "id": 36399,
48
+ "id": 36415,
49
49
  "linearizedBaseContracts": [
50
- 36399
50
+ 36415
51
51
  ],
52
52
  "name": "UUPSUtils",
53
- "nameLocation": "145:9:100",
53
+ "nameLocation": "145:9:101",
54
54
  "nodeType": "ContractDefinition",
55
55
  "nodes": [
56
56
  {
57
57
  "constant": true,
58
58
  "documentation": {
59
- "id": 36379,
59
+ "id": 36395,
60
60
  "nodeType": "StructuredDocumentation",
61
- "src": "162:288:100",
61
+ "src": "162:288:101",
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": 36382,
64
+ "id": 36398,
65
65
  "mutability": "constant",
66
66
  "name": "_IMPLEMENTATION_SLOT",
67
- "nameLocation": "481:20:100",
67
+ "nameLocation": "481:20:101",
68
68
  "nodeType": "VariableDeclaration",
69
- "scope": 36399,
70
- "src": "455:115:100",
69
+ "scope": 36415,
70
+ "src": "455:115:101",
71
71
  "stateVariable": true,
72
72
  "storageLocation": "default",
73
73
  "typeDescriptions": {
@@ -75,10 +75,10 @@
75
75
  "typeString": "bytes32"
76
76
  },
77
77
  "typeName": {
78
- "id": 36380,
78
+ "id": 36396,
79
79
  "name": "bytes32",
80
80
  "nodeType": "ElementaryTypeName",
81
- "src": "455:7:100",
81
+ "src": "455:7:101",
82
82
  "typeDescriptions": {
83
83
  "typeIdentifier": "t_bytes32",
84
84
  "typeString": "bytes32"
@@ -86,14 +86,14 @@
86
86
  },
87
87
  "value": {
88
88
  "hexValue": "307833363038393461313362613161333231303636376338323834393264623938646361336532303736636333373335613932306133636135303564333832626263",
89
- "id": 36381,
89
+ "id": 36397,
90
90
  "isConstant": false,
91
91
  "isLValue": false,
92
92
  "isPure": true,
93
93
  "kind": "number",
94
94
  "lValueRequested": false,
95
95
  "nodeType": "Literal",
96
- "src": "504:66:100",
96
+ "src": "504:66:101",
97
97
  "typeDescriptions": {
98
98
  "typeIdentifier": "t_rational_24440054405305269366569402256811496959409073762505157381672968839269610695612_by_1",
99
99
  "typeString": "int_const 2444...(69 digits omitted)...5612"
@@ -104,39 +104,39 @@
104
104
  },
105
105
  {
106
106
  "body": {
107
- "id": 36389,
107
+ "id": 36405,
108
108
  "nodeType": "Block",
109
- "src": "681:107:100",
109
+ "src": "681:107:101",
110
110
  "statements": [
111
111
  {
112
112
  "AST": {
113
113
  "nodeType": "YulBlock",
114
- "src": "700:82:100",
114
+ "src": "700:82:101",
115
115
  "statements": [
116
116
  {
117
117
  "nodeType": "YulAssignment",
118
- "src": "737:35:100",
118
+ "src": "737:35:101",
119
119
  "value": {
120
120
  "arguments": [
121
121
  {
122
122
  "name": "_IMPLEMENTATION_SLOT",
123
123
  "nodeType": "YulIdentifier",
124
- "src": "751:20:100"
124
+ "src": "751:20:101"
125
125
  }
126
126
  ],
127
127
  "functionName": {
128
128
  "name": "sload",
129
129
  "nodeType": "YulIdentifier",
130
- "src": "745:5:100"
130
+ "src": "745:5:101"
131
131
  },
132
132
  "nodeType": "YulFunctionCall",
133
- "src": "745:27:100"
133
+ "src": "745:27:101"
134
134
  },
135
135
  "variableNames": [
136
136
  {
137
137
  "name": "impl",
138
138
  "nodeType": "YulIdentifier",
139
- "src": "737:4:100"
139
+ "src": "737:4:101"
140
140
  }
141
141
  ]
142
142
  }
@@ -145,58 +145,58 @@
145
145
  "evmVersion": "london",
146
146
  "externalReferences": [
147
147
  {
148
- "declaration": 36382,
148
+ "declaration": 36398,
149
149
  "isOffset": false,
150
150
  "isSlot": false,
151
- "src": "751:20:100",
151
+ "src": "751:20:101",
152
152
  "valueSize": 1
153
153
  },
154
154
  {
155
- "declaration": 36386,
155
+ "declaration": 36402,
156
156
  "isOffset": false,
157
157
  "isSlot": false,
158
- "src": "737:4:100",
158
+ "src": "737:4:101",
159
159
  "valueSize": 1
160
160
  }
161
161
  ],
162
- "id": 36388,
162
+ "id": 36404,
163
163
  "nodeType": "InlineAssembly",
164
- "src": "691:91:100"
164
+ "src": "691:91:101"
165
165
  }
166
166
  ]
167
167
  },
168
168
  "documentation": {
169
- "id": 36383,
169
+ "id": 36399,
170
170
  "nodeType": "StructuredDocumentation",
171
- "src": "577:36:100",
171
+ "src": "577:36:101",
172
172
  "text": "@dev Get implementation address."
173
173
  },
174
- "id": 36390,
174
+ "id": 36406,
175
175
  "implemented": true,
176
176
  "kind": "function",
177
177
  "modifiers": [],
178
178
  "name": "implementation",
179
- "nameLocation": "627:14:100",
179
+ "nameLocation": "627:14:101",
180
180
  "nodeType": "FunctionDefinition",
181
181
  "parameters": {
182
- "id": 36384,
182
+ "id": 36400,
183
183
  "nodeType": "ParameterList",
184
184
  "parameters": [],
185
- "src": "641:2:100"
185
+ "src": "641:2:101"
186
186
  },
187
187
  "returnParameters": {
188
- "id": 36387,
188
+ "id": 36403,
189
189
  "nodeType": "ParameterList",
190
190
  "parameters": [
191
191
  {
192
192
  "constant": false,
193
- "id": 36386,
193
+ "id": 36402,
194
194
  "mutability": "mutable",
195
195
  "name": "impl",
196
- "nameLocation": "675:4:100",
196
+ "nameLocation": "675:4:101",
197
197
  "nodeType": "VariableDeclaration",
198
- "scope": 36390,
199
- "src": "667:12:100",
198
+ "scope": 36406,
199
+ "src": "667:12:101",
200
200
  "stateVariable": false,
201
201
  "storageLocation": "default",
202
202
  "typeDescriptions": {
@@ -204,10 +204,10 @@
204
204
  "typeString": "address"
205
205
  },
206
206
  "typeName": {
207
- "id": 36385,
207
+ "id": 36401,
208
208
  "name": "address",
209
209
  "nodeType": "ElementaryTypeName",
210
- "src": "667:7:100",
210
+ "src": "667:7:101",
211
211
  "stateMutability": "nonpayable",
212
212
  "typeDescriptions": {
213
213
  "typeIdentifier": "t_address",
@@ -217,24 +217,24 @@
217
217
  "visibility": "internal"
218
218
  }
219
219
  ],
220
- "src": "666:14:100"
220
+ "src": "666:14:101"
221
221
  },
222
- "scope": 36399,
223
- "src": "618:170:100",
222
+ "scope": 36415,
223
+ "src": "618:170:101",
224
224
  "stateMutability": "view",
225
225
  "virtual": false,
226
226
  "visibility": "internal"
227
227
  },
228
228
  {
229
229
  "body": {
230
- "id": 36397,
230
+ "id": 36413,
231
231
  "nodeType": "Block",
232
- "src": "896:171:100",
232
+ "src": "896:171:101",
233
233
  "statements": [
234
234
  {
235
235
  "AST": {
236
236
  "nodeType": "YulBlock",
237
- "src": "915:146:100",
237
+ "src": "915:146:101",
238
238
  "statements": [
239
239
  {
240
240
  "expression": {
@@ -242,76 +242,76 @@
242
242
  {
243
243
  "name": "_IMPLEMENTATION_SLOT",
244
244
  "nodeType": "YulIdentifier",
245
- "src": "988:20:100"
245
+ "src": "988:20:101"
246
246
  },
247
247
  {
248
248
  "name": "codeAddress",
249
249
  "nodeType": "YulIdentifier",
250
- "src": "1026:11:100"
250
+ "src": "1026:11:101"
251
251
  }
252
252
  ],
253
253
  "functionName": {
254
254
  "name": "sstore",
255
255
  "nodeType": "YulIdentifier",
256
- "src": "964:6:100"
256
+ "src": "964:6:101"
257
257
  },
258
258
  "nodeType": "YulFunctionCall",
259
- "src": "964:87:100"
259
+ "src": "964:87:101"
260
260
  },
261
261
  "nodeType": "YulExpressionStatement",
262
- "src": "964:87:100"
262
+ "src": "964:87:101"
263
263
  }
264
264
  ]
265
265
  },
266
266
  "evmVersion": "london",
267
267
  "externalReferences": [
268
268
  {
269
- "declaration": 36382,
269
+ "declaration": 36398,
270
270
  "isOffset": false,
271
271
  "isSlot": false,
272
- "src": "988:20:100",
272
+ "src": "988:20:101",
273
273
  "valueSize": 1
274
274
  },
275
275
  {
276
- "declaration": 36393,
276
+ "declaration": 36409,
277
277
  "isOffset": false,
278
278
  "isSlot": false,
279
- "src": "1026:11:100",
279
+ "src": "1026:11:101",
280
280
  "valueSize": 1
281
281
  }
282
282
  ],
283
- "id": 36396,
283
+ "id": 36412,
284
284
  "nodeType": "InlineAssembly",
285
- "src": "906:155:100"
285
+ "src": "906:155:101"
286
286
  }
287
287
  ]
288
288
  },
289
289
  "documentation": {
290
- "id": 36391,
290
+ "id": 36407,
291
291
  "nodeType": "StructuredDocumentation",
292
- "src": "794:40:100",
292
+ "src": "794:40:101",
293
293
  "text": "@dev Set new implementation address."
294
294
  },
295
- "id": 36398,
295
+ "id": 36414,
296
296
  "implemented": true,
297
297
  "kind": "function",
298
298
  "modifiers": [],
299
299
  "name": "setImplementation",
300
- "nameLocation": "848:17:100",
300
+ "nameLocation": "848:17:101",
301
301
  "nodeType": "FunctionDefinition",
302
302
  "parameters": {
303
- "id": 36394,
303
+ "id": 36410,
304
304
  "nodeType": "ParameterList",
305
305
  "parameters": [
306
306
  {
307
307
  "constant": false,
308
- "id": 36393,
308
+ "id": 36409,
309
309
  "mutability": "mutable",
310
310
  "name": "codeAddress",
311
- "nameLocation": "874:11:100",
311
+ "nameLocation": "874:11:101",
312
312
  "nodeType": "VariableDeclaration",
313
- "scope": 36398,
314
- "src": "866:19:100",
313
+ "scope": 36414,
314
+ "src": "866:19:101",
315
315
  "stateVariable": false,
316
316
  "storageLocation": "default",
317
317
  "typeDescriptions": {
@@ -319,10 +319,10 @@
319
319
  "typeString": "address"
320
320
  },
321
321
  "typeName": {
322
- "id": 36392,
322
+ "id": 36408,
323
323
  "name": "address",
324
324
  "nodeType": "ElementaryTypeName",
325
- "src": "866:7:100",
325
+ "src": "866:7:101",
326
326
  "stateMutability": "nonpayable",
327
327
  "typeDescriptions": {
328
328
  "typeIdentifier": "t_address",
@@ -332,27 +332,27 @@
332
332
  "visibility": "internal"
333
333
  }
334
334
  ],
335
- "src": "865:21:100"
335
+ "src": "865:21:101"
336
336
  },
337
337
  "returnParameters": {
338
- "id": 36395,
338
+ "id": 36411,
339
339
  "nodeType": "ParameterList",
340
340
  "parameters": [],
341
- "src": "896:0:100"
341
+ "src": "896:0:101"
342
342
  },
343
- "scope": 36399,
344
- "src": "839:228:100",
343
+ "scope": 36415,
344
+ "src": "839:228:101",
345
345
  "stateMutability": "nonpayable",
346
346
  "virtual": false,
347
347
  "visibility": "internal"
348
348
  }
349
349
  ],
350
- "scope": 36400,
351
- "src": "137:933:100",
350
+ "scope": 36416,
351
+ "src": "137:933:101",
352
352
  "usedErrors": []
353
353
  }
354
354
  ],
355
- "src": "35:1036:100"
355
+ "src": "35:1036:101"
356
356
  },
357
357
  "compiler": {
358
358
  "name": "solc",
@@ -360,7 +360,7 @@
360
360
  },
361
361
  "networks": {},
362
362
  "schemaVersion": "3.4.7",
363
- "updatedAt": "2022-05-06T12:43:05.834Z",
363
+ "updatedAt": "2022-05-09T18:30:12.032Z",
364
364
  "devdoc": {
365
365
  "kind": "dev",
366
366
  "methods": {},
@@ -0,0 +1,10 @@
1
+ // SPDX-License-Identifier: AGPLv3
2
+ // solhint-disable const-name-snakecase
3
+ // solhint-disable max-line-length
4
+ pragma solidity 0.8.13;
5
+
6
+ /// @dev This is meant to be used by test framework to get the raw bytecode without compiling the origin contract
7
+ library ERC1820RegistryCompiled {
8
+ address internal constant at = address(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);
9
+ bytes internal constant bin = bytes(hex"608060405234801561001057600080fd5b50600436106100a5576000357c010000000000000000000000000000000000000000000000000000000090048063a41e7d5111610078578063a41e7d51146101d4578063aabbb8ca1461020a578063b705676514610236578063f712f3e814610280576100a5565b806329965a1d146100aa5780633d584063146100e25780635df8122f1461012457806365ba36c114610152575b600080fd5b6100e0600480360360608110156100c057600080fd5b50600160a060020a038135811691602081013591604090910135166102b6565b005b610108600480360360208110156100f857600080fd5b5035600160a060020a0316610570565b60408051600160a060020a039092168252519081900360200190f35b6100e06004803603604081101561013a57600080fd5b50600160a060020a03813581169160200135166105bc565b6101c26004803603602081101561016857600080fd5b81019060208101813564010000000081111561018357600080fd5b82018360208201111561019557600080fd5b803590602001918460018302840111640100000000831117156101b757600080fd5b5090925090506106b3565b60408051918252519081900360200190f35b6100e0600480360360408110156101ea57600080fd5b508035600160a060020a03169060200135600160e060020a0319166106ee565b6101086004803603604081101561022057600080fd5b50600160a060020a038135169060200135610778565b61026c6004803603604081101561024c57600080fd5b508035600160a060020a03169060200135600160e060020a0319166107ef565b604080519115158252519081900360200190f35b61026c6004803603604081101561029657600080fd5b508035600160a060020a03169060200135600160e060020a0319166108aa565b6000600160a060020a038416156102cd57836102cf565b335b9050336102db82610570565b600160a060020a031614610339576040805160e560020a62461bcd02815260206004820152600f60248201527f4e6f7420746865206d616e616765720000000000000000000000000000000000604482015290519081900360640190fd5b6103428361092a565b15610397576040805160e560020a62461bcd02815260206004820152601a60248201527f4d757374206e6f7420626520616e204552433136352068617368000000000000604482015290519081900360640190fd5b600160a060020a038216158015906103b85750600160a060020a0382163314155b156104ff5760405160200180807f455243313832305f4143434550545f4d4147494300000000000000000000000081525060140190506040516020818303038152906040528051906020012082600160a060020a031663249cb3fa85846040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083815260200182600160a060020a0316600160a060020a031681526020019250505060206040518083038186803b15801561047e57600080fd5b505afa158015610492573d6000803e3d6000fd5b505050506040513d60208110156104a857600080fd5b5051146104ff576040805160e560020a62461bcd02815260206004820181905260248201527f446f6573206e6f7420696d706c656d656e742074686520696e74657266616365604482015290519081900360640190fd5b600160a060020a03818116600081815260208181526040808320888452909152808220805473ffffffffffffffffffffffffffffffffffffffff19169487169485179055518692917f93baa6efbd2244243bfee6ce4cfdd1d04fc4c0e9a786abd3a41313bd352db15391a450505050565b600160a060020a03818116600090815260016020526040812054909116151561059a5750806105b7565b50600160a060020a03808216600090815260016020526040902054165b919050565b336105c683610570565b600160a060020a031614610624576040805160e560020a62461bcd02815260206004820152600f60248201527f4e6f7420746865206d616e616765720000000000000000000000000000000000604482015290519081900360640190fd5b81600160a060020a031681600160a060020a0316146106435780610646565b60005b600160a060020a03838116600081815260016020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169585169590951790945592519184169290917f605c2dbf762e5f7d60a546d42e7205dcb1b011ebc62a61736a57c9089d3a43509190a35050565b600082826040516020018083838082843780830192505050925050506040516020818303038152906040528051906020012090505b92915050565b6106f882826107ef565b610703576000610705565b815b600160a060020a03928316600081815260208181526040808320600160e060020a031996909616808452958252808320805473ffffffffffffffffffffffffffffffffffffffff19169590971694909417909555908152600284528181209281529190925220805460ff19166001179055565b600080600160a060020a038416156107905783610792565b335b905061079d8361092a565b156107c357826107ad82826108aa565b6107b85760006107ba565b815b925050506106e8565b600160a060020a0390811660009081526020818152604080832086845290915290205416905092915050565b6000808061081d857f01ffc9a70000000000000000000000000000000000000000000000000000000061094c565b909250905081158061082d575080155b1561083d576000925050506106e8565b61084f85600160e060020a031961094c565b909250905081158061086057508015155b15610870576000925050506106e8565b61087a858561094c565b909250905060018214801561088f5750806001145b1561089f576001925050506106e8565b506000949350505050565b600160a060020a0382166000908152600260209081526040808320600160e060020a03198516845290915281205460ff1615156108f2576108eb83836107ef565b90506106e8565b50600160a060020a03808316600081815260208181526040808320600160e060020a0319871684529091529020549091161492915050565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff161590565b6040517f01ffc9a7000000000000000000000000000000000000000000000000000000008082526004820183905260009182919060208160248189617530fa90519096909550935050505056fea165627a7a72305820377f4a2d4301ede9949f163f319021a6e9c687c292a5e2b2c4734c126b524e6c0029");
10
+ }
@@ -16,17 +16,28 @@ import {
16
16
  ERC20WithTokenInfo
17
17
  } from "../superfluid/SuperTokenFactory.sol";
18
18
  import {SuperToken} from "../superfluid/SuperToken.sol";
19
+ import "../apps/CFAv1Library.sol";
20
+ import "../apps/IDAv1Library.sol";
19
21
 
20
22
 
21
23
  /// @title Superfluid Framework Deployer
22
24
  /// @notice This is NOT for deploying public nets, but rather only for tesing envs
23
25
  contract SuperfluidFrameworkDeployer {
24
26
 
27
+ struct Framework {
28
+ TestGovernance governance;
29
+ Superfluid host;
30
+ ConstantFlowAgreementV1 cfa;
31
+ CFAv1Library.InitData cfaLib;
32
+ InstantDistributionAgreementV1 ida;
33
+ IDAv1Library.InitData idaLib;
34
+ SuperTokenFactory superTokenFactory;
35
+ }
36
+
25
37
  TestGovernance internal governance;
26
38
  Superfluid internal host;
27
39
  ConstantFlowAgreementV1 internal cfa;
28
40
  InstantDistributionAgreementV1 internal ida;
29
- SuperTokenFactoryHelper internal superTokenFactoryHelper;
30
41
  SuperTokenFactory internal superTokenFactory;
31
42
 
32
43
  /// @notice Deploys everything... probably
@@ -73,7 +84,7 @@ contract SuperfluidFrameworkDeployer {
73
84
  governance.registerAgreementClass(host, address(ida));
74
85
 
75
86
  // Deploy SuperTokenFactoryHelper
76
- superTokenFactoryHelper = new SuperTokenFactoryHelper();
87
+ SuperTokenFactoryHelper superTokenFactoryHelper = new SuperTokenFactoryHelper();
77
88
 
78
89
  // Deploy SuperTokenFactory
79
90
  superTokenFactory = new SuperTokenFactory(
@@ -93,14 +104,18 @@ contract SuperfluidFrameworkDeployer {
93
104
  /// @notice Fetches the framework contracts
94
105
  function getFramework()
95
106
  external view
96
- returns (
97
- Superfluid,
98
- ConstantFlowAgreementV1,
99
- InstantDistributionAgreementV1,
100
- SuperTokenFactory
101
- )
107
+ returns (Framework memory sf)
102
108
  {
103
- return (host, cfa, ida, superTokenFactory);
109
+ sf = Framework({
110
+ governance: governance,
111
+ host: host,
112
+ cfa: cfa,
113
+ cfaLib: CFAv1Library.InitData(host, cfa),
114
+ ida: ida,
115
+ idaLib: IDAv1Library.InitData(host, ida),
116
+ superTokenFactory: superTokenFactory
117
+ });
118
+ return sf;
104
119
  }
105
120
 
106
121
  /// @notice Deploy new wrapper super token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superfluid-finance/ethereum-contracts",
3
- "version": "1.2.2-dev.ec379f7.0",
3
+ "version": "1.2.3-dev.c960cdd.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": {
@@ -56,7 +56,7 @@
56
56
  "dependencies": {
57
57
  "@decentral.ee/web3-helpers": "0.5.3",
58
58
  "@openzeppelin/contracts": "4.5.0",
59
- "@superfluid-finance/js-sdk": "0.5.12",
59
+ "@superfluid-finance/js-sdk": "^0.5.14-dev.c960cdd.0",
60
60
  "@truffle/contract": "4.5.5",
61
61
  "ethereumjs-tx": "2.1.2",
62
62
  "ethereumjs-util": "7.1.4",