@superfluid-finance/ethereum-contracts 1.3.2-dev.bf84335.0 → 1.3.2-dev.de7575d.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 (122) 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 +18 -18
  5. package/build/contracts/AgreementLibrary.json +1272 -1183
  6. package/build/contracts/BaseRelayRecipient.json +55 -55
  7. package/build/contracts/BatchLiquidator.json +211 -211
  8. package/build/contracts/BatchOperation.json +599 -599
  9. package/build/contracts/CFAv1Library.json +2282 -2282
  10. package/build/contracts/CallUtils.json +198 -198
  11. package/build/contracts/ClosingOnUpdateFlowTestApp.json +2472 -2472
  12. package/build/contracts/ConstantFlowAgreementV1.json +12931 -13308
  13. package/build/contracts/Context.json +1 -1
  14. package/build/contracts/ContextDefinitions.json +599 -599
  15. package/build/contracts/Create2.json +1 -1
  16. package/build/contracts/CustomSuperTokenBase.json +20 -20
  17. package/build/contracts/ERC165.json +1 -1
  18. package/build/contracts/ERC1820Implementer.json +1 -1
  19. package/build/contracts/ERC1820RegistryCompiled.json +22 -22
  20. package/build/contracts/ERC20.json +1 -1
  21. package/build/contracts/ERC20Burnable.json +1 -1
  22. package/build/contracts/ERC20Pausable.json +1 -1
  23. package/build/contracts/ERC20PresetMinterPauser.json +1 -1
  24. package/build/contracts/ERC20WithTokenInfo.json +23 -23
  25. package/build/contracts/ERC777Helper.json +380 -380
  26. package/build/contracts/ERC777RecipientDrainingGas.json +858 -858
  27. package/build/contracts/ERC777RecipientReverting.json +858 -858
  28. package/build/contracts/EnumerableSet.json +1 -1
  29. package/build/contracts/EventsEmitter.json +43 -43
  30. package/build/contracts/ExclusiveInflowTestApp.json +2473 -2473
  31. package/build/contracts/FixedSizeData.json +200 -200
  32. package/build/contracts/FlowExchangeTestApp.json +2473 -2473
  33. package/build/contracts/FlowOperatorDefinitions.json +599 -599
  34. package/build/contracts/FullUpgradableSuperTokenProxy.json +115 -115
  35. package/build/contracts/IAccessControl.json +1 -1
  36. package/build/contracts/IAccessControlEnumerable.json +1 -1
  37. package/build/contracts/IConstantFlowAgreementV1.json +567 -567
  38. package/build/contracts/IDAv1Library.json +2614 -2614
  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/IERC20Permit.json +1 -1
  45. package/build/contracts/IERC777.json +1 -1
  46. package/build/contracts/IERC777Recipient.json +1 -1
  47. package/build/contracts/IERC777Sender.json +1 -1
  48. package/build/contracts/IInstantDistributionAgreementV1.json +640 -640
  49. package/build/contracts/IMaticBridgedNativeSuperToken.json +63 -63
  50. package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +63 -63
  51. package/build/contracts/IMultiSigWallet.json +24 -24
  52. package/build/contracts/IPureSuperToken.json +43 -43
  53. package/build/contracts/IPureSuperTokenCustom.json +43 -43
  54. package/build/contracts/IRelayRecipient.json +27 -27
  55. package/build/contracts/IResolver.json +38 -38
  56. package/build/contracts/ISETH.json +48 -48
  57. package/build/contracts/ISETHCustom.json +48 -48
  58. package/build/contracts/ISuperAgreement.json +50 -50
  59. package/build/contracts/ISuperApp.json +192 -192
  60. package/build/contracts/ISuperToken.json +524 -524
  61. package/build/contracts/ISuperTokenFactory.json +161 -161
  62. package/build/contracts/ISuperfluid.json +1145 -1178
  63. package/build/contracts/ISuperfluidGovernance.json +243 -243
  64. package/build/contracts/ISuperfluidToken.json +389 -389
  65. package/build/contracts/ITOGAv1.json +1442 -1442
  66. package/build/contracts/ITOGAv2.json +1442 -1442
  67. package/build/contracts/Initializable.json +1 -1
  68. package/build/contracts/InstantDistributionAgreementV1.json +5820 -5820
  69. package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +231 -231
  70. package/build/contracts/NonClosableOutflowTestApp.json +2473 -2473
  71. package/build/contracts/Ownable.json +1 -1
  72. package/build/contracts/Pausable.json +1 -1
  73. package/build/contracts/Proxy.json +1 -1
  74. package/build/contracts/PureSuperToken.json +109 -109
  75. package/build/contracts/Resolver.json +98 -98
  76. package/build/contracts/SETHProxy.json +227 -227
  77. package/build/contracts/SafeCast.json +1 -1
  78. package/build/contracts/SafeERC20.json +1 -1
  79. package/build/contracts/SafeMath.json +1 -1
  80. package/build/contracts/SelfDeletingFlowTestApp.json +2472 -2472
  81. package/build/contracts/SlotsBitmapLibrary.json +457 -457
  82. package/build/contracts/StreamRedirector.json +748 -748
  83. package/build/contracts/Strings.json +1 -1
  84. package/build/contracts/SuperAppBase.json +240 -240
  85. package/build/contracts/SuperAppDefinitions.json +599 -599
  86. package/build/contracts/SuperToken.json +4732 -4732
  87. package/build/contracts/SuperTokenFactory.json +750 -750
  88. package/build/contracts/SuperTokenFactoryBase.json +738 -738
  89. package/build/contracts/SuperTokenFactoryHelper.json +743 -743
  90. package/build/contracts/SuperUpgrader.json +440 -440
  91. package/build/contracts/Superfluid.json +15366 -16050
  92. package/build/contracts/SuperfluidFrameworkDeployer.json +765 -765
  93. package/build/contracts/SuperfluidGovernanceBase.json +2233 -2233
  94. package/build/contracts/SuperfluidGovernanceConfigs.json +599 -599
  95. package/build/contracts/SuperfluidGovernanceII.json +149 -149
  96. package/build/contracts/SuperfluidGovernanceIIProxy.json +131 -131
  97. package/build/contracts/SuperfluidLoader.json +210 -210
  98. package/build/contracts/SuperfluidToken.json +2420 -2420
  99. package/build/contracts/TOGA.json +1461 -1461
  100. package/build/contracts/TestGovernance.json +248 -248
  101. package/build/contracts/TestToken.json +93 -93
  102. package/build/contracts/TokenCustodian.json +214 -214
  103. package/build/contracts/TokenInfo.json +32 -32
  104. package/build/contracts/UUPSProxiable.json +139 -139
  105. package/build/contracts/UUPSProxy.json +81 -81
  106. package/build/contracts/UUPSUtils.json +37 -37
  107. package/build/contracts-sizes.txt +6 -6
  108. package/contracts/agreements/AgreementLibrary.sol +39 -15
  109. package/contracts/agreements/ConstantFlowAgreementV1.sol +65 -53
  110. package/contracts/interfaces/superfluid/ISuperfluid.sol +29 -23
  111. package/contracts/mocks/AgreementMock.sol +2 -2
  112. package/contracts/mocks/CFAAppMocks.sol +1 -1
  113. package/contracts/mocks/MultiFlowTesterApp.sol +13 -12
  114. package/contracts/mocks/SuperTokenMock.sol +2 -2
  115. package/contracts/mocks/SuperfluidMock.sol +9 -9
  116. package/contracts/superfluid/Superfluid.sol +34 -38
  117. package/contracts/superfluid/SuperfluidToken.sol +14 -14
  118. package/package.json +2 -2
  119. package/scripts/deploy-mfa.ts +27 -0
  120. package/scripts/libs/getConfig.js +14 -0
  121. package/utils/README.md +18 -0
  122. package/utils/mfa-tester.html +687 -0
