@superfluid-finance/ethereum-contracts 1.2.3-dev.c35a287.0 → 1.2.3-dev.cd892eb.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.
- package/build/contracts/AccessControl.json +1 -1
- package/build/contracts/AccessControlEnumerable.json +1 -1
- package/build/contracts/Address.json +1 -1
- package/build/contracts/AgreementBase.json +9 -9
- package/build/contracts/AgreementLibrary.json +4 -4
- package/build/contracts/BaseRelayRecipient.json +1 -1
- package/build/contracts/BatchLiquidator.json +165 -165
- package/build/contracts/BatchOperation.json +1 -1
- package/build/contracts/CFAv1Library.json +4 -4
- package/build/contracts/CallUtils.json +1 -1
- package/build/contracts/ClosingOnUpdateFlowTestApp.json +4 -4
- package/build/contracts/ConstantFlowAgreementV1.json +5 -5
- package/build/contracts/Context.json +1 -1
- package/build/contracts/ContextDefinitions.json +1 -1
- package/build/contracts/Create2.json +1 -1
- package/build/contracts/CustomSuperTokenBase.json +2 -2
- package/build/contracts/ERC165.json +1 -1
- package/build/contracts/ERC1820Implementer.json +1 -1
- package/build/contracts/ERC1820RegistryCompiled.json +1 -1
- package/build/contracts/ERC20.json +1 -1
- package/build/contracts/ERC20Burnable.json +1 -1
- package/build/contracts/ERC20Pausable.json +1 -1
- package/build/contracts/ERC20PresetMinterPauser.json +1 -1
- package/build/contracts/ERC20WithTokenInfo.json +1 -1
- package/build/contracts/ERC777Helper.json +1 -1
- package/build/contracts/ERC777RecipientDrainingGas.json +4 -4
- package/build/contracts/ERC777RecipientReverting.json +4 -4
- package/build/contracts/EnumerableSet.json +1 -1
- package/build/contracts/ExclusiveInflowTestApp.json +4 -4
- package/build/contracts/FixedSizeData.json +1 -1
- package/build/contracts/FlowExchangeTestApp.json +4 -4
- package/build/contracts/FlowOperatorDefinitions.json +1 -1
- package/build/contracts/FullUpgradableSuperTokenProxy.json +4 -4
- package/build/contracts/IAccessControl.json +1 -1
- package/build/contracts/IAccessControlEnumerable.json +1 -1
- package/build/contracts/IConstantFlowAgreementV1.json +1 -1
- package/build/contracts/IDAv1Library.json +4 -4
- package/build/contracts/IERC165.json +1 -1
- package/build/contracts/IERC1820Implementer.json +1 -1
- package/build/contracts/IERC1820Registry.json +1 -1
- package/build/contracts/IERC20.json +1 -1
- package/build/contracts/IERC20Metadata.json +1 -1
- package/build/contracts/IERC777.json +1 -1
- package/build/contracts/IERC777Recipient.json +1 -1
- package/build/contracts/IERC777Sender.json +1 -1
- package/build/contracts/IInstantDistributionAgreementV1.json +1 -1
- package/build/contracts/IMaticBridgedNativeSuperToken.json +2 -2
- package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +2 -2
- package/build/contracts/IMultiSigWallet.json +1 -1
- package/build/contracts/IPureSuperToken.json +2 -2
- package/build/contracts/IPureSuperTokenCustom.json +2 -2
- package/build/contracts/IRelayRecipient.json +1 -1
- package/build/contracts/IResolver.json +1 -1
- package/build/contracts/ISETH.json +2 -2
- package/build/contracts/ISETHCustom.json +2 -2
- package/build/contracts/ISuperAgreement.json +1 -1
- package/build/contracts/ISuperApp.json +2 -2
- package/build/contracts/ISuperToken.json +2 -2
- package/build/contracts/ISuperTokenFactory.json +2 -2
- package/build/contracts/ISuperfluid.json +425 -418
- package/build/contracts/ISuperfluidGovernance.json +2 -2
- package/build/contracts/ISuperfluidToken.json +1 -1
- package/build/contracts/ITOGAv1.json +1208 -1208
- package/build/contracts/ITOGAv2.json +1208 -1208
- package/build/contracts/Initializable.json +1 -1
- package/build/contracts/InstantDistributionAgreementV1.json +5 -5
- package/build/contracts/Int96SafeMath.json +1 -1
- package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +191 -191
- package/build/contracts/NonClosableOutflowTestApp.json +4 -4
- package/build/contracts/Ownable.json +1 -1
- package/build/contracts/Pausable.json +1 -1
- package/build/contracts/Proxy.json +1 -1
- package/build/contracts/PureSuperToken.json +88 -88
- package/build/contracts/Resolver.json +90 -90
- package/build/contracts/SETHProxy.json +196 -196
- package/build/contracts/SafeCast.json +1 -1
- package/build/contracts/SafeERC20.json +1 -1
- package/build/contracts/SafeMath.json +1 -1
- package/build/contracts/SelfDeletingFlowTestApp.json +4 -4
- package/build/contracts/SlotsBitmapLibrary.json +1 -1
- package/build/contracts/Strings.json +1 -1
- package/build/contracts/SuperAppBase.json +2 -2
- package/build/contracts/SuperAppDefinitions.json +1 -1
- package/build/contracts/SuperToken.json +46 -46
- package/build/contracts/SuperTokenFactory.json +35 -35
- package/build/contracts/SuperTokenFactoryBase.json +33 -33
- package/build/contracts/SuperTokenFactoryHelper.json +35 -35
- package/build/contracts/SuperUpgrader.json +422 -422
- package/build/contracts/Superfluid.json +5488 -5454
- package/build/contracts/SuperfluidFrameworkDeployer.json +472 -472
- package/build/contracts/SuperfluidGovernanceBase.json +9 -9
- package/build/contracts/SuperfluidGovernanceConfigs.json +1 -1
- package/build/contracts/SuperfluidGovernanceII.json +17 -17
- package/build/contracts/SuperfluidGovernanceIIProxy.json +17 -17
- package/build/contracts/SuperfluidLoader.json +144 -144
- package/build/contracts/SuperfluidToken.json +1217 -1217
- package/build/contracts/TOGA.json +1218 -1218
- package/build/contracts/TestGovernance.json +171 -171
- package/build/contracts/TestToken.json +94 -94
- package/build/contracts/TokenCustodian.json +214 -214
- package/build/contracts/TokenInfo.json +1 -1
- package/build/contracts/UInt128SafeMath.json +1 -1
- package/build/contracts/UUPSProxiable.json +132 -132
- package/build/contracts/UUPSProxy.json +81 -81
- package/build/contracts/UUPSUtils.json +37 -37
- package/build/contracts-sizes.txt +7 -7
- package/contracts/interfaces/superfluid/ISuperfluid.sol +14 -6
- package/contracts/superfluid/Superfluid.sol +12 -10
- package/package.json +2 -2
- package/scripts/{deploy-unlisted-native-super-token.js → deploy-unlisted-pure-super-token.js} +4 -4
- package/scripts/gov-transfer-framework-ownership.js +3 -3
- package/scripts/libs/getConfig.js +3 -3
- package/utils/README.md +19 -1
- package/utils/stream-closer.html +212 -0
- package/utils/supertoken-deployer.html +1 -1
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"absolutePath": "project:/contracts/upgradability/UUPSUtils.sol",
|
|
16
16
|
"exportedSymbols": {
|
|
17
17
|
"UUPSUtils": [
|
|
18
|
-
|
|
18
|
+
35281
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
|
-
"id":
|
|
21
|
+
"id": 35282,
|
|
22
22
|
"license": "AGPLv3",
|
|
23
23
|
"nodeType": "SourceUnit",
|
|
24
24
|
"nodes": [
|
|
25
25
|
{
|
|
26
|
-
"id":
|
|
26
|
+
"id": 35259,
|
|
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":
|
|
42
|
+
"id": 35260,
|
|
43
43
|
"nodeType": "StructuredDocumentation",
|
|
44
44
|
"src": "60:76:97",
|
|
45
45
|
"text": " @title UUPS (Universal Upgradeable Proxy Standard) Shared Library"
|
|
46
46
|
},
|
|
47
47
|
"fullyImplemented": true,
|
|
48
|
-
"id":
|
|
48
|
+
"id": 35281,
|
|
49
49
|
"linearizedBaseContracts": [
|
|
50
|
-
|
|
50
|
+
35281
|
|
51
51
|
],
|
|
52
52
|
"name": "UUPSUtils",
|
|
53
53
|
"nameLocation": "145:9:97",
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
{
|
|
57
57
|
"constant": true,
|
|
58
58
|
"documentation": {
|
|
59
|
-
"id":
|
|
59
|
+
"id": 35261,
|
|
60
60
|
"nodeType": "StructuredDocumentation",
|
|
61
61
|
"src": "162:288:97",
|
|
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":
|
|
64
|
+
"id": 35264,
|
|
65
65
|
"mutability": "constant",
|
|
66
66
|
"name": "_IMPLEMENTATION_SLOT",
|
|
67
67
|
"nameLocation": "481:20:97",
|
|
68
68
|
"nodeType": "VariableDeclaration",
|
|
69
|
-
"scope":
|
|
69
|
+
"scope": 35281,
|
|
70
70
|
"src": "455:115:97",
|
|
71
71
|
"stateVariable": true,
|
|
72
72
|
"storageLocation": "default",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"typeString": "bytes32"
|
|
76
76
|
},
|
|
77
77
|
"typeName": {
|
|
78
|
-
"id":
|
|
78
|
+
"id": 35262,
|
|
79
79
|
"name": "bytes32",
|
|
80
80
|
"nodeType": "ElementaryTypeName",
|
|
81
81
|
"src": "455:7:97",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"value": {
|
|
88
88
|
"hexValue": "307833363038393461313362613161333231303636376338323834393264623938646361336532303736636333373335613932306133636135303564333832626263",
|
|
89
|
-
"id":
|
|
89
|
+
"id": 35263,
|
|
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":
|
|
107
|
+
"id": 35271,
|
|
108
108
|
"nodeType": "Block",
|
|
109
109
|
"src": "681:107:97",
|
|
110
110
|
"statements": [
|
|
@@ -145,33 +145,33 @@
|
|
|
145
145
|
"evmVersion": "london",
|
|
146
146
|
"externalReferences": [
|
|
147
147
|
{
|
|
148
|
-
"declaration":
|
|
148
|
+
"declaration": 35264,
|
|
149
149
|
"isOffset": false,
|
|
150
150
|
"isSlot": false,
|
|
151
151
|
"src": "751:20:97",
|
|
152
152
|
"valueSize": 1
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
|
-
"declaration":
|
|
155
|
+
"declaration": 35268,
|
|
156
156
|
"isOffset": false,
|
|
157
157
|
"isSlot": false,
|
|
158
158
|
"src": "737:4:97",
|
|
159
159
|
"valueSize": 1
|
|
160
160
|
}
|
|
161
161
|
],
|
|
162
|
-
"id":
|
|
162
|
+
"id": 35270,
|
|
163
163
|
"nodeType": "InlineAssembly",
|
|
164
164
|
"src": "691:91:97"
|
|
165
165
|
}
|
|
166
166
|
]
|
|
167
167
|
},
|
|
168
168
|
"documentation": {
|
|
169
|
-
"id":
|
|
169
|
+
"id": 35265,
|
|
170
170
|
"nodeType": "StructuredDocumentation",
|
|
171
171
|
"src": "577:36:97",
|
|
172
172
|
"text": "@dev Get implementation address."
|
|
173
173
|
},
|
|
174
|
-
"id":
|
|
174
|
+
"id": 35272,
|
|
175
175
|
"implemented": true,
|
|
176
176
|
"kind": "function",
|
|
177
177
|
"modifiers": [],
|
|
@@ -179,23 +179,23 @@
|
|
|
179
179
|
"nameLocation": "627:14:97",
|
|
180
180
|
"nodeType": "FunctionDefinition",
|
|
181
181
|
"parameters": {
|
|
182
|
-
"id":
|
|
182
|
+
"id": 35266,
|
|
183
183
|
"nodeType": "ParameterList",
|
|
184
184
|
"parameters": [],
|
|
185
185
|
"src": "641:2:97"
|
|
186
186
|
},
|
|
187
187
|
"returnParameters": {
|
|
188
|
-
"id":
|
|
188
|
+
"id": 35269,
|
|
189
189
|
"nodeType": "ParameterList",
|
|
190
190
|
"parameters": [
|
|
191
191
|
{
|
|
192
192
|
"constant": false,
|
|
193
|
-
"id":
|
|
193
|
+
"id": 35268,
|
|
194
194
|
"mutability": "mutable",
|
|
195
195
|
"name": "impl",
|
|
196
196
|
"nameLocation": "675:4:97",
|
|
197
197
|
"nodeType": "VariableDeclaration",
|
|
198
|
-
"scope":
|
|
198
|
+
"scope": 35272,
|
|
199
199
|
"src": "667:12:97",
|
|
200
200
|
"stateVariable": false,
|
|
201
201
|
"storageLocation": "default",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"typeString": "address"
|
|
205
205
|
},
|
|
206
206
|
"typeName": {
|
|
207
|
-
"id":
|
|
207
|
+
"id": 35267,
|
|
208
208
|
"name": "address",
|
|
209
209
|
"nodeType": "ElementaryTypeName",
|
|
210
210
|
"src": "667:7:97",
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
],
|
|
220
220
|
"src": "666:14:97"
|
|
221
221
|
},
|
|
222
|
-
"scope":
|
|
222
|
+
"scope": 35281,
|
|
223
223
|
"src": "618:170:97",
|
|
224
224
|
"stateMutability": "view",
|
|
225
225
|
"virtual": false,
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
"body": {
|
|
230
|
-
"id":
|
|
230
|
+
"id": 35279,
|
|
231
231
|
"nodeType": "Block",
|
|
232
232
|
"src": "896:171:97",
|
|
233
233
|
"statements": [
|
|
@@ -266,33 +266,33 @@
|
|
|
266
266
|
"evmVersion": "london",
|
|
267
267
|
"externalReferences": [
|
|
268
268
|
{
|
|
269
|
-
"declaration":
|
|
269
|
+
"declaration": 35264,
|
|
270
270
|
"isOffset": false,
|
|
271
271
|
"isSlot": false,
|
|
272
272
|
"src": "988:20:97",
|
|
273
273
|
"valueSize": 1
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
|
-
"declaration":
|
|
276
|
+
"declaration": 35275,
|
|
277
277
|
"isOffset": false,
|
|
278
278
|
"isSlot": false,
|
|
279
279
|
"src": "1026:11:97",
|
|
280
280
|
"valueSize": 1
|
|
281
281
|
}
|
|
282
282
|
],
|
|
283
|
-
"id":
|
|
283
|
+
"id": 35278,
|
|
284
284
|
"nodeType": "InlineAssembly",
|
|
285
285
|
"src": "906:155:97"
|
|
286
286
|
}
|
|
287
287
|
]
|
|
288
288
|
},
|
|
289
289
|
"documentation": {
|
|
290
|
-
"id":
|
|
290
|
+
"id": 35273,
|
|
291
291
|
"nodeType": "StructuredDocumentation",
|
|
292
292
|
"src": "794:40:97",
|
|
293
293
|
"text": "@dev Set new implementation address."
|
|
294
294
|
},
|
|
295
|
-
"id":
|
|
295
|
+
"id": 35280,
|
|
296
296
|
"implemented": true,
|
|
297
297
|
"kind": "function",
|
|
298
298
|
"modifiers": [],
|
|
@@ -300,17 +300,17 @@
|
|
|
300
300
|
"nameLocation": "848:17:97",
|
|
301
301
|
"nodeType": "FunctionDefinition",
|
|
302
302
|
"parameters": {
|
|
303
|
-
"id":
|
|
303
|
+
"id": 35276,
|
|
304
304
|
"nodeType": "ParameterList",
|
|
305
305
|
"parameters": [
|
|
306
306
|
{
|
|
307
307
|
"constant": false,
|
|
308
|
-
"id":
|
|
308
|
+
"id": 35275,
|
|
309
309
|
"mutability": "mutable",
|
|
310
310
|
"name": "codeAddress",
|
|
311
311
|
"nameLocation": "874:11:97",
|
|
312
312
|
"nodeType": "VariableDeclaration",
|
|
313
|
-
"scope":
|
|
313
|
+
"scope": 35280,
|
|
314
314
|
"src": "866:19:97",
|
|
315
315
|
"stateVariable": false,
|
|
316
316
|
"storageLocation": "default",
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
"typeString": "address"
|
|
320
320
|
},
|
|
321
321
|
"typeName": {
|
|
322
|
-
"id":
|
|
322
|
+
"id": 35274,
|
|
323
323
|
"name": "address",
|
|
324
324
|
"nodeType": "ElementaryTypeName",
|
|
325
325
|
"src": "866:7:97",
|
|
@@ -335,19 +335,19 @@
|
|
|
335
335
|
"src": "865:21:97"
|
|
336
336
|
},
|
|
337
337
|
"returnParameters": {
|
|
338
|
-
"id":
|
|
338
|
+
"id": 35277,
|
|
339
339
|
"nodeType": "ParameterList",
|
|
340
340
|
"parameters": [],
|
|
341
341
|
"src": "896:0:97"
|
|
342
342
|
},
|
|
343
|
-
"scope":
|
|
343
|
+
"scope": 35281,
|
|
344
344
|
"src": "839:228:97",
|
|
345
345
|
"stateMutability": "nonpayable",
|
|
346
346
|
"virtual": false,
|
|
347
347
|
"visibility": "internal"
|
|
348
348
|
}
|
|
349
349
|
],
|
|
350
|
-
"scope":
|
|
350
|
+
"scope": 35282,
|
|
351
351
|
"src": "137:933:97",
|
|
352
352
|
"usedErrors": []
|
|
353
353
|
}
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
},
|
|
361
361
|
"networks": {},
|
|
362
362
|
"schemaVersion": "3.4.7",
|
|
363
|
-
"updatedAt": "2022-05-
|
|
363
|
+
"updatedAt": "2022-05-19T14:37:34.378Z",
|
|
364
364
|
"devdoc": {
|
|
365
365
|
"kind": "dev",
|
|
366
366
|
"methods": {},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
FullUpgradableSuperTokenProxy.sol : 635 (23941)
|
|
3
|
-
SuperToken.sol : 18673 (5903)
|
|
1
|
+
Superfluid.sol : 22090 (2486)
|
|
4
2
|
SuperfluidToken.sol : 2 (24574)
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
SuperToken.sol : 18673 (5903)
|
|
4
|
+
FullUpgradableSuperTokenProxy.sol : 635 (23941)
|
|
5
|
+
SuperTokenFactory.sol : 4997 (19579)
|
|
7
6
|
AgreementLibrary.sol : 143 (24433)
|
|
8
|
-
AgreementBase.sol : 2 (24574)
|
|
9
7
|
InstantDistributionAgreementV1.sol : 21970 (2606)
|
|
10
|
-
|
|
8
|
+
AgreementBase.sol : 2 (24574)
|
|
9
|
+
ConstantFlowAgreementV1.sol : 21777 (2799)
|
|
11
10
|
SuperfluidGovernanceII.sol : 6831 (17745)
|
|
11
|
+
SuperfluidGovernanceBase.sol : 2 (24574)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SPDX-License-Identifier: AGPLv3
|
|
2
|
-
pragma solidity >= 0.8.
|
|
2
|
+
pragma solidity >= 0.8.2;
|
|
3
3
|
|
|
4
4
|
import { ISuperfluidGovernance } from "./ISuperfluidGovernance.sol";
|
|
5
5
|
import { ISuperfluidToken } from "./ISuperfluidToken.sol";
|
|
@@ -184,7 +184,9 @@ interface ISuperfluid {
|
|
|
184
184
|
*************************************************************************/
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
|
-
* @dev Message sender declares
|
|
187
|
+
* @dev Message sender (must be a contract) declares itself as a super app.
|
|
188
|
+
* @custom:deprecated you should use `registerAppWithKey` or `registerAppByFactory` instead,
|
|
189
|
+
* because app registration is currently governance permissioned on mainnets.
|
|
188
190
|
* @param configWord The super app manifest configuration, flags are defined in
|
|
189
191
|
* `SuperAppDefinitions`
|
|
190
192
|
*/
|
|
@@ -196,18 +198,24 @@ interface ISuperfluid {
|
|
|
196
198
|
event AppRegistered(ISuperApp indexed app);
|
|
197
199
|
|
|
198
200
|
/**
|
|
199
|
-
* @dev Message sender declares
|
|
201
|
+
* @dev Message sender declares itself as a super app.
|
|
200
202
|
* @param configWord The super app manifest configuration, flags are defined in
|
|
201
203
|
* `SuperAppDefinitions`
|
|
202
|
-
* @param registrationKey The registration key issued by the governance
|
|
204
|
+
* @param registrationKey The registration key issued by the governance, needed to
|
|
205
|
+
* register on a mainnet.
|
|
206
|
+
* See https://github.com/superfluid-finance/protocol-monorepo/wiki/Super-App-White-listing-Guide
|
|
207
|
+
* On testnets or in dev environment, a placeholder (e.g. empty string) can be used.
|
|
208
|
+
* @notice While the message sender must be the super app itself, the transaction sender (tx.origin)
|
|
209
|
+
* must be the deployer account the registration key was issued for.
|
|
203
210
|
*/
|
|
204
211
|
function registerAppWithKey(uint256 configWord, string calldata registrationKey) external;
|
|
205
212
|
|
|
206
213
|
/**
|
|
207
|
-
* @dev Message sender declares app as a super app
|
|
214
|
+
* @dev Message sender (must be a contract) declares app as a super app
|
|
208
215
|
* @param configWord The super app manifest configuration, flags are defined in
|
|
209
216
|
* `SuperAppDefinitions`
|
|
210
|
-
*
|
|
217
|
+
* @notice On mainnet deployments, only factory contracts pre-authorized by governance can use this.
|
|
218
|
+
* See https://github.com/superfluid-finance/protocol-monorepo/wiki/Super-App-White-listing-Guide
|
|
211
219
|
*/
|
|
212
220
|
function registerAppByFactory(ISuperApp app, uint256 configWord) external;
|
|
213
221
|
|
|
@@ -315,16 +315,18 @@ contract Superfluid is
|
|
|
315
315
|
tx.origin,
|
|
316
316
|
registrationKey
|
|
317
317
|
);
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
318
|
+
if (APP_WHITE_LISTING_ENABLED) {
|
|
319
|
+
// check if the key is valid and not expired
|
|
320
|
+
require(
|
|
321
|
+
_gov.getConfigAsUint256(
|
|
322
|
+
this,
|
|
323
|
+
ISuperfluidToken(address(0)),
|
|
324
|
+
configKey
|
|
325
|
+
// solhint-disable-next-line not-rely-on-time
|
|
326
|
+
) >= block.timestamp,
|
|
327
|
+
"SF: invalid or expired registration key"
|
|
328
|
+
);
|
|
329
|
+
}
|
|
328
330
|
_registerApp(configWord, ISuperApp(msg.sender), true);
|
|
329
331
|
}
|
|
330
332
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superfluid-finance/ethereum-contracts",
|
|
3
|
-
"version": "1.2.3-dev.
|
|
3
|
+
"version": "1.2.3-dev.cd892eb.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.6.
|
|
59
|
+
"@superfluid-finance/js-sdk": "^0.6.2-dev.cd892eb.0",
|
|
60
60
|
"@truffle/contract": "4.5.5",
|
|
61
61
|
"ethereumjs-tx": "2.1.2",
|
|
62
62
|
"ethereumjs-util": "7.1.4",
|
package/scripts/{deploy-unlisted-native-super-token.js → deploy-unlisted-pure-super-token.js}
RENAMED
|
@@ -7,20 +7,20 @@ const {
|
|
|
7
7
|
} = require("./libs/common");
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @dev Deploy unlisted
|
|
10
|
+
* @dev Deploy unlisted pure super token to the network.
|
|
11
11
|
* @param {Array} argv Overriding command line arguments
|
|
12
12
|
* @param {boolean} options.isTruffle Whether the script is used within native truffle framework
|
|
13
13
|
* @param {Web3} options.web3 Injected web3 instance
|
|
14
14
|
* @param {Address} options.from Address to deploy contracts from
|
|
15
15
|
* @param {boolean} options.protocolReleaseVersion Specify the protocol release version to be used
|
|
16
16
|
*
|
|
17
|
-
* Usage: npx truffle exec scripts/deploy-unlisted-
|
|
17
|
+
* Usage: npx truffle exec scripts/deploy-unlisted-pure-super-token.js : {NAME} {SYMBOL} {INITIAL SUPPLY}
|
|
18
18
|
*/
|
|
19
19
|
module.exports = eval(`(${S.toString()})()`)(async function (
|
|
20
20
|
args,
|
|
21
21
|
options = {}
|
|
22
22
|
) {
|
|
23
|
-
console.log("======== Deploying unlisted
|
|
23
|
+
console.log("======== Deploying unlisted pure super token ========");
|
|
24
24
|
let {protocolReleaseVersion} = options;
|
|
25
25
|
|
|
26
26
|
if (args.length !== 3) {
|
|
@@ -62,7 +62,7 @@ module.exports = eval(`(${S.toString()})()`)(async function (
|
|
|
62
62
|
console.log("Invoking initializeCustomSuperToken...");
|
|
63
63
|
await superTokenFactory.initializeCustomSuperToken(token.address);
|
|
64
64
|
|
|
65
|
-
console.log(`
|
|
65
|
+
console.log(`Pure SuperToken deployed at ${token.address}`);
|
|
66
66
|
|
|
67
67
|
return token.address;
|
|
68
68
|
});
|
|
@@ -34,10 +34,10 @@ module.exports = eval(`(${S.toString()})()`)(async function (
|
|
|
34
34
|
|
|
35
35
|
const myAccount = (await web3.eth.getAccounts())[0];
|
|
36
36
|
console.log("My account", myAccount);
|
|
37
|
-
console.log("
|
|
37
|
+
console.log("Transferring ownership of the framework to", newGovOwner);
|
|
38
38
|
if (newResolverAdmin !== undefined) {
|
|
39
39
|
console.log(
|
|
40
|
-
"
|
|
40
|
+
"Transferring admin role of the resolver to",
|
|
41
41
|
newResolverAdmin
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -62,7 +62,7 @@ module.exports = eval(`(${S.toString()})()`)(async function (
|
|
|
62
62
|
console.log("ERR: I am not owner of the governance.");
|
|
63
63
|
}
|
|
64
64
|
} else {
|
|
65
|
-
console.log("I remain the
|
|
65
|
+
console.log("I remain the owner of the governance.");
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
if (
|
|
@@ -173,13 +173,13 @@ module.exports = function getConfig(chainId) {
|
|
|
173
173
|
// avalanche mainnet
|
|
174
174
|
liquidationPeriod: 3600 * 4,
|
|
175
175
|
patricianPeriod: 3600 * 4 * 0.2,
|
|
176
|
-
tokenList: [
|
|
176
|
+
tokenList: [],
|
|
177
177
|
// governance default configs
|
|
178
178
|
gov_enableAppWhiteListing: true,
|
|
179
179
|
// misc
|
|
180
180
|
disableTestGovernance: true,
|
|
181
181
|
data: {
|
|
182
|
-
initialBlockNumber:
|
|
182
|
+
initialBlockNumber: 14700000,
|
|
183
183
|
getLogsRange: 50000,
|
|
184
184
|
},
|
|
185
185
|
},
|
|
@@ -198,7 +198,7 @@ module.exports = function getConfig(chainId) {
|
|
|
198
198
|
// celo mainnet
|
|
199
199
|
liquidationPeriod: 3600 * 4,
|
|
200
200
|
patricianPeriod: 3600 * 4 * 0.2,
|
|
201
|
-
tokenList: [
|
|
201
|
+
tokenList: [],
|
|
202
202
|
// governance default configs
|
|
203
203
|
gov_enableAppWhiteListing: true,
|
|
204
204
|
// misc
|
package/utils/README.md
CHANGED
|
@@ -6,4 +6,22 @@ If you have python installed, you can start a webserver with the document root s
|
|
|
6
6
|
```python
|
|
7
7
|
python -m SimpleHTTPServer 1337
|
|
8
8
|
```
|
|
9
|
-
Then navigate to http://localhost:1337/supertoken-deployer.html
|
|
9
|
+
Then navigate to http://localhost:1337/supertoken-deployer.html
|
|
10
|
+
|
|
11
|
+
Alternatively, you can also find it on IPFS: [QmbjeSLXfmePAnWRBhkhajCpdu58Xsn7BqQwj8pSxRS9d8](http://ipfs.io/ipfs/QmbjeSLXfmePAnWRBhkhajCpdu58Xsn7BqQwj8pSxRS9d8)
|
|
12
|
+
|
|
13
|
+
## Stream Closer
|
|
14
|
+
|
|
15
|
+
This is a single-file Dapp for closing streams / deleting flows.
|
|
16
|
+
The flow parameters _token_, _sender_ and _receiver_ can be set either in the UI or provided as URL parameters.
|
|
17
|
+
If you have python installed, you can start a webserver with the document root set to the current directory with
|
|
18
|
+
```python
|
|
19
|
+
python -m SimpleHTTPServer 1337
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Then navigate to http://localhost:1337/stream-closer.html
|
|
23
|
+
|
|
24
|
+
Alternatively, you can also find it on IPFS: [QmRJmHatYiGgGsXYCsYZdqPMx4dd2qbMskMJvXGWZ53oJJ](http://ipfs.io/ipfs/QmRJmHatYiGgGsXYCsYZdqPMx4dd2qbMskMJvXGWZ53oJJ)
|
|
25
|
+
|
|
26
|
+
In order to set the parameter in the URL, use this format:
|
|
27
|
+
stream-closer.html?chainId=<chainId>&token=<tokenAddress>&sender=<senderAddress>&receiver=<receiverAddress>
|