From ef71ac4a9d02b8ac1c324796cb716c5f57a1fb15 Mon Sep 17 00:00:00 2001 From: Miao ZhiCheng Date: Mon, 19 Feb 2024 12:27:42 +0200 Subject: [PATCH] Add "duneName" field to network.json (#1829) (#1831) * Add "duneName" field to network.json (#1829) * Update networks.json to include dune network name * remove "dunename" for unavailable networks * Bump version of package.json * [metadata] build --------- Co-authored-by: leopk-code <67122519+leopk-code@users.noreply.github.com> --- packages/metadata/main/networks/list.cjs | 11 +++++++++++ packages/metadata/module/networks/list.js | 11 +++++++++++ packages/metadata/networks.json | 11 +++++++++++ packages/metadata/package.json | 2 +- 4 files changed, 34 insertions(+), 1 deletion(-) diff --git a/packages/metadata/main/networks/list.cjs b/packages/metadata/main/networks/list.cjs index 65ed0caa85..a67436e1f3 100644 --- a/packages/metadata/main/networks/list.cjs +++ b/packages/metadata/main/networks/list.cjs @@ -12,6 +12,7 @@ module.exports = "humanReadableName": "Goerli", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x5943f705abb6834cad767e6e4bb258bc48d9c947", + "duneName": "goerli", "contractsV1": { "resolver": "0x071077b24943D4DC09a6A57B8aFfE2BdE9bD4B89", "host": "0x22ff293e14F1EC3A09B137e9e06084AFd63adDF9", @@ -460,6 +461,7 @@ module.exports = "humanReadableName": "Gnosis Chain", "nativeTokenSymbol": "xDAI", "nativeTokenWrapper": "0x59988e47A3503AaFaA0368b9deF095c818Fdca01", + "duneName": "gnosis", "contractsV1": { "resolver": "0x9634Fa35188C59DD3B0ADa0Dd9adD7e4ECefc0a9", "host": "0x2dFe937cD98Ab92e59cF3139138f18c823a4efE7", @@ -523,6 +525,7 @@ module.exports = "humanReadableName": "Polygon", "nativeTokenSymbol": "MATIC", "nativeTokenWrapper": "0x3aD736904E9e65189c3000c7DD2c8AC8bB7cD4e3", + "duneName": "polygon", "contractsV1": { "resolver": "0x8bDCb5613153f41B2856F71Bd7A7e0432F6dbe58", "host": "0x3E14dC1b13c488a8d5D310918780c983bD5982E7", @@ -584,6 +587,7 @@ module.exports = "humanReadableName": "Optimism", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x4ac8bD1bDaE47beeF2D1c6Aa62229509b962Aa0d", + "duneName": "optimism", "contractsV1": { "resolver": "0x743B5f46BC86caF41bE4956d9275721E0531B186", "host": "0x567c4B141ED61923967cA25Ef4906C8781069a10", @@ -644,6 +648,7 @@ module.exports = "humanReadableName": "Arbitrum One", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0xe6C8d111337D0052b9D88BF5d7D55B7f8385ACd3", + "duneName": "arbitrum", "contractsV1": { "resolver": "0x609b9d9d6Ee9C3200745A79B9d3398DBd63d509F", "host": "0xCf8Acb4eF033efF16E8080aed4c7D5B9285D2192", @@ -704,6 +709,7 @@ module.exports = "humanReadableName": "Avalanche C", "nativeTokenSymbol": "AVAX", "nativeTokenWrapper": "0xBE916845D8678b5d2F7aD79525A62D7c08ABba7e", + "duneName": "avalanche_c", "contractsV1": { "resolver": "0x24a3F04F70B7f07B9673EadD3e146391BcfEa5c1", "host": "0x60377C7016E4cdB03C87EF474896C11cB560752C", @@ -764,6 +770,7 @@ module.exports = "humanReadableName": "BNB Smart Chain", "nativeTokenSymbol": "BNB", "nativeTokenWrapper": "0x529A4116F160c833c61311569D6B33dFF41fD657", + "duneName": "bnb", "contractsV1": { "resolver": "0x69604aA4e9e8BF44A73C680997205Edb03A92E41", "host": "0xd1e2cFb6441680002Eb7A44223160aB9B67d7E6E", @@ -824,6 +831,7 @@ module.exports = "humanReadableName": "Ethereum", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0xC22BeA0Be9872d8B7B3933CEc70Ece4D53A900da", + "duneName": "ethereum", "contractsV1": { "resolver": "0xeE4cD028f5fdaAdeA99f8fc38e8bA8A57c90Be53", "host": "0x4E583d9390082B65Bef884b629DFA426114CED6d", @@ -880,6 +888,7 @@ module.exports = "humanReadableName": "Celo", "nativeTokenSymbol": "CELO", "nativeTokenWrapper": "0x671425Ae1f272Bc6F79beC3ed5C4b00e9c628240", + "duneName": "celo", "contractsV1": { "resolver": "0x05eE721BD4D803d6d477Aa7607395452B65373FF", "host": "0xA4Ff07cF81C02CFD356184879D953970cA957585", @@ -919,6 +928,7 @@ module.exports = "humanReadableName": "Base", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x46fd5cfB4c12D87acD3a13e92BAa53240C661D93", + "duneName": "base", "contractsV1": { "resolver": "0x6a214c324553F96F04eFBDd66908685525Da0E0d", "host": "0x4C073B3baB6d8826b8C5b229f3cfdC1eC6E47E74", @@ -957,6 +967,7 @@ module.exports = "humanReadableName": "Scroll", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x483C1716b6133cdA01237ebBF19c5a92898204B7", + "duneName": "scroll", "contractsV1": { "resolver": "0xb25a19c0e7d10c8D37E5b63Ed3213b67f7ebfF80", "host": "0x0F86a21F6216c061B222c224e315d9FC34520bb7", diff --git a/packages/metadata/module/networks/list.js b/packages/metadata/module/networks/list.js index 048933cfa9..323f691e39 100644 --- a/packages/metadata/module/networks/list.js +++ b/packages/metadata/module/networks/list.js @@ -12,6 +12,7 @@ export default "humanReadableName": "Goerli", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x5943f705abb6834cad767e6e4bb258bc48d9c947", + "duneName": "goerli", "contractsV1": { "resolver": "0x071077b24943D4DC09a6A57B8aFfE2BdE9bD4B89", "host": "0x22ff293e14F1EC3A09B137e9e06084AFd63adDF9", @@ -460,6 +461,7 @@ export default "humanReadableName": "Gnosis Chain", "nativeTokenSymbol": "xDAI", "nativeTokenWrapper": "0x59988e47A3503AaFaA0368b9deF095c818Fdca01", + "duneName": "gnosis", "contractsV1": { "resolver": "0x9634Fa35188C59DD3B0ADa0Dd9adD7e4ECefc0a9", "host": "0x2dFe937cD98Ab92e59cF3139138f18c823a4efE7", @@ -523,6 +525,7 @@ export default "humanReadableName": "Polygon", "nativeTokenSymbol": "MATIC", "nativeTokenWrapper": "0x3aD736904E9e65189c3000c7DD2c8AC8bB7cD4e3", + "duneName": "polygon", "contractsV1": { "resolver": "0x8bDCb5613153f41B2856F71Bd7A7e0432F6dbe58", "host": "0x3E14dC1b13c488a8d5D310918780c983bD5982E7", @@ -584,6 +587,7 @@ export default "humanReadableName": "Optimism", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x4ac8bD1bDaE47beeF2D1c6Aa62229509b962Aa0d", + "duneName": "optimism", "contractsV1": { "resolver": "0x743B5f46BC86caF41bE4956d9275721E0531B186", "host": "0x567c4B141ED61923967cA25Ef4906C8781069a10", @@ -644,6 +648,7 @@ export default "humanReadableName": "Arbitrum One", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0xe6C8d111337D0052b9D88BF5d7D55B7f8385ACd3", + "duneName": "arbitrum", "contractsV1": { "resolver": "0x609b9d9d6Ee9C3200745A79B9d3398DBd63d509F", "host": "0xCf8Acb4eF033efF16E8080aed4c7D5B9285D2192", @@ -704,6 +709,7 @@ export default "humanReadableName": "Avalanche C", "nativeTokenSymbol": "AVAX", "nativeTokenWrapper": "0xBE916845D8678b5d2F7aD79525A62D7c08ABba7e", + "duneName": "avalanche_c", "contractsV1": { "resolver": "0x24a3F04F70B7f07B9673EadD3e146391BcfEa5c1", "host": "0x60377C7016E4cdB03C87EF474896C11cB560752C", @@ -764,6 +770,7 @@ export default "humanReadableName": "BNB Smart Chain", "nativeTokenSymbol": "BNB", "nativeTokenWrapper": "0x529A4116F160c833c61311569D6B33dFF41fD657", + "duneName": "bnb", "contractsV1": { "resolver": "0x69604aA4e9e8BF44A73C680997205Edb03A92E41", "host": "0xd1e2cFb6441680002Eb7A44223160aB9B67d7E6E", @@ -824,6 +831,7 @@ export default "humanReadableName": "Ethereum", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0xC22BeA0Be9872d8B7B3933CEc70Ece4D53A900da", + "duneName": "ethereum", "contractsV1": { "resolver": "0xeE4cD028f5fdaAdeA99f8fc38e8bA8A57c90Be53", "host": "0x4E583d9390082B65Bef884b629DFA426114CED6d", @@ -880,6 +888,7 @@ export default "humanReadableName": "Celo", "nativeTokenSymbol": "CELO", "nativeTokenWrapper": "0x671425Ae1f272Bc6F79beC3ed5C4b00e9c628240", + "duneName": "celo", "contractsV1": { "resolver": "0x05eE721BD4D803d6d477Aa7607395452B65373FF", "host": "0xA4Ff07cF81C02CFD356184879D953970cA957585", @@ -919,6 +928,7 @@ export default "humanReadableName": "Base", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x46fd5cfB4c12D87acD3a13e92BAa53240C661D93", + "duneName": "base", "contractsV1": { "resolver": "0x6a214c324553F96F04eFBDd66908685525Da0E0d", "host": "0x4C073B3baB6d8826b8C5b229f3cfdC1eC6E47E74", @@ -957,6 +967,7 @@ export default "humanReadableName": "Scroll", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x483C1716b6133cdA01237ebBF19c5a92898204B7", + "duneName": "scroll", "contractsV1": { "resolver": "0xb25a19c0e7d10c8D37E5b63Ed3213b67f7ebfF80", "host": "0x0F86a21F6216c061B222c224e315d9FC34520bb7", diff --git a/packages/metadata/networks.json b/packages/metadata/networks.json index eaac68d204..b0ab97332a 100644 --- a/packages/metadata/networks.json +++ b/packages/metadata/networks.json @@ -10,6 +10,7 @@ "humanReadableName": "Goerli", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x5943f705abb6834cad767e6e4bb258bc48d9c947", + "duneName": "goerli", "contractsV1": { "resolver": "0x071077b24943D4DC09a6A57B8aFfE2BdE9bD4B89", "host": "0x22ff293e14F1EC3A09B137e9e06084AFd63adDF9", @@ -458,6 +459,7 @@ "humanReadableName": "Gnosis Chain", "nativeTokenSymbol": "xDAI", "nativeTokenWrapper": "0x59988e47A3503AaFaA0368b9deF095c818Fdca01", + "duneName": "gnosis", "contractsV1": { "resolver": "0x9634Fa35188C59DD3B0ADa0Dd9adD7e4ECefc0a9", "host": "0x2dFe937cD98Ab92e59cF3139138f18c823a4efE7", @@ -521,6 +523,7 @@ "humanReadableName": "Polygon", "nativeTokenSymbol": "MATIC", "nativeTokenWrapper": "0x3aD736904E9e65189c3000c7DD2c8AC8bB7cD4e3", + "duneName": "polygon", "contractsV1": { "resolver": "0x8bDCb5613153f41B2856F71Bd7A7e0432F6dbe58", "host": "0x3E14dC1b13c488a8d5D310918780c983bD5982E7", @@ -582,6 +585,7 @@ "humanReadableName": "Optimism", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x4ac8bD1bDaE47beeF2D1c6Aa62229509b962Aa0d", + "duneName": "optimism", "contractsV1": { "resolver": "0x743B5f46BC86caF41bE4956d9275721E0531B186", "host": "0x567c4B141ED61923967cA25Ef4906C8781069a10", @@ -642,6 +646,7 @@ "humanReadableName": "Arbitrum One", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0xe6C8d111337D0052b9D88BF5d7D55B7f8385ACd3", + "duneName": "arbitrum", "contractsV1": { "resolver": "0x609b9d9d6Ee9C3200745A79B9d3398DBd63d509F", "host": "0xCf8Acb4eF033efF16E8080aed4c7D5B9285D2192", @@ -702,6 +707,7 @@ "humanReadableName": "Avalanche C", "nativeTokenSymbol": "AVAX", "nativeTokenWrapper": "0xBE916845D8678b5d2F7aD79525A62D7c08ABba7e", + "duneName": "avalanche_c", "contractsV1": { "resolver": "0x24a3F04F70B7f07B9673EadD3e146391BcfEa5c1", "host": "0x60377C7016E4cdB03C87EF474896C11cB560752C", @@ -762,6 +768,7 @@ "humanReadableName": "BNB Smart Chain", "nativeTokenSymbol": "BNB", "nativeTokenWrapper": "0x529A4116F160c833c61311569D6B33dFF41fD657", + "duneName": "bnb", "contractsV1": { "resolver": "0x69604aA4e9e8BF44A73C680997205Edb03A92E41", "host": "0xd1e2cFb6441680002Eb7A44223160aB9B67d7E6E", @@ -822,6 +829,7 @@ "humanReadableName": "Ethereum", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0xC22BeA0Be9872d8B7B3933CEc70Ece4D53A900da", + "duneName": "ethereum", "contractsV1": { "resolver": "0xeE4cD028f5fdaAdeA99f8fc38e8bA8A57c90Be53", "host": "0x4E583d9390082B65Bef884b629DFA426114CED6d", @@ -878,6 +886,7 @@ "humanReadableName": "Celo", "nativeTokenSymbol": "CELO", "nativeTokenWrapper": "0x671425Ae1f272Bc6F79beC3ed5C4b00e9c628240", + "duneName": "celo", "contractsV1": { "resolver": "0x05eE721BD4D803d6d477Aa7607395452B65373FF", "host": "0xA4Ff07cF81C02CFD356184879D953970cA957585", @@ -917,6 +926,7 @@ "humanReadableName": "Base", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x46fd5cfB4c12D87acD3a13e92BAa53240C661D93", + "duneName": "base", "contractsV1": { "resolver": "0x6a214c324553F96F04eFBDd66908685525Da0E0d", "host": "0x4C073B3baB6d8826b8C5b229f3cfdC1eC6E47E74", @@ -955,6 +965,7 @@ "humanReadableName": "Scroll", "nativeTokenSymbol": "ETH", "nativeTokenWrapper": "0x483C1716b6133cdA01237ebBF19c5a92898204B7", + "duneName": "scroll", "contractsV1": { "resolver": "0xb25a19c0e7d10c8D37E5b63Ed3213b67f7ebfF80", "host": "0x0F86a21F6216c061B222c224e315d9FC34520bb7", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 41e2c31c51..bbdc3e24a6 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@superfluid-finance/metadata", - "version": "1.1.27", + "version": "1.1.28", "description": "Superfluid Metadata", "main": "main/index.cjs", "module": "module/index.js",