From a1235b88f9ad6735737c6d6427cdb7233d2c7972 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Thu, 29 Aug 2024 16:42:29 -0500 Subject: [PATCH 1/7] remove previewnet --- src/chains/definitions/flowPreviewnet.ts | 28 ------------------------ src/chains/index.ts | 1 - 2 files changed, 29 deletions(-) delete mode 100644 src/chains/definitions/flowPreviewnet.ts diff --git a/src/chains/definitions/flowPreviewnet.ts b/src/chains/definitions/flowPreviewnet.ts deleted file mode 100644 index 85977f6f32..0000000000 --- a/src/chains/definitions/flowPreviewnet.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defineChain } from '../../utils/chain/defineChain.js' - -export const flowPreviewnet = /*#__PURE__*/ defineChain({ - id: 646, - name: 'FlowEVM Previewnet', - nativeCurrency: { - decimals: 18, - name: 'Flow', - symbol: 'FLOW', - }, - rpcUrls: { - default: { - http: ['https://previewnet.evm.nodes.onflow.org'], - }, - }, - blockExplorers: { - default: { - name: 'Previewnet Explorer', - url: 'https://previewnet.flowdiver.io', - }, - }, - contracts: { - multicall3: { - address: '0xca11bde05977b3631167028862be2a173976ca11', - blockCreated: 6205, - }, - }, -}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 061d826364..f18cd39b4e 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -108,7 +108,6 @@ export { filecoinCalibration } from './definitions/filecoinCalibration.js' export { filecoinHyperspace } from './definitions/filecoinHyperspace.js' export { flare } from './definitions/flare.js' export { flareTestnet } from './definitions/flareTestnet.js' -export { flowPreviewnet } from './definitions/flowPreviewnet.js' export { flowMainnet } from './definitions/flowMainnet.js' export { flowTestnet } from './definitions/flowTestnet.js' export { forma } from './definitions/forma.js' From c18052e23394cacc93727bf5adc954aa99bc82e3 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Thu, 29 Aug 2024 16:52:25 -0500 Subject: [PATCH 2/7] add changeset --- .changeset/pink-donuts-agree.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/pink-donuts-agree.md diff --git a/.changeset/pink-donuts-agree.md b/.changeset/pink-donuts-agree.md new file mode 100644 index 0000000000..a26fce4a7b --- /dev/null +++ b/.changeset/pink-donuts-agree.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Remove Flow Previewnet From 807e033e92563e8ce6d1379fd46543af395f8a75 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Fri, 30 Aug 2024 09:37:06 -0500 Subject: [PATCH 3/7] Update src/chains/index.ts Co-authored-by: jxom --- src/chains/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chains/index.ts b/src/chains/index.ts index f18cd39b4e..c348c8d702 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -108,6 +108,8 @@ export { filecoinCalibration } from './definitions/filecoinCalibration.js' export { filecoinHyperspace } from './definitions/filecoinHyperspace.js' export { flare } from './definitions/flare.js' export { flareTestnet } from './definitions/flareTestnet.js' +/** @deprecated Use +export { flowPreviewnet } from './definitions/flowPreviewnet.js' export { flowMainnet } from './definitions/flowMainnet.js' export { flowTestnet } from './definitions/flowTestnet.js' export { forma } from './definitions/forma.js' From 4011a9878871b40d26ef8e75f9609840ab185c54 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Tue, 3 Sep 2024 09:50:30 -0500 Subject: [PATCH 4/7] Update src/chains/index.ts Co-authored-by: jxom --- src/chains/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chains/index.ts b/src/chains/index.ts index c348c8d702..e77dcc7524 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -108,7 +108,7 @@ export { filecoinCalibration } from './definitions/filecoinCalibration.js' export { filecoinHyperspace } from './definitions/filecoinHyperspace.js' export { flare } from './definitions/flare.js' export { flareTestnet } from './definitions/flareTestnet.js' -/** @deprecated Use +/** @deprecated */ export { flowPreviewnet } from './definitions/flowPreviewnet.js' export { flowMainnet } from './definitions/flowMainnet.js' export { flowTestnet } from './definitions/flowTestnet.js' From b1e3dcb4711e58f3c821867d07c6fe40ed255a39 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Tue, 3 Sep 2024 10:09:51 -0500 Subject: [PATCH 5/7] restore the file, needs to be deprecated before removed in major release --- src/chains/definitions/flowPreviewnet.ts | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/chains/definitions/flowPreviewnet.ts diff --git a/src/chains/definitions/flowPreviewnet.ts b/src/chains/definitions/flowPreviewnet.ts new file mode 100644 index 0000000000..85977f6f32 --- /dev/null +++ b/src/chains/definitions/flowPreviewnet.ts @@ -0,0 +1,28 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const flowPreviewnet = /*#__PURE__*/ defineChain({ + id: 646, + name: 'FlowEVM Previewnet', + nativeCurrency: { + decimals: 18, + name: 'Flow', + symbol: 'FLOW', + }, + rpcUrls: { + default: { + http: ['https://previewnet.evm.nodes.onflow.org'], + }, + }, + blockExplorers: { + default: { + name: 'Previewnet Explorer', + url: 'https://previewnet.flowdiver.io', + }, + }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 6205, + }, + }, +}) From 7bde1f2ad03d83efafac8f9253d95d270d78d6e4 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Tue, 3 Sep 2024 10:12:45 -0500 Subject: [PATCH 6/7] linting --- src/chains/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chains/index.ts b/src/chains/index.ts index e77dcc7524..deea68fd13 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -108,7 +108,7 @@ export { filecoinCalibration } from './definitions/filecoinCalibration.js' export { filecoinHyperspace } from './definitions/filecoinHyperspace.js' export { flare } from './definitions/flare.js' export { flareTestnet } from './definitions/flareTestnet.js' -/** @deprecated */ +/** @deprecated */ export { flowPreviewnet } from './definitions/flowPreviewnet.js' export { flowMainnet } from './definitions/flowMainnet.js' export { flowTestnet } from './definitions/flowTestnet.js' From 1a9ef564c4fe9ebde5e4f76f18143bec3c5cc502 Mon Sep 17 00:00:00 2001 From: jxom Date: Wed, 4 Sep 2024 16:28:30 +1000 Subject: [PATCH 7/7] Update pink-donuts-agree.md --- .changeset/pink-donuts-agree.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/pink-donuts-agree.md b/.changeset/pink-donuts-agree.md index a26fce4a7b..8fbc21196a 100644 --- a/.changeset/pink-donuts-agree.md +++ b/.changeset/pink-donuts-agree.md @@ -2,4 +2,4 @@ "viem": patch --- -Remove Flow Previewnet +Deprecated Flow Previewnet.