From 1cbd4ae0c803ce876d48226dc5811aa486587854 Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Tue, 30 Apr 2024 10:38:56 +0300 Subject: [PATCH 1/6] [sdk-core][sdk-redux][chore] prepare package release (#1934) * bump sdk versions * changelog --- packages/sdk-core/CHANGELOG.md | 6 ++++++ packages/sdk-redux/CHANGELOG.md | 6 ++++++ packages/sdk-redux/package.json | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/sdk-core/CHANGELOG.md b/packages/sdk-core/CHANGELOG.md index f2c72fbfbc..c4bb84b7fe 100644 --- a/packages/sdk-core/CHANGELOG.md +++ b/packages/sdk-core/CHANGELOG.md @@ -6,6 +6,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### Added +### Changed +### Fixed + +## [0.6.13] - 2023-04-30 + ### Added - Added Degen chain support diff --git a/packages/sdk-redux/CHANGELOG.md b/packages/sdk-redux/CHANGELOG.md index 0a6f797b78..a89d1ad3e9 100644 --- a/packages/sdk-redux/CHANGELOG.md +++ b/packages/sdk-redux/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to the SDK-redux will be documented in this file. ## [Unreleased] +### Added +### Changed +### Fixed + +## [0.5.2] - 2023-04-30 + ### Changed - Node dependency updates diff --git a/packages/sdk-redux/package.json b/packages/sdk-redux/package.json index c0d10ae5f5..28fd3958df 100644 --- a/packages/sdk-redux/package.json +++ b/packages/sdk-redux/package.json @@ -1,6 +1,6 @@ { "name": "@superfluid-finance/sdk-redux", - "version": "0.5.1", + "version": "0.5.2", "description": "SDK Redux for streamlined front-end application development with Superfluid Protocol", "homepage": "https://docs.superfluid.finance/", "repository": { From 43a410e10fd08f8ede2b6762358dab2a42af212b Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Tue, 30 Apr 2024 15:05:05 +0300 Subject: [PATCH 2/6] remove polygon mumbai references (#1935) --- .../workflows/handler.deploy-to-testnets.yml | 2 +- .../workflows/handler.verify-contracts.yml | 2 +- .../autowrap/.env-example | 2 -- .../automation-contracts/autowrap/README.md | 3 +-- .../autowrap/hardhat.config.js | 5 ----- .../scheduler/.env-example | 2 -- .../automation-contracts/scheduler/README.md | 4 +--- .../scheduler/hardhat.config.js | 5 ----- .../apps/SuperfluidLoaderLibrary.sol | 3 --- packages/ethereum-contracts/hardhat.config.ts | 5 ----- packages/ethereum-contracts/truffle-config.js | 6 ------ .../utils/supertoken-deployer.html | 1 - packages/js-sdk/test/getConfig.test.js | 20 +++++++++---------- packages/sdk-core/package.json | 6 +++--- .../previous-versions-testing/queryTests.ts | 4 ++-- packages/sdk-core/src/subgraph/.graphqlconfig | 2 +- .../sdk-core/tasks/testSchemasAndQueries.sh | 5 +---- packages/sdk-core/test/0_framework.test.ts | 4 ++-- packages/subgraph/.env.example | 3 +-- .../subgraph/scripts/balanceValidation.ts | 4 ++-- packages/subgraph/tasks/deploy.sh | 1 - .../redux/chainIds.ts | 6 +++--- .../src/wagmiAndRainbowKit.ts | 5 +++-- tasks/daily-slack-bot.js | 4 ---- 24 files changed, 32 insertions(+), 72 deletions(-) diff --git a/.github/workflows/handler.deploy-to-testnets.yml b/.github/workflows/handler.deploy-to-testnets.yml index b9960e8e54..322a511769 100644 --- a/.github/workflows/handler.deploy-to-testnets.yml +++ b/.github/workflows/handler.deploy-to-testnets.yml @@ -33,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - network: [eth-sepolia, polygon-mumbai, optimism-sepolia, avalanche-fuji, scroll-sepolia] + network: [eth-sepolia, optimism-sepolia, avalanche-fuji, scroll-sepolia] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/handler.verify-contracts.yml b/.github/workflows/handler.verify-contracts.yml index f5e1a2eb35..7aa764cae7 100644 --- a/.github/workflows/handler.verify-contracts.yml +++ b/.github/workflows/handler.verify-contracts.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - network: [eth-sepolia, polygon-mumbai, optimism-sepolia, avalanche-fuji, polygon-mainnet, xdai-mainnet, optimism-mainnet, arbitrum-one, avalanche-c, bsc-mainnet, eth-mainnet, celo-mainnet, base-mainnnet, scroll-mainnet] + network: [eth-sepolia, optimism-sepolia, avalanche-fuji, polygon-mainnet, xdai-mainnet, optimism-mainnet, arbitrum-one, avalanche-c, bsc-mainnet, eth-mainnet, celo-mainnet, base-mainnnet, scroll-mainnet] defaults: run: diff --git a/packages/automation-contracts/autowrap/.env-example b/packages/automation-contracts/autowrap/.env-example index 3e29df7dad..4b025569de 100644 --- a/packages/automation-contracts/autowrap/.env-example +++ b/packages/automation-contracts/autowrap/.env-example @@ -1,10 +1,8 @@ # .env-example -MUMBAI_PRIVATE_KEY= POLYGON_PRIVATE_KEY= BSC_PRIVATE_KEY= -MUMBAI_URL= POLYGON_URL= BSC_URL= diff --git a/packages/automation-contracts/autowrap/README.md b/packages/automation-contracts/autowrap/README.md index db05daf8fb..dc05add73d 100644 --- a/packages/automation-contracts/autowrap/README.md +++ b/packages/automation-contracts/autowrap/README.md @@ -20,7 +20,6 @@ When your Super Token balance reaches a certain lower threshold, Auto Wrap steps PRIVATE_KEY= -MUMBAI_PRIVATE_KEY= POLYGON_PRIVATE_KEY= BSC_PRIVATE_KEY= @@ -58,7 +57,7 @@ npx hardhat addStrategy --manager --strategy #### Testnets | | FlowScheduler | VestingScheduler | |----------|--------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------| -| Mumbai | [0xF18825d412C061aEfEFB4dF46a1c077636dA50bf](https://mumbai.polygonscan.com/address/0xF18825d412C061aEfEFB4dF46a1c077636dA50bf#code) | [0xD4fCe2a08fd2fA7495BEd900F2fb6c6deDBf8632](https://mumbai.polygonscan.com/address/0xD4fCe2a08fd2fA7495BEd900F2fb6c6deDBf8632#code) | +| OP Sepolia | [0x73B1Ce21d03ad389C2A291B1d1dc4DAFE7B5Dc68](https://sepolia-optimism.etherscan.io/address/0x73B1Ce21d03ad389C2A291B1d1dc4DAFE7B5Dc68) | [0x27444c0235a4D921F3106475faeba0B5e7ABDD7a](https://sepolia-optimism.etherscan.io/address/0x27444c0235a4D921F3106475faeba0B5e7ABDD7a) | #### Mainnets | | FlowScheduler | VestingScheduler | diff --git a/packages/automation-contracts/scheduler/hardhat.config.js b/packages/automation-contracts/scheduler/hardhat.config.js index 5711a7e622..93eb9b8e9a 100644 --- a/packages/automation-contracts/scheduler/hardhat.config.js +++ b/packages/automation-contracts/scheduler/hardhat.config.js @@ -25,11 +25,6 @@ module.exports = { url: "http://127.0.0.1:8545/", chainId: 31337, }, - mumbai: { - url: process.env.MUMBAI_URL || "", - accounts: - process.env.MUMBAI_PRIVATE_KEY !== undefined ? [process.env.MUMBAI_PRIVATE_KEY] : [], - }, polygon: { url: process.env.POLYGON_URL || "", accounts: diff --git a/packages/ethereum-contracts/contracts/apps/SuperfluidLoaderLibrary.sol b/packages/ethereum-contracts/contracts/apps/SuperfluidLoaderLibrary.sol index 77955699a6..859795406a 100644 --- a/packages/ethereum-contracts/contracts/apps/SuperfluidLoaderLibrary.sol +++ b/packages/ethereum-contracts/contracts/apps/SuperfluidLoaderLibrary.sol @@ -19,7 +19,6 @@ library SuperfluidLoaderLibrary { // testnets uint256 private constant AVALANCHE_FUJI = 43113; - uint256 private constant POLYGON_MUMBAI = 80001; uint256 private constant SCROLL_SEPOLIA = 534351; uint256 private constant ETH_SEPOLIA = 11155111; uint256 private constant OPTIMISM_SEPOLIA = 11155420; @@ -50,8 +49,6 @@ library SuperfluidLoaderLibrary { // testnets } else if (block.chainid == AVALANCHE_FUJI) { return 0x85Fe79b998509B77BF10A8BD4001D58475D29386; - } else if (block.chainid == POLYGON_MUMBAI) { - return 0xEB796bdb90fFA0f28255275e16936D25d3418603; } else if (block.chainid == SCROLL_SEPOLIA) { return 0x42b05a6016B9eED232E13fd56a8F0725693DBF8e; } else if (block.chainid == ETH_SEPOLIA) { diff --git a/packages/ethereum-contracts/hardhat.config.ts b/packages/ethereum-contracts/hardhat.config.ts index 18b86764fe..6dcb708c69 100644 --- a/packages/ethereum-contracts/hardhat.config.ts +++ b/packages/ethereum-contracts/hardhat.config.ts @@ -64,7 +64,6 @@ const chainIds = { "arbitrum-one": 42161, "polygon-mainnet": 137, - "polygon-mumbai": 80001, "avalanche-c": 43114, "avalanche-fuji": 43113, @@ -127,10 +126,6 @@ const config: HardhatUserConfig = { ...createNetworkConfig("polygon-mainnet"), url: process.env.POLYGON_MAINNET_PROVIDER_URL || "", }, - "polygon-mumbai": { - ...createNetworkConfig("polygon-mumbai"), - url: process.env.POLYGON_MUMBAI_PROVIDER_URL || "", - }, "avalanche-c": { ...createNetworkConfig("avalanche-c"), url: process.env.AVALANCHE_C_PROVIDER_URL || "", diff --git a/packages/ethereum-contracts/truffle-config.js b/packages/ethereum-contracts/truffle-config.js index 01cef495ce..d1f6e93fab 100644 --- a/packages/ethereum-contracts/truffle-config.js +++ b/packages/ethereum-contracts/truffle-config.js @@ -60,7 +60,6 @@ const ALIASES = { "xdai-mainnet": ["xdai"], "polygon-mainnet": ["matic"], - "polygon-mumbai": ["mumbai"], "optimism-mainnet": ["opmainnet"], "optimism-sepolia": ["opsepolia"], @@ -197,11 +196,6 @@ const E = (module.exports = { maxFeePerGas: 500e9, }, - "polygon-mumbai": { - ...createNetworkDefaultConfiguration("polygon-mumbai"), - network_id: 80001, - }, - // // xDAI: https://www.xdaichain.com/for-users/wallets/metamask/metamask-setup diff --git a/packages/ethereum-contracts/utils/supertoken-deployer.html b/packages/ethereum-contracts/utils/supertoken-deployer.html index 836633d9e6..be849eed48 100644 --- a/packages/ethereum-contracts/utils/supertoken-deployer.html +++ b/packages/ethereum-contracts/utils/supertoken-deployer.html @@ -53,7 +53,6 @@ // TODO: replace with external canonical network list networks = [ - { chainId: 80001, hostAddr: "0xEB796bdb90fFA0f28255275e16936D25d3418603" }, // polygon-mumbai { chainId: 43113, hostAddr: "0xf04F2C525819691ed9ABD3D2B7109E1633795e68" }, // avalanche-fuji { chainId: 137, hostAddr: "0x3E14dC1b13c488a8d5D310918780c983bD5982E7" }, // polygon-mainnet diff --git a/packages/js-sdk/test/getConfig.test.js b/packages/js-sdk/test/getConfig.test.js index bdd72252e7..98706daf60 100644 --- a/packages/js-sdk/test/getConfig.test.js +++ b/packages/js-sdk/test/getConfig.test.js @@ -6,18 +6,18 @@ describe("getConfig", () => { delete process.env.RESOLVER_ADDRESS; }); - it("mumbai v1", async () => { - const mumbaiConfig = SuperfluidSDK.getConfig(80001, "v1"); - assert.isNotEmpty(mumbaiConfig.resolverAddress); - assert.isNotEmpty(mumbaiConfig.subgraphQueryEndpoint); - assert.isUndefined(mumbaiConfig.versions); + it("polygon v1", async () => { + const config = SuperfluidSDK.getConfig(137, "v1"); + assert.isNotEmpty(config.resolverAddress); + assert.isNotEmpty(config.subgraphQueryEndpoint); + assert.isUndefined(config.versions); }); - it("mumbai test", async () => { - const mumbaiConfig = SuperfluidSDK.getConfig(80001, "test"); - assert.isNotEmpty(mumbaiConfig.resolverAddress); - assert.isUndefined(mumbaiConfig.subgraphQueryEndpoint); - assert.isUndefined(mumbaiConfig.versions); + it("polygon test", async () => { + const config = SuperfluidSDK.getConfig(137, "test"); + assert.isNotEmpty(config.resolverAddress); + assert.isUndefined(config.subgraphQueryEndpoint); + assert.isUndefined(config.versions); }); it("defaultConfig", async () => { diff --git a/packages/sdk-core/package.json b/packages/sdk-core/package.json index 1b0fcff18b..689287748c 100644 --- a/packages/sdk-core/package.json +++ b/packages/sdk-core/package.json @@ -48,9 +48,9 @@ "generate:graphql-types": "graphql-codegen --config subgraph-codegen.yml", "generate-graphql-schema": "yarn generate-graphql-schema:v1", "generate-graphql-schema:local": "get-graphql-schema http://localhost:8000/subgraphs/name/superfluid-test > src/subgraph/schema.graphql", - "generate-graphql-schema:v1": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-mumbai > src/subgraph/schema.graphql", - "generate-graphql-schema:dev": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-dev-mumbai > src/subgraph/schema.graphql", - "generate-graphql-schema:feature": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-feature-mumbai > src/subgraph/schema.graphql", + "generate-graphql-schema:v1": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-sepolia > src/subgraph/schema.graphql", + "generate-graphql-schema:dev": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-dev-optimism-sepolia > src/subgraph/schema.graphql", + "generate-graphql-schema:feature": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-feature-matic > src/subgraph/schema.graphql", "cloc": "sh tasks/cloc.sh" }, "bugs": { diff --git a/packages/sdk-core/previous-versions-testing/queryTests.ts b/packages/sdk-core/previous-versions-testing/queryTests.ts index 2e38fae95f..9d2a43a3e2 100644 --- a/packages/sdk-core/previous-versions-testing/queryTests.ts +++ b/packages/sdk-core/previous-versions-testing/queryTests.ts @@ -5,14 +5,14 @@ import metadata from "@superfluid-finance/metadata"; /** * We only use matic network endpoints for v1 release tests - * otherwise, we use mumbai + * otherwise, we use OP Sepolia * @returns chainId */ export const getChainId = () => { // null coalesce, but this should NEVER return null for either return process.env.SUBGRAPH_RELEASE_TAG == "v1" ? metadata.getNetworkByShortName("matic")?.chainId ?? 0 - : metadata.getNetworkByShortName("mumbai")?.chainId ?? 0; + : metadata.getNetworkByShortName("opsepolia")?.chainId ?? 0; }; export const testQueryClassFunctions = async (query: Query) => { diff --git a/packages/sdk-core/src/subgraph/.graphqlconfig b/packages/sdk-core/src/subgraph/.graphqlconfig index bad7321ceb..5deb8e10e8 100644 --- a/packages/sdk-core/src/subgraph/.graphqlconfig +++ b/packages/sdk-core/src/subgraph/.graphqlconfig @@ -4,7 +4,7 @@ "extensions": { "endpoints": { "Default GraphQL Endpoint": { - "url": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-feature-mumbai", + "url": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-dev-optimism-sepolia", "headers": { "user-agent": "JS GraphQL" }, diff --git a/packages/sdk-core/tasks/testSchemasAndQueries.sh b/packages/sdk-core/tasks/testSchemasAndQueries.sh index bae1f2f734..69e33841d9 100755 --- a/packages/sdk-core/tasks/testSchemasAndQueries.sh +++ b/packages/sdk-core/tasks/testSchemasAndQueries.sh @@ -6,9 +6,7 @@ JQ="npx --package=node-jq -- jq" set -xe if [ "$SUBGRAPH_RELEASE_TAG" == "feature" ];then - # we only support matic and mumbai feature endpoints - # however, we don't want to be blocked by matic for feature - NETWORKS=("mumbai") + NETWORKS=("matic") fi if [ "$SUBGRAPH_RELEASE_TAG" == "dev" ] || [ "$SUBGRAPH_RELEASE_TAG" == "v1" ];then @@ -31,7 +29,6 @@ for i in "${NETWORKS[@]}";do declare -A LEGACY_NETWORK_NAMES=( ["xdai-mainnet"]="xdai" ["polygon-mainnet"]="matic" - ["polygon-mumbai"]="mumbai" ) GRAPH_NETWORK="${LEGACY_NETWORK_NAMES[$i]:-$i}" diff --git a/packages/sdk-core/test/0_framework.test.ts b/packages/sdk-core/test/0_framework.test.ts index b1590494d6..c218fd03bd 100644 --- a/packages/sdk-core/test/0_framework.test.ts +++ b/packages/sdk-core/test/0_framework.test.ts @@ -27,7 +27,7 @@ makeSuite("Framework Tests", (testEnv: TestEnvironment) => { try { await Framework.create({ // force cast because we know this exists - chainId: networkNameToChainIdMap.get("polygon-mumbai")!, + chainId: networkNameToChainIdMap.get("polygon-mainnet")!, provider: testEnv.provider, }); } catch (err: any) { @@ -36,7 +36,7 @@ makeSuite("Framework Tests", (testEnv: TestEnvironment) => { "Network Mismatch Error: Your provider network chainId is: " + chainId + " whereas your desired chainId is: " + - networkNameToChainIdMap.get("polygon-mumbai")! + networkNameToChainIdMap.get("polygon-mainnet")! ); } }); diff --git a/packages/subgraph/.env.example b/packages/subgraph/.env.example index 40b56851ad..b2b68d565e 100644 --- a/packages/subgraph/.env.example +++ b/packages/subgraph/.env.example @@ -4,5 +4,4 @@ MATIC_PROVIDER_URL= ARBITRUM_ONE_PROVIDER_URL= AVALANCHE_C_PROVIDER_URL= BSC_MAINNET_PROVIDER_URL= -AVAFUJI_PROVIDER_URL= -MUMBAI_PROVIDER_URL= +AVAFUJI_PROVIDER_URL= \ No newline at end of file diff --git a/packages/subgraph/scripts/balanceValidation.ts b/packages/subgraph/scripts/balanceValidation.ts index a0677a0421..88edf0197d 100644 --- a/packages/subgraph/scripts/balanceValidation.ts +++ b/packages/subgraph/scripts/balanceValidation.ts @@ -14,9 +14,9 @@ import { DataIntegrityAccountTokenSnapshot } from "./dataIntegrity/interfaces"; */ async function main() { const endpointA = - "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-feature-mumbai"; + "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-feature-matic"; const endpointB = - "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-mumbai"; + "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-matic"; const endpointARecentBlock = await getMostRecentIndexedBlockNumber( endpointA ); diff --git a/packages/subgraph/tasks/deploy.sh b/packages/subgraph/tasks/deploy.sh index a1d4f3a79e..70f0a1a233 100755 --- a/packages/subgraph/tasks/deploy.sh +++ b/packages/subgraph/tasks/deploy.sh @@ -74,7 +74,6 @@ deploy_to_graph() { local -A legacyNetworkNames=( ["xdai-mainnet"]="xdai" ["polygon-mainnet"]="matic" - ["polygon-mumbai"]="mumbai" ) local graphNetwork="${legacyNetworkNames[$network]:-$network}" diff --git a/sdk-redux-examples/sdk-redux-nextjs-typescript/redux/chainIds.ts b/sdk-redux-examples/sdk-redux-nextjs-typescript/redux/chainIds.ts index 21d2a25c71..ab21df475d 100644 --- a/sdk-redux-examples/sdk-redux-nextjs-typescript/redux/chainIds.ts +++ b/sdk-redux-examples/sdk-redux-nextjs-typescript/redux/chainIds.ts @@ -1,7 +1,7 @@ export const chainIds = [ // 100, // XDAI //TODO(KK): No infura support 137, // MATIC - 80001, // MUMBAI + 43113 , // OP Sepolia ]; export type Network = { @@ -15,8 +15,8 @@ export const networks: Network[] = [ chainId: 137, }, { - name: "mumbai", - chainId: 80001, + name: "fuji", + chainId: 43113 , }, ]; diff --git a/sdk-redux-examples/sdk-redux-react-typecript/src/wagmiAndRainbowKit.ts b/sdk-redux-examples/sdk-redux-react-typecript/src/wagmiAndRainbowKit.ts index 01ab2b7a6a..fa4d560fe5 100644 --- a/sdk-redux-examples/sdk-redux-react-typecript/src/wagmiAndRainbowKit.ts +++ b/sdk-redux-examples/sdk-redux-react-typecript/src/wagmiAndRainbowKit.ts @@ -7,12 +7,12 @@ import { } from 'wagmi'; import { polygon, - polygonMumbai + avalancheFuji } from 'wagmi/chains' import { publicProvider } from 'wagmi/providers/public'; export const { chains, provider } = configureChains( - [polygon, polygonMumbai], + [polygon, avalancheFuji], [ publicProvider() ] @@ -20,6 +20,7 @@ export const { chains, provider } = configureChains( export const { connectors } = getDefaultWallets({ appName: 'SDK-redux example', + projectId: "", chains }); diff --git a/tasks/daily-slack-bot.js b/tasks/daily-slack-bot.js index 72b6b3468b..9584d24530 100644 --- a/tasks/daily-slack-bot.js +++ b/tasks/daily-slack-bot.js @@ -36,10 +36,6 @@ const whiteListedAddresses = [ ]; const networkSpecificData = { - "polygon-mumbai": { - url: "https://api-testnet.polygonscan.com/api", - key: process.env.POLYGONSCAN_API_KEY, - }, "avalanche-fuji": { url: "https://api-testnet.snowtrace.io/api", key: process.env.SNOWTRACE_API_KEY, From 22f657a3e5155ce2bd3708c1f6c27025e7ffa78e Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Tue, 30 Apr 2024 18:43:05 +0300 Subject: [PATCH 3/6] [metadata] remove mumbai from metadata (#1936) * remove mumbai from metadata * fix versions & add missing file --- packages/metadata/CHANGELOG.md | 4 ++++ packages/metadata/module/networks/list.d.ts | 3 +++ packages/metadata/package.json | 2 +- packages/sdk-redux/package.json | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/metadata/CHANGELOG.md b/packages/metadata/CHANGELOG.md index 7a1e451e4f..483fb965c6 100644 --- a/packages/metadata/CHANGELOG.md +++ b/packages/metadata/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to the metadata will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.2.0] +### Changed +- Removed Polygon Mumbai + ## [v1.1.30] ### Added - Degen Chain deployment diff --git a/packages/metadata/module/networks/list.d.ts b/packages/metadata/module/networks/list.d.ts index f95da12d48..9763ac2831 100644 --- a/packages/metadata/module/networks/list.d.ts +++ b/packages/metadata/module/networks/list.d.ts @@ -49,6 +49,9 @@ export interface NetworkMetaData { readonly publicRPCs?: string[]; readonly coinGeckoId?: string; readonly trustedForwarders?: string[]; // list of additional trusted forwarders + readonly subgraphVesting?: { name: string, hostedEndpoint: string } + readonly subgraphFlowScheduler?: { name: string, hostedEndpoint: string } + readonly subgraphAutoWrap?: { name: string, hostedEndpoint: string }, } declare const _default: NetworkMetaData[]; export default _default; diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 7591b5e8b7..61c3b34ac7 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@superfluid-finance/metadata", - "version": "1.1.30", + "version": "1.2.0", "description": "Superfluid Metadata", "main": "main/index.cjs", "module": "module/index.js", diff --git a/packages/sdk-redux/package.json b/packages/sdk-redux/package.json index 28fd3958df..3e01f4335a 100644 --- a/packages/sdk-redux/package.json +++ b/packages/sdk-redux/package.json @@ -52,7 +52,7 @@ }, "peerDependencies": { "@reduxjs/toolkit": "^1.7.0 || ^1.8.0 || ^1.9.0", - "@superfluid-finance/sdk-core": "^0.6.9" + "@superfluid-finance/sdk-core": "^0.6.13" }, "files": [ "dist/main", From 2c8e0a5d60cd27f6e6a3f905228c6748035c7367 Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Tue, 30 Apr 2024 22:53:35 +0300 Subject: [PATCH 4/6] [metadata] Add automation addresses (#1937) * remove mumbai again * add base & op sepolia automation contract addresess --- packages/metadata/CHANGELOG.md | 5 ++ packages/metadata/main/networks/list.cjs | 100 ++++++++-------------- packages/metadata/module/networks/list.js | 100 ++++++++-------------- packages/metadata/networks.json | 100 ++++++++-------------- packages/metadata/package.json | 2 +- 5 files changed, 114 insertions(+), 193 deletions(-) diff --git a/packages/metadata/CHANGELOG.md b/packages/metadata/CHANGELOG.md index 483fb965c6..213783a866 100644 --- a/packages/metadata/CHANGELOG.md +++ b/packages/metadata/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to the metadata will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.2.1] +### Added +- Added Base automation contracts +- Added OP Sepolia automation contracts + ## [v1.2.0] ### Changed - Removed Polygon Mumbai diff --git a/packages/metadata/main/networks/list.cjs b/packages/metadata/main/networks/list.cjs index 055a6a2520..1d21a1c50d 100644 --- a/packages/metadata/main/networks/list.cjs +++ b/packages/metadata/main/networks/list.cjs @@ -1,70 +1,6 @@ /* eslint-disable */ module.exports = [ - { - "name": "polygon-mumbai", - "isTestnet": true, - "networkId": 80001, - "chainId": 80001, - "sfId": 102, - "shortName": "mumbai", - "uppercaseName": "POLYGON_MUMBAI", - "humanReadableName": "Polygon Mumbai", - "nativeTokenSymbol": "MATIC", - "nativeTokenWrapper": "0x96B82B65ACF7072eFEb00502F45757F254c2a0D4", - "contractsV1": { - "resolver": "0x2feFd8B23e4770B674b0d2fAda5EE8a2bE0B525F", - "host": "0xEB796bdb90fFA0f28255275e16936D25d3418603", - "cfaV1": "0x49e565Ed1bdc17F3d220f72DF0857C26FA83F873", - "cfaV1Forwarder": "0xcfA132E353cB4E398080B9700609bb008eceB125", - "idaV1": "0x804348D4960a61f2d5F9ce9103027A3E849E09b8", - "gdaV1": "0x63ab406B6eF6c8be732c1edbd15464de16a8F46D", - "gdaV1Forwarder": "0x6DA13Bde224A05a288748d857b9e7DDEffd1dE08", - "superTokenFactory": "0xB798553db6EB3D3C56912378409370145E97324B", - "constantOutflowNFT": "0x502CC982947216C0f94e433BC78c413806301C07", - "constantInflowNFT": "0x9906A7e948C642B6bc74b9A5EAfCddB3580b44e0", - "superfluidLoader": "0xFcc617a382988a6d081B1821c8d17C47DFF9EDE1", - "toga": "0x38DD80876DBA048d0050D28828522c313967D073", - "superSpreader": "0x74CDF863b00789c29734F8dFd9F83423Bc55E4cE", - "flowScheduler": "0x59A3Ba9d34c387FB70b4f4e4Fbc9eD7519194139", - "vestingScheduler": "0x3962EE56c9f7176215D149938BA685F91aBB633B", - "autowrap": { - "manager": "0x3eAB3c6207F488E475b7955B631B564F0E6317B9", - "wrapStrategy": "0x544728AFDBeEafBeC9e1329031788edb53017bC4" - }, - "existentialNFTCloneFactory": "0xfC4E49AfcDDDcc2B90794DC214cc324d17B15619" - }, - "startBlockV1": 8100000, - "logsQueryRange": 10000, - "explorer": "https://mumbai.polygonscan.com", - "subgraphV1": { - "cliName": "mumbai", - "name": "protocol-v1-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-mumbai" - }, - "subgraphVesting": { - "name": "vesting-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-polygon-mumbai" - }, - "subgraphFlowScheduler": { - "name": "scheduling-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-polygon-mumbai" - }, - "subgraphAutoWrap": { - "name": "auto-wrap-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-polygon-mumbai" - }, - "publicRPCs": [ - "https://rpc.ankr.com/polygon_mumbai", - "https://matic-mumbai.chainstacklabs.com" - ], - "trustedForwarders": [ - "0x9399bb24dbb5c4b782c70c2969f58716ebbd6a3b", - "0x69015912AA33720b842dCD6aC059Ed623F28d9f7", - "0xb539068872230f20456CF38EC52EF2f91AF4AE49", - "0xd8253782c45a12053594b9deB72d8e8aB2Fca54c" - ] - }, { "name": "avalanche-fuji", "isTestnet": true, @@ -172,6 +108,12 @@ module.exports = "superTokenFactory": "0xfcF0489488397332579f35b0F711BE570Da0E8f5", "constantOutflowNFT": "0xda6db863cb2EE39b196edB8159c38A1ed5c55344", "constantInflowNFT": "0x87E00Dced5670e01BEe33a9a724B1dac790937eF", + "flowScheduler": "0x73B1Ce21d03ad389C2A291B1d1dc4DAFE7B5Dc68", + "vestingScheduler": "0x27444c0235a4D921F3106475faeba0B5e7ABDD7a", + "autowrap": { + "manager": "0xe567b32C10B0dB72d9490eB1B9A409C5ADed192C", + "wrapStrategy": "0xf232f1fd34CE12e24F4391865c2D6E374D2C34d9" + }, "superfluidLoader": "0x109412E3C84f0539b43d39dB691B08c90f58dC7c" }, "startBlockV1": 6886559, @@ -182,6 +124,18 @@ module.exports = "name": "protocol-v1-optimism-sepolia", "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-sepolia" }, + "subgraphVesting": { + "name": "vesting-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/vesting-v1-optimism-sepolia/prod/gn" + }, + "subgraphFlowScheduler": { + "name": "scheduling-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/scheduling-v1-optimism-sepolia/prod/gn" + }, + "subgraphAutoWrap": { + "name": "auto-wrap-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/auto-wrap-v1-optimism-sepolia/prod/gn" + }, "publicRPCs": [ "https://sepolia.optimism.io" ], @@ -714,6 +668,12 @@ module.exports = "superfluidLoader": "0x9F9EEd9Bbc38E9e0514fD9dFcc0Bca9869A9c534", "toga": "0xA87F76e99f6C8Ff8996d14f550ceF47f193D9A09", "batchLiquidator": "0x889ebeCaD5F8C34Fd96023456d0fC5cE54eb74Cb", + "flowScheduler": "0xC72CEd15204d02183c83fEbb918b183E400811Ee", + "vestingScheduler": "0xDF92D0E6Bcb9385FDe99aD21Ff5e47Fb47E3c6b2", + "autowrap": { + "manager": "0x5D0acD0864Ad07ba4E1E0474AE69Da87482e14A9", + "wrapStrategy": "0xB29005319B0caB24cF6D4d24e8420E54BB29Cb0d" + }, "existentialNFTCloneFactory": "0x642332562BC60a4Bd9681E7bb1588f7456A497aC" }, "startBlockV1": 1000000, @@ -723,6 +683,18 @@ module.exports = "cliName": "base", "name": "protocol-v1-base-mainnet" }, + "subgraphVesting": { + "name": "vesting-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/vesting-v1-base-mainnet/prod/gn" + }, + "subgraphFlowScheduler": { + "name": "scheduling-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/scheduling-v1-base-mainnet/prod/gn" + }, + "subgraphAutoWrap": { + "name": "auto-wrap-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/auto-wrap-v1-base-mainnet/prod/gn" + }, "publicRPCs": ["https://developer-access-mainnet.base.org"], "coinGeckoId": "base" }, diff --git a/packages/metadata/module/networks/list.js b/packages/metadata/module/networks/list.js index 195b5bc731..d72bb3258a 100644 --- a/packages/metadata/module/networks/list.js +++ b/packages/metadata/module/networks/list.js @@ -1,70 +1,6 @@ /* eslint-disable */ export default [ - { - "name": "polygon-mumbai", - "isTestnet": true, - "networkId": 80001, - "chainId": 80001, - "sfId": 102, - "shortName": "mumbai", - "uppercaseName": "POLYGON_MUMBAI", - "humanReadableName": "Polygon Mumbai", - "nativeTokenSymbol": "MATIC", - "nativeTokenWrapper": "0x96B82B65ACF7072eFEb00502F45757F254c2a0D4", - "contractsV1": { - "resolver": "0x2feFd8B23e4770B674b0d2fAda5EE8a2bE0B525F", - "host": "0xEB796bdb90fFA0f28255275e16936D25d3418603", - "cfaV1": "0x49e565Ed1bdc17F3d220f72DF0857C26FA83F873", - "cfaV1Forwarder": "0xcfA132E353cB4E398080B9700609bb008eceB125", - "idaV1": "0x804348D4960a61f2d5F9ce9103027A3E849E09b8", - "gdaV1": "0x63ab406B6eF6c8be732c1edbd15464de16a8F46D", - "gdaV1Forwarder": "0x6DA13Bde224A05a288748d857b9e7DDEffd1dE08", - "superTokenFactory": "0xB798553db6EB3D3C56912378409370145E97324B", - "constantOutflowNFT": "0x502CC982947216C0f94e433BC78c413806301C07", - "constantInflowNFT": "0x9906A7e948C642B6bc74b9A5EAfCddB3580b44e0", - "superfluidLoader": "0xFcc617a382988a6d081B1821c8d17C47DFF9EDE1", - "toga": "0x38DD80876DBA048d0050D28828522c313967D073", - "superSpreader": "0x74CDF863b00789c29734F8dFd9F83423Bc55E4cE", - "flowScheduler": "0x59A3Ba9d34c387FB70b4f4e4Fbc9eD7519194139", - "vestingScheduler": "0x3962EE56c9f7176215D149938BA685F91aBB633B", - "autowrap": { - "manager": "0x3eAB3c6207F488E475b7955B631B564F0E6317B9", - "wrapStrategy": "0x544728AFDBeEafBeC9e1329031788edb53017bC4" - }, - "existentialNFTCloneFactory": "0xfC4E49AfcDDDcc2B90794DC214cc324d17B15619" - }, - "startBlockV1": 8100000, - "logsQueryRange": 10000, - "explorer": "https://mumbai.polygonscan.com", - "subgraphV1": { - "cliName": "mumbai", - "name": "protocol-v1-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-mumbai" - }, - "subgraphVesting": { - "name": "vesting-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-polygon-mumbai" - }, - "subgraphFlowScheduler": { - "name": "scheduling-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-polygon-mumbai" - }, - "subgraphAutoWrap": { - "name": "auto-wrap-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-polygon-mumbai" - }, - "publicRPCs": [ - "https://rpc.ankr.com/polygon_mumbai", - "https://matic-mumbai.chainstacklabs.com" - ], - "trustedForwarders": [ - "0x9399bb24dbb5c4b782c70c2969f58716ebbd6a3b", - "0x69015912AA33720b842dCD6aC059Ed623F28d9f7", - "0xb539068872230f20456CF38EC52EF2f91AF4AE49", - "0xd8253782c45a12053594b9deB72d8e8aB2Fca54c" - ] - }, { "name": "avalanche-fuji", "isTestnet": true, @@ -172,6 +108,12 @@ export default "superTokenFactory": "0xfcF0489488397332579f35b0F711BE570Da0E8f5", "constantOutflowNFT": "0xda6db863cb2EE39b196edB8159c38A1ed5c55344", "constantInflowNFT": "0x87E00Dced5670e01BEe33a9a724B1dac790937eF", + "flowScheduler": "0x73B1Ce21d03ad389C2A291B1d1dc4DAFE7B5Dc68", + "vestingScheduler": "0x27444c0235a4D921F3106475faeba0B5e7ABDD7a", + "autowrap": { + "manager": "0xe567b32C10B0dB72d9490eB1B9A409C5ADed192C", + "wrapStrategy": "0xf232f1fd34CE12e24F4391865c2D6E374D2C34d9" + }, "superfluidLoader": "0x109412E3C84f0539b43d39dB691B08c90f58dC7c" }, "startBlockV1": 6886559, @@ -182,6 +124,18 @@ export default "name": "protocol-v1-optimism-sepolia", "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-sepolia" }, + "subgraphVesting": { + "name": "vesting-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/vesting-v1-optimism-sepolia/prod/gn" + }, + "subgraphFlowScheduler": { + "name": "scheduling-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/scheduling-v1-optimism-sepolia/prod/gn" + }, + "subgraphAutoWrap": { + "name": "auto-wrap-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/auto-wrap-v1-optimism-sepolia/prod/gn" + }, "publicRPCs": [ "https://sepolia.optimism.io" ], @@ -714,6 +668,12 @@ export default "superfluidLoader": "0x9F9EEd9Bbc38E9e0514fD9dFcc0Bca9869A9c534", "toga": "0xA87F76e99f6C8Ff8996d14f550ceF47f193D9A09", "batchLiquidator": "0x889ebeCaD5F8C34Fd96023456d0fC5cE54eb74Cb", + "flowScheduler": "0xC72CEd15204d02183c83fEbb918b183E400811Ee", + "vestingScheduler": "0xDF92D0E6Bcb9385FDe99aD21Ff5e47Fb47E3c6b2", + "autowrap": { + "manager": "0x5D0acD0864Ad07ba4E1E0474AE69Da87482e14A9", + "wrapStrategy": "0xB29005319B0caB24cF6D4d24e8420E54BB29Cb0d" + }, "existentialNFTCloneFactory": "0x642332562BC60a4Bd9681E7bb1588f7456A497aC" }, "startBlockV1": 1000000, @@ -723,6 +683,18 @@ export default "cliName": "base", "name": "protocol-v1-base-mainnet" }, + "subgraphVesting": { + "name": "vesting-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/vesting-v1-base-mainnet/prod/gn" + }, + "subgraphFlowScheduler": { + "name": "scheduling-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/scheduling-v1-base-mainnet/prod/gn" + }, + "subgraphAutoWrap": { + "name": "auto-wrap-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/auto-wrap-v1-base-mainnet/prod/gn" + }, "publicRPCs": ["https://developer-access-mainnet.base.org"], "coinGeckoId": "base" }, diff --git a/packages/metadata/networks.json b/packages/metadata/networks.json index ad7e18e2e6..9fd5197183 100644 --- a/packages/metadata/networks.json +++ b/packages/metadata/networks.json @@ -1,68 +1,4 @@ [ - { - "name": "polygon-mumbai", - "isTestnet": true, - "networkId": 80001, - "chainId": 80001, - "sfId": 102, - "shortName": "mumbai", - "uppercaseName": "POLYGON_MUMBAI", - "humanReadableName": "Polygon Mumbai", - "nativeTokenSymbol": "MATIC", - "nativeTokenWrapper": "0x96B82B65ACF7072eFEb00502F45757F254c2a0D4", - "contractsV1": { - "resolver": "0x2feFd8B23e4770B674b0d2fAda5EE8a2bE0B525F", - "host": "0xEB796bdb90fFA0f28255275e16936D25d3418603", - "cfaV1": "0x49e565Ed1bdc17F3d220f72DF0857C26FA83F873", - "cfaV1Forwarder": "0xcfA132E353cB4E398080B9700609bb008eceB125", - "idaV1": "0x804348D4960a61f2d5F9ce9103027A3E849E09b8", - "gdaV1": "0x63ab406B6eF6c8be732c1edbd15464de16a8F46D", - "gdaV1Forwarder": "0x6DA13Bde224A05a288748d857b9e7DDEffd1dE08", - "superTokenFactory": "0xB798553db6EB3D3C56912378409370145E97324B", - "constantOutflowNFT": "0x502CC982947216C0f94e433BC78c413806301C07", - "constantInflowNFT": "0x9906A7e948C642B6bc74b9A5EAfCddB3580b44e0", - "superfluidLoader": "0xFcc617a382988a6d081B1821c8d17C47DFF9EDE1", - "toga": "0x38DD80876DBA048d0050D28828522c313967D073", - "superSpreader": "0x74CDF863b00789c29734F8dFd9F83423Bc55E4cE", - "flowScheduler": "0x59A3Ba9d34c387FB70b4f4e4Fbc9eD7519194139", - "vestingScheduler": "0x3962EE56c9f7176215D149938BA685F91aBB633B", - "autowrap": { - "manager": "0x3eAB3c6207F488E475b7955B631B564F0E6317B9", - "wrapStrategy": "0x544728AFDBeEafBeC9e1329031788edb53017bC4" - }, - "existentialNFTCloneFactory": "0xfC4E49AfcDDDcc2B90794DC214cc324d17B15619" - }, - "startBlockV1": 8100000, - "logsQueryRange": 10000, - "explorer": "https://mumbai.polygonscan.com", - "subgraphV1": { - "cliName": "mumbai", - "name": "protocol-v1-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-mumbai" - }, - "subgraphVesting": { - "name": "vesting-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-polygon-mumbai" - }, - "subgraphFlowScheduler": { - "name": "scheduling-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-polygon-mumbai" - }, - "subgraphAutoWrap": { - "name": "auto-wrap-v1-polygon-mumbai", - "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-polygon-mumbai" - }, - "publicRPCs": [ - "https://rpc.ankr.com/polygon_mumbai", - "https://matic-mumbai.chainstacklabs.com" - ], - "trustedForwarders": [ - "0x9399bb24dbb5c4b782c70c2969f58716ebbd6a3b", - "0x69015912AA33720b842dCD6aC059Ed623F28d9f7", - "0xb539068872230f20456CF38EC52EF2f91AF4AE49", - "0xd8253782c45a12053594b9deB72d8e8aB2Fca54c" - ] - }, { "name": "avalanche-fuji", "isTestnet": true, @@ -170,6 +106,12 @@ "superTokenFactory": "0xfcF0489488397332579f35b0F711BE570Da0E8f5", "constantOutflowNFT": "0xda6db863cb2EE39b196edB8159c38A1ed5c55344", "constantInflowNFT": "0x87E00Dced5670e01BEe33a9a724B1dac790937eF", + "flowScheduler": "0x73B1Ce21d03ad389C2A291B1d1dc4DAFE7B5Dc68", + "vestingScheduler": "0x27444c0235a4D921F3106475faeba0B5e7ABDD7a", + "autowrap": { + "manager": "0xe567b32C10B0dB72d9490eB1B9A409C5ADed192C", + "wrapStrategy": "0xf232f1fd34CE12e24F4391865c2D6E374D2C34d9" + }, "superfluidLoader": "0x109412E3C84f0539b43d39dB691B08c90f58dC7c" }, "startBlockV1": 6886559, @@ -180,6 +122,18 @@ "name": "protocol-v1-optimism-sepolia", "hostedEndpoint": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-sepolia" }, + "subgraphVesting": { + "name": "vesting-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/vesting-v1-optimism-sepolia/prod/gn" + }, + "subgraphFlowScheduler": { + "name": "scheduling-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/scheduling-v1-optimism-sepolia/prod/gn" + }, + "subgraphAutoWrap": { + "name": "auto-wrap-v1-optimism-sepolia", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/auto-wrap-v1-optimism-sepolia/prod/gn" + }, "publicRPCs": [ "https://sepolia.optimism.io" ], @@ -712,6 +666,12 @@ "superfluidLoader": "0x9F9EEd9Bbc38E9e0514fD9dFcc0Bca9869A9c534", "toga": "0xA87F76e99f6C8Ff8996d14f550ceF47f193D9A09", "batchLiquidator": "0x889ebeCaD5F8C34Fd96023456d0fC5cE54eb74Cb", + "flowScheduler": "0xC72CEd15204d02183c83fEbb918b183E400811Ee", + "vestingScheduler": "0xDF92D0E6Bcb9385FDe99aD21Ff5e47Fb47E3c6b2", + "autowrap": { + "manager": "0x5D0acD0864Ad07ba4E1E0474AE69Da87482e14A9", + "wrapStrategy": "0xB29005319B0caB24cF6D4d24e8420E54BB29Cb0d" + }, "existentialNFTCloneFactory": "0x642332562BC60a4Bd9681E7bb1588f7456A497aC" }, "startBlockV1": 1000000, @@ -721,6 +681,18 @@ "cliName": "base", "name": "protocol-v1-base-mainnet" }, + "subgraphVesting": { + "name": "vesting-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/vesting-v1-base-mainnet/prod/gn" + }, + "subgraphFlowScheduler": { + "name": "scheduling-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/scheduling-v1-base-mainnet/prod/gn" + }, + "subgraphAutoWrap": { + "name": "auto-wrap-v1-base-mainnet", + "hostedEndpoint": "https://api.goldsky.com/api/public/project_clsnd6xsoma5j012qepvucfpp/subgraphs/auto-wrap-v1-base-mainnet/prod/gn" + }, "publicRPCs": ["https://developer-access-mainnet.base.org"], "coinGeckoId": "base" }, diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 61c3b34ac7..f2e2b5bf28 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@superfluid-finance/metadata", - "version": "1.2.0", + "version": "1.2.1", "description": "Superfluid Metadata", "main": "main/index.cjs", "module": "module/index.js", From 59ded82f9a83811b2363368632cc3ba3e2c71c99 Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Wed, 1 May 2024 12:30:40 +0300 Subject: [PATCH 5/6] [sdk-core][sdk-redux][chore] bump minor version instead, make subgraph test non-blocking for release draft (#1938) * test v1 subgraph schema against self-hosted subgraph * bump minor version instead in caution of a breaking change * remove the requirement of subgraph tests succeeding for a release draft --- .../workflows/cd.packages-stable.create-release-drafts.yml | 2 -- packages/sdk-core/CHANGELOG.md | 2 +- packages/sdk-core/package.json | 2 +- packages/sdk-core/tasks/testSchemasAndQueries.sh | 7 ++++++- packages/sdk-redux/CHANGELOG.md | 2 +- packages/sdk-redux/package.json | 4 ++-- packages/subgraph/package.json | 2 +- 7 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cd.packages-stable.create-release-drafts.yml b/.github/workflows/cd.packages-stable.create-release-drafts.yml index b54f59507f..a5cef1878d 100644 --- a/.github/workflows/cd.packages-stable.create-release-drafts.yml +++ b/.github/workflows/cd.packages-stable.create-release-drafts.yml @@ -163,8 +163,6 @@ jobs: needs: [ check-sdk-core-version, - test-sdk-core-query-schema-against-deployed-v1-subgraphs, - test-sdk-core-with-v1-release-subgraph, ] permissions: write-all diff --git a/packages/sdk-core/CHANGELOG.md b/packages/sdk-core/CHANGELOG.md index c4bb84b7fe..355c13d20d 100644 --- a/packages/sdk-core/CHANGELOG.md +++ b/packages/sdk-core/CHANGELOG.md @@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Changed ### Fixed -## [0.6.13] - 2023-04-30 +## [0.7.0] - 2023-05-01 ### Added diff --git a/packages/sdk-core/package.json b/packages/sdk-core/package.json index 689287748c..477107b9a7 100644 --- a/packages/sdk-core/package.json +++ b/packages/sdk-core/package.json @@ -1,6 +1,6 @@ { "name": "@superfluid-finance/sdk-core", - "version": "0.6.13", + "version": "0.7.0", "description": "SDK Core for building with Superfluid Protocol", "homepage": "https://github.com/superfluid-finance/protocol-monorepo/tree/dev/packages/sdk-core#readme", "repository": { diff --git a/packages/sdk-core/tasks/testSchemasAndQueries.sh b/packages/sdk-core/tasks/testSchemasAndQueries.sh index 69e33841d9..2b8c64cc6f 100755 --- a/packages/sdk-core/tasks/testSchemasAndQueries.sh +++ b/packages/sdk-core/tasks/testSchemasAndQueries.sh @@ -33,7 +33,12 @@ for i in "${NETWORKS[@]}";do GRAPH_NETWORK="${LEGACY_NETWORK_NAMES[$i]:-$i}" - SUBGRAPH_ENDPOINT=https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-$SUBGRAPH_RELEASE_TAG-$GRAPH_NETWORK + if [ "$SUBGRAPH_RELEASE_TAG" == "v1" ]; then + # No need for the legacy name here + SUBGRAPH_ENDPOINT="https://${NETWORKS[$i]}.subgraph.x.superfluid.dev" + else + SUBGRAPH_ENDPOINT="https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-$SUBGRAPH_RELEASE_TAG-$GRAPH_NETWORK" + fi testSchemaAndQueries diff --git a/packages/sdk-redux/CHANGELOG.md b/packages/sdk-redux/CHANGELOG.md index a89d1ad3e9..cb3e71513f 100644 --- a/packages/sdk-redux/CHANGELOG.md +++ b/packages/sdk-redux/CHANGELOG.md @@ -7,7 +7,7 @@ All notable changes to the SDK-redux will be documented in this file. ### Changed ### Fixed -## [0.5.2] - 2023-04-30 +## [0.6.0] - 2023-05-01 ### Changed diff --git a/packages/sdk-redux/package.json b/packages/sdk-redux/package.json index 3e01f4335a..2430bca178 100644 --- a/packages/sdk-redux/package.json +++ b/packages/sdk-redux/package.json @@ -1,6 +1,6 @@ { "name": "@superfluid-finance/sdk-redux", - "version": "0.5.2", + "version": "0.6.0", "description": "SDK Redux for streamlined front-end application development with Superfluid Protocol", "homepage": "https://docs.superfluid.finance/", "repository": { @@ -52,7 +52,7 @@ }, "peerDependencies": { "@reduxjs/toolkit": "^1.7.0 || ^1.8.0 || ^1.9.0", - "@superfluid-finance/sdk-core": "^0.6.13" + "@superfluid-finance/sdk-core": "^0.7.0" }, "files": [ "dist/main", diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 368d4a238f..04892a3577 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -52,7 +52,7 @@ "dependencies": { "@graphprotocol/graph-cli": "0.69.1", "@graphprotocol/graph-ts": "0.34.0", - "@superfluid-finance/sdk-core": "^0.6.13", + "@superfluid-finance/sdk-core": "^0.7.0", "mustache": "^4.2.0" }, "devDependencies": { From d791b50256ff1c7d2c61d915fc985a3fea7186b8 Mon Sep 17 00:00:00 2001 From: Momodu Afegbua Date: Wed, 1 May 2024 14:13:40 +0100 Subject: [PATCH 6/6] [METADATA] Base mainnet subgraphv1 endpoint (#1939) * added base subgraphv1 endpoint * bumped up version --- packages/metadata/CHANGELOG.md | 4 ++++ packages/metadata/networks.json | 3 ++- packages/metadata/package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/metadata/CHANGELOG.md b/packages/metadata/CHANGELOG.md index 213783a866..bd111817aa 100644 --- a/packages/metadata/CHANGELOG.md +++ b/packages/metadata/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to the metadata will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.2.2] +### Added +- Added Base v1 subgraph endpoint + ## [v1.2.1] ### Added - Added Base automation contracts diff --git a/packages/metadata/networks.json b/packages/metadata/networks.json index 9fd5197183..c4d538bab0 100644 --- a/packages/metadata/networks.json +++ b/packages/metadata/networks.json @@ -679,7 +679,8 @@ "explorer": "https://basescan.org", "subgraphV1": { "cliName": "base", - "name": "protocol-v1-base-mainnet" + "name": "protocol-v1-base-mainnet", + "satsumaEndpoint": "https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/base-mainnet/api" }, "subgraphVesting": { "name": "vesting-v1-base-mainnet", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index f2e2b5bf28..5b0fbec6d0 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@superfluid-finance/metadata", - "version": "1.2.1", + "version": "1.2.2", "description": "Superfluid Metadata", "main": "main/index.cjs", "module": "module/index.js",