From 23c95989ec60fa4879e94d6f8b907bd50e75060c Mon Sep 17 00:00:00 2001 From: abs3ntdev <86447830+abs3ntdev@users.noreply.github.com> Date: Fri, 17 Jan 2025 18:14:24 -0600 Subject: [PATCH] feat: add goat network (#3236) * goat * Update funny-mice-hunt.md --------- Co-authored-by: abs3ntdev Co-authored-by: jxom <7336481+jxom@users.noreply.github.com> --- .changeset/funny-mice-hunt.md | 5 +++++ src/chains/definitions/goat.ts | 26 ++++++++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 32 insertions(+) create mode 100644 .changeset/funny-mice-hunt.md create mode 100644 src/chains/definitions/goat.ts diff --git a/.changeset/funny-mice-hunt.md b/.changeset/funny-mice-hunt.md new file mode 100644 index 0000000000..2b5bbf6365 --- /dev/null +++ b/.changeset/funny-mice-hunt.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added goat network. diff --git a/src/chains/definitions/goat.ts b/src/chains/definitions/goat.ts new file mode 100644 index 0000000000..863c3be62c --- /dev/null +++ b/src/chains/definitions/goat.ts @@ -0,0 +1,26 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const goat = /*#__PURE__*/ defineChain({ + id: 2345, + name: 'GOAT', + nativeCurrency: { + decimals: 18, + name: 'Bitcoin', + symbol: 'BTC', + }, + rpcUrls: { + default: { http: ['https://rpc.goat.network'] }, + }, + blockExplorers: { + default: { + name: 'Goat Explorer', + url: 'https://explorer.goat.network', + }, + }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + blockCreated: 0, + }, + }, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index e0da91affc..808ed3dac1 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -184,6 +184,7 @@ export { glideL1Protocol } from './definitions/glideL1Protocol.js' export { glideL2Protocol } from './definitions/glideL2Protocol.js' export { gnosis } from './definitions/gnosis.js' export { gnosisChiado } from './definitions/gnosisChiado.js' +export { goat } from './definitions/goat.js' export { gobi } from './definitions/gobi.js' export { goChain } from './definitions/goChain.js' export { godwoken } from './definitions/godwoken.js'