@@ -233,8 +233,9 @@ type TypeChain = {
233
233
unisatExplorerUrl : string ;
234
234
okxExplorerUrl : string ;
235
235
isViewTxHistoryInternally ?: boolean ;
236
- foldIn ?:string ,
237
- disable ?:boolean
236
+ foldIn ?: string ;
237
+ disable ?: boolean ;
238
+ isFractal ?: boolean ;
238
239
} ;
239
240
240
241
export const CHAINS_MAP : { [ key : string ] : TypeChain } = {
@@ -263,7 +264,7 @@ export const CHAINS_MAP: { [key: string]: TypeChain } = {
263
264
ordinalsUrl : 'https://testnet.ordinals.com' ,
264
265
unisatExplorerUrl : '' ,
265
266
okxExplorerUrl : '' ,
266
- foldIn :" Bitcoin Testnet"
267
+ foldIn : ' Bitcoin Testnet'
267
268
} ,
268
269
[ ChainType . BITCOIN_TESTNET4 ] : {
269
270
enum : ChainType . BITCOIN_TESTNET4 ,
@@ -277,7 +278,7 @@ export const CHAINS_MAP: { [key: string]: TypeChain } = {
277
278
ordinalsUrl : 'https://testnet4.ordinals.com' ,
278
279
unisatExplorerUrl : '' ,
279
280
okxExplorerUrl : '' ,
280
- foldIn :" Bitcoin Testnet" ,
281
+ foldIn : ' Bitcoin Testnet'
281
282
} ,
282
283
[ ChainType . BITCOIN_SIGNET ] : {
283
284
enum : ChainType . BITCOIN_SIGNET ,
@@ -291,11 +292,11 @@ export const CHAINS_MAP: { [key: string]: TypeChain } = {
291
292
ordinalsUrl : 'https://signet.ordinals.com' ,
292
293
unisatExplorerUrl : '' ,
293
294
okxExplorerUrl : '' ,
294
- foldIn :" Bitcoin Testnet" ,
295
+ foldIn : ' Bitcoin Testnet'
295
296
} ,
296
297
[ ChainType . FRACTAL_BITCOIN_MAINNET ] : {
297
298
enum : ChainType . FRACTAL_BITCOIN_MAINNET ,
298
- label : 'Fractal Bitcoin Mainnet (Beta )' ,
299
+ label : 'Fractal Bitcoin Mainnet (Not Ready )' ,
299
300
icon : './images/artifacts/fractalbitcoin-mainnet.svg' ,
300
301
unit : 'FB' ,
301
302
networkType : NetworkType . MAINNET ,
@@ -305,28 +306,62 @@ export const CHAINS_MAP: { [key: string]: TypeChain } = {
305
306
ordinalsUrl : 'https://ordinals.fractalbitcoin.io' ,
306
307
unisatExplorerUrl : 'https://explorer.fractalbitcoin.io' ,
307
308
okxExplorerUrl : '' ,
308
- isViewTxHistoryInternally : false
309
+ isViewTxHistoryInternally : false ,
310
+ disable : true ,
311
+ isFractal : true
309
312
} ,
310
313
[ ChainType . FRACTAL_BITCOIN_TESTNET ] : {
311
314
enum : ChainType . FRACTAL_BITCOIN_TESTNET ,
312
- label : 'Fractal Bitcoin Testnet (Beta) ' ,
315
+ label : 'Fractal Bitcoin Testnet' ,
313
316
icon : './images/artifacts/fractalbitcoin-mainnet.svg' ,
314
- unit : 'FB ' ,
315
- networkType : NetworkType . TESTNET ,
316
- endpoints : [ 'https://wallet-api- fractal.unisat.io' ] ,
317
- mempoolSpaceUrl : 'https://mempool.fractalbitcoin.io' ,
318
- unisatUrl : 'https://fractal.unisat.io' ,
319
- ordinalsUrl : 'https://ordinals.fractalbitcoin.io' ,
320
- unisatExplorerUrl : 'https://explorer.fractalbitcoin.io' ,
317
+ unit : 'tFB ' ,
318
+ networkType : NetworkType . MAINNET ,
319
+ endpoints : [ 'https://fractal-testnet .unisat.io/wallet-api ' ] ,
320
+ mempoolSpaceUrl : 'https://mempool-testnet .fractalbitcoin.io' ,
321
+ unisatUrl : 'https://fractal-testnet .unisat.io' ,
322
+ ordinalsUrl : 'https://ordinals-testnet .fractalbitcoin.io' ,
323
+ unisatExplorerUrl : 'https://explorer-testnet .fractalbitcoin.io' ,
321
324
okxExplorerUrl : '' ,
322
325
isViewTxHistoryInternally : false ,
323
- disable : true ,
324
- } ,
326
+ isFractal : true
327
+ }
325
328
} ;
326
329
327
- // 将 CHAINS_MAP 转换为数组
328
330
export const CHAINS = Object . values ( CHAINS_MAP ) ;
329
331
332
+ export type TypeChainGroup = {
333
+ type : 'single' | 'list' ;
334
+ chain ?: TypeChain ;
335
+ label ?: string ;
336
+ icon ?: string ;
337
+ items ?: TypeChain [ ] ;
338
+ } ;
339
+
340
+ export const CHAIN_GROUPS : TypeChainGroup [ ] = [
341
+ {
342
+ type : 'single' ,
343
+ chain : CHAINS_MAP [ ChainType . BITCOIN_MAINNET ]
344
+ } ,
345
+ {
346
+ type : 'list' ,
347
+ label : 'Bitcoin Testnet' ,
348
+ icon : './images/artifacts/bitcoin-testnet.svg' ,
349
+ items : [
350
+ CHAINS_MAP [ ChainType . BITCOIN_TESTNET ] ,
351
+ CHAINS_MAP [ ChainType . BITCOIN_TESTNET4 ] ,
352
+ CHAINS_MAP [ ChainType . BITCOIN_SIGNET ]
353
+ ]
354
+ } ,
355
+ {
356
+ type : 'single' ,
357
+ chain : CHAINS_MAP [ ChainType . FRACTAL_BITCOIN_MAINNET ]
358
+ } ,
359
+ {
360
+ type : 'single' ,
361
+ chain : CHAINS_MAP [ ChainType . FRACTAL_BITCOIN_TESTNET ]
362
+ }
363
+ ] ;
364
+
330
365
export const MINIMUM_GAS_LIMIT = 21000 ;
331
366
332
367
export enum WATCH_ADDRESS_CONNECT_TYPE {
0 commit comments