@@ -11,6 +11,7 @@ const _wallets = [
1111 metaMaskWallet ,
1212] ;
1313
14+ // reference: https://github.com/hyperweb-io/interchain-kit/blob/main/examples/react/src/main.tsx#L86
1415export const HOLESKY_TESTNET = {
1516 chainId : "0x4268" , // 17000 | 0x4268
1617 chainName : "Holesky testnet" ,
@@ -35,12 +36,56 @@ export const BSC_TESTNET = {
3536 blockExplorerUrls : [ "https://testnet.bscscan.com" ] ,
3637} ;
3738
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+
3882export default function Provider ( {
3983 children,
4084} : Readonly < {
4185 children : React . ReactNode
4286} > ) {
4387 console . log ( 'chain' , chain )
88+ console . log ( 'assetList' , assetList )
4489 return (
4590 < ThemeProvider themeMode = 'light' >
4691 < ChainProvider
@@ -52,7 +97,10 @@ export default function Provider({
5297 ] }
5398 // @ts -ignore
5499 wallets = { _wallets }
55- assetLists = { [ assetList ] }
100+ assetLists = { [ {
101+ ...assetList ,
102+ assets : [ ...assetList . assets , ...assets ]
103+ } ] }
56104 signerOptions = { { } }
57105 >
58106 { children }
0 commit comments