From f240c93169371d11056a7eae56bacdfc75eb4494 Mon Sep 17 00:00:00 2001 From: "Simon.Z" Date: Mon, 21 Aug 2023 13:28:03 -0700 Subject: [PATCH 1/2] add meter/meterTestnet --- packages/chains/src/meter.ts | 22 ++++++++++++++++++++++ packages/chains/src/meterTestnet.ts | 23 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 packages/chains/src/meter.ts create mode 100644 packages/chains/src/meterTestnet.ts diff --git a/packages/chains/src/meter.ts b/packages/chains/src/meter.ts new file mode 100644 index 00000000..a1e2ced0 --- /dev/null +++ b/packages/chains/src/meter.ts @@ -0,0 +1,22 @@ +import { Chain } from './types' + +export const meter = { + id: 82, + name: 'Meter', + network: 'meter', + nativeCurrency: { + decimals: 18, + name: 'Meter Stable', + symbol: 'MTR', + }, + rpcUrls: { + default: { http: ['https://rpc.meter.io'] }, + public: { http: ['https://rpc.meter.io'] }, + }, + blockExplorers: { + etherscan: { name: 'MeterScan', url: 'https://scan.meter.io' }, + default: { name: 'MeterScan', url: 'https://scan.meter.io' }, + }, + contracts: { + }, +} as const satisfies Chain diff --git a/packages/chains/src/meterTestnet.ts b/packages/chains/src/meterTestnet.ts new file mode 100644 index 00000000..10c5a95a --- /dev/null +++ b/packages/chains/src/meterTestnet.ts @@ -0,0 +1,23 @@ +import { Chain } from './types' + +export const meterTestnet = { + id: 83, + name: 'Meter Testnet', + network: 'meterTestnet', + nativeCurrency: { + decimals: 18, + name: 'Meter Stable', + symbol: 'MTR', + }, + rpcUrls: { + default: { http: ['https://rpctest.meter.io'] }, + public: { http: ['https://rpctest.meter.io'] }, + }, + blockExplorers: { + etherscan: { name: 'MeterScan', url: 'https://scan-warringstakes.meter.io' }, + default: { name: 'MeterScan', url: 'https://scan-warringstakes.meter.io' }, + }, + contracts: { + }, + testnet:true +} as const satisfies Chain From 7bc904ce4152333108bbc709e2f8f5d2e15ebac8 Mon Sep 17 00:00:00 2001 From: "Simon.Z" Date: Mon, 21 Aug 2023 13:32:41 -0700 Subject: [PATCH 2/2] add trailing comma --- packages/chains/src/meterTestnet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chains/src/meterTestnet.ts b/packages/chains/src/meterTestnet.ts index 10c5a95a..66fa7e6f 100644 --- a/packages/chains/src/meterTestnet.ts +++ b/packages/chains/src/meterTestnet.ts @@ -19,5 +19,5 @@ export const meterTestnet = { }, contracts: { }, - testnet:true + testnet:true, } as const satisfies Chain