@superfluid-finance/ethereum-contracts 1.0.0-dev.43e7fdc.0 → 1.0.0-dev.44acf92.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 (152) hide show
  1. package/README.md +2 -2
  2. package/build/contracts/AccessControl.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 +1 -1
  6. package/build/contracts/BaseRelayRecipient.json +203 -203
  7. package/build/contracts/BatchLiquidator.json +573 -573
  8. package/build/contracts/BatchOperation.json +1 -1
  9. package/build/contracts/CallUtils.json +605 -605
  10. package/build/contracts/ClosingOnUpdateFlowTestApp.json +5056 -5056
  11. package/build/contracts/ConstantFlowAgreementV1.json +5615 -5615
  12. package/build/contracts/Context.json +1 -1
  13. package/build/contracts/ContextDefinitions.json +1 -1
  14. package/build/contracts/Create2.json +1 -1
  15. package/build/contracts/CustomSuperTokenBase.json +1 -1
  16. package/build/contracts/ERC1820Implementer.json +1 -1
  17. package/build/contracts/ERC20.json +1 -1
  18. package/build/contracts/ERC20WithTokenInfo.json +12 -12
  19. package/build/contracts/ERC777Helper.json +1202 -1202
  20. package/build/contracts/ERC777RecipientDrainingGas.json +2697 -2697
  21. package/build/contracts/ERC777RecipientReverting.json +2697 -2697
  22. package/build/contracts/EnumerableSet.json +1 -1
  23. package/build/contracts/ExclusiveInflowTestApp.json +5103 -5103
  24. package/build/contracts/FixedSizeData.json +735 -735
  25. package/build/contracts/FlowExchangeTestApp.json +5194 -5194
  26. package/build/contracts/FullUpgradableSuperTokenProxy.json +371 -371
  27. package/build/contracts/IConstantFlowAgreementV1.json +1 -1
  28. package/build/contracts/IERC1820Implementer.json +1 -1
  29. package/build/contracts/IERC1820Registry.json +1 -1
  30. package/build/contracts/IERC20.json +1 -1
  31. package/build/contracts/IERC777.json +1 -1
  32. package/build/contracts/IERC777Recipient.json +1 -1
  33. package/build/contracts/IERC777Sender.json +1 -1
  34. package/build/contracts/IInstantDistributionAgreementV1.json +1 -1
  35. package/build/contracts/IMaticBridgedNativeSuperToken.json +2704 -0
  36. package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +975 -0
  37. package/build/contracts/IMultiSigWallet.json +1 -1
  38. package/build/contracts/INativeSuperToken.json +168 -168
  39. package/build/contracts/INativeSuperTokenCustom.json +168 -168
  40. package/build/contracts/IRelayRecipient.json +89 -89
  41. package/build/contracts/IResolver.json +1 -1
  42. package/build/contracts/ISETH.json +436 -436
  43. package/build/contracts/ISETHCustom.json +436 -436
  44. package/build/contracts/ISuperAgreement.json +1 -1
  45. package/build/contracts/ISuperApp.json +1 -1
  46. package/build/contracts/ISuperToken.json +27 -27
  47. package/build/contracts/ISuperTokenFactory.json +1 -1
  48. package/build/contracts/ISuperfluid.json +5 -5
  49. package/build/contracts/ISuperfluidGovernance.json +1 -1
  50. package/build/contracts/ISuperfluidToken.json +1 -1
  51. package/build/contracts/ITOGAv1.json +3399 -3254
  52. package/build/contracts/IWETH.json +1782 -1782
  53. package/build/contracts/Initializable.json +1 -1
  54. package/build/contracts/InstantDistributionAgreementV1.json +7395 -7395
  55. package/build/contracts/Int96SafeMath.json +913 -913
  56. package/build/contracts/Math.json +1 -1
  57. package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +4070 -0
  58. package/build/contracts/MultiFlowApp.json +7027 -7027
  59. package/build/contracts/NativeSuperTokenProxy.json +305 -305
  60. package/build/contracts/NonClosableOutflowTestApp.json +4963 -4963
  61. package/build/contracts/Ownable.json +1 -1
  62. package/build/contracts/Proxy.json +1 -1
  63. package/build/contracts/SETHProxy.json +1785 -1785
  64. package/build/contracts/SETHReceiveLogic.json +1785 -1785
  65. package/build/contracts/SafeCast.json +1 -1
  66. package/build/contracts/SafeERC20.json +1 -1
  67. package/build/contracts/SafeMath.json +1 -1
  68. package/build/contracts/SelfDeletingFlowTestApp.json +5056 -5056
  69. package/build/contracts/SignedSafeMath.json +1 -1
  70. package/build/contracts/SlotsBitmapLibrary.json +1 -1
  71. package/build/contracts/Strings.json +8075 -8075
  72. package/build/contracts/SuperAppBase.json +1 -1
  73. package/build/contracts/SuperAppDefinitions.json +1 -1
  74. package/build/contracts/SuperToken.json +7609 -7609
  75. package/build/contracts/SuperTokenFactory.json +1757 -1757
  76. package/build/contracts/SuperTokenFactoryBase.json +1751 -1751
  77. package/build/contracts/SuperTokenFactoryHelper.json +1755 -1755
  78. package/build/contracts/SuperUpgrader.json +1474 -1474
  79. package/build/contracts/Superfluid.json +18217 -18217
  80. package/build/contracts/SuperfluidGovernanceBase.json +1327 -1327
  81. package/build/contracts/SuperfluidGovernanceConfigs.json +1 -1
  82. package/build/contracts/SuperfluidGovernanceII.json +37 -37
  83. package/build/contracts/SuperfluidGovernanceIIProxy.json +33 -33
  84. package/build/contracts/SuperfluidLoader.json +961 -961
  85. package/build/contracts/SuperfluidOwnableGovernance.json +9 -9
  86. package/build/contracts/SuperfluidToken.json +4447 -4447
  87. package/build/contracts/TOGA.json +3420 -3281
  88. package/build/contracts/TestGovernance.json +582 -582
  89. package/build/contracts/TestResolver.json +289 -289
  90. package/build/contracts/TestToken.json +219 -219
  91. package/build/contracts/TokenInfo.json +107 -107
  92. package/build/contracts/UInt128SafeMath.json +311 -311
  93. package/build/contracts/UUPSProxiable.json +390 -390
  94. package/build/contracts/UUPSProxy.json +270 -270
  95. package/build/contracts/UUPSUtils.json +143 -143
  96. package/contracts/agreements/ConstantFlowAgreementV1.sol +1 -1
  97. package/contracts/agreements/InstantDistributionAgreementV1.sol +1 -1
  98. package/contracts/gov/SuperfluidGovernanceBase.sol +4 -4
  99. package/contracts/interfaces/tokens/IMaticBridgedNativeSuperToken.sol +30 -0
  100. package/contracts/{utils → libs}/CallUtils.sol +0 -0
  101. package/contracts/{utils → libs}/ERC777Helper.sol +0 -0
  102. package/contracts/{utils → libs}/FixedSizeData.sol +0 -0
  103. package/contracts/{utils → libs}/Int96SafeMath.sol +0 -0
  104. package/contracts/{utils → libs}/Strings.sol +0 -0
  105. package/contracts/{utils → libs}/UInt128SafeMath.sol +0 -0
  106. package/contracts/superfluid/SuperToken.sol +1 -1
  107. package/contracts/superfluid/SuperTokenFactory.sol +1 -1
  108. package/contracts/superfluid/Superfluid.sol +1 -1
  109. package/contracts/superfluid/SuperfluidToken.sol +1 -1
  110. package/contracts/{superfluid → tokens}/FullUpgradableSuperTokenProxy.sol +0 -0
  111. package/contracts/tokens/MaticBridgedNativeSuperToken.sol +46 -0
  112. package/contracts/{superfluid → utils}/BatchLiquidator.sol +0 -0
  113. package/contracts/utils/TOGA.sol +4 -7
  114. package/contracts/ux/SuperfluidLoader.sol +2 -1
  115. package/package.json +16 -16
  116. package/scripts/deploy-erc1820.js +2 -2
  117. package/scripts/deploy-framework.js +415 -436
  118. package/scripts/deploy-matic-bridged-native-super-token.js +74 -0
  119. package/scripts/deploy-super-token.js +146 -166
  120. package/scripts/deploy-test-environment.js +48 -60
  121. package/scripts/deploy-test-token.js +53 -54
  122. package/scripts/deploy-unlisted-native-super-token.js +66 -0
  123. package/scripts/deploy-unlisted-super-token.js +46 -56
  124. package/scripts/gov-create-new-app-registration-key.js +61 -0
  125. package/scripts/gov-set-reward-address.js +49 -0
  126. package/scripts/gov-transfer-framework-ownership.js +70 -0
  127. package/scripts/gov-upgrade-super-token-logic.js +90 -0
  128. package/scripts/info-inspect-account.js +118 -0
  129. package/scripts/info-list-addresses.js +83 -0
  130. package/scripts/info-list-apps.js +55 -0
  131. package/scripts/info-print-contract-addresses.js +103 -0
  132. package/scripts/info-scan-deployments.js +57 -0
  133. package/scripts/info-show-protocol.js +301 -0
  134. package/scripts/{utils.js → libs/common.js} +170 -94
  135. package/scripts/{getConfig.js → libs/getConfig.js} +54 -9
  136. package/scripts/libs/truffleScriptRunnerFactory.js +94 -0
  137. package/scripts/resolver-list-super-token.js +71 -0
  138. package/scripts/resolver-register-token.js +68 -0
  139. package/scripts/resolver-reset-deployment.js +54 -0
  140. package/test/TestEnvironment.js +0 -3
  141. package/scripts/create-new-app-registration-key.js +0 -71
  142. package/scripts/deploy-native-super-token.js +0 -79
  143. package/scripts/inspect-account.js +0 -129
  144. package/scripts/list-apps.js +0 -58
  145. package/scripts/list-super-token.js +0 -82
  146. package/scripts/print-addresses.js +0 -101
  147. package/scripts/register-token.js +0 -74
  148. package/scripts/reset-deployment.js +0 -57
  149. package/scripts/scan-deployments.js +0 -64
  150. package/scripts/show-protocol-info.js +0 -301
  151. package/scripts/transfer-framework-ownership.js +0 -79
  152. package/scripts/upgrade-super-token-logic.js +0 -105
