@rhinestone/shared-configs 2.39.0 → 2.40.0-rc.1
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/configs/chain-indexer.json +15 -0
- package/dist/configs/chains.json +61 -0
- package/dist/configs/contracts.dev.json +1 -0
- package/dist/configs/contracts.json +1 -0
- package/dist/configs/mainnets.json +6 -0
- package/dist/configs/providers.json +3 -0
- package/dist/scripts/__tests__/validation.test.js +27 -0
- package/dist/scripts/validation.d.ts +2 -1
- package/dist/scripts/validation.js +20 -2
- package/dist/src/chains.js +65 -0
- package/dist/src/generated/contracts.dev.js +1 -0
- package/dist/src/generated/contracts.js +1 -0
- package/dist/src/generated/networks.d.ts +161 -1
- package/dist/src/generated/networks.js +3 -1
- package/dist/src/generated/packageVersion.d.ts +1 -1
- package/dist/src/generated/packageVersion.js +1 -1
- package/package.json +1 -1
|
@@ -134,6 +134,21 @@
|
|
|
134
134
|
"useBloomFilters": true,
|
|
135
135
|
"vm": "evm"
|
|
136
136
|
},
|
|
137
|
+
"204": {
|
|
138
|
+
"finality": "sequencer",
|
|
139
|
+
"finality_poll_interval_ms": 15000,
|
|
140
|
+
"finality_source": "finalized",
|
|
141
|
+
"grace_ms": 30000,
|
|
142
|
+
"max_catchup_blocks": 5000,
|
|
143
|
+
"parse_concurrency": 4,
|
|
144
|
+
"poll_interval_ms": 1000,
|
|
145
|
+
"reorg_window_k": 16,
|
|
146
|
+
"reverify_delay_ms": 500,
|
|
147
|
+
"scan_batch_max_blocks": 200,
|
|
148
|
+
"streaming_poll_interval_ms": 3000,
|
|
149
|
+
"useBloomFilters": false,
|
|
150
|
+
"vm": "evm"
|
|
151
|
+
},
|
|
137
152
|
"480": {
|
|
138
153
|
"finality": "sequencer",
|
|
139
154
|
"finality_poll_interval_ms": 15000,
|
package/dist/configs/chains.json
CHANGED
|
@@ -1295,6 +1295,67 @@
|
|
|
1295
1295
|
"symbol": "WOKB"
|
|
1296
1296
|
}
|
|
1297
1297
|
},
|
|
1298
|
+
"204": {
|
|
1299
|
+
"caip2": "eip155:204",
|
|
1300
|
+
"explorer": {
|
|
1301
|
+
"url": "https://opbnb.bscscan.com",
|
|
1302
|
+
"addressPath": "/address/",
|
|
1303
|
+
"txPath": "/tx/"
|
|
1304
|
+
},
|
|
1305
|
+
"iconSlug": "opbnb",
|
|
1306
|
+
"name": "opBNB",
|
|
1307
|
+
"nativeToken": {
|
|
1308
|
+
"address": "0x0000000000000000000000000000000000000000",
|
|
1309
|
+
"decimals": 18,
|
|
1310
|
+
"symbol": "BNB"
|
|
1311
|
+
},
|
|
1312
|
+
"network": "mainnet",
|
|
1313
|
+
"providerIds": {
|
|
1314
|
+
"alchemy": null,
|
|
1315
|
+
"zerion": null
|
|
1316
|
+
},
|
|
1317
|
+
"publicRpcUrl": "https://opbnb-mainnet-rpc.bnbchain.org",
|
|
1318
|
+
"sessionCapable": true,
|
|
1319
|
+
"settlementLayers": [],
|
|
1320
|
+
"stack": "vanilla",
|
|
1321
|
+
"swapQuoters": [],
|
|
1322
|
+
"tokens": [
|
|
1323
|
+
{
|
|
1324
|
+
"address": "0x0000000000000000000000000000000000000000",
|
|
1325
|
+
"approvalSlot": null,
|
|
1326
|
+
"balanceSlot": null,
|
|
1327
|
+
"decimals": 18,
|
|
1328
|
+
"symbol": "BNB"
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"address": "0x4200000000000000000000000000000000000006",
|
|
1332
|
+
"appFee": true,
|
|
1333
|
+
"approvalSlot": 4,
|
|
1334
|
+
"balanceSlot": 3,
|
|
1335
|
+
"decimals": 18,
|
|
1336
|
+
"gasRefund": true,
|
|
1337
|
+
"priceSymbol": "BNB",
|
|
1338
|
+
"symbol": "WBNB"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"address": "0x9e5AAC1Ba1a2e6aEd6b32689DFcF62A509Ca96f3",
|
|
1342
|
+
"appFee": true,
|
|
1343
|
+
"approvalSlot": 1,
|
|
1344
|
+
"balanceSlot": 0,
|
|
1345
|
+
"decimals": 18,
|
|
1346
|
+
"gasRefund": true,
|
|
1347
|
+
"pegGroup": "USD",
|
|
1348
|
+
"priceSymbol": "USDT",
|
|
1349
|
+
"symbol": "USDT"
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
"vmType": "evm",
|
|
1353
|
+
"wrappedNativeToken": {
|
|
1354
|
+
"address": "0x4200000000000000000000000000000000000006",
|
|
1355
|
+
"decimals": 18,
|
|
1356
|
+
"symbol": "WBNB"
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1298
1359
|
"480": {
|
|
1299
1360
|
"caip2": "eip155:480",
|
|
1300
1361
|
"explorer": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"143": "monad-mainnet",
|
|
11
11
|
"146": "sonic-mainnet",
|
|
12
12
|
"196": "xlayer-mainnet",
|
|
13
|
+
"204": "opbnb-mainnet",
|
|
13
14
|
"480": "worldchain-mainnet",
|
|
14
15
|
"999": "hyperliquid-mainnet",
|
|
15
16
|
"1868": "soneium-mainnet",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"143": "monad",
|
|
42
43
|
"146": "sonic",
|
|
43
44
|
"196": "xlayer",
|
|
45
|
+
"204": "op-b-n-b",
|
|
44
46
|
"480": "worldchain",
|
|
45
47
|
"999": "hyperliquid",
|
|
46
48
|
"1868": "soneium",
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
"143": "143",
|
|
79
81
|
"146": "146",
|
|
80
82
|
"196": "196",
|
|
83
|
+
"204": "204",
|
|
81
84
|
"480": "480",
|
|
82
85
|
"999": "999",
|
|
83
86
|
"1868": "1868",
|
|
@@ -409,6 +409,33 @@ function errorsFor(chain) {
|
|
|
409
409
|
(0, bun_test_1.expect)(result.issues.some((issue) => issue.message.includes("no settlement layers"))).toBe(true);
|
|
410
410
|
(0, bun_test_1.expect)(result.hasErrors).toBe(true);
|
|
411
411
|
});
|
|
412
|
+
(0, bun_test_1.it)("only warns for a refund-only chain with zero settlement layers", () => {
|
|
413
|
+
const result = (0, validation_1.validateChainConfig)({
|
|
414
|
+
"204": validChain({
|
|
415
|
+
name: "opBNB",
|
|
416
|
+
settlementLayers: [],
|
|
417
|
+
providerIds: { alchemy: null, zerion: null },
|
|
418
|
+
}),
|
|
419
|
+
});
|
|
420
|
+
(0, bun_test_1.expect)(result.issues).toHaveLength(1);
|
|
421
|
+
(0, bun_test_1.expect)(result.issues[0].severity).toBe("warning");
|
|
422
|
+
(0, bun_test_1.expect)(result.issues[0].message).toContain("refund-only");
|
|
423
|
+
(0, bun_test_1.expect)(result.hasErrors).toBe(false);
|
|
424
|
+
});
|
|
425
|
+
(0, bun_test_1.it)("still errors for a non-EVM chain with zero layers and no EVM ingestion vendor", () => {
|
|
426
|
+
const result = (0, validation_1.validateChainConfig)({
|
|
427
|
+
"792703810": validChain({
|
|
428
|
+
name: "Solana Devnet",
|
|
429
|
+
vmType: "svm",
|
|
430
|
+
network: "testnet",
|
|
431
|
+
caip2: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
432
|
+
settlementLayers: [],
|
|
433
|
+
providerIds: { alchemy: null, zerion: null },
|
|
434
|
+
}),
|
|
435
|
+
});
|
|
436
|
+
(0, bun_test_1.expect)(result.issues.some((issue) => issue.message.includes("chain is unreachable"))).toBe(true);
|
|
437
|
+
(0, bun_test_1.expect)(result.hasErrors).toBe(true);
|
|
438
|
+
});
|
|
412
439
|
(0, bun_test_1.it)("returns warning for chain with single settlement layer", () => {
|
|
413
440
|
const chains = {
|
|
414
441
|
"100": validChain({ name: "Gnosis", settlementLayers: ["RELAY"] }),
|
|
@@ -211,7 +211,8 @@ export declare function classifyChainStacks(chains: ChainRegistry, networks: {
|
|
|
211
211
|
* Checks performed:
|
|
212
212
|
* - Structure: chain-id keys, and every field of every entry against the
|
|
213
213
|
* shapes and unions declared in src/types.ts (error)
|
|
214
|
-
* - Orphaned chains: chains with no settlement layers (error
|
|
214
|
+
* - Orphaned chains: chains with no settlement layers (error; warning when
|
|
215
|
+
* refund-only)
|
|
215
216
|
* - Single-layer fragility: chains with exactly one settlement layer (warning)
|
|
216
217
|
*/
|
|
217
218
|
export declare function validateChainConfig(chains: ChainRegistry): ValidationResult;
|
|
@@ -1229,7 +1229,8 @@ function classifyChainStacks(chains, networks) {
|
|
|
1229
1229
|
* Checks performed:
|
|
1230
1230
|
* - Structure: chain-id keys, and every field of every entry against the
|
|
1231
1231
|
* shapes and unions declared in src/types.ts (error)
|
|
1232
|
-
* - Orphaned chains: chains with no settlement layers (error
|
|
1232
|
+
* - Orphaned chains: chains with no settlement layers (error; warning when
|
|
1233
|
+
* refund-only)
|
|
1233
1234
|
* - Single-layer fragility: chains with exactly one settlement layer (warning)
|
|
1234
1235
|
*/
|
|
1235
1236
|
function validateChainConfig(chains) {
|
|
@@ -1268,7 +1269,24 @@ function validateChainConfig(chains) {
|
|
|
1268
1269
|
// Already reported structurally; skip the reachability checks below.
|
|
1269
1270
|
continue;
|
|
1270
1271
|
}
|
|
1271
|
-
|
|
1272
|
+
// A refund-only chain (EVM with no deposit ingestion vendor, as
|
|
1273
|
+
// deposit-processor's isRefundOnlyChain reads it) never bridges: its one job
|
|
1274
|
+
// is a sponsored same-chain refund, which needs no settlement layer. Non-EVM
|
|
1275
|
+
// chains also carry null/null, because they ingest outside these vendors.
|
|
1276
|
+
const providerIds = chain.providerIds;
|
|
1277
|
+
const refundOnly = chain.vmType === 'evm' &&
|
|
1278
|
+
isObject(providerIds) &&
|
|
1279
|
+
providerIds.alchemy === null &&
|
|
1280
|
+
providerIds.zerion === null;
|
|
1281
|
+
if (layers.length === 0 && refundOnly) {
|
|
1282
|
+
issues.push({
|
|
1283
|
+
severity: 'warning',
|
|
1284
|
+
chainId,
|
|
1285
|
+
chainName: chain.name,
|
|
1286
|
+
message: 'no settlement layers — refund-only, same-chain refunds only',
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
else if (layers.length === 0) {
|
|
1272
1290
|
issues.push({
|
|
1273
1291
|
severity: 'error',
|
|
1274
1292
|
chainId,
|
package/dist/src/chains.js
CHANGED
|
@@ -1335,6 +1335,71 @@ const chains = {
|
|
|
1335
1335
|
"Alchemy"
|
|
1336
1336
|
]
|
|
1337
1337
|
},
|
|
1338
|
+
"204": {
|
|
1339
|
+
"caip2": "eip155:204",
|
|
1340
|
+
"explorer": {
|
|
1341
|
+
"url": "https://opbnb.bscscan.com",
|
|
1342
|
+
"addressPath": "/address/",
|
|
1343
|
+
"txPath": "/tx/"
|
|
1344
|
+
},
|
|
1345
|
+
"iconSlug": "opbnb",
|
|
1346
|
+
"name": "opBNB",
|
|
1347
|
+
"nativeToken": {
|
|
1348
|
+
"address": "0x0000000000000000000000000000000000000000",
|
|
1349
|
+
"decimals": 18,
|
|
1350
|
+
"symbol": "BNB"
|
|
1351
|
+
},
|
|
1352
|
+
"network": "mainnet",
|
|
1353
|
+
"providerIds": {
|
|
1354
|
+
"alchemy": null,
|
|
1355
|
+
"zerion": null
|
|
1356
|
+
},
|
|
1357
|
+
"publicRpcUrl": "https://opbnb-mainnet-rpc.bnbchain.org",
|
|
1358
|
+
"sessionCapable": true,
|
|
1359
|
+
"settlementLayers": [],
|
|
1360
|
+
"stack": "vanilla",
|
|
1361
|
+
"swapQuoters": [],
|
|
1362
|
+
"tokens": [
|
|
1363
|
+
{
|
|
1364
|
+
"address": "0x0000000000000000000000000000000000000000",
|
|
1365
|
+
"approvalSlot": null,
|
|
1366
|
+
"balanceSlot": null,
|
|
1367
|
+
"decimals": 18,
|
|
1368
|
+
"symbol": "BNB"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"address": "0x4200000000000000000000000000000000000006",
|
|
1372
|
+
"appFee": true,
|
|
1373
|
+
"approvalSlot": 4,
|
|
1374
|
+
"balanceSlot": 3,
|
|
1375
|
+
"decimals": 18,
|
|
1376
|
+
"gasRefund": true,
|
|
1377
|
+
"priceSymbol": "BNB",
|
|
1378
|
+
"symbol": "WBNB"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"address": "0x9e5AAC1Ba1a2e6aEd6b32689DFcF62A509Ca96f3",
|
|
1382
|
+
"appFee": true,
|
|
1383
|
+
"approvalSlot": 1,
|
|
1384
|
+
"balanceSlot": 0,
|
|
1385
|
+
"decimals": 18,
|
|
1386
|
+
"gasRefund": true,
|
|
1387
|
+
"pegGroup": "USD",
|
|
1388
|
+
"priceSymbol": "USDT",
|
|
1389
|
+
"symbol": "USDT"
|
|
1390
|
+
}
|
|
1391
|
+
],
|
|
1392
|
+
"vmType": "evm",
|
|
1393
|
+
"wrappedNativeToken": {
|
|
1394
|
+
"address": "0x4200000000000000000000000000000000000006",
|
|
1395
|
+
"decimals": 18,
|
|
1396
|
+
"symbol": "WBNB"
|
|
1397
|
+
},
|
|
1398
|
+
"providers": [
|
|
1399
|
+
"DRPC",
|
|
1400
|
+
"Alchemy"
|
|
1401
|
+
]
|
|
1402
|
+
},
|
|
1338
1403
|
"480": {
|
|
1339
1404
|
"caip2": "eip155:480",
|
|
1340
1405
|
"explorer": {
|
|
@@ -2652,6 +2652,85 @@ declare const mainnetChains: ({
|
|
|
2652
2652
|
};
|
|
2653
2653
|
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
2654
2654
|
readonly network: "worldchain";
|
|
2655
|
+
} | {
|
|
2656
|
+
blockExplorers: {
|
|
2657
|
+
readonly default: {
|
|
2658
|
+
readonly name: "opBNB (BSCScan)";
|
|
2659
|
+
readonly url: "https://opbnb.bscscan.com";
|
|
2660
|
+
readonly apiUrl: "https://api-opbnb.bscscan.com/api";
|
|
2661
|
+
};
|
|
2662
|
+
};
|
|
2663
|
+
blockTime?: number | undefined | undefined;
|
|
2664
|
+
contracts: {
|
|
2665
|
+
readonly multicall3: {
|
|
2666
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
2667
|
+
readonly blockCreated: 512881;
|
|
2668
|
+
};
|
|
2669
|
+
readonly l2OutputOracle: {
|
|
2670
|
+
readonly 56: {
|
|
2671
|
+
readonly address: "0x153CAB79f4767E2ff862C94aa49573294B13D169";
|
|
2672
|
+
};
|
|
2673
|
+
};
|
|
2674
|
+
readonly portal: {
|
|
2675
|
+
readonly 56: {
|
|
2676
|
+
readonly address: "0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519";
|
|
2677
|
+
};
|
|
2678
|
+
};
|
|
2679
|
+
readonly l1StandardBridge: {
|
|
2680
|
+
readonly 56: {
|
|
2681
|
+
readonly address: "0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea";
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2684
|
+
readonly gasPriceOracle: {
|
|
2685
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
2686
|
+
};
|
|
2687
|
+
readonly l1Block: {
|
|
2688
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
2689
|
+
};
|
|
2690
|
+
readonly l2CrossDomainMessenger: {
|
|
2691
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
2692
|
+
};
|
|
2693
|
+
readonly l2Erc721Bridge: {
|
|
2694
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
2695
|
+
};
|
|
2696
|
+
readonly l2StandardBridge: {
|
|
2697
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
2698
|
+
};
|
|
2699
|
+
readonly l2ToL1MessagePasser: {
|
|
2700
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
2701
|
+
};
|
|
2702
|
+
};
|
|
2703
|
+
ensTlds?: readonly string[] | undefined;
|
|
2704
|
+
id: 204;
|
|
2705
|
+
name: "opBNB";
|
|
2706
|
+
nativeCurrency: {
|
|
2707
|
+
readonly name: "BNB";
|
|
2708
|
+
readonly symbol: "BNB";
|
|
2709
|
+
readonly decimals: 18;
|
|
2710
|
+
};
|
|
2711
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
2712
|
+
rpcUrls: {
|
|
2713
|
+
readonly default: {
|
|
2714
|
+
readonly http: readonly ["https://opbnb-mainnet-rpc.bnbchain.org"];
|
|
2715
|
+
};
|
|
2716
|
+
};
|
|
2717
|
+
sourceId: 56;
|
|
2718
|
+
testnet?: boolean | undefined | undefined;
|
|
2719
|
+
custom?: Record<string, unknown> | undefined;
|
|
2720
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
2721
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
2722
|
+
formatters?: undefined;
|
|
2723
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
2724
|
+
client: import("viem").Client;
|
|
2725
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2726
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
2727
|
+
client: import("viem").Client;
|
|
2728
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2729
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2730
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
2731
|
+
}] | undefined;
|
|
2732
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
2733
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
2655
2734
|
})[];
|
|
2656
2735
|
declare const testnetChains: ({
|
|
2657
2736
|
blockExplorers: {
|
|
@@ -6102,6 +6181,85 @@ declare const chains: ({
|
|
|
6102
6181
|
};
|
|
6103
6182
|
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
6104
6183
|
readonly network: "worldchain";
|
|
6184
|
+
} | {
|
|
6185
|
+
blockExplorers: {
|
|
6186
|
+
readonly default: {
|
|
6187
|
+
readonly name: "opBNB (BSCScan)";
|
|
6188
|
+
readonly url: "https://opbnb.bscscan.com";
|
|
6189
|
+
readonly apiUrl: "https://api-opbnb.bscscan.com/api";
|
|
6190
|
+
};
|
|
6191
|
+
};
|
|
6192
|
+
blockTime?: number | undefined | undefined;
|
|
6193
|
+
contracts: {
|
|
6194
|
+
readonly multicall3: {
|
|
6195
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
6196
|
+
readonly blockCreated: 512881;
|
|
6197
|
+
};
|
|
6198
|
+
readonly l2OutputOracle: {
|
|
6199
|
+
readonly 56: {
|
|
6200
|
+
readonly address: "0x153CAB79f4767E2ff862C94aa49573294B13D169";
|
|
6201
|
+
};
|
|
6202
|
+
};
|
|
6203
|
+
readonly portal: {
|
|
6204
|
+
readonly 56: {
|
|
6205
|
+
readonly address: "0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519";
|
|
6206
|
+
};
|
|
6207
|
+
};
|
|
6208
|
+
readonly l1StandardBridge: {
|
|
6209
|
+
readonly 56: {
|
|
6210
|
+
readonly address: "0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea";
|
|
6211
|
+
};
|
|
6212
|
+
};
|
|
6213
|
+
readonly gasPriceOracle: {
|
|
6214
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
6215
|
+
};
|
|
6216
|
+
readonly l1Block: {
|
|
6217
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
6218
|
+
};
|
|
6219
|
+
readonly l2CrossDomainMessenger: {
|
|
6220
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
6221
|
+
};
|
|
6222
|
+
readonly l2Erc721Bridge: {
|
|
6223
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
6224
|
+
};
|
|
6225
|
+
readonly l2StandardBridge: {
|
|
6226
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
6227
|
+
};
|
|
6228
|
+
readonly l2ToL1MessagePasser: {
|
|
6229
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
6230
|
+
};
|
|
6231
|
+
};
|
|
6232
|
+
ensTlds?: readonly string[] | undefined;
|
|
6233
|
+
id: 204;
|
|
6234
|
+
name: "opBNB";
|
|
6235
|
+
nativeCurrency: {
|
|
6236
|
+
readonly name: "BNB";
|
|
6237
|
+
readonly symbol: "BNB";
|
|
6238
|
+
readonly decimals: 18;
|
|
6239
|
+
};
|
|
6240
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
6241
|
+
rpcUrls: {
|
|
6242
|
+
readonly default: {
|
|
6243
|
+
readonly http: readonly ["https://opbnb-mainnet-rpc.bnbchain.org"];
|
|
6244
|
+
};
|
|
6245
|
+
};
|
|
6246
|
+
sourceId: 56;
|
|
6247
|
+
testnet?: boolean | undefined | undefined;
|
|
6248
|
+
custom?: Record<string, unknown> | undefined;
|
|
6249
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
6250
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
6251
|
+
formatters?: undefined;
|
|
6252
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
6253
|
+
client: import("viem").Client;
|
|
6254
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
6255
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
6256
|
+
client: import("viem").Client;
|
|
6257
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
6258
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
6259
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
6260
|
+
}] | undefined;
|
|
6261
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
6262
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
6105
6263
|
} | {
|
|
6106
6264
|
blockExplorers: {
|
|
6107
6265
|
readonly default: {
|
|
@@ -6923,7 +7081,8 @@ declare enum MainnetNetwork {
|
|
|
6923
7081
|
XLAYER,
|
|
6924
7082
|
ARC,
|
|
6925
7083
|
RONIN,
|
|
6926
|
-
WORLDCHAIN
|
|
7084
|
+
WORLDCHAIN,
|
|
7085
|
+
OPBNB
|
|
6927
7086
|
}
|
|
6928
7087
|
declare enum TestnetNetwork {
|
|
6929
7088
|
ETHEREUM_SEPOLIA,
|
|
@@ -6940,6 +7099,7 @@ declare enum OPStackChains {
|
|
|
6940
7099
|
MAINNET_UNICHAIN,
|
|
6941
7100
|
MAINNET_INK,
|
|
6942
7101
|
MAINNET_WORLDCHAIN,
|
|
7102
|
+
MAINNET_OPBNB,
|
|
6943
7103
|
TESTNET_OPTIMISM,
|
|
6944
7104
|
TESTNET_BASE
|
|
6945
7105
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OPStackChains = exports.TestnetNetwork = exports.MainnetNetwork = exports.chains = exports.testnetChains = exports.mainnetChains = void 0;
|
|
4
4
|
// Auto-generated by scripts/generate.ts. Do not edit manually.
|
|
5
5
|
const chains_1 = require("viem/chains");
|
|
6
|
-
const mainnetChains = [chains_1.mainnet, chains_1.optimism, chains_1.base, chains_1.arbitrum, chains_1.polygon, chains_1.soneium, chains_1.sonic, chains_1.plasma, chains_1.gnosis, chains_1.bsc, chains_1.hyperEvm, chains_1.monad, chains_1.unichain, chains_1.katana, chains_1.robinhood, chains_1.avalanche, chains_1.ink, chains_1.xLayer, chains_1.arc, chains_1.ronin, chains_1.worldchain];
|
|
6
|
+
const mainnetChains = [chains_1.mainnet, chains_1.optimism, chains_1.base, chains_1.arbitrum, chains_1.polygon, chains_1.soneium, chains_1.sonic, chains_1.plasma, chains_1.gnosis, chains_1.bsc, chains_1.hyperEvm, chains_1.monad, chains_1.unichain, chains_1.katana, chains_1.robinhood, chains_1.avalanche, chains_1.ink, chains_1.xLayer, chains_1.arc, chains_1.ronin, chains_1.worldchain, chains_1.opBNB];
|
|
7
7
|
exports.mainnetChains = mainnetChains;
|
|
8
8
|
const testnetChains = [chains_1.sepolia, chains_1.optimismSepolia, chains_1.baseSepolia, chains_1.arbitrumSepolia, chains_1.plasmaTestnet];
|
|
9
9
|
exports.testnetChains = testnetChains;
|
|
@@ -37,6 +37,7 @@ var MainnetNetwork;
|
|
|
37
37
|
MainnetNetwork[MainnetNetwork["ARC"] = chains_1.arc.id] = "ARC";
|
|
38
38
|
MainnetNetwork[MainnetNetwork["RONIN"] = chains_1.ronin.id] = "RONIN";
|
|
39
39
|
MainnetNetwork[MainnetNetwork["WORLDCHAIN"] = chains_1.worldchain.id] = "WORLDCHAIN";
|
|
40
|
+
MainnetNetwork[MainnetNetwork["OPBNB"] = chains_1.opBNB.id] = "OPBNB";
|
|
40
41
|
})(MainnetNetwork || (exports.MainnetNetwork = MainnetNetwork = {}));
|
|
41
42
|
var TestnetNetwork;
|
|
42
43
|
(function (TestnetNetwork) {
|
|
@@ -55,6 +56,7 @@ var OPStackChains;
|
|
|
55
56
|
OPStackChains[OPStackChains["MAINNET_UNICHAIN"] = chains_1.unichain.id] = "MAINNET_UNICHAIN";
|
|
56
57
|
OPStackChains[OPStackChains["MAINNET_INK"] = chains_1.ink.id] = "MAINNET_INK";
|
|
57
58
|
OPStackChains[OPStackChains["MAINNET_WORLDCHAIN"] = chains_1.worldchain.id] = "MAINNET_WORLDCHAIN";
|
|
59
|
+
OPStackChains[OPStackChains["MAINNET_OPBNB"] = chains_1.opBNB.id] = "MAINNET_OPBNB";
|
|
58
60
|
OPStackChains[OPStackChains["TESTNET_OPTIMISM"] = chains_1.optimismSepolia.id] = "TESTNET_OPTIMISM";
|
|
59
61
|
OPStackChains[OPStackChains["TESTNET_BASE"] = chains_1.baseSepolia.id] = "TESTNET_BASE";
|
|
60
62
|
})(OPStackChains || (exports.OPStackChains = OPStackChains = {}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const PACKAGE_VERSION = "2.
|
|
1
|
+
declare const PACKAGE_VERSION = "2.40.0-rc.1";
|
|
2
2
|
export { PACKAGE_VERSION };
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PACKAGE_VERSION = void 0;
|
|
4
4
|
// Auto-generated by scripts/generate.ts. Do not edit manually.
|
|
5
|
-
const PACKAGE_VERSION = "2.
|
|
5
|
+
const PACKAGE_VERSION = "2.40.0-rc.1";
|
|
6
6
|
exports.PACKAGE_VERSION = PACKAGE_VERSION;
|