@superfluid-finance/ethereum-contracts 1.2.1-dev.90ccb01.0 → 1.2.2-dev.2bc50bf.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 +18 -18
- package/build/contracts/AgreementLibrary.json +167 -167
- package/build/contracts/BaseRelayRecipient.json +55 -55
- package/build/contracts/BatchLiquidator.json +181 -181
- package/build/contracts/BatchOperation.json +599 -599
- package/build/contracts/CFAv1Library.json +1596 -1596
- package/build/contracts/CallUtils.json +198 -198
- package/build/contracts/ClosingOnUpdateFlowTestApp.json +1523 -1523
- package/build/contracts/ConstantFlowAgreementV1.json +15906 -15910
- package/build/contracts/Context.json +1 -1
- package/build/contracts/ContextDefinitions.json +599 -599
- package/build/contracts/Create2.json +1 -1
- package/build/contracts/CustomSuperTokenBase.json +19 -19
- package/build/contracts/ERC165.json +1 -1
- package/build/contracts/ERC1820Implementer.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 +23 -23
- package/build/contracts/ERC721.json +1 -1
- package/build/contracts/ERC777Helper.json +380 -380
- package/build/contracts/ERC777RecipientDrainingGas.json +855 -855
- package/build/contracts/ERC777RecipientReverting.json +855 -855
- package/build/contracts/EnumerableSet.json +1 -1
- package/build/contracts/ExclusiveInflowTestApp.json +1523 -1523
- package/build/contracts/FixedSizeData.json +200 -200
- package/build/contracts/FlowExchangeTestApp.json +1524 -1524
- package/build/contracts/FlowOperatorDefinitions.json +599 -599
- package/build/contracts/FullUpgradableSuperTokenProxy.json +113 -113
- package/build/contracts/IAccessControl.json +1 -1
- package/build/contracts/IAccessControlEnumerable.json +1 -1
- package/build/contracts/IConstantFlowAgreementV1.json +964 -1066
- package/build/contracts/IDAv1Library.json +2579 -2579
- 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/IERC721.json +1 -1
- package/build/contracts/IERC721Metadata.json +1 -1
- package/build/contracts/IERC721Receiver.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 +640 -640
- package/build/contracts/IMaticBridgedNativeSuperToken.json +62 -62
- package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +62 -62
- package/build/contracts/IMultiSigWallet.json +24 -24
- package/build/contracts/IPureSuperToken.json +42 -42
- package/build/contracts/IPureSuperTokenCustom.json +42 -42
- package/build/contracts/IRelayRecipient.json +27 -27
- package/build/contracts/IResolver.json +38 -38
- package/build/contracts/ISETH.json +47 -47
- package/build/contracts/ISETHCustom.json +47 -47
- package/build/contracts/ISuperAgreement.json +50 -50
- package/build/contracts/ISuperApp.json +191 -191
- package/build/contracts/ISuperToken.json +523 -523
- package/build/contracts/ISuperTokenFactory.json +160 -160
- package/build/contracts/ISuperfluid.json +829 -829
- package/build/contracts/ISuperfluidGovernance.json +242 -242
- package/build/contracts/ISuperfluidToken.json +389 -389
- package/build/contracts/ITOGAv1.json +1432 -1432
- package/build/contracts/ITOGAv2.json +1432 -1432
- package/build/contracts/Initializable.json +1 -1
- package/build/contracts/InstantDistributionAgreementV1.json +5739 -5739
- package/build/contracts/Int96SafeMath.json +281 -281
- package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +228 -228
- package/build/contracts/NonClosableOutflowTestApp.json +1524 -1524
- 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 +106 -106
- package/build/contracts/Resolver.json +98 -98
- package/build/contracts/SETHProxy.json +224 -224
- 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 +1523 -1523
- package/build/contracts/SlotsBitmapLibrary.json +441 -441
- package/build/contracts/Strings.json +1 -1
- package/build/contracts/SuperAppBase.json +239 -239
- package/build/contracts/SuperAppDefinitions.json +599 -599
- package/build/contracts/SuperToken.json +2350 -2350
- package/build/contracts/SuperTokenFactory.json +731 -731
- package/build/contracts/SuperTokenFactoryBase.json +721 -721
- package/build/contracts/SuperTokenFactoryHelper.json +724 -724
- package/build/contracts/SuperUpgrader.json +437 -437
- package/build/contracts/Superfluid.json +4935 -4935
- package/build/contracts/SuperfluidFrameworkDeployer.json +535 -535
- package/build/contracts/SuperfluidGovernanceBase.json +2224 -2224
- package/build/contracts/SuperfluidGovernanceConfigs.json +599 -599
- package/build/contracts/SuperfluidGovernanceII.json +147 -147
- package/build/contracts/SuperfluidGovernanceIIProxy.json +128 -128
- package/build/contracts/SuperfluidLoader.json +207 -207
- package/build/contracts/SuperfluidToken.json +1345 -1345
- package/build/contracts/TOGA.json +1451 -1451
- package/build/contracts/TestGovernance.json +246 -246
- package/build/contracts/TestToken.json +94 -94
- package/build/contracts/TokenCustodian.json +214 -214
- package/build/contracts/TokenInfo.json +32 -32
- package/build/contracts/UInt128SafeMath.json +97 -97
- 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 +1 -1
- package/contracts/agreements/ConstantFlowAgreementV1.sol +7 -11
- package/contracts/interfaces/agreements/IConstantFlowAgreementV1.sol +3 -9
- package/package.json +3 -3
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"absolutePath": "project:/contracts/upgradability/UUPSUtils.sol",
|
|
16
16
|
"exportedSymbols": {
|
|
17
17
|
"UUPSUtils": [
|
|
18
|
-
|
|
18
|
+
36349
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
|
-
"id":
|
|
21
|
+
"id": 36350,
|
|
22
22
|
"license": "AGPLv3",
|
|
23
23
|
"nodeType": "SourceUnit",
|
|
24
24
|
"nodes": [
|
|
25
25
|
{
|
|
26
|
-
"id":
|
|
26
|
+
"id": 36327,
|
|
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": 36328,
|
|
43
43
|
"nodeType": "StructuredDocumentation",
|
|
44
44
|
"src": "60:76:100",
|
|
45
45
|
"text": " @title UUPS (Universal Upgradeable Proxy Standard) Shared Library"
|
|
46
46
|
},
|
|
47
47
|
"fullyImplemented": true,
|
|
48
|
-
"id":
|
|
48
|
+
"id": 36349,
|
|
49
49
|
"linearizedBaseContracts": [
|
|
50
|
-
|
|
50
|
+
36349
|
|
51
51
|
],
|
|
52
52
|
"name": "UUPSUtils",
|
|
53
53
|
"nameLocation": "145:9:100",
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
{
|
|
57
57
|
"constant": true,
|
|
58
58
|
"documentation": {
|
|
59
|
-
"id":
|
|
59
|
+
"id": 36329,
|
|
60
60
|
"nodeType": "StructuredDocumentation",
|
|
61
61
|
"src": "162:288:100",
|
|
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": 36332,
|
|
65
65
|
"mutability": "constant",
|
|
66
66
|
"name": "_IMPLEMENTATION_SLOT",
|
|
67
67
|
"nameLocation": "481:20:100",
|
|
68
68
|
"nodeType": "VariableDeclaration",
|
|
69
|
-
"scope":
|
|
69
|
+
"scope": 36349,
|
|
70
70
|
"src": "455:115:100",
|
|
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": 36330,
|
|
79
79
|
"name": "bytes32",
|
|
80
80
|
"nodeType": "ElementaryTypeName",
|
|
81
81
|
"src": "455:7:100",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"value": {
|
|
88
88
|
"hexValue": "307833363038393461313362613161333231303636376338323834393264623938646361336532303736636333373335613932306133636135303564333832626263",
|
|
89
|
-
"id":
|
|
89
|
+
"id": 36331,
|
|
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": 36339,
|
|
108
108
|
"nodeType": "Block",
|
|
109
109
|
"src": "681:107:100",
|
|
110
110
|
"statements": [
|
|
@@ -145,33 +145,33 @@
|
|
|
145
145
|
"evmVersion": "london",
|
|
146
146
|
"externalReferences": [
|
|
147
147
|
{
|
|
148
|
-
"declaration":
|
|
148
|
+
"declaration": 36332,
|
|
149
149
|
"isOffset": false,
|
|
150
150
|
"isSlot": false,
|
|
151
151
|
"src": "751:20:100",
|
|
152
152
|
"valueSize": 1
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
|
-
"declaration":
|
|
155
|
+
"declaration": 36336,
|
|
156
156
|
"isOffset": false,
|
|
157
157
|
"isSlot": false,
|
|
158
158
|
"src": "737:4:100",
|
|
159
159
|
"valueSize": 1
|
|
160
160
|
}
|
|
161
161
|
],
|
|
162
|
-
"id":
|
|
162
|
+
"id": 36338,
|
|
163
163
|
"nodeType": "InlineAssembly",
|
|
164
164
|
"src": "691:91:100"
|
|
165
165
|
}
|
|
166
166
|
]
|
|
167
167
|
},
|
|
168
168
|
"documentation": {
|
|
169
|
-
"id":
|
|
169
|
+
"id": 36333,
|
|
170
170
|
"nodeType": "StructuredDocumentation",
|
|
171
171
|
"src": "577:36:100",
|
|
172
172
|
"text": "@dev Get implementation address."
|
|
173
173
|
},
|
|
174
|
-
"id":
|
|
174
|
+
"id": 36340,
|
|
175
175
|
"implemented": true,
|
|
176
176
|
"kind": "function",
|
|
177
177
|
"modifiers": [],
|
|
@@ -179,23 +179,23 @@
|
|
|
179
179
|
"nameLocation": "627:14:100",
|
|
180
180
|
"nodeType": "FunctionDefinition",
|
|
181
181
|
"parameters": {
|
|
182
|
-
"id":
|
|
182
|
+
"id": 36334,
|
|
183
183
|
"nodeType": "ParameterList",
|
|
184
184
|
"parameters": [],
|
|
185
185
|
"src": "641:2:100"
|
|
186
186
|
},
|
|
187
187
|
"returnParameters": {
|
|
188
|
-
"id":
|
|
188
|
+
"id": 36337,
|
|
189
189
|
"nodeType": "ParameterList",
|
|
190
190
|
"parameters": [
|
|
191
191
|
{
|
|
192
192
|
"constant": false,
|
|
193
|
-
"id":
|
|
193
|
+
"id": 36336,
|
|
194
194
|
"mutability": "mutable",
|
|
195
195
|
"name": "impl",
|
|
196
196
|
"nameLocation": "675:4:100",
|
|
197
197
|
"nodeType": "VariableDeclaration",
|
|
198
|
-
"scope":
|
|
198
|
+
"scope": 36340,
|
|
199
199
|
"src": "667:12:100",
|
|
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": 36335,
|
|
208
208
|
"name": "address",
|
|
209
209
|
"nodeType": "ElementaryTypeName",
|
|
210
210
|
"src": "667:7:100",
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
],
|
|
220
220
|
"src": "666:14:100"
|
|
221
221
|
},
|
|
222
|
-
"scope":
|
|
222
|
+
"scope": 36349,
|
|
223
223
|
"src": "618:170:100",
|
|
224
224
|
"stateMutability": "view",
|
|
225
225
|
"virtual": false,
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
"body": {
|
|
230
|
-
"id":
|
|
230
|
+
"id": 36347,
|
|
231
231
|
"nodeType": "Block",
|
|
232
232
|
"src": "896:171:100",
|
|
233
233
|
"statements": [
|
|
@@ -266,33 +266,33 @@
|
|
|
266
266
|
"evmVersion": "london",
|
|
267
267
|
"externalReferences": [
|
|
268
268
|
{
|
|
269
|
-
"declaration":
|
|
269
|
+
"declaration": 36332,
|
|
270
270
|
"isOffset": false,
|
|
271
271
|
"isSlot": false,
|
|
272
272
|
"src": "988:20:100",
|
|
273
273
|
"valueSize": 1
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
|
-
"declaration":
|
|
276
|
+
"declaration": 36343,
|
|
277
277
|
"isOffset": false,
|
|
278
278
|
"isSlot": false,
|
|
279
279
|
"src": "1026:11:100",
|
|
280
280
|
"valueSize": 1
|
|
281
281
|
}
|
|
282
282
|
],
|
|
283
|
-
"id":
|
|
283
|
+
"id": 36346,
|
|
284
284
|
"nodeType": "InlineAssembly",
|
|
285
285
|
"src": "906:155:100"
|
|
286
286
|
}
|
|
287
287
|
]
|
|
288
288
|
},
|
|
289
289
|
"documentation": {
|
|
290
|
-
"id":
|
|
290
|
+
"id": 36341,
|
|
291
291
|
"nodeType": "StructuredDocumentation",
|
|
292
292
|
"src": "794:40:100",
|
|
293
293
|
"text": "@dev Set new implementation address."
|
|
294
294
|
},
|
|
295
|
-
"id":
|
|
295
|
+
"id": 36348,
|
|
296
296
|
"implemented": true,
|
|
297
297
|
"kind": "function",
|
|
298
298
|
"modifiers": [],
|
|
@@ -300,17 +300,17 @@
|
|
|
300
300
|
"nameLocation": "848:17:100",
|
|
301
301
|
"nodeType": "FunctionDefinition",
|
|
302
302
|
"parameters": {
|
|
303
|
-
"id":
|
|
303
|
+
"id": 36344,
|
|
304
304
|
"nodeType": "ParameterList",
|
|
305
305
|
"parameters": [
|
|
306
306
|
{
|
|
307
307
|
"constant": false,
|
|
308
|
-
"id":
|
|
308
|
+
"id": 36343,
|
|
309
309
|
"mutability": "mutable",
|
|
310
310
|
"name": "codeAddress",
|
|
311
311
|
"nameLocation": "874:11:100",
|
|
312
312
|
"nodeType": "VariableDeclaration",
|
|
313
|
-
"scope":
|
|
313
|
+
"scope": 36348,
|
|
314
314
|
"src": "866:19:100",
|
|
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": 36342,
|
|
323
323
|
"name": "address",
|
|
324
324
|
"nodeType": "ElementaryTypeName",
|
|
325
325
|
"src": "866:7:100",
|
|
@@ -335,19 +335,19 @@
|
|
|
335
335
|
"src": "865:21:100"
|
|
336
336
|
},
|
|
337
337
|
"returnParameters": {
|
|
338
|
-
"id":
|
|
338
|
+
"id": 36345,
|
|
339
339
|
"nodeType": "ParameterList",
|
|
340
340
|
"parameters": [],
|
|
341
341
|
"src": "896:0:100"
|
|
342
342
|
},
|
|
343
|
-
"scope":
|
|
343
|
+
"scope": 36349,
|
|
344
344
|
"src": "839:228:100",
|
|
345
345
|
"stateMutability": "nonpayable",
|
|
346
346
|
"virtual": false,
|
|
347
347
|
"visibility": "internal"
|
|
348
348
|
}
|
|
349
349
|
],
|
|
350
|
-
"scope":
|
|
350
|
+
"scope": 36350,
|
|
351
351
|
"src": "137:933:100",
|
|
352
352
|
"usedErrors": []
|
|
353
353
|
}
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
},
|
|
361
361
|
"networks": {},
|
|
362
362
|
"schemaVersion": "3.4.7",
|
|
363
|
-
"updatedAt": "2022-04-
|
|
363
|
+
"updatedAt": "2022-04-30T08:07:02.564Z",
|
|
364
364
|
"devdoc": {
|
|
365
365
|
"kind": "dev",
|
|
366
366
|
"methods": {},
|
|
@@ -7,6 +7,6 @@ InstantDistributionAgreementV1.sol : 21970 (2606)
|
|
|
7
7
|
SlotsBitmapLibrary.sol : 2724 (21852)
|
|
8
8
|
AgreementLibrary.sol : 143 (24433)
|
|
9
9
|
AgreementBase.sol : 2 (24574)
|
|
10
|
-
ConstantFlowAgreementV1.sol :
|
|
10
|
+
ConstantFlowAgreementV1.sol : 21634 (2942)
|
|
11
11
|
SuperfluidGovernanceBase.sol : 2 (24574)
|
|
12
12
|
SuperfluidGovernanceII.sol : 6919 (17657)
|
|
@@ -40,7 +40,6 @@ contract ConstantFlowAgreementV1 is
|
|
|
40
40
|
* E_NO_OPERATOR_CREATE_FLOW - operator does not have permissions to create flow
|
|
41
41
|
* E_NO_OPERATOR_UPDATE_FLOW - operator does not have permissions to update flow
|
|
42
42
|
* E_NO_OPERATOR_DELETE_FLOW - operator does not have permissions to delete flow
|
|
43
|
-
* E_NO_PERMISSIONS_UPDATE - unauthorized flow operator permissions update (not from sender)
|
|
44
43
|
* E_NO_SENDER_FLOW_OPERATOR - sender cannot set themselves as the flow operator
|
|
45
44
|
* E_NO_NEGATIVE_ALLOWANCE - sender cannot set a negative allowance
|
|
46
45
|
*/
|
|
@@ -675,7 +674,6 @@ contract ConstantFlowAgreementV1 is
|
|
|
675
674
|
/// @dev IConstantFlowAgreementV1.updateFlowOperatorPermissions implementation
|
|
676
675
|
function updateFlowOperatorPermissions(
|
|
677
676
|
ISuperfluidToken token,
|
|
678
|
-
address sender,
|
|
679
677
|
address flowOperator,
|
|
680
678
|
uint8 permissions,
|
|
681
679
|
int96 flowRateAllowance, // flowRateBudget
|
|
@@ -684,22 +682,22 @@ contract ConstantFlowAgreementV1 is
|
|
|
684
682
|
newCtx = ctx;
|
|
685
683
|
require(FlowOperatorDefinitions.isPermissionsClean(permissions), "CFA: Unclean permissions");
|
|
686
684
|
ISuperfluid.Context memory currentContext = AgreementLibrary.authorizeTokenAccess(token, ctx);
|
|
687
|
-
|
|
688
|
-
|
|
685
|
+
// [SECURITY] NOTE: we are holding the assumption here that ctx is correct and we validate it with
|
|
686
|
+
// authorizeTokenAccess:
|
|
687
|
+
require(currentContext.msgSender != flowOperator, "CFA: E_NO_SENDER_FLOW_OPERATOR");
|
|
689
688
|
require(flowRateAllowance >= 0, "CFA: E_NO_NEGATIVE_ALLOWANCE");
|
|
690
689
|
FlowOperatorData memory flowOperatorData;
|
|
691
690
|
flowOperatorData.permissions = permissions;
|
|
692
691
|
flowOperatorData.flowRateAllowance = flowRateAllowance;
|
|
693
|
-
bytes32 flowOperatorId = _generateFlowOperatorId(
|
|
692
|
+
bytes32 flowOperatorId = _generateFlowOperatorId(currentContext.msgSender, flowOperator);
|
|
694
693
|
token.updateAgreementData(flowOperatorId, _encodeFlowOperatorData(flowOperatorData));
|
|
695
694
|
|
|
696
|
-
emit FlowOperatorUpdated(token,
|
|
695
|
+
emit FlowOperatorUpdated(token, currentContext.msgSender, flowOperator, permissions, flowRateAllowance);
|
|
697
696
|
}
|
|
698
697
|
|
|
699
698
|
/// @dev IConstantFlowAgreementV1.authorizeFlowOperatorWithFullControl implementation
|
|
700
699
|
function authorizeFlowOperatorWithFullControl(
|
|
701
700
|
ISuperfluidToken token,
|
|
702
|
-
address sender,
|
|
703
701
|
address flowOperator,
|
|
704
702
|
bytes calldata ctx
|
|
705
703
|
)
|
|
@@ -708,7 +706,6 @@ contract ConstantFlowAgreementV1 is
|
|
|
708
706
|
{
|
|
709
707
|
newCtx = updateFlowOperatorPermissions(
|
|
710
708
|
token,
|
|
711
|
-
sender,
|
|
712
709
|
flowOperator,
|
|
713
710
|
FlowOperatorDefinitions.AUTHORIZE_FULL_CONTROL,
|
|
714
711
|
type(int96).max,
|
|
@@ -719,15 +716,14 @@ contract ConstantFlowAgreementV1 is
|
|
|
719
716
|
/// @dev IConstantFlowAgreementV1.revokeFlowOperatorWithFullControl implementation
|
|
720
717
|
function revokeFlowOperatorWithFullControl(
|
|
721
718
|
ISuperfluidToken token,
|
|
722
|
-
address sender,
|
|
723
719
|
address flowOperator,
|
|
724
720
|
bytes calldata ctx
|
|
725
721
|
)
|
|
726
722
|
external override
|
|
727
723
|
returns(bytes memory newCtx)
|
|
728
724
|
{
|
|
729
|
-
// REVOKE_FULL_CONTROL = 0
|
|
730
|
-
newCtx = updateFlowOperatorPermissions(token,
|
|
725
|
+
// NOTE: REVOKE_FULL_CONTROL = 0
|
|
726
|
+
newCtx = updateFlowOperatorPermissions(token, flowOperator, 0, 0, ctx);
|
|
731
727
|
}
|
|
732
728
|
|
|
733
729
|
/// @dev IConstantFlowAgreementV1.getFlowOperatorData implementation
|
|
@@ -71,9 +71,8 @@ abstract contract IConstantFlowAgreementV1 is ISuperAgreement {
|
|
|
71
71
|
returns (bool);
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* @dev `
|
|
74
|
+
* @dev msgSender from `ctx` updates permissions for the `flowOperator` with `flowRateAllowance`
|
|
75
75
|
* @param token Super token address
|
|
76
|
-
* @param sender The permission granter address
|
|
77
76
|
* @param flowOperator The permission grantee address
|
|
78
77
|
* @param permissions A bitmask representation of the granted permissions
|
|
79
78
|
* @param flowRateAllowance The flow rate allowance the `flowOperator` is granted (only goes down)
|
|
@@ -81,7 +80,6 @@ abstract contract IConstantFlowAgreementV1 is ISuperAgreement {
|
|
|
81
80
|
*/
|
|
82
81
|
function updateFlowOperatorPermissions(
|
|
83
82
|
ISuperfluidToken token,
|
|
84
|
-
address sender,
|
|
85
83
|
address flowOperator,
|
|
86
84
|
uint8 permissions,
|
|
87
85
|
int96 flowRateAllowance,
|
|
@@ -91,15 +89,13 @@ abstract contract IConstantFlowAgreementV1 is ISuperAgreement {
|
|
|
91
89
|
returns(bytes memory newCtx);
|
|
92
90
|
|
|
93
91
|
/**
|
|
94
|
-
* @dev `
|
|
92
|
+
* @dev msgSender from `ctx` grants `flowOperator` all permissions with flowRateAllowance as type(int96).max
|
|
95
93
|
* @param token Super token address
|
|
96
|
-
* @param sender The permission granter address
|
|
97
94
|
* @param flowOperator The permission grantee address
|
|
98
95
|
* @param ctx Context bytes (see ISuperfluid.sol for Context struct)
|
|
99
96
|
*/
|
|
100
97
|
function authorizeFlowOperatorWithFullControl(
|
|
101
98
|
ISuperfluidToken token,
|
|
102
|
-
address sender,
|
|
103
99
|
address flowOperator,
|
|
104
100
|
bytes calldata ctx
|
|
105
101
|
)
|
|
@@ -107,16 +103,14 @@ abstract contract IConstantFlowAgreementV1 is ISuperAgreement {
|
|
|
107
103
|
returns(bytes memory newCtx);
|
|
108
104
|
|
|
109
105
|
/**
|
|
110
|
-
* @notice `
|
|
106
|
+
* @notice msgSender from `ctx` revokes `flowOperator` create/update/delete permissions
|
|
111
107
|
* @dev `permissions` and `flowRateAllowance` will both be set to 0
|
|
112
108
|
* @param token Super token address
|
|
113
|
-
* @param sender The permission granter address
|
|
114
109
|
* @param flowOperator The permission grantee address
|
|
115
110
|
* @param ctx Context bytes (see ISuperfluid.sol for Context struct)
|
|
116
111
|
*/
|
|
117
112
|
function revokeFlowOperatorWithFullControl(
|
|
118
113
|
ISuperfluidToken token,
|
|
119
|
-
address sender,
|
|
120
114
|
address flowOperator,
|
|
121
115
|
bytes calldata ctx
|
|
122
116
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superfluid-finance/ethereum-contracts",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2-dev.2bc50bf.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": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"testenv:deploy": "yarn run-truffle exec scripts/deploy-test-environment.js : TEST",
|
|
36
36
|
"pretest": "{ yarn testenv:start > /dev/null& } && sleep 5",
|
|
37
37
|
"test": "run-s test:*:*",
|
|
38
|
-
"test:contracts:
|
|
39
|
-
"test:contracts:
|
|
38
|
+
"test:contracts:hardhat": "yarn run-hardhat test testsuites/all-contracts.js --parallel",
|
|
39
|
+
"test:contracts:foundry": "yarn run-forge test",
|
|
40
40
|
"test:contracts:solc-0.8.0-compatibility": "test/test-solc-0.8.0-compatibility.sh",
|
|
41
41
|
"test:deployment:scripts-js-hardhat": "yarn run-hardhat test test/scripts/deployment.test.js",
|
|
42
42
|
"test:deployment:scripts-js-truffle": "yarn run-truffle test test/scripts/deployment.test.js",
|