package/README.md CHANGED
@@ -6,8 +6,8 @@
6
6
  <a href="https://www.npmjs.com/package/@superfluid-finance/ethereum-contracts" target="_blank">
7
7
  <img alt="Version" src="https://img.shields.io/npm/v/@superfluid-finance/ethereum-contracts.svg">
8
8
  </a>
9
- <a href='https://coveralls.io/github/superfluid-finance/protocol-monorepo?branch=dev'>
10
- <img src='https://coveralls.io/repos/github/superfluid-finance/protocol-monorepo/badge.svg?branch=dev' alt='Coverage Status' />
9
+ <a href="https://codecov.io/gh/superfluid-finance/protocol-monorepo/tree/dev/packages/ethereum-contracts">
10
+ <img src="https://codecov.io/gh/superfluid-finance/protocol-monorepo/branch/dev/graph/badge.svg?token=LJW5NDGEJ9&flag=ethereum-contracts"/>
11
11
  </a>
12
12
  <a href="#" target="_blank">
13
13
  <img alt="License: AGPLv3" src="https://img.shields.io/badge/License-AGPL%20v3-blue.svg" />
@@ -7554,7 +7554,7 @@
7554
7554
  },
7555
7555
  "networks": {},
7556
7556
  "schemaVersion": "3.4.3",
