@superfluid-finance/ethereum-contracts 1.4.4-dev.cd4538f.0 → 1.4.4-dev.cf800f2.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 (107) 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/CFAv1Forwarder.json +1 -1
  10. package/build/contracts/CFAv1Library.json +1 -1
  11. package/build/contracts/CallUtils.json +1 -1
  12. package/build/contracts/ClosingOnUpdateFlowTestApp.json +1 -1
  13. package/build/contracts/ConstantFlowAgreementV1.json +1 -1
  14. package/build/contracts/Context.json +1 -1
  15. package/build/contracts/ContextDefinitions.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/ERC20WithTokenInfo.json +1 -1
  22. package/build/contracts/ERC777Helper.json +1 -1
  23. package/build/contracts/ERC777RecipientDrainingGas.json +1 -1
  24. package/build/contracts/ERC777RecipientReverting.json +1 -1
  25. package/build/contracts/EnumerableSet.json +1 -1
  26. package/build/contracts/EventsEmitter.json +1 -1
  27. package/build/contracts/ExclusiveInflowTestApp.json +1 -1
  28. package/build/contracts/FixedSizeData.json +1 -1
  29. package/build/contracts/FlowExchangeTestApp.json +1 -1
  30. package/build/contracts/FlowOperatorDefinitions.json +1 -1
  31. package/build/contracts/FullUpgradableSuperTokenProxy.json +1 -1
  32. package/build/contracts/IAccessControl.json +1 -1
  33. package/build/contracts/IAccessControlEnumerable.json +1 -1
  34. package/build/contracts/IConstantFlowAgreementHook.json +1 -1
  35. package/build/contracts/IConstantFlowAgreementV1.json +1 -1
  36. package/build/contracts/IDAv1Library.json +1 -1
  37. package/build/contracts/IERC165.json +1 -1
  38. package/build/contracts/IERC1820Implementer.json +1 -1
  39. package/build/contracts/IERC1820Registry.json +1 -1
  40. package/build/contracts/IERC20.json +1 -1
  41. package/build/contracts/IERC20Metadata.json +1 -1
  42. package/build/contracts/IERC20Permit.json +1 -1
  43. package/build/contracts/IERC777.json +1 -1
  44. package/build/contracts/IERC777Recipient.json +1 -1
  45. package/build/contracts/IERC777Sender.json +1 -1
  46. package/build/contracts/IInstantDistributionAgreementV1.json +1 -1
  47. package/build/contracts/IMultiSigWallet.json +1 -1
  48. package/build/contracts/IPureSuperToken.json +1 -1
  49. package/build/contracts/IPureSuperTokenCustom.json +1 -1
  50. package/build/contracts/IRelayRecipient.json +1 -1
  51. package/build/contracts/IResolver.json +1 -1
  52. package/build/contracts/ISETH.json +1 -1
  53. package/build/contracts/ISETHCustom.json +1 -1
  54. package/build/contracts/ISuperAgreement.json +1 -1
  55. package/build/contracts/ISuperApp.json +1 -1
  56. package/build/contracts/ISuperToken.json +1 -1
  57. package/build/contracts/ISuperTokenFactory.json +1 -1
  58. package/build/contracts/ISuperfluid.json +1 -1
  59. package/build/contracts/ISuperfluidGovernance.json +1 -1
  60. package/build/contracts/ISuperfluidToken.json +1 -1
  61. package/build/contracts/ITOGAv1.json +1 -1
  62. package/build/contracts/ITOGAv2.json +1 -1
  63. package/build/contracts/ITOGAv3.json +1 -1
  64. package/build/contracts/Initializable.json +1 -1
  65. package/build/contracts/InstantDistributionAgreementV1.json +1 -1
  66. package/build/contracts/NonClosableOutflowTestApp.json +1 -1
  67. package/build/contracts/Ownable.json +1 -1
  68. package/build/contracts/Proxy.json +1 -1
  69. package/build/contracts/PureSuperToken.json +1 -1
  70. package/build/contracts/Resolver.json +1 -1
  71. package/build/contracts/SETHProxy.json +1 -1
  72. package/build/contracts/SafeCast.json +1 -1
  73. package/build/contracts/SafeERC20.json +1 -1
  74. package/build/contracts/SafeMath.json +1 -1
  75. package/build/contracts/SelfDeletingFlowTestApp.json +1 -1
  76. package/build/contracts/SlotsBitmapLibrary.json +1 -1
  77. package/build/contracts/StreamRedirector.json +1 -1
  78. package/build/contracts/Strings.json +1 -1
  79. package/build/contracts/SuperAppBase.json +1 -1
  80. package/build/contracts/SuperAppDefinitions.json +1 -1
  81. package/build/contracts/SuperToken.json +1 -1
  82. package/build/contracts/SuperTokenFactory.json +1 -1
  83. package/build/contracts/SuperTokenFactoryBase.json +1 -1
  84. package/build/contracts/SuperTokenFactoryHelper.json +1 -1
  85. package/build/contracts/SuperUpgrader.json +1 -1
  86. package/build/contracts/Superfluid.json +1 -1
  87. package/build/contracts/SuperfluidFrameworkDeployer.json +1 -1
  88. package/build/contracts/SuperfluidGovernanceBase.json +1 -1
  89. package/build/contracts/SuperfluidGovernanceConfigs.json +1 -1
  90. package/build/contracts/SuperfluidGovernanceII.json +1 -1
  91. package/build/contracts/SuperfluidGovernanceIIProxy.json +1 -1
  92. package/build/contracts/SuperfluidLoader.json +1 -1
  93. package/build/contracts/SuperfluidToken.json +1 -1
  94. package/build/contracts/TOGA.json +1 -1
  95. package/build/contracts/TestGovernance.json +1 -1
  96. package/build/contracts/TestResolver.json +1 -1
  97. package/build/contracts/TestToken.json +1 -1
  98. package/build/contracts/TokenInfo.json +1 -1
  99. package/build/contracts/UUPSProxiable.json +1 -1
  100. package/build/contracts/UUPSProxy.json +1 -1
  101. package/build/contracts/UUPSUtils.json +1 -1
  102. package/package.json +4 -4
  103. package/scripts/gov-set-token-min-deposit.js +1 -1
  104. package/scripts/libs/getConfig.d.ts.map +1 -1
  105. package/scripts/libs/getConfig.js +14 -0
  106. package/utils/README.md +1 -1
  107. package/utils/stream-closer.html +13 -29
