Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-CORE] 0.5.7 Release #1124

Merged
merged 96 commits into from
Oct 17, 2022
Merged

[SDK-CORE] 0.5.7 Release #1124

merged 96 commits into from
Oct 17, 2022

Conversation

0xdavinchee
Copy link
Contributor

  1. git reset --hard dev
  2. git pull
  3. Fix merge conflicts

0xdavinchee and others added 30 commits July 4, 2022 12:56
changed from yarn compile, to yarn build" to reflect package.json

Co-authored-by: Miao ZhiCheng <miao@superfluid.finance>
…ect (#942)

* Update example project references and add back WalletConnect

* Improve example to include RainbowKit

Co-authored-by: Miao ZhiCheng <miao@superfluid.finance>
Co-authored-by: 0xdavinchee <0xdavinchee@gmail.com>
* handle resolver set

* use apiVersion: 0.0.6

* remove .only

* ci.feature fixes

* previous versions testing fix
* only do call.check-query-schema-against-subgraph.yml when changing sdk-core (will break in ci.canary currently)

* call.check-query-schema-against-subgraph.yml fix

* remove local subgraph test from call.check-query-schema-against-subgraph.yml
* subgraph only changes don't break in ci.canary anymore

* handle NameSet

* noticed some data discrepancies on Goerli-feature and Goerli-v1

* must return something

* type fix

* Update mappingHelpers.ts

* don't handle NameSet

Co-authored-by: Miao ZhiCheng <miao@superfluid.finance>
* Compile AJV validations and don't include AJV in final bundle

* Check whether  is present

* got  error when running inside chrome extension

* Add '.generated' suffix to AJV validations and include in build pipeline

Co-authored-by: 0xdavinchee <0xdavinchee@gmail.com>
* test minimal fix

* fix uncaught linting issue in feature
* allowJS in tsconfig.test.json

* new yarn.lock and --frozen-lockfile

* always use --frozen-lockfile when doing yarn install
* reset yarn.lock in root
Co-authored-by: Miao ZhiCheng <miao@superfluid.finance>
Fix the canary build due to an incorrect usage of createProviderWithOEWorkaround
…structure (#960)

* Refactor SFError to follow more conventional Error object structure

* Change tsconfig's 'lib' to a more modern value

* Fix tests

* Rename error 'code' back to 'type'

* Add fallback for Error.cause and assert it in tests

* Better Subgraph error message

* no more [object Object]]

* Add 'caused by' to error message

* set allowJs to true

Co-authored-by: 0xdavinchee <0xdavinchee@gmail.com>
…lated) (#911)

* don't fail deploy run if etherscan verification unsupported
* added a CFA deleteFlow diagram done long time ago
* added script for deploying SuperfluidLoader at a deterministic address
* add native token, proxy verification to verify script - requires an update of truffle-verify-plugin
* script for unlisting a super token
* emit Transfer event on SuperToken initialization
* added script for deploying auxiliary contracts
* added GH handler for listing Super Token (generic script runner is too tedious)
* added placeholder handler
* added temporary script for triggering a token Transfer event
Co-authored-by: Kaspar Kallas <kaspar@superfluid.finance>
* fix isNativeAssetSuperToken indexing
- use TypedMap instead of a bunch of ifs
- hardcode addresses instead of symbol
- formatting cleanup
- optimize testenv-ctl.sh more for subgraph testing
Co-authored-by: Miao ZhiCheng <miao@superfluid.finance>
* Use serialize-error

* Downgrade serialize-error
Co-authored-by: Miao ZhiCheng <miao@superfluid.finance>
* create operation from framework

* Export Operation & OperationType

Co-authored-by: Miao ZhiCheng <miao@superfluid.finance>
Co-authored-by: Kaspar Kallas <kaspar@superfluid.finance>
kasparkallas and others added 20 commits September 7, 2022 17:10
* fix subgraphAPIEndpoint for sdk-core

* Update constants.ts

* third time is the charm

* Update 5_subgraph.test.ts

* proper env variable name

* Update yarn.lock

* address comments

* isArbGoerli
* use nix flake to lock build toolchains such as yarn, foundry, ghc, etc.

* added nodejs 16 to dependencies

* add flakes/whitehat

* add flakes/whitehat

* devShells

* remove haskell tools

* [SDK-CORE] 0.5.6 Patch Fix (#1074)

* fix subgraphAPIEndpoint for sdk-core

* Update constants.ts

* third time is the charm

* Update 5_subgraph.test.ts

* proper env variable name

* Update yarn.lock

* address comments

* isArbGoerli

* updated contributing

* typo

Co-authored-by: 0xdavinchee <0xdavinchee@gmail.com>
* TS WIP - testsuites

* tsconfig revamp
* convert testsuites files into TS
* fix up test:contracts:hardhat accordingly

* TS WIP - Typechain

* add typechain for ethereum-contracts

* TS WIP - UUPS and CallUtils

* convert UUPS test and CallUtils test file to typescript

* TS WIP - Utility Contract Tests

* convert utility contract tests to TypeScript
* remove file extension in all-contracts.ts
* add some helpers to helpers.js

* TS WIP - CFAv1Forwarder Tests

* convert CFAv1Forwarder contract tests to TypeScript

* TS WIP - Library Tests

* convert CFAv1Library and IDAv1Library contract tests to TypeScript

* TS WIP - Scenarios Tests

* convert scenarios tests to typescript

* TS WIP - Scenarios Tests

* convert scenarios tests to typescript

* TS WIP - SuperfluidGoverannceII tests

* convert SuperfluidGovernanceII contract tests to TypeScript

* TS WIP - Custom Tokens Tests

* convert custom token contract tests to TypeScript

* TS WIP - Superfluid Core Tests

* convert superfluid core tests to typescript
* use import instead of require in testsuite files

* TS WIP - Clean up commit pollution

* undo some of the variable renaming

* TS WIP - Clean up commit pollution (cont.)

* undo use of ethers over web3

* TS WIP - Clean up commit pollution (cont.)

* TS WIP - Token behavior files

* some cleanup
* mainly converted token behavior files

* TS WIP - CFA/IDA behavior files

* converted behavior files for CFA and IDA

* TS WIP - Convert peripheries

* convert CFADataModel, MFASupport, AgreementHelper, helpers, expectRevert to typescript

* TS WIP - Convert TestEnvironment

* convert TestEnvironment to typescript
* fix MFASupport import
* fix TestEnvironment imports
* remove module.exports from AgreementHelper

* TS WIP - Deprecate JS-SDK

remove js-sdk from:
- pr-artifact creation
- canary tests + coverage
- publish-pr-packages
- publish-release-packages
- codecov flag
- root package.json
- check-changeset.sh

* TS WIP - Add JS-SDK tests

* add tests that exist in js-sdk to sdk-core as part of deprecation

* TS WIP - Packages

* bump hardhat version
* lower js-sdk version

* TS WIP - Refactor Cleanup

* remove most explicit any's + add actual type
* separation of types from actual files in certain places where it is bloated
* BN refactor (passing in BigNumber to almost all funcs)
* .eslintrc.ts.json added to lint typescript test files
* lint fix files
* general type fixes

* remove parallel flag

* bump js-sdk version

* cleanup

* fix naming
* bump solidity-coverage version
* fix dead links

* Split cfa and ida test files

* split CFA and IDA test files into: callback vs non callback and mfa for cfa

* consistent file naming
…#1078)

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](terser/terser@v4.8.0...v4.8.1)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* this test just needs to know something is undefined
* in the workflow it lets us know which property is undefined, but locally it gives the original message: "Cannot read properties of undefined"
* use BigNumber almost everywhere
* use expect more
* remove js-sdk usage as much as possible
* remove web3 usage as much as possible
* [ETHEREUM-CONTRACTS] backport 1.4.1 fixes

- deployment scripts improvements
- [SECURITY] CFA: check flow sender instead of msg sender in order to cover ACL use

Co-authored-by: 0xdavinchee <0xdavinchee@gmail.com>

* fix build

fix build and add in patch fix test

* remove js and js-sdk

* fix imports

* purge js-sdk from readme.md

* just remove codecov badge

Co-authored-by: Didi <git@d10r.net>
Co-authored-by: 0xdavinchee <0xdavinchee@gmail.com>
* Undo js-sdk deprecation

* half deprecate js-sdk

* remove JS-SDK from .github/workflows
* remove js-sdk from root level files
* fix undefined variable errors
* add JS-SDK test parity back in for SDK-Core
* tidy up README's
* remove build-abi-js.sh from bash files

* Update ci.feature.yml

* build!
* CFAV1Forwarder Fixes

* make _host and _cfa state variables immutable - these should not
* fix `_deleteFlow` logic
* fix natspec
* return true from _forwardBatchCall
* add comment about EIP 2771
* add CFAv1Forwarder tests
* add CFAv1Forwarder to deploy-framework + resolver

* require artifacts from hardhat

* pain

* use truffle build not hh artifacts

* hard code fix for now

* 👎

* undo js-sdk revert

* add CFAv1Forwader to js-sdk

* CFAv1Forwarder to js-sdk

* do this in a separate branch

* remove `protocolReleaseVersion`
* Now SDK-CORE are testing using this deployer instead the web3-version of the deployer
#1113)

Provide end-consumer access to typechain files via ethereum-contracts as the origin source and also exported via sdk-core
no more abi file imports, using typechain generated factories all around
fix up lint scripts
add typechain build pipeline in ethereum-contracts
Co-authored-by: Daniel <tokdaniel4@gmail.com>
* Agreement Forwarder Integration WIP

* Split supertoken tests into separate files
* Add CFAv1Forwarder to SuperfluidFrameworkDeployer + set in resolver and enable as trusted forwarder
* Integrate CFAv1Forwarder in SDK-Core
* tests to ensure that forwarder is being used and works as expected
* validateOperationShouldUseCallAgreement checks that we are using agreement forwarder

* Update CHANGELOG.md

* SDK-Core cleanup

Co-Authored-By: tokdaniel <7677603+tokdaniel@users.noreply.github.com>

* Fix them hardcoded addresses!

* two step fix

* Subgraph test setup cleanup

* delete test-subgraph.template, it is a duplicate
* rename prepare-local: prepare-manifest-local
* update ganache.json
* create runDeployContractsAndToken.ts to deploy framework and tokens and create new ganache.json dynamically
* no more hardcoded addresses in addresses.template.ts!
* helpers.ts modified to read ganache.json file to retrieve resolver address to setup framework

* must build sdk-core

* Fixes

* Make it properly dynamic by deploying and preparing local files prior to actual subgraph deployment
* fix up package.json given the above
* fix up readme

* build sdk-core before deploy contracts

* do not redeploy

* missed the other reusable workflow

* chainId unddefined?

* sender is not needed here

Co-authored-by: tokdaniel <7677603+tokdaniel@users.noreply.github.com>
….7 (#1119)

* bump sdk-core version

* update metadata for satsuma endpoint

* bump eth-contracts + changelog
@github-actions
Copy link

📦 PR Packages

Install this PR (you need to setup Github packages):

yarn add @superfluid-finance/ethereum-contracts@PR1124
yarn add @superfluid-finance/sdk-core@PR1124
yarn add @superfluid-finance/sdk-redux@PR1124
:octocat: Click to learn how to use Github packages

To use the Github package registry, create a token with "read:packages" permission. See Creating a personal access token for help.

Next add these lines to your .npmrc file, replacing TOKEN with your personal access token. See Installing a package from Github if you get stuck.

@superfluid-finance:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=TOKEN

@0xdavinchee 0xdavinchee merged commit b9806ac into release-sdk-core-stable Oct 17, 2022
@0xdavinchee 0xdavinchee deleted the sdk-core-0.5.7 branch October 17, 2022 09:58
@github-actions
Copy link

XKCD Comic Relif

Link: https://xkcd.com/1124
https://xkcd.com/1124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants