Skip to content

Commit

Permalink
Merge branch 'wevm:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-bozin-txfusion authored Oct 31, 2024
2 parents 83a80b4 + a41f29d commit edda69d
Show file tree
Hide file tree
Showing 15 changed files with 172 additions and 29 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-birds-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Updated XDC Testnet Block Explorer URL.
48 changes: 24 additions & 24 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions site/pages/op-stack/chains.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
baseSepolia, // [!code hl]
fraxtal, // [!code hl]
fraxtalTestnet, // [!code hl]
inkSepolia, // [!code hl]
optimism, // [!code hl]
optimismGoerli, // [!code hl]
optimismSepolia, // [!code hl]
Expand Down
10 changes: 10 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# viem

## 2.21.37

### Patch Changes

- [#2940](https://github.com/wevm/viem/pull/2940) [`c1ef3b7902a67aed76cac72ba469ff8c709287a6`](https://github.com/wevm/viem/commit/c1ef3b7902a67aed76cac72ba469ff8c709287a6) Thanks [@Zhangnong](https://github.com/Zhangnong)! - Added Theta chain.

- [#2941](https://github.com/wevm/viem/pull/2941) [`3bf2526a650a4208e95d4623a7bbc1d9f3fb893e`](https://github.com/wevm/viem/commit/3bf2526a650a4208e95d4623a7bbc1d9f3fb893e) Thanks [@Zhangnong](https://github.com/Zhangnong)! - Added Glide Protocol.

- [#2942](https://github.com/wevm/viem/pull/2942) [`12347cf1f91f9a7d04a619b7c2f1b202842d43f5`](https://github.com/wevm/viem/commit/12347cf1f91f9a7d04a619b7c2f1b202842d43f5) Thanks [@ink-alexander](https://github.com/ink-alexander)! - Added Ink Sepolia chain configurations

## 2.21.36

### Patch Changes
Expand Down
20 changes: 20 additions & 0 deletions src/chains/definitions/glideL1Protocol.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const glideL1Protocol = /*#__PURE__*/ defineChain({
id: 251,
name: 'Glide L1 Protocol XP',
nativeCurrency: { name: 'GLXP', symbol: 'GLXP', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-api.glideprotocol.xyz/l1-rpc'],
webSocket: ['wss://rpc-api.glideprotocol.xyz/l1-rpc'],
},
},
blockExplorers: {
default: {
name: 'Glide Protocol Explore',
url: 'https://blockchain-explorer.glideprotocol.xyz',
},
},
testnet: false,
})
20 changes: 20 additions & 0 deletions src/chains/definitions/glideL2Protocol.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const glideL2Protocol = /*#__PURE__*/ defineChain({
id: 253,
name: 'Glide L2 Protocol XP',
nativeCurrency: { name: 'GLXP', symbol: 'GLXP', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-api.glideprotocol.xyz/l2-rpc'],
webSocket: ['wss://rpc-api.glideprotocol.xyz/l2-rpc'],
},
},
blockExplorers: {
default: {
name: 'Glide Protocol Explore',
url: 'https://blockchain-explorer.glideprotocol.xyz',
},
},
testnet: false,
})
43 changes: 43 additions & 0 deletions src/chains/definitions/inkSepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { chainConfig } from '../../op-stack/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 11_155_111 // sepolia

export const inkSepolia = /*#__PURE__*/ defineChain({
...chainConfig,
id: 763373,
name: 'Ink Sepolia',
nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-gel-sepolia.inkonchain.com'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://explorer-sepolia.inkonchain.com/',
apiUrl: 'https://explorer-sepolia.inkonchain.com/api/v2',
},
},
contracts: {
...chainConfig.contracts,
disputeGameFactory: {
[sourceId]: {
address: '0x860e626c700af381133d9f4af31412a2d1db3d5d',
},
},
portal: {
[sourceId]: {
address: '0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7',
},
},
l1StandardBridge: {
[sourceId]: {
address: '0x33f60714bbd74d62b66d79213c348614de51901c',
},
},
},
testnet: true,
sourceId,
})
19 changes: 19 additions & 0 deletions src/chains/definitions/theta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const theta = /*#__PURE__*/ defineChain({
id: 361,
name: 'Theta Mainnet',
nativeCurrency: { name: 'TFUEL', symbol: 'TFUEL', decimals: 18 },
rpcUrls: {
default: {
http: ['https://eth-rpc-api.thetatoken.org/rpc'],
},
},
blockExplorers: {
default: {
name: 'Theta Explorer',
url: 'https://explorer.thetatoken.org',
},
},
testnet: false,
})
19 changes: 19 additions & 0 deletions src/chains/definitions/thetaTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const thetaTestnet = /*#__PURE__*/ defineChain({
id: 365,
name: 'Theta Testnet',
nativeCurrency: { name: 'TFUEL', symbol: 'TFUEL', decimals: 18 },
rpcUrls: {
default: {
http: ['https://eth-rpc-api-testnet.thetatoken.org/rpc'],
},
},
blockExplorers: {
default: {
name: 'Theta Explorer',
url: 'https://testnet-explorer.thetatoken.org',
},
},
testnet: true,
})
4 changes: 2 additions & 2 deletions src/chains/definitions/xdcTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const xdcTestnet = /*#__PURE__*/ defineChain({
},
blockExplorers: {
default: {
name: 'Blocksscan',
url: 'https://apothem.blocksscan.io',
name: 'XDCScan',
url: 'https://testnet.xdcscan.com',
},
},
contracts: {
Expand Down
Loading

0 comments on commit edda69d

Please sign in to comment.