Skip to content

Releases: superfluid-org/protocol-monorepo

ethereum-contracts@v1.9.0

07 Feb 21:14
80099ac
Compare
Choose a tag to compare

Changes in this stable release

Breaking

  • TokenInfo and ERC20WithTokenInfo interface/abstract contract are removed from the codebase, including the bundled ABI contracts
    • Migration: Use IERC20Metadata instead, as this replaces the previous contracts
  • build/typechain-ethers-v5 is removed from the npm package
    • Migration: Consume the ABIs and utilize whatever tool you'd like to generate types from them

Added

  • New agreement: GeneralDistributionAgreement added which enables 1-to-N flowing distributions in addition to 1-to-N instant distributions via the SuperfluidPool contract
  • Added 'test-slither' yarn sub-task.
  • Expose SuperToken._underlyingDecimals with SuperToken.getUnderlyingDecimals()
  • Expose _toUnderlyingAmount(uint256 amount) with toUnderlyingAmount(uint256 amount)
  • batchCall supports payable OPERATION_TYPE_SUPERFLUID_CALL_APP_ACTION: only the first OPERATION_TYPE_SUPERFLUID_CALL_APP_ACTION will be payable
  • Added two new functions to SuperfluidGovernanceBase.sol: changeSuperTokenAdmin and batchChangeSuperTokenAdmin
  • Superfluid.changeSuperTokenAdmin() function added to be called via governance for tokens with no admin address
  • Added an overloaded initialize to SuperToken.sol, which additionally takes address admin if you want to initialize the token with an admin address
  • SuperToken.changeAdmin(address newAdmin) added which is only callable by the current admin, the "admin" of a SuperToken can change the admin and update the proxy contract's pointer to a logic contract

    Note that the default admin (when address(0)) is the host contract as is currently the case

  • Note that the admin is stored in the EIP-1967 admin storage slot (0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103)
  • SuperToken.getAdmin() added to retrieve the admin address
  • SuperTokenFactory.createERC20Wrapper() overloads added to create a SuperToken AND explicitly initialize a SuperToken with an admin
  • New explicit functions: deployTestFrameworkWithEthersV5 and deployTestFrameworkWithEthersV6 in deploy-test-framework.js
    • deployTestFramework is still there, but it is considered deprecated now

Changed

  • Reuse config keys from SuperfluidGovernanceConfigs instead of duplicating them in ConstantFlowAgreementV1.
  • Deprecating registerAppWithKey and registerAppByFactory: DO NOT USE for new deployments
    • Simplification of Super App registration: use registerApp in all cases going forward.
    • Use registerApp(uint256 configWord) to be called by the super app in the constructor or registerApp(ISuperApp app, uint256 configWord) to be called by any address with a valid app registration config key

Fixes

subgraph@v1.7.0

06 Feb 09:13
9bc32ec
Compare
Choose a tag to compare

Changes in this stable release

Added

  • NFT specific event entities
  • GDA event entities
  • GDA HOL entities
  • New properties on aggregate entities to distinguish between CFA and GDA data where applicable
  • scripts/buildNetworkConfig.ts added for building network config from metadata in place of hardcoded config json files
  • getHostedServiceNetworks.ts added for getting the list of networks in place of hardcoded networks.json, improves maintenance + adding

metadata@v1.1.27

02 Feb 06:31
1a73abf
Compare
Choose a tag to compare

Please refer to the CHANGELOG.md file in metadata package for more details on the changeset.

metadata@v1.1.26

25 Jan 20:04
977e20d
Compare
Choose a tag to compare

Please refer to the CHANGELOG.md file in metadata package for more details on the changeset.

metadata@v1.1.25

23 Jan 00:39
083b723
Compare
Choose a tag to compare

Please refer to the CHANGELOG.md file in metadata package for more details on the changeset.

metadata@v1.1.24

22 Jan 21:15
6c3f610
Compare
Choose a tag to compare

Please refer to the CHANGELOG.md file in metadata package for more details on the changeset.

metadata@v1.1.23

19 Jan 23:50
f8ac96f
Compare
Choose a tag to compare

Please refer to the CHANGELOG.md file in metadata package for more details on the changeset.

metadata@v1.1.22

08 Jan 10:46
b6c220a
Compare
Choose a tag to compare

Please refer to the CHANGELOG.md file in metadata package for more details on the changeset.

metadata@v1.1.21

27 Nov 12:46
a429e11
Compare
Choose a tag to compare

Please refer to the CHANGELOG.md file in metadata package for more details on the changeset.

metadata@v1.1.20

24 Nov 12:43
a98c3c6
Compare
Choose a tag to compare

Please refer to the CHANGELOG.md file in metadata package for more details on the changeset.