From dc9646ba88a2799526f570f7ba2c0138ed42c34b Mon Sep 17 00:00:00 2001 From: Rodion Kharabet Date: Thu, 21 Nov 2024 18:28:45 +0200 Subject: [PATCH 1/5] Added Guru Network mainnet --- pnpm-lock.yaml | 4 ++-- src/chains/definitions/guruTestnet.ts | 2 +- src/chains/definitions/gurunetwork.ts | 29 +++++++++++++++++++++++++++ src/chains/index.ts | 1 + 4 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 src/chains/definitions/gurunetwork.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a981b0c7cd..43a774bcba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -53,7 +53,7 @@ importers: version: 20.16.12 '@vitest/coverage-v8': specifier: ^1.0.4 - version: 1.0.4(vitest@1.0.4) + version: 1.0.4(vitest@1.0.4(@types/node@20.16.12)(@vitest/ui@1.0.4)(terser@5.36.0)) '@vitest/ui': specifier: ^1.0.4 version: 1.0.4(vitest@1.0.4) @@ -7585,7 +7585,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@1.0.4(vitest@1.0.4)': + '@vitest/coverage-v8@1.0.4(vitest@1.0.4(@types/node@20.16.12)(@vitest/ui@1.0.4)(terser@5.36.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 diff --git a/src/chains/definitions/guruTestnet.ts b/src/chains/definitions/guruTestnet.ts index e0e7e13455..5c66a4caf8 100644 --- a/src/chains/definitions/guruTestnet.ts +++ b/src/chains/definitions/guruTestnet.ts @@ -16,7 +16,7 @@ export const guruTestnet = /*#__PURE__*/ defineChain({ blockExplorers: { default: { name: 'Guruscan', - url: 'https://scan.gurunetwork.ai', + url: 'https://sepolia.gurunetwork.ai', }, }, testnet: true, diff --git a/src/chains/definitions/gurunetwork.ts b/src/chains/definitions/gurunetwork.ts new file mode 100644 index 0000000000..55398801c3 --- /dev/null +++ b/src/chains/definitions/gurunetwork.ts @@ -0,0 +1,29 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const gurunetwork = /*#__PURE__*/ defineChain({ + id: 260, + name: 'Guru Network Mainnet', + nativeCurrency: { + name: 'GURU', + symbol: 'GURU', + decimals: 18, + }, + rpcUrls: { + default: { + http: ['https://rpc.gurunetwork.ai/archive/260'], + }, + }, + blockExplorers: { + default: { + name: 'Guruscan', + url: 'https://scan.gurunetwork.ai', + }, + }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 271691, + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index c3dc9ca87d..5fc0daa60e 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -172,6 +172,7 @@ export { goChain } from './definitions/goChain.js' export { godwoken } from './definitions/godwoken.js' export { goerli } from './definitions/goerli.js' export { gravity } from './definitions/gravity.js' +export { gurunetwork } from './definitions/gurunetwork.js' export { guruTestnet } from './definitions/guruTestnet.js' export { ham } from './definitions/ham.js' export { haqqMainnet } from './definitions/haqqMainnet.js' From 12651128d5c2bbb8bb8e27dc707cac101209895b Mon Sep 17 00:00:00 2001 From: Rodion Kharabet Date: Thu, 21 Nov 2024 18:50:54 +0200 Subject: [PATCH 2/5] small update --- src/chains/definitions/guruTestnet.ts | 2 +- src/chains/definitions/gurunetwork.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chains/definitions/guruTestnet.ts b/src/chains/definitions/guruTestnet.ts index 5c66a4caf8..39155d5054 100644 --- a/src/chains/definitions/guruTestnet.ts +++ b/src/chains/definitions/guruTestnet.ts @@ -4,7 +4,7 @@ export const guruTestnet = /*#__PURE__*/ defineChain({ id: 261, name: 'Guru Network Testnet', nativeCurrency: { - name: 'testGURU', + name: 'tGURU Token', symbol: 'tGURU', decimals: 18, }, diff --git a/src/chains/definitions/gurunetwork.ts b/src/chains/definitions/gurunetwork.ts index 55398801c3..6590804d42 100644 --- a/src/chains/definitions/gurunetwork.ts +++ b/src/chains/definitions/gurunetwork.ts @@ -4,7 +4,7 @@ export const gurunetwork = /*#__PURE__*/ defineChain({ id: 260, name: 'Guru Network Mainnet', nativeCurrency: { - name: 'GURU', + name: 'GURU Token', symbol: 'GURU', decimals: 18, }, From 869b7e6037b6b23fbd346fa7634432d3d6cf16cf Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Fri, 22 Nov 2024 07:24:58 +1100 Subject: [PATCH 3/5] Update index.ts --- 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 5fc0daa60e..8ad7e6b42c 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -172,7 +172,7 @@ export { goChain } from './definitions/goChain.js' export { godwoken } from './definitions/godwoken.js' export { goerli } from './definitions/goerli.js' export { gravity } from './definitions/gravity.js' -export { gurunetwork } from './definitions/gurunetwork.js' +export { guruNetwork } from './definitions/guruNetwork.js' export { guruTestnet } from './definitions/guruTestnet.js' export { ham } from './definitions/ham.js' export { haqqMainnet } from './definitions/haqqMainnet.js' From 2db7c1e7a1f4ebe3fef99c49adccd62855976e50 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Fri, 22 Nov 2024 07:25:14 +1100 Subject: [PATCH 4/5] Update and rename gurunetwork.ts to guruNetwork.ts --- src/chains/definitions/{gurunetwork.ts => guruNetwork.ts} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/chains/definitions/{gurunetwork.ts => guruNetwork.ts} (91%) diff --git a/src/chains/definitions/gurunetwork.ts b/src/chains/definitions/guruNetwork.ts similarity index 91% rename from src/chains/definitions/gurunetwork.ts rename to src/chains/definitions/guruNetwork.ts index 6590804d42..7d70b099b4 100644 --- a/src/chains/definitions/gurunetwork.ts +++ b/src/chains/definitions/guruNetwork.ts @@ -1,6 +1,6 @@ import { defineChain } from '../../utils/chain/defineChain.js' -export const gurunetwork = /*#__PURE__*/ defineChain({ +export const guruNetwork = /*#__PURE__*/ defineChain({ id: 260, name: 'Guru Network Mainnet', nativeCurrency: { From 44bc9733fde9326bd26e2e83f4af9af0d84ece34 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Fri, 22 Nov 2024 07:25:49 +1100 Subject: [PATCH 5/5] Create unlucky-carrots-retire.md --- .changeset/unlucky-carrots-retire.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/unlucky-carrots-retire.md diff --git a/.changeset/unlucky-carrots-retire.md b/.changeset/unlucky-carrots-retire.md new file mode 100644 index 0000000000..cbff1dcefd --- /dev/null +++ b/.changeset/unlucky-carrots-retire.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Guru Network.