@flaunch/sdk 0.9.16 → 0.9.19

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.
@@ -9,7 +9,7 @@ function defineChain(chain) {
9
9
  };
10
10
  }
11
11
 
12
- const version = '2.29.2';
12
+ const version = '2.37.12';
13
13
 
14
14
  let errorConfig = {
15
15
  getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
@@ -609,8 +609,8 @@ function defineFormatter(type, format) {
609
609
  return ({ exclude, format: overrides, }) => {
610
610
  return {
611
611
  exclude,
612
- format: (args) => {
613
- const formatted = format(args);
612
+ format: (args, action) => {
613
+ const formatted = format(args, action);
614
614
  if (exclude) {
615
615
  for (const key of exclude) {
616
616
  delete formatted[key];
@@ -618,7 +618,7 @@ function defineFormatter(type, format) {
618
618
  }
619
619
  return {
620
620
  ...formatted,
621
- ...overrides(args),
621
+ ...overrides(args, action),
622
622
  };
623
623
  },
624
624
  type,
@@ -633,7 +633,7 @@ const transactionType = {
633
633
  '0x3': 'eip4844',
634
634
  '0x4': 'eip7702',
635
635
  };
636
- function formatTransaction(transaction) {
636
+ function formatTransaction(transaction, _) {
637
637
  const transaction_ = {
638
638
  ...transaction,
639
639
  blockHash: transaction.blockHash ? transaction.blockHash : null,
@@ -711,7 +711,7 @@ function formatAuthorizationList$1(authorizationList) {
711
711
  }));
712
712
  }
713
713
 
714
- function formatBlock(block) {
714
+ function formatBlock(block, _) {
715
715
  const transactions = (block.transactions ?? []).map((transaction) => {
716
716
  if (typeof transaction === 'string')
717
717
  return transaction;
@@ -759,7 +759,7 @@ const receiptStatuses = {
759
759
  '0x0': 'reverted',
760
760
  '0x1': 'success',
761
761
  };
762
- function formatTransactionReceipt(transactionReceipt) {
762
+ function formatTransactionReceipt(transactionReceipt, _) {
763
763
  const receipt = {
764
764
  ...transactionReceipt,
765
765
  blockNumber: transactionReceipt.blockNumber
@@ -806,7 +806,7 @@ const rpcTransactionType = {
806
806
  eip4844: '0x3',
807
807
  eip7702: '0x4',
808
808
  };
809
- function formatTransactionRequest(request) {
809
+ function formatTransactionRequest(request, _) {
810
810
  const rpcRequest = {};
811
811
  if (typeof request.authorizationList !== 'undefined')
812
812
  rpcRequest.authorizationList = formatAuthorizationList(request.authorizationList);
@@ -1326,18 +1326,18 @@ function blobsToProofs(parameters) {
1326
1326
  }
1327
1327
 
1328
1328
  /**
1329
- * Internal assertion helpers.
1329
+ * Utilities for hex, bytes, CSPRNG.
1330
1330
  * @module
1331
1331
  */
1332
+ /** Checks if something is Uint8Array. Be careful: nodejs Buffer will return true. */
1333
+ function isBytes(a) {
1334
+ return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
1335
+ }
1332
1336
  /** Asserts something is positive integer. */
1333
1337
  function anumber(n) {
1334
1338
  if (!Number.isSafeInteger(n) || n < 0)
1335
1339
  throw new Error('positive integer expected, got ' + n);
1336
1340
  }
1337
- /** Is number an Uint8Array? Copied from utils for perf. */
1338
- function isBytes(a) {
1339
- return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
1340
- }
1341
1341
  /** Asserts something is Uint8Array. */
1342
1342
  function abytes(b, ...lengths) {
1343
1343
  if (!isBytes(b))
@@ -1360,15 +1360,17 @@ function aoutput(out, instance) {
1360
1360
  throw new Error('digestInto() expects output buffer of length at least ' + min);
1361
1361
  }
1362
1362
  }
1363
-
1364
- /**
1365
- * Utilities for hex, bytes, CSPRNG.
1366
- * @module
1367
- */
1363
+ /** Cast u8 / u16 / u32 to u32. */
1368
1364
  function u32(arr) {
1369
1365
  return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
1370
1366
  }
1371
- // Cast array to view
1367
+ /** Zeroize a byte array. Warning: JS provides no guarantees. */
1368
+ function clean(...arrays) {
1369
+ for (let i = 0; i < arrays.length; i++) {
1370
+ arrays[i].fill(0);
1371
+ }
1372
+ }
1373
+ /** Create DataView of an array for easy byte-level manipulation. */
1372
1374
  function createView(arr) {
1373
1375
  return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
1374
1376
  }
@@ -1378,7 +1380,7 @@ function rotr(word, shift) {
1378
1380
  }
1379
1381
  /** Is current platform little-endian? Most are. Big-Endian platform: IBM */
1380
1382
  const isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();
1381
- // The byte swap operation for uint32
1383
+ /** The byte swap operation for uint32 */
1382
1384
  function byteSwap(word) {
1383
1385
  return (((word << 24) & 0xff000000) |
1384
1386
  ((word << 8) & 0xff0000) |
@@ -1390,17 +1392,18 @@ function byteSwap32(arr) {
1390
1392
  for (let i = 0; i < arr.length; i++) {
1391
1393
  arr[i] = byteSwap(arr[i]);
1392
1394
  }
1395
+ return arr;
1393
1396
  }
1394
- // Built-in hex conversion https://caniuse.com/mdn-javascript_builtins_uint8array_fromhex
1395
- // @ts-ignore
1396
- typeof Uint8Array.from([]).toHex === 'function' && typeof Uint8Array.fromHex === 'function';
1397
+ const swap32IfBE = isLE
1398
+ ? (u) => u
1399
+ : byteSwap32;
1397
1400
  /**
1398
- * Convert JS string to byte array.
1399
- * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
1401
+ * Converts string to bytes using UTF8 encoding.
1402
+ * @example utf8ToBytes('abc') // Uint8Array.from([97, 98, 99])
1400
1403
  */
1401
1404
  function utf8ToBytes(str) {
1402
1405
  if (typeof str !== 'string')
1403
- throw new Error('utf8ToBytes expected string, got ' + typeof str);
1406
+ throw new Error('string expected');
1404
1407
  return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
1405
1408
  }
1406
1409
  /**
@@ -1416,13 +1419,9 @@ function toBytes(data) {
1416
1419
  }
1417
1420
  /** For runtime check if class implements interface */
1418
1421
  class Hash {
1419
- // Safe version that clones internal state
1420
- clone() {
1421
- return this._cloneInto();
1422
- }
1423
1422
  }
1424
1423
  /** Wraps hash function, creating an interface on top of it */
1425
- function wrapConstructor(hashCons) {
1424
+ function createHasher(hashCons) {
1426
1425
  const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
1427
1426
  const tmp = hashCons();
1428
1427
  hashC.outputLen = tmp.outputLen;
@@ -1476,8 +1475,9 @@ class HashMD extends Hash {
1476
1475
  }
1477
1476
  update(data) {
1478
1477
  aexists(this);
1479
- const { view, buffer, blockLen } = this;
1480
1478
  data = toBytes(data);
1479
+ abytes(data);
1480
+ const { view, buffer, blockLen } = this;
1481
1481
  const len = data.length;
1482
1482
  for (let pos = 0; pos < len;) {
1483
1483
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -1511,7 +1511,7 @@ class HashMD extends Hash {
1511
1511
  let { pos } = this;
1512
1512
  // append the bit '1' to the message
1513
1513
  buffer[pos++] = 0b10000000;
1514
- this.buffer.subarray(pos).fill(0);
1514
+ clean(this.buffer.subarray(pos));
1515
1515
  // we have less than padOffset left in buffer, so we cannot put length in
1516
1516
  // current block, need process it and pad again
1517
1517
  if (this.padOffset > blockLen - pos) {
@@ -1549,28 +1549,69 @@ class HashMD extends Hash {
1549
1549
  to || (to = new this.constructor());
1550
1550
  to.set(...this.get());
1551
1551
  const { blockLen, buffer, length, finished, destroyed, pos } = this;
1552
+ to.destroyed = destroyed;
1553
+ to.finished = finished;
1552
1554
  to.length = length;
1553
1555
  to.pos = pos;
1554
- to.finished = finished;
1555
- to.destroyed = destroyed;
1556
1556
  if (length % blockLen)
1557
1557
  to.buffer.set(buffer);
1558
1558
  return to;
1559
1559
  }
1560
+ clone() {
1561
+ return this._cloneInto();
1562
+ }
1560
1563
  }
1564
+ /**
1565
+ * Initial SHA-2 state: fractional parts of square roots of first 16 primes 2..53.
1566
+ * Check out `test/misc/sha2-gen-iv.js` for recomputation guide.
1567
+ */
1568
+ /** Initial SHA256 state. Bits 0..32 of frac part of sqrt of primes 2..19 */
1569
+ const SHA256_IV = /* @__PURE__ */ Uint32Array.from([
1570
+ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
1571
+ ]);
1561
1572
 
1562
1573
  /**
1563
- * SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.
1564
- *
1565
- * To break sha256 using birthday attack, attackers need to try 2^128 hashes.
1566
- * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
1567
- *
1568
- * Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
1574
+ * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
1575
+ * @todo re-check https://issues.chromium.org/issues/42212588
1569
1576
  * @module
1570
1577
  */
1571
- /** Round constants: first 32 bits of fractional parts of the cube roots of the first 64 primes 2..311). */
1578
+ const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
1579
+ const _32n = /* @__PURE__ */ BigInt(32);
1580
+ function fromBig(n, le = false) {
1581
+ if (le)
1582
+ return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };
1583
+ return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
1584
+ }
1585
+ function split(lst, le = false) {
1586
+ const len = lst.length;
1587
+ let Ah = new Uint32Array(len);
1588
+ let Al = new Uint32Array(len);
1589
+ for (let i = 0; i < len; i++) {
1590
+ const { h, l } = fromBig(lst[i], le);
1591
+ [Ah[i], Al[i]] = [h, l];
1592
+ }
1593
+ return [Ah, Al];
1594
+ }
1595
+ // Left rotate for Shift in [1, 32)
1596
+ const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));
1597
+ const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));
1598
+ // Left rotate for Shift in (32, 64), NOTE: 32 is special case.
1599
+ const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));
1600
+ const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
1601
+
1602
+ /**
1603
+ * SHA2 hash function. A.k.a. sha256, sha384, sha512, sha512_224, sha512_256.
1604
+ * SHA256 is the fastest hash implementable in JS, even faster than Blake3.
1605
+ * Check out [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and
1606
+ * [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
1607
+ * @module
1608
+ */
1609
+ /**
1610
+ * Round constants:
1611
+ * First 32 bits of fractional parts of the cube roots of the first 64 primes 2..311)
1612
+ */
1572
1613
  // prettier-ignore
1573
- const SHA256_K = /* @__PURE__ */ new Uint32Array([
1614
+ const SHA256_K = /* @__PURE__ */ Uint32Array.from([
1574
1615
  0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
1575
1616
  0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
1576
1617
  0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
@@ -1580,15 +1621,7 @@ const SHA256_K = /* @__PURE__ */ new Uint32Array([
1580
1621
  0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
1581
1622
  0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
1582
1623
  ]);
1583
- /** Initial state: first 32 bits of fractional parts of the square roots of the first 8 primes 2..19. */
1584
- // prettier-ignore
1585
- const SHA256_IV = /* @__PURE__ */ new Uint32Array([
1586
- 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
1587
- ]);
1588
- /**
1589
- * Temporary buffer, not used to store anything between runs.
1590
- * Named this way because it matches specification.
1591
- */
1624
+ /** Reusable temporary buffer. "W" comes straight from spec. */
1592
1625
  const SHA256_W = /* @__PURE__ */ new Uint32Array(64);
1593
1626
  class SHA256 extends HashMD {
1594
1627
  constructor(outputLen = 32) {
@@ -1658,15 +1691,34 @@ class SHA256 extends HashMD {
1658
1691
  this.set(A, B, C, D, E, F, G, H);
1659
1692
  }
1660
1693
  roundClean() {
1661
- SHA256_W.fill(0);
1694
+ clean(SHA256_W);
1662
1695
  }
1663
1696
  destroy() {
1664
1697
  this.set(0, 0, 0, 0, 0, 0, 0, 0);
1665
- this.buffer.fill(0);
1698
+ clean(this.buffer);
1666
1699
  }
1667
1700
  }
1668
- /** SHA2-256 hash function */
1669
- const sha256$1 = /* @__PURE__ */ wrapConstructor(() => new SHA256());
1701
+ /**
1702
+ * SHA2-256 hash function from RFC 4634.
1703
+ *
1704
+ * It is the fastest JS hash, even faster than Blake3.
1705
+ * To break sha256 using birthday attack, attackers need to try 2^128 hashes.
1706
+ * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
1707
+ */
1708
+ const sha256$2 = /* @__PURE__ */ createHasher(() => new SHA256());
1709
+
1710
+ /**
1711
+ * SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.
1712
+ *
1713
+ * To break sha256 using birthday attack, attackers need to try 2^128 hashes.
1714
+ * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
1715
+ *
1716
+ * Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
1717
+ * @module
1718
+ * @deprecated
1719
+ */
1720
+ /** @deprecated Use import from `noble/hashes/sha2` module */
1721
+ const sha256$1 = sha256$2;
1670
1722
 
1671
1723
  function sha256(value, to_) {
1672
1724
  const to = to_ || 'hex';
@@ -1966,34 +2018,6 @@ class LruMap extends Map {
1966
2018
  }
1967
2019
  }
1968
2020
 
1969
- /**
1970
- * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
1971
- * @todo re-check https://issues.chromium.org/issues/42212588
1972
- * @module
1973
- */
1974
- const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
1975
- const _32n = /* @__PURE__ */ BigInt(32);
1976
- function fromBig(n, le = false) {
1977
- if (le)
1978
- return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };
1979
- return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
1980
- }
1981
- function split(lst, le = false) {
1982
- let Ah = new Uint32Array(lst.length);
1983
- let Al = new Uint32Array(lst.length);
1984
- for (let i = 0; i < lst.length; i++) {
1985
- const { h, l } = fromBig(lst[i], le);
1986
- [Ah[i], Al[i]] = [h, l];
1987
- }
1988
- return [Ah, Al];
1989
- }
1990
- // Left rotate for Shift in [1, 32)
1991
- const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));
1992
- const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));
1993
- // Left rotate for Shift in (32, 64), NOTE: 32 is special case.
1994
- const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));
1995
- const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
1996
-
1997
2021
  /**
1998
2022
  * SHA3 (keccak) hash function, based on a new "Sponge function" design.
1999
2023
  * Different from older hashes, the internal state is bigger than output size.
@@ -2005,16 +2029,18 @@ const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
2005
2029
  * Check out `sha3-addons` module for cSHAKE, k12, and others.
2006
2030
  * @module
2007
2031
  */
2032
+ // No __PURE__ annotations in sha3 header:
2033
+ // EVERYTHING is in fact used on every export.
2008
2034
  // Various per round constants calculations
2035
+ const _0n = BigInt(0);
2036
+ const _1n = BigInt(1);
2037
+ const _2n = BigInt(2);
2038
+ const _7n = BigInt(7);
2039
+ const _256n = BigInt(256);
2040
+ const _0x71n = BigInt(0x71);
2009
2041
  const SHA3_PI = [];
2010
2042
  const SHA3_ROTL = [];
2011
2043
  const _SHA3_IOTA = [];
2012
- const _0n = /* @__PURE__ */ BigInt(0);
2013
- const _1n = /* @__PURE__ */ BigInt(1);
2014
- const _2n = /* @__PURE__ */ BigInt(2);
2015
- const _7n = /* @__PURE__ */ BigInt(7);
2016
- const _256n = /* @__PURE__ */ BigInt(256);
2017
- const _0x71n = /* @__PURE__ */ BigInt(0x71);
2018
2044
  for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
2019
2045
  // Pi
2020
2046
  [x, y] = [y, (2 * x + 3 * y) % 5];
@@ -2030,7 +2056,9 @@ for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
2030
2056
  }
2031
2057
  _SHA3_IOTA.push(t);
2032
2058
  }
2033
- const [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);
2059
+ const IOTAS = split(_SHA3_IOTA, true);
2060
+ const SHA3_IOTA_H = IOTAS[0];
2061
+ const SHA3_IOTA_L = IOTAS[1];
2034
2062
  // Left rotation (without 0, 32, 64)
2035
2063
  const rotlH = (h, l, s) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s));
2036
2064
  const rotlL = (h, l, s) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s));
@@ -2078,7 +2106,7 @@ function keccakP(s, rounds = 24) {
2078
2106
  s[0] ^= SHA3_IOTA_H[round];
2079
2107
  s[1] ^= SHA3_IOTA_L[round];
2080
2108
  }
2081
- B.fill(0);
2109
+ clean(B);
2082
2110
  }
2083
2111
  /** Keccak sponge function. */
2084
2112
  class Keccak extends Hash {
@@ -2099,24 +2127,26 @@ class Keccak extends Hash {
2099
2127
  anumber(outputLen);
2100
2128
  // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes
2101
2129
  // 0 < blockLen < 200
2102
- if (0 >= this.blockLen || this.blockLen >= 200)
2103
- throw new Error('Sha3 supports only keccak-f1600 function');
2130
+ if (!(0 < blockLen && blockLen < 200))
2131
+ throw new Error('only keccak-f1600 function is supported');
2104
2132
  this.state = new Uint8Array(200);
2105
2133
  this.state32 = u32(this.state);
2106
2134
  }
2135
+ clone() {
2136
+ return this._cloneInto();
2137
+ }
2107
2138
  keccak() {
2108
- if (!isLE)
2109
- byteSwap32(this.state32);
2139
+ swap32IfBE(this.state32);
2110
2140
  keccakP(this.state32, this.rounds);
2111
- if (!isLE)
2112
- byteSwap32(this.state32);
2141
+ swap32IfBE(this.state32);
2113
2142
  this.posOut = 0;
2114
2143
  this.pos = 0;
2115
2144
  }
2116
2145
  update(data) {
2117
2146
  aexists(this);
2118
- const { blockLen, state } = this;
2119
2147
  data = toBytes(data);
2148
+ abytes(data);
2149
+ const { blockLen, state } = this;
2120
2150
  const len = data.length;
2121
2151
  for (let pos = 0; pos < len;) {
2122
2152
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -2178,7 +2208,7 @@ class Keccak extends Hash {
2178
2208
  }
2179
2209
  destroy() {
2180
2210
  this.destroyed = true;
2181
- this.state.fill(0);
2211
+ clean(this.state);
2182
2212
  }
2183
2213
  _cloneInto(to) {
2184
2214
  const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
@@ -2196,9 +2226,9 @@ class Keccak extends Hash {
2196
2226
  return to;
2197
2227
  }
2198
2228
  }
2199
- const gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));
2229
+ const gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
2200
2230
  /** keccak-256 hash function. Different from SHA3-256. */
2201
- const keccak_256 = /* @__PURE__ */ gen(0x01, 136, 256 / 8);
2231
+ const keccak_256 = /* @__PURE__ */ (() => gen(0x01, 136, 256 / 8))();
2202
2232
 
2203
2233
  function keccak256(value, to_) {
2204
2234
  const to = to_ || 'hex';
@@ -2467,13 +2497,13 @@ function serializeTransactionEIP7702(transaction, signature) {
2467
2497
  return concatHex([
2468
2498
  '0x04',
2469
2499
  toRlp([
2470
- toHex(chainId),
2471
- nonce ? toHex(nonce) : '0x',
2472
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : '0x',
2473
- maxFeePerGas ? toHex(maxFeePerGas) : '0x',
2474
- gas ? toHex(gas) : '0x',
2500
+ numberToHex(chainId),
2501
+ nonce ? numberToHex(nonce) : '0x',
2502
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
2503
+ maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
2504
+ gas ? numberToHex(gas) : '0x',
2475
2505
  to ?? '0x',
2476
- value ? toHex(value) : '0x',
2506
+ value ? numberToHex(value) : '0x',
2477
2507
  data ?? '0x',
2478
2508
  serializedAccessList,
2479
2509
  serializedAuthorizationList,
@@ -2509,16 +2539,16 @@ function serializeTransactionEIP4844(transaction, signature) {
2509
2539
  }
2510
2540
  const serializedAccessList = serializeAccessList(accessList);
2511
2541
  const serializedTransaction = [
2512
- toHex(chainId),
2513
- nonce ? toHex(nonce) : '0x',
2514
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : '0x',
2515
- maxFeePerGas ? toHex(maxFeePerGas) : '0x',
2516
- gas ? toHex(gas) : '0x',
2542
+ numberToHex(chainId),
2543
+ nonce ? numberToHex(nonce) : '0x',
2544
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
2545
+ maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
2546
+ gas ? numberToHex(gas) : '0x',
2517
2547
  to ?? '0x',
2518
- value ? toHex(value) : '0x',
2548
+ value ? numberToHex(value) : '0x',
2519
2549
  data ?? '0x',
2520
2550
  serializedAccessList,
2521
- maxFeePerBlobGas ? toHex(maxFeePerBlobGas) : '0x',
2551
+ maxFeePerBlobGas ? numberToHex(maxFeePerBlobGas) : '0x',
2522
2552
  blobVersionedHashes ?? [],
2523
2553
  ...toYParitySignatureArray(transaction, signature),
2524
2554
  ];
@@ -2546,13 +2576,13 @@ function serializeTransactionEIP1559(transaction, signature) {
2546
2576
  assertTransactionEIP1559(transaction);
2547
2577
  const serializedAccessList = serializeAccessList(accessList);
2548
2578
  const serializedTransaction = [
2549
- toHex(chainId),
2550
- nonce ? toHex(nonce) : '0x',
2551
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : '0x',
2552
- maxFeePerGas ? toHex(maxFeePerGas) : '0x',
2553
- gas ? toHex(gas) : '0x',
2579
+ numberToHex(chainId),
2580
+ nonce ? numberToHex(nonce) : '0x',
2581
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
2582
+ maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
2583
+ gas ? numberToHex(gas) : '0x',
2554
2584
  to ?? '0x',
2555
- value ? toHex(value) : '0x',
2585
+ value ? numberToHex(value) : '0x',
2556
2586
  data ?? '0x',
2557
2587
  serializedAccessList,
2558
2588
  ...toYParitySignatureArray(transaction, signature),
@@ -2567,12 +2597,12 @@ function serializeTransactionEIP2930(transaction, signature) {
2567
2597
  assertTransactionEIP2930(transaction);
2568
2598
  const serializedAccessList = serializeAccessList(accessList);
2569
2599
  const serializedTransaction = [
2570
- toHex(chainId),
2571
- nonce ? toHex(nonce) : '0x',
2572
- gasPrice ? toHex(gasPrice) : '0x',
2573
- gas ? toHex(gas) : '0x',
2600
+ numberToHex(chainId),
2601
+ nonce ? numberToHex(nonce) : '0x',
2602
+ gasPrice ? numberToHex(gasPrice) : '0x',
2603
+ gas ? numberToHex(gas) : '0x',
2574
2604
  to ?? '0x',
2575
- value ? toHex(value) : '0x',
2605
+ value ? numberToHex(value) : '0x',
2576
2606
  data ?? '0x',
2577
2607
  serializedAccessList,
2578
2608
  ...toYParitySignatureArray(transaction, signature),
@@ -2586,11 +2616,11 @@ function serializeTransactionLegacy(transaction, signature) {
2586
2616
  const { chainId = 0, gas, data, nonce, to, value, gasPrice } = transaction;
2587
2617
  assertTransactionLegacy(transaction);
2588
2618
  let serializedTransaction = [
2589
- nonce ? toHex(nonce) : '0x',
2590
- gasPrice ? toHex(gasPrice) : '0x',
2591
- gas ? toHex(gas) : '0x',
2619
+ nonce ? numberToHex(nonce) : '0x',
2620
+ gasPrice ? numberToHex(gasPrice) : '0x',
2621
+ gas ? numberToHex(gas) : '0x',
2592
2622
  to ?? '0x',
2593
- value ? toHex(value) : '0x',
2623
+ value ? numberToHex(value) : '0x',
2594
2624
  data ?? '0x',
2595
2625
  ];
2596
2626
  if (signature) {
@@ -2615,7 +2645,7 @@ function serializeTransactionLegacy(transaction, signature) {
2615
2645
  const s = trim(signature.s);
2616
2646
  serializedTransaction = [
2617
2647
  ...serializedTransaction,
2618
- toHex(v),
2648
+ numberToHex(v),
2619
2649
  r === '0x00' ? '0x' : r,
2620
2650
  s === '0x00' ? '0x' : s,
2621
2651
  ];
@@ -2623,7 +2653,7 @@ function serializeTransactionLegacy(transaction, signature) {
2623
2653
  else if (chainId > 0) {
2624
2654
  serializedTransaction = [
2625
2655
  ...serializedTransaction,
2626
- toHex(chainId),
2656
+ numberToHex(chainId),
2627
2657
  '0x',
2628
2658
  '0x',
2629
2659
  ];
@@ -2643,12 +2673,12 @@ function toYParitySignatureArray(transaction, signature_) {
2643
2673
  const s = trim(signature.s);
2644
2674
  const yParity_ = (() => {
2645
2675
  if (typeof yParity === 'number')
2646
- return yParity ? toHex(1) : '0x';
2676
+ return yParity ? numberToHex(1) : '0x';
2647
2677
  if (v === 0n)
2648
2678
  return '0x';
2649
2679
  if (v === 1n)
2650
- return toHex(1);
2651
- return v === 27n ? '0x' : toHex(1);
2680
+ return numberToHex(1);
2681
+ return v === 27n ? '0x' : numberToHex(1);
2652
2682
  })();
2653
2683
  return [yParity_, r === '0x00' ? '0x' : r, s === '0x00' ? '0x' : s];
2654
2684
  }
@@ -2759,12 +2789,13 @@ function assertTransactionDeposit(transaction) {
2759
2789
  }
2760
2790
 
2761
2791
  const chainConfig$1 = {
2792
+ blockTime: 2_000,
2762
2793
  contracts,
2763
2794
  formatters: formatters$1,
2764
2795
  serializers: serializers$1,
2765
2796
  };
2766
2797
 
2767
- const sourceId$K = 1; // mainnet
2798
+ const sourceId$M = 1; // mainnet
2768
2799
  /*#__PURE__*/ defineChain({
2769
2800
  ...chainConfig$1,
2770
2801
  id: 888888888,
@@ -2785,27 +2816,27 @@ const sourceId$K = 1; // mainnet
2785
2816
  contracts: {
2786
2817
  ...chainConfig$1.contracts,
2787
2818
  l2OutputOracle: {
2788
- [sourceId$K]: {
2819
+ [sourceId$M]: {
2789
2820
  address: '0xB09DC08428C8b4EFB4ff9C0827386CDF34277996',
2790
2821
  },
2791
2822
  },
2792
2823
  portal: {
2793
- [sourceId$K]: {
2824
+ [sourceId$M]: {
2794
2825
  address: '0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68',
2795
2826
  blockCreated: 19070571,
2796
2827
  },
2797
2828
  },
2798
2829
  l1StandardBridge: {
2799
- [sourceId$K]: {
2830
+ [sourceId$M]: {
2800
2831
  address: '0xd5e3eDf5b68135D559D572E26bF863FBC1950033',
2801
2832
  blockCreated: 19070571,
2802
2833
  },
2803
2834
  },
2804
2835
  },
2805
- sourceId: sourceId$K,
2836
+ sourceId: sourceId$M,
2806
2837
  });
2807
2838
 
2808
- const sourceId$J = 11_155_111; // sepolia
2839
+ const sourceId$L = 11_155_111; // sepolia
2809
2840
  /*#__PURE__*/ defineChain({
2810
2841
  ...chainConfig$1,
2811
2842
  id: 28122024,
@@ -2826,27 +2857,27 @@ const sourceId$J = 11_155_111; // sepolia
2826
2857
  contracts: {
2827
2858
  ...chainConfig$1.contracts,
2828
2859
  l2OutputOracle: {
2829
- [sourceId$J]: {
2860
+ [sourceId$L]: {
2830
2861
  address: '0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB',
2831
2862
  },
2832
2863
  },
2833
2864
  portal: {
2834
- [sourceId$J]: {
2865
+ [sourceId$L]: {
2835
2866
  address: '0xfa1d9E26A6aCD7b22115D27572c1221B9803c960',
2836
2867
  blockCreated: 4972908,
2837
2868
  },
2838
2869
  },
2839
2870
  l1StandardBridge: {
2840
- [sourceId$J]: {
2871
+ [sourceId$L]: {
2841
2872
  address: '0xF6Bc0146d3c74D48306e79Ae134A260E418C9335',
2842
2873
  blockCreated: 4972908,
2843
2874
  },
2844
2875
  },
2845
2876
  },
2846
- sourceId: sourceId$J,
2877
+ sourceId: sourceId$L,
2847
2878
  });
2848
2879
 
2849
- const sourceId$I = 1; // mainnet
2880
+ const sourceId$K = 1; // mainnet
2850
2881
  const base = /*#__PURE__*/ defineChain({
2851
2882
  ...chainConfig$1,
2852
2883
  id: 8453,
@@ -2867,12 +2898,12 @@ const base = /*#__PURE__*/ defineChain({
2867
2898
  contracts: {
2868
2899
  ...chainConfig$1.contracts,
2869
2900
  disputeGameFactory: {
2870
- [sourceId$I]: {
2901
+ [sourceId$K]: {
2871
2902
  address: '0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e',
2872
2903
  },
2873
2904
  },
2874
2905
  l2OutputOracle: {
2875
- [sourceId$I]: {
2906
+ [sourceId$K]: {
2876
2907
  address: '0x56315b90c40730925ec5485cf004d835058518A0',
2877
2908
  },
2878
2909
  },
@@ -2881,22 +2912,22 @@ const base = /*#__PURE__*/ defineChain({
2881
2912
  blockCreated: 5022,
2882
2913
  },
2883
2914
  portal: {
2884
- [sourceId$I]: {
2915
+ [sourceId$K]: {
2885
2916
  address: '0x49048044D57e1C92A77f79988d21Fa8fAF74E97e',
2886
2917
  blockCreated: 17482143,
2887
2918
  },
2888
2919
  },
2889
2920
  l1StandardBridge: {
2890
- [sourceId$I]: {
2921
+ [sourceId$K]: {
2891
2922
  address: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35',
2892
2923
  blockCreated: 17482143,
2893
2924
  },
2894
2925
  },
2895
2926
  },
2896
- sourceId: sourceId$I,
2927
+ sourceId: sourceId$K,
2897
2928
  });
2898
2929
 
2899
- const sourceId$H = 5; // goerli
2930
+ const sourceId$J = 5; // goerli
2900
2931
  /*#__PURE__*/ defineChain({
2901
2932
  ...chainConfig$1,
2902
2933
  id: 84531,
@@ -2915,7 +2946,7 @@ const sourceId$H = 5; // goerli
2915
2946
  contracts: {
2916
2947
  ...chainConfig$1.contracts,
2917
2948
  l2OutputOracle: {
2918
- [sourceId$H]: {
2949
+ [sourceId$J]: {
2919
2950
  address: '0x2A35891ff30313CcFa6CE88dcf3858bb075A2298',
2920
2951
  },
2921
2952
  },
@@ -2924,21 +2955,21 @@ const sourceId$H = 5; // goerli
2924
2955
  blockCreated: 1376988,
2925
2956
  },
2926
2957
  portal: {
2927
- [sourceId$H]: {
2958
+ [sourceId$J]: {
2928
2959
  address: '0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA',
2929
2960
  },
2930
2961
  },
2931
2962
  l1StandardBridge: {
2932
- [sourceId$H]: {
2963
+ [sourceId$J]: {
2933
2964
  address: '0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a',
2934
2965
  },
2935
2966
  },
2936
2967
  },
2937
2968
  testnet: true,
2938
- sourceId: sourceId$H,
2969
+ sourceId: sourceId$J,
2939
2970
  });
2940
2971
 
2941
- const sourceId$G = 11_155_111; // sepolia
2972
+ const sourceId$I = 11_155_111; // sepolia
2942
2973
  const baseSepolia = /*#__PURE__*/ defineChain({
2943
2974
  ...chainConfig$1,
2944
2975
  id: 84532,
@@ -2960,23 +2991,23 @@ const baseSepolia = /*#__PURE__*/ defineChain({
2960
2991
  contracts: {
2961
2992
  ...chainConfig$1.contracts,
2962
2993
  disputeGameFactory: {
2963
- [sourceId$G]: {
2994
+ [sourceId$I]: {
2964
2995
  address: '0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1',
2965
2996
  },
2966
2997
  },
2967
2998
  l2OutputOracle: {
2968
- [sourceId$G]: {
2999
+ [sourceId$I]: {
2969
3000
  address: '0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254',
2970
3001
  },
2971
3002
  },
2972
3003
  portal: {
2973
- [sourceId$G]: {
3004
+ [sourceId$I]: {
2974
3005
  address: '0x49f53e41452c74589e85ca1677426ba426459e85',
2975
3006
  blockCreated: 4446677,
2976
3007
  },
2977
3008
  },
2978
3009
  l1StandardBridge: {
2979
- [sourceId$G]: {
3010
+ [sourceId$I]: {
2980
3011
  address: '0xfd0Bf71F60660E2f608ed56e1659C450eB113120',
2981
3012
  blockCreated: 4446677,
2982
3013
  },
@@ -2987,7 +3018,7 @@ const baseSepolia = /*#__PURE__*/ defineChain({
2987
3018
  },
2988
3019
  },
2989
3020
  testnet: true,
2990
- sourceId: sourceId$G,
3021
+ sourceId: sourceId$I,
2991
3022
  });
2992
3023
 
2993
3024
  defineChain({
@@ -3008,7 +3039,7 @@ defineChain({
3008
3039
  },
3009
3040
  });
3010
3041
 
3011
- const sourceId$F = 1; // mainnet
3042
+ const sourceId$H = 1; // mainnet
3012
3043
  /*#__PURE__*/ defineChain({
3013
3044
  ...chainConfig$1,
3014
3045
  id: 81457,
@@ -3034,11 +3065,29 @@ const sourceId$F = 1; // mainnet
3034
3065
  address: '0xcA11bde05977b3631167028862bE2a173976CA11',
3035
3066
  blockCreated: 212929,
3036
3067
  },
3068
+ l2OutputOracle: {
3069
+ [sourceId$H]: {
3070
+ address: '0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76',
3071
+ blockCreated: 19300358,
3072
+ },
3073
+ },
3074
+ portal: {
3075
+ [sourceId$H]: {
3076
+ address: '0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb',
3077
+ blockCreated: 19300357,
3078
+ },
3079
+ },
3080
+ l1StandardBridge: {
3081
+ [sourceId$H]: {
3082
+ address: '0x697402166Fbf2F22E970df8a6486Ef171dbfc524',
3083
+ blockCreated: 19300360,
3084
+ },
3085
+ },
3037
3086
  },
3038
- sourceId: sourceId$F,
3087
+ sourceId: sourceId$H,
3039
3088
  });
3040
3089
 
3041
- const sourceId$E = 1; // mainnet
3090
+ const sourceId$G = 1; // mainnet
3042
3091
  defineChain({
3043
3092
  ...chainConfig$1,
3044
3093
  id: 60808,
@@ -3067,22 +3116,22 @@ defineChain({
3067
3116
  blockCreated: 23131,
3068
3117
  },
3069
3118
  l2OutputOracle: {
3070
- [sourceId$E]: {
3119
+ [sourceId$G]: {
3071
3120
  address: '0xdDa53E23f8a32640b04D7256e651C1db98dB11C1',
3072
3121
  blockCreated: 4462615,
3073
3122
  },
3074
3123
  },
3075
3124
  portal: {
3076
- [sourceId$E]: {
3125
+ [sourceId$G]: {
3077
3126
  address: '0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E',
3078
3127
  blockCreated: 4462615,
3079
3128
  },
3080
3129
  },
3081
3130
  },
3082
- sourceId: sourceId$E,
3131
+ sourceId: sourceId$G,
3083
3132
  });
3084
3133
 
3085
- const sourceId$D = 11_155_111; // sepolia
3134
+ const sourceId$F = 11_155_111; // sepolia
3086
3135
  defineChain({
3087
3136
  ...chainConfig$1,
3088
3137
  id: 808813,
@@ -3111,20 +3160,20 @@ defineChain({
3111
3160
  blockCreated: 35677,
3112
3161
  },
3113
3162
  l2OutputOracle: {
3114
- [sourceId$D]: {
3163
+ [sourceId$F]: {
3115
3164
  address: '0x14D0069452b4AE2b250B395b8adAb771E4267d2f',
3116
3165
  blockCreated: 4462615,
3117
3166
  },
3118
3167
  },
3119
3168
  portal: {
3120
- [sourceId$D]: {
3169
+ [sourceId$F]: {
3121
3170
  address: '0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4',
3122
3171
  blockCreated: 4462615,
3123
3172
  },
3124
3173
  },
3125
3174
  },
3126
3175
  testnet: true,
3127
- sourceId: sourceId$D,
3176
+ sourceId: sourceId$F,
3128
3177
  });
3129
3178
 
3130
3179
  const fees = {
@@ -3333,13 +3382,14 @@ function assertTransactionCIP64(transaction) {
3333
3382
  }
3334
3383
 
3335
3384
  const chainConfig = {
3385
+ blockTime: 1_000,
3336
3386
  contracts,
3337
3387
  formatters,
3338
3388
  serializers,
3339
3389
  fees,
3340
3390
  };
3341
3391
 
3342
- const sourceId$C = 17000; // holsky
3392
+ const sourceId$E = 17000; // holsky
3343
3393
  // source https://storage.googleapis.com/cel2-rollup-files/alfajores/deployment-l1.json
3344
3394
  /*#__PURE__*/ defineChain({
3345
3395
  ...chainConfig,
@@ -3369,25 +3419,25 @@ const sourceId$C = 17000; // holsky
3369
3419
  blockCreated: 14569001,
3370
3420
  },
3371
3421
  portal: {
3372
- [sourceId$C]: {
3422
+ [sourceId$E]: {
3373
3423
  address: '0x82527353927d8D069b3B452904c942dA149BA381',
3374
3424
  blockCreated: 2411324,
3375
3425
  },
3376
3426
  },
3377
3427
  disputeGameFactory: {
3378
- [sourceId$C]: {
3428
+ [sourceId$E]: {
3379
3429
  address: '0xE28AAdcd9883746c0e5068F58f9ea06027b214cb',
3380
3430
  blockCreated: 2411324,
3381
3431
  },
3382
3432
  },
3383
3433
  l2OutputOracle: {
3384
- [sourceId$C]: {
3434
+ [sourceId$E]: {
3385
3435
  address: '0x4a2635e9e4f6e45817b1D402ac4904c1d1752438',
3386
3436
  blockCreated: 2411324,
3387
3437
  },
3388
3438
  },
3389
3439
  l1StandardBridge: {
3390
- [sourceId$C]: {
3440
+ [sourceId$E]: {
3391
3441
  address: '0xD1B0E0581973c9eB7f886967A606b9441A897037',
3392
3442
  blockCreated: 2411324,
3393
3443
  },
@@ -3396,6 +3446,57 @@ const sourceId$C = 17000; // holsky
3396
3446
  testnet: true,
3397
3447
  });
3398
3448
 
3449
+ const sourceId$D = 11_155_111; // sepolia
3450
+ // source https://storage.googleapis.com/cel2-rollup-files/celo-sepolia/deployment-l1.json
3451
+ /*#__PURE__*/ defineChain({
3452
+ ...chainConfig,
3453
+ id: 11_142_220,
3454
+ name: 'Celo Sepolia Testnet',
3455
+ nativeCurrency: {
3456
+ decimals: 18,
3457
+ name: 'CELO',
3458
+ symbol: 'S-CELO',
3459
+ },
3460
+ rpcUrls: {
3461
+ default: {
3462
+ http: ['https://forno.celo-sepolia.celo-testnet.org'],
3463
+ },
3464
+ },
3465
+ blockExplorers: {
3466
+ default: {
3467
+ name: 'Celo Sepolia Explorer',
3468
+ url: 'https://celo-sepolia.blockscout.com/',
3469
+ apiUrl: 'https://celo-sepolia.blockscout.com/api',
3470
+ },
3471
+ },
3472
+ contracts: {
3473
+ ...chainConfig.contracts,
3474
+ multicall3: {
3475
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
3476
+ blockCreated: 1,
3477
+ },
3478
+ portal: {
3479
+ [sourceId$D]: {
3480
+ address: '0x44ae3d41a335a7d05eb533029917aad35662dcc2',
3481
+ blockCreated: 8825790,
3482
+ },
3483
+ },
3484
+ disputeGameFactory: {
3485
+ [sourceId$D]: {
3486
+ address: '0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa',
3487
+ blockCreated: 8825790,
3488
+ },
3489
+ },
3490
+ l1StandardBridge: {
3491
+ [sourceId$D]: {
3492
+ address: '0xec18a3c30131a0db4246e785355fbc16e2eaf408',
3493
+ blockCreated: 8825790,
3494
+ },
3495
+ },
3496
+ },
3497
+ testnet: true,
3498
+ });
3499
+
3399
3500
  defineChain({
3400
3501
  id: 44,
3401
3502
  name: 'Crab Network',
@@ -3510,7 +3611,7 @@ defineChain({
3510
3611
  testnet: true,
3511
3612
  });
3512
3613
 
3513
- const sourceId$B = 1; // mainnet
3614
+ const sourceId$C = 1; // mainnet
3514
3615
  /*#__PURE__*/ defineChain({
3515
3616
  id: 478,
3516
3617
  name: 'Form Network',
@@ -3534,27 +3635,27 @@ const sourceId$B = 1; // mainnet
3534
3635
  contracts: {
3535
3636
  ...chainConfig$1.contracts,
3536
3637
  addressManager: {
3537
- [sourceId$B]: {
3638
+ [sourceId$C]: {
3538
3639
  address: '0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B',
3539
3640
  },
3540
3641
  },
3541
3642
  l1CrossDomainMessenger: {
3542
- [sourceId$B]: {
3643
+ [sourceId$C]: {
3543
3644
  address: '0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c',
3544
3645
  },
3545
3646
  },
3546
3647
  l2OutputOracle: {
3547
- [sourceId$B]: {
3648
+ [sourceId$C]: {
3548
3649
  address: '0x4ccAAF69F41c5810cA875183648B577CaCf1F67E',
3549
3650
  },
3550
3651
  },
3551
3652
  portal: {
3552
- [sourceId$B]: {
3653
+ [sourceId$C]: {
3553
3654
  address: '0x4E259Ee5F4136408908160dD32295A5031Fa426F',
3554
3655
  },
3555
3656
  },
3556
3657
  l1StandardBridge: {
3557
- [sourceId$B]: {
3658
+ [sourceId$C]: {
3558
3659
  address: '0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba',
3559
3660
  },
3560
3661
  },
@@ -3562,10 +3663,10 @@ const sourceId$B = 1; // mainnet
3562
3663
  address: '0xcA11bde05977b3631167028862bE2a173976CA11',
3563
3664
  },
3564
3665
  },
3565
- sourceId: sourceId$B,
3666
+ sourceId: sourceId$C,
3566
3667
  });
3567
3668
 
3568
- const sourceId$A = 11_155_111; // sepolia
3669
+ const sourceId$B = 11_155_111; // sepolia
3569
3670
  /*#__PURE__*/ defineChain({
3570
3671
  id: 132_902,
3571
3672
  name: 'Form Testnet',
@@ -3589,27 +3690,27 @@ const sourceId$A = 11_155_111; // sepolia
3589
3690
  contracts: {
3590
3691
  ...chainConfig$1.contracts,
3591
3692
  addressManager: {
3592
- [sourceId$A]: {
3693
+ [sourceId$B]: {
3593
3694
  address: '0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373',
3594
3695
  },
3595
3696
  },
3596
3697
  l1CrossDomainMessenger: {
3597
- [sourceId$A]: {
3698
+ [sourceId$B]: {
3598
3699
  address: '0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa',
3599
3700
  },
3600
3701
  },
3601
3702
  l2OutputOracle: {
3602
- [sourceId$A]: {
3703
+ [sourceId$B]: {
3603
3704
  address: '0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2',
3604
3705
  },
3605
3706
  },
3606
3707
  portal: {
3607
- [sourceId$A]: {
3708
+ [sourceId$B]: {
3608
3709
  address: '0x60377e3cE15dF4CCA24c4beF076b60314240b032',
3609
3710
  },
3610
3711
  },
3611
3712
  l1StandardBridge: {
3612
- [sourceId$A]: {
3713
+ [sourceId$B]: {
3613
3714
  address: '0xD4531f633942b2725896F47cD2aFd260b44Ab1F7',
3614
3715
  },
3615
3716
  },
@@ -3618,10 +3719,10 @@ const sourceId$A = 11_155_111; // sepolia
3618
3719
  },
3619
3720
  },
3620
3721
  testnet: true,
3621
- sourceId: sourceId$A,
3722
+ sourceId: sourceId$B,
3622
3723
  });
3623
3724
 
3624
- const sourceId$z = 1; // mainnet
3725
+ const sourceId$A = 1; // mainnet
3625
3726
  /*#__PURE__*/ defineChain({
3626
3727
  ...chainConfig$1,
3627
3728
  id: 252,
@@ -3642,7 +3743,7 @@ const sourceId$z = 1; // mainnet
3642
3743
  contracts: {
3643
3744
  ...chainConfig$1.contracts,
3644
3745
  l2OutputOracle: {
3645
- [sourceId$z]: {
3746
+ [sourceId$A]: {
3646
3747
  address: '0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4',
3647
3748
  },
3648
3749
  },
@@ -3650,22 +3751,22 @@ const sourceId$z = 1; // mainnet
3650
3751
  address: '0xca11bde05977b3631167028862be2a173976ca11',
3651
3752
  },
3652
3753
  portal: {
3653
- [sourceId$z]: {
3754
+ [sourceId$A]: {
3654
3755
  address: '0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D',
3655
3756
  blockCreated: 19135323,
3656
3757
  },
3657
3758
  },
3658
3759
  l1StandardBridge: {
3659
- [sourceId$z]: {
3760
+ [sourceId$A]: {
3660
3761
  address: '0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2',
3661
3762
  blockCreated: 19135323,
3662
3763
  },
3663
3764
  },
3664
3765
  },
3665
- sourceId: sourceId$z,
3766
+ sourceId: sourceId$A,
3666
3767
  });
3667
3768
 
3668
- const sourceId$y = 17000; // holesky
3769
+ const sourceId$z = 17000; // holesky
3669
3770
  /*#__PURE__*/ defineChain({
3670
3771
  ...chainConfig$1,
3671
3772
  id: 2522,
@@ -3686,7 +3787,7 @@ const sourceId$y = 17000; // holesky
3686
3787
  contracts: {
3687
3788
  ...chainConfig$1.contracts,
3688
3789
  l2OutputOracle: {
3689
- [sourceId$y]: {
3790
+ [sourceId$z]: {
3690
3791
  address: '0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32',
3691
3792
  },
3692
3793
  },
@@ -3694,22 +3795,22 @@ const sourceId$y = 17000; // holesky
3694
3795
  address: '0xca11bde05977b3631167028862be2a173976ca11',
3695
3796
  },
3696
3797
  portal: {
3697
- [sourceId$y]: {
3798
+ [sourceId$z]: {
3698
3799
  address: '0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d',
3699
3800
  blockCreated: 318416,
3700
3801
  },
3701
3802
  },
3702
3803
  l1StandardBridge: {
3703
- [sourceId$y]: {
3804
+ [sourceId$z]: {
3704
3805
  address: '0x0BaafC217162f64930909aD9f2B27125121d6332',
3705
3806
  blockCreated: 318416,
3706
3807
  },
3707
3808
  },
3708
3809
  },
3709
- sourceId: sourceId$y,
3810
+ sourceId: sourceId$z,
3710
3811
  });
3711
3812
 
3712
- const sourceId$x = 1; // mainnet
3813
+ const sourceId$y = 1; // mainnet
3713
3814
  /*#__PURE__*/ defineChain({
3714
3815
  ...chainConfig$1,
3715
3816
  id: 33979,
@@ -3729,10 +3830,10 @@ const sourceId$x = 1; // mainnet
3729
3830
  contracts: {
3730
3831
  ...chainConfig$1.contracts,
3731
3832
  },
3732
- sourceId: sourceId$x,
3833
+ sourceId: sourceId$y,
3733
3834
  });
3734
3835
 
3735
- const sourceId$w = 11_155_111; // sepolia
3836
+ const sourceId$x = 11_155_111; // sepolia
3736
3837
  defineChain({
3737
3838
  ...chainConfig$1,
3738
3839
  id: 3397901,
@@ -3758,16 +3859,16 @@ defineChain({
3758
3859
  blockCreated: 1620204,
3759
3860
  },
3760
3861
  },
3761
- sourceId: sourceId$w,
3862
+ sourceId: sourceId$x,
3762
3863
  });
3763
3864
 
3764
- const sourceId$v = 17000; // Holesky testnet
3865
+ const sourceId$w = 17000; // Holesky testnet
3765
3866
  defineChain({
3766
3867
  ...chainConfig$1,
3767
3868
  name: 'Garnet Testnet',
3768
3869
  testnet: true,
3769
3870
  id: 17069,
3770
- sourceId: sourceId$v,
3871
+ sourceId: sourceId$w,
3771
3872
  nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
3772
3873
  rpcUrls: {
3773
3874
  default: {
@@ -3787,19 +3888,19 @@ defineChain({
3787
3888
  address: '0xca11bde05977b3631167028862be2a173976ca11',
3788
3889
  },
3789
3890
  portal: {
3790
- [sourceId$v]: {
3891
+ [sourceId$w]: {
3791
3892
  address: '0x57ee40586fbE286AfC75E67cb69511A6D9aF5909',
3792
3893
  blockCreated: 1274684,
3793
3894
  },
3794
3895
  },
3795
3896
  l2OutputOracle: {
3796
- [sourceId$v]: {
3897
+ [sourceId$w]: {
3797
3898
  address: '0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B',
3798
3899
  blockCreated: 1274684,
3799
3900
  },
3800
3901
  },
3801
3902
  l1StandardBridge: {
3802
- [sourceId$v]: {
3903
+ [sourceId$w]: {
3803
3904
  address: '0x09bcDd311FE398F80a78BE37E489f5D440DB95DE',
3804
3905
  blockCreated: 1274684,
3805
3906
  },
@@ -3807,6 +3908,52 @@ defineChain({
3807
3908
  },
3808
3909
  });
3809
3910
 
3911
+ const sourceId$v = 11_155_111; // sepolia
3912
+ /*#__PURE__*/ defineChain({
3913
+ ...chainConfig$1,
3914
+ id: 91342,
3915
+ network: 'giwa-sepolia',
3916
+ name: 'GIWA Sepolia',
3917
+ nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
3918
+ blockTime: 1_000,
3919
+ rpcUrls: {
3920
+ default: {
3921
+ http: ['https://sepolia-rpc.giwa.io'],
3922
+ },
3923
+ },
3924
+ blockExplorers: {
3925
+ default: {
3926
+ name: 'Blockscout',
3927
+ url: 'https://sepolia-explorer.giwa.io',
3928
+ apiUrl: 'https://sepolia-explorer.giwa.io/api',
3929
+ },
3930
+ },
3931
+ contracts: {
3932
+ ...chainConfig$1.contracts,
3933
+ multicall3: {
3934
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
3935
+ blockCreated: 0,
3936
+ },
3937
+ disputeGameFactory: {
3938
+ [sourceId$v]: {
3939
+ address: '0x37347caB2afaa49B776372279143D71ad1f354F6',
3940
+ },
3941
+ },
3942
+ portal: {
3943
+ [sourceId$v]: {
3944
+ address: '0x956962C34687A954e611A83619ABaA37Ce6bC78A',
3945
+ },
3946
+ },
3947
+ l1StandardBridge: {
3948
+ [sourceId$v]: {
3949
+ address: '0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7',
3950
+ },
3951
+ },
3952
+ },
3953
+ testnet: true,
3954
+ sourceId: sourceId$v,
3955
+ });
3956
+
3810
3957
  const sourceId$u = 1; // mainnet
3811
3958
  /*#__PURE__*/ defineChain({
3812
3959
  ...chainConfig$1,
@@ -4156,6 +4303,25 @@ const sourceId$o = 11_155_111; // sepolia
4156
4303
  sourceId: sourceId$o,
4157
4304
  });
4158
4305
 
4306
+ defineChain({
4307
+ id: 166,
4308
+ name: 'Omni',
4309
+ nativeCurrency: { name: 'Omni', symbol: 'OMNI', decimals: 18 },
4310
+ rpcUrls: {
4311
+ default: {
4312
+ http: ['https://mainnet.omni.network'],
4313
+ webSocket: ['wss://mainnet.omni.network'],
4314
+ },
4315
+ },
4316
+ blockExplorers: {
4317
+ default: {
4318
+ name: 'OmniScan',
4319
+ url: 'https://omniscan.network',
4320
+ },
4321
+ },
4322
+ testnet: false,
4323
+ });
4324
+
4159
4325
  const sourceId$n = 56; // bsc mainnet
4160
4326
  /*#__PURE__*/ defineChain({
4161
4327
  id: 204,
@@ -4975,6 +5141,7 @@ const sourceId$6 = 1; // mainnet
4975
5141
  id: 130,
4976
5142
  name: 'Unichain',
4977
5143
  nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
5144
+ blockTime: 1_000,
4978
5145
  rpcUrls: {
4979
5146
  default: {
4980
5147
  http: ['https://mainnet.unichain.org/'],
@@ -5022,6 +5189,7 @@ const sourceId$5 = 11_155_111; // sepolia
5022
5189
  symbol: 'ETH',
5023
5190
  decimals: 18,
5024
5191
  },
5192
+ blockTime: 1_000,
5025
5193
  rpcUrls: {
5026
5194
  default: {
5027
5195
  http: ['https://sepolia.unichain.org'],
@@ -5304,8 +5472,8 @@ const sourceId = 5; // goerli
5304
5472
  });
5305
5473
 
5306
5474
  const FlaunchZapAddress = {
5307
- [base.id]: "0xe52dE1801C10cF709cc8e62d43D783AFe984b510",
5308
- [baseSepolia.id]: "0xf0Fd8Bb98c050607d999D6fFF9C617edD6673b75",
5475
+ [base.id]: "0x39112541720078c70164EA4Deb61F0A4811910F9",
5476
+ [baseSepolia.id]: "0x25b747aeca2612b9804b5c3bb272a3daefdc6eaa",
5309
5477
  };
5310
5478
  // only old V1.0: doesn't use FeeEscrow
5311
5479
  const FlaunchPositionManagerAddress = {
@@ -5374,13 +5542,17 @@ const AddressFeeSplitManagerAddress = {
5374
5542
  [base.id]: "0xfAB4BA48a322Efc8b25815448BE6018D211e89f3",
5375
5543
  [baseSepolia.id]: "0x0A3AF63cd86E68a852A1D4923FEfC4e855D8499d",
5376
5544
  };
5545
+ const DynamicAddressFeeSplitManagerAddress = {
5546
+ [base.id]: "0x9b332EA14a99B74cAB03A3D3178964eD9CE35fc8",
5547
+ [baseSepolia.id]: "0x4882075542626721C8743D80DC9528e2f54d8A46",
5548
+ };
5377
5549
  const StakingManagerAddress = {
5378
5550
  [base.id]: "0xec0069F8DBbbC94058dc895000dd38ef40b3125d",
5379
5551
  [baseSepolia.id]: "0xB8f1cb6B4Ff8f07149276bbfA617aed7bd32d20D",
5380
5552
  };
5381
5553
  const BuyBackManagerAddress = {
5382
- [base.id]: "0x3AAF3b1D8cD5b61C77f99bA7cdf41E9eC0Ba8a3f",
5383
- [baseSepolia.id]: "0xc3947EC9d687053bBA72b36Fd6b2567e775E82C7",
5554
+ [base.id]: "0x18713855492A778363e23e2CdE325344b8fd6F8d",
5555
+ [baseSepolia.id]: "0xA4A1a2Ca68151565d5200243a52EEBbCb2C878E0",
5384
5556
  };
5385
5557
  /** Verifiers */
5386
5558
  const TokenImporterAddress = {
@@ -5427,7 +5599,7 @@ const FeeEscrowAddress = {
5427
5599
  [baseSepolia.id]: "0x73E27908b7d35A9251a54799A8ef4C17e4ED9FF9",
5428
5600
  };
5429
5601
  const ReferralEscrowAddress = {
5430
- [base.id]: "0xBD39c7Be6D98BD1a3e4Ad482baF99d738947fE55",
5602
+ [base.id]: "0xd381f8ea57df43c57cfe6e5b19a0a4700396f28c",
5431
5603
  [baseSepolia.id]: "0xd3d9047CaBE3346C70b510435866565176e8CE12",
5432
5604
  };
5433
5605
  const FLETHAddress = {
@@ -5484,5 +5656,5 @@ const USDCETHPoolKeys = {
5484
5656
  },
5485
5657
  };
5486
5658
 
5487
- export { AddressFeeSplitManagerAddress, AnyBidWallAddress, AnyFlaunchAddress, AnyPositionManagerAddress, BidWallAddress, BidWallV1_1Address, BuyBackManagerAddress, ClankerWorldVerifierAddress, ClosedPermissionsAddress, DopplerVerifierAddress, FLETHAddress, FLETHHooksAddress, FairLaunchAddress, FairLaunchV1_1Address, FastFlaunchZapAddress, FeeEscrowAddress, FlaunchAddress, FlaunchPositionManagerAddress, FlaunchPositionManagerV1_1Address, FlaunchPositionManagerV1_2Address, FlaunchV1_1Address, FlaunchV1_2Address, FlaunchZapAddress, Permit2Address, PoolManagerAddress, QuoterAddress, ReferralEscrowAddress, RevenueManagerAddress, SolanaVerifierAddress, StakingManagerAddress, StateViewAddress, TokenImporterAddress, TreasuryManagerFactoryAddress, USDCETHPoolKeys, UniV4PositionManagerAddress, UniversalRouterAddress, VirtualsVerifierAddress, WhitelistVerifierAddress, WhitelistedPermissionsAddress, ZoraVerifierAddress };
5659
+ export { AddressFeeSplitManagerAddress, AnyBidWallAddress, AnyFlaunchAddress, AnyPositionManagerAddress, BidWallAddress, BidWallV1_1Address, BuyBackManagerAddress, ClankerWorldVerifierAddress, ClosedPermissionsAddress, DopplerVerifierAddress, DynamicAddressFeeSplitManagerAddress, FLETHAddress, FLETHHooksAddress, FairLaunchAddress, FairLaunchV1_1Address, FastFlaunchZapAddress, FeeEscrowAddress, FlaunchAddress, FlaunchPositionManagerAddress, FlaunchPositionManagerV1_1Address, FlaunchPositionManagerV1_2Address, FlaunchV1_1Address, FlaunchV1_2Address, FlaunchZapAddress, Permit2Address, PoolManagerAddress, QuoterAddress, ReferralEscrowAddress, RevenueManagerAddress, SolanaVerifierAddress, StakingManagerAddress, StateViewAddress, TokenImporterAddress, TreasuryManagerFactoryAddress, USDCETHPoolKeys, UniV4PositionManagerAddress, UniversalRouterAddress, VirtualsVerifierAddress, WhitelistVerifierAddress, WhitelistedPermissionsAddress, ZoraVerifierAddress };
5488
5660
  //# sourceMappingURL=index.js.map