@superfluid-finance/ethereum-contracts 1.3.1-dev.b8455ea.0 → 1.3.1-dev.ff4f866.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 (117) 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 +1 -1
  5. package/build/contracts/AgreementLibrary.json +1 -1
  6. package/build/contracts/BaseRelayRecipient.json +1 -1
  7. package/build/contracts/BatchLiquidator.json +1 -1
  8. package/build/contracts/BatchOperation.json +1 -1
  9. package/build/contracts/CFAv1Library.json +1 -1
  10. package/build/contracts/CallUtils.json +1 -1
  11. package/build/contracts/ClosingOnUpdateFlowTestApp.json +1 -1
  12. package/build/contracts/ConstantFlowAgreementV1.json +1 -1
  13. package/build/contracts/Context.json +1 -1
  14. package/build/contracts/ContextDefinitions.json +1 -1
  15. package/build/contracts/Create2.json +1 -1
  16. package/build/contracts/CustomSuperTokenBase.json +1 -1
  17. package/build/contracts/ERC165.json +1 -1
  18. package/build/contracts/ERC1820Implementer.json +1 -1
  19. package/build/contracts/ERC1820RegistryCompiled.json +1 -1
  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 +1 -1
  25. package/build/contracts/ERC777Helper.json +1 -1
  26. package/build/contracts/ERC777RecipientDrainingGas.json +1 -1
  27. package/build/contracts/ERC777RecipientReverting.json +1 -1
  28. package/build/contracts/EnumerableSet.json +1 -1
  29. package/build/contracts/EventsEmitter.json +1 -1
  30. package/build/contracts/ExclusiveInflowTestApp.json +1 -1
  31. package/build/contracts/FixedSizeData.json +1 -1
  32. package/build/contracts/FlowExchangeTestApp.json +1 -1
  33. package/build/contracts/FlowOperatorDefinitions.json +1 -1
  34. package/build/contracts/FullUpgradableSuperTokenProxy.json +1 -1
  35. package/build/contracts/IAccessControl.json +1 -1
  36. package/build/contracts/IAccessControlEnumerable.json +1 -1
  37. package/build/contracts/IConstantFlowAgreementV1.json +1 -1
  38. package/build/contracts/IDAv1Library.json +1 -1
  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/IERC777.json +1 -1
  45. package/build/contracts/IERC777Recipient.json +1 -1
  46. package/build/contracts/IERC777Sender.json +1 -1
  47. package/build/contracts/IInstantDistributionAgreementV1.json +1 -1
  48. package/build/contracts/IMaticBridgedNativeSuperToken.json +1 -1
  49. package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +1 -1
  50. package/build/contracts/IMultiSigWallet.json +1 -1
  51. package/build/contracts/IPureSuperToken.json +1 -1
  52. package/build/contracts/IPureSuperTokenCustom.json +1 -1
  53. package/build/contracts/IRelayRecipient.json +1 -1
  54. package/build/contracts/IResolver.json +1 -1
  55. package/build/contracts/ISETH.json +1 -1
  56. package/build/contracts/ISETHCustom.json +1 -1
  57. package/build/contracts/ISuperAgreement.json +1 -1
  58. package/build/contracts/ISuperApp.json +1 -1
  59. package/build/contracts/ISuperToken.json +1 -1
  60. package/build/contracts/ISuperTokenFactory.json +1 -1
  61. package/build/contracts/ISuperfluid.json +1 -1
  62. package/build/contracts/ISuperfluidGovernance.json +1 -1
  63. package/build/contracts/ISuperfluidToken.json +1 -1
  64. package/build/contracts/ITOGAv1.json +1 -1
  65. package/build/contracts/ITOGAv2.json +1 -1
  66. package/build/contracts/Initializable.json +1 -1
  67. package/build/contracts/InstantDistributionAgreementV1.json +1 -1
  68. package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +1 -1
  69. package/build/contracts/NonClosableOutflowTestApp.json +1 -1
  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 +1 -1
  74. package/build/contracts/Resolver.json +1 -1
  75. package/build/contracts/SETHProxy.json +1 -1
  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 +1 -1
  80. package/build/contracts/SlotsBitmapLibrary.json +1 -1
  81. package/build/contracts/Strings.json +1 -1
  82. package/build/contracts/SuperAppBase.json +1 -1
  83. package/build/contracts/SuperAppDefinitions.json +1 -1
  84. package/build/contracts/SuperToken.json +1 -1
  85. package/build/contracts/SuperTokenFactory.json +1 -1
  86. package/build/contracts/SuperTokenFactoryBase.json +1 -1
  87. package/build/contracts/SuperTokenFactoryHelper.json +1 -1
  88. package/build/contracts/SuperUpgrader.json +1 -1
  89. package/build/contracts/Superfluid.json +1 -1
  90. package/build/contracts/SuperfluidFrameworkDeployer.json +1 -1
  91. package/build/contracts/SuperfluidGovernanceBase.json +1 -1
  92. package/build/contracts/SuperfluidGovernanceConfigs.json +1 -1
  93. package/build/contracts/SuperfluidGovernanceII.json +1 -1
  94. package/build/contracts/SuperfluidGovernanceIIProxy.json +1 -1
  95. package/build/contracts/SuperfluidLoader.json +1 -1
  96. package/build/contracts/SuperfluidToken.json +1 -1
  97. package/build/contracts/TOGA.json +1 -1
  98. package/build/contracts/TestGovernance.json +1 -1
  99. package/build/contracts/TestToken.json +1 -1
  100. package/build/contracts/TokenCustodian.json +1 -1
  101. package/build/contracts/TokenInfo.json +1 -1
  102. package/build/contracts/UUPSProxiable.json +1 -1
  103. package/build/contracts/UUPSProxy.json +1 -1
  104. package/build/contracts/UUPSUtils.json +1 -1
  105. package/build/contracts-sizes.txt +3 -3
  106. package/package.json +2 -2
  107. package/scripts/deploy-framework.js +5 -5
  108. package/scripts/deploy-super-token.js +13 -4
  109. package/scripts/gov-create-new-app-registration-key.js +2 -1
  110. package/scripts/gov-create-new-factory-registration.js +1 -1
  111. package/scripts/gov-set-trusted-forwarder.js +77 -0
  112. package/scripts/info-show-protocol.js +28 -12
  113. package/scripts/libs/getConfig.js +21 -3
  114. package/scripts/resolver-list-super-token.js +1 -0
  115. package/utils/README.md +2 -2
  116. package/utils/stream-closer.html +2 -1
  117. package/utils/supertoken-deployer.html +2 -1
