@superfluid-finance/ethereum-contracts 1.4.1-dev.e675dbc.0 → 1.4.2-dev.2a937a8.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 (116) hide show
  1. package/README.md +1 -1
  2. package/build/contracts/AccessControl.json +1 -1
  3. package/build/contracts/AccessControlEnumerable.json +1 -1
  4. package/build/contracts/Address.json +1 -1
  5. package/build/contracts/AgreementBase.json +28 -28
  6. package/build/contracts/AgreementLibrary.json +165 -165
  7. package/build/contracts/BaseRelayRecipient.json +55 -55
  8. package/build/contracts/BatchLiquidator.json +208 -208
  9. package/build/contracts/BatchOperation.json +784 -784
  10. package/build/contracts/CFAv1Forwarder.json +4986 -4337
  11. package/build/contracts/CFAv1Library.json +2279 -2279
  12. package/build/contracts/CallUtils.json +198 -198
  13. package/build/contracts/ClosingOnUpdateFlowTestApp.json +1544 -1544
  14. package/build/contracts/ConstantFlowAgreementV1.json +8579 -8423
  15. package/build/contracts/Context.json +1 -1
  16. package/build/contracts/ContextDefinitions.json +784 -784
  17. package/build/contracts/Create2.json +1 -1
  18. package/build/contracts/CustomSuperTokenBase.json +19 -19
  19. package/build/contracts/ERC165.json +1 -1
  20. package/build/contracts/ERC1820Implementer.json +1 -1
  21. package/build/contracts/ERC1820RegistryCompiled.json +22 -22
  22. package/build/contracts/ERC20.json +1 -1
  23. package/build/contracts/ERC20Burnable.json +1 -1
  24. package/build/contracts/ERC20Pausable.json +1 -1
  25. package/build/contracts/ERC20PresetMinterPauser.json +1 -1
  26. package/build/contracts/ERC20WithTokenInfo.json +23 -23
  27. package/build/contracts/ERC777Helper.json +380 -380
  28. package/build/contracts/ERC777RecipientDrainingGas.json +855 -855
  29. package/build/contracts/ERC777RecipientReverting.json +855 -855
  30. package/build/contracts/EnumerableSet.json +1 -1
  31. package/build/contracts/EventsEmitter.json +43 -43
  32. package/build/contracts/ExclusiveInflowTestApp.json +1544 -1544
  33. package/build/contracts/FixedSizeData.json +200 -200
  34. package/build/contracts/FlowExchangeTestApp.json +1545 -1545
  35. package/build/contracts/FlowOperatorDefinitions.json +784 -784
  36. package/build/contracts/FullUpgradableSuperTokenProxy.json +116 -116
  37. package/build/contracts/IAccessControl.json +1 -1
  38. package/build/contracts/IAccessControlEnumerable.json +1 -1
  39. package/build/contracts/IConstantFlowAgreementV1.json +608 -608
  40. package/build/contracts/IDAv1Library.json +2611 -2611
  41. package/build/contracts/IERC165.json +1 -1
  42. package/build/contracts/IERC1820Implementer.json +1 -1
  43. package/build/contracts/IERC1820Registry.json +1 -1
  44. package/build/contracts/IERC20.json +1 -1
  45. package/build/contracts/IERC20Metadata.json +1 -1
  46. package/build/contracts/IERC20Permit.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 +652 -652
  51. package/build/contracts/IMultiSigWallet.json +24 -24
  52. package/build/contracts/IPureSuperToken.json +47 -47
  53. package/build/contracts/IPureSuperTokenCustom.json +47 -47
  54. package/build/contracts/IRelayRecipient.json +27 -27
  55. package/build/contracts/IResolver.json +38 -38
  56. package/build/contracts/ISETH.json +52 -52
  57. package/build/contracts/ISETHCustom.json +52 -52
  58. package/build/contracts/ISuperAgreement.json +50 -50
  59. package/build/contracts/ISuperApp.json +191 -191
  60. package/build/contracts/ISuperToken.json +544 -544
  61. package/build/contracts/ISuperTokenFactory.json +166 -166
  62. package/build/contracts/ISuperfluid.json +874 -874
  63. package/build/contracts/ISuperfluidGovernance.json +254 -254
  64. package/build/contracts/ISuperfluidToken.json +395 -395
  65. package/build/contracts/ITOGAv1.json +1441 -1441
  66. package/build/contracts/ITOGAv2.json +1441 -1441
  67. package/build/contracts/Initializable.json +1 -1
  68. package/build/contracts/InstantDistributionAgreementV1.json +5893 -5893
  69. package/build/contracts/NonClosableOutflowTestApp.json +1545 -1545
  70. package/build/contracts/Ownable.json +1 -1
  71. package/build/contracts/Pausable.json +1 -1
  72. package/build/contracts/Proxy.json +1 -1
  73. package/build/contracts/PureSuperToken.json +106 -106
  74. package/build/contracts/Resolver.json +98 -98
  75. package/build/contracts/SETHProxy.json +224 -224
  76. package/build/contracts/SafeCast.json +1 -1
  77. package/build/contracts/SafeERC20.json +1 -1
  78. package/build/contracts/SafeMath.json +1 -1
  79. package/build/contracts/SelfDeletingFlowTestApp.json +1544 -1544
  80. package/build/contracts/SlotsBitmapLibrary.json +457 -457
  81. package/build/contracts/StreamRedirector.json +745 -745
  82. package/build/contracts/Strings.json +1 -1
  83. package/build/contracts/SuperAppBase.json +239 -239
  84. package/build/contracts/SuperAppDefinitions.json +784 -784
  85. package/build/contracts/SuperToken.json +2475 -2475
  86. package/build/contracts/SuperTokenFactory.json +774 -774
  87. package/build/contracts/SuperTokenFactoryBase.json +764 -764
  88. package/build/contracts/SuperTokenFactoryHelper.json +767 -767
  89. package/build/contracts/SuperUpgrader.json +437 -437
  90. package/build/contracts/Superfluid.json +5082 -5082
  91. package/build/contracts/SuperfluidErrors.json +784 -784
  92. package/build/contracts/SuperfluidFrameworkDeployer.json +765 -765
  93. package/build/contracts/SuperfluidGovernanceBase.json +2459 -2459
  94. package/build/contracts/SuperfluidGovernanceConfigs.json +784 -784
  95. package/build/contracts/SuperfluidGovernanceII.json +155 -155
  96. package/build/contracts/SuperfluidGovernanceIIProxy.json +135 -135
  97. package/build/contracts/SuperfluidLoader.json +207 -207
  98. package/build/contracts/SuperfluidToken.json +1471 -1471
  99. package/build/contracts/TOGA.json +1457 -1457
  100. package/build/contracts/TestGovernance.json +250 -250
  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 +4 -4
  108. package/contracts/agreements/ConstantFlowAgreementV1.sol +8 -3
  109. package/contracts/utils/CFAv1Forwarder.sol +82 -38
  110. package/package.json +10 -6
  111. package/scripts/deploy-deterministically.js +35 -24
  112. package/scripts/deploy-framework.js +79 -38
  113. package/scripts/gov-upgrade-governance.js +87 -0
  114. package/scripts/info-print-contract-addresses.js +1 -1
  115. package/scripts/libs/common.js +2 -1
  116. package/scripts/libs/getConfig.js +1 -1