7557
- "updatedAt": "2021-11-01T15:35:16.595Z",
7557
+ "updatedAt": "2021-11-26T14:36:44.472Z",
7558
7558
  "devdoc": {
7559
7559
  "details": "Contract module that allows children to implement role-based access control mechanisms. 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.",
7560
7560
  "events": {
@@ -8088,7 +8088,7 @@
8088
8088
  },
8089
8089
  "networks": {},
8090
8090
  "schemaVersion": "3.4.3",
8091
- "updatedAt": "2021-11-01T15:35:16.628Z",
8091
+ "updatedAt": "2021-11-26T14:36:44.500Z",
8092
8092
  "devdoc": {
8093
8093
  "details": "Collection of functions related to the address type",
8094
8094
  "kind": "dev",
@@ -139,7 +139,7 @@
139
139
  11921
140
140
  ],
141
141
  "UUPSProxiable": [
142
- 26902
142
+ 29150
143
143
  ]
144
144
  },
145
145
  "id": 3572,
@@ -162,7 +162,7 @@
162
162
  "id": 3518,
163
163
  "nodeType": "ImportDirective",
164
164
  "scope": 3572,
165
- "sourceUnit": 26903,
165
+ "sourceUnit": 29151,
166
166
  "src": "59:67:22",
167
167
  "symbolAliases": [
168
168
  {
@@ -208,10 +208,10 @@
208
208
  "id": 3521,
209
209
  "name": "UUPSProxiable",
210
210
  "nodeType": "UserDefinedTypeName",
211
- "referencedDeclaration": 26902,
211
+ "referencedDeclaration": 29150,
212
212
  "src": "248:13:22",
213
213
  "typeDescriptions": {
214
- "typeIdentifier": "t_contract$_UUPSProxiable_$26902",
214
+ "typeIdentifier": "t_contract$_UUPSProxiable_$29150",
215
215
  "typeString": "contract UUPSProxiable"
216
216
  }
217
217
  },
@@ -239,7 +239,7 @@
239
239
  "contractDependencies": [
240
240
  1234,
241
241
  11921,
242
- 26902
242
+ 29150
243
243
  ],
244
244
  "contractKind": "contract",
245
245
  "fullyImplemented": false,
@@ -247,7 +247,7 @@
247
247
  "linearizedBaseContracts": [
248
248
  3571,
249
249
  11921,
250
- 26902,
250
+ 29150,
251
251
  1234
252
252
  ],
253
253
  "name": "AgreementBase",
@@ -399,7 +399,7 @@
399
399
  },
