Skip to content

Commit

Permalink
feat: add Guru Network mainnet (#3040)
Browse files Browse the repository at this point in the history
* Added Guru Network mainnet

* small update

* Update index.ts

* Update and rename gurunetwork.ts to guruNetwork.ts

* Create unlucky-carrots-retire.md

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
Kharabet and jxom authored Nov 21, 2024
1 parent f016b16 commit 649cd92
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-carrots-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Guru Network.
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions src/chains/definitions/guruNetwork.ts
Original file line number Diff line number Diff line change
@@ -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 Token',
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,
})
4 changes: 2 additions & 2 deletions src/chains/definitions/guruTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,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'
Expand Down

0 comments on commit 649cd92

Please sign in to comment.