@@ -1727,7 +1727,7 @@
1727
1727
  },
1728
1728
  "networks": {},
1729
1729
  "schemaVersion": "3.4.9",
1730
- "updatedAt": "2022-11-14T15:01:23.859Z",
1730
+ "updatedAt": "2022-11-16T18:06:08.622Z",
1731
1731
  "devdoc": {
1732
1732
  "author": "Superfluid",
1733
1733
  "kind": "dev",
@@ -4042,7 +4042,7 @@
4042
4042
  },
4043
4043
  "networks": {},
4044
4044
  "schemaVersion": "3.4.9",
4045
- "updatedAt": "2022-11-14T15:01:23.860Z",
4045
+ "updatedAt": "2022-11-16T18:06:08.622Z",
4046
4046
  "devdoc": {
4047
4047
  "author": "Superfluid",
4048
4048
  "events": {
@@ -10904,7 +10904,7 @@
10904
10904
  },
10905
10905
  "networks": {},
10906
10906
  "schemaVersion": "3.4.9",
10907
- "updatedAt": "2022-11-14T15:01:24.262Z",
10907
+ "updatedAt": "2022-11-16T18:06:09.039Z",
10908
10908
  "devdoc": {
10909
10909
  "author": "Superfluid",
10910
10910
  "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(). changes in v3: Use ERC20.transfer() instead of ERC777.send() when outbid. This allows us to eliminate the custodian contract and related complexity.",
@@ -10936,7 +10936,7 @@
10936
10936
  },
10937
10937
  "networks": {},
10938
10938
  "schemaVersion": "3.4.9",
10939
- "updatedAt": "2022-11-14T15:01:24.267Z",
10939
+ "updatedAt": "2022-11-16T18:06:09.044Z",
10940
10940
  "devdoc": {
10941
10941
  "events": {
10942
10942
  "BondIncreased(address,uint256)": {
@@ -10923,7 +10923,7 @@
10923
10923
  },
10924
10924
  "networks": {},
10925
10925
  "schemaVersion": "3.4.9",
10926
- "updatedAt": "2022-11-14T15:01:24.271Z",
10926
+ "updatedAt": "2022-11-16T18:06:09.048Z",
10927
10927
  "devdoc": {
10928
10928
  "events": {
10929
10929
  "BondIncreased(address,uint256)": {
@@ -1913,7 +1913,7 @@
1913
1913
  },
1914
1914
  "networks": {},
1915
1915
  "schemaVersion": "3.4.9",
1916
- "updatedAt": "2022-11-14T15:01:23.703Z",
1916
+ "updatedAt": "2022-11-16T18:06:08.463Z",
1917
1917
  "devdoc": {
1918
1918
  "custom:oz-upgrades-unsafe-allow": "constructor constructor() { _disableInitializers(); } ``` ====",
1919
1919
  "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. The initialization functions use a version number. Once a version number is used, it is consumed and cannot be reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in case an upgrade adds a module that needs to be initialized. For example: [.hljs-theme-light.nopadding] ``` contract MyToken is ERC20Upgradeable { function initialize() initializer public { __ERC20_init(\"MyToken\", \"MTK\"); } } contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { function initializeV2() reinitializer(2) public { __ERC20Permit_init(\"MyToken\"); } } ``` 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 prevent the implementation contract from being used, you should invoke the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: [.hljs-theme-light.nopadding] ```",
@@ -73627,7 +73627,7 @@
73627
73627
  },
73628
73628
  "networks": {},
73629
73629
  "schemaVersion": "3.4.9",
73630
- "updatedAt": "2022-11-14T15:01:23.777Z",
73630
+ "updatedAt": "2022-11-16T18:06:08.536Z",
73631
73631
  "devdoc": {
73632
73632
  "author": "Superfluid",
73633
73633
  "details": "Please read IInstantDistributionAgreementV1 for implementation notes.For more technical notes, please visit protocol-monorepo wiki area.",
@@ -20193,7 +20193,7 @@
20193
20193
  },
20194
20194
  "networks": {},
20195
20195
  "schemaVersion": "3.4.9",
20196
- "updatedAt": "2022-11-14T15:01:23.909Z",
20196
+ "updatedAt": "2022-11-16T18:06:08.677Z",
20197
20197
  "devdoc": {
20198
20198
  "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.",
20199
20199
  "kind": "dev",
@@ -1394,7 +1394,7 @@
1394
1394
  },
1395
1395
  "networks": {},
1396
1396
  "schemaVersion": "3.4.9",
1397
- "updatedAt": "2022-11-14T15:01:23.702Z",
1397
+ "updatedAt": "2022-11-16T18:06:08.462Z",
1398
1398
  "devdoc": {
1399
1399
  "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.",
1400
1400
  "kind": "dev",
@@ -813,7 +813,7 @@
813
813
  },
814
814
  "networks": {},
815
815
  "schemaVersion": "3.4.9",
816
- "updatedAt": "2022-11-14T15:01:23.703Z",
816
+ "updatedAt": "2022-11-16T18:06:08.462Z",
817
817
  "devdoc": {
818
818
  "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.",
819
819
  "kind": "dev",
@@ -3917,7 +3917,7 @@
3917
3917
  },
3918
3918
  "networks": {},
3919
3919
  "schemaVersion": "3.4.9",
3920
- "updatedAt": "2022-11-14T15:01:24.227Z",
3920
+ "updatedAt": "2022-11-16T18:06:09.003Z",
3921
3921
  "devdoc": {
3922
3922
  "author": "Superfluid",
3923
3923
  "details": "This is a simple implementation where the supply is pre-minted.",
@@ -6184,7 +6184,7 @@
6184
6184
  },
6185
6185
  "networks": {},
6186
6186
  "schemaVersion": "3.4.9",
6187
- "updatedAt": "2022-11-14T15:01:24.243Z",
6187
+ "updatedAt": "2022-11-16T18:06:09.019Z",
6188
6188
  "devdoc": {
6189
6189
  "author": "Superfluid",
6190
6190
  "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",
@@ -3872,7 +3872,7 @@
3872
3872
  },
3873
3873
  "networks": {},
3874
3874
  "schemaVersion": "3.4.9",
3875
- "updatedAt": "2022-11-14T15:01:24.229Z",
3875
+ "updatedAt": "2022-11-16T18:06:09.005Z",
3876
3876
  "devdoc": {
3877
3877
  "author": "Superfluid It is also called a Native-Asset Super Token.",
3878
3878
  "details": "Super ETH (SETH) custom super token implementation",
@@ -24577,7 +24577,7 @@
24577
24577
  },
24578
24578
  "networks": {},
24579
24579
  "schemaVersion": "3.4.9",
24580
- "updatedAt": "2022-11-14T15:01:23.721Z",
24580
+ "updatedAt": "2022-11-16T18:06:08.482Z",
24581
24581
  "devdoc": {
24582
24582
  "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.",
24583
24583
  "kind": "dev",
@@ -3901,7 +3901,7 @@
3901
3901
  },
3902
3902
  "networks": {},
3903
3903
  "schemaVersion": "3.4.9",
3904
- "updatedAt": "2022-11-14T15:01:23.712Z",
3904
+ "updatedAt": "2022-11-16T18:06:08.471Z",
3905
3905
  "devdoc": {
3906
3906
  "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.",
3907
3907
  "kind": "dev",
@@ -3773,7 +3773,7 @@
3773
3773
  },
3774
3774
  "networks": {},
3775
3775
  "schemaVersion": "3.4.9",
3776
- "updatedAt": "2022-11-14T15:01:23.731Z",
3776
+ "updatedAt": "2022-11-16T18:06:08.492Z",
3777
3777
  "devdoc": {
3778
3778
  "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.",
3779
3779
  "kind": "dev",
@@ -20692,7 +20692,7 @@
20692
20692
  },
20693
20693
  "networks": {},
20694
20694
  "schemaVersion": "3.4.9",
20695
- "updatedAt": "2022-11-14T15:01:23.916Z",
20695
+ "updatedAt": "2022-11-16T18:06:08.684Z",
20696
20696
  "devdoc": {
20697
20697
  "details": "This is CFA SuperApp that refuses to accept any opening flow without reverting them.",
20698
20698
  "kind": "dev",
@@ -9817,7 +9817,7 @@
9817
9817
  },
9818
9818
  "networks": {},
9819
9819
  "schemaVersion": "3.4.9",
9820
- "updatedAt": "2022-11-14T15:01:23.870Z",
9820
+ "updatedAt": "2022-11-16T18:06:08.634Z",
9821
9821
  "devdoc": {
9822
9822
  "author": "Superfluid",
9823
9823
  "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",
@@ -16872,7 +16872,7 @@
16872
16872
  },
16873
16873
  "networks": {},
16874
16874
  "schemaVersion": "3.4.9",
16875
- "updatedAt": "2022-11-14T15:01:24.017Z",
16875
+ "updatedAt": "2022-11-16T18:06:08.785Z",
16876
16876
  "devdoc": {
16877
16877
  "kind": "dev",
16878
16878
  "methods": {
@@ -2879,7 +2879,7 @@
2879
2879
  },
2880
2880
  "networks": {},
2881
2881
  "schemaVersion": "3.4.9",
2882
- "updatedAt": "2022-11-14T15:01:23.717Z",
2882
+ "updatedAt": "2022-11-16T18:06:08.478Z",
2883
2883
  "devdoc": {
2884
2884
  "details": "String operations.",
2885
2885
  "kind": "dev",
@@ -2157,7 +2157,7 @@
2157
2157
  },
2158
2158
  "networks": {},
2159
2159
  "schemaVersion": "3.4.9",
2160
- "updatedAt": "2022-11-14T15:01:23.821Z",
2160
+ "updatedAt": "2022-11-16T18:06:08.581Z",
2161
2161
  "devdoc": {
2162
2162
  "kind": "dev",
2163
2163
  "methods": {},
@@ -6507,7 +6507,7 @@
6507
6507
  },
6508
6508
  "networks": {},
6509
6509
  "schemaVersion": "3.4.9",
6510
- "updatedAt": "2022-11-14T15:01:23.847Z",
6510
+ "updatedAt": "2022-11-16T18:06:08.609Z",
6511
6511
  "devdoc": {
6512
6512
  "author": "Superfluid",
6513
6513
  "kind": "dev",
@@ -48294,7 +48294,7 @@
48294
48294
  },
48295
48295
  "networks": {},
48296
48296
  "schemaVersion": "3.4.9",
48297
- "updatedAt": "2022-11-14T15:01:24.168Z",
48297
+ "updatedAt": "2022-11-16T18:06:08.942Z",
48298
48298
  "devdoc": {
48299
48299
  "author": "Superfluid",
48300
48300
  "kind": "dev",
@@ -19372,7 +19372,7 @@
19372
19372
  },
19373
19373
  "networks": {},
19374
19374
  "schemaVersion": "3.4.9",
19375
- "updatedAt": "2022-11-14T15:01:24.184Z",
19375
+ "updatedAt": "2022-11-16T18:06:08.959Z",
19376
19376
  "devdoc": {
19377
19377
  "kind": "dev",
19378
19378
  "methods": {
@@ -9416,7 +9416,7 @@
9416
9416
  },
9417
9417
  "networks": {},
9418
9418
  "schemaVersion": "3.4.9",
9419
- "updatedAt": "2022-11-14T15:01:24.192Z",
9419
+ "updatedAt": "2022-11-16T18:06:08.966Z",
9420
9420
  "devdoc": {
9421
9421
  "kind": "dev",
9422
9422
  "methods": {
@@ -9653,7 +9653,7 @@
9653
9653
  },
9654
9654
  "networks": {},
9655
9655
  "schemaVersion": "3.4.9",
9656
- "updatedAt": "2022-11-14T15:01:24.195Z",
9656
+ "updatedAt": "2022-11-16T18:06:08.970Z",
9657
9657
  "devdoc": {
9658
9658
  "kind": "dev",
9659
9659
  "methods": {},
@@ -14367,7 +14367,7 @@
14367
14367
  },
14368
14368
  "networks": {},
14369
14369
  "schemaVersion": "3.4.9",
14370
- "updatedAt": "2022-11-14T15:01:24.245Z",
14370
+ "updatedAt": "2022-11-16T18:06:09.021Z",
14371
14371
  "devdoc": {
14372
14372
  "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.",
14373
14373
  "kind": "dev",
@@ -64549,7 +64549,7 @@
64549
64549
  },
64550
64550
  "networks": {},
64551
64551
  "schemaVersion": "3.4.9",
64552
- "updatedAt": "2022-11-14T15:01:24.200Z",
64552
+ "updatedAt": "2022-11-16T18:06:08.974Z",
64553
64553
  "devdoc": {
64554
64554
  "author": "Superfluid",
64555
64555
  "details": "The Superfluid host implementation. NOTE: - Please read ISuperfluid for implementation notes. - For some deeper technical notes, please visit protocol-monorepo wiki area.",
@@ -21324,7 +21324,7 @@
21324
21324
  },
21325
21325
  "networks": {},
21326
21326
  "schemaVersion": "3.4.9",
21327
- "updatedAt": "2022-11-14T15:01:24.251Z",
21327
+ "updatedAt": "2022-11-16T18:06:09.027Z",
21328
21328
  "devdoc": {
21329
21329
  "kind": "dev",
21330
21330
  "methods": {
@@ -17699,7 +17699,7 @@
17699
17699
  },
17700
17700
  "networks": {},
17701
17701
  "schemaVersion": "3.4.9",
17702
- "updatedAt": "2022-11-14T15:01:23.822Z",
17702
+ "updatedAt": "2022-11-16T18:06:08.583Z",
17703
17703
  "devdoc": {
17704
17704
  "author": "Superfluid",
17705
17705
  "kind": "dev",
@@ -6507,7 +6507,7 @@
6507
6507
  },
6508
6508
  "networks": {},
6509
6509
  "schemaVersion": "3.4.9",
6510
- "updatedAt": "2022-11-14T15:01:23.849Z",
6510
+ "updatedAt": "2022-11-16T18:06:08.612Z",
6511
6511
  "devdoc": {
6512
6512
  "author": "Superfluid",
6513
6513
  "kind": "dev",
@@ -15760,7 +15760,7 @@
15760
15760
  },
15761
15761
  "networks": {},
15762
15762
  "schemaVersion": "3.4.9",
15763
- "updatedAt": "2022-11-14T15:01:23.828Z",
15763
+ "updatedAt": "2022-11-16T18:06:08.589Z",
15764
15764
  "devdoc": {
15765
15765
  "kind": "dev",
15766
15766
  "methods": {
@@ -2183,7 +2183,7 @@
2183
2183
  },
2184
2184
  "networks": {},
2185
2185
  "schemaVersion": "3.4.9",
2186
- "updatedAt": "2022-11-14T15:01:23.833Z",
2186
+ "updatedAt": "2022-11-16T18:06:08.595Z",
2187
2187
  "devdoc": {
2188
2188
  "author": "Superfluid IMPORTANT! Make sure the inheritance order remains in sync with the logic contract (Ownable first)!",
2189
2189
  "kind": "dev",
@@ -4108,7 +4108,7 @@
4108
4108
  },
4109
4109
  "networks": {},
4110
4110
  "schemaVersion": "3.4.9",
4111
- "updatedAt": "2022-11-14T15:01:24.261Z",
4111
+ "updatedAt": "2022-11-16T18:06:09.038Z",
4112
4112
  "devdoc": {
4113
4113
  "author": "Superfluid",
4114
4114
  "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.",
@@ -12487,7 +12487,7 @@
12487
12487
  },
12488
12488
  "networks": {},
12489
12489
  "schemaVersion": "3.4.9",
12490
- "updatedAt": "2022-11-14T15:01:24.223Z",
12490
+ "updatedAt": "2022-11-16T18:06:08.998Z",
12491
12491
  "devdoc": {
12492
12492
  "author": "Superfluid",
12493
12493
  "kind": "dev",
@@ -20831,7 +20831,7 @@
20831
20831
  },
20832
20832
  "networks": {},
20833
20833
  "schemaVersion": "3.4.9",
20834
- "updatedAt": "2022-11-14T15:01:24.275Z",
20834
+ "updatedAt": "2022-11-16T18:06:09.052Z",
20835
20835
  "devdoc": {
20836
20836
  "kind": "dev",
20837
20837
  "methods": {
@@ -15981,7 +15981,7 @@
15981
15981
  },
15982
15982
  "networks": {},
15983
15983
  "schemaVersion": "3.4.9",
15984
- "updatedAt": "2022-11-14T15:01:24.283Z",
15984
+ "updatedAt": "2022-11-16T18:06:09.061Z",
15985
15985
  "devdoc": {
15986
15986
  "author": "Superfluid",
15987
15987
  "details": "A initializable version of the governance for testing purpose",
@@ -5884,7 +5884,7 @@
5884
5884
  },
5885
5885
  "networks": {},
5886
5886
  "schemaVersion": "3.4.9",
5887
- "updatedAt": "2022-11-14T15:01:24.291Z",
5887
+ "updatedAt": "2022-11-16T18:06:09.069Z",
5888
5888
  "devdoc": {
5889
5889
  "author": "Superfluid",
5890
5890
  "details": "Used by the SuperfluidFrameworkDeployer to grant admin privileges to its deployer",
@@ -8959,7 +8959,7 @@
8959
8959
  },
8960
8960
  "networks": {},
8961
8961
  "schemaVersion": "3.4.9",
8962
- "updatedAt": "2022-11-14T15:01:24.295Z",
8962
+ "updatedAt": "2022-11-16T18:06:09.072Z",
8963
8963
  "devdoc": {
8964
8964
  "author": "Superfluid",
8965
8965
  "details": "Test ERC20 token that allows any one mint new tokens.",
@@ -291,7 +291,7 @@
291
291
  },
292
292
  "networks": {},
293
293
  "schemaVersion": "3.4.9",
294
- "updatedAt": "2022-11-14T15:01:23.865Z",
294
+ "updatedAt": "2022-11-16T18:06:08.628Z",
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.",
@@ -1349,7 +1349,7 @@
1349
1349
  },
1350
1350
  "networks": {},
1351
1351
  "schemaVersion": "3.4.9",
1352
- "updatedAt": "2022-11-14T15:01:24.231Z",
1352
+ "updatedAt": "2022-11-16T18:06:09.006Z",
1353
1353
  "devdoc": {
1354
1354
  "kind": "dev",
1355
1355
  "methods": {
@@ -1434,7 +1434,7 @@
1434
1434
  },
1435
1435
  "networks": {},
1436
1436
  "schemaVersion": "3.4.9",
1437
- "updatedAt": "2022-11-14T15:01:24.231Z",
1437
+ "updatedAt": "2022-11-16T18:06:09.007Z",
1438
1438
  "devdoc": {
1439
1439
  "kind": "dev",
1440
1440
  "methods": {
@@ -360,7 +360,7 @@
360
360
  },
361
361
  "networks": {},
362
362
  "schemaVersion": "3.4.9",
363
- "updatedAt": "2022-11-14T15:01:24.232Z",
363
+ "updatedAt": "2022-11-16T18:06:09.008Z",
364
364
  "devdoc": {
365
365
  "kind": "dev",
366
366
  "methods": {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superfluid-finance/ethereum-contracts",
3
- "version": "1.4.4-dev.cd4538f.0",
3
+ "version": "1.4.4-dev.cf800f2.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": {
@@ -29,16 +29,16 @@
29
29
  "typings": "./types/index.d.ts",
30
30
  "scripts": {
31
31
  "dev": "tasks/dev.sh",
32
+ "clean": "rm -rf node_modules; rm -rf cache; rm -rf build; rm -rf artifacts; rm -rf typechain-types; rm -rf scripts/*.d.ts scripts/*.d.ts.map",
32
33
  "run-hardhat": "IS_HARDHAT=true hardhat",
33
34
  "run-truffle": "IS_TRUFFLE=true truffle",
34
35
  "run-forge": "IS_FOUNDRY=true forge",
35
36
  "run-nodemon": "nodemon -e sol,js,ts -x",
36
37
  "build": "run-s build:*",
37
- "build:contracts": "rm -f build/contracts/*;yarn build:contracts-truffle",
38
38
  "build:contracts-truffle": "yarn run-truffle compile",
39
39
  "build:contracts-hardhat": "yarn run-hardhat compile",
40
40
  "build:typechain": "tsc -p tsconfig.typechain.json",
41
- "build:scripts": "tsc -p tsconfig.scripts.json",
41
+ "build:scripts": "rm -rf scripts/*.d.ts scripts/*.d.ts.map; tsc -p tsconfig.scripts.json",
42
42
  "build:contracts-size": "tasks/print-contract-sizes.sh | tee build/contracts-sizes.txt",
43
43
  "testenv:start": "test/testenv-ctl.sh start",
44
44
  "testenv:stop": "test/testenv-ctl.sh stop",
@@ -71,7 +71,7 @@
71
71
  "dependencies": {
72
72
  "@decentral.ee/web3-helpers": "0.5.3",
73
73
  "@openzeppelin/contracts": "4.7.3",
74
- "@superfluid-finance/js-sdk": "^0.6.4-dev.cd4538f.0",
74
+ "@superfluid-finance/js-sdk": "^0.6.4-dev.cf800f2.0",
75
75
  "@truffle/contract": "4.5.23",
76
76
  "ethereumjs-tx": "2.1.2",
77
77
  "ethereumjs-util": "7.1.5",
@@ -26,8 +26,8 @@ module.exports = eval(`(${S.toString()})()`)(async function (
26
26
  if (args.length !== 2) {
27
27
  throw new Error("Wrong number of arguments");
28
28
  }
29
- const tokenAddr = args.pop();
30
29
  const minimumDeposit = args.pop();
30
+ const tokenAddr = args.pop();
31
31
  console.log("token address", tokenAddr);
32
32
  console.log("minimum deposit", minimumDeposit);
33
33
 
@@ -1 +1 @@
1
- {"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["getConfig.js"],"names":[],"mappings":"AAOiB,6CAyPhB"}
1
+ {"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["getConfig.js"],"names":[],"mappings":"AAOiB,6CAuQhB"}
@@ -29,6 +29,20 @@ module.exports = function getConfig(chainId) {
29
29
  //
30
30
  // ETHEREUM
31
31
  //
32
+ 1: {
33
+ // mainnet
34
+ liquidationPeriod: 3600 * 4,
35
+ patricianPeriod: 3600 * 4 * 0.2,
36
+ tokenList: [],
37
+ // governance default configs
38
+ gov_enableAppWhiteListing: true,
39
+ // misc
40
+ disableTestGovernance: true,
41
+ data: {
42
+ initialBlockNumber: 15870000,
43
+ getLogsRange: 10000,
44
+ },
45
+ },
32
46
  5: {
33
47
  // goerli
34
48
  liquidationPeriod: 3600,
package/utils/README.md CHANGED
@@ -21,7 +21,7 @@ python -m SimpleHTTPServer 1337
21
21
 
22
22
  Then navigate to http://localhost:1337/stream-closer.html
23
23
 
24
- Alternatively, you can also find it on IPFS: [QmRJmHatYiGgGsXYCsYZdqPMx4dd2qbMskMJvXGWZ53oJJ](https://ipfs.io/ipfs/QmVQ4B9MyEpr3i39XiEZ4qefuqMKv5HnfLPPB42r19mhEi)
24
+ Alternatively, you can also find it on IPFS: [QmPu6h7w2LCAeLdN4GVR2CTa7wTtEsi4iJokXTW7QiQy2z](https://ipfs.io/ipfs/QmPu6h7w2LCAeLdN4GVR2CTa7wTtEsi4iJokXTW7QiQy2z)
25
25
 
26
26
  In order to set the parameter in the URL, use this format:
27
27
  stream-closer.html?chainId=<chainId>&token=<tokenAddress>&sender=<senderAddress>&receiver=<receiverAddress>