protocol-monorepo

Superfluid Protocol Monorepo: the specification, implementations, peripherals and development kits.

OTHER License

Downloads
30.6K
Stars
868
Committers
34

Bot releases are visible (Hide)

protocol-monorepo - [email protected]

Published by github-actions[bot] over 1 year ago

Fixed

  • hostedEndpoint might be nullable so we handle this case.

Added

  • Support for sepolia network
protocol-monorepo - [email protected]

Published by github-actions[bot] over 1 year ago

Changes in this sdk-core stable release:

Changed

  • getPopulatedTransactionRequest doesn't use the signer to populate the transaction anymore as signer.sendTransaction does it already. The double signer.populateTransaction was causing issues with some wallets (e.g. Rainbow Wallet)
  • Map isNativeAssetSuperToken to Token from Subgraph
protocol-monorepo - [email protected]

Published by github-actions[bot] over 1 year ago

Changes in this sdk-redux stable release

Breaking

  • Handle replaced/repriced transaction tracking

Breaking

  • Rename signer to signerAddress
  • Removed waitForConfirmation
  • Don't export waitForOneConfirmation

Changes

  • Use a simpler type for initiateNewTransactionTrackingThunk.transactionResponse
  • Use wait from the TransactionResponse to track the transaction more reliably
  • When trySerializeTransaction fails, use a warning over an error
protocol-monorepo - [email protected]

Published by github-actions[bot] over 1 year ago

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
protocol-monorepo - [email protected]

Published by github-actions[bot] over 1 year ago

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
protocol-monorepo - [email protected]

Published by github-actions[bot] over 1 year ago

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.
protocol-monorepo - [email protected]

Published by github-actions[bot] over 1 year ago

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
protocol-monorepo - [email protected]

Published by github-actions[bot] over 1 year ago

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
protocol-monorepo - [email protected]

Published by github-actions[bot] almost 2 years ago

Changed

  • Subgraph endpoints all use hosted service endpoints by default
protocol-monorepo - [email protected]

Published by github-actions[bot] almost 2 years ago

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
protocol-monorepo - SDK-Core v0.6.0

Published by github-actions[bot] almost 2 years ago

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
protocol-monorepo - Subgraph v1.5.0

Published by github-actions[bot] almost 2 years ago

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
protocol-monorepo - SDK-Core v0.5.9

Published by github-actions[bot] almost 2 years ago

Added

  • Added toga events to be part of query

Fixes

  • Added CFAForwarderV1 address to sdk-core
protocol-monorepo - SDK-Core v0.5.8

Published by github-actions[bot] almost 2 years ago

Added

  • Support for eth-mainnet
  • Map deposit to Stream when querying from Subgraph

Changed

  • Framework initialization for supported networks utilizes @superfluid-finance/metadata, but still uses the resolver for unsupported/local testing environments
    • NOTE: This will not create any changes when doing Framework.create and is just a minor optimization.

  • All transactions executed via SDK-Core have a default multiplier (1.2x) applied to the provider estimated gas limit unless an ethers Overrides object is passed during creation of the Operation.
  • There is also the option to pass in an explicit multiplier when executing transactions: Operation.exec(signer, 1.32).
protocol-monorepo - [email protected]

Published by github-actions[bot] almost 2 years ago

Changes in this ethereum-contracts stable release

Added

  • createCanonicalERC20Wrapper added for creating ERC20 Wrapper Super tokens which will be added to a canonical wrapper super token list based on naming convention and semi-upgradeability. This will be the recommended way of creating ERC20 Wrapper moving forward. (#1115)
    • name naming convention: Super Token name will be "Super ${underlyingToken.name}"
    • symbol naming convention: Super Token symbol will be "${underlyingToken.symbol}x"
  • Hardhat artifacts included in npm package (#1144)
  • Include declaration files in types folder for files in scripts in npm package (#1144)
  • Remove custom error codes in favor of localized per contract custom errors (#1142)
protocol-monorepo - SDK-Core v0.5.7

Published by github-actions[bot] about 2 years ago

Breaking

  • CFAv1Forwarder integrated into SDK-Core and will be the default way of calling CFA agreements and sender is now a required property.
  • Migration: pass sender into the affected CFAv1 callAgreement functions - create/update/deleteFlow.

NOTE: You must pass shouldUseCallAgreement explicitly as a property if you want to execute these calls via the Host.

Added

  • typechain files consumed from @superfluid-finance/ethereum-contracts and exported from SDK-Core
protocol-monorepo - [email protected]

Published by github-actions[bot] about 2 years ago

Added

  • CFA Hooks added (#1099)
  • typechain types are provided to all consumers (#1113)
  • SuperfluidFrameworkDeployer.sol create Native Asset and Pure Super Tokens functionality added (#1104)
  • TestResolver added to allow SuperfluidFrameworkDeployer contract to grant admin permissions to its deployer (#1104)

Fixes

  • CFA Agreement forwarder delete flow fix to allow receivers to delete flow (#1094)
protocol-monorepo - [email protected]

Published by github-actions[bot] about 2 years ago

Changes in this ethereum-contracts stable release

Added

  • CFA Agreement forwarder: deployed on all networks at 0xCfA1E187C9141B8bA90a436CB789017FA573d051

Fixes

  • [SECURITY] CFA: check flow sender instead of msg sender in order to cover ACL use
protocol-monorepo - SDK-Core v0.5.6

Published by github-actions[bot] about 2 years ago

Fixes

  • Correct subgraphAPIEndpoint in getResolverData

Breaking

  • Don't wrap SubgraphClient with SFError
protocol-monorepo - [email protected] - Frozen

Published by github-actions[bot] about 2 years ago

Vitalik sets out on a journey with a fellow coiner, Satoshi, and his frog, Pepe, in order to find her sister, E-girl, who has the power to convert any object or person into a simp.

Changed

  • Removed support for kovan, rinkeby, optimism-kovan and arbitrum-rinkeby
  • Added support for optimism-goerli and arbitrum-goerli