400
400
  {
401
401
  "baseFunctions": [
402
- 26852
402
+ 29100
403
403
  ],
404
404
  "body": {
405
405
  "id": 3550,
@@ -555,7 +555,7 @@
555
555
  },
556
556
  {
557
557
  "baseFunctions": [
558
- 26846
558
+ 29094
559
559
  ],
560
560
  "body": {
561
561
  "id": 3569,
@@ -709,7 +709,7 @@
709
709
  "name": "_updateCodeAddress",
710
710
  "nodeType": "Identifier",
711
711
  "overloadedDeclarations": [],
712
- "referencedDeclaration": 26895,
712
+ "referencedDeclaration": 29143,
713
713
  "src": "765:18:22",
714
714
  "typeDescriptions": {
715
715
  "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
@@ -815,7 +815,7 @@
815
815
  11921
816
816
  ],
817
817
  "UUPSProxiable": [
818
- 26902
818
+ 29150
819
819
  ]
820
820
  },
821
821
  "license": "AGPLv3"
@@ -835,7 +835,7 @@
835
835
  },
836
836
  {
837
837
  "attributes": {
838
- "SourceUnit": 26903,
838
+ "SourceUnit": 29151,
839
839
  "absolutePath": "project:/contracts/upgradability/UUPSProxiable.sol",
840
840
  "file": "../upgradability/UUPSProxiable.sol",
841
841
  "scope": 3572,
@@ -893,14 +893,14 @@
893
893
  "contractDependencies": [
894
894
  1234,
895
895
  11921,
896
- 26902
896
+ 29150
897
897
  ],
898
898
  "contractKind": "contract",
899
899
  "fullyImplemented": false,
900
900
  "linearizedBaseContracts": [
901
901
  3571,
902
902
  11921,
903
- 26902,
903
+ 29150,
904
904
  1234
905
905
  ],
906
906
  "name": "AgreementBase",
@@ -913,7 +913,7 @@
913
913
  {
914
914
  "attributes": {
915
915
  "name": "UUPSProxiable",
916
- "referencedDeclaration": 26902,
916
+ "referencedDeclaration": 29150,
917
917
  "type": "contract UUPSProxiable"
918
918
  },
919
919
  "id": 3521,
@@ -1117,7 +1117,7 @@
1117
1117
  {
1118
1118
  "attributes": {
1119
1119
  "baseFunctions": [
1120
- 26852
1120
+ 29100
1121
1121
  ],
1122
1122
  "functionSelector": "52d1902d",
1123
1123
  "implemented": true,
@@ -1306,7 +1306,7 @@
1306
1306
  {
1307
1307
  "attributes": {
1308
1308
  "baseFunctions": [
1309
- 26846
1309
+ 29094
1310
1310
  ],
1311
1311
  "functionSelector": "46951954",
1312
1312
  "implemented": true,
@@ -1536,7 +1536,7 @@
1536
1536
  "overloadedDeclarations": [
1537
1537
  null
1538
1538
  ],
1539
- "referencedDeclaration": 26895,
1539
+ "referencedDeclaration": 29143,
1540
1540
  "type": "function (address)",
1541
1541
  "value": "_updateCodeAddress"
1542
1542
  },
@@ -1593,7 +1593,7 @@
1593
1593
  },
1594
1594
  "networks": {},
1595
1595
  "schemaVersion": "3.4.3",
1596
- "updatedAt": "2021-11-01T15:35:16.646Z",
1596
+ "updatedAt": "2021-11-26T14:36:44.515Z",
1597
1597
  "devdoc": {
1598
1598
  "kind": "dev",
1599
1599
  "methods": {
@@ -13789,7 +13789,7 @@
13789
13789
  },
13790
13790
  "networks": {},
13791
13791
  "schemaVersion": "3.4.3",
13792
- "updatedAt": "2021-11-01T15:35:16.647Z",
13792
+ "updatedAt": "2021-11-26T14:36:44.515Z",
13793
13793
  "devdoc": {
13794
13794
  "details": "Helper library for building super agreement",
13795
13795
  "kind": "dev",