@@ -48,18 +48,18 @@
48
48
  "absolutePath": "project:/contracts/libs/BaseRelayRecipient.sol",
49
49
  "exportedSymbols": {
50
50
  "BaseRelayRecipient": [
51
- 20656
51
+ 20664
52
52
  ],
53
53
  "IRelayRecipient": [
54
- 20592
54
+ 20600
55
55
  ]
56
56
  },
57
- "id": 20657,
57
+ "id": 20665,
58
58
  "license": "AGPLv3",
59
59
  "nodeType": "SourceUnit",
60
60
  "nodes": [
61
61
  {
62
- "id": 20620,
62
+ "id": 20628,
63
63
  "literals": [
64
64
  "solidity",
65
65
  "0.8",
@@ -71,11 +71,11 @@
71
71
  {
72
72
  "absolutePath": "project:/contracts/interfaces/utils/IRelayRecipient.sol",
73
73
  "file": "../interfaces/utils/IRelayRecipient.sol",
74
- "id": 20621,
74
+ "id": 20629,
75
75
  "nameLocation": "-1:-1:-1",
76
76
  "nodeType": "ImportDirective",
77
- "scope": 20657,
78
- "sourceUnit": 20593,
77
+ "scope": 20665,
78
+ "sourceUnit": 20601,
79
79
  "src": "60:49:59",
80
80
  "symbolAliases": [],
81
81
  "unitAlias": ""
@@ -85,13 +85,13 @@
85
85
  "baseContracts": [
86
86
  {
87
87
  "baseName": {
88
- "id": 20623,
88
+ "id": 20631,
89
89
  "name": "IRelayRecipient",
90
90
  "nodeType": "IdentifierPath",
91
- "referencedDeclaration": 20592,
91
+ "referencedDeclaration": 20600,
92
92
  "src": "492:15:59"
93
93
  },
94
- "id": 20624,
94
+ "id": 20632,
95
95
  "nodeType": "InheritanceSpecifier",
96
96
  "src": "492:15:59"
97
97
  }
@@ -100,16 +100,16 @@
100
100
  "contractDependencies": [],
101
101
  "contractKind": "contract",
102
102
  "documentation": {
103
- "id": 20622,
103
+ "id": 20630,
104
104
  "nodeType": "StructuredDocumentation",
105
105
  "src": "112:339:59",
106
106
  "text": " @title Base relay recipient contract\n @author Superfluid\n @dev A base contract to be inherited by any contract that want to receive relayed transactions\n A subclass must use \"_msgSender()\" instead of \"msg.sender\"\n MODIFIED FROM: https://github.com/opengsn/forwarder/blob/master/contracts/BaseRelayRecipient.sol"
107
107
  },
108
108
  "fullyImplemented": false,
109
- "id": 20656,
109
+ "id": 20664,
110
110
  "linearizedBaseContracts": [
111
- 20656,
112
- 20592
111
+ 20664,
112
+ 20600
113
113
  ],
114
114
  "name": "BaseRelayRecipient",
115
115
  "nameLocation": "470:18:59",
@@ -117,16 +117,16 @@
117
117
  "nodes": [
118
118
  {
119
119
  "baseFunctions": [
120
- 20585
120
+ 20593
121
121
  ],
122
122
  "documentation": {
123
- "id": 20625,
123
+ "id": 20633,
124
124
  "nodeType": "StructuredDocumentation",
125
125
  "src": "515:57:59",
126
126
  "text": " @dev Check if the forwarder is trusted"
127
127
  },
128
128
  "functionSelector": "572b6c05",
129
- "id": 20633,
129
+ "id": 20641,
130
130
  "implemented": false,
131
131
  "kind": "function",
132
132
  "modifiers": [],
@@ -134,23 +134,23 @@
134
134
  "nameLocation": "586:18:59",
135
135
  "nodeType": "FunctionDefinition",
136
136
  "overrides": {
137
- "id": 20629,
137
+ "id": 20637,
138
138
  "nodeType": "OverrideSpecifier",
139
139
  "overrides": [],
140
140
  "src": "644:8:59"
141
141
  },
142
142
  "parameters": {
143
- "id": 20628,
143
+ "id": 20636,
144
144
  "nodeType": "ParameterList",
145
145
  "parameters": [
146
146
  {
147
147
  "constant": false,
148
- "id": 20627,
148
+ "id": 20635,
149
149
  "mutability": "mutable",
150
150
  "name": "forwarder",
151
151
  "nameLocation": "613:9:59",
152
152
  "nodeType": "VariableDeclaration",
153
- "scope": 20633,
153
+ "scope": 20641,
154
154
  "src": "605:17:59",
155
155
  "stateVariable": false,
156
156
  "storageLocation": "default",
@@ -159,7 +159,7 @@
159
159
  "typeString": "address"
160
160
  },
161
161
  "typeName": {
162
- "id": 20626,
162
+ "id": 20634,
163
163
  "name": "address",
164
164
  "nodeType": "ElementaryTypeName",
165
165
  "src": "605:7:59",
@@ -175,17 +175,17 @@
175
175
  "src": "604:19:59"
176
176
  },
177
177
  "returnParameters": {
178
- "id": 20632,
178
+ "id": 20640,
179
179
  "nodeType": "ParameterList",
180
180
  "parameters": [
181
181
  {
182
182
  "constant": false,
183
- "id": 20631,
183
+ "id": 20639,
184
184
  "mutability": "mutable",
185
185
  "name": "",
186
186
  "nameLocation": "-1:-1:-1",
187
187
  "nodeType": "VariableDeclaration",
188
- "scope": 20633,
188
+ "scope": 20641,
189
189
  "src": "661:4:59",
190
190
  "stateVariable": false,
191
191
  "storageLocation": "default",
@@ -194,7 +194,7 @@
194
194
  "typeString": "bool"
195
195
  },
196
196
  "typeName": {
197
- "id": 20630,
197
+ "id": 20638,
198
198
  "name": "bool",
199
199
  "nodeType": "ElementaryTypeName",
200
200
  "src": "661:4:59",
@@ -208,7 +208,7 @@
208
208
  ],
209
209
  "src": "660:6:59"
210
210
  },
211
- "scope": 20656,
211
+ "scope": 20664,
212
212
  "src": "577:90:59",
213
213
  "stateMutability": "view",
214
214
  "virtual": true,
@@ -216,7 +216,7 @@
216
216
  },
217
217
  {
218
218
  "body": {
219
- "id": 20654,
219
+ "id": 20662,
220
220
  "nodeType": "Block",
221
221
  "src": "1027:419:59",
222
222
  "statements": [
@@ -228,7 +228,7 @@
228
228
  "typeIdentifier": "t_bool",
229
229
  "typeString": "bool"
230
230
  },
231
- "id": 20649,
231
+ "id": 20657,
232
232
  "isConstant": false,
233
233
  "isLValue": false,
234
234
  "isPure": false,
@@ -238,7 +238,7 @@
238
238
  "typeIdentifier": "t_uint256",
239
239
  "typeString": "uint256"
240
240
  },
241
- "id": 20644,
241
+ "id": 20652,
242
242
  "isConstant": false,
243
243
  "isLValue": false,
244
244
  "isPure": false,
@@ -246,7 +246,7 @@
246
246
  "leftExpression": {
247
247
  "expression": {
248
248
  "expression": {
249
- "id": 20640,
249
+ "id": 20648,
250
250
  "name": "msg",
251
251
  "nodeType": "Identifier",
252
252
  "overloadedDeclarations": [],
@@ -257,7 +257,7 @@
257
257
  "typeString": "msg"
258
258
  }
259
259
  },
260
- "id": 20641,
260
+ "id": 20649,
261
261
  "isConstant": false,
262
262
  "isLValue": false,
263
263
  "isPure": false,
@@ -270,7 +270,7 @@
270
270
  "typeString": "bytes calldata"
271
271
  }
272
272
  },
273
- "id": 20642,
273
+ "id": 20650,
274
274
  "isConstant": false,
275
275
  "isLValue": false,
276
276
  "isPure": false,
@@ -287,7 +287,7 @@
287
287
  "operator": ">=",
288
288
  "rightExpression": {
289
289
  "hexValue": "3234",
290
- "id": 20643,
290
+ "id": 20651,
291
291
  "isConstant": false,
292
292
  "isLValue": false,
293
293
  "isPure": true,
@@ -313,7 +313,7 @@
313
313
  "arguments": [
314
314
  {
315
315
  "expression": {
316
- "id": 20646,
316
+ "id": 20654,
317
317
  "name": "msg",
318
318
  "nodeType": "Identifier",
319
319
  "overloadedDeclarations": [],
@@ -324,7 +324,7 @@
324
324
  "typeString": "msg"
325
325
  }
326
326
  },
327
- "id": 20647,
327
+ "id": 20655,
328
328
  "isConstant": false,
329
329
  "isLValue": false,
330
330
  "isPure": false,
@@ -345,18 +345,18 @@
345
345
  "typeString": "address"
346
346
  }
347
347
  ],
348
- "id": 20645,
348
+ "id": 20653,
349
349
  "name": "isTrustedForwarder",
350
350
  "nodeType": "Identifier",
351
351
  "overloadedDeclarations": [],
352
- "referencedDeclaration": 20633,
352
+ "referencedDeclaration": 20641,
353
353
  "src": "1070:18:59",
354
354
  "typeDescriptions": {
355
355
  "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
356
356
  "typeString": "function (address) view returns (bool)"
357
357
  }
358
358
  },
359
- "id": 20648,
359
+ "id": 20656,
360
360
  "isConstant": false,
361
361
  "isLValue": false,
362
362
  "isPure": false,
@@ -379,7 +379,7 @@
379
379
  },
380
380
  {
381
381
  "hexValue": "4e6f74207472757374656420666f72776172646572",
382
- "id": 20650,
382
+ "id": 20658,
383
383
  "isConstant": false,
384
384
  "isLValue": false,
385
385
  "isPure": true,
@@ -405,7 +405,7 @@
405
405
  "typeString": "literal_string \"Not trusted forwarder\""
406
406
  }
407
407
  ],
408
- "id": 20639,
408
+ "id": 20647,
409
409
  "name": "require",
410
410
  "nodeType": "Identifier",
411
411
  "overloadedDeclarations": [
@@ -419,7 +419,7 @@
419
419
  "typeString": "function (bool,string memory) pure"
420
420
  }
421
421
  },
422
- "id": 20651,
422
+ "id": 20659,
423
423
  "isConstant": false,
424
424
  "isLValue": false,
425
425
  "isPure": false,
@@ -434,7 +434,7 @@
434
434
  "typeString": "tuple()"
435
435
  }
436
436
  },
437
- "id": 20652,
437
+ "id": 20660,
438
438
  "nodeType": "ExpressionStatement",
439
439
  "src": "1037:89:59"
440
440
  },
@@ -516,26 +516,26 @@
516
516
  "evmVersion": "london",
517
517
  "externalReferences": [
518
518
  {
519
- "declaration": 20637,
519
+ "declaration": 20645,
520
520
  "isOffset": false,
521
521
  "isSlot": false,
522
522
  "src": "1379:3:59",
523
523
  "valueSize": 1
524
524
  }
525
525
  ],
526
- "id": 20653,
526
+ "id": 20661,
527
527
  "nodeType": "InlineAssembly",
528
528
  "src": "1356:84:59"
529
529
  }
530
530
  ]
