This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Oasis Sapphire & Emerald chains (#471)
* Create sapphire.ts * Update sapphire.ts to use hexadecimal chain id (0x5afe) * Create sapphireTestnet.ts * Create emerald.ts * Update sapphire.ts - added webSocket URL * Update emerald.ts - fixed webSocket URLs * added WebSocket URL for sapphire testnet & changed testnet token to TEST * Update emerald.ts * Update sapphire.ts * Update sapphireTestnet.ts * Add changeset * Ran pnpm lint & lint:fix * Add Sapphire, Sapphire Testnet & Emerald to index.ts --------- Co-authored-by: jxom <[email protected]>
- Loading branch information
Showing
5 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@wagmi/chains": patch | ||
--- | ||
|
||
Added Emerald, Sapphire & Sapphire Testnet chains. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Chain } from './types' | ||
|
||
export const emerald = { | ||
id: 42262, | ||
name: 'Oasis Emerald', | ||
network: 'emerald', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'Oasis ROSE', | ||
symbol: 'ROSE', | ||
}, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://emerald.oasis.dev'], | ||
webSocket: ['wss://emerald.oasis.dev/ws'], | ||
}, | ||
public: { | ||
http: ['https://emerald.oasis.dev'], | ||
webSocket: ['wss://emerald.oasis.dev/ws'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Oasis Explorer', | ||
url: 'https://explorer.emerald.oasis.dev', | ||
}, | ||
}, | ||
contracts: { | ||
multicall3: { | ||
address: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
blockCreated: 1481392, | ||
}, | ||
}, | ||
} as const satisfies Chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Chain } from './types' | ||
|
||
export const sapphire = { | ||
id: 23294, | ||
name: 'Oasis Sapphire', | ||
network: 'sapphire', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'Oasis ROSE', | ||
symbol: 'ROSE', | ||
}, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://sapphire.oasis.io'], | ||
webSocket: ['wss://sapphire.oasis.io/ws'], | ||
}, | ||
public: { | ||
http: ['https://sapphire.oasis.io'], | ||
webSocket: ['wss://sapphire.oasis.io/ws'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Oasis Explorer', | ||
url: 'https://explorer.oasis.io/mainnet/sapphire', | ||
}, | ||
}, | ||
contracts: { | ||
multicall3: { | ||
address: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
blockCreated: 734531, | ||
}, | ||
}, | ||
} as const satisfies Chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Chain } from './types' | ||
|
||
export const sapphireTestnet = { | ||
id: 23295, | ||
name: 'Oasis Sapphire Testnet', | ||
network: 'sapphireTestnet', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'Oasis TEST', | ||
symbol: 'TEST', | ||
}, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://testnet.sapphire.oasis.dev'], | ||
webSocket: ['wss://testnet.sapphire.oasis.dev/ws'], | ||
}, | ||
public: { | ||
http: ['https://testnet.sapphire.oasis.dev'], | ||
webSocket: ['wss://testnet.sapphire.oasis.dev/ws'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Oasis Explorer', | ||
url: 'https://explorer.oasis.io/testnet/sapphire', | ||
}, | ||
}, | ||
} as const satisfies Chain |