Skip to content

Commit

Permalink
feat: add Forma mainnet and Sketchpad testnet chains (#2555)
Browse files Browse the repository at this point in the history
Added Forma mainnet and Sketchpad testnet chains.
  • Loading branch information
mycodecrafting authored Jul 29, 2024
1 parent 5babc8d commit 9be9b2c
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-planes-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Forma mainnet and Sketchpad testnet chains.
30 changes: 30 additions & 0 deletions src/chains/definitions/forma.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const forma = /*#__PURE__*/ defineChain({
id: 984122,
name: 'Forma',
network: 'forma',
nativeCurrency: {
symbol: 'TIA',
name: 'TIA',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://rpc.forma.art'],
webSocket: ['wss://ws.forma.art'],
},
},
blockExplorers: {
default: {
name: 'Forma Explorer',
url: 'https://explorer.forma.art',
},
},
contracts: {
multicall3: {
address: '0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079',
blockCreated: 252705,
},
},
})
25 changes: 25 additions & 0 deletions src/chains/definitions/sketchpad.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const sketchpad = /*#__PURE__*/ defineChain({
id: 984123,
name: 'Forma Sketchpad',
network: 'sketchpad',
nativeCurrency: {
symbol: 'TIA',
name: 'TIA',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://rpc.sketchpad-1.forma.art'],
webSocket: ['wss://ws.sketchpad-1.forma.art'],
},
},
blockExplorers: {
default: {
name: 'Sketchpad Explorer',
url: 'https://explorer.sketchpad-1.forma.art',
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ 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'
/** @deprecated Use `anvil` instead. */
export { foundry } from './definitions/foundry.js'
export { fraxtal } from './definitions/fraxtal.js'
Expand Down Expand Up @@ -257,6 +258,7 @@ export { skaleNebulaTestnet } from './definitions/skale/nebulaTestnet.js'
export { skaleRazor } from './definitions/skale/razor.js'
export { skaleTitan } from './definitions/skale/titan.js'
export { skaleTitanTestnet } from './definitions/skale/titanTestnet.js'
export { sketchpad } from './definitions/sketchpad.js'
export { songbird } from './definitions/songbird.js'
export { songbirdTestnet } from './definitions/songbirdTestnet.js'
export { spicy } from './definitions/spicy.js'
Expand Down

0 comments on commit 9be9b2c

Please sign in to comment.