Skip to content

Releases: superfluid-org/protocol-monorepo

ethereum-contracts@v1.6.0

26 Apr 14:17
d738830
Compare
Choose a tag to compare

Changes in this ethereum-contracts stable release

Added

  • FlowNFT contracts: ConstantOutflowNFT, ConstantInflowNFT, FlowNFTBase to replace the OG flow NFTs
  • SuperAppBaseCFA base contract to simplify CFA SuperApp development
  • SuperTokenDeployer.sol for deploying SuperTokens in local testing (split from SuperfluidFrameworkDeployer.sol)

Changed

  • SuperToken logic contract takes ConstantOutflowNFT and ConstantInflowNFT proxy contract addresses
  • SuperTokenFactory logic contract takes ConstantOutflowNFT and ConstantInflowNFT and handles the upgrade logic for the NFTs
  • Utilize internal _host in CFA instead of external call to host on the token

sdk-core@v0.6.3

23 Mar 16:16
a3a71cc
Compare
Choose a tag to compare

Added

  • increaseAllowance and decreaseAllowance functions to SuperToken class
  • Batch call support for increaseAllowance and decreaseAllowance
  • increaseFlowRateAllowance and decreaseFlowRateAllowance functions to CFAv1 class
  • Add support for activeOutgoingStreamCount, activeIncomingStreamCount, inactiveOutgoingStreamCount, inactiveIncomingStreamCount properties in query for AccountTokenSnapshot entity
  • Add support for rewardAddress, liquidationPeriod, patricianPeriod, and minimumDeposit properties in query for Token entity
  • Add support for userData property in query for Stream entity
  • Add index (the Subgraph entity ID) field to Index events when querying from Subgraph

Changed

  • .exec or .execForward will throw an error if the operations array is empty

ethereum-contracts@v1.5.2

14 Mar 16:28
26e8da8
Compare
Choose a tag to compare

Added

  • bump solc to 0.8.19
  • New ACL functions: increaseFlowRateAllowance and decreaseFlowRateAllowance in ConstantFlowAgreementV1.sol
  • Support for superToken.increaseAllowance and superToken.decreaseAllowance in batchCall in Superfluid.sol

Breaking

  • BatchLiquidator.deleteFlows doesn't take host and CFA address as argument anymore. This makes L2 solvency operations considerably cheaper.

Changed

  • Added BatchLiquidator.deleteFlow for cheaper liquidation of singular flows on L2s.

ethereum-contracts@v1.5.1

28 Feb 16:58
0effb4c
Compare
Choose a tag to compare

Added

  • bump solc to 0.8.18

Breaking

  • SuperTokenFactory contract no longer takes SuperTokenHelper contract in its constructor
    • Migration: Pass in a deployed SuperToken (logic) contract address to SuperTokenFactory constructor instead
  • runDeployContractsAndToken.js is renamed to run-deploy-contracts-and-token.js
    • Migration: Replace runDeployContractsAndToken.js with run-deploy-contracts-and-token.js instead in imports
  • deployContractsAndToken.js is renamed to deploy-contracts-and-token.js
    • Migration: Replace deployContractsAndToken.js with deploy-contracts-and-token.js instead in imports

Changed

  • _superTokenLogic field in SuperTokenFactory contract is now a public immutable field and is no longer a storage variable: _superTokenLogicDeprecated

sdk-redux@v0.4.0

30 Jan 13:02
07387d9
Compare
Choose a tag to compare

Changes

  • Fix transaction tracking erroneously registering reverted transactions as successful.
  • Allow RTK-query ^1.7.0 || ^1.8.0 || ^1.9.0

Breaking

  • Require SDK-core version ^0.6.0
  • Pass in signer through mutation payload
  • Remove setSignerForSdkRedux
  • Serialized transactionResponse is now possibly undefined on TrackedTransaction when serialization fails
  • Update @reduxjs/toolkit & @superfluid-finance/sdk-core dependencies