package/README.md CHANGED
@@ -87,7 +87,7 @@ In order to write concise testing code, we further recommend the use of [`@super
87
87
 
88
88
  ### Examples
89
89
 
90
- You may also want to check out some example dapps in the [examples folder](https://github.com/superfluid-finance/protocol-monorepo/tree/dev/examples) instead of starting from scratch.
90
+ You may also want to check out some example dapps in the [examples repo](https://github.com/superfluid-finance/super-examples) instead of starting from scratch.
91
91
  Clone a project, modify and play!
92
92
 
93
93
  ### Deploying Superfluid Protocol
@@ -4247,7 +4247,7 @@
4247
4247
  },
4248
4248
  "networks": {},
4249
4249
  "schemaVersion": "3.4.9",
4250
- "updatedAt": "2022-09-05T13:33:18.523Z",
4250
+ "updatedAt": "2022-09-30T19:21:31.084Z",
4251
4251
  "devdoc": {
4252
4252
  "details": "Contract module that allows children to implement role-based access control mechanisms. This is a lightweight version that doesn't allow enumerating role members except through off-chain means by accessing the contract event logs. Some applications may benefit from on-chain enumerability, for those cases see {AccessControlEnumerable}. Roles are referred to by their `bytes32` identifier. These should be exposed in the external API and be unique. The best way to achieve this is by using `public constant` hash digests: ``` bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\"); ``` Roles can be used to represent a set of permissions. To restrict access to a function call, use {hasRole}: ``` function foo() public { require(hasRole(MY_ROLE, msg.sender)); ... } ``` Roles can be granted and revoked dynamically via the {grantRole} and {revokeRole} functions. Each role has an associated admin role, and only accounts that have a role's admin role can call {grantRole} and {revokeRole}. By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means that only accounts with this role will be able to grant or revoke other roles. More complex role relationships can be created by using {_setRoleAdmin}. WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to grant and revoke this role. Extra precautions should be taken to secure accounts that have been granted it.",
4253
4253
  "kind": "dev",
@@ -1777,7 +1777,7 @@
1777
1777
  },
1778
1778
  "networks": {},
1779
1779
  "schemaVersion": "3.4.9",
