@@ -11,6 +11,7 @@ const _wallets = [
11
11
metaMaskWallet ,
12
12
] ;
13
13
14
+ // reference: https://github.com/hyperweb-io/interchain-kit/blob/main/examples/react/src/main.tsx#L86
14
15
export const HOLESKY_TESTNET = {
15
16
chainId : "0x4268" , // 17000 | 0x4268
16
17
chainName : "Holesky testnet" ,
@@ -35,12 +36,56 @@ export const BSC_TESTNET = {
35
36
blockExplorerUrls : [ "https://testnet.bscscan.com" ] ,
36
37
} ;
37
38
39
+ const assets = [
40
+ {
41
+ "description" : "" ,
42
+ "extendedDescription" : "" ,
43
+ "denomUnits" : [
44
+ {
45
+ "denom" : "wei" ,
46
+ "exponent" : 0
47
+ } ,
48
+ {
49
+ "denom" : "gwei" ,
50
+ "exponent" : 9
51
+ } ,
52
+ {
53
+ "denom" : "eth" ,
54
+ "exponent" : 18 ,
55
+ "aliases" : [
56
+ "ether"
57
+ ]
58
+ }
59
+ ] ,
60
+ "typeAsset" : "evm-base" ,
61
+ "base" : "wei" ,
62
+ "name" : "Holesky ETH" ,
63
+ "display" : "eth" ,
64
+ "symbol" : "ETH" ,
65
+ "logoURIs" : {
66
+ "png" : "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/eth-white.png" ,
67
+ "svg" : "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/eth-white.svg"
68
+ } ,
69
+ "coingeckoId" : "ethereum" ,
70
+ "images" : [
71
+ {
72
+ "png" : "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/eth-white.png" ,
73
+ "svg" : "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/eth-white.svg" ,
74
+ "theme" : {
75
+ "primaryColorHex" : "#303030"
76
+ }
77
+ }
78
+ ]
79
+ }
80
+ ]
81
+
38
82
export default function Provider ( {
39
83
children,
40
84
} : Readonly < {
41
85
children : React . ReactNode
42
86
} > ) {
43
87
console . log ( 'chain' , chain )
88
+ console . log ( 'assetList' , assetList )
44
89
return (
45
90
< ThemeProvider themeMode = 'light' >
46
91
< ChainProvider
@@ -52,7 +97,10 @@ export default function Provider({
52
97
] }
53
98
// @ts -ignore
54
99
wallets = { _wallets }
55
- assetLists = { [ assetList ] }
100
+ assetLists = { [ {
101
+ ...assetList ,
102
+ assets : [ ...assetList . assets , ...assets ]
103
+ } ] }
56
104
signerOptions = { { } }
57
105
>
58
106
{ children }
0 commit comments