Added

  • Query for transfer events
  • Make it possible to pass in Ether's Overrides object through mutations
  • Add accountTokenSnapshotLog & tokenStatisticLog endpoints
  • Add isSubgraphInSync & blockTransactionSucceededIn to a tracked transaction
  • Export getSerializeQueryArgs & CacheTagTypes

sdk-core@v0.6.1

20 Dec 13:47
1576083
Compare
Choose a tag to compare

Changed

  • Subgraph endpoints all use hosted service endpoints by default

Subgraph v1.5.0

19 Dec 15:39
8ec1a82
Compare
Choose a tag to compare

Added

  • TOGA events added
  • gasUsed property on event entities
  • mostRecentStream on StreamRevision entity
  • data integrity tests: validates subgraph data against blockchain data (RPC calls)
  • balance validation: validates feature subgraph balance data against v1 subgraph balance data
  • Implemented Matchstick Unit tests in favor of slowly deprecating integration tests
  • Added support for Satsuma deployment

Changed

  • Updated README given all the changes
  • Moved over from ganache to hardhat running tests
  • Using docker-compose instead of graph-node fork for integration tests
  • Updated schema.graphql documentation
  • Removed hardcoded addresses and utilize new deploy-test-framework script
  • Simplified addresses.template.ts
  • Bumped specVersion (0.0.3 => 0.0.5) and apiVersion (0.0.6 => 0.0.7) in manifest file (subgraph.template.yaml) and include receipts in eventHandlers
  • Removed unnecessary test-subgraph.template.yaml duplicate file

Fixes

  • Minor mapping fixes

SDK-Core v0.6.0

19 Dec 15:58
84142d3
Compare
Choose a tag to compare

Added

  • SuperToken class has send function
  • batchCall supports new send batch operation
  • Added downgradeTo function on SuperToken class
  • Added toga events to be part of query

Changed

  • Make sender field optional in CFAv1 write functions

ethereum-contracts@v1.5.0

19 Dec 16:07
8ec1a82
Compare
Choose a tag to compare

Opening monologue brought to you by ChatGPT (w/ a few modifications from me).

Welcome to the latest release of ethereum-contracts, where we're continuing our mission to bend the rules of reality and mess with your head. In this update, we've added a few new features that are sure to keep you guessing.

First up, we've added a batchCall operation for sending a whole bunch of transactions at once. We figured, why stop at just one layer of reality when you can have multiple at the same time? It's the ultimate mind-bending experience.

Next, we've introduced a downgradeTo function, because let's be real, sometimes you just need to take a step back and simplify things. But don't worry, we've also added a new SuperTokenV1Library to keep things interesting.

We've also made a few changes to the way the upgradeTo function works. Now it will only allow registered ERC777 recipients, because really, who doesn't love a good dose of bureaucracy in their dreams?

And finally, we've made the MAX_APP_CALLBACK_LEVEL variable public again, because we know you love nothing more than tweaking and tinkering with the fabric of reality.

Thanks for joining us on this wild ride through the dreamscape. We can't wait to see what mind-bending updates we come up with next.

ChatGPT v3.0

Added

  • batchCall supports new send batch operation
  • Added downgradeTo function in SuperToken.sol
  • Added deployContractsAndToken.js and runDeployContractsAndToken.js to dev-scripts
  • Added SuperTokenV1Library which provides a token centric interface for Superfluid specific SuperToken functionality.

Breaking

  • scripts/deploy-test-framework.js no longer exists, deploy-test-framework.js has been moved to dev-scripts
    • Migration: Use dev-scripts/deploy-test-framework.js instead

Changed

  • upgradeTo logic changed to revert if data is not empty and to is a contract and is not a registered ERC777 recipient
  • MAX_APP_CALLBACK_LEVEL is public again

SDK-Core v0.5.9

15 Dec 14:13
ebd82e1
Compare
Choose a tag to compare

Added

  • Added toga events to be part of query

Fixes

  • Added CFAForwarderV1 address to sdk-core