Releases: superfluid-org/protocol-monorepo
ethereum-contracts@v1.6.0
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 developmentSuperTokenDeployer.sol
for deploying SuperTokens in local testing (split fromSuperfluidFrameworkDeployer.sol
)
Changed
SuperToken
logic contract takesConstantOutflowNFT
andConstantInflowNFT
proxy contract addressesSuperTokenFactory
logic contract takesConstantOutflowNFT
andConstantInflowNFT
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
Added
increaseAllowance
anddecreaseAllowance
functions to SuperToken class- Batch call support for
increaseAllowance
anddecreaseAllowance
increaseFlowRateAllowance
anddecreaseFlowRateAllowance
functions to CFAv1 class- Add support for
activeOutgoingStreamCount
,activeIncomingStreamCount
,inactiveOutgoingStreamCount
,inactiveIncomingStreamCount
properties in query forAccountTokenSnapshot
entity - Add support for
rewardAddress
,liquidationPeriod
,patricianPeriod
, andminimumDeposit
properties in query forToken
entity - Add support for
userData
property in query forStream
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
Added
- bump solc to 0.8.19
- New ACL functions:
increaseFlowRateAllowance
anddecreaseFlowRateAllowance
inConstantFlowAgreementV1.sol
- Support for
superToken.increaseAllowance
andsuperToken.decreaseAllowance
inbatchCall
inSuperfluid.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
Added
- bump solc to 0.8.18
Breaking
SuperTokenFactory
contract no longer takesSuperTokenHelper
contract in its constructor- Migration: Pass in a deployed
SuperToken
(logic) contract address toSuperTokenFactory
constructor instead
- Migration: Pass in a deployed
runDeployContractsAndToken.js
is renamed torun-deploy-contracts-and-token.js
- Migration: Replace
runDeployContractsAndToken.js
withrun-deploy-contracts-and-token.js
instead in imports
- Migration: Replace
deployContractsAndToken.js
is renamed todeploy-contracts-and-token.js
- Migration: Replace
deployContractsAndToken.js
withdeploy-contracts-and-token.js
instead in imports
- Migration: Replace
Changed
_superTokenLogic
field inSuperTokenFactory
contract is now a public immutable field and is no longer a storage variable:_superTokenLogicDeprecated
sdk-redux@v0.4.0
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 onTrackedTransaction
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
Changed
- Subgraph endpoints all use hosted service endpoints by default
Subgraph v1.5.0
Added
- TOGA events added
gasUsed
property on event entitiesmostRecentStream
onStreamRevision
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
Added
SuperToken
class hassend
functionbatchCall
supports newsend
batch operation- Added
downgradeTo
function onSuperToken
class - Added toga events to be part of query
Changed
- Make
sender
field optional in CFAv1 write functions
ethereum-contracts@v1.5.0
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 newsend
batch operation- Added
downgradeTo
function inSuperToken.sol
- Added
deployContractsAndToken.js
andrunDeployContractsAndToken.js
todev-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 todev-scripts
- Migration: Use
dev-scripts/deploy-test-framework.js
instead
- Migration: Use
Changed
upgradeTo
logic changed to revert ifdata
is not empty andto
is a contract and is not a registered ERC777 recipientMAX_APP_CALLBACK_LEVEL
is public again
SDK-Core v0.5.9
Added
- Added toga events to be part of query
Fixes
- Added CFAForwarderV1 address to sdk-core