@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.
- package/README.md +47 -0
- package/dist/abi/DynamicAddressFeeSplitManager.d.ts +1147 -0
- package/dist/abi/DynamicAddressFeeSplitManager.d.ts.map +1 -0
- package/dist/abi/index.cjs +1493 -0
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.d.ts +1 -0
- package/dist/abi/index.d.ts.map +1 -1
- package/dist/abi/index.js +1493 -1
- package/dist/abi/index.js.map +1 -1
- package/dist/addresses/index.cjs +388 -215
- package/dist/addresses/index.cjs.map +1 -1
- package/dist/addresses/index.js +388 -216
- package/dist/addresses/index.js.map +1 -1
- package/dist/addresses.d.ts +1 -0
- package/dist/addresses.d.ts.map +1 -1
- package/dist/clients/DynamicAddressFeeSplitManagerClient.d.ts +50 -0
- package/dist/clients/DynamicAddressFeeSplitManagerClient.d.ts.map +1 -0
- package/dist/clients/FlaunchZapClient.d.ts +27 -0
- package/dist/clients/FlaunchZapClient.d.ts.map +1 -1
- package/dist/helpers/index.cjs +378 -210
- package/dist/helpers/index.cjs.map +1 -1
- package/dist/helpers/index.js +378 -210
- package/dist/helpers/index.js.map +1 -1
- package/dist/index.cjs.js +2753 -795
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +2751 -797
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/sdk/FlaunchSDK.d.ts +13 -1
- package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/helpers/index.js
CHANGED
|
@@ -269,7 +269,7 @@ function defineChain(chain) {
|
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
const version = '2.
|
|
272
|
+
const version = '2.37.12';
|
|
273
273
|
|
|
274
274
|
let errorConfig = {
|
|
275
275
|
getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
|
|
@@ -869,8 +869,8 @@ function defineFormatter(type, format) {
|
|
|
869
869
|
return ({ exclude, format: overrides, }) => {
|
|
870
870
|
return {
|
|
871
871
|
exclude,
|
|
872
|
-
format: (args) => {
|
|
873
|
-
const formatted = format(args);
|
|
872
|
+
format: (args, action) => {
|
|
873
|
+
const formatted = format(args, action);
|
|
874
874
|
if (exclude) {
|
|
875
875
|
for (const key of exclude) {
|
|
876
876
|
delete formatted[key];
|
|
@@ -878,7 +878,7 @@ function defineFormatter(type, format) {
|
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
880
880
|
...formatted,
|
|
881
|
-
...overrides(args),
|
|
881
|
+
...overrides(args, action),
|
|
882
882
|
};
|
|
883
883
|
},
|
|
884
884
|
type,
|
|
@@ -893,7 +893,7 @@ const transactionType = {
|
|
|
893
893
|
'0x3': 'eip4844',
|
|
894
894
|
'0x4': 'eip7702',
|
|
895
895
|
};
|
|
896
|
-
function formatTransaction(transaction) {
|
|
896
|
+
function formatTransaction(transaction, _) {
|
|
897
897
|
const transaction_ = {
|
|
898
898
|
...transaction,
|
|
899
899
|
blockHash: transaction.blockHash ? transaction.blockHash : null,
|
|
@@ -971,7 +971,7 @@ function formatAuthorizationList$1(authorizationList) {
|
|
|
971
971
|
}));
|
|
972
972
|
}
|
|
973
973
|
|
|
974
|
-
function formatBlock(block) {
|
|
974
|
+
function formatBlock(block, _) {
|
|
975
975
|
const transactions = (block.transactions ?? []).map((transaction) => {
|
|
976
976
|
if (typeof transaction === 'string')
|
|
977
977
|
return transaction;
|
|
@@ -1019,7 +1019,7 @@ const receiptStatuses = {
|
|
|
1019
1019
|
'0x0': 'reverted',
|
|
1020
1020
|
'0x1': 'success',
|
|
1021
1021
|
};
|
|
1022
|
-
function formatTransactionReceipt(transactionReceipt) {
|
|
1022
|
+
function formatTransactionReceipt(transactionReceipt, _) {
|
|
1023
1023
|
const receipt = {
|
|
1024
1024
|
...transactionReceipt,
|
|
1025
1025
|
blockNumber: transactionReceipt.blockNumber
|
|
@@ -1066,7 +1066,7 @@ const rpcTransactionType = {
|
|
|
1066
1066
|
eip4844: '0x3',
|
|
1067
1067
|
eip7702: '0x4',
|
|
1068
1068
|
};
|
|
1069
|
-
function formatTransactionRequest(request) {
|
|
1069
|
+
function formatTransactionRequest(request, _) {
|
|
1070
1070
|
const rpcRequest = {};
|
|
1071
1071
|
if (typeof request.authorizationList !== 'undefined')
|
|
1072
1072
|
rpcRequest.authorizationList = formatAuthorizationList(request.authorizationList);
|
|
@@ -1586,18 +1586,18 @@ function blobsToProofs(parameters) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
1588
|
/**
|
|
1589
|
-
*
|
|
1589
|
+
* Utilities for hex, bytes, CSPRNG.
|
|
1590
1590
|
* @module
|
|
1591
1591
|
*/
|
|
1592
|
+
/** Checks if something is Uint8Array. Be careful: nodejs Buffer will return true. */
|
|
1593
|
+
function isBytes(a) {
|
|
1594
|
+
return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
|
|
1595
|
+
}
|
|
1592
1596
|
/** Asserts something is positive integer. */
|
|
1593
1597
|
function anumber(n) {
|
|
1594
1598
|
if (!Number.isSafeInteger(n) || n < 0)
|
|
1595
1599
|
throw new Error('positive integer expected, got ' + n);
|
|
1596
1600
|
}
|
|
1597
|
-
/** Is number an Uint8Array? Copied from utils for perf. */
|
|
1598
|
-
function isBytes(a) {
|
|
1599
|
-
return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
|
|
1600
|
-
}
|
|
1601
1601
|
/** Asserts something is Uint8Array. */
|
|
1602
1602
|
function abytes(b, ...lengths) {
|
|
1603
1603
|
if (!isBytes(b))
|
|
@@ -1620,15 +1620,17 @@ function aoutput(out, instance) {
|
|
|
1620
1620
|
throw new Error('digestInto() expects output buffer of length at least ' + min);
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* Utilities for hex, bytes, CSPRNG.
|
|
1626
|
-
* @module
|
|
1627
|
-
*/
|
|
1623
|
+
/** Cast u8 / u16 / u32 to u32. */
|
|
1628
1624
|
function u32(arr) {
|
|
1629
1625
|
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
1630
1626
|
}
|
|
1631
|
-
|
|
1627
|
+
/** Zeroize a byte array. Warning: JS provides no guarantees. */
|
|
1628
|
+
function clean(...arrays) {
|
|
1629
|
+
for (let i = 0; i < arrays.length; i++) {
|
|
1630
|
+
arrays[i].fill(0);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
/** Create DataView of an array for easy byte-level manipulation. */
|
|
1632
1634
|
function createView(arr) {
|
|
1633
1635
|
return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
1634
1636
|
}
|
|
@@ -1638,7 +1640,7 @@ function rotr(word, shift) {
|
|
|
1638
1640
|
}
|
|
1639
1641
|
/** Is current platform little-endian? Most are. Big-Endian platform: IBM */
|
|
1640
1642
|
const isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();
|
|
1641
|
-
|
|
1643
|
+
/** The byte swap operation for uint32 */
|
|
1642
1644
|
function byteSwap(word) {
|
|
1643
1645
|
return (((word << 24) & 0xff000000) |
|
|
1644
1646
|
((word << 8) & 0xff0000) |
|
|
@@ -1650,17 +1652,18 @@ function byteSwap32(arr) {
|
|
|
1650
1652
|
for (let i = 0; i < arr.length; i++) {
|
|
1651
1653
|
arr[i] = byteSwap(arr[i]);
|
|
1652
1654
|
}
|
|
1655
|
+
return arr;
|
|
1653
1656
|
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
+
const swap32IfBE = isLE
|
|
1658
|
+
? (u) => u
|
|
1659
|
+
: byteSwap32;
|
|
1657
1660
|
/**
|
|
1658
|
-
*
|
|
1659
|
-
* @example utf8ToBytes('abc') //
|
|
1661
|
+
* Converts string to bytes using UTF8 encoding.
|
|
1662
|
+
* @example utf8ToBytes('abc') // Uint8Array.from([97, 98, 99])
|
|
1660
1663
|
*/
|
|
1661
1664
|
function utf8ToBytes(str) {
|
|
1662
1665
|
if (typeof str !== 'string')
|
|
1663
|
-
throw new Error('
|
|
1666
|
+
throw new Error('string expected');
|
|
1664
1667
|
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
1665
1668
|
}
|
|
1666
1669
|
/**
|
|
@@ -1676,13 +1679,9 @@ function toBytes(data) {
|
|
|
1676
1679
|
}
|
|
1677
1680
|
/** For runtime check if class implements interface */
|
|
1678
1681
|
class Hash {
|
|
1679
|
-
// Safe version that clones internal state
|
|
1680
|
-
clone() {
|
|
1681
|
-
return this._cloneInto();
|
|
1682
|
-
}
|
|
1683
1682
|
}
|
|
1684
1683
|
/** Wraps hash function, creating an interface on top of it */
|
|
1685
|
-
function
|
|
1684
|
+
function createHasher(hashCons) {
|
|
1686
1685
|
const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
|
|
1687
1686
|
const tmp = hashCons();
|
|
1688
1687
|
hashC.outputLen = tmp.outputLen;
|
|
@@ -1736,8 +1735,9 @@ class HashMD extends Hash {
|
|
|
1736
1735
|
}
|
|
1737
1736
|
update(data) {
|
|
1738
1737
|
aexists(this);
|
|
1739
|
-
const { view, buffer, blockLen } = this;
|
|
1740
1738
|
data = toBytes(data);
|
|
1739
|
+
abytes(data);
|
|
1740
|
+
const { view, buffer, blockLen } = this;
|
|
1741
1741
|
const len = data.length;
|
|
1742
1742
|
for (let pos = 0; pos < len;) {
|
|
1743
1743
|
const take = Math.min(blockLen - this.pos, len - pos);
|
|
@@ -1771,7 +1771,7 @@ class HashMD extends Hash {
|
|
|
1771
1771
|
let { pos } = this;
|
|
1772
1772
|
// append the bit '1' to the message
|
|
1773
1773
|
buffer[pos++] = 0b10000000;
|
|
1774
|
-
this.buffer.subarray(pos)
|
|
1774
|
+
clean(this.buffer.subarray(pos));
|
|
1775
1775
|
// we have less than padOffset left in buffer, so we cannot put length in
|
|
1776
1776
|
// current block, need process it and pad again
|
|
1777
1777
|
if (this.padOffset > blockLen - pos) {
|
|
@@ -1809,28 +1809,69 @@ class HashMD extends Hash {
|
|
|
1809
1809
|
to || (to = new this.constructor());
|
|
1810
1810
|
to.set(...this.get());
|
|
1811
1811
|
const { blockLen, buffer, length, finished, destroyed, pos } = this;
|
|
1812
|
+
to.destroyed = destroyed;
|
|
1813
|
+
to.finished = finished;
|
|
1812
1814
|
to.length = length;
|
|
1813
1815
|
to.pos = pos;
|
|
1814
|
-
to.finished = finished;
|
|
1815
|
-
to.destroyed = destroyed;
|
|
1816
1816
|
if (length % blockLen)
|
|
1817
1817
|
to.buffer.set(buffer);
|
|
1818
1818
|
return to;
|
|
1819
1819
|
}
|
|
1820
|
+
clone() {
|
|
1821
|
+
return this._cloneInto();
|
|
1822
|
+
}
|
|
1820
1823
|
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Initial SHA-2 state: fractional parts of square roots of first 16 primes 2..53.
|
|
1826
|
+
* Check out `test/misc/sha2-gen-iv.js` for recomputation guide.
|
|
1827
|
+
*/
|
|
1828
|
+
/** Initial SHA256 state. Bits 0..32 of frac part of sqrt of primes 2..19 */
|
|
1829
|
+
const SHA256_IV = /* @__PURE__ */ Uint32Array.from([
|
|
1830
|
+
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
|
|
1831
|
+
]);
|
|
1821
1832
|
|
|
1822
1833
|
/**
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
* To break sha256 using birthday attack, attackers need to try 2^128 hashes.
|
|
1826
|
-
* BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
|
|
1827
|
-
*
|
|
1828
|
-
* Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
|
|
1834
|
+
* Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
|
|
1835
|
+
* @todo re-check https://issues.chromium.org/issues/42212588
|
|
1829
1836
|
* @module
|
|
1830
1837
|
*/
|
|
1831
|
-
|
|
1838
|
+
const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
1839
|
+
const _32n = /* @__PURE__ */ BigInt(32);
|
|
1840
|
+
function fromBig(n, le = false) {
|
|
1841
|
+
if (le)
|
|
1842
|
+
return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };
|
|
1843
|
+
return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
1844
|
+
}
|
|
1845
|
+
function split(lst, le = false) {
|
|
1846
|
+
const len = lst.length;
|
|
1847
|
+
let Ah = new Uint32Array(len);
|
|
1848
|
+
let Al = new Uint32Array(len);
|
|
1849
|
+
for (let i = 0; i < len; i++) {
|
|
1850
|
+
const { h, l } = fromBig(lst[i], le);
|
|
1851
|
+
[Ah[i], Al[i]] = [h, l];
|
|
1852
|
+
}
|
|
1853
|
+
return [Ah, Al];
|
|
1854
|
+
}
|
|
1855
|
+
// Left rotate for Shift in [1, 32)
|
|
1856
|
+
const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));
|
|
1857
|
+
const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));
|
|
1858
|
+
// Left rotate for Shift in (32, 64), NOTE: 32 is special case.
|
|
1859
|
+
const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));
|
|
1860
|
+
const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* SHA2 hash function. A.k.a. sha256, sha384, sha512, sha512_224, sha512_256.
|
|
1864
|
+
* SHA256 is the fastest hash implementable in JS, even faster than Blake3.
|
|
1865
|
+
* Check out [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and
|
|
1866
|
+
* [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
|
|
1867
|
+
* @module
|
|
1868
|
+
*/
|
|
1869
|
+
/**
|
|
1870
|
+
* Round constants:
|
|
1871
|
+
* First 32 bits of fractional parts of the cube roots of the first 64 primes 2..311)
|
|
1872
|
+
*/
|
|
1832
1873
|
// prettier-ignore
|
|
1833
|
-
const SHA256_K = /* @__PURE__ */
|
|
1874
|
+
const SHA256_K = /* @__PURE__ */ Uint32Array.from([
|
|
1834
1875
|
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
|
|
1835
1876
|
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
|
|
1836
1877
|
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
|
|
@@ -1840,15 +1881,7 @@ const SHA256_K = /* @__PURE__ */ new Uint32Array([
|
|
|
1840
1881
|
0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
|
|
1841
1882
|
0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
|
|
1842
1883
|
]);
|
|
1843
|
-
/**
|
|
1844
|
-
// prettier-ignore
|
|
1845
|
-
const SHA256_IV = /* @__PURE__ */ new Uint32Array([
|
|
1846
|
-
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
|
|
1847
|
-
]);
|
|
1848
|
-
/**
|
|
1849
|
-
* Temporary buffer, not used to store anything between runs.
|
|
1850
|
-
* Named this way because it matches specification.
|
|
1851
|
-
*/
|
|
1884
|
+
/** Reusable temporary buffer. "W" comes straight from spec. */
|
|
1852
1885
|
const SHA256_W = /* @__PURE__ */ new Uint32Array(64);
|
|
1853
1886
|
class SHA256 extends HashMD {
|
|
1854
1887
|
constructor(outputLen = 32) {
|
|
@@ -1918,15 +1951,34 @@ class SHA256 extends HashMD {
|
|
|
1918
1951
|
this.set(A, B, C, D, E, F, G, H);
|
|
1919
1952
|
}
|
|
1920
1953
|
roundClean() {
|
|
1921
|
-
SHA256_W
|
|
1954
|
+
clean(SHA256_W);
|
|
1922
1955
|
}
|
|
1923
1956
|
destroy() {
|
|
1924
1957
|
this.set(0, 0, 0, 0, 0, 0, 0, 0);
|
|
1925
|
-
this.buffer
|
|
1958
|
+
clean(this.buffer);
|
|
1926
1959
|
}
|
|
1927
1960
|
}
|
|
1928
|
-
/**
|
|
1929
|
-
|
|
1961
|
+
/**
|
|
1962
|
+
* SHA2-256 hash function from RFC 4634.
|
|
1963
|
+
*
|
|
1964
|
+
* It is the fastest JS hash, even faster than Blake3.
|
|
1965
|
+
* To break sha256 using birthday attack, attackers need to try 2^128 hashes.
|
|
1966
|
+
* BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
|
|
1967
|
+
*/
|
|
1968
|
+
const sha256$2 = /* @__PURE__ */ createHasher(() => new SHA256());
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.
|
|
1972
|
+
*
|
|
1973
|
+
* To break sha256 using birthday attack, attackers need to try 2^128 hashes.
|
|
1974
|
+
* BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
|
|
1975
|
+
*
|
|
1976
|
+
* Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
|
|
1977
|
+
* @module
|
|
1978
|
+
* @deprecated
|
|
1979
|
+
*/
|
|
1980
|
+
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
1981
|
+
const sha256$1 = sha256$2;
|
|
1930
1982
|
|
|
1931
1983
|
function sha256(value, to_) {
|
|
1932
1984
|
const to = to_ || 'hex';
|
|
@@ -2226,34 +2278,6 @@ class LruMap extends Map {
|
|
|
2226
2278
|
}
|
|
2227
2279
|
}
|
|
2228
2280
|
|
|
2229
|
-
/**
|
|
2230
|
-
* Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
|
|
2231
|
-
* @todo re-check https://issues.chromium.org/issues/42212588
|
|
2232
|
-
* @module
|
|
2233
|
-
*/
|
|
2234
|
-
const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
2235
|
-
const _32n = /* @__PURE__ */ BigInt(32);
|
|
2236
|
-
function fromBig(n, le = false) {
|
|
2237
|
-
if (le)
|
|
2238
|
-
return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };
|
|
2239
|
-
return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
2240
|
-
}
|
|
2241
|
-
function split(lst, le = false) {
|
|
2242
|
-
let Ah = new Uint32Array(lst.length);
|
|
2243
|
-
let Al = new Uint32Array(lst.length);
|
|
2244
|
-
for (let i = 0; i < lst.length; i++) {
|
|
2245
|
-
const { h, l } = fromBig(lst[i], le);
|
|
2246
|
-
[Ah[i], Al[i]] = [h, l];
|
|
2247
|
-
}
|
|
2248
|
-
return [Ah, Al];
|
|
2249
|
-
}
|
|
2250
|
-
// Left rotate for Shift in [1, 32)
|
|
2251
|
-
const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));
|
|
2252
|
-
const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));
|
|
2253
|
-
// Left rotate for Shift in (32, 64), NOTE: 32 is special case.
|
|
2254
|
-
const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));
|
|
2255
|
-
const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
|
|
2256
|
-
|
|
2257
2281
|
/**
|
|
2258
2282
|
* SHA3 (keccak) hash function, based on a new "Sponge function" design.
|
|
2259
2283
|
* Different from older hashes, the internal state is bigger than output size.
|
|
@@ -2265,16 +2289,18 @@ const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
|
|
|
2265
2289
|
* Check out `sha3-addons` module for cSHAKE, k12, and others.
|
|
2266
2290
|
* @module
|
|
2267
2291
|
*/
|
|
2292
|
+
// No __PURE__ annotations in sha3 header:
|
|
2293
|
+
// EVERYTHING is in fact used on every export.
|
|
2268
2294
|
// Various per round constants calculations
|
|
2295
|
+
const _0n = BigInt(0);
|
|
2296
|
+
const _1n = BigInt(1);
|
|
2297
|
+
const _2n = BigInt(2);
|
|
2298
|
+
const _7n = BigInt(7);
|
|
2299
|
+
const _256n = BigInt(256);
|
|
2300
|
+
const _0x71n = BigInt(0x71);
|
|
2269
2301
|
const SHA3_PI = [];
|
|
2270
2302
|
const SHA3_ROTL = [];
|
|
2271
2303
|
const _SHA3_IOTA = [];
|
|
2272
|
-
const _0n = /* @__PURE__ */ BigInt(0);
|
|
2273
|
-
const _1n = /* @__PURE__ */ BigInt(1);
|
|
2274
|
-
const _2n = /* @__PURE__ */ BigInt(2);
|
|
2275
|
-
const _7n = /* @__PURE__ */ BigInt(7);
|
|
2276
|
-
const _256n = /* @__PURE__ */ BigInt(256);
|
|
2277
|
-
const _0x71n = /* @__PURE__ */ BigInt(0x71);
|
|
2278
2304
|
for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
|
|
2279
2305
|
// Pi
|
|
2280
2306
|
[x, y] = [y, (2 * x + 3 * y) % 5];
|
|
@@ -2290,7 +2316,9 @@ for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
|
|
|
2290
2316
|
}
|
|
2291
2317
|
_SHA3_IOTA.push(t);
|
|
2292
2318
|
}
|
|
2293
|
-
const
|
|
2319
|
+
const IOTAS = split(_SHA3_IOTA, true);
|
|
2320
|
+
const SHA3_IOTA_H = IOTAS[0];
|
|
2321
|
+
const SHA3_IOTA_L = IOTAS[1];
|
|
2294
2322
|
// Left rotation (without 0, 32, 64)
|
|
2295
2323
|
const rotlH = (h, l, s) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s));
|
|
2296
2324
|
const rotlL = (h, l, s) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s));
|
|
@@ -2338,7 +2366,7 @@ function keccakP(s, rounds = 24) {
|
|
|
2338
2366
|
s[0] ^= SHA3_IOTA_H[round];
|
|
2339
2367
|
s[1] ^= SHA3_IOTA_L[round];
|
|
2340
2368
|
}
|
|
2341
|
-
B
|
|
2369
|
+
clean(B);
|
|
2342
2370
|
}
|
|
2343
2371
|
/** Keccak sponge function. */
|
|
2344
2372
|
class Keccak extends Hash {
|
|
@@ -2359,24 +2387,26 @@ class Keccak extends Hash {
|
|
|
2359
2387
|
anumber(outputLen);
|
|
2360
2388
|
// 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes
|
|
2361
2389
|
// 0 < blockLen < 200
|
|
2362
|
-
if (0
|
|
2363
|
-
throw new Error('
|
|
2390
|
+
if (!(0 < blockLen && blockLen < 200))
|
|
2391
|
+
throw new Error('only keccak-f1600 function is supported');
|
|
2364
2392
|
this.state = new Uint8Array(200);
|
|
2365
2393
|
this.state32 = u32(this.state);
|
|
2366
2394
|
}
|
|
2395
|
+
clone() {
|
|
2396
|
+
return this._cloneInto();
|
|
2397
|
+
}
|
|
2367
2398
|
keccak() {
|
|
2368
|
-
|
|
2369
|
-
byteSwap32(this.state32);
|
|
2399
|
+
swap32IfBE(this.state32);
|
|
2370
2400
|
keccakP(this.state32, this.rounds);
|
|
2371
|
-
|
|
2372
|
-
byteSwap32(this.state32);
|
|
2401
|
+
swap32IfBE(this.state32);
|
|
2373
2402
|
this.posOut = 0;
|
|
2374
2403
|
this.pos = 0;
|
|
2375
2404
|
}
|
|
2376
2405
|
update(data) {
|
|
2377
2406
|
aexists(this);
|
|
2378
|
-
const { blockLen, state } = this;
|
|
2379
2407
|
data = toBytes(data);
|
|
2408
|
+
abytes(data);
|
|
2409
|
+
const { blockLen, state } = this;
|
|
2380
2410
|
const len = data.length;
|
|
2381
2411
|
for (let pos = 0; pos < len;) {
|
|
2382
2412
|
const take = Math.min(blockLen - this.pos, len - pos);
|
|
@@ -2438,7 +2468,7 @@ class Keccak extends Hash {
|
|
|
2438
2468
|
}
|
|
2439
2469
|
destroy() {
|
|
2440
2470
|
this.destroyed = true;
|
|
2441
|
-
this.state
|
|
2471
|
+
clean(this.state);
|
|
2442
2472
|
}
|
|
2443
2473
|
_cloneInto(to) {
|
|
2444
2474
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
|
@@ -2456,9 +2486,9 @@ class Keccak extends Hash {
|
|
|
2456
2486
|
return to;
|
|
2457
2487
|
}
|
|
2458
2488
|
}
|
|
2459
|
-
const gen = (suffix, blockLen, outputLen) =>
|
|
2489
|
+
const gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
|
|
2460
2490
|
/** keccak-256 hash function. Different from SHA3-256. */
|
|
2461
|
-
const keccak_256 = /* @__PURE__ */ gen(0x01, 136, 256 / 8);
|
|
2491
|
+
const keccak_256 = /* @__PURE__ */ (() => gen(0x01, 136, 256 / 8))();
|
|
2462
2492
|
|
|
2463
2493
|
function keccak256(value, to_) {
|
|
2464
2494
|
const to = to_ || 'hex';
|
|
@@ -2727,13 +2757,13 @@ function serializeTransactionEIP7702(transaction, signature) {
|
|
|
2727
2757
|
return concatHex([
|
|
2728
2758
|
'0x04',
|
|
2729
2759
|
toRlp([
|
|
2730
|
-
|
|
2731
|
-
nonce ?
|
|
2732
|
-
maxPriorityFeePerGas ?
|
|
2733
|
-
maxFeePerGas ?
|
|
2734
|
-
gas ?
|
|
2760
|
+
numberToHex(chainId),
|
|
2761
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2762
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
|
|
2763
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
|
|
2764
|
+
gas ? numberToHex(gas) : '0x',
|
|
2735
2765
|
to ?? '0x',
|
|
2736
|
-
value ?
|
|
2766
|
+
value ? numberToHex(value) : '0x',
|
|
2737
2767
|
data ?? '0x',
|
|
2738
2768
|
serializedAccessList,
|
|
2739
2769
|
serializedAuthorizationList,
|
|
@@ -2769,16 +2799,16 @@ function serializeTransactionEIP4844(transaction, signature) {
|
|
|
2769
2799
|
}
|
|
2770
2800
|
const serializedAccessList = serializeAccessList(accessList);
|
|
2771
2801
|
const serializedTransaction = [
|
|
2772
|
-
|
|
2773
|
-
nonce ?
|
|
2774
|
-
maxPriorityFeePerGas ?
|
|
2775
|
-
maxFeePerGas ?
|
|
2776
|
-
gas ?
|
|
2802
|
+
numberToHex(chainId),
|
|
2803
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2804
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
|
|
2805
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
|
|
2806
|
+
gas ? numberToHex(gas) : '0x',
|
|
2777
2807
|
to ?? '0x',
|
|
2778
|
-
value ?
|
|
2808
|
+
value ? numberToHex(value) : '0x',
|
|
2779
2809
|
data ?? '0x',
|
|
2780
2810
|
serializedAccessList,
|
|
2781
|
-
maxFeePerBlobGas ?
|
|
2811
|
+
maxFeePerBlobGas ? numberToHex(maxFeePerBlobGas) : '0x',
|
|
2782
2812
|
blobVersionedHashes ?? [],
|
|
2783
2813
|
...toYParitySignatureArray(transaction, signature),
|
|
2784
2814
|
];
|
|
@@ -2806,13 +2836,13 @@ function serializeTransactionEIP1559(transaction, signature) {
|
|
|
2806
2836
|
assertTransactionEIP1559(transaction);
|
|
2807
2837
|
const serializedAccessList = serializeAccessList(accessList);
|
|
2808
2838
|
const serializedTransaction = [
|
|
2809
|
-
|
|
2810
|
-
nonce ?
|
|
2811
|
-
maxPriorityFeePerGas ?
|
|
2812
|
-
maxFeePerGas ?
|
|
2813
|
-
gas ?
|
|
2839
|
+
numberToHex(chainId),
|
|
2840
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2841
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
|
|
2842
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
|
|
2843
|
+
gas ? numberToHex(gas) : '0x',
|
|
2814
2844
|
to ?? '0x',
|
|
2815
|
-
value ?
|
|
2845
|
+
value ? numberToHex(value) : '0x',
|
|
2816
2846
|
data ?? '0x',
|
|
2817
2847
|
serializedAccessList,
|
|
2818
2848
|
...toYParitySignatureArray(transaction, signature),
|
|
@@ -2827,12 +2857,12 @@ function serializeTransactionEIP2930(transaction, signature) {
|
|
|
2827
2857
|
assertTransactionEIP2930(transaction);
|
|
2828
2858
|
const serializedAccessList = serializeAccessList(accessList);
|
|
2829
2859
|
const serializedTransaction = [
|
|
2830
|
-
|
|
2831
|
-
nonce ?
|
|
2832
|
-
gasPrice ?
|
|
2833
|
-
gas ?
|
|
2860
|
+
numberToHex(chainId),
|
|
2861
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2862
|
+
gasPrice ? numberToHex(gasPrice) : '0x',
|
|
2863
|
+
gas ? numberToHex(gas) : '0x',
|
|
2834
2864
|
to ?? '0x',
|
|
2835
|
-
value ?
|
|
2865
|
+
value ? numberToHex(value) : '0x',
|
|
2836
2866
|
data ?? '0x',
|
|
2837
2867
|
serializedAccessList,
|
|
2838
2868
|
...toYParitySignatureArray(transaction, signature),
|
|
@@ -2846,11 +2876,11 @@ function serializeTransactionLegacy(transaction, signature) {
|
|
|
2846
2876
|
const { chainId = 0, gas, data, nonce, to, value, gasPrice } = transaction;
|
|
2847
2877
|
assertTransactionLegacy(transaction);
|
|
2848
2878
|
let serializedTransaction = [
|
|
2849
|
-
nonce ?
|
|
2850
|
-
gasPrice ?
|
|
2851
|
-
gas ?
|
|
2879
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2880
|
+
gasPrice ? numberToHex(gasPrice) : '0x',
|
|
2881
|
+
gas ? numberToHex(gas) : '0x',
|
|
2852
2882
|
to ?? '0x',
|
|
2853
|
-
value ?
|
|
2883
|
+
value ? numberToHex(value) : '0x',
|
|
2854
2884
|
data ?? '0x',
|
|
2855
2885
|
];
|
|
2856
2886
|
if (signature) {
|
|
@@ -2875,7 +2905,7 @@ function serializeTransactionLegacy(transaction, signature) {
|
|
|
2875
2905
|
const s = trim(signature.s);
|
|
2876
2906
|
serializedTransaction = [
|
|
2877
2907
|
...serializedTransaction,
|
|
2878
|
-
|
|
2908
|
+
numberToHex(v),
|
|
2879
2909
|
r === '0x00' ? '0x' : r,
|
|
2880
2910
|
s === '0x00' ? '0x' : s,
|
|
2881
2911
|
];
|
|
@@ -2883,7 +2913,7 @@ function serializeTransactionLegacy(transaction, signature) {
|
|
|
2883
2913
|
else if (chainId > 0) {
|
|
2884
2914
|
serializedTransaction = [
|
|
2885
2915
|
...serializedTransaction,
|
|
2886
|
-
|
|
2916
|
+
numberToHex(chainId),
|
|
2887
2917
|
'0x',
|
|
2888
2918
|
'0x',
|
|
2889
2919
|
];
|
|
@@ -2903,12 +2933,12 @@ function toYParitySignatureArray(transaction, signature_) {
|
|
|
2903
2933
|
const s = trim(signature.s);
|
|
2904
2934
|
const yParity_ = (() => {
|
|
2905
2935
|
if (typeof yParity === 'number')
|
|
2906
|
-
return yParity ?
|
|
2936
|
+
return yParity ? numberToHex(1) : '0x';
|
|
2907
2937
|
if (v === 0n)
|
|
2908
2938
|
return '0x';
|
|
2909
2939
|
if (v === 1n)
|
|
2910
|
-
return
|
|
2911
|
-
return v === 27n ? '0x' :
|
|
2940
|
+
return numberToHex(1);
|
|
2941
|
+
return v === 27n ? '0x' : numberToHex(1);
|
|
2912
2942
|
})();
|
|
2913
2943
|
return [yParity_, r === '0x00' ? '0x' : r, s === '0x00' ? '0x' : s];
|
|
2914
2944
|
}
|
|
@@ -3019,12 +3049,13 @@ function assertTransactionDeposit(transaction) {
|
|
|
3019
3049
|
}
|
|
3020
3050
|
|
|
3021
3051
|
const chainConfig$1 = {
|
|
3052
|
+
blockTime: 2_000,
|
|
3022
3053
|
contracts,
|
|
3023
3054
|
formatters: formatters$1,
|
|
3024
3055
|
serializers: serializers$1,
|
|
3025
3056
|
};
|
|
3026
3057
|
|
|
3027
|
-
const sourceId$
|
|
3058
|
+
const sourceId$M = 1; // mainnet
|
|
3028
3059
|
/*#__PURE__*/ defineChain({
|
|
3029
3060
|
...chainConfig$1,
|
|
3030
3061
|
id: 888888888,
|
|
@@ -3045,27 +3076,27 @@ const sourceId$K = 1; // mainnet
|
|
|
3045
3076
|
contracts: {
|
|
3046
3077
|
...chainConfig$1.contracts,
|
|
3047
3078
|
l2OutputOracle: {
|
|
3048
|
-
[sourceId$
|
|
3079
|
+
[sourceId$M]: {
|
|
3049
3080
|
address: '0xB09DC08428C8b4EFB4ff9C0827386CDF34277996',
|
|
3050
3081
|
},
|
|
3051
3082
|
},
|
|
3052
3083
|
portal: {
|
|
3053
|
-
[sourceId$
|
|
3084
|
+
[sourceId$M]: {
|
|
3054
3085
|
address: '0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68',
|
|
3055
3086
|
blockCreated: 19070571,
|
|
3056
3087
|
},
|
|
3057
3088
|
},
|
|
3058
3089
|
l1StandardBridge: {
|
|
3059
|
-
[sourceId$
|
|
3090
|
+
[sourceId$M]: {
|
|
3060
3091
|
address: '0xd5e3eDf5b68135D559D572E26bF863FBC1950033',
|
|
3061
3092
|
blockCreated: 19070571,
|
|
3062
3093
|
},
|
|
3063
3094
|
},
|
|
3064
3095
|
},
|
|
3065
|
-
sourceId: sourceId$
|
|
3096
|
+
sourceId: sourceId$M,
|
|
3066
3097
|
});
|
|
3067
3098
|
|
|
3068
|
-
const sourceId$
|
|
3099
|
+
const sourceId$L = 11_155_111; // sepolia
|
|
3069
3100
|
/*#__PURE__*/ defineChain({
|
|
3070
3101
|
...chainConfig$1,
|
|
3071
3102
|
id: 28122024,
|
|
@@ -3086,27 +3117,27 @@ const sourceId$J = 11_155_111; // sepolia
|
|
|
3086
3117
|
contracts: {
|
|
3087
3118
|
...chainConfig$1.contracts,
|
|
3088
3119
|
l2OutputOracle: {
|
|
3089
|
-
[sourceId$
|
|
3120
|
+
[sourceId$L]: {
|
|
3090
3121
|
address: '0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB',
|
|
3091
3122
|
},
|
|
3092
3123
|
},
|
|
3093
3124
|
portal: {
|
|
3094
|
-
[sourceId$
|
|
3125
|
+
[sourceId$L]: {
|
|
3095
3126
|
address: '0xfa1d9E26A6aCD7b22115D27572c1221B9803c960',
|
|
3096
3127
|
blockCreated: 4972908,
|
|
3097
3128
|
},
|
|
3098
3129
|
},
|
|
3099
3130
|
l1StandardBridge: {
|
|
3100
|
-
[sourceId$
|
|
3131
|
+
[sourceId$L]: {
|
|
3101
3132
|
address: '0xF6Bc0146d3c74D48306e79Ae134A260E418C9335',
|
|
3102
3133
|
blockCreated: 4972908,
|
|
3103
3134
|
},
|
|
3104
3135
|
},
|
|
3105
3136
|
},
|
|
3106
|
-
sourceId: sourceId$
|
|
3137
|
+
sourceId: sourceId$L,
|
|
3107
3138
|
});
|
|
3108
3139
|
|
|
3109
|
-
const sourceId$
|
|
3140
|
+
const sourceId$K = 1; // mainnet
|
|
3110
3141
|
const base = /*#__PURE__*/ defineChain({
|
|
3111
3142
|
...chainConfig$1,
|
|
3112
3143
|
id: 8453,
|
|
@@ -3127,12 +3158,12 @@ const base = /*#__PURE__*/ defineChain({
|
|
|
3127
3158
|
contracts: {
|
|
3128
3159
|
...chainConfig$1.contracts,
|
|
3129
3160
|
disputeGameFactory: {
|
|
3130
|
-
[sourceId$
|
|
3161
|
+
[sourceId$K]: {
|
|
3131
3162
|
address: '0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e',
|
|
3132
3163
|
},
|
|
3133
3164
|
},
|
|
3134
3165
|
l2OutputOracle: {
|
|
3135
|
-
[sourceId$
|
|
3166
|
+
[sourceId$K]: {
|
|
3136
3167
|
address: '0x56315b90c40730925ec5485cf004d835058518A0',
|
|
3137
3168
|
},
|
|
3138
3169
|
},
|
|
@@ -3141,22 +3172,22 @@ const base = /*#__PURE__*/ defineChain({
|
|
|
3141
3172
|
blockCreated: 5022,
|
|
3142
3173
|
},
|
|
3143
3174
|
portal: {
|
|
3144
|
-
[sourceId$
|
|
3175
|
+
[sourceId$K]: {
|
|
3145
3176
|
address: '0x49048044D57e1C92A77f79988d21Fa8fAF74E97e',
|
|
3146
3177
|
blockCreated: 17482143,
|
|
3147
3178
|
},
|
|
3148
3179
|
},
|
|
3149
3180
|
l1StandardBridge: {
|
|
3150
|
-
[sourceId$
|
|
3181
|
+
[sourceId$K]: {
|
|
3151
3182
|
address: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35',
|
|
3152
3183
|
blockCreated: 17482143,
|
|
3153
3184
|
},
|
|
3154
3185
|
},
|
|
3155
3186
|
},
|
|
3156
|
-
sourceId: sourceId$
|
|
3187
|
+
sourceId: sourceId$K,
|
|
3157
3188
|
});
|
|
3158
3189
|
|
|
3159
|
-
const sourceId$
|
|
3190
|
+
const sourceId$J = 5; // goerli
|
|
3160
3191
|
/*#__PURE__*/ defineChain({
|
|
3161
3192
|
...chainConfig$1,
|
|
3162
3193
|
id: 84531,
|
|
@@ -3175,7 +3206,7 @@ const sourceId$H = 5; // goerli
|
|
|
3175
3206
|
contracts: {
|
|
3176
3207
|
...chainConfig$1.contracts,
|
|
3177
3208
|
l2OutputOracle: {
|
|
3178
|
-
[sourceId$
|
|
3209
|
+
[sourceId$J]: {
|
|
3179
3210
|
address: '0x2A35891ff30313CcFa6CE88dcf3858bb075A2298',
|
|
3180
3211
|
},
|
|
3181
3212
|
},
|
|
@@ -3184,21 +3215,21 @@ const sourceId$H = 5; // goerli
|
|
|
3184
3215
|
blockCreated: 1376988,
|
|
3185
3216
|
},
|
|
3186
3217
|
portal: {
|
|
3187
|
-
[sourceId$
|
|
3218
|
+
[sourceId$J]: {
|
|
3188
3219
|
address: '0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA',
|
|
3189
3220
|
},
|
|
3190
3221
|
},
|
|
3191
3222
|
l1StandardBridge: {
|
|
3192
|
-
[sourceId$
|
|
3223
|
+
[sourceId$J]: {
|
|
3193
3224
|
address: '0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a',
|
|
3194
3225
|
},
|
|
3195
3226
|
},
|
|
3196
3227
|
},
|
|
3197
3228
|
testnet: true,
|
|
3198
|
-
sourceId: sourceId$
|
|
3229
|
+
sourceId: sourceId$J,
|
|
3199
3230
|
});
|
|
3200
3231
|
|
|
3201
|
-
const sourceId$
|
|
3232
|
+
const sourceId$I = 11_155_111; // sepolia
|
|
3202
3233
|
const baseSepolia = /*#__PURE__*/ defineChain({
|
|
3203
3234
|
...chainConfig$1,
|
|
3204
3235
|
id: 84532,
|
|
@@ -3220,23 +3251,23 @@ const baseSepolia = /*#__PURE__*/ defineChain({
|
|
|
3220
3251
|
contracts: {
|
|
3221
3252
|
...chainConfig$1.contracts,
|
|
3222
3253
|
disputeGameFactory: {
|
|
3223
|
-
[sourceId$
|
|
3254
|
+
[sourceId$I]: {
|
|
3224
3255
|
address: '0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1',
|
|
3225
3256
|
},
|
|
3226
3257
|
},
|
|
3227
3258
|
l2OutputOracle: {
|
|
3228
|
-
[sourceId$
|
|
3259
|
+
[sourceId$I]: {
|
|
3229
3260
|
address: '0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254',
|
|
3230
3261
|
},
|
|
3231
3262
|
},
|
|
3232
3263
|
portal: {
|
|
3233
|
-
[sourceId$
|
|
3264
|
+
[sourceId$I]: {
|
|
3234
3265
|
address: '0x49f53e41452c74589e85ca1677426ba426459e85',
|
|
3235
3266
|
blockCreated: 4446677,
|
|
3236
3267
|
},
|
|
3237
3268
|
},
|
|
3238
3269
|
l1StandardBridge: {
|
|
3239
|
-
[sourceId$
|
|
3270
|
+
[sourceId$I]: {
|
|
3240
3271
|
address: '0xfd0Bf71F60660E2f608ed56e1659C450eB113120',
|
|
3241
3272
|
blockCreated: 4446677,
|
|
3242
3273
|
},
|
|
@@ -3247,7 +3278,7 @@ const baseSepolia = /*#__PURE__*/ defineChain({
|
|
|
3247
3278
|
},
|
|
3248
3279
|
},
|
|
3249
3280
|
testnet: true,
|
|
3250
|
-
sourceId: sourceId$
|
|
3281
|
+
sourceId: sourceId$I,
|
|
3251
3282
|
});
|
|
3252
3283
|
|
|
3253
3284
|
defineChain({
|
|
@@ -3268,7 +3299,7 @@ defineChain({
|
|
|
3268
3299
|
},
|
|
3269
3300
|
});
|
|
3270
3301
|
|
|
3271
|
-
const sourceId$
|
|
3302
|
+
const sourceId$H = 1; // mainnet
|
|
3272
3303
|
/*#__PURE__*/ defineChain({
|
|
3273
3304
|
...chainConfig$1,
|
|
3274
3305
|
id: 81457,
|
|
@@ -3294,11 +3325,29 @@ const sourceId$F = 1; // mainnet
|
|
|
3294
3325
|
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
3295
3326
|
blockCreated: 212929,
|
|
3296
3327
|
},
|
|
3328
|
+
l2OutputOracle: {
|
|
3329
|
+
[sourceId$H]: {
|
|
3330
|
+
address: '0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76',
|
|
3331
|
+
blockCreated: 19300358,
|
|
3332
|
+
},
|
|
3333
|
+
},
|
|
3334
|
+
portal: {
|
|
3335
|
+
[sourceId$H]: {
|
|
3336
|
+
address: '0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb',
|
|
3337
|
+
blockCreated: 19300357,
|
|
3338
|
+
},
|
|
3339
|
+
},
|
|
3340
|
+
l1StandardBridge: {
|
|
3341
|
+
[sourceId$H]: {
|
|
3342
|
+
address: '0x697402166Fbf2F22E970df8a6486Ef171dbfc524',
|
|
3343
|
+
blockCreated: 19300360,
|
|
3344
|
+
},
|
|
3345
|
+
},
|
|
3297
3346
|
},
|
|
3298
|
-
sourceId: sourceId$
|
|
3347
|
+
sourceId: sourceId$H,
|
|
3299
3348
|
});
|
|
3300
3349
|
|
|
3301
|
-
const sourceId$
|
|
3350
|
+
const sourceId$G = 1; // mainnet
|
|
3302
3351
|
defineChain({
|
|
3303
3352
|
...chainConfig$1,
|
|
3304
3353
|
id: 60808,
|
|
@@ -3327,22 +3376,22 @@ defineChain({
|
|
|
3327
3376
|
blockCreated: 23131,
|
|
3328
3377
|
},
|
|
3329
3378
|
l2OutputOracle: {
|
|
3330
|
-
[sourceId$
|
|
3379
|
+
[sourceId$G]: {
|
|
3331
3380
|
address: '0xdDa53E23f8a32640b04D7256e651C1db98dB11C1',
|
|
3332
3381
|
blockCreated: 4462615,
|
|
3333
3382
|
},
|
|
3334
3383
|
},
|
|
3335
3384
|
portal: {
|
|
3336
|
-
[sourceId$
|
|
3385
|
+
[sourceId$G]: {
|
|
3337
3386
|
address: '0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E',
|
|
3338
3387
|
blockCreated: 4462615,
|
|
3339
3388
|
},
|
|
3340
3389
|
},
|
|
3341
3390
|
},
|
|
3342
|
-
sourceId: sourceId$
|
|
3391
|
+
sourceId: sourceId$G,
|
|
3343
3392
|
});
|
|
3344
3393
|
|
|
3345
|
-
const sourceId$
|
|
3394
|
+
const sourceId$F = 11_155_111; // sepolia
|
|
3346
3395
|
defineChain({
|
|
3347
3396
|
...chainConfig$1,
|
|
3348
3397
|
id: 808813,
|
|
@@ -3371,20 +3420,20 @@ defineChain({
|
|
|
3371
3420
|
blockCreated: 35677,
|
|
3372
3421
|
},
|
|
3373
3422
|
l2OutputOracle: {
|
|
3374
|
-
[sourceId$
|
|
3423
|
+
[sourceId$F]: {
|
|
3375
3424
|
address: '0x14D0069452b4AE2b250B395b8adAb771E4267d2f',
|
|
3376
3425
|
blockCreated: 4462615,
|
|
3377
3426
|
},
|
|
3378
3427
|
},
|
|
3379
3428
|
portal: {
|
|
3380
|
-
[sourceId$
|
|
3429
|
+
[sourceId$F]: {
|
|
3381
3430
|
address: '0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4',
|
|
3382
3431
|
blockCreated: 4462615,
|
|
3383
3432
|
},
|
|
3384
3433
|
},
|
|
3385
3434
|
},
|
|
3386
3435
|
testnet: true,
|
|
3387
|
-
sourceId: sourceId$
|
|
3436
|
+
sourceId: sourceId$F,
|
|
3388
3437
|
});
|
|
3389
3438
|
|
|
3390
3439
|
const fees = {
|
|
@@ -3593,13 +3642,14 @@ function assertTransactionCIP64(transaction) {
|
|
|
3593
3642
|
}
|
|
3594
3643
|
|
|
3595
3644
|
const chainConfig = {
|
|
3645
|
+
blockTime: 1_000,
|
|
3596
3646
|
contracts,
|
|
3597
3647
|
formatters,
|
|
3598
3648
|
serializers,
|
|
3599
3649
|
fees,
|
|
3600
3650
|
};
|
|
3601
3651
|
|
|
3602
|
-
const sourceId$
|
|
3652
|
+
const sourceId$E = 17000; // holsky
|
|
3603
3653
|
// source https://storage.googleapis.com/cel2-rollup-files/alfajores/deployment-l1.json
|
|
3604
3654
|
/*#__PURE__*/ defineChain({
|
|
3605
3655
|
...chainConfig,
|
|
@@ -3629,25 +3679,25 @@ const sourceId$C = 17000; // holsky
|
|
|
3629
3679
|
blockCreated: 14569001,
|
|
3630
3680
|
},
|
|
3631
3681
|
portal: {
|
|
3632
|
-
[sourceId$
|
|
3682
|
+
[sourceId$E]: {
|
|
3633
3683
|
address: '0x82527353927d8D069b3B452904c942dA149BA381',
|
|
3634
3684
|
blockCreated: 2411324,
|
|
3635
3685
|
},
|
|
3636
3686
|
},
|
|
3637
3687
|
disputeGameFactory: {
|
|
3638
|
-
[sourceId$
|
|
3688
|
+
[sourceId$E]: {
|
|
3639
3689
|
address: '0xE28AAdcd9883746c0e5068F58f9ea06027b214cb',
|
|
3640
3690
|
blockCreated: 2411324,
|
|
3641
3691
|
},
|
|
3642
3692
|
},
|
|
3643
3693
|
l2OutputOracle: {
|
|
3644
|
-
[sourceId$
|
|
3694
|
+
[sourceId$E]: {
|
|
3645
3695
|
address: '0x4a2635e9e4f6e45817b1D402ac4904c1d1752438',
|
|
3646
3696
|
blockCreated: 2411324,
|
|
3647
3697
|
},
|
|
3648
3698
|
},
|
|
3649
3699
|
l1StandardBridge: {
|
|
3650
|
-
[sourceId$
|
|
3700
|
+
[sourceId$E]: {
|
|
3651
3701
|
address: '0xD1B0E0581973c9eB7f886967A606b9441A897037',
|
|
3652
3702
|
blockCreated: 2411324,
|
|
3653
3703
|
},
|
|
@@ -3656,6 +3706,57 @@ const sourceId$C = 17000; // holsky
|
|
|
3656
3706
|
testnet: true,
|
|
3657
3707
|
});
|
|
3658
3708
|
|
|
3709
|
+
const sourceId$D = 11_155_111; // sepolia
|
|
3710
|
+
// source https://storage.googleapis.com/cel2-rollup-files/celo-sepolia/deployment-l1.json
|
|
3711
|
+
/*#__PURE__*/ defineChain({
|
|
3712
|
+
...chainConfig,
|
|
3713
|
+
id: 11_142_220,
|
|
3714
|
+
name: 'Celo Sepolia Testnet',
|
|
3715
|
+
nativeCurrency: {
|
|
3716
|
+
decimals: 18,
|
|
3717
|
+
name: 'CELO',
|
|
3718
|
+
symbol: 'S-CELO',
|
|
3719
|
+
},
|
|
3720
|
+
rpcUrls: {
|
|
3721
|
+
default: {
|
|
3722
|
+
http: ['https://forno.celo-sepolia.celo-testnet.org'],
|
|
3723
|
+
},
|
|
3724
|
+
},
|
|
3725
|
+
blockExplorers: {
|
|
3726
|
+
default: {
|
|
3727
|
+
name: 'Celo Sepolia Explorer',
|
|
3728
|
+
url: 'https://celo-sepolia.blockscout.com/',
|
|
3729
|
+
apiUrl: 'https://celo-sepolia.blockscout.com/api',
|
|
3730
|
+
},
|
|
3731
|
+
},
|
|
3732
|
+
contracts: {
|
|
3733
|
+
...chainConfig.contracts,
|
|
3734
|
+
multicall3: {
|
|
3735
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
3736
|
+
blockCreated: 1,
|
|
3737
|
+
},
|
|
3738
|
+
portal: {
|
|
3739
|
+
[sourceId$D]: {
|
|
3740
|
+
address: '0x44ae3d41a335a7d05eb533029917aad35662dcc2',
|
|
3741
|
+
blockCreated: 8825790,
|
|
3742
|
+
},
|
|
3743
|
+
},
|
|
3744
|
+
disputeGameFactory: {
|
|
3745
|
+
[sourceId$D]: {
|
|
3746
|
+
address: '0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa',
|
|
3747
|
+
blockCreated: 8825790,
|
|
3748
|
+
},
|
|
3749
|
+
},
|
|
3750
|
+
l1StandardBridge: {
|
|
3751
|
+
[sourceId$D]: {
|
|
3752
|
+
address: '0xec18a3c30131a0db4246e785355fbc16e2eaf408',
|
|
3753
|
+
blockCreated: 8825790,
|
|
3754
|
+
},
|
|
3755
|
+
},
|
|
3756
|
+
},
|
|
3757
|
+
testnet: true,
|
|
3758
|
+
});
|
|
3759
|
+
|
|
3659
3760
|
defineChain({
|
|
3660
3761
|
id: 44,
|
|
3661
3762
|
name: 'Crab Network',
|
|
@@ -3770,7 +3871,7 @@ defineChain({
|
|
|
3770
3871
|
testnet: true,
|
|
3771
3872
|
});
|
|
3772
3873
|
|
|
3773
|
-
const sourceId$
|
|
3874
|
+
const sourceId$C = 1; // mainnet
|
|
3774
3875
|
/*#__PURE__*/ defineChain({
|
|
3775
3876
|
id: 478,
|
|
3776
3877
|
name: 'Form Network',
|
|
@@ -3794,27 +3895,27 @@ const sourceId$B = 1; // mainnet
|
|
|
3794
3895
|
contracts: {
|
|
3795
3896
|
...chainConfig$1.contracts,
|
|
3796
3897
|
addressManager: {
|
|
3797
|
-
[sourceId$
|
|
3898
|
+
[sourceId$C]: {
|
|
3798
3899
|
address: '0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B',
|
|
3799
3900
|
},
|
|
3800
3901
|
},
|
|
3801
3902
|
l1CrossDomainMessenger: {
|
|
3802
|
-
[sourceId$
|
|
3903
|
+
[sourceId$C]: {
|
|
3803
3904
|
address: '0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c',
|
|
3804
3905
|
},
|
|
3805
3906
|
},
|
|
3806
3907
|
l2OutputOracle: {
|
|
3807
|
-
[sourceId$
|
|
3908
|
+
[sourceId$C]: {
|
|
3808
3909
|
address: '0x4ccAAF69F41c5810cA875183648B577CaCf1F67E',
|
|
3809
3910
|
},
|
|
3810
3911
|
},
|
|
3811
3912
|
portal: {
|
|
3812
|
-
[sourceId$
|
|
3913
|
+
[sourceId$C]: {
|
|
3813
3914
|
address: '0x4E259Ee5F4136408908160dD32295A5031Fa426F',
|
|
3814
3915
|
},
|
|
3815
3916
|
},
|
|
3816
3917
|
l1StandardBridge: {
|
|
3817
|
-
[sourceId$
|
|
3918
|
+
[sourceId$C]: {
|
|
3818
3919
|
address: '0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba',
|
|
3819
3920
|
},
|
|
3820
3921
|
},
|
|
@@ -3822,10 +3923,10 @@ const sourceId$B = 1; // mainnet
|
|
|
3822
3923
|
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
3823
3924
|
},
|
|
3824
3925
|
},
|
|
3825
|
-
sourceId: sourceId$
|
|
3926
|
+
sourceId: sourceId$C,
|
|
3826
3927
|
});
|
|
3827
3928
|
|
|
3828
|
-
const sourceId$
|
|
3929
|
+
const sourceId$B = 11_155_111; // sepolia
|
|
3829
3930
|
/*#__PURE__*/ defineChain({
|
|
3830
3931
|
id: 132_902,
|
|
3831
3932
|
name: 'Form Testnet',
|
|
@@ -3849,27 +3950,27 @@ const sourceId$A = 11_155_111; // sepolia
|
|
|
3849
3950
|
contracts: {
|
|
3850
3951
|
...chainConfig$1.contracts,
|
|
3851
3952
|
addressManager: {
|
|
3852
|
-
[sourceId$
|
|
3953
|
+
[sourceId$B]: {
|
|
3853
3954
|
address: '0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373',
|
|
3854
3955
|
},
|
|
3855
3956
|
},
|
|
3856
3957
|
l1CrossDomainMessenger: {
|
|
3857
|
-
[sourceId$
|
|
3958
|
+
[sourceId$B]: {
|
|
3858
3959
|
address: '0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa',
|
|
3859
3960
|
},
|
|
3860
3961
|
},
|
|
3861
3962
|
l2OutputOracle: {
|
|
3862
|
-
[sourceId$
|
|
3963
|
+
[sourceId$B]: {
|
|
3863
3964
|
address: '0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2',
|
|
3864
3965
|
},
|
|
3865
3966
|
},
|
|
3866
3967
|
portal: {
|
|
3867
|
-
[sourceId$
|
|
3968
|
+
[sourceId$B]: {
|
|
3868
3969
|
address: '0x60377e3cE15dF4CCA24c4beF076b60314240b032',
|
|
3869
3970
|
},
|
|
3870
3971
|
},
|
|
3871
3972
|
l1StandardBridge: {
|
|
3872
|
-
[sourceId$
|
|
3973
|
+
[sourceId$B]: {
|
|
3873
3974
|
address: '0xD4531f633942b2725896F47cD2aFd260b44Ab1F7',
|
|
3874
3975
|
},
|
|
3875
3976
|
},
|
|
@@ -3878,10 +3979,10 @@ const sourceId$A = 11_155_111; // sepolia
|
|
|
3878
3979
|
},
|
|
3879
3980
|
},
|
|
3880
3981
|
testnet: true,
|
|
3881
|
-
sourceId: sourceId$
|
|
3982
|
+
sourceId: sourceId$B,
|
|
3882
3983
|
});
|
|
3883
3984
|
|
|
3884
|
-
const sourceId$
|
|
3985
|
+
const sourceId$A = 1; // mainnet
|
|
3885
3986
|
/*#__PURE__*/ defineChain({
|
|
3886
3987
|
...chainConfig$1,
|
|
3887
3988
|
id: 252,
|
|
@@ -3902,7 +4003,7 @@ const sourceId$z = 1; // mainnet
|
|
|
3902
4003
|
contracts: {
|
|
3903
4004
|
...chainConfig$1.contracts,
|
|
3904
4005
|
l2OutputOracle: {
|
|
3905
|
-
[sourceId$
|
|
4006
|
+
[sourceId$A]: {
|
|
3906
4007
|
address: '0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4',
|
|
3907
4008
|
},
|
|
3908
4009
|
},
|
|
@@ -3910,22 +4011,22 @@ const sourceId$z = 1; // mainnet
|
|
|
3910
4011
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
3911
4012
|
},
|
|
3912
4013
|
portal: {
|
|
3913
|
-
[sourceId$
|
|
4014
|
+
[sourceId$A]: {
|
|
3914
4015
|
address: '0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D',
|
|
3915
4016
|
blockCreated: 19135323,
|
|
3916
4017
|
},
|
|
3917
4018
|
},
|
|
3918
4019
|
l1StandardBridge: {
|
|
3919
|
-
[sourceId$
|
|
4020
|
+
[sourceId$A]: {
|
|
3920
4021
|
address: '0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2',
|
|
3921
4022
|
blockCreated: 19135323,
|
|
3922
4023
|
},
|
|
3923
4024
|
},
|
|
3924
4025
|
},
|
|
3925
|
-
sourceId: sourceId$
|
|
4026
|
+
sourceId: sourceId$A,
|
|
3926
4027
|
});
|
|
3927
4028
|
|
|
3928
|
-
const sourceId$
|
|
4029
|
+
const sourceId$z = 17000; // holesky
|
|
3929
4030
|
/*#__PURE__*/ defineChain({
|
|
3930
4031
|
...chainConfig$1,
|
|
3931
4032
|
id: 2522,
|
|
@@ -3946,7 +4047,7 @@ const sourceId$y = 17000; // holesky
|
|
|
3946
4047
|
contracts: {
|
|
3947
4048
|
...chainConfig$1.contracts,
|
|
3948
4049
|
l2OutputOracle: {
|
|
3949
|
-
[sourceId$
|
|
4050
|
+
[sourceId$z]: {
|
|
3950
4051
|
address: '0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32',
|
|
3951
4052
|
},
|
|
3952
4053
|
},
|
|
@@ -3954,22 +4055,22 @@ const sourceId$y = 17000; // holesky
|
|
|
3954
4055
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
3955
4056
|
},
|
|
3956
4057
|
portal: {
|
|
3957
|
-
[sourceId$
|
|
4058
|
+
[sourceId$z]: {
|
|
3958
4059
|
address: '0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d',
|
|
3959
4060
|
blockCreated: 318416,
|
|
3960
4061
|
},
|
|
3961
4062
|
},
|
|
3962
4063
|
l1StandardBridge: {
|
|
3963
|
-
[sourceId$
|
|
4064
|
+
[sourceId$z]: {
|
|
3964
4065
|
address: '0x0BaafC217162f64930909aD9f2B27125121d6332',
|
|
3965
4066
|
blockCreated: 318416,
|
|
3966
4067
|
},
|
|
3967
4068
|
},
|
|
3968
4069
|
},
|
|
3969
|
-
sourceId: sourceId$
|
|
4070
|
+
sourceId: sourceId$z,
|
|
3970
4071
|
});
|
|
3971
4072
|
|
|
3972
|
-
const sourceId$
|
|
4073
|
+
const sourceId$y = 1; // mainnet
|
|
3973
4074
|
/*#__PURE__*/ defineChain({
|
|
3974
4075
|
...chainConfig$1,
|
|
3975
4076
|
id: 33979,
|
|
@@ -3989,10 +4090,10 @@ const sourceId$x = 1; // mainnet
|
|
|
3989
4090
|
contracts: {
|
|
3990
4091
|
...chainConfig$1.contracts,
|
|
3991
4092
|
},
|
|
3992
|
-
sourceId: sourceId$
|
|
4093
|
+
sourceId: sourceId$y,
|
|
3993
4094
|
});
|
|
3994
4095
|
|
|
3995
|
-
const sourceId$
|
|
4096
|
+
const sourceId$x = 11_155_111; // sepolia
|
|
3996
4097
|
defineChain({
|
|
3997
4098
|
...chainConfig$1,
|
|
3998
4099
|
id: 3397901,
|
|
@@ -4018,16 +4119,16 @@ defineChain({
|
|
|
4018
4119
|
blockCreated: 1620204,
|
|
4019
4120
|
},
|
|
4020
4121
|
},
|
|
4021
|
-
sourceId: sourceId$
|
|
4122
|
+
sourceId: sourceId$x,
|
|
4022
4123
|
});
|
|
4023
4124
|
|
|
4024
|
-
const sourceId$
|
|
4125
|
+
const sourceId$w = 17000; // Holesky testnet
|
|
4025
4126
|
defineChain({
|
|
4026
4127
|
...chainConfig$1,
|
|
4027
4128
|
name: 'Garnet Testnet',
|
|
4028
4129
|
testnet: true,
|
|
4029
4130
|
id: 17069,
|
|
4030
|
-
sourceId: sourceId$
|
|
4131
|
+
sourceId: sourceId$w,
|
|
4031
4132
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
4032
4133
|
rpcUrls: {
|
|
4033
4134
|
default: {
|
|
@@ -4047,19 +4148,19 @@ defineChain({
|
|
|
4047
4148
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
4048
4149
|
},
|
|
4049
4150
|
portal: {
|
|
4050
|
-
[sourceId$
|
|
4151
|
+
[sourceId$w]: {
|
|
4051
4152
|
address: '0x57ee40586fbE286AfC75E67cb69511A6D9aF5909',
|
|
4052
4153
|
blockCreated: 1274684,
|
|
4053
4154
|
},
|
|
4054
4155
|
},
|
|
4055
4156
|
l2OutputOracle: {
|
|
4056
|
-
[sourceId$
|
|
4157
|
+
[sourceId$w]: {
|
|
4057
4158
|
address: '0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B',
|
|
4058
4159
|
blockCreated: 1274684,
|
|
4059
4160
|
},
|
|
4060
4161
|
},
|
|
4061
4162
|
l1StandardBridge: {
|
|
4062
|
-
[sourceId$
|
|
4163
|
+
[sourceId$w]: {
|
|
4063
4164
|
address: '0x09bcDd311FE398F80a78BE37E489f5D440DB95DE',
|
|
4064
4165
|
blockCreated: 1274684,
|
|
4065
4166
|
},
|
|
@@ -4067,6 +4168,52 @@ defineChain({
|
|
|
4067
4168
|
},
|
|
4068
4169
|
});
|
|
4069
4170
|
|
|
4171
|
+
const sourceId$v = 11_155_111; // sepolia
|
|
4172
|
+
/*#__PURE__*/ defineChain({
|
|
4173
|
+
...chainConfig$1,
|
|
4174
|
+
id: 91342,
|
|
4175
|
+
network: 'giwa-sepolia',
|
|
4176
|
+
name: 'GIWA Sepolia',
|
|
4177
|
+
nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
|
|
4178
|
+
blockTime: 1_000,
|
|
4179
|
+
rpcUrls: {
|
|
4180
|
+
default: {
|
|
4181
|
+
http: ['https://sepolia-rpc.giwa.io'],
|
|
4182
|
+
},
|
|
4183
|
+
},
|
|
4184
|
+
blockExplorers: {
|
|
4185
|
+
default: {
|
|
4186
|
+
name: 'Blockscout',
|
|
4187
|
+
url: 'https://sepolia-explorer.giwa.io',
|
|
4188
|
+
apiUrl: 'https://sepolia-explorer.giwa.io/api',
|
|
4189
|
+
},
|
|
4190
|
+
},
|
|
4191
|
+
contracts: {
|
|
4192
|
+
...chainConfig$1.contracts,
|
|
4193
|
+
multicall3: {
|
|
4194
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
4195
|
+
blockCreated: 0,
|
|
4196
|
+
},
|
|
4197
|
+
disputeGameFactory: {
|
|
4198
|
+
[sourceId$v]: {
|
|
4199
|
+
address: '0x37347caB2afaa49B776372279143D71ad1f354F6',
|
|
4200
|
+
},
|
|
4201
|
+
},
|
|
4202
|
+
portal: {
|
|
4203
|
+
[sourceId$v]: {
|
|
4204
|
+
address: '0x956962C34687A954e611A83619ABaA37Ce6bC78A',
|
|
4205
|
+
},
|
|
4206
|
+
},
|
|
4207
|
+
l1StandardBridge: {
|
|
4208
|
+
[sourceId$v]: {
|
|
4209
|
+
address: '0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7',
|
|
4210
|
+
},
|
|
4211
|
+
},
|
|
4212
|
+
},
|
|
4213
|
+
testnet: true,
|
|
4214
|
+
sourceId: sourceId$v,
|
|
4215
|
+
});
|
|
4216
|
+
|
|
4070
4217
|
const sourceId$u = 1; // mainnet
|
|
4071
4218
|
/*#__PURE__*/ defineChain({
|
|
4072
4219
|
...chainConfig$1,
|
|
@@ -4416,6 +4563,25 @@ const sourceId$o = 11_155_111; // sepolia
|
|
|
4416
4563
|
sourceId: sourceId$o,
|
|
4417
4564
|
});
|
|
4418
4565
|
|
|
4566
|
+
defineChain({
|
|
4567
|
+
id: 166,
|
|
4568
|
+
name: 'Omni',
|
|
4569
|
+
nativeCurrency: { name: 'Omni', symbol: 'OMNI', decimals: 18 },
|
|
4570
|
+
rpcUrls: {
|
|
4571
|
+
default: {
|
|
4572
|
+
http: ['https://mainnet.omni.network'],
|
|
4573
|
+
webSocket: ['wss://mainnet.omni.network'],
|
|
4574
|
+
},
|
|
4575
|
+
},
|
|
4576
|
+
blockExplorers: {
|
|
4577
|
+
default: {
|
|
4578
|
+
name: 'OmniScan',
|
|
4579
|
+
url: 'https://omniscan.network',
|
|
4580
|
+
},
|
|
4581
|
+
},
|
|
4582
|
+
testnet: false,
|
|
4583
|
+
});
|
|
4584
|
+
|
|
4419
4585
|
const sourceId$n = 56; // bsc mainnet
|
|
4420
4586
|
/*#__PURE__*/ defineChain({
|
|
4421
4587
|
id: 204,
|
|
@@ -5235,6 +5401,7 @@ const sourceId$6 = 1; // mainnet
|
|
|
5235
5401
|
id: 130,
|
|
5236
5402
|
name: 'Unichain',
|
|
5237
5403
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
5404
|
+
blockTime: 1_000,
|
|
5238
5405
|
rpcUrls: {
|
|
5239
5406
|
default: {
|
|
5240
5407
|
http: ['https://mainnet.unichain.org/'],
|
|
@@ -5282,6 +5449,7 @@ const sourceId$5 = 11_155_111; // sepolia
|
|
|
5282
5449
|
symbol: 'ETH',
|
|
5283
5450
|
decimals: 18,
|
|
5284
5451
|
},
|
|
5452
|
+
blockTime: 1_000,
|
|
5285
5453
|
rpcUrls: {
|
|
5286
5454
|
default: {
|
|
5287
5455
|
http: ['https://sepolia.unichain.org'],
|