@superfluid-finance/ethereum-contracts 1.0.0-dev.8e99262.0 → 1.0.0-dev.9dfd215.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/README.md +2 -2
- package/build/contracts/AccessControl.json +1 -1
- package/build/contracts/Address.json +1 -1
- package/build/contracts/AgreementBase.json +18 -18
- package/build/contracts/AgreementLibrary.json +1 -1
- package/build/contracts/BaseRelayRecipient.json +1 -1
- package/build/contracts/BatchLiquidator.json +573 -573
- package/build/contracts/BatchOperation.json +1 -1
- package/build/contracts/CallUtils.json +605 -605
- package/build/contracts/ClosingOnUpdateFlowTestApp.json +3768 -3768
- package/build/contracts/ConstantFlowAgreementV1.json +4502 -4502
- package/build/contracts/Context.json +1 -1
- package/build/contracts/ContextDefinitions.json +1 -1
- package/build/contracts/Create2.json +1 -1
- package/build/contracts/CustomSuperTokenBase.json +1 -1
- package/build/contracts/ERC1820Implementer.json +1 -1
- package/build/contracts/ERC20.json +1 -1
- package/build/contracts/ERC20WithTokenInfo.json +1 -1
- package/build/contracts/ERC777Helper.json +1202 -1202
- package/build/contracts/ERC777RecipientDrainingGas.json +2697 -2697
- package/build/contracts/ERC777RecipientReverting.json +2697 -2697
- package/build/contracts/EnumerableSet.json +1 -1
- package/build/contracts/ExclusiveInflowTestApp.json +3768 -3768
- package/build/contracts/FixedSizeData.json +735 -735
- package/build/contracts/FlowExchangeTestApp.json +3768 -3768
- package/build/contracts/FullUpgradableSuperTokenProxy.json +371 -371
- package/build/contracts/IConstantFlowAgreementV1.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/IERC777.json +1 -1
- package/build/contracts/IERC777Recipient.json +1 -1
- package/build/contracts/IERC777Sender.json +1 -1
- package/build/contracts/IInstantDistributionAgreementV1.json +1 -1
- package/build/contracts/IMaticBridgedNativeSuperToken.json +1 -1
- package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +1 -1
- package/build/contracts/IMultiSigWallet.json +1 -1
- package/build/contracts/INativeSuperToken.json +1 -1
- package/build/contracts/INativeSuperTokenCustom.json +1 -1
- package/build/contracts/IRelayRecipient.json +1 -1
- package/build/contracts/IResolver.json +1 -1
- package/build/contracts/ISETH.json +1 -1
- package/build/contracts/ISETHCustom.json +1 -1
- package/build/contracts/ISuperAgreement.json +1 -1
- package/build/contracts/ISuperApp.json +1 -1
- package/build/contracts/ISuperToken.json +1 -1
- package/build/contracts/ISuperTokenFactory.json +1 -1
- package/build/contracts/ISuperfluid.json +1 -1
- package/build/contracts/ISuperfluidGovernance.json +1 -1
- package/build/contracts/ISuperfluidToken.json +1 -1
- package/build/contracts/ITOGAv1.json +3207 -3207
- package/build/contracts/IWETH.json +1757 -1757
- package/build/contracts/Initializable.json +1 -1
- package/build/contracts/InstantDistributionAgreementV1.json +6282 -6282
- package/build/contracts/Int96SafeMath.json +913 -913
- package/build/contracts/Math.json +1 -1
- package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +657 -657
- package/build/contracts/MultiFlowApp.json +4835 -4835
- package/build/contracts/NativeSuperTokenProxy.json +292 -292
- package/build/contracts/NonClosableOutflowTestApp.json +3768 -3768
- package/build/contracts/Ownable.json +1 -1
- package/build/contracts/Proxy.json +1 -1
- package/build/contracts/SETHProxy.json +1760 -1760
- package/build/contracts/SETHReceiveLogic.json +1760 -1760
- 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 +3768 -3768
- package/build/contracts/SignedSafeMath.json +1 -1
- package/build/contracts/SlotsBitmapLibrary.json +1 -1
- package/build/contracts/Strings.json +8075 -8075
- package/build/contracts/SuperAppBase.json +1 -1
- package/build/contracts/SuperAppDefinitions.json +1 -1
- package/build/contracts/SuperToken.json +7603 -7603
- package/build/contracts/SuperTokenFactory.json +1755 -1755
- package/build/contracts/SuperTokenFactoryBase.json +1749 -1749
- package/build/contracts/SuperTokenFactoryHelper.json +1753 -1753
- package/build/contracts/SuperUpgrader.json +1 -1
- package/build/contracts/Superfluid.json +13201 -13201
- package/build/contracts/SuperfluidGovernanceBase.json +1327 -1327
- package/build/contracts/SuperfluidGovernanceConfigs.json +1 -1
- package/build/contracts/SuperfluidGovernanceII.json +37 -37
- package/build/contracts/SuperfluidGovernanceIIProxy.json +33 -33
- package/build/contracts/SuperfluidLoader.json +42 -42
- package/build/contracts/SuperfluidOwnableGovernance.json +9 -9
- package/build/contracts/SuperfluidToken.json +4447 -4447
- package/build/contracts/TOGA.json +3213 -3213
- package/build/contracts/TestGovernance.json +582 -582
- package/build/contracts/TestResolver.json +289 -289
- package/build/contracts/TestToken.json +219 -219
- package/build/contracts/TokenInfo.json +1 -1
- package/build/contracts/UInt128SafeMath.json +311 -311
- package/build/contracts/UUPSProxiable.json +390 -390
- package/build/contracts/UUPSProxy.json +270 -270
- package/build/contracts/UUPSUtils.json +143 -143
- package/contracts/agreements/ConstantFlowAgreementV1.sol +1 -1
- package/contracts/agreements/InstantDistributionAgreementV1.sol +1 -1
- package/contracts/gov/SuperfluidGovernanceBase.sol +4 -4
- package/contracts/{utils → libs}/CallUtils.sol +0 -0
- package/contracts/{utils → libs}/ERC777Helper.sol +0 -0
- package/contracts/{utils → libs}/FixedSizeData.sol +0 -0
- package/contracts/{utils → libs}/Int96SafeMath.sol +0 -0
- package/contracts/{utils → libs}/Strings.sol +0 -0
- package/contracts/{utils → libs}/UInt128SafeMath.sol +0 -0
- package/contracts/superfluid/SuperToken.sol +1 -1
- package/contracts/superfluid/SuperTokenFactory.sol +1 -1
- package/contracts/superfluid/Superfluid.sol +1 -1
- package/contracts/superfluid/SuperfluidToken.sol +1 -1
- package/contracts/{superfluid → tokens}/FullUpgradableSuperTokenProxy.sol +0 -0
- package/contracts/{superfluid → utils}/BatchLiquidator.sol +0 -0
- package/contracts/ux/SuperfluidLoader.sol +2 -1
- package/package.json +16 -16
- package/scripts/deploy-erc1820.js +2 -2
- package/scripts/deploy-framework.js +415 -436
- package/scripts/deploy-matic-bridged-native-super-token.js +47 -59
- package/scripts/deploy-super-token.js +146 -166
- package/scripts/deploy-test-environment.js +48 -60
- package/scripts/deploy-test-token.js +53 -54
- package/scripts/deploy-unlisted-native-super-token.js +66 -0
- package/scripts/deploy-unlisted-super-token.js +46 -56
- package/scripts/gov-create-new-app-registration-key.js +61 -0
- package/scripts/gov-set-reward-address.js +49 -0
- package/scripts/gov-transfer-framework-ownership.js +70 -0
- package/scripts/gov-upgrade-super-token-logic.js +90 -0
- package/scripts/info-inspect-account.js +118 -0
- package/scripts/info-list-addresses.js +83 -0
- package/scripts/info-list-apps.js +55 -0
- package/scripts/info-print-contract-addresses.js +103 -0
- package/scripts/info-scan-deployments.js +57 -0
- package/scripts/info-show-protocol.js +301 -0
- package/scripts/{utils.js → libs/common.js} +170 -94
- package/scripts/{getConfig.js → libs/getConfig.js} +54 -9
- package/scripts/libs/truffleScriptRunnerFactory.js +94 -0
- package/scripts/resolver-list-super-token.js +71 -0
- package/scripts/resolver-register-token.js +68 -0
- package/scripts/resolver-reset-deployment.js +54 -0
- package/test/TestEnvironment.js +0 -3
- package/scripts/create-new-app-registration-key.js +0 -71
- package/scripts/deploy-native-super-token.js +0 -79
- package/scripts/inspect-account.js +0 -129
- package/scripts/list-apps.js +0 -58
- package/scripts/list-super-token.js +0 -82
- package/scripts/print-addresses.js +0 -101
- package/scripts/register-token.js +0 -74
- package/scripts/reset-deployment.js +0 -57
- package/scripts/scan-deployments.js +0 -64
- package/scripts/show-protocol-info.js +0 -301
- package/scripts/transfer-framework-ownership.js +0 -79
- 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=
|
|
10
|
-
<img src=
|
|
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-
|
|
7557
|
+
"updatedAt": "2021-11-26T13:07:56.493Z",
|
|
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-
|
|
8091
|
+
"updatedAt": "2021-11-26T13:07:56.521Z",
|
|
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
|
-
|
|
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":
|
|
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":
|
|
211
|
+
"referencedDeclaration": 29150,
|
|
212
212
|
"src": "248:13:22",
|
|
213
213
|
"typeDescriptions": {
|
|
214
|
-
"typeIdentifier": "t_contract$_UUPSProxiable_$
|
|
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
|
-
|
|
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
|
-
|
|
250
|
+
29150,
|
|
251
251
|
1234
|
|
252
252
|
],
|
|
253
253
|
"name": "AgreementBase",
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
"baseFunctions": [
|
|
402
|
-
|
|
402
|
+
29100
|
|
403
403
|
],
|
|
404
404
|
"body": {
|
|
405
405
|
"id": 3550,
|
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
},
|
|
556
556
|
{
|
|
557
557
|
"baseFunctions": [
|
|
558
|
-
|
|
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":
|
|
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
|
-
|
|
818
|
+
29150
|
|
819
819
|
]
|
|
820
820
|
},
|
|
821
821
|
"license": "AGPLv3"
|
|
@@ -835,7 +835,7 @@
|
|
|
835
835
|
},
|
|
836
836
|
{
|
|
837
837
|
"attributes": {
|
|
838
|
-
"SourceUnit":
|
|
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
|
-
|
|
896
|
+
29150
|
|
897
897
|
],
|
|
898
898
|
"contractKind": "contract",
|
|
899
899
|
"fullyImplemented": false,
|
|
900
900
|
"linearizedBaseContracts": [
|
|
901
901
|
3571,
|
|
902
902
|
11921,
|
|
903
|
-
|
|
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":
|
|
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
|
-
|
|
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
|
-
|
|
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":
|
|
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-
|
|
1596
|
+
"updatedAt": "2021-11-26T13:07:56.537Z",
|
|
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-
|
|
13792
|
+
"updatedAt": "2021-11-26T13:07:56.538Z",
|
|
13793
13793
|
"devdoc": {
|
|
13794
13794
|
"details": "Helper library for building super agreement",
|
|
13795
13795
|
"kind": "dev",
|