@superfluid-finance/ethereum-contracts 1.2.2-dev.6a8632e.0 → 1.2.2-dev.787fef7.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 (118) 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 +450 -243
  6. package/build/contracts/BaseRelayRecipient.json +112 -112
  7. package/build/contracts/BatchLiquidator.json +178 -178
  8. package/build/contracts/BatchOperation.json +1138 -1138
  9. package/build/contracts/CFAv1Library.json +2531 -2531
  10. package/build/contracts/CallUtils.json +478 -478
  11. package/build/contracts/ClosingOnUpdateFlowTestApp.json +1521 -1521
  12. package/build/contracts/ConstantFlowAgreementV1.json +19315 -18335
  13. package/build/contracts/Context.json +1 -1
  14. package/build/contracts/ContextDefinitions.json +1138 -1138
  15. package/build/contracts/Create2.json +1 -1
  16. package/build/contracts/CustomSuperTokenBase.json +31 -31
  17. package/build/contracts/ERC165.json +1 -1
  18. package/build/contracts/ERC1820Implementer.json +1 -1
  19. package/build/contracts/ERC20.json +1 -1
  20. package/build/contracts/ERC20Burnable.json +1 -1
  21. package/build/contracts/ERC20Pausable.json +1 -1
  22. package/build/contracts/ERC20PresetMinterPauser.json +1 -1
  23. package/build/contracts/ERC20WithTokenInfo.json +36 -36
  24. package/build/contracts/ERC721.json +1 -1
  25. package/build/contracts/ERC777Helper.json +660 -660
  26. package/build/contracts/ERC777RecipientDrainingGas.json +855 -855
  27. package/build/contracts/ERC777RecipientReverting.json +855 -855
  28. package/build/contracts/EnumerableSet.json +1 -1
  29. package/build/contracts/ExclusiveInflowTestApp.json +1521 -1521
  30. package/build/contracts/FixedSizeData.json +405 -405
  31. package/build/contracts/FlowExchangeTestApp.json +1522 -1522
  32. package/build/contracts/FlowOperatorDefinitions.json +1138 -1138
  33. package/build/contracts/FullUpgradableSuperTokenProxy.json +113 -113
  34. package/build/contracts/IAccessControl.json +1 -1
  35. package/build/contracts/IAccessControlEnumerable.json +1 -1
  36. package/build/contracts/IConstantFlowAgreementV1.json +1036 -1036
  37. package/build/contracts/IDAv1Library.json +4183 -4183
  38. package/build/contracts/IERC165.json +1 -1
  39. package/build/contracts/IERC1820Implementer.json +1 -1
  40. package/build/contracts/IERC1820Registry.json +1 -1
  41. package/build/contracts/IERC20.json +1 -1
  42. package/build/contracts/IERC20Metadata.json +1 -1
  43. package/build/contracts/IERC721.json +1 -1
  44. package/build/contracts/IERC721Metadata.json +1 -1
  45. package/build/contracts/IERC721Receiver.json +1 -1
  46. package/build/contracts/IERC777.json +1 -1
  47. package/build/contracts/IERC777Recipient.json +1 -1
  48. package/build/contracts/IERC777Sender.json +1 -1
  49. package/build/contracts/IInstantDistributionAgreementV1.json +1182 -1182
  50. package/build/contracts/IMaticBridgedNativeSuperToken.json +110 -110
  51. package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +110 -110
  52. package/build/contracts/IMultiSigWallet.json +45 -45
  53. package/build/contracts/IPureSuperToken.json +69 -69
  54. package/build/contracts/IPureSuperTokenCustom.json +69 -69
  55. package/build/contracts/IRelayRecipient.json +49 -49
  56. package/build/contracts/IResolver.json +73 -73
  57. package/build/contracts/ISETH.json +79 -79
  58. package/build/contracts/ISETHCustom.json +79 -79
  59. package/build/contracts/ISuperAgreement.json +88 -88
  60. package/build/contracts/ISuperApp.json +351 -351
  61. package/build/contracts/ISuperToken.json +1008 -1008
  62. package/build/contracts/ISuperTokenFactory.json +280 -280
  63. package/build/contracts/ISuperfluid.json +1466 -1466
  64. package/build/contracts/ISuperfluidGovernance.json +404 -404
  65. package/build/contracts/ISuperfluidToken.json +774 -774
  66. package/build/contracts/ITOGAv1.json +1431 -1431
  67. package/build/contracts/ITOGAv2.json +1431 -1431
  68. package/build/contracts/Initializable.json +1 -1
  69. package/build/contracts/InstantDistributionAgreementV1.json +9343 -9343
  70. package/build/contracts/Int96SafeMath.json +504 -504
  71. package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +228 -228
  72. package/build/contracts/NonClosableOutflowTestApp.json +1522 -1522
  73. package/build/contracts/Ownable.json +1 -1
  74. package/build/contracts/Pausable.json +1 -1
  75. package/build/contracts/Proxy.json +1 -1
  76. package/build/contracts/PureSuperToken.json +106 -106
  77. package/build/contracts/Resolver.json +98 -98
  78. package/build/contracts/SETHProxy.json +224 -224
  79. package/build/contracts/SafeCast.json +1 -1
  80. package/build/contracts/SafeERC20.json +1 -1
  81. package/build/contracts/SafeMath.json +1 -1
  82. package/build/contracts/SelfDeletingFlowTestApp.json +1521 -1521
  83. package/build/contracts/SlotsBitmapLibrary.json +794 -794
  84. package/build/contracts/Strings.json +1 -1
  85. package/build/contracts/SuperAppBase.json +394 -394
  86. package/build/contracts/SuperAppDefinitions.json +1138 -1138
  87. package/build/contracts/SuperToken.json +2351 -2351
  88. package/build/contracts/SuperTokenFactory.json +731 -731
  89. package/build/contracts/SuperTokenFactoryBase.json +721 -721
  90. package/build/contracts/SuperTokenFactoryHelper.json +724 -724
  91. package/build/contracts/SuperUpgrader.json +437 -437
  92. package/build/contracts/Superfluid.json +9812 -10169
  93. package/build/contracts/SuperfluidFrameworkDeployer.json +535 -535
  94. package/build/contracts/SuperfluidGovernanceBase.json +3471 -3789
  95. package/build/contracts/SuperfluidGovernanceConfigs.json +1138 -1138
  96. package/build/contracts/SuperfluidGovernanceII.json +2097 -2347
  97. package/build/contracts/SuperfluidGovernanceIIProxy.json +214 -214
  98. package/build/contracts/SuperfluidLoader.json +207 -207
  99. package/build/contracts/SuperfluidToken.json +1345 -1345
  100. package/build/contracts/TOGA.json +1448 -1448
  101. package/build/contracts/TestGovernance.json +2195 -2445
  102. package/build/contracts/TestToken.json +94 -94
  103. package/build/contracts/TokenCustodian.json +214 -214
  104. package/build/contracts/TokenInfo.json +58 -58
  105. package/build/contracts/UInt128SafeMath.json +97 -97
  106. package/build/contracts/UUPSProxiable.json +132 -132
  107. package/build/contracts/UUPSProxy.json +81 -81
  108. package/build/contracts/UUPSUtils.json +37 -37
  109. package/build/contracts-sizes.txt +3 -4
  110. package/contracts/agreements/AgreementLibrary.sol +1 -0
  111. package/contracts/agreements/ConstantFlowAgreementV1.sol +71 -35
  112. package/contracts/agreements/InstantDistributionAgreementV1.sol +3 -2
  113. package/contracts/gov/SuperfluidGovernanceBase.sol +9 -26
  114. package/contracts/{agreements → libs}/SlotsBitmapLibrary.sol +1 -3
  115. package/contracts/mocks/SuperfluidMock.sol +2 -2
  116. package/contracts/superfluid/Superfluid.sol +5 -10
  117. package/package.json +2 -1
  118. package/scripts/gov-create-new-app-registration-key.js +26 -3
