File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "description" : " Cordial Treasury Browser Wallet Extension" ,
44 "license" : " Apache-2.0" ,
55 "private" : true ,
6- "version" : " 0.1.3 " ,
6+ "version" : " 0.1.4 " ,
77 "type" : " module" ,
88 "scripts" : {
99 "dev" : " wxt" ,
Original file line number Diff line number Diff line change 11import { None , Option } from "@/lib/types" ;
22import * as z from "zod" ;
33
4- export type Chain = "ETH" | "MATIC" ;
4+ export type Chain =
5+ | "ETH"
6+ | "AVAX"
7+ | "BASE"
8+ | "BNB"
9+ | "BERA"
10+ | "MATIC"
11+ | "MON"
12+ | "OptETH"
13+ | "XPL"
14+ | "0G" ;
515
616export type Id =
717 // ETH
@@ -10,8 +20,24 @@ export type Id =
1020 | "0xaa36a7"
1121 // ETH+hoodi
1222 | "0x88bb0"
23+ // AVAX
24+ | "0xa86a"
25+ // BASE
26+ | "0x2105"
27+ // BNB
28+ | "0x38"
29+ // BERA
30+ | "0x138de"
1331 // MATIC
14- | "0x89" ;
32+ | "0x89"
33+ // MON
34+ | "0x8f"
35+ // OptETH
36+ | "0xa"
37+ // XPL
38+ | "0x2611"
39+ // 0G
40+ | "0x4115" ;
1541
1642export const Id = {
1743 normalize ( id : string | number ) : Option < string > {
@@ -28,12 +54,28 @@ export const Chains: { [id in Id]: Chain } = {
2854 "0x1" : "ETH" ,
2955 "0xaa36a7" : "ETH" ,
3056 "0x88bb0" : "ETH" ,
57+ "0x2105" : "BASE" ,
58+ "0xa86a" : "AVAX" ,
3159 "0x89" : "MATIC" ,
60+ "0x8f" : "MON" ,
61+ "0x38" : "BNB" ,
62+ "0x138de" : "BERA" ,
63+ "0xa" : "OptETH" ,
64+ "0x2611" : "XPL" ,
65+ "0x4115" : "0G" ,
3266} ;
3367
3468export const Mainnet : { [ chain in Chain ] : Id } = {
3569 ETH : "0x1" ,
70+ AVAX : "0xa86a" ,
71+ BASE : "0x2105" ,
72+ BNB : "0x38" ,
73+ BERA : "0x138de" ,
3674 MATIC : "0x89" ,
75+ MON : "0x8f" ,
76+ OptETH : "0xa" ,
77+ XPL : "0x2611" ,
78+ "0G" : "0x4115" ,
3779} ;
3880
3981export type Config = {
You can’t perform that action at this time.
0 commit comments