531
531
  },
532
532
  "documentation": {
533
- "id": 20634,
533
+ "id": 20642,
534
534
  "nodeType": "StructuredDocumentation",
535
535
  "src": "673:264:59",
536
536
  "text": " @dev Return the transaction signer of this call\n if the call came through our trusted forwarder, return the original sender.\n otherwise, return `msg.sender`.\n should be used in the contract anywhere instead of msg.sender"
537
537
  },
538
- "id": 20655,
538
+ "id": 20663,
539
539
  "implemented": true,
540
540
  "kind": "function",
541
541
  "modifiers": [],
@@ -543,23 +543,23 @@
543
543
  "nameLocation": "951:21:59",
544
544
  "nodeType": "FunctionDefinition",
545
545
  "parameters": {
546
- "id": 20635,
546
+ "id": 20643,
547
547
  "nodeType": "ParameterList",
548
548
  "parameters": [],
549
549
  "src": "972:2:59"
550
550
  },
551
551
  "returnParameters": {
552
- "id": 20638,
552
+ "id": 20646,
553
553
  "nodeType": "ParameterList",
554
554
  "parameters": [
555
555
  {
556
556
  "constant": false,
557
- "id": 20637,
557
+ "id": 20645,
558
558
  "mutability": "mutable",
559
559
  "name": "ret",
560
560
  "nameLocation": "1022:3:59",
561
561
  "nodeType": "VariableDeclaration",
562
- "scope": 20655,
562
+ "scope": 20663,
563
563
  "src": "1006:19:59",
564
564
  "stateVariable": false,
565
565
  "storageLocation": "default",
@@ -568,7 +568,7 @@
568
568
  "typeString": "address payable"
569
569
  },
570
570
  "typeName": {
571
- "id": 20636,
571
+ "id": 20644,
572
572
  "name": "address",
573
573
  "nodeType": "ElementaryTypeName",
574
574
  "src": "1006:15:59",
@@ -583,14 +583,14 @@
583
583
  ],
584
584
  "src": "1005:21:59"
585
585
  },
586
- "scope": 20656,
586
+ "scope": 20664,
587
587
  "src": "942:504:59",
588
588
  "stateMutability": "view",
589
589
  "virtual": true,
590
590
  "visibility": "internal"
591
591
  }
592
592
  ],
593
- "scope": 20657,
593
+ "scope": 20665,
594
594
  "src": "452:997:59",
595
595
  "usedErrors": []
596
596
  }
@@ -603,7 +603,7 @@
603
603
  },
604
604
  "networks": {},
605
605
  "schemaVersion": "3.4.8",
606
- "updatedAt": "2022-08-11T12:58:51.696Z",
606
+ "updatedAt": "2022-08-25T14:16:53.046Z",
607
607
  "devdoc": {
608
608
  "author": "Superfluid",
609
609
  "details": "A base contract to be inherited by any contract that want to receive relayed transactions A subclass must use \"_msgSender()\" instead of \"msg.sender\" MODIFIED FROM: https://github.com/opengsn/forwarder/blob/master/contracts/BaseRelayRecipient.sol",