@@ -68,18 +68,18 @@
68
68
  "absolutePath": "project:/contracts/interfaces/superfluid/ISuperAgreement.sol",
69
69
  "exportedSymbols": {
70
70
  "ISuperAgreement": [
71
- 18193
71
+ 17949
72
72
  ],
73
73
  "ISuperfluidToken": [
74
- 19643
74
+ 19399
75
75
  ]
76
76
  },
77
- "id": 18194,
77
+ "id": 17950,
78
78
  "license": "AGPLv3",
79
79
  "nodeType": "SourceUnit",
80
80
  "nodes": [
81
81
  {
82
- "id": 18166,
82
+ "id": 17922,
83
83
  "literals": [
84
84
  "solidity",
85
85
  ">=",
@@ -87,26 +87,26 @@
87
87
  ".0"
88
88
  ],
89
89
  "nodeType": "PragmaDirective",
90
- "src": "35:25:48"
90
+ "src": "35:25:47"
91
91
  },
92
92
  {
93
93
  "absolutePath": "project:/contracts/interfaces/superfluid/ISuperfluidToken.sol",
94
94
  "file": "./ISuperfluidToken.sol",
95
- "id": 18168,
95
+ "id": 17924,
96
96
  "nameLocation": "-1:-1:-1",
97
97
  "nodeType": "ImportDirective",
98
- "scope": 18194,
99
- "sourceUnit": 19644,
100
- "src": "62:58:48",
98
+ "scope": 17950,
99
+ "sourceUnit": 19400,
100
+ "src": "62:58:47",
101
101
  "symbolAliases": [
102
102
  {
103
103
  "foreign": {
104
- "id": 18167,
104
+ "id": 17923,
105
105
  "name": "ISuperfluidToken",
106
106
  "nodeType": "Identifier",
107
107
  "overloadedDeclarations": [],
108
- "referencedDeclaration": 19643,
109
- "src": "71:16:48",
108
+ "referencedDeclaration": 19399,
109
+ "src": "71:16:47",
110
110
  "typeDescriptions": {}
111
111
  },
112
112
  "nameLocation": "-1:-1:-1"
@@ -121,54 +121,54 @@
121
121
  "contractDependencies": [],
122
122
  "contractKind": "interface",
123
123
  "documentation": {
124
- "id": 18169,
124
+ "id": 17925,
125
125
  "nodeType": "StructuredDocumentation",
126
- "src": "122:65:48",
126
+ "src": "122:65:47",
127
127
  "text": " @title Super agreement interface\n @author Superfluid"
128
128
  },
129
129
  "fullyImplemented": false,
130
- "id": 18193,
130
+ "id": 17949,
131
131
  "linearizedBaseContracts": [
132
- 18193
132
+ 17949
133
133
  ],
134
134
  "name": "ISuperAgreement",
135
- "nameLocation": "198:15:48",
135
+ "nameLocation": "198:15:47",
136
136
  "nodeType": "ContractDefinition",
137
137
  "nodes": [
138
138
  {
139
139
  "documentation": {
140
- "id": 18170,
140
+ "id": 17926,
141
141
  "nodeType": "StructuredDocumentation",
142
- "src": "221:59:48",
142
+ "src": "221:59:47",
143
143
  "text": " @dev Get the type of the agreement class"
144
144
  },
145
145
  "functionSelector": "7730599e",
146
- "id": 18175,
146
+ "id": 17931,
147
147
  "implemented": false,
148
148
  "kind": "function",
149
149
  "modifiers": [],
150
150
  "name": "agreementType",
151
- "nameLocation": "294:13:48",
151
+ "nameLocation": "294:13:47",
152
152
  "nodeType": "FunctionDefinition",
153
153
  "parameters": {
154
- "id": 18171,
154
+ "id": 17927,
155
155
  "nodeType": "ParameterList",
156
156
  "parameters": [],
157
- "src": "307:2:48"
157
+ "src": "307:2:47"
158
158
  },
159
159
  "returnParameters": {
160
- "id": 18174,
160
+ "id": 17930,
161
161
  "nodeType": "ParameterList",
162
162
  "parameters": [
163
163
  {
164
164
  "constant": false,
165
- "id": 18173,
165
+ "id": 17929,
166
166
  "mutability": "mutable",
167
167
  "name": "",
168
168
  "nameLocation": "-1:-1:-1",
169
169
  "nodeType": "VariableDeclaration",
170
- "scope": 18175,
171
- "src": "333:7:48",
170
+ "scope": 17931,
171
+ "src": "333:7:47",
172
172
  "stateVariable": false,
173
173
  "storageLocation": "default",
174
174
  "typeDescriptions": {
@@ -176,10 +176,10 @@
176
176
  "typeString": "bytes32"
177
177
  },
178
178
  "typeName": {
179
- "id": 18172,
179
+ "id": 17928,
180
180
  "name": "bytes32",
181
181
  "nodeType": "ElementaryTypeName",
182
- "src": "333:7:48",
182
+ "src": "333:7:47",
183
183
  "typeDescriptions": {
184
184
  "typeIdentifier": "t_bytes32",
185
185
  "typeString": "bytes32"
@@ -188,62 +188,62 @@
188
188
  "visibility": "internal"
189
189
  }
190
190
  ],
191
- "src": "332:9:48"
191
+ "src": "332:9:47"
192
192
  },
193
- "scope": 18193,
194
- "src": "285:57:48",
193
+ "scope": 17949,
194
+ "src": "285:57:47",
195
195
  "stateMutability": "view",
196
196
  "virtual": false,
197
197
  "visibility": "external"
198
198
  },
199
199
  {
200
200
  "documentation": {
201
- "id": 18176,
201
+ "id": 17932,
202
202
  "nodeType": "StructuredDocumentation",
203
- "src": "348:425:48",
203
+ "src": "348:425:47",
204
204
  "text": " @dev Calculate the real-time balance for the account of this agreement class\n @param account Account the state belongs to\n @param time Time used for the calculation\n @return dynamicBalance Dynamic balance portion of real-time balance of this agreement\n @return deposit Account deposit amount of this agreement\n @return owedDeposit Account owed deposit amount of this agreement"
205
205
  },
206
206
  "functionSelector": "9b2e48bc",
207
- "id": 18192,
207
+ "id": 17948,
208
208
  "implemented": false,
209
209
  "kind": "function",
210
210
  "modifiers": [],
211
211
  "name": "realtimeBalanceOf",
212
- "nameLocation": "787:17:48",
212
+ "nameLocation": "787:17:47",
213
213
  "nodeType": "FunctionDefinition",
214
214
  "parameters": {
215
- "id": 18184,
215
+ "id": 17940,
216
216
  "nodeType": "ParameterList",
217
217
  "parameters": [
218
218
  {
219
219
  "constant": false,
220
- "id": 18179,
220
+ "id": 17935,
221
221
  "mutability": "mutable",
222
222
  "name": "token",
223
- "nameLocation": "831:5:48",
223
+ "nameLocation": "831:5:47",
224
224
  "nodeType": "VariableDeclaration",
225
- "scope": 18192,
226
- "src": "814:22:48",
225
+ "scope": 17948,
226
+ "src": "814:22:47",
227
227
  "stateVariable": false,
228
228
  "storageLocation": "default",
229
229
  "typeDescriptions": {
230
- "typeIdentifier": "t_contract$_ISuperfluidToken_$19643",
230
+ "typeIdentifier": "t_contract$_ISuperfluidToken_$19399",
231
231
  "typeString": "contract ISuperfluidToken"
232
232
  },
233
233
  "typeName": {
234
- "id": 18178,
234
+ "id": 17934,
235
235
  "nodeType": "UserDefinedTypeName",
236
236
  "pathNode": {
237
- "id": 18177,
237
+ "id": 17933,
238
238
  "name": "ISuperfluidToken",
239
239
  "nodeType": "IdentifierPath",
240
- "referencedDeclaration": 19643,
241
- "src": "814:16:48"
240
+ "referencedDeclaration": 19399,
241
+ "src": "814:16:47"
242
242
  },
243
- "referencedDeclaration": 19643,
244
- "src": "814:16:48",
243
+ "referencedDeclaration": 19399,
244
+ "src": "814:16:47",
245
245
  "typeDescriptions": {
246
- "typeIdentifier": "t_contract$_ISuperfluidToken_$19643",
246
+ "typeIdentifier": "t_contract$_ISuperfluidToken_$19399",
247
247
  "typeString": "contract ISuperfluidToken"
248
248
  }
249
249
  },
@@ -251,13 +251,13 @@
251
251
  },
252
252
  {
253
253
  "constant": false,
254
- "id": 18181,
254
+ "id": 17937,
255
255
  "mutability": "mutable",
256
256
  "name": "account",
257
- "nameLocation": "854:7:48",
257
+ "nameLocation": "854:7:47",
258
258
  "nodeType": "VariableDeclaration",
259
- "scope": 18192,
260
- "src": "846:15:48",
259
+ "scope": 17948,
260
+ "src": "846:15:47",
261
261
  "stateVariable": false,
262
262
  "storageLocation": "default",
263
263
  "typeDescriptions": {
@@ -265,10 +265,10 @@
265
265
  "typeString": "address"
266
266
  },
267
267
  "typeName": {
268
- "id": 18180,
268
+ "id": 17936,
269
269
  "name": "address",
270
270
  "nodeType": "ElementaryTypeName",
271
- "src": "846:7:48",
271
+ "src": "846:7:47",
272
272
  "stateMutability": "nonpayable",
273
273
  "typeDescriptions": {
274
274
  "typeIdentifier": "t_address",
@@ -279,13 +279,13 @@
279
279
  },
280
280
  {
281
281
  "constant": false,
282
- "id": 18183,
282
+ "id": 17939,
283
283
  "mutability": "mutable",
284
284
  "name": "time",
285
- "nameLocation": "879:4:48",
285
+ "nameLocation": "879:4:47",
286
286
  "nodeType": "VariableDeclaration",
287
- "scope": 18192,
288
- "src": "871:12:48",
287
+ "scope": 17948,
288
+ "src": "871:12:47",
289
289
  "stateVariable": false,
290
290
  "storageLocation": "default",
291
291
  "typeDescriptions": {
@@ -293,10 +293,10 @@
293
293
  "typeString": "uint256"
294
294
  },
295
295
  "typeName": {
296
- "id": 18182,
296
+ "id": 17938,
297
297
  "name": "uint256",
298
298
  "nodeType": "ElementaryTypeName",
299
- "src": "871:7:48",
299
+ "src": "871:7:47",
300
300
  "typeDescriptions": {
301
301
  "typeIdentifier": "t_uint256",
302
302
  "typeString": "uint256"
@@ -305,21 +305,21 @@
305
305
  "visibility": "internal"
306
306
  }
307
307
  ],
308
- "src": "804:85:48"
308
+ "src": "804:85:47"
309
309
  },
310
310
  "returnParameters": {
311
- "id": 18191,
311
+ "id": 17947,
312
312
  "nodeType": "ParameterList",
313
313
  "parameters": [
314
314
  {
315
315
  "constant": false,
316
- "id": 18186,
316
+ "id": 17942,
317
317
  "mutability": "mutable",
318
318
  "name": "dynamicBalance",
319
- "nameLocation": "957:14:48",
319
+ "nameLocation": "957:14:47",
320
320
  "nodeType": "VariableDeclaration",
321
- "scope": 18192,
322
- "src": "950:21:48",
321
+ "scope": 17948,
322
+ "src": "950:21:47",
323
323
  "stateVariable": false,
324
324
  "storageLocation": "default",
325
325
  "typeDescriptions": {
@@ -327,10 +327,10 @@
327
327
  "typeString": "int256"
328
328
  },
329
329
  "typeName": {
330
- "id": 18185,
330
+ "id": 17941,
331
331
  "name": "int256",
332
332
  "nodeType": "ElementaryTypeName",
333
- "src": "950:6:48",
333
+ "src": "950:6:47",
334
334
  "typeDescriptions": {
335
335
  "typeIdentifier": "t_int256",
336
336
  "typeString": "int256"
@@ -340,13 +340,13 @@
340
340
  },
341
341
  {
342
342
  "constant": false,
343
- "id": 18188,
343
+ "id": 17944,
344
344
  "mutability": "mutable",
345
345
  "name": "deposit",
346
- "nameLocation": "993:7:48",
346
+ "nameLocation": "993:7:47",
347
347
  "nodeType": "VariableDeclaration",
348
- "scope": 18192,
349
- "src": "985:15:48",
348
+ "scope": 17948,
349
+ "src": "985:15:47",
350
350
  "stateVariable": false,
351
351
  "storageLocation": "default",
352
352
  "typeDescriptions": {
@@ -354,10 +354,10 @@
354
354
  "typeString": "uint256"
355
355
  },
356
356
  "typeName": {
357
- "id": 18187,
357
+ "id": 17943,
358
358
  "name": "uint256",
359
359
  "nodeType": "ElementaryTypeName",
360
- "src": "985:7:48",
360
+ "src": "985:7:47",
361
361
  "typeDescriptions": {
362
362
  "typeIdentifier": "t_uint256",
363
363
  "typeString": "uint256"
@@ -367,13 +367,13 @@
367
367
  },
368
368
  {
369
369
  "constant": false,
370
- "id": 18190,
370
+ "id": 17946,
371
371
  "mutability": "mutable",
372
372
  "name": "owedDeposit",
373
- "nameLocation": "1022:11:48",
373
+ "nameLocation": "1022:11:47",
374
374
  "nodeType": "VariableDeclaration",
375
- "scope": 18192,
376
- "src": "1014:19:48",
375
+ "scope": 17948,
376
+ "src": "1014:19:47",
377
377
  "stateVariable": false,
378
378
  "storageLocation": "default",
379
379
  "typeDescriptions": {
@@ -381,10 +381,10 @@
381
381
  "typeString": "uint256"
382
382
  },
383
383
  "typeName": {
384
- "id": 18189,
384
+ "id": 17945,
385
385
  "name": "uint256",
386
386
  "nodeType": "ElementaryTypeName",
387
- "src": "1014:7:48",
387
+ "src": "1014:7:47",
388
388
  "typeDescriptions": {
389
389
  "typeIdentifier": "t_uint256",
390
390
  "typeString": "uint256"
@@ -393,21 +393,21 @@
393
393
  "visibility": "internal"
394
394
  }
395
395
  ],
396
- "src": "936:107:48"
396
+ "src": "936:107:47"
397
397
  },
398
- "scope": 18193,
399
- "src": "778:266:48",
398
+ "scope": 17949,
399
+ "src": "778:266:47",
400
400
  "stateMutability": "view",
401
401
  "virtual": false,
402
402
  "visibility": "external"
403
403
  }
404
404
  ],
405
- "scope": 18194,
406
- "src": "188:859:48",
405
+ "scope": 17950,
406
+ "src": "188:859:47",
407
407
  "usedErrors": []
408
408
  }
409
409
  ],
410
- "src": "35:1013:48"
410
+ "src": "35:1013:47"
411
411
  },
412
412
  "compiler": {
413
413
  "name": "solc",
@@ -415,7 +415,7 @@
415
415
  },
416
416
  "networks": {},
417
417
  "schemaVersion": "3.4.7",
418
- "updatedAt": "2022-05-04T10:31:47.070Z",
418
+ "updatedAt": "2022-05-05T19:02:22.043Z",
419
419
  "devdoc": {
420
420
  "author": "Superfluid",
421
421
  "kind": "dev",