Releases: superfluid-finance/protocol-monorepo
Releases · superfluid-finance/protocol-monorepo
[email protected]
Changes in this Release
Changed
n/a
Added
n/a
Fixes
- use builtTruffleContractLoader for deployment scripts
Breaking
n/a
[email protected]
[email protected]
[email protected]
[email protected]
Changes in this Release
👯 The day has come to add Ethers.js
support! Here is a handy guide to use the SDK with ethers: https://docs.superfluid.finance/superfluid/protocol-tutorials/getting-started/frontend-+-nodejs#installation
Happy hacking!
Changed
- Instantiation has changed (see "Breaking" section)
Added
- New peer dependencies for
@truffle/contract
and@ethersproject/contracts
. You must install one, depending on which web3 library you are using. (#238) - Add
ethers.js
support (#238)
yarn install @superfluid-finance/js-sdk @ethersproject/contracts
...
const SuperfluidSDK = require("@superfluid-finance/js-sdk");
const { Web3Provider } = require("@ethersproject/providers");
const sf = new SuperfluidSDK.Framework({
ethers: new Web3Provider(window.ethereum)
});
await sf.initialize()
- New function to load tokens
loadTokens
, which is similar tooptions.loadTokens
, but you can call this at any time, rather than only during instantiation. (#245) - Support for Super ETH, which allows you to upgrade the native protocol token to a Super Token. (#234)
Fixes
- n/a
Breaking
- For
web3.js
users, we renamedweb3Provider
toweb3
. You must also create the web3.js object first, rather than relying on the sdk to create it. For example:
yarn install @superfluid-finance/js-sdk @truffle/contract
...
const SuperfluidSDK = require("@superfluid-finance/js-sdk");
const Web3 = require("web3");
const sf = new SuperfluidSDK.Framework({
web3: new Web3(window.ethereum),
});
await sf.initialize()
[email protected]
Changes in this Release
Changed
- Update to
@superfluid-finance/js-sdk@^0.3.0
Added
- Support
ETHx
(Super ETH) in the test environment
Fixes
- Use
safeERC20
inSuperUpgrader
Breaking
- n/a
[email protected]
[email protected]
Minor improvements as we continue to separate the sdk from Truffle. Support for ethers.js is planned.
# Compare changes
git diff @superfluid-finance/[email protected] packages/js-sdk
Changed
- Removes
ethereum-contracts
dependency for theloadContracts.js
script (#219)
Added
n/a
Fixes
n/a
Breaking
n/a
[email protected]
Changes in this Release
Changed
- Build process: workflow for pr branches, canary branch, master branch revamped
Added
Fixes
- PVE001 fix - use SafeERC20 SafeTrasfer(From) (#214)
- PVE003 use actual amount when using underlying tokens (#217)
- PVE005 support APP_RULE_NO_REGISTRATION_FOR_EOA (#216)
- PVE007 rewardAmount in AgreementLiquidated and other minor fixes (#218)
- fix deploy-super-token.js script
- corrected licence reference in ethereum-contracts to AGPLv3
Breaking
- fix typo of operationType in batchCall (#225)