Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add isTestnet property to ArbitrumNetwork #522

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/lib/dataEntities/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export interface ArbitrumNetwork {
* In case of a chain that uses an ERC-20 token from the parent chain as its native/gas token, this is the address of said token on the parent chain
*/
nativeToken?: string
/**
* Whether or not it is a testnet chain.
*/
isTestnet: boolean
/**
* Whether or not the chain was registered by the user.
*/
Expand Down Expand Up @@ -197,6 +201,7 @@ const networks: {
},
confirmPeriodBlocks: 45818,
isCustom: false,
isTestnet: false,
},
42170: {
chainId: 42170,
Expand All @@ -209,6 +214,7 @@ const networks: {
sequencerInbox: '0x211E1c4c7f1bF5351Ac850Ed10FD68CFfCF6c21b',
},
isCustom: false,
isTestnet: false,
name: 'Arbitrum Nova',
parentChainId: 1,
tokenBridge: {
Expand Down Expand Up @@ -243,6 +249,7 @@ const networks: {
sequencerInbox: '0x6c97864CE4bEf387dE0b3310A44230f7E3F1be0D',
},
isCustom: false,
isTestnet: true,
name: 'Arbitrum Rollup Sepolia Testnet',
parentChainId: 11155111,
tokenBridge: {
Expand Down
Loading