@@ -5729,7 +5729,7 @@
5729
5729
  },
5730
5730
  "networks": {},
5731
5731
  "schemaVersion": "3.4.7",
5732
- "updatedAt": "2022-06-15T22:03:58.606Z",
5732
+ "updatedAt": "2022-06-30T16:29:59.692Z",
5733
5733
  "devdoc": {
5734
5734
  "author": "Superfluid",
5735
5735
  "events": {
@@ -1128,7 +1128,7 @@
1128
1128
  },
1129
1129
  "networks": {},
1130
1130
  "schemaVersion": "3.4.7",
1131
- "updatedAt": "2022-06-15T22:03:58.609Z",
1131
+ "updatedAt": "2022-06-30T16:29:59.695Z",
1132
1132
  "devdoc": {
1133
1133
  "author": "Superfluid",
1134
1134
  "events": {
@@ -6362,7 +6362,7 @@
6362
6362
  },
6363
6363
  "networks": {},
6364
6364
  "schemaVersion": "3.4.7",
6365
- "updatedAt": "2022-06-15T22:03:58.609Z",
6365
+ "updatedAt": "2022-06-30T16:29:59.696Z",
6366
6366
  "devdoc": {
6367
6367
  "author": "Superfluid",
6368
6368
  "events": {
@@ -1621,7 +1621,7 @@
1621
1621
  },
1622
1622
  "networks": {},
1623
1623
  "schemaVersion": "3.4.7",
1624
- "updatedAt": "2022-06-15T22:03:58.612Z",
1624
+ "updatedAt": "2022-06-30T16:29:59.698Z",
1625
1625
  "devdoc": {
1626
1626
  "author": "Superfluid",
1627
1627
  "kind": "dev",
@@ -3918,7 +3918,7 @@
3918
3918
  },
3919
3919
  "networks": {},
3920
3920
  "schemaVersion": "3.4.7",
3921
- "updatedAt": "2022-06-15T22:03:58.613Z",
3921
+ "updatedAt": "2022-06-30T16:29:59.699Z",
3922
3922
  "devdoc": {
3923
3923
  "author": "Superfluid",
3924
3924
  "events": {
@@ -11483,7 +11483,7 @@
11483
11483
  },
11484
11484
  "networks": {},
11485
11485
  "schemaVersion": "3.4.7",
11486
- "updatedAt": "2022-06-15T22:03:59.018Z",
11486
+ "updatedAt": "2022-06-30T16:30:00.117Z",
11487
11487
  "devdoc": {
11488
11488
  "author": "Superfluid",
11489
11489
  "details": "TOGA is a simple implementation of a continuous auction. It's used to designate PICs (Patrician In Charge) - a role defined per Super Token. Anybody can become the PIC for a Super Token by staking the highest bond (denominated in the token). Staking is done by simply using ERC777.send(), transferring the bond amount to be staked to this contract. Via userData parameter (abi-encoded int96), an exitRate can be defined. If omitted, a default will be chosen. The exitRate is the flowrate at which the bond is streamed back to the PIC. Any rewards accrued by this contract (in general the whole token balance) become part of the bond. When a PIC is outbid, the current bond is transferred to it with ERC777.send(). changes in v2: In case that send() fails (e.g. due to a reverting hook), the bond is transferred to a custodian contract. Funds accumulated there can be withdrawn from there at any time. The current PIC can increase its bond by sending more funds using ERC777.send().",
@@ -11515,7 +11515,7 @@
11515
11515
  },
11516
11516
  "networks": {},
11517
11517
  "schemaVersion": "3.4.7",
11518
- "updatedAt": "2022-06-15T22:03:59.024Z",
11518
+ "updatedAt": "2022-06-30T16:30:00.122Z",
11519
11519
  "devdoc": {
11520
11520
  "events": {
11521
11521
  "BondIncreased(address,uint256)": {
@@ -879,7 +879,7 @@
879
879
  },
880
880
  "networks": {},
881
881
  "schemaVersion": "3.4.7",
882
- "updatedAt": "2022-06-15T22:03:58.450Z",
882
+ "updatedAt": "2022-06-30T16:29:59.535Z",
883
883
  "devdoc": {
884
884
  "custom:oz-upgrades-unsafe-allow": "constructor constructor() initializer {} ``` ====",
885
885
  "details": "This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. [CAUTION] ==== Avoid leaving a contract uninitialized. An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: [.hljs-theme-light.nopadding] ```",
@@ -74591,7 +74591,7 @@
74591
74591
  },
74592
74592
  "networks": {},
74593
74593
  "schemaVersion": "3.4.7",
74594
- "updatedAt": "2022-06-15T22:03:58.526Z",
74594
+ "updatedAt": "2022-06-30T16:29:59.611Z",
74595
74595
  "devdoc": {
74596
74596
  "author": "Superfluid",
74597
74597
  "details": "Please read IInstantDistributionAgreementV1 for implementation notes.For more technical notes, please visit protocol-monorepo wiki area.",
@@ -5534,7 +5534,7 @@
5534
5534
  },
5535
5535
  "networks": {},
5536
5536
  "schemaVersion": "3.4.7",
5537
- "updatedAt": "2022-06-15T22:03:58.990Z",
5537
+ "updatedAt": "2022-06-30T16:30:00.089Z",
5538
5538
  "devdoc": {
5539
5539
  "author": "Superfluid",
5540
5540
  "details": "Native SuperToken with interfaces for the Matic POS bridge to mint and burn.See https://docs.polygon.technology/docs/develop/ethereum-matic/pos/mapping-assets/",
@@ -19967,7 +19967,7 @@
19967
19967
  },
19968
19968
  "networks": {},
19969
19969
  "schemaVersion": "3.4.7",
19970
- "updatedAt": "2022-06-15T22:03:58.668Z",
19970
+ "updatedAt": "2022-06-30T16:29:59.756Z",
19971
19971
  "devdoc": {
19972
19972
  "details": "This is CFA SuperApp that refuses to close its outflow by its receiver. This test the logic that the app re-opens the same stream in the termination callback. In reality, the app would have to fund the app with enough tokens to not to be jailed due to low balance.",
19973
19973
  "kind": "dev",
@@ -1299,7 +1299,7 @@
1299
1299
  },
1300
1300
  "networks": {},
1301
1301
  "schemaVersion": "3.4.7",
1302
- "updatedAt": "2022-06-15T22:03:58.449Z",
1302
+ "updatedAt": "2022-06-30T16:29:59.534Z",
1303
1303
  "devdoc": {
1304
1304
  "details": "Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.",
1305
1305
  "kind": "dev",
@@ -1049,7 +1049,7 @@
1049
1049
  },
1050
1050
  "networks": {},
1051
1051
  "schemaVersion": "3.4.7",
1052
- "updatedAt": "2022-06-15T22:03:58.451Z",
1052
+ "updatedAt": "2022-06-30T16:29:59.536Z",
1053
1053
  "devdoc": {
1054
1054
  "details": "Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.",
1055
1055
  "events": {
@@ -808,7 +808,7 @@
808
808
  },
809
809
  "networks": {},
810
810
  "schemaVersion": "3.4.7",
811
- "updatedAt": "2022-06-15T22:03:58.450Z",
811
+ "updatedAt": "2022-06-30T16:29:59.535Z",
812
812
  "devdoc": {
813
813
  "details": "This abstract contract provides a fallback function that delegates all calls to another contract using the EVM instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to be specified by overriding the virtual {_implementation} function. Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a different contract through the {_delegate} function. The success and return data of the delegated call will be returned back to the caller of the proxy.",
814
814
  "kind": "dev",
@@ -3928,7 +3928,7 @@
3928
3928
  },
3929
3929
  "networks": {},
3930
3930
  "schemaVersion": "3.4.7",
3931
- "updatedAt": "2022-06-15T22:03:58.992Z",
3931
+ "updatedAt": "2022-06-30T16:30:00.091Z",
3932
3932
  "devdoc": {
3933
3933
  "author": "Superfluid",
3934
3934
  "details": "This is a simple implementation where the supply is pre-minted.",
@@ -6214,7 +6214,7 @@
6214
6214
  },
6215
6215
  "networks": {},
6216
6216
  "schemaVersion": "3.4.7",
6217
- "updatedAt": "2022-06-15T22:03:59.000Z",
6217
+ "updatedAt": "2022-06-30T16:30:00.099Z",
6218
6218
  "devdoc": {
6219
6219
  "author": "Superfluid",
6220
6220
  "details": "A simple implementation of IResolver using OZ AccessControl NOTE: Relevant events for indexing: - OZ Access Control events `RoleGranted`/`RoleRevoked`: admin add/remove - IResolver event `Set`: resolver name updates",
@@ -3854,7 +3854,7 @@
3854
3854
  },
3855
3855
  "networks": {},
3856
3856
  "schemaVersion": "3.4.7",
3857
- "updatedAt": "2022-06-15T22:03:58.994Z",
3857
+ "updatedAt": "2022-06-30T16:30:00.093Z",
3858
3858
  "devdoc": {
3859
3859
  "author": "Superfluid It is also called a Native-Asset Super Token.",
3860
3860
  "details": "Super ETH (SETH) custom super token implementation",
@@ -5142,7 +5142,7 @@
5142
5142
  },
5143
5143
  "networks": {},
5144
5144
  "schemaVersion": "3.4.7",
5145
- "updatedAt": "2022-06-15T22:03:58.475Z",
5145
+ "updatedAt": "2022-06-30T16:29:59.560Z",
5146
5146
  "devdoc": {
5147
5147
  "details": "Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by reverting the transaction when such an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always. Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing all math on `uint256` and `int256` and then downcasting.",
5148
5148
  "kind": "dev",
@@ -3049,7 +3049,7 @@
3049
3049
  },
3050
3050
  "networks": {},
3051
3051
  "schemaVersion": "3.4.7",
3052
- "updatedAt": "2022-06-15T22:03:58.464Z",
3052
+ "updatedAt": "2022-06-30T16:29:59.549Z",
3053
3053
  "devdoc": {
3054
3054
  "details": "Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, which allows you to call the safe operations as `token.safeTransfer(...)`, etc.",
3055
3055
  "kind": "dev",
@@ -3770,7 +3770,7 @@
3770
3770
  },
3771
3771
  "networks": {},
3772
3772
  "schemaVersion": "3.4.7",
3773
- "updatedAt": "2022-06-15T22:03:58.478Z",
3773
+ "updatedAt": "2022-06-30T16:29:59.563Z",
3774
3774
  "devdoc": {
3775
3775
  "details": "Wrappers over Solidity's arithmetic operations. NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler now has built in overflow checking.",
3776
3776
  "kind": "dev",
@@ -20466,7 +20466,7 @@
20466
20466
  },
20467
20467
  "networks": {},
20468
20468
  "schemaVersion": "3.4.7",
20469
- "updatedAt": "2022-06-15T22:03:58.675Z",
20469
+ "updatedAt": "2022-06-30T16:29:59.763Z",
20470
20470
  "devdoc": {
20471
20471
  "details": "This is CFA SuperApp that refuses to accept any opening flow without reverting them.",
20472
20472
  "kind": "dev",
@@ -9785,7 +9785,7 @@
9785
9785
  },
9786
9786
  "networks": {},
9787
9787
  "schemaVersion": "3.4.7",
9788
- "updatedAt": "2022-06-15T22:03:58.626Z",
9788
+ "updatedAt": "2022-06-30T16:29:59.713Z",
9789
9789
  "devdoc": {
9790
9790
  "author": "Superfluid",
9791
9791
  "details": "A library implements slots bitmap on Superfluid Token storage NOTE: - A slots bitmap allows you to iterate through a list of data efficiently. - A data slot can be enabled or disabled with the help of bitmap. - MAX_NUM_SLOTS is 256 in this implementation (using one uint256) - Superfluid token storage usage: - getAgreementStateSlot(bitmapStateSlotId) stores the bitmap of enabled data slots - getAgreementStateSlot(dataStateSlotIDStart + stotId) stores the data of the slot",
@@ -2565,7 +2565,7 @@
2565
2565
  },
2566
2566
  "networks": {},
2567
2567
  "schemaVersion": "3.4.7",
2568
- "updatedAt": "2022-06-15T22:03:58.471Z",
2568
+ "updatedAt": "2022-06-30T16:29:59.556Z",
2569
2569
  "devdoc": {
2570
2570
  "details": "String operations.",
2571
2571
  "kind": "dev",
@@ -2130,7 +2130,7 @@
2130
2130
  },
2131
2131
  "networks": {},
2132
2132
  "schemaVersion": "3.4.7",
2133
- "updatedAt": "2022-06-15T22:03:58.573Z",
2133
+ "updatedAt": "2022-06-30T16:29:59.659Z",
2134
2134
  "devdoc": {
2135
2135
  "kind": "dev",
2136
2136
  "methods": {},
@@ -6477,7 +6477,7 @@
6477
6477
  },
6478
6478
  "networks": {},
6479
6479
  "schemaVersion": "3.4.7",
6480
- "updatedAt": "2022-06-15T22:03:58.600Z",
6480
+ "updatedAt": "2022-06-30T16:29:59.686Z",
6481
6481
  "devdoc": {
6482
6482
  "author": "Superfluid",
6483
6483
  "kind": "dev",
@@ -50535,7 +50535,7 @@
50535
50535
  },
50536
50536
  "networks": {},
50537
50537
  "schemaVersion": "3.4.7",
50538
- "updatedAt": "2022-06-15T22:03:58.930Z",
50538
+ "updatedAt": "2022-06-30T16:30:00.025Z",
50539
50539
  "devdoc": {
50540
50540
  "author": "Superfluid",
50541
50541
  "kind": "dev",
@@ -11010,7 +11010,7 @@
11010
11010
  },
11011
11011
  "networks": {},
11012
11012
  "schemaVersion": "3.4.7",
11013
- "updatedAt": "2022-06-15T22:03:58.948Z",
11013
+ "updatedAt": "2022-06-30T16:30:00.044Z",
11014
11014
  "devdoc": {
11015
11015
  "kind": "dev",
11016
11016
  "methods": {
@@ -4843,7 +4843,7 @@
4843
4843
  },
4844
4844
  "networks": {},
4845
4845
  "schemaVersion": "3.4.7",
4846
- "updatedAt": "2022-06-15T22:03:58.952Z",
4846
+ "updatedAt": "2022-06-30T16:30:00.049Z",
4847
4847
  "devdoc": {
4848
4848
  "kind": "dev",
4849
4849
  "methods": {
@@ -5217,7 +5217,7 @@
5217
5217
  },
5218
5218
  "networks": {},
5219
5219
  "schemaVersion": "3.4.7",
5220
- "updatedAt": "2022-06-15T22:03:58.956Z",
5220
+ "updatedAt": "2022-06-30T16:30:00.052Z",
5221
5221
  "devdoc": {
5222
5222
  "kind": "dev",
5223
5223
  "methods": {},
@@ -14343,7 +14343,7 @@
14343
14343
  },
14344
14344
  "networks": {},
14345
14345
  "schemaVersion": "3.4.7",
14346
- "updatedAt": "2022-06-15T22:03:59.003Z",
14346
+ "updatedAt": "2022-06-30T16:30:00.102Z",
14347
14347
  "devdoc": {
14348
14348
  "author": "Superfluid NOTE: - User would need to first SuperToken.approve the `SuperUpgrader` for the job. - Using access control to allow multiple backend agent to upgrade tokens for the users - Risk taken by the user is that the underlying tokens are converted to the Super Tokens by the upgrader agents.",
14349
14349
  "kind": "dev",
@@ -71667,7 +71667,7 @@
71667
71667
  },
71668
71668
  "networks": {},
71669
71669
  "schemaVersion": "3.4.7",
71670
- "updatedAt": "2022-06-15T22:03:58.958Z",
71670
+ "updatedAt": "2022-06-30T16:30:00.055Z",
71671
71671
  "devdoc": {
71672
71672
  "author": "Superfluid",
71673
71673
  "details": "The Superfluid host implementation. NOTE: - Please read ISuperfluid for implementation notes. - For some deeper technical notes, please visit protocol-monorepo wiki area.",
@@ -10806,7 +10806,7 @@
10806
10806
  },
10807
10807
  "networks": {},
10808
10808
  "schemaVersion": "3.4.7",
10809
- "updatedAt": "2022-06-15T22:03:59.009Z",
10809
+ "updatedAt": "2022-06-30T16:30:00.108Z",
10810
10810
  "devdoc": {
10811
10811
  "kind": "dev",
10812
10812
  "methods": {},
@@ -15129,7 +15129,7 @@
15129
15129
  },
15130
15130
  "networks": {},
15131
15131
  "schemaVersion": "3.4.7",
15132
- "updatedAt": "2022-06-15T22:03:58.574Z",
15132
+ "updatedAt": "2022-06-30T16:29:59.660Z",
15133
15133
  "devdoc": {
15134
15134
  "author": "Superfluid",
15135
15135
  "kind": "dev",
@@ -6477,7 +6477,7 @@
6477
6477
  },
6478
6478
  "networks": {},
6479
6479
  "schemaVersion": "3.4.7",
6480
- "updatedAt": "2022-06-15T22:03:58.602Z",
6480
+ "updatedAt": "2022-06-30T16:29:59.689Z",
6481
6481
  "devdoc": {
6482
6482
  "author": "Superfluid",
6483
6483
  "kind": "dev",
@@ -13172,7 +13172,7 @@
13172
13172
  },
13173
13173
  "networks": {},
13174
13174
  "schemaVersion": "3.4.7",
13175
- "updatedAt": "2022-06-15T22:03:58.580Z",
13175
+ "updatedAt": "2022-06-30T16:29:59.667Z",
13176
13176
  "devdoc": {
13177
13177
  "kind": "dev",
13178
13178
  "methods": {
@@ -2163,7 +2163,7 @@
2163
2163
  },
2164
2164
  "networks": {},
2165
2165
  "schemaVersion": "3.4.7",
2166
- "updatedAt": "2022-06-15T22:03:58.585Z",
2166
+ "updatedAt": "2022-06-30T16:29:59.672Z",
2167
2167
  "devdoc": {
2168
2168
  "author": "Superfluid IMPORTANT! Make sure the inheritance order remains in sync with the logic contract (Ownable first)!",
2169
2169
  "kind": "dev",
@@ -4098,7 +4098,7 @@
4098
4098
  },
4099
4099
  "networks": {},
4100
4100
  "schemaVersion": "3.4.7",
4101
- "updatedAt": "2022-06-15T22:03:59.015Z",
4101
+ "updatedAt": "2022-06-30T16:30:00.114Z",
4102
4102
  "devdoc": {
4103
4103
  "author": "Superfluid",
4104
4104
  "details": "A on-chain utility contract for loading framework objects in one view function. NOTE: Q: Why don't we just use https://www.npmjs.com/package/ethereum-multicall? A: Well, no strong reason other than also allowing on-chain one view function loading.",
@@ -12386,7 +12386,7 @@
12386
12386
  },
12387
12387
  "networks": {},
12388
12388
  "schemaVersion": "3.4.7",
12389
- "updatedAt": "2022-06-15T22:03:58.985Z",
12389
+ "updatedAt": "2022-06-30T16:30:00.083Z",
12390
12390
  "devdoc": {
12391
12391
  "author": "Superfluid",
12392
12392
  "kind": "dev",
@@ -22831,7 +22831,7 @@
22831
22831
  },
22832
22832
  "networks": {},
22833
22833
  "schemaVersion": "3.4.7",
22834
- "updatedAt": "2022-06-15T22:03:59.029Z",
22834
+ "updatedAt": "2022-06-30T16:30:00.127Z",
22835
22835
  "devdoc": {
22836
22836
  "kind": "dev",
22837
22837
  "methods": {
@@ -14458,7 +14458,7 @@
14458
14458
  },
14459
14459
  "networks": {},
14460
14460
  "schemaVersion": "3.4.7",
14461
- "updatedAt": "2022-06-15T22:03:59.038Z",
14461
+ "updatedAt": "2022-06-30T16:30:00.136Z",
14462
14462
  "devdoc": {
14463
14463
  "author": "Superfluid",
14464
14464
  "details": "A initializable version of the governance for testing purpose",
@@ -7271,7 +7271,7 @@
7271
7271
  },
7272
7272
  "networks": {},
7273
7273
  "schemaVersion": "3.4.7",
7274
- "updatedAt": "2022-06-15T22:03:59.043Z",
7274
+ "updatedAt": "2022-06-30T16:30:00.142Z",
7275
7275
  "devdoc": {
7276
7276
  "author": "Superfluid",
7277
7277
  "details": "Test ERC20 token that allows any one mint new tokens.",
@@ -5011,7 +5011,7 @@
5011
5011
  },
5012
5012
  "networks": {},
5013
5013
  "schemaVersion": "3.4.7",
5014
- "updatedAt": "2022-06-15T22:03:59.046Z",
5014
+ "updatedAt": "2022-06-30T16:30:00.145Z",
5015
5015
  "devdoc": {
5016
5016
  "author": "Superfluid",
5017
5017
  "details": "Contract which takes custody of funds which couldn't be sent to the designated recipient",
@@ -291,7 +291,7 @@
291
291
  },
292
292
  "networks": {},
293
293
  "schemaVersion": "3.4.7",
294
- "updatedAt": "2022-06-15T22:03:58.620Z",
294
+ "updatedAt": "2022-06-30T16:29:59.706Z",
295
295
  "devdoc": {
296
296
  "author": "Superfluid",
297
297
  "details": "ERC20 standard interface does not specify these functions, but often the token implementations have them.",
@@ -1259,7 +1259,7 @@
1259
1259
  },
1260
1260
  "networks": {},
1261
1261
  "schemaVersion": "3.4.7",
1262
- "updatedAt": "2022-06-15T22:03:58.996Z",
1262
+ "updatedAt": "2022-06-30T16:30:00.095Z",
1263
1263
  "devdoc": {
1264
1264
  "kind": "dev",
1265
1265
  "methods": {
@@ -1421,7 +1421,7 @@
1421
1421
  },
1422
1422
  "networks": {},
1423
1423
  "schemaVersion": "3.4.7",
1424
- "updatedAt": "2022-06-15T22:03:58.997Z",
1424
+ "updatedAt": "2022-06-30T16:30:00.095Z",
1425
1425
  "devdoc": {
1426
1426
  "kind": "dev",
1427
1427
  "methods": {
@@ -360,7 +360,7 @@
360
360
  },
361
361
  "networks": {},
362
362
  "schemaVersion": "3.4.7",
363
- "updatedAt": "2022-06-15T22:03:58.997Z",
363
+ "updatedAt": "2022-06-30T16:30:00.096Z",
364
364
  "devdoc": {
365
365
  "kind": "dev",
366
366
  "methods": {},
@@ -1,11 +1,11 @@
1
+ SuperTokenFactory.sol : 4968 (19608)
1
2
  FullUpgradableSuperTokenProxy.sol : 606 (23970)
2
3
  SuperfluidToken.sol : 2 (24574)
3
4
  SuperToken.sol : 18856 (5720)
4
- SuperTokenFactory.sol : 4968 (19608)
5
5
  Superfluid.sol : 22092 (2484)
6
- AgreementBase.sol : 2 (24574)
7
6
  InstantDistributionAgreementV1.sol : 21566 (3010)
8
- AgreementLibrary.sol : 143 (24433)
9
7
  ConstantFlowAgreementV1.sol : 21389 (3187)
8
+ AgreementBase.sol : 2 (24574)
9
+ AgreementLibrary.sol : 143 (24433)
10
10
  SuperfluidGovernanceBase.sol : 2 (24574)
11
11
  SuperfluidGovernanceII.sol : 6831 (17745)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superfluid-finance/ethereum-contracts",
3
- "version": "1.3.1-dev.b8455ea.0",
3
+ "version": "1.3.1-dev.ff4f866.0",
4
4
  "description": " Ethereum contracts implementation for the Superfluid Protocol",
5
5
  "homepage": "https://github.com/superfluid-finance/protocol-monorepo/tree/dev/packages/ethereum-contracts#readme",
6
6
  "repository": {
@@ -57,7 +57,7 @@
57
57
  "dependencies": {
58
58
  "@decentral.ee/web3-helpers": "0.5.3",
59
59
  "@openzeppelin/contracts": "4.5.0",
60
- "@superfluid-finance/js-sdk": "^0.6.2-dev.b8455ea.0",
60
+ "@superfluid-finance/js-sdk": "^0.6.3-dev.ff4f866.0",
61
61
  "@truffle/contract": "4.5.5",
62
62
  "ethereumjs-tx": "2.1.2",
63
63
  "ethereumjs-util": "7.1.4",
@@ -78,14 +78,14 @@ async function deployContractIfCodeChanged(
78
78
  * @param {boolean} options.isTruffle Whether the script is used within native truffle framework
79
79
  * @param {Web3} options.web3 Injected web3 instance
80
80
  * @param {Address} options.from Address to deploy contracts from
81
- * @param {boolean} options.newTestResolver Force to create a new resolver (overridng env: CREATE_NEW_RESOLVER)
82
- * @param {boolean} options.useMocks Use mock contracts instead (overridng env: USE_MOCKS)
81
+ * @param {boolean} options.newTestResolver Force to create a new resolver (overriding env: CREATE_NEW_RESOLVER)
82
+ * @param {boolean} options.useMocks Use mock contracts instead (overriding env: USE_MOCKS)
83
83
  * @param {boolean} options.nonUpgradable Deploy contracts configured to be non-upgradable
84
- * (overridng env: NON_UPGRADABLE)
84
+ * (overriding env: NON_UPGRADABLE)
85
85
  * @param {boolean} options.appWhiteListing Deploy contracts configured to require app white listing
86
- * (overridng env: ENABLE_APP_WHITELISTING)
86
+ * (overriding env: ENABLE_APP_WHITELISTING)
87
87
  * @param {boolean} options.resetSuperfluidFramework Reset the superfluid framework deployment
88
- * (overridng env: RESET_SUPERFLUID_FRAMEWORK)
88
+ * (overriding env: RESET_SUPERFLUID_FRAMEWORK)
89
89
  * @param {boolean} options.protocolReleaseVersion Specify the protocol release version to be used
90
90
  * (overriding env: RELEASE_VERSION)
91
91
  *
@@ -19,8 +19,10 @@ const {
19
19
  * Usage: npx truffle exec scripts/deploy-super-token.js : {UNDERLYING_TOKEN_SYMBOL_OR_ADDRESS}
20
20
  *
21
21
  * NOTE:
22
- * - If the `UNDERLYING_TOKEN_SYMBOL_OR_ADDRESS` is the ZERO_ADDRESS or the native token symbol
22
+ * - If the `UNDERLYING_TOKEN_SYMBOL_OR_ADDRESS` is the ZERO_ADDRESS or the (known) native token symbol
23
23
  * of the network, then the SETH contract will be deployed.
24
+ * If the name of the network's native token isn't known by the framework, it can be provided
25
+ * via ENV var NATIVE_TOKEN_SYMBOL.
24
26
  * - Otherwise an ERC20 super token wrapper will be created for the underlying ERC20 token specified in
25
27
  * UNDERLYING_TOKEN_SYMBOL_OR_ADDRESS. This underlying token needs to already be registered in the resolver.
26
28
  * - A resolver entry `supertokens.${protocolReleaseVersion}.${UNDERLYING_TOKEN_SYMBOL}x` will be created
@@ -80,7 +82,14 @@ module.exports = eval(`(${S.toString()})()`)(async function (
80
82
  tokenSymbolOrAddress === sf.config.nativeTokenSymbol
81
83
  ) {
82
84
  // deploy wrapper for the native token
83
- tokenSymbol = sf.config.nativeTokenSymbol;
85
+ tokenSymbol =
86
+ sf.config.nativeTokenSymbol || process.env.NATIVE_TOKEN_SYMBOL;
87
+ if (tokenSymbol === undefined) {
88
+ throw new Error(
89
+ "Native token symbol unknown. You can set it with ENV var NATIVE_TOKEN_SYMBOL"
90
+ );
91
+ }
92
+
84
93
  superTokenKey = `supertokens.${protocolReleaseVersion}.${tokenSymbol}x`;
85
94
  deploymentFn = async () => {
86
95
  console.log("Creating SETH Proxy...");
@@ -92,8 +101,8 @@ module.exports = eval(`(${S.toString()})()`)(async function (
92
101
  await seth.initialize(
93
102
  ZERO_ADDRESS,
94
103
  18,
95
- `Super ${sf.config.nativeTokenSymbol}`,
96
- `${sf.config.nativeTokenSymbol}x`
104
+ `Super ${tokenSymbol}`,
105
+ `${tokenSymbol}x`
97
106
  );
98
107
  return seth;
99
108
  };
@@ -19,7 +19,8 @@ const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
19
19
  * Note: the key itself doesn't have much meaning, it could be "stolen" from a broadcast tx anyway.
20
20
  * But since it's bound to a deployer address, that doesn't really matter.
21
21
  *
22
- * Usage: npx truffle exec scripts/create-new-app-registration-key.js : {DEPLOYER} {REGISTRATION_KEY} [EXPIRATION_TS]
22
+ * Usage:
23
+ * npx truffle exec scripts/gov-create-new-app-registration-key.js : {DEPLOYER} {REGISTRATION_KEY} [EXPIRATION_TS]
23
24
  * EXPIRATION_TS is a Unix timestamp in seconds for when the key should expire.
24
25
  * If not set, we default to 90 days in the future.
25
26
  * Hint: you may use https://www.unixtimestamp.com/ to calculate a timestamp
@@ -14,7 +14,7 @@ const {
14
14
  * @param {Address} options.from Address to deploy contracts from
15
15
  * @param {boolean} options.protocolReleaseVersion Specify the protocol release version to be used
16
16
  *
17
- * Usage: npx truffle exec scripts/create-new-factory-registration.js : {FACTORY_ADDRESS}
17
+ * Usage: npx truffle exec scripts/gov-create-new-factory-registration.js : {FACTORY_ADDRESS}
18
18
  */
19
19
  module.exports = eval(`(${S.toString()})({
20
20
  doNotPrintColonArgs: true