@matchain/matchid-sdk-react 0.1.25 → 0.1.26-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +319 -84
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +542 -92
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1544,16 +1544,8 @@ function RecoveryModal({
|
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
1546
1546
|
// src/components/EVMModal/index.tsx
|
|
1547
|
-
import {
|
|
1548
|
-
import { useAccount, useAccountEffect, useChainId, useConfig, useDisconnect
|
|
1549
|
-
import {
|
|
1550
|
-
bitgetWallet,
|
|
1551
|
-
injectedWallet,
|
|
1552
|
-
metaMaskWallet,
|
|
1553
|
-
okxWallet,
|
|
1554
|
-
walletConnectWallet
|
|
1555
|
-
} from "@rainbow-me/rainbowkit/wallets";
|
|
1556
|
-
import { bsc } from "wagmi/chains";
|
|
1547
|
+
import { useConnectModal } from "@rainbow-me/rainbowkit";
|
|
1548
|
+
import { useAccount, useAccountEffect, useChainId, useConfig, useDisconnect } from "wagmi";
|
|
1557
1549
|
|
|
1558
1550
|
// src/hooks/useEthersSigner.ts
|
|
1559
1551
|
import * as React from "react";
|
|
@@ -2734,23 +2726,6 @@ function SOLModal({
|
|
|
2734
2726
|
// src/components/EVMModal/index.tsx
|
|
2735
2727
|
import "@rainbow-me/rainbowkit/styles.css";
|
|
2736
2728
|
import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2737
|
-
var wagmiConfig = getDefaultConfig({
|
|
2738
|
-
appName: "MatchID",
|
|
2739
|
-
projectId: "9ac6ea7e07860f04616fb311b447dee9",
|
|
2740
|
-
wallets: [
|
|
2741
|
-
{
|
|
2742
|
-
groupName: "Recommended",
|
|
2743
|
-
wallets: [
|
|
2744
|
-
metaMaskWallet,
|
|
2745
|
-
walletConnectWallet,
|
|
2746
|
-
okxWallet,
|
|
2747
|
-
bitgetWallet,
|
|
2748
|
-
injectedWallet
|
|
2749
|
-
]
|
|
2750
|
-
}
|
|
2751
|
-
],
|
|
2752
|
-
chains: [bsc]
|
|
2753
|
-
});
|
|
2754
2729
|
function WalletContent2({
|
|
2755
2730
|
onSuccess,
|
|
2756
2731
|
type
|
|
@@ -2929,7 +2904,7 @@ function EVMModal({
|
|
|
2929
2904
|
onSuccess,
|
|
2930
2905
|
...props
|
|
2931
2906
|
}) {
|
|
2932
|
-
return /* @__PURE__ */ jsx46(ModalWithHeader, { ...props, title: props.title || firstUpperCase(type + " EVM Wallet"), children: /* @__PURE__ */ jsx46(
|
|
2907
|
+
return /* @__PURE__ */ jsx46(ModalWithHeader, { ...props, title: props.title || firstUpperCase(type + " EVM Wallet"), children: /* @__PURE__ */ jsx46(WalletContent2, { onSuccess, type }) });
|
|
2933
2908
|
}
|
|
2934
2909
|
|
|
2935
2910
|
// src/context/BusinessProvider.tsx
|
|
@@ -3225,6 +3200,543 @@ function useInit({
|
|
|
3225
3200
|
|
|
3226
3201
|
// src/MatchContext.tsx
|
|
3227
3202
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
3203
|
+
import { WagmiProvider } from "wagmi";
|
|
3204
|
+
|
|
3205
|
+
// src/config/chains/AllChains.ts
|
|
3206
|
+
import {
|
|
3207
|
+
acala,
|
|
3208
|
+
ancient8,
|
|
3209
|
+
ancient8Sepolia,
|
|
3210
|
+
anvil,
|
|
3211
|
+
apexTestnet,
|
|
3212
|
+
arbitrum,
|
|
3213
|
+
arbitrumGoerli,
|
|
3214
|
+
arbitrumNova,
|
|
3215
|
+
astar,
|
|
3216
|
+
arbitrumSepolia,
|
|
3217
|
+
aurora,
|
|
3218
|
+
auroraTestnet,
|
|
3219
|
+
auroria,
|
|
3220
|
+
avalanche,
|
|
3221
|
+
avalancheFuji,
|
|
3222
|
+
bahamut,
|
|
3223
|
+
base,
|
|
3224
|
+
baseGoerli,
|
|
3225
|
+
baseSepolia,
|
|
3226
|
+
bearNetworkChainMainnet,
|
|
3227
|
+
bearNetworkChainTestnet,
|
|
3228
|
+
berachainTestnet,
|
|
3229
|
+
bitTorrent,
|
|
3230
|
+
bitTorrentTestnet,
|
|
3231
|
+
blast,
|
|
3232
|
+
blastSepolia,
|
|
3233
|
+
boba,
|
|
3234
|
+
bronos,
|
|
3235
|
+
bronosTestnet,
|
|
3236
|
+
bsc,
|
|
3237
|
+
bscTestnet,
|
|
3238
|
+
bscGreenfield,
|
|
3239
|
+
bxn,
|
|
3240
|
+
bxnTestnet,
|
|
3241
|
+
canto,
|
|
3242
|
+
celo,
|
|
3243
|
+
celoAlfajores,
|
|
3244
|
+
chiliz,
|
|
3245
|
+
classic,
|
|
3246
|
+
confluxESpace,
|
|
3247
|
+
confluxESpaceTestnet,
|
|
3248
|
+
coreDao,
|
|
3249
|
+
cronos,
|
|
3250
|
+
cronosTestnet,
|
|
3251
|
+
crossbell,
|
|
3252
|
+
defichainEvm,
|
|
3253
|
+
defichainEvmTestnet,
|
|
3254
|
+
dfk,
|
|
3255
|
+
dogechain,
|
|
3256
|
+
edgeware,
|
|
3257
|
+
edgewareTestnet,
|
|
3258
|
+
eos,
|
|
3259
|
+
eosTestnet,
|
|
3260
|
+
etherlinkTestnet,
|
|
3261
|
+
evmos,
|
|
3262
|
+
evmosTestnet,
|
|
3263
|
+
ekta,
|
|
3264
|
+
ektaTestnet,
|
|
3265
|
+
fantom,
|
|
3266
|
+
fantomSonicTestnet,
|
|
3267
|
+
fantomTestnet,
|
|
3268
|
+
fibo,
|
|
3269
|
+
filecoin,
|
|
3270
|
+
filecoinCalibration,
|
|
3271
|
+
filecoinHyperspace,
|
|
3272
|
+
flare,
|
|
3273
|
+
flareTestnet,
|
|
3274
|
+
foundry,
|
|
3275
|
+
fraxtal,
|
|
3276
|
+
fraxtalTestnet,
|
|
3277
|
+
fuse,
|
|
3278
|
+
fuseSparknet,
|
|
3279
|
+
iotex,
|
|
3280
|
+
iotexTestnet,
|
|
3281
|
+
jbc,
|
|
3282
|
+
karura,
|
|
3283
|
+
gobi,
|
|
3284
|
+
goerli,
|
|
3285
|
+
gnosis,
|
|
3286
|
+
gnosisChiado,
|
|
3287
|
+
hardhat,
|
|
3288
|
+
harmonyOne,
|
|
3289
|
+
haqqMainnet,
|
|
3290
|
+
haqqTestedge2,
|
|
3291
|
+
hedera,
|
|
3292
|
+
hederaTestnet,
|
|
3293
|
+
hederaPreviewnet,
|
|
3294
|
+
holesky,
|
|
3295
|
+
kakarotSepolia,
|
|
3296
|
+
kava,
|
|
3297
|
+
kavaTestnet,
|
|
3298
|
+
kcc,
|
|
3299
|
+
klaytn,
|
|
3300
|
+
klaytnBaobab,
|
|
3301
|
+
kroma,
|
|
3302
|
+
kromaSepolia,
|
|
3303
|
+
lightlinkPegasus,
|
|
3304
|
+
lightlinkPhoenix,
|
|
3305
|
+
linea,
|
|
3306
|
+
lineaTestnet,
|
|
3307
|
+
liskSepolia,
|
|
3308
|
+
localhost,
|
|
3309
|
+
lukso,
|
|
3310
|
+
mainnet,
|
|
3311
|
+
mandala,
|
|
3312
|
+
manta,
|
|
3313
|
+
mantaTestnet,
|
|
3314
|
+
mantle,
|
|
3315
|
+
mantleTestnet,
|
|
3316
|
+
merlin,
|
|
3317
|
+
metachain,
|
|
3318
|
+
metachainIstanbul,
|
|
3319
|
+
meter,
|
|
3320
|
+
meterTestnet,
|
|
3321
|
+
metis,
|
|
3322
|
+
metisGoerli,
|
|
3323
|
+
mev,
|
|
3324
|
+
mevTestnet,
|
|
3325
|
+
mode,
|
|
3326
|
+
modeTestnet,
|
|
3327
|
+
moonbaseAlpha,
|
|
3328
|
+
moonbeam,
|
|
3329
|
+
moonbeamDev,
|
|
3330
|
+
moonriver,
|
|
3331
|
+
neonDevnet,
|
|
3332
|
+
neonMainnet,
|
|
3333
|
+
nexi,
|
|
3334
|
+
nexilix,
|
|
3335
|
+
oasys,
|
|
3336
|
+
oasisTestnet,
|
|
3337
|
+
okc,
|
|
3338
|
+
optimism,
|
|
3339
|
+
optimismGoerli,
|
|
3340
|
+
optimismSepolia,
|
|
3341
|
+
opBNB,
|
|
3342
|
+
opBNBTestnet,
|
|
3343
|
+
oortMainnetDev,
|
|
3344
|
+
palm,
|
|
3345
|
+
palmTestnet,
|
|
3346
|
+
pgn,
|
|
3347
|
+
pgnTestnet,
|
|
3348
|
+
phoenix,
|
|
3349
|
+
plinga,
|
|
3350
|
+
polygon,
|
|
3351
|
+
polygonAmoy,
|
|
3352
|
+
polygonMumbai,
|
|
3353
|
+
polygonZkEvmTestnet,
|
|
3354
|
+
polygonZkEvm,
|
|
3355
|
+
pulsechain,
|
|
3356
|
+
pulsechainV4,
|
|
3357
|
+
qMainnet,
|
|
3358
|
+
qTestnet,
|
|
3359
|
+
rollux,
|
|
3360
|
+
rolluxTestnet,
|
|
3361
|
+
ronin,
|
|
3362
|
+
rootstock,
|
|
3363
|
+
saigon,
|
|
3364
|
+
sapphire,
|
|
3365
|
+
sapphireTestnet,
|
|
3366
|
+
scroll,
|
|
3367
|
+
scrollSepolia,
|
|
3368
|
+
sepolia,
|
|
3369
|
+
shimmer,
|
|
3370
|
+
shimmerTestnet,
|
|
3371
|
+
skaleBlockBrawlers,
|
|
3372
|
+
skaleCalypso,
|
|
3373
|
+
skaleCalypsoTestnet,
|
|
3374
|
+
skaleCryptoBlades,
|
|
3375
|
+
skaleCryptoColosseum,
|
|
3376
|
+
skaleEuropa,
|
|
3377
|
+
skaleEuropaTestnet,
|
|
3378
|
+
skaleExorde,
|
|
3379
|
+
skaleHumanProtocol,
|
|
3380
|
+
skaleNebula,
|
|
3381
|
+
skaleNebulaTestnet,
|
|
3382
|
+
skaleRazor,
|
|
3383
|
+
skaleTitan,
|
|
3384
|
+
skaleTitanTestnet,
|
|
3385
|
+
songbird,
|
|
3386
|
+
songbirdTestnet,
|
|
3387
|
+
spicy,
|
|
3388
|
+
shardeumSphinx,
|
|
3389
|
+
shibarium,
|
|
3390
|
+
syscoin,
|
|
3391
|
+
syscoinTestnet,
|
|
3392
|
+
taraxa,
|
|
3393
|
+
taikoJolnir,
|
|
3394
|
+
taikoKatla,
|
|
3395
|
+
taikoTestnetSepolia,
|
|
3396
|
+
taraxaTestnet,
|
|
3397
|
+
telos,
|
|
3398
|
+
telosTestnet,
|
|
3399
|
+
tenet,
|
|
3400
|
+
thunderTestnet,
|
|
3401
|
+
vechain,
|
|
3402
|
+
wanchain,
|
|
3403
|
+
wanchainTestnet,
|
|
3404
|
+
wemix,
|
|
3405
|
+
wemixTestnet,
|
|
3406
|
+
x1Testnet,
|
|
3407
|
+
xdc,
|
|
3408
|
+
xdcTestnet,
|
|
3409
|
+
zhejiang,
|
|
3410
|
+
zkFair,
|
|
3411
|
+
zkFairTestnet,
|
|
3412
|
+
zkSync,
|
|
3413
|
+
zkSyncSepoliaTestnet,
|
|
3414
|
+
zetachain,
|
|
3415
|
+
zetachainAthensTestnet,
|
|
3416
|
+
zilliqa,
|
|
3417
|
+
zilliqaTestnet,
|
|
3418
|
+
zora,
|
|
3419
|
+
zoraSepolia,
|
|
3420
|
+
zoraTestnet
|
|
3421
|
+
} from "wagmi/chains";
|
|
3422
|
+
|
|
3423
|
+
// src/config/chains/MatchTest.ts
|
|
3424
|
+
import { defineChain } from "viem";
|
|
3425
|
+
var matchTest = /* @__PURE__ */ defineChain({
|
|
3426
|
+
//定义matchTest链
|
|
3427
|
+
id: 699,
|
|
3428
|
+
name: "MatchTest",
|
|
3429
|
+
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
3430
|
+
rpcUrls: {
|
|
3431
|
+
default: {
|
|
3432
|
+
http: ["https://testnet-rpc.matchain.io"]
|
|
3433
|
+
}
|
|
3434
|
+
},
|
|
3435
|
+
blockExplorers: {
|
|
3436
|
+
default: {
|
|
3437
|
+
name: "Matchscan",
|
|
3438
|
+
url: "https://testnet.matchscan.io/",
|
|
3439
|
+
apiUrl: "https://testnet.matchscan.io/api"
|
|
3440
|
+
}
|
|
3441
|
+
},
|
|
3442
|
+
iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png",
|
|
3443
|
+
contracts: {
|
|
3444
|
+
multicall3: {
|
|
3445
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
3446
|
+
blockCreated: 751532
|
|
3447
|
+
},
|
|
3448
|
+
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
3449
|
+
ensUniversalResolver: {
|
|
3450
|
+
address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
|
|
3451
|
+
blockCreated: 5317080
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
// testnet: true,
|
|
3455
|
+
});
|
|
3456
|
+
|
|
3457
|
+
// src/config/chains/MatchMain.ts
|
|
3458
|
+
import { defineChain as defineChain2 } from "viem";
|
|
3459
|
+
var matchMain = /* @__PURE__ */ defineChain2({
|
|
3460
|
+
//定义match链
|
|
3461
|
+
id: 698,
|
|
3462
|
+
name: "Matchain",
|
|
3463
|
+
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
3464
|
+
rpcUrls: {
|
|
3465
|
+
default: {
|
|
3466
|
+
http: ["https://rpc.matchain.io"]
|
|
3467
|
+
}
|
|
3468
|
+
},
|
|
3469
|
+
blockExplorers: {
|
|
3470
|
+
default: {
|
|
3471
|
+
name: "Matchscan",
|
|
3472
|
+
url: "https://matchscan.io/",
|
|
3473
|
+
apiUrl: "https://matchscan.io/api"
|
|
3474
|
+
}
|
|
3475
|
+
},
|
|
3476
|
+
iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png",
|
|
3477
|
+
contracts: {
|
|
3478
|
+
multicall3: {
|
|
3479
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
3480
|
+
}
|
|
3481
|
+
}
|
|
3482
|
+
// testnet: true,
|
|
3483
|
+
});
|
|
3484
|
+
|
|
3485
|
+
// src/config/chains/AllChains.ts
|
|
3486
|
+
var AllChains = [
|
|
3487
|
+
matchTest,
|
|
3488
|
+
matchMain,
|
|
3489
|
+
acala,
|
|
3490
|
+
ancient8,
|
|
3491
|
+
ancient8Sepolia,
|
|
3492
|
+
anvil,
|
|
3493
|
+
apexTestnet,
|
|
3494
|
+
arbitrum,
|
|
3495
|
+
arbitrumGoerli,
|
|
3496
|
+
arbitrumNova,
|
|
3497
|
+
astar,
|
|
3498
|
+
arbitrumSepolia,
|
|
3499
|
+
aurora,
|
|
3500
|
+
auroraTestnet,
|
|
3501
|
+
auroria,
|
|
3502
|
+
avalanche,
|
|
3503
|
+
avalancheFuji,
|
|
3504
|
+
bahamut,
|
|
3505
|
+
base,
|
|
3506
|
+
baseGoerli,
|
|
3507
|
+
baseSepolia,
|
|
3508
|
+
bearNetworkChainMainnet,
|
|
3509
|
+
bearNetworkChainTestnet,
|
|
3510
|
+
berachainTestnet,
|
|
3511
|
+
bitTorrent,
|
|
3512
|
+
bitTorrentTestnet,
|
|
3513
|
+
blast,
|
|
3514
|
+
blastSepolia,
|
|
3515
|
+
boba,
|
|
3516
|
+
bronos,
|
|
3517
|
+
bronosTestnet,
|
|
3518
|
+
bsc,
|
|
3519
|
+
bscTestnet,
|
|
3520
|
+
bscGreenfield,
|
|
3521
|
+
bxn,
|
|
3522
|
+
bxnTestnet,
|
|
3523
|
+
canto,
|
|
3524
|
+
celo,
|
|
3525
|
+
celoAlfajores,
|
|
3526
|
+
chiliz,
|
|
3527
|
+
classic,
|
|
3528
|
+
confluxESpace,
|
|
3529
|
+
confluxESpaceTestnet,
|
|
3530
|
+
coreDao,
|
|
3531
|
+
cronos,
|
|
3532
|
+
cronosTestnet,
|
|
3533
|
+
crossbell,
|
|
3534
|
+
defichainEvm,
|
|
3535
|
+
defichainEvmTestnet,
|
|
3536
|
+
dfk,
|
|
3537
|
+
dogechain,
|
|
3538
|
+
edgeware,
|
|
3539
|
+
edgewareTestnet,
|
|
3540
|
+
eos,
|
|
3541
|
+
eosTestnet,
|
|
3542
|
+
etherlinkTestnet,
|
|
3543
|
+
evmos,
|
|
3544
|
+
evmosTestnet,
|
|
3545
|
+
ekta,
|
|
3546
|
+
ektaTestnet,
|
|
3547
|
+
fantom,
|
|
3548
|
+
fantomSonicTestnet,
|
|
3549
|
+
fantomTestnet,
|
|
3550
|
+
fibo,
|
|
3551
|
+
filecoin,
|
|
3552
|
+
filecoinCalibration,
|
|
3553
|
+
filecoinHyperspace,
|
|
3554
|
+
flare,
|
|
3555
|
+
flareTestnet,
|
|
3556
|
+
foundry,
|
|
3557
|
+
fraxtal,
|
|
3558
|
+
fraxtalTestnet,
|
|
3559
|
+
fuse,
|
|
3560
|
+
fuseSparknet,
|
|
3561
|
+
iotex,
|
|
3562
|
+
iotexTestnet,
|
|
3563
|
+
jbc,
|
|
3564
|
+
karura,
|
|
3565
|
+
gobi,
|
|
3566
|
+
goerli,
|
|
3567
|
+
gnosis,
|
|
3568
|
+
gnosisChiado,
|
|
3569
|
+
hardhat,
|
|
3570
|
+
harmonyOne,
|
|
3571
|
+
haqqMainnet,
|
|
3572
|
+
haqqTestedge2,
|
|
3573
|
+
hedera,
|
|
3574
|
+
hederaTestnet,
|
|
3575
|
+
hederaPreviewnet,
|
|
3576
|
+
holesky,
|
|
3577
|
+
kakarotSepolia,
|
|
3578
|
+
kava,
|
|
3579
|
+
kavaTestnet,
|
|
3580
|
+
kcc,
|
|
3581
|
+
klaytn,
|
|
3582
|
+
klaytnBaobab,
|
|
3583
|
+
kroma,
|
|
3584
|
+
kromaSepolia,
|
|
3585
|
+
lightlinkPegasus,
|
|
3586
|
+
lightlinkPhoenix,
|
|
3587
|
+
linea,
|
|
3588
|
+
lineaTestnet,
|
|
3589
|
+
liskSepolia,
|
|
3590
|
+
localhost,
|
|
3591
|
+
lukso,
|
|
3592
|
+
mainnet,
|
|
3593
|
+
mandala,
|
|
3594
|
+
manta,
|
|
3595
|
+
mantaTestnet,
|
|
3596
|
+
mantle,
|
|
3597
|
+
mantleTestnet,
|
|
3598
|
+
merlin,
|
|
3599
|
+
metachain,
|
|
3600
|
+
metachainIstanbul,
|
|
3601
|
+
meter,
|
|
3602
|
+
meterTestnet,
|
|
3603
|
+
metis,
|
|
3604
|
+
metisGoerli,
|
|
3605
|
+
mev,
|
|
3606
|
+
mevTestnet,
|
|
3607
|
+
mode,
|
|
3608
|
+
modeTestnet,
|
|
3609
|
+
moonbaseAlpha,
|
|
3610
|
+
moonbeam,
|
|
3611
|
+
moonbeamDev,
|
|
3612
|
+
moonriver,
|
|
3613
|
+
neonDevnet,
|
|
3614
|
+
neonMainnet,
|
|
3615
|
+
nexi,
|
|
3616
|
+
nexilix,
|
|
3617
|
+
oasys,
|
|
3618
|
+
oasisTestnet,
|
|
3619
|
+
okc,
|
|
3620
|
+
optimism,
|
|
3621
|
+
optimismGoerli,
|
|
3622
|
+
optimismSepolia,
|
|
3623
|
+
opBNB,
|
|
3624
|
+
opBNBTestnet,
|
|
3625
|
+
oortMainnetDev,
|
|
3626
|
+
palm,
|
|
3627
|
+
palmTestnet,
|
|
3628
|
+
pgn,
|
|
3629
|
+
pgnTestnet,
|
|
3630
|
+
phoenix,
|
|
3631
|
+
plinga,
|
|
3632
|
+
polygon,
|
|
3633
|
+
polygonAmoy,
|
|
3634
|
+
polygonMumbai,
|
|
3635
|
+
polygonZkEvmTestnet,
|
|
3636
|
+
polygonZkEvm,
|
|
3637
|
+
pulsechain,
|
|
3638
|
+
pulsechainV4,
|
|
3639
|
+
qMainnet,
|
|
3640
|
+
qTestnet,
|
|
3641
|
+
rollux,
|
|
3642
|
+
rolluxTestnet,
|
|
3643
|
+
ronin,
|
|
3644
|
+
rootstock,
|
|
3645
|
+
saigon,
|
|
3646
|
+
sapphire,
|
|
3647
|
+
sapphireTestnet,
|
|
3648
|
+
scroll,
|
|
3649
|
+
scrollSepolia,
|
|
3650
|
+
sepolia,
|
|
3651
|
+
shimmer,
|
|
3652
|
+
shimmerTestnet,
|
|
3653
|
+
skaleBlockBrawlers,
|
|
3654
|
+
skaleCalypso,
|
|
3655
|
+
skaleCalypsoTestnet,
|
|
3656
|
+
skaleCryptoBlades,
|
|
3657
|
+
skaleCryptoColosseum,
|
|
3658
|
+
skaleEuropa,
|
|
3659
|
+
skaleEuropaTestnet,
|
|
3660
|
+
skaleExorde,
|
|
3661
|
+
skaleHumanProtocol,
|
|
3662
|
+
skaleNebula,
|
|
3663
|
+
skaleNebulaTestnet,
|
|
3664
|
+
skaleRazor,
|
|
3665
|
+
skaleTitan,
|
|
3666
|
+
skaleTitanTestnet,
|
|
3667
|
+
songbird,
|
|
3668
|
+
songbirdTestnet,
|
|
3669
|
+
spicy,
|
|
3670
|
+
shardeumSphinx,
|
|
3671
|
+
shibarium,
|
|
3672
|
+
syscoin,
|
|
3673
|
+
syscoinTestnet,
|
|
3674
|
+
taraxa,
|
|
3675
|
+
taikoJolnir,
|
|
3676
|
+
taikoKatla,
|
|
3677
|
+
taikoTestnetSepolia,
|
|
3678
|
+
taraxaTestnet,
|
|
3679
|
+
telos,
|
|
3680
|
+
telosTestnet,
|
|
3681
|
+
tenet,
|
|
3682
|
+
thunderTestnet,
|
|
3683
|
+
vechain,
|
|
3684
|
+
wanchain,
|
|
3685
|
+
wanchainTestnet,
|
|
3686
|
+
wemix,
|
|
3687
|
+
wemixTestnet,
|
|
3688
|
+
x1Testnet,
|
|
3689
|
+
xdc,
|
|
3690
|
+
xdcTestnet,
|
|
3691
|
+
zhejiang,
|
|
3692
|
+
zkFair,
|
|
3693
|
+
zkFairTestnet,
|
|
3694
|
+
zkSync,
|
|
3695
|
+
zkSyncSepoliaTestnet,
|
|
3696
|
+
zetachain,
|
|
3697
|
+
zetachainAthensTestnet,
|
|
3698
|
+
zilliqa,
|
|
3699
|
+
zilliqaTestnet,
|
|
3700
|
+
zora,
|
|
3701
|
+
zoraSepolia,
|
|
3702
|
+
zoraTestnet
|
|
3703
|
+
];
|
|
3704
|
+
var AllChains_default = AllChains;
|
|
3705
|
+
|
|
3706
|
+
// src/config/wagmi.ts
|
|
3707
|
+
import { http as http2 } from "wagmi";
|
|
3708
|
+
import { getDefaultConfig } from "@rainbow-me/rainbowkit";
|
|
3709
|
+
import {
|
|
3710
|
+
bitgetWallet,
|
|
3711
|
+
injectedWallet,
|
|
3712
|
+
metaMaskWallet,
|
|
3713
|
+
okxWallet,
|
|
3714
|
+
walletConnectWallet
|
|
3715
|
+
} from "@rainbow-me/rainbowkit/wallets";
|
|
3716
|
+
var transports = {};
|
|
3717
|
+
AllChains_default.forEach((chain) => {
|
|
3718
|
+
transports[chain.id] = http2();
|
|
3719
|
+
});
|
|
3720
|
+
var wagmiConfig = getDefaultConfig({
|
|
3721
|
+
appName: "MatchID",
|
|
3722
|
+
projectId: "9ac6ea7e07860f04616fb311b447dee9",
|
|
3723
|
+
wallets: [
|
|
3724
|
+
{
|
|
3725
|
+
groupName: "Recommended",
|
|
3726
|
+
wallets: [
|
|
3727
|
+
metaMaskWallet,
|
|
3728
|
+
walletConnectWallet,
|
|
3729
|
+
okxWallet,
|
|
3730
|
+
bitgetWallet,
|
|
3731
|
+
injectedWallet
|
|
3732
|
+
]
|
|
3733
|
+
}
|
|
3734
|
+
],
|
|
3735
|
+
chains: AllChains_default
|
|
3736
|
+
});
|
|
3737
|
+
|
|
3738
|
+
// src/MatchContext.tsx
|
|
3739
|
+
import { RainbowKitProvider } from "@rainbow-me/rainbowkit";
|
|
3228
3740
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
3229
3741
|
var queryClient = new QueryClient();
|
|
3230
3742
|
var MatchContext = createContext(void 0);
|
|
@@ -3238,7 +3750,7 @@ var MatchProvider = ({ children, appid, events, theme = "light", endpoints }) =>
|
|
|
3238
3750
|
useWalletInit({
|
|
3239
3751
|
refreshOverview: loadOverview
|
|
3240
3752
|
});
|
|
3241
|
-
return /* @__PURE__ */ jsx49(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx49(
|
|
3753
|
+
return /* @__PURE__ */ jsx49(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx49(RainbowKitProvider, { children: /* @__PURE__ */ jsx49(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx49(
|
|
3242
3754
|
MatchContext.Provider,
|
|
3243
3755
|
{
|
|
3244
3756
|
value: {
|
|
@@ -3250,7 +3762,7 @@ var MatchProvider = ({ children, appid, events, theme = "light", endpoints }) =>
|
|
|
3250
3762
|
},
|
|
3251
3763
|
children: /* @__PURE__ */ jsx49(context_default, { children })
|
|
3252
3764
|
}
|
|
3253
|
-
) });
|
|
3765
|
+
) }) }) });
|
|
3254
3766
|
};
|
|
3255
3767
|
var useMatch = () => {
|
|
3256
3768
|
const context = useContext(MatchContext);
|
|
@@ -3336,68 +3848,6 @@ __export(chains_exports, {
|
|
|
3336
3848
|
MatchMain: () => matchMain,
|
|
3337
3849
|
MatchTest: () => matchTest
|
|
3338
3850
|
});
|
|
3339
|
-
|
|
3340
|
-
// src/config/chains/MatchMain.ts
|
|
3341
|
-
import { defineChain } from "viem";
|
|
3342
|
-
var matchMain = /* @__PURE__ */ defineChain({
|
|
3343
|
-
//定义match链
|
|
3344
|
-
id: 698,
|
|
3345
|
-
name: "Matchain",
|
|
3346
|
-
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
3347
|
-
rpcUrls: {
|
|
3348
|
-
default: {
|
|
3349
|
-
http: ["https://rpc.matchain.io"]
|
|
3350
|
-
}
|
|
3351
|
-
},
|
|
3352
|
-
blockExplorers: {
|
|
3353
|
-
default: {
|
|
3354
|
-
name: "Matchscan",
|
|
3355
|
-
url: "https://matchscan.io/",
|
|
3356
|
-
apiUrl: "https://matchscan.io/api"
|
|
3357
|
-
}
|
|
3358
|
-
},
|
|
3359
|
-
iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png",
|
|
3360
|
-
contracts: {
|
|
3361
|
-
multicall3: {
|
|
3362
|
-
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
3363
|
-
}
|
|
3364
|
-
}
|
|
3365
|
-
// testnet: true,
|
|
3366
|
-
});
|
|
3367
|
-
|
|
3368
|
-
// src/config/chains/MatchTest.ts
|
|
3369
|
-
import { defineChain as defineChain2 } from "viem";
|
|
3370
|
-
var matchTest = /* @__PURE__ */ defineChain2({
|
|
3371
|
-
//定义matchTest链
|
|
3372
|
-
id: 699,
|
|
3373
|
-
name: "MatchTest",
|
|
3374
|
-
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
3375
|
-
rpcUrls: {
|
|
3376
|
-
default: {
|
|
3377
|
-
http: ["https://testnet-rpc.matchain.io"]
|
|
3378
|
-
}
|
|
3379
|
-
},
|
|
3380
|
-
blockExplorers: {
|
|
3381
|
-
default: {
|
|
3382
|
-
name: "Matchscan",
|
|
3383
|
-
url: "https://testnet.matchscan.io/",
|
|
3384
|
-
apiUrl: "https://testnet.matchscan.io/api"
|
|
3385
|
-
}
|
|
3386
|
-
},
|
|
3387
|
-
iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png",
|
|
3388
|
-
contracts: {
|
|
3389
|
-
multicall3: {
|
|
3390
|
-
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
3391
|
-
blockCreated: 751532
|
|
3392
|
-
},
|
|
3393
|
-
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
3394
|
-
ensUniversalResolver: {
|
|
3395
|
-
address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
|
|
3396
|
-
blockCreated: 5317080
|
|
3397
|
-
}
|
|
3398
|
-
}
|
|
3399
|
-
// testnet: true,
|
|
3400
|
-
});
|
|
3401
3851
|
export {
|
|
3402
3852
|
api_exports as Api,
|
|
3403
3853
|
chains_exports as Chains,
|