@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.
@@ -13,7 +13,7 @@ function defineChain(chain) {
13
13
  };
14
14
  }
15
15
 
16
- const version = '2.29.2';
16
+ const version = '2.37.12';
17
17
 
18
18
  let errorConfig = {
19
19
  getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
@@ -613,8 +613,8 @@ function defineFormatter(type, format) {
613
613
  return ({ exclude, format: overrides, }) => {
614
614
  return {
615
615
  exclude,
616
- format: (args) => {
617
- const formatted = format(args);
616
+ format: (args, action) => {
617
+ const formatted = format(args, action);
618
618
  if (exclude) {
619
619
  for (const key of exclude) {
620
620
  delete formatted[key];
@@ -622,7 +622,7 @@ function defineFormatter(type, format) {
622
622
  }
623
623
  return {
624
624
  ...formatted,
625
- ...overrides(args),
625
+ ...overrides(args, action),
626
626
  };
627
627
  },
628
628
  type,
@@ -637,7 +637,7 @@ const transactionType = {
637
637
  '0x3': 'eip4844',
638
638
  '0x4': 'eip7702',
639
639
  };
640
- function formatTransaction(transaction) {
640
+ function formatTransaction(transaction, _) {
641
641
  const transaction_ = {
642
642
  ...transaction,
643
643
  blockHash: transaction.blockHash ? transaction.blockHash : null,
@@ -715,7 +715,7 @@ function formatAuthorizationList$1(authorizationList) {
715
715
  }));
716
716
  }
717
717
 
718
- function formatBlock(block) {
718
+ function formatBlock(block, _) {
719
719
  const transactions = (block.transactions ?? []).map((transaction) => {
720
720
  if (typeof transaction === 'string')
721
721
  return transaction;
@@ -763,7 +763,7 @@ const receiptStatuses = {
763
763
  '0x0': 'reverted',
764
764
  '0x1': 'success',
765
765
  };
766
- function formatTransactionReceipt(transactionReceipt) {
766
+ function formatTransactionReceipt(transactionReceipt, _) {
767
767
  const receipt = {
768
768
  ...transactionReceipt,
769
769
  blockNumber: transactionReceipt.blockNumber
@@ -810,7 +810,7 @@ const rpcTransactionType = {
810
810
  eip4844: '0x3',
811
811
  eip7702: '0x4',
812
812
  };
813
- function formatTransactionRequest(request) {
813
+ function formatTransactionRequest(request, _) {
814
814
  const rpcRequest = {};
815
815
  if (typeof request.authorizationList !== 'undefined')
816
816
  rpcRequest.authorizationList = formatAuthorizationList(request.authorizationList);
@@ -1330,18 +1330,18 @@ function blobsToProofs(parameters) {
1330
1330
  }
1331
1331
 
1332
1332
  /**
1333
- * Internal assertion helpers.
1333
+ * Utilities for hex, bytes, CSPRNG.
1334
1334
  * @module
1335
1335
  */
1336
+ /** Checks if something is Uint8Array. Be careful: nodejs Buffer will return true. */
1337
+ function isBytes(a) {
1338
+ return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
1339
+ }
1336
1340
  /** Asserts something is positive integer. */
1337
1341
  function anumber(n) {
1338
1342
  if (!Number.isSafeInteger(n) || n < 0)
1339
1343
  throw new Error('positive integer expected, got ' + n);
1340
1344
  }
1341
- /** Is number an Uint8Array? Copied from utils for perf. */
1342
- function isBytes(a) {
1343
- return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
1344
- }
1345
1345
  /** Asserts something is Uint8Array. */
1346
1346
  function abytes(b, ...lengths) {
1347
1347
  if (!isBytes(b))
@@ -1364,15 +1364,17 @@ function aoutput(out, instance) {
1364
1364
  throw new Error('digestInto() expects output buffer of length at least ' + min);
1365
1365
  }
1366
1366
  }
1367
-
1368
- /**
1369
- * Utilities for hex, bytes, CSPRNG.
1370
- * @module
1371
- */
1367
+ /** Cast u8 / u16 / u32 to u32. */
1372
1368
  function u32(arr) {
1373
1369
  return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
1374
1370
  }
1375
- // Cast array to view
1371
+ /** Zeroize a byte array. Warning: JS provides no guarantees. */
1372
+ function clean(...arrays) {
1373
+ for (let i = 0; i < arrays.length; i++) {
1374
+ arrays[i].fill(0);
1375
+ }
1376
+ }
1377
+ /** Create DataView of an array for easy byte-level manipulation. */
1376
1378
  function createView(arr) {
1377
1379
  return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
1378
1380
  }
@@ -1382,7 +1384,7 @@ function rotr(word, shift) {
1382
1384
  }
1383
1385
  /** Is current platform little-endian? Most are. Big-Endian platform: IBM */
1384
1386
  const isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();
1385
- // The byte swap operation for uint32
1387
+ /** The byte swap operation for uint32 */
1386
1388
  function byteSwap(word) {
1387
1389
  return (((word << 24) & 0xff000000) |
1388
1390
  ((word << 8) & 0xff0000) |
@@ -1394,17 +1396,18 @@ function byteSwap32(arr) {
1394
1396
  for (let i = 0; i < arr.length; i++) {
1395
1397
  arr[i] = byteSwap(arr[i]);
1396
1398
  }
1399
+ return arr;
1397
1400
  }
1398
- // Built-in hex conversion https://caniuse.com/mdn-javascript_builtins_uint8array_fromhex
1399
- // @ts-ignore
1400
- typeof Uint8Array.from([]).toHex === 'function' && typeof Uint8Array.fromHex === 'function';
1401
+ const swap32IfBE = isLE
1402
+ ? (u) => u
1403
+ : byteSwap32;
1401
1404
  /**
1402
- * Convert JS string to byte array.
1403
- * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
1405
+ * Converts string to bytes using UTF8 encoding.
1406
+ * @example utf8ToBytes('abc') // Uint8Array.from([97, 98, 99])
1404
1407
  */
1405
1408
  function utf8ToBytes(str) {
1406
1409
  if (typeof str !== 'string')
1407
- throw new Error('utf8ToBytes expected string, got ' + typeof str);
1410
+ throw new Error('string expected');
1408
1411
  return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
1409
1412
  }
1410
1413
  /**
@@ -1420,13 +1423,9 @@ function toBytes(data) {
1420
1423
  }
1421
1424
  /** For runtime check if class implements interface */
1422
1425
  class Hash {
1423
- // Safe version that clones internal state
1424
- clone() {
1425
- return this._cloneInto();
1426
- }
1427
1426
  }
1428
1427
  /** Wraps hash function, creating an interface on top of it */
1429
- function wrapConstructor(hashCons) {
1428
+ function createHasher(hashCons) {
1430
1429
  const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
1431
1430
  const tmp = hashCons();
1432
1431
  hashC.outputLen = tmp.outputLen;
@@ -1480,8 +1479,9 @@ class HashMD extends Hash {
1480
1479
  }
1481
1480
  update(data) {
1482
1481
  aexists(this);
1483
- const { view, buffer, blockLen } = this;
1484
1482
  data = toBytes(data);
1483
+ abytes(data);
1484
+ const { view, buffer, blockLen } = this;
1485
1485
  const len = data.length;
1486
1486
  for (let pos = 0; pos < len;) {
1487
1487
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -1515,7 +1515,7 @@ class HashMD extends Hash {
1515
1515
  let { pos } = this;
1516
1516
  // append the bit '1' to the message
1517
1517
  buffer[pos++] = 0b10000000;
1518
- this.buffer.subarray(pos).fill(0);
1518
+ clean(this.buffer.subarray(pos));
1519
1519
  // we have less than padOffset left in buffer, so we cannot put length in
1520
1520
  // current block, need process it and pad again
1521
1521
  if (this.padOffset > blockLen - pos) {
@@ -1553,28 +1553,69 @@ class HashMD extends Hash {
1553
1553
  to || (to = new this.constructor());
1554
1554
  to.set(...this.get());
1555
1555
  const { blockLen, buffer, length, finished, destroyed, pos } = this;
1556
+ to.destroyed = destroyed;
1557
+ to.finished = finished;
1556
1558
  to.length = length;
1557
1559
  to.pos = pos;
1558
- to.finished = finished;
1559
- to.destroyed = destroyed;
1560
1560
  if (length % blockLen)
1561
1561
  to.buffer.set(buffer);
1562
1562
  return to;
1563
1563
  }
1564
+ clone() {
1565
+ return this._cloneInto();
1566
+ }
1564
1567
  }
1568
+ /**
1569
+ * Initial SHA-2 state: fractional parts of square roots of first 16 primes 2..53.
1570
+ * Check out `test/misc/sha2-gen-iv.js` for recomputation guide.
1571
+ */
1572
+ /** Initial SHA256 state. Bits 0..32 of frac part of sqrt of primes 2..19 */
1573
+ const SHA256_IV = /* @__PURE__ */ Uint32Array.from([
1574
+ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
1575
+ ]);
1565
1576
 
1566
1577
  /**
1567
- * SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.
1568
- *
1569
- * To break sha256 using birthday attack, attackers need to try 2^128 hashes.
1570
- * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
1571
- *
1572
- * Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
1578
+ * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
1579
+ * @todo re-check https://issues.chromium.org/issues/42212588
1573
1580
  * @module
1574
1581
  */
1575
- /** Round constants: first 32 bits of fractional parts of the cube roots of the first 64 primes 2..311). */
1582
+ const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
1583
+ const _32n = /* @__PURE__ */ BigInt(32);
1584
+ function fromBig(n, le = false) {
1585
+ if (le)
1586
+ return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };
1587
+ return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
1588
+ }
1589
+ function split(lst, le = false) {
1590
+ const len = lst.length;
1591
+ let Ah = new Uint32Array(len);
1592
+ let Al = new Uint32Array(len);
1593
+ for (let i = 0; i < len; i++) {
1594
+ const { h, l } = fromBig(lst[i], le);
1595
+ [Ah[i], Al[i]] = [h, l];
1596
+ }
1597
+ return [Ah, Al];
1598
+ }
1599
+ // Left rotate for Shift in [1, 32)
1600
+ const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));
1601
+ const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));
1602
+ // Left rotate for Shift in (32, 64), NOTE: 32 is special case.
1603
+ const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));
1604
+ const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
1605
+
1606
+ /**
1607
+ * SHA2 hash function. A.k.a. sha256, sha384, sha512, sha512_224, sha512_256.
1608
+ * SHA256 is the fastest hash implementable in JS, even faster than Blake3.
1609
+ * Check out [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and
1610
+ * [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
1611
+ * @module
1612
+ */
1613
+ /**
1614
+ * Round constants:
1615
+ * First 32 bits of fractional parts of the cube roots of the first 64 primes 2..311)
1616
+ */
1576
1617
  // prettier-ignore
1577
- const SHA256_K = /* @__PURE__ */ new Uint32Array([
1618
+ const SHA256_K = /* @__PURE__ */ Uint32Array.from([
1578
1619
  0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
1579
1620
  0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
1580
1621
  0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
@@ -1584,15 +1625,7 @@ const SHA256_K = /* @__PURE__ */ new Uint32Array([
1584
1625
  0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
1585
1626
  0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
1586
1627
  ]);
1587
- /** Initial state: first 32 bits of fractional parts of the square roots of the first 8 primes 2..19. */
1588
- // prettier-ignore
1589
- const SHA256_IV = /* @__PURE__ */ new Uint32Array([
1590
- 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
1591
- ]);
1592
- /**
1593
- * Temporary buffer, not used to store anything between runs.
1594
- * Named this way because it matches specification.
1595
- */
1628
+ /** Reusable temporary buffer. "W" comes straight from spec. */
1596
1629
  const SHA256_W = /* @__PURE__ */ new Uint32Array(64);
1597
1630
  class SHA256 extends HashMD {
1598
1631
  constructor(outputLen = 32) {
@@ -1662,15 +1695,34 @@ class SHA256 extends HashMD {
1662
1695
  this.set(A, B, C, D, E, F, G, H);
1663
1696
  }
1664
1697
  roundClean() {
1665
- SHA256_W.fill(0);
1698
+ clean(SHA256_W);
1666
1699
  }
1667
1700
  destroy() {
1668
1701
  this.set(0, 0, 0, 0, 0, 0, 0, 0);
1669
- this.buffer.fill(0);
1702
+ clean(this.buffer);
1670
1703
  }
1671
1704
  }
1672
- /** SHA2-256 hash function */
1673
- const sha256$1 = /* @__PURE__ */ wrapConstructor(() => new SHA256());
1705
+ /**
1706
+ * SHA2-256 hash function from RFC 4634.
1707
+ *
1708
+ * It is the fastest JS hash, even faster than Blake3.
1709
+ * To break sha256 using birthday attack, attackers need to try 2^128 hashes.
1710
+ * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
1711
+ */
1712
+ const sha256$2 = /* @__PURE__ */ createHasher(() => new SHA256());
1713
+
1714
+ /**
1715
+ * SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.
1716
+ *
1717
+ * To break sha256 using birthday attack, attackers need to try 2^128 hashes.
1718
+ * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
1719
+ *
1720
+ * Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
1721
+ * @module
1722
+ * @deprecated
1723
+ */
1724
+ /** @deprecated Use import from `noble/hashes/sha2` module */
1725
+ const sha256$1 = sha256$2;
1674
1726
 
1675
1727
  function sha256(value, to_) {
1676
1728
  const to = to_ || 'hex';
@@ -1970,34 +2022,6 @@ class LruMap extends Map {
1970
2022
  }
1971
2023
  }
1972
2024
 
1973
- /**
1974
- * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
1975
- * @todo re-check https://issues.chromium.org/issues/42212588
1976
- * @module
1977
- */
1978
- const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
1979
- const _32n = /* @__PURE__ */ BigInt(32);
1980
- function fromBig(n, le = false) {
1981
- if (le)
1982
- return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };
1983
- return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
1984
- }
1985
- function split(lst, le = false) {
1986
- let Ah = new Uint32Array(lst.length);
1987
- let Al = new Uint32Array(lst.length);
1988
- for (let i = 0; i < lst.length; i++) {
1989
- const { h, l } = fromBig(lst[i], le);
1990
- [Ah[i], Al[i]] = [h, l];
1991
- }
1992
- return [Ah, Al];
1993
- }
1994
- // Left rotate for Shift in [1, 32)
1995
- const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));
1996
- const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));
1997
- // Left rotate for Shift in (32, 64), NOTE: 32 is special case.
1998
- const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));
1999
- const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
2000
-
2001
2025
  /**
2002
2026
  * SHA3 (keccak) hash function, based on a new "Sponge function" design.
2003
2027
  * Different from older hashes, the internal state is bigger than output size.
@@ -2009,16 +2033,18 @@ const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
2009
2033
  * Check out `sha3-addons` module for cSHAKE, k12, and others.
2010
2034
  * @module
2011
2035
  */
2036
+ // No __PURE__ annotations in sha3 header:
2037
+ // EVERYTHING is in fact used on every export.
2012
2038
  // Various per round constants calculations
2039
+ const _0n = BigInt(0);
2040
+ const _1n = BigInt(1);
2041
+ const _2n = BigInt(2);
2042
+ const _7n = BigInt(7);
2043
+ const _256n = BigInt(256);
2044
+ const _0x71n = BigInt(0x71);
2013
2045
  const SHA3_PI = [];
2014
2046
  const SHA3_ROTL = [];
2015
2047
  const _SHA3_IOTA = [];
2016
- const _0n = /* @__PURE__ */ BigInt(0);
2017
- const _1n = /* @__PURE__ */ BigInt(1);
2018
- const _2n = /* @__PURE__ */ BigInt(2);
2019
- const _7n = /* @__PURE__ */ BigInt(7);
2020
- const _256n = /* @__PURE__ */ BigInt(256);
2021
- const _0x71n = /* @__PURE__ */ BigInt(0x71);
2022
2048
  for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
2023
2049
  // Pi
2024
2050
  [x, y] = [y, (2 * x + 3 * y) % 5];
@@ -2034,7 +2060,9 @@ for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
2034
2060
  }
2035
2061
  _SHA3_IOTA.push(t);
2036
2062
  }
2037
- const [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);
2063
+ const IOTAS = split(_SHA3_IOTA, true);
2064
+ const SHA3_IOTA_H = IOTAS[0];
2065
+ const SHA3_IOTA_L = IOTAS[1];
2038
2066
  // Left rotation (without 0, 32, 64)
2039
2067
  const rotlH = (h, l, s) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s));
2040
2068
  const rotlL = (h, l, s) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s));
@@ -2082,7 +2110,7 @@ function keccakP(s, rounds = 24) {
2082
2110
  s[0] ^= SHA3_IOTA_H[round];
2083
2111
  s[1] ^= SHA3_IOTA_L[round];
2084
2112
  }
2085
- B.fill(0);
2113
+ clean(B);
2086
2114
  }
2087
2115
  /** Keccak sponge function. */
2088
2116
  class Keccak extends Hash {
@@ -2103,24 +2131,26 @@ class Keccak extends Hash {
2103
2131
  anumber(outputLen);
2104
2132
  // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes
2105
2133
  // 0 < blockLen < 200
2106
- if (0 >= this.blockLen || this.blockLen >= 200)
2107
- throw new Error('Sha3 supports only keccak-f1600 function');
2134
+ if (!(0 < blockLen && blockLen < 200))
2135
+ throw new Error('only keccak-f1600 function is supported');
2108
2136
  this.state = new Uint8Array(200);
2109
2137
  this.state32 = u32(this.state);
2110
2138
  }
2139
+ clone() {
2140
+ return this._cloneInto();
2141
+ }
2111
2142
  keccak() {
2112
- if (!isLE)
2113
- byteSwap32(this.state32);
2143
+ swap32IfBE(this.state32);
2114
2144
  keccakP(this.state32, this.rounds);
2115
- if (!isLE)
2116
- byteSwap32(this.state32);
2145
+ swap32IfBE(this.state32);
2117
2146
  this.posOut = 0;
2118
2147
  this.pos = 0;
2119
2148
  }
2120
2149
  update(data) {
2121
2150
  aexists(this);
2122
- const { blockLen, state } = this;
2123
2151
  data = toBytes(data);
2152
+ abytes(data);
2153
+ const { blockLen, state } = this;
2124
2154
  const len = data.length;
2125
2155
  for (let pos = 0; pos < len;) {
2126
2156
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -2182,7 +2212,7 @@ class Keccak extends Hash {
2182
2212
  }
2183
2213
  destroy() {
2184
2214
  this.destroyed = true;
2185
- this.state.fill(0);
2215
+ clean(this.state);
2186
2216
  }
2187
2217
  _cloneInto(to) {
2188
2218
  const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
@@ -2200,9 +2230,9 @@ class Keccak extends Hash {
2200
2230
  return to;
2201
2231
  }
2202
2232
  }
2203
- const gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));
2233
+ const gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
2204
2234
  /** keccak-256 hash function. Different from SHA3-256. */
2205
- const keccak_256 = /* @__PURE__ */ gen(0x01, 136, 256 / 8);
2235
+ const keccak_256 = /* @__PURE__ */ (() => gen(0x01, 136, 256 / 8))();
2206
2236
 
2207
2237
  function keccak256(value, to_) {
2208
2238
  const to = to_ || 'hex';
@@ -2471,13 +2501,13 @@ function serializeTransactionEIP7702(transaction, signature) {
2471
2501
  return concatHex([
2472
2502
  '0x04',
2473
2503
  toRlp([
2474
- toHex(chainId),
2475
- nonce ? toHex(nonce) : '0x',
2476
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : '0x',
2477
- maxFeePerGas ? toHex(maxFeePerGas) : '0x',
2478
- gas ? toHex(gas) : '0x',
2504
+ numberToHex(chainId),
2505
+ nonce ? numberToHex(nonce) : '0x',
2506
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
2507
+ maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
2508
+ gas ? numberToHex(gas) : '0x',
2479
2509
  to ?? '0x',
2480
- value ? toHex(value) : '0x',
2510
+ value ? numberToHex(value) : '0x',
2481
2511
  data ?? '0x',
2482
2512
  serializedAccessList,
2483
2513
  serializedAuthorizationList,
@@ -2513,16 +2543,16 @@ function serializeTransactionEIP4844(transaction, signature) {
2513
2543
  }
2514
2544
  const serializedAccessList = serializeAccessList(accessList);
2515
2545
  const serializedTransaction = [
2516
- toHex(chainId),
2517
- nonce ? toHex(nonce) : '0x',
2518
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : '0x',
2519
- maxFeePerGas ? toHex(maxFeePerGas) : '0x',
2520
- gas ? toHex(gas) : '0x',
2546
+ numberToHex(chainId),
2547
+ nonce ? numberToHex(nonce) : '0x',
2548
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
2549
+ maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
2550
+ gas ? numberToHex(gas) : '0x',
2521
2551
  to ?? '0x',
2522
- value ? toHex(value) : '0x',
2552
+ value ? numberToHex(value) : '0x',
2523
2553
  data ?? '0x',
2524
2554
  serializedAccessList,
2525
- maxFeePerBlobGas ? toHex(maxFeePerBlobGas) : '0x',
2555
+ maxFeePerBlobGas ? numberToHex(maxFeePerBlobGas) : '0x',
2526
2556
  blobVersionedHashes ?? [],
2527
2557
  ...toYParitySignatureArray(transaction, signature),
2528
2558
  ];
@@ -2550,13 +2580,13 @@ function serializeTransactionEIP1559(transaction, signature) {
2550
2580
  assertTransactionEIP1559(transaction);
2551
2581
  const serializedAccessList = serializeAccessList(accessList);
2552
2582
  const serializedTransaction = [
2553
- toHex(chainId),
2554
- nonce ? toHex(nonce) : '0x',
2555
- maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : '0x',
2556
- maxFeePerGas ? toHex(maxFeePerGas) : '0x',
2557
- gas ? toHex(gas) : '0x',
2583
+ numberToHex(chainId),
2584
+ nonce ? numberToHex(nonce) : '0x',
2585
+ maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
2586
+ maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
2587
+ gas ? numberToHex(gas) : '0x',
2558
2588
  to ?? '0x',
2559
- value ? toHex(value) : '0x',
2589
+ value ? numberToHex(value) : '0x',
2560
2590
  data ?? '0x',
2561
2591
  serializedAccessList,
2562
2592
  ...toYParitySignatureArray(transaction, signature),
@@ -2571,12 +2601,12 @@ function serializeTransactionEIP2930(transaction, signature) {
2571
2601
  assertTransactionEIP2930(transaction);
2572
2602
  const serializedAccessList = serializeAccessList(accessList);
2573
2603
  const serializedTransaction = [
2574
- toHex(chainId),
2575
- nonce ? toHex(nonce) : '0x',
2576
- gasPrice ? toHex(gasPrice) : '0x',
2577
- gas ? toHex(gas) : '0x',
2604
+ numberToHex(chainId),
2605
+ nonce ? numberToHex(nonce) : '0x',
2606
+ gasPrice ? numberToHex(gasPrice) : '0x',
2607
+ gas ? numberToHex(gas) : '0x',
2578
2608
  to ?? '0x',
2579
- value ? toHex(value) : '0x',
2609
+ value ? numberToHex(value) : '0x',
2580
2610
  data ?? '0x',
2581
2611
  serializedAccessList,
2582
2612
  ...toYParitySignatureArray(transaction, signature),
@@ -2590,11 +2620,11 @@ function serializeTransactionLegacy(transaction, signature) {
2590
2620
  const { chainId = 0, gas, data, nonce, to, value, gasPrice } = transaction;
2591
2621
  assertTransactionLegacy(transaction);
2592
2622
  let serializedTransaction = [
2593
- nonce ? toHex(nonce) : '0x',
2594
- gasPrice ? toHex(gasPrice) : '0x',
2595
- gas ? toHex(gas) : '0x',
2623
+ nonce ? numberToHex(nonce) : '0x',
2624
+ gasPrice ? numberToHex(gasPrice) : '0x',
2625
+ gas ? numberToHex(gas) : '0x',
2596
2626
  to ?? '0x',
2597
- value ? toHex(value) : '0x',
2627
+ value ? numberToHex(value) : '0x',
2598
2628
  data ?? '0x',
2599
2629
  ];
2600
2630
  if (signature) {
@@ -2619,7 +2649,7 @@ function serializeTransactionLegacy(transaction, signature) {
2619
2649
  const s = trim(signature.s);
2620
2650
  serializedTransaction = [
2621
2651
  ...serializedTransaction,
2622
- toHex(v),
2652
+ numberToHex(v),
2623
2653
  r === '0x00' ? '0x' : r,
2624
2654
  s === '0x00' ? '0x' : s,
2625
2655
  ];
@@ -2627,7 +2657,7 @@ function serializeTransactionLegacy(transaction, signature) {
2627
2657
  else if (chainId > 0) {
2628
2658
  serializedTransaction = [
2629
2659
  ...serializedTransaction,
2630
- toHex(chainId),
2660
+ numberToHex(chainId),
2631
2661
  '0x',
2632
2662
  '0x',
2633
2663
  ];
@@ -2647,12 +2677,12 @@ function toYParitySignatureArray(transaction, signature_) {
2647
2677
  const s = trim(signature.s);
2648
2678
  const yParity_ = (() => {
2649
2679
  if (typeof yParity === 'number')
2650
- return yParity ? toHex(1) : '0x';
2680
+ return yParity ? numberToHex(1) : '0x';
2651
2681
  if (v === 0n)
2652
2682
  return '0x';
2653
2683
  if (v === 1n)
2654
- return toHex(1);
2655
- return v === 27n ? '0x' : toHex(1);
2684
+ return numberToHex(1);
2685
+ return v === 27n ? '0x' : numberToHex(1);
2656
2686
  })();
2657
2687
  return [yParity_, r === '0x00' ? '0x' : r, s === '0x00' ? '0x' : s];
2658
2688
  }
@@ -2763,12 +2793,13 @@ function assertTransactionDeposit(transaction) {
2763
2793
  }
2764
2794
 
2765
2795
  const chainConfig$1 = {
2796
+ blockTime: 2_000,
2766
2797
  contracts,
2767
2798
  formatters: formatters$1,
2768
2799
  serializers: serializers$1,
2769
2800
  };
2770
2801
 
2771
- const sourceId$K = 1; // mainnet
2802
+ const sourceId$M = 1; // mainnet
2772
2803
  /*#__PURE__*/ defineChain({
2773
2804
  ...chainConfig$1,
2774
2805
  id: 888888888,
@@ -2789,27 +2820,27 @@ const sourceId$K = 1; // mainnet
2789
2820
  contracts: {
2790
2821
  ...chainConfig$1.contracts,
2791
2822
  l2OutputOracle: {
2792
- [sourceId$K]: {
2823
+ [sourceId$M]: {
2793
2824
  address: '0xB09DC08428C8b4EFB4ff9C0827386CDF34277996',
2794
2825
  },
2795
2826
  },
2796
2827
  portal: {
2797
- [sourceId$K]: {
2828
+ [sourceId$M]: {
2798
2829
  address: '0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68',
2799
2830
  blockCreated: 19070571,
2800
2831
  },
2801
2832
  },
2802
2833
  l1StandardBridge: {
2803
- [sourceId$K]: {
2834
+ [sourceId$M]: {
2804
2835
  address: '0xd5e3eDf5b68135D559D572E26bF863FBC1950033',
2805
2836
  blockCreated: 19070571,
2806
2837
  },
2807
2838
  },
2808
2839
  },
2809
- sourceId: sourceId$K,
2840
+ sourceId: sourceId$M,
2810
2841
  });
2811
2842
 
2812
- const sourceId$J = 11_155_111; // sepolia
2843
+ const sourceId$L = 11_155_111; // sepolia
2813
2844
  /*#__PURE__*/ defineChain({
2814
2845
  ...chainConfig$1,
2815
2846
  id: 28122024,
@@ -2830,27 +2861,27 @@ const sourceId$J = 11_155_111; // sepolia
2830
2861
  contracts: {
2831
2862
  ...chainConfig$1.contracts,
2832
2863
  l2OutputOracle: {
2833
- [sourceId$J]: {
2864
+ [sourceId$L]: {
2834
2865
  address: '0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB',
2835
2866
  },
2836
2867
  },
2837
2868
  portal: {
2838
- [sourceId$J]: {
2869
+ [sourceId$L]: {
2839
2870
  address: '0xfa1d9E26A6aCD7b22115D27572c1221B9803c960',
2840
2871
  blockCreated: 4972908,
2841
2872
  },
2842
2873
  },
2843
2874
  l1StandardBridge: {
2844
- [sourceId$J]: {
2875
+ [sourceId$L]: {
2845
2876
  address: '0xF6Bc0146d3c74D48306e79Ae134A260E418C9335',
2846
2877
  blockCreated: 4972908,
2847
2878
  },
2848
2879
  },
2849
2880
  },
2850
- sourceId: sourceId$J,
2881
+ sourceId: sourceId$L,
2851
2882
  });
2852
2883
 
2853
- const sourceId$I = 1; // mainnet
2884
+ const sourceId$K = 1; // mainnet
2854
2885
  const base = /*#__PURE__*/ defineChain({
2855
2886
  ...chainConfig$1,
2856
2887
  id: 8453,
@@ -2871,12 +2902,12 @@ const base = /*#__PURE__*/ defineChain({
2871
2902
  contracts: {
2872
2903
  ...chainConfig$1.contracts,
2873
2904
  disputeGameFactory: {
2874
- [sourceId$I]: {
2905
+ [sourceId$K]: {
2875
2906
  address: '0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e',
2876
2907
  },
2877
2908
  },
2878
2909
  l2OutputOracle: {
2879
- [sourceId$I]: {
2910
+ [sourceId$K]: {
2880
2911
  address: '0x56315b90c40730925ec5485cf004d835058518A0',
2881
2912
  },
2882
2913
  },
@@ -2885,22 +2916,22 @@ const base = /*#__PURE__*/ defineChain({
2885
2916
  blockCreated: 5022,
2886
2917
  },
2887
2918
  portal: {
2888
- [sourceId$I]: {
2919
+ [sourceId$K]: {
2889
2920
  address: '0x49048044D57e1C92A77f79988d21Fa8fAF74E97e',
2890
2921
  blockCreated: 17482143,
2891
2922
  },
2892
2923
  },
2893
2924
  l1StandardBridge: {
2894
- [sourceId$I]: {
2925
+ [sourceId$K]: {
2895
2926
  address: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35',
2896
2927
  blockCreated: 17482143,
2897
2928
  },
2898
2929
  },
2899
2930
  },
2900
- sourceId: sourceId$I,
2931
+ sourceId: sourceId$K,
2901
2932
  });
2902
2933
 
2903
- const sourceId$H = 5; // goerli
2934
+ const sourceId$J = 5; // goerli
2904
2935
  /*#__PURE__*/ defineChain({
2905
2936
  ...chainConfig$1,
2906
2937
  id: 84531,
@@ -2919,7 +2950,7 @@ const sourceId$H = 5; // goerli
2919
2950
  contracts: {
2920
2951
  ...chainConfig$1.contracts,
2921
2952
  l2OutputOracle: {
2922
- [sourceId$H]: {
2953
+ [sourceId$J]: {
2923
2954
  address: '0x2A35891ff30313CcFa6CE88dcf3858bb075A2298',
2924
2955
  },
2925
2956
  },
@@ -2928,21 +2959,21 @@ const sourceId$H = 5; // goerli
2928
2959
  blockCreated: 1376988,
2929
2960
  },
2930
2961
  portal: {
2931
- [sourceId$H]: {
2962
+ [sourceId$J]: {
2932
2963
  address: '0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA',
2933
2964
  },
2934
2965
  },
2935
2966
  l1StandardBridge: {
2936
- [sourceId$H]: {
2967
+ [sourceId$J]: {
2937
2968
  address: '0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a',
2938
2969
  },
2939
2970
  },
2940
2971
  },
2941
2972
  testnet: true,
2942
- sourceId: sourceId$H,
2973
+ sourceId: sourceId$J,
2943
2974
  });
2944
2975
 
2945
- const sourceId$G = 11_155_111; // sepolia
2976
+ const sourceId$I = 11_155_111; // sepolia
2946
2977
  const baseSepolia = /*#__PURE__*/ defineChain({
2947
2978
  ...chainConfig$1,
2948
2979
  id: 84532,
@@ -2964,23 +2995,23 @@ const baseSepolia = /*#__PURE__*/ defineChain({
2964
2995
  contracts: {
2965
2996
  ...chainConfig$1.contracts,
2966
2997
  disputeGameFactory: {
2967
- [sourceId$G]: {
2998
+ [sourceId$I]: {
2968
2999
  address: '0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1',
2969
3000
  },
2970
3001
  },
2971
3002
  l2OutputOracle: {
2972
- [sourceId$G]: {
3003
+ [sourceId$I]: {
2973
3004
  address: '0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254',
2974
3005
  },
2975
3006
  },
2976
3007
  portal: {
2977
- [sourceId$G]: {
3008
+ [sourceId$I]: {
2978
3009
  address: '0x49f53e41452c74589e85ca1677426ba426459e85',
2979
3010
  blockCreated: 4446677,
2980
3011
  },
2981
3012
  },
2982
3013
  l1StandardBridge: {
2983
- [sourceId$G]: {
3014
+ [sourceId$I]: {
2984
3015
  address: '0xfd0Bf71F60660E2f608ed56e1659C450eB113120',
2985
3016
  blockCreated: 4446677,
2986
3017
  },
@@ -2991,7 +3022,7 @@ const baseSepolia = /*#__PURE__*/ defineChain({
2991
3022
  },
2992
3023
  },
2993
3024
  testnet: true,
2994
- sourceId: sourceId$G,
3025
+ sourceId: sourceId$I,
2995
3026
  });
2996
3027
 
2997
3028
  defineChain({
@@ -3012,7 +3043,7 @@ defineChain({
3012
3043
  },
3013
3044
  });
3014
3045
 
3015
- const sourceId$F = 1; // mainnet
3046
+ const sourceId$H = 1; // mainnet
3016
3047
  /*#__PURE__*/ defineChain({
3017
3048
  ...chainConfig$1,
3018
3049
  id: 81457,
@@ -3038,11 +3069,29 @@ const sourceId$F = 1; // mainnet
3038
3069
  address: '0xcA11bde05977b3631167028862bE2a173976CA11',
3039
3070
  blockCreated: 212929,
3040
3071
  },
3072
+ l2OutputOracle: {
3073
+ [sourceId$H]: {
3074
+ address: '0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76',
3075
+ blockCreated: 19300358,
3076
+ },
3077
+ },
3078
+ portal: {
3079
+ [sourceId$H]: {
3080
+ address: '0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb',
3081
+ blockCreated: 19300357,
3082
+ },
3083
+ },
3084
+ l1StandardBridge: {
3085
+ [sourceId$H]: {
3086
+ address: '0x697402166Fbf2F22E970df8a6486Ef171dbfc524',
3087
+ blockCreated: 19300360,
3088
+ },
3089
+ },
3041
3090
  },
3042
- sourceId: sourceId$F,
3091
+ sourceId: sourceId$H,
3043
3092
  });
3044
3093
 
3045
- const sourceId$E = 1; // mainnet
3094
+ const sourceId$G = 1; // mainnet
3046
3095
  defineChain({
3047
3096
  ...chainConfig$1,
3048
3097
  id: 60808,
@@ -3071,22 +3120,22 @@ defineChain({
3071
3120
  blockCreated: 23131,
3072
3121
  },
3073
3122
  l2OutputOracle: {
3074
- [sourceId$E]: {
3123
+ [sourceId$G]: {
3075
3124
  address: '0xdDa53E23f8a32640b04D7256e651C1db98dB11C1',
3076
3125
  blockCreated: 4462615,
3077
3126
  },
3078
3127
  },
3079
3128
  portal: {
3080
- [sourceId$E]: {
3129
+ [sourceId$G]: {
3081
3130
  address: '0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E',
3082
3131
  blockCreated: 4462615,
3083
3132
  },
3084
3133
  },
3085
3134
  },
3086
- sourceId: sourceId$E,
3135
+ sourceId: sourceId$G,
3087
3136
  });
3088
3137
 
3089
- const sourceId$D = 11_155_111; // sepolia
3138
+ const sourceId$F = 11_155_111; // sepolia
3090
3139
  defineChain({
3091
3140
  ...chainConfig$1,
3092
3141
  id: 808813,
@@ -3115,20 +3164,20 @@ defineChain({
3115
3164
  blockCreated: 35677,
3116
3165
  },
3117
3166
  l2OutputOracle: {
3118
- [sourceId$D]: {
3167
+ [sourceId$F]: {
3119
3168
  address: '0x14D0069452b4AE2b250B395b8adAb771E4267d2f',
3120
3169
  blockCreated: 4462615,
3121
3170
  },
3122
3171
  },
3123
3172
  portal: {
3124
- [sourceId$D]: {
3173
+ [sourceId$F]: {
3125
3174
  address: '0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4',
3126
3175
  blockCreated: 4462615,
3127
3176
  },
3128
3177
  },
3129
3178
  },
3130
3179
  testnet: true,
3131
- sourceId: sourceId$D,
3180
+ sourceId: sourceId$F,
3132
3181
  });
3133
3182
 
3134
3183
  const fees = {
@@ -3337,13 +3386,14 @@ function assertTransactionCIP64(transaction) {
3337
3386
  }
3338
3387
 
3339
3388
  const chainConfig = {
3389
+ blockTime: 1_000,
3340
3390
  contracts,
3341
3391
  formatters,
3342
3392
  serializers,
3343
3393
  fees,
3344
3394
  };
3345
3395
 
3346
- const sourceId$C = 17000; // holsky
3396
+ const sourceId$E = 17000; // holsky
3347
3397
  // source https://storage.googleapis.com/cel2-rollup-files/alfajores/deployment-l1.json
3348
3398
  /*#__PURE__*/ defineChain({
3349
3399
  ...chainConfig,
@@ -3373,25 +3423,25 @@ const sourceId$C = 17000; // holsky
3373
3423
  blockCreated: 14569001,
3374
3424
  },
3375
3425
  portal: {
3376
- [sourceId$C]: {
3426
+ [sourceId$E]: {
3377
3427
  address: '0x82527353927d8D069b3B452904c942dA149BA381',
3378
3428
  blockCreated: 2411324,
3379
3429
  },
3380
3430
  },
3381
3431
  disputeGameFactory: {
3382
- [sourceId$C]: {
3432
+ [sourceId$E]: {
3383
3433
  address: '0xE28AAdcd9883746c0e5068F58f9ea06027b214cb',
3384
3434
  blockCreated: 2411324,
3385
3435
  },
3386
3436
  },
3387
3437
  l2OutputOracle: {
3388
- [sourceId$C]: {
3438
+ [sourceId$E]: {
3389
3439
  address: '0x4a2635e9e4f6e45817b1D402ac4904c1d1752438',
3390
3440
  blockCreated: 2411324,
3391
3441
  },
3392
3442
  },
3393
3443
  l1StandardBridge: {
3394
- [sourceId$C]: {
3444
+ [sourceId$E]: {
3395
3445
  address: '0xD1B0E0581973c9eB7f886967A606b9441A897037',
3396
3446
  blockCreated: 2411324,
3397
3447
  },
@@ -3400,6 +3450,57 @@ const sourceId$C = 17000; // holsky
3400
3450
  testnet: true,
3401
3451
  });
3402
3452
 
3453
+ const sourceId$D = 11_155_111; // sepolia
3454
+ // source https://storage.googleapis.com/cel2-rollup-files/celo-sepolia/deployment-l1.json
3455
+ /*#__PURE__*/ defineChain({
3456
+ ...chainConfig,
3457
+ id: 11_142_220,
3458
+ name: 'Celo Sepolia Testnet',
3459
+ nativeCurrency: {
3460
+ decimals: 18,
3461
+ name: 'CELO',
3462
+ symbol: 'S-CELO',
3463
+ },
3464
+ rpcUrls: {
3465
+ default: {
3466
+ http: ['https://forno.celo-sepolia.celo-testnet.org'],
3467
+ },
3468
+ },
3469
+ blockExplorers: {
3470
+ default: {
3471
+ name: 'Celo Sepolia Explorer',
3472
+ url: 'https://celo-sepolia.blockscout.com/',
3473
+ apiUrl: 'https://celo-sepolia.blockscout.com/api',
3474
+ },
3475
+ },
3476
+ contracts: {
3477
+ ...chainConfig.contracts,
3478
+ multicall3: {
3479
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
3480
+ blockCreated: 1,
3481
+ },
3482
+ portal: {
3483
+ [sourceId$D]: {
3484
+ address: '0x44ae3d41a335a7d05eb533029917aad35662dcc2',
3485
+ blockCreated: 8825790,
3486
+ },
3487
+ },
3488
+ disputeGameFactory: {
3489
+ [sourceId$D]: {
3490
+ address: '0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa',
3491
+ blockCreated: 8825790,
3492
+ },
3493
+ },
3494
+ l1StandardBridge: {
3495
+ [sourceId$D]: {
3496
+ address: '0xec18a3c30131a0db4246e785355fbc16e2eaf408',
3497
+ blockCreated: 8825790,
3498
+ },
3499
+ },
3500
+ },
3501
+ testnet: true,
3502
+ });
3503
+
3403
3504
  defineChain({
3404
3505
  id: 44,
3405
3506
  name: 'Crab Network',
@@ -3514,7 +3615,7 @@ defineChain({
3514
3615
  testnet: true,
3515
3616
  });
3516
3617
 
3517
- const sourceId$B = 1; // mainnet
3618
+ const sourceId$C = 1; // mainnet
3518
3619
  /*#__PURE__*/ defineChain({
3519
3620
  id: 478,
3520
3621
  name: 'Form Network',
@@ -3538,27 +3639,27 @@ const sourceId$B = 1; // mainnet
3538
3639
  contracts: {
3539
3640
  ...chainConfig$1.contracts,
3540
3641
  addressManager: {
3541
- [sourceId$B]: {
3642
+ [sourceId$C]: {
3542
3643
  address: '0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B',
3543
3644
  },
3544
3645
  },
3545
3646
  l1CrossDomainMessenger: {
3546
- [sourceId$B]: {
3647
+ [sourceId$C]: {
3547
3648
  address: '0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c',
3548
3649
  },
3549
3650
  },
3550
3651
  l2OutputOracle: {
3551
- [sourceId$B]: {
3652
+ [sourceId$C]: {
3552
3653
  address: '0x4ccAAF69F41c5810cA875183648B577CaCf1F67E',
3553
3654
  },
3554
3655
  },
3555
3656
  portal: {
3556
- [sourceId$B]: {
3657
+ [sourceId$C]: {
3557
3658
  address: '0x4E259Ee5F4136408908160dD32295A5031Fa426F',
3558
3659
  },
3559
3660
  },
3560
3661
  l1StandardBridge: {
3561
- [sourceId$B]: {
3662
+ [sourceId$C]: {
3562
3663
  address: '0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba',
3563
3664
  },
3564
3665
  },
@@ -3566,10 +3667,10 @@ const sourceId$B = 1; // mainnet
3566
3667
  address: '0xcA11bde05977b3631167028862bE2a173976CA11',
3567
3668
  },
3568
3669
  },
3569
- sourceId: sourceId$B,
3670
+ sourceId: sourceId$C,
3570
3671
  });
3571
3672
 
3572
- const sourceId$A = 11_155_111; // sepolia
3673
+ const sourceId$B = 11_155_111; // sepolia
3573
3674
  /*#__PURE__*/ defineChain({
3574
3675
  id: 132_902,
3575
3676
  name: 'Form Testnet',
@@ -3593,27 +3694,27 @@ const sourceId$A = 11_155_111; // sepolia
3593
3694
  contracts: {
3594
3695
  ...chainConfig$1.contracts,
3595
3696
  addressManager: {
3596
- [sourceId$A]: {
3697
+ [sourceId$B]: {
3597
3698
  address: '0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373',
3598
3699
  },
3599
3700
  },
3600
3701
  l1CrossDomainMessenger: {
3601
- [sourceId$A]: {
3702
+ [sourceId$B]: {
3602
3703
  address: '0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa',
3603
3704
  },
3604
3705
  },
3605
3706
  l2OutputOracle: {
3606
- [sourceId$A]: {
3707
+ [sourceId$B]: {
3607
3708
  address: '0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2',
3608
3709
  },
3609
3710
  },
3610
3711
  portal: {
3611
- [sourceId$A]: {
3712
+ [sourceId$B]: {
3612
3713
  address: '0x60377e3cE15dF4CCA24c4beF076b60314240b032',
3613
3714
  },
3614
3715
  },
3615
3716
  l1StandardBridge: {
3616
- [sourceId$A]: {
3717
+ [sourceId$B]: {
3617
3718
  address: '0xD4531f633942b2725896F47cD2aFd260b44Ab1F7',
3618
3719
  },
3619
3720
  },
@@ -3622,10 +3723,10 @@ const sourceId$A = 11_155_111; // sepolia
3622
3723
  },
3623
3724
  },
3624
3725
  testnet: true,
3625
- sourceId: sourceId$A,
3726
+ sourceId: sourceId$B,
3626
3727
  });
3627
3728
 
3628
- const sourceId$z = 1; // mainnet
3729
+ const sourceId$A = 1; // mainnet
3629
3730
  /*#__PURE__*/ defineChain({
3630
3731
  ...chainConfig$1,
3631
3732
  id: 252,
@@ -3646,7 +3747,7 @@ const sourceId$z = 1; // mainnet
3646
3747
  contracts: {
3647
3748
  ...chainConfig$1.contracts,
3648
3749
  l2OutputOracle: {
3649
- [sourceId$z]: {
3750
+ [sourceId$A]: {
3650
3751
  address: '0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4',
3651
3752
  },
3652
3753
  },
@@ -3654,22 +3755,22 @@ const sourceId$z = 1; // mainnet
3654
3755
  address: '0xca11bde05977b3631167028862be2a173976ca11',
3655
3756
  },
3656
3757
  portal: {
3657
- [sourceId$z]: {
3758
+ [sourceId$A]: {
3658
3759
  address: '0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D',
3659
3760
  blockCreated: 19135323,
3660
3761
  },
3661
3762
  },
3662
3763
  l1StandardBridge: {
3663
- [sourceId$z]: {
3764
+ [sourceId$A]: {
3664
3765
  address: '0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2',
3665
3766
  blockCreated: 19135323,
3666
3767
  },
3667
3768
  },
3668
3769
  },
3669
- sourceId: sourceId$z,
3770
+ sourceId: sourceId$A,
3670
3771
  });
3671
3772
 
3672
- const sourceId$y = 17000; // holesky
3773
+ const sourceId$z = 17000; // holesky
3673
3774
  /*#__PURE__*/ defineChain({
3674
3775
  ...chainConfig$1,
3675
3776
  id: 2522,
@@ -3690,7 +3791,7 @@ const sourceId$y = 17000; // holesky
3690
3791
  contracts: {
3691
3792
  ...chainConfig$1.contracts,
3692
3793
  l2OutputOracle: {
3693
- [sourceId$y]: {
3794
+ [sourceId$z]: {
3694
3795
  address: '0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32',
3695
3796
  },
3696
3797
  },
@@ -3698,22 +3799,22 @@ const sourceId$y = 17000; // holesky
3698
3799
  address: '0xca11bde05977b3631167028862be2a173976ca11',
3699
3800
  },
3700
3801
  portal: {
3701
- [sourceId$y]: {
3802
+ [sourceId$z]: {
3702
3803
  address: '0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d',
3703
3804
  blockCreated: 318416,
3704
3805
  },
3705
3806
  },
3706
3807
  l1StandardBridge: {
3707
- [sourceId$y]: {
3808
+ [sourceId$z]: {
3708
3809
  address: '0x0BaafC217162f64930909aD9f2B27125121d6332',
3709
3810
  blockCreated: 318416,
3710
3811
  },
3711
3812
  },
3712
3813
  },
3713
- sourceId: sourceId$y,
3814
+ sourceId: sourceId$z,
3714
3815
  });
3715
3816
 
3716
- const sourceId$x = 1; // mainnet
3817
+ const sourceId$y = 1; // mainnet
3717
3818
  /*#__PURE__*/ defineChain({
3718
3819
  ...chainConfig$1,
3719
3820
  id: 33979,
@@ -3733,10 +3834,10 @@ const sourceId$x = 1; // mainnet
3733
3834
  contracts: {
3734
3835
  ...chainConfig$1.contracts,
3735
3836
  },
3736
- sourceId: sourceId$x,
3837
+ sourceId: sourceId$y,
3737
3838
  });
3738
3839
 
3739
- const sourceId$w = 11_155_111; // sepolia
3840
+ const sourceId$x = 11_155_111; // sepolia
3740
3841
  defineChain({
3741
3842
  ...chainConfig$1,
3742
3843
  id: 3397901,
@@ -3762,16 +3863,16 @@ defineChain({
3762
3863
  blockCreated: 1620204,
3763
3864
  },
3764
3865
  },
3765
- sourceId: sourceId$w,
3866
+ sourceId: sourceId$x,
3766
3867
  });
3767
3868
 
3768
- const sourceId$v = 17000; // Holesky testnet
3869
+ const sourceId$w = 17000; // Holesky testnet
3769
3870
  defineChain({
3770
3871
  ...chainConfig$1,
3771
3872
  name: 'Garnet Testnet',
3772
3873
  testnet: true,
3773
3874
  id: 17069,
3774
- sourceId: sourceId$v,
3875
+ sourceId: sourceId$w,
3775
3876
  nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
3776
3877
  rpcUrls: {
3777
3878
  default: {
@@ -3791,19 +3892,19 @@ defineChain({
3791
3892
  address: '0xca11bde05977b3631167028862be2a173976ca11',
3792
3893
  },
3793
3894
  portal: {
3794
- [sourceId$v]: {
3895
+ [sourceId$w]: {
3795
3896
  address: '0x57ee40586fbE286AfC75E67cb69511A6D9aF5909',
3796
3897
  blockCreated: 1274684,
3797
3898
  },
3798
3899
  },
3799
3900
  l2OutputOracle: {
3800
- [sourceId$v]: {
3901
+ [sourceId$w]: {
3801
3902
  address: '0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B',
3802
3903
  blockCreated: 1274684,
3803
3904
  },
3804
3905
  },
3805
3906
  l1StandardBridge: {
3806
- [sourceId$v]: {
3907
+ [sourceId$w]: {
3807
3908
  address: '0x09bcDd311FE398F80a78BE37E489f5D440DB95DE',
3808
3909
  blockCreated: 1274684,
3809
3910
  },
@@ -3811,6 +3912,52 @@ defineChain({
3811
3912
  },
3812
3913
  });
3813
3914
 
3915
+ const sourceId$v = 11_155_111; // sepolia
3916
+ /*#__PURE__*/ defineChain({
3917
+ ...chainConfig$1,
3918
+ id: 91342,
3919
+ network: 'giwa-sepolia',
3920
+ name: 'GIWA Sepolia',
3921
+ nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
3922
+ blockTime: 1_000,
3923
+ rpcUrls: {
3924
+ default: {
3925
+ http: ['https://sepolia-rpc.giwa.io'],
3926
+ },
3927
+ },
3928
+ blockExplorers: {
3929
+ default: {
3930
+ name: 'Blockscout',
3931
+ url: 'https://sepolia-explorer.giwa.io',
3932
+ apiUrl: 'https://sepolia-explorer.giwa.io/api',
3933
+ },
3934
+ },
3935
+ contracts: {
3936
+ ...chainConfig$1.contracts,
3937
+ multicall3: {
3938
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
3939
+ blockCreated: 0,
3940
+ },
3941
+ disputeGameFactory: {
3942
+ [sourceId$v]: {
3943
+ address: '0x37347caB2afaa49B776372279143D71ad1f354F6',
3944
+ },
3945
+ },
3946
+ portal: {
3947
+ [sourceId$v]: {
3948
+ address: '0x956962C34687A954e611A83619ABaA37Ce6bC78A',
3949
+ },
3950
+ },
3951
+ l1StandardBridge: {
3952
+ [sourceId$v]: {
3953
+ address: '0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7',
3954
+ },
3955
+ },
3956
+ },
3957
+ testnet: true,
3958
+ sourceId: sourceId$v,
3959
+ });
3960
+
3814
3961
  const sourceId$u = 1; // mainnet
3815
3962
  /*#__PURE__*/ defineChain({
3816
3963
  ...chainConfig$1,
@@ -4160,6 +4307,25 @@ const sourceId$o = 11_155_111; // sepolia
4160
4307
  sourceId: sourceId$o,
4161
4308
  });
4162
4309
 
4310
+ defineChain({
4311
+ id: 166,
4312
+ name: 'Omni',
4313
+ nativeCurrency: { name: 'Omni', symbol: 'OMNI', decimals: 18 },
4314
+ rpcUrls: {
4315
+ default: {
4316
+ http: ['https://mainnet.omni.network'],
4317
+ webSocket: ['wss://mainnet.omni.network'],
4318
+ },
4319
+ },
4320
+ blockExplorers: {
4321
+ default: {
4322
+ name: 'OmniScan',
4323
+ url: 'https://omniscan.network',
4324
+ },
4325
+ },
4326
+ testnet: false,
4327
+ });
4328
+
4163
4329
  const sourceId$n = 56; // bsc mainnet
4164
4330
  /*#__PURE__*/ defineChain({
4165
4331
  id: 204,
@@ -4979,6 +5145,7 @@ const sourceId$6 = 1; // mainnet
4979
5145
  id: 130,
4980
5146
  name: 'Unichain',
4981
5147
  nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
5148
+ blockTime: 1_000,
4982
5149
  rpcUrls: {
4983
5150
  default: {
4984
5151
  http: ['https://mainnet.unichain.org/'],
@@ -5026,6 +5193,7 @@ const sourceId$5 = 11_155_111; // sepolia
5026
5193
  symbol: 'ETH',
5027
5194
  decimals: 18,
5028
5195
  },
5196
+ blockTime: 1_000,
5029
5197
  rpcUrls: {
5030
5198
  default: {
5031
5199
  http: ['https://sepolia.unichain.org'],
@@ -5308,8 +5476,8 @@ const sourceId = 5; // goerli
5308
5476
  });
5309
5477
 
5310
5478
  const FlaunchZapAddress = {
5311
- [base.id]: "0xe52dE1801C10cF709cc8e62d43D783AFe984b510",
5312
- [baseSepolia.id]: "0xf0Fd8Bb98c050607d999D6fFF9C617edD6673b75",
5479
+ [base.id]: "0x39112541720078c70164EA4Deb61F0A4811910F9",
5480
+ [baseSepolia.id]: "0x25b747aeca2612b9804b5c3bb272a3daefdc6eaa",
5313
5481
  };
5314
5482
  // only old V1.0: doesn't use FeeEscrow
5315
5483
  const FlaunchPositionManagerAddress = {
@@ -5378,13 +5546,17 @@ const AddressFeeSplitManagerAddress = {
5378
5546
  [base.id]: "0xfAB4BA48a322Efc8b25815448BE6018D211e89f3",
5379
5547
  [baseSepolia.id]: "0x0A3AF63cd86E68a852A1D4923FEfC4e855D8499d",
5380
5548
  };
5549
+ const DynamicAddressFeeSplitManagerAddress = {
5550
+ [base.id]: "0x9b332EA14a99B74cAB03A3D3178964eD9CE35fc8",
5551
+ [baseSepolia.id]: "0x4882075542626721C8743D80DC9528e2f54d8A46",
5552
+ };
5381
5553
  const StakingManagerAddress = {
5382
5554
  [base.id]: "0xec0069F8DBbbC94058dc895000dd38ef40b3125d",
5383
5555
  [baseSepolia.id]: "0xB8f1cb6B4Ff8f07149276bbfA617aed7bd32d20D",
5384
5556
  };
5385
5557
  const BuyBackManagerAddress = {
5386
- [base.id]: "0x3AAF3b1D8cD5b61C77f99bA7cdf41E9eC0Ba8a3f",
5387
- [baseSepolia.id]: "0xc3947EC9d687053bBA72b36Fd6b2567e775E82C7",
5558
+ [base.id]: "0x18713855492A778363e23e2CdE325344b8fd6F8d",
5559
+ [baseSepolia.id]: "0xA4A1a2Ca68151565d5200243a52EEBbCb2C878E0",
5388
5560
  };
5389
5561
  /** Verifiers */
5390
5562
  const TokenImporterAddress = {
@@ -5431,7 +5603,7 @@ const FeeEscrowAddress = {
5431
5603
  [baseSepolia.id]: "0x73E27908b7d35A9251a54799A8ef4C17e4ED9FF9",
5432
5604
  };
5433
5605
  const ReferralEscrowAddress = {
5434
- [base.id]: "0xBD39c7Be6D98BD1a3e4Ad482baF99d738947fE55",
5606
+ [base.id]: "0xd381f8ea57df43c57cfe6e5b19a0a4700396f28c",
5435
5607
  [baseSepolia.id]: "0xd3d9047CaBE3346C70b510435866565176e8CE12",
5436
5608
  };
5437
5609
  const FLETHAddress = {
@@ -5498,6 +5670,7 @@ exports.BuyBackManagerAddress = BuyBackManagerAddress;
5498
5670
  exports.ClankerWorldVerifierAddress = ClankerWorldVerifierAddress;
5499
5671
  exports.ClosedPermissionsAddress = ClosedPermissionsAddress;
5500
5672
  exports.DopplerVerifierAddress = DopplerVerifierAddress;
5673
+ exports.DynamicAddressFeeSplitManagerAddress = DynamicAddressFeeSplitManagerAddress;
5501
5674
  exports.FLETHAddress = FLETHAddress;
5502
5675
  exports.FLETHHooksAddress = FLETHHooksAddress;
5503
5676
  exports.FairLaunchAddress = FairLaunchAddress;