Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Add Oasis Sapphire & Emerald chains #471

Merged
merged 13 commits into from
Aug 14, 2023
25 changes: 25 additions & 0 deletions packages/chains/src/emerald.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
25 changes: 25 additions & 0 deletions packages/chains/src/sapphire.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
19 changes: 19 additions & 0 deletions packages/chains/src/sapphireTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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