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(chains): added Flare Chain Networks: Flare, Coston2, Songbird, C…
…oston (#138) * Add Flare Chain Networks * Fixes Changes * Update flare.ts * Update flareTestnet.ts * Update songbird.ts * Update songbirdTestnet.ts --------- Co-authored-by: jxom <jakemoxey@gmail.com>
- Loading branch information
1 parent
25eda6b
commit 48f9a47
Showing
6 changed files
with
99 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': major | ||
--- | ||
|
||
Added Flare Mainnet, Testnet and Songbird Mainnet, Testnet support |
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,22 @@ | ||
import { Chain } from './types' | ||
|
||
export const flare: Chain = { | ||
id: 14, | ||
name: 'Flare Mainnet', | ||
network: 'flare-mainnet', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'flare', | ||
symbol: 'FLR', | ||
}, | ||
rpcUrls: { | ||
default: { http: ['https://flare-api.flare.network/ext/C/rpc'] }, | ||
public: { http: ['https://flare-api.flare.network/ext/C/rpc'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Flare Explorer', | ||
url: 'https://flare-explorer.flare.network', | ||
}, | ||
}, | ||
} |
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,23 @@ | ||
import { Chain } from './types' | ||
|
||
export const flareTestnet: Chain = { | ||
id: 114, | ||
name: 'Coston2', | ||
network: 'coston2', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'coston2flare', | ||
symbol: 'C2FLR', | ||
}, | ||
rpcUrls: { | ||
default: { http: ['https://coston2-api.flare.network/ext/C/rpc'] }, | ||
public: { http: ['https://coston2-api.flare.network/ext/C/rpc'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Coston2 Explorer', | ||
url: 'https://coston2-explorer.flare.network', | ||
}, | ||
}, | ||
testnet: true, | ||
} |
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,22 @@ | ||
import { Chain } from './types' | ||
|
||
export const songbird: Chain = { | ||
id: 19, | ||
name: 'Songbird Mainnet', | ||
network: 'songbird-mainnet', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'songbird', | ||
symbol: 'SGB', | ||
}, | ||
rpcUrls: { | ||
default: { http: ['https://songbird-api.flare.network/ext/C/rpc'] }, | ||
public: { http: ['https://songbird-api.flare.network/ext/C/rpc'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Songbird Explorer', | ||
url: 'https://songbird-explorer.flare.network', | ||
}, | ||
}, | ||
} |
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,23 @@ | ||
import { Chain } from './types' | ||
|
||
export const songbirdTestnet: Chain = { | ||
id: 16, | ||
name: 'Coston', | ||
network: 'coston', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'costonflare', | ||
symbol: 'CFLR', | ||
}, | ||
rpcUrls: { | ||
default: { http: ['https://coston-api.flare.network/ext/C/rpc'] }, | ||
public: { http: ['https://coston-api.flare.network/ext/C/rpc'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Coston Explorer', | ||
url: 'https://coston-explorer.flare.network', | ||
}, | ||
}, | ||
testnet: true, | ||
} |