1780
- "updatedAt": "2022-09-05T13:33:18.525Z",
1780
+ "updatedAt": "2022-09-30T19:21:31.086Z",
1781
1781
  "devdoc": {
1782
1782
  "details": "Extension of {AccessControl} that allows enumerating the members of each role.",
1783
1783
  "kind": "dev",
@@ -4004,7 +4004,7 @@
4004
4004
  },
4005
4005
  "networks": {},
4006
4006
  "schemaVersion": "3.4.9",
4007
- "updatedAt": "2022-09-05T13:33:18.559Z",
4007
+ "updatedAt": "2022-09-30T19:21:31.109Z",
4008
4008
  "devdoc": {
4009
4009
  "details": "Collection of functions related to the address type",
4010
4010
  "kind": "dev",
@@ -160,13 +160,13 @@
160
160
  6069
161
161
  ],
162
162
  "ISuperAgreement": [
163
- 19426
163
+ 19438
164
164
  ],
165
165
  "SuperfluidErrors": [
166
- 19397
166
+ 19409
167
167
  ],
168
168
  "UUPSProxiable": [
169
- 37507
169
+ 37519
170
170
  ]
171
171
  },
172
172
  "id": 6070,
@@ -190,7 +190,7 @@
190
190
  "nameLocation": "-1:-1:-1",
191
191
  "nodeType": "ImportDirective",
192
192
  "scope": 6070,
193
- "sourceUnit": 37508,
193
+ "sourceUnit": 37520,
194
194
  "src": "60:67:31",
195
195
  "symbolAliases": [
196
196
  {
@@ -199,7 +199,7 @@
199
199
  "name": "UUPSProxiable",
200
200
  "nodeType": "Identifier",
201
201
  "overloadedDeclarations": [],
202
- "referencedDeclaration": 37507,
202
+ "referencedDeclaration": 37519,
203
203
  "src": "69:13:31",
204
204
  "typeDescriptions": {}
205
205
  },
@@ -215,7 +215,7 @@
215
215
  "nameLocation": "-1:-1:-1",
216
216
  "nodeType": "ImportDirective",
217
217
  "scope": 6070,
218
- "sourceUnit": 19427,
218
+ "sourceUnit": 19439,
219
219
  "src": "128:79:31",
220
220
  "symbolAliases": [
221
221
  {
@@ -224,7 +224,7 @@
224
224
  "name": "ISuperAgreement",
225
225
  "nodeType": "Identifier",
226
226
  "overloadedDeclarations": [],
227
- "referencedDeclaration": 19426,
227
+ "referencedDeclaration": 19438,
228
228
  "src": "137:15:31",
229
229
  "typeDescriptions": {}
230
230
  },
@@ -240,7 +240,7 @@
240
240
  "nameLocation": "-1:-1:-1",
241
241
  "nodeType": "ImportDirective",
242
242
  "scope": 6070,
243
- "sourceUnit": 19398,
243
+ "sourceUnit": 19410,
244
244
  "src": "208:76:31",
245
245
  "symbolAliases": [
246
246
  {
@@ -249,7 +249,7 @@
249
249
  "name": "SuperfluidErrors",
250
250
  "nodeType": "Identifier",
251
251
  "overloadedDeclarations": [],
252
- "referencedDeclaration": 19397,
252
+ "referencedDeclaration": 19409,
253
253
  "src": "217:16:31",
254
254
  "typeDescriptions": {}
255
255
  },
@@ -269,7 +269,7 @@
269
269
  "412:13:31"
270
270
  ],
271
271
  "nodeType": "IdentifierPath",
272
- "referencedDeclaration": 37507,
272
+ "referencedDeclaration": 37519,
273
273
  "src": "412:13:31"
274
274
  },
275
275
  "id": 6018,
@@ -284,7 +284,7 @@
284
284
  "431:15:31"
285
285
  ],
286
286
  "nodeType": "IdentifierPath",
287
- "referencedDeclaration": 19426,
287
+ "referencedDeclaration": 19438,
288
288
  "src": "431:15:31"
289
289
  },
290
290
  "id": 6020,
@@ -305,8 +305,8 @@
305
305
  "id": 6069,
306
306
  "linearizedBaseContracts": [
307
307
  6069,
308
- 19426,
309
- 37507,
308
+ 19438,
309
+ 37519,
310
310
  858
311
311
  ],
312
312
  "name": "AgreementBase",
@@ -448,7 +448,7 @@
448
448
  },
449
449
  {
450
450
  "baseFunctions": [
451
- 37447
451
+ 37459
452
452
  ],
453
453
  "body": {
454
454
  "id": 6044,
@@ -486,10 +486,10 @@
486
486
  "name": "ISuperAgreement",
487
487
  "nodeType": "Identifier",
488
488
  "overloadedDeclarations": [],
489
- "referencedDeclaration": 19426,
489
+ "referencedDeclaration": 19438,
490
490
  "src": "658:15:31",
491
491
  "typeDescriptions": {
492
- "typeIdentifier": "t_type$_t_contract$_ISuperAgreement_$19426_$",
492
+ "typeIdentifier": "t_type$_t_contract$_ISuperAgreement_$19438_$",
493
493
  "typeString": "type(contract ISuperAgreement)"
494
494
  }
495
495
  },
@@ -505,7 +505,7 @@
505
505
  "src": "658:21:31",
506
506
  "tryCall": false,
507
507
  "typeDescriptions": {
508
- "typeIdentifier": "t_contract$_ISuperAgreement_$19426",
508
+ "typeIdentifier": "t_contract$_ISuperAgreement_$19438",
509
509
  "typeString": "contract ISuperAgreement"
510
510
  }
511
511
  },
@@ -517,7 +517,7 @@
517
517
  "memberLocation": "680:13:31",
518
518
  "memberName": "agreementType",
519
519
  "nodeType": "MemberAccess",
520
- "referencedDeclaration": 19408,
520
+ "referencedDeclaration": 19420,
521
521
  "src": "658:35:31",
522
522
  "typeDescriptions": {
523
523
  "typeIdentifier": "t_function_external_view$__$returns$_t_bytes32_$",
@@ -609,7 +609,7 @@
609
609
  },
610
610
  {
611
611
  "baseFunctions": [
612
- 37435
612
+ 37447
613
613
  ],
614
614
  "body": {
615
615
  "id": 6067,
@@ -686,10 +686,10 @@
686
686
  "name": "SuperfluidErrors",
687
687
  "nodeType": "Identifier",
688
688
  "overloadedDeclarations": [],
689
- "referencedDeclaration": 19397,
689
+ "referencedDeclaration": 19409,
690
690
  "src": "847:16:31",
691
691
  "typeDescriptions": {
692
- "typeIdentifier": "t_type$_t_contract$_SuperfluidErrors_$19397_$",
692
+ "typeIdentifier": "t_type$_t_contract$_SuperfluidErrors_$19409_$",
693
693
  "typeString": "type(library SuperfluidErrors)"
694
694
  }
695
695
  },
@@ -701,7 +701,7 @@
701
701
  "memberLocation": "864:24:31",
702
702
  "memberName": "AGREEMENT_BASE_ONLY_HOST",
703
703
  "nodeType": "MemberAccess",
704
- "referencedDeclaration": 19396,
704
+ "referencedDeclaration": 19408,
705
705
  "src": "847:41:31",
706
706
  "typeDescriptions": {
707
707
  "typeIdentifier": "t_uint256",
@@ -721,10 +721,10 @@
721
721
  "name": "SuperfluidErrors",
722
722
  "nodeType": "Identifier",
723
723
  "overloadedDeclarations": [],
724
- "referencedDeclaration": 19397,
724
+ "referencedDeclaration": 19409,
725
725
  "src": "820:16:31",
726
726
  "typeDescriptions": {
727
- "typeIdentifier": "t_type$_t_contract$_SuperfluidErrors_$19397_$",
727
+ "typeIdentifier": "t_type$_t_contract$_SuperfluidErrors_$19409_$",
728
728
  "typeString": "type(library SuperfluidErrors)"
729
729
  }
730
730
  },
@@ -736,7 +736,7 @@
736
736
  "memberLocation": "837:9:31",
737
737
  "memberName": "ONLY_HOST",
738
738
  "nodeType": "MemberAccess",
739
- "referencedDeclaration": 19290,
739
+ "referencedDeclaration": 19302,
740
740
  "src": "820:26:31",
741
741
  "typeDescriptions": {
742
742
  "typeIdentifier": "t_function_error_pure$_t_uint256_$returns$__$",
@@ -791,7 +791,7 @@
791
791
  "name": "_updateCodeAddress",
792
792
  "nodeType": "Identifier",
793
793
  "overloadedDeclarations": [],
794
- "referencedDeclaration": 37500,
794
+ "referencedDeclaration": 37512,
795
795
  "src": "906:18:31",
796
796
  "typeDescriptions": {
797
797
  "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
@@ -886,7 +886,7 @@
886
886
  "scope": 6070,
887
887
  "src": "373:573:31",
888
888
  "usedErrors": [
889
- 19290
889
+ 19302
890
890
  ]
891
891
  }
892
892
  ],
@@ -898,7 +898,7 @@
898
898
  },
899
899
  "networks": {},
900
900
  "schemaVersion": "3.4.9",
901
- "updatedAt": "2022-09-05T13:33:18.586Z",
901
+ "updatedAt": "2022-09-30T19:21:31.130Z",
902
902
  "devdoc": {
903
903
  "author": "Superfluid",
904
904
  "kind": "dev",