@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.cjs
CHANGED
|
@@ -277,7 +277,7 @@ function defineChain(chain) {
|
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
const version = '2.
|
|
280
|
+
const version = '2.37.12';
|
|
281
281
|
|
|
282
282
|
let errorConfig = {
|
|
283
283
|
getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
|
|
@@ -877,8 +877,8 @@ function defineFormatter(type, format) {
|
|
|
877
877
|
return ({ exclude, format: overrides, }) => {
|
|
878
878
|
return {
|
|
879
879
|
exclude,
|
|
880
|
-
format: (args) => {
|
|
881
|
-
const formatted = format(args);
|
|
880
|
+
format: (args, action) => {
|
|
881
|
+
const formatted = format(args, action);
|
|
882
882
|
if (exclude) {
|
|
883
883
|
for (const key of exclude) {
|
|
884
884
|
delete formatted[key];
|
|
@@ -886,7 +886,7 @@ function defineFormatter(type, format) {
|
|
|
886
886
|
}
|
|
887
887
|
return {
|
|
888
888
|
...formatted,
|
|
889
|
-
...overrides(args),
|
|
889
|
+
...overrides(args, action),
|
|
890
890
|
};
|
|
891
891
|
},
|
|
892
892
|
type,
|
|
@@ -901,7 +901,7 @@ const transactionType = {
|
|
|
901
901
|
'0x3': 'eip4844',
|
|
902
902
|
'0x4': 'eip7702',
|
|
903
903
|
};
|
|
904
|
-
function formatTransaction(transaction) {
|
|
904
|
+
function formatTransaction(transaction, _) {
|
|
905
905
|
const transaction_ = {
|
|
906
906
|
...transaction,
|
|
907
907
|
blockHash: transaction.blockHash ? transaction.blockHash : null,
|
|
@@ -979,7 +979,7 @@ function formatAuthorizationList$1(authorizationList) {
|
|
|
979
979
|
}));
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
-
function formatBlock(block) {
|
|
982
|
+
function formatBlock(block, _) {
|
|
983
983
|
const transactions = (block.transactions ?? []).map((transaction) => {
|
|
984
984
|
if (typeof transaction === 'string')
|
|
985
985
|
return transaction;
|
|
@@ -1027,7 +1027,7 @@ const receiptStatuses = {
|
|
|
1027
1027
|
'0x0': 'reverted',
|
|
1028
1028
|
'0x1': 'success',
|
|
1029
1029
|
};
|
|
1030
|
-
function formatTransactionReceipt(transactionReceipt) {
|
|
1030
|
+
function formatTransactionReceipt(transactionReceipt, _) {
|
|
1031
1031
|
const receipt = {
|
|
1032
1032
|
...transactionReceipt,
|
|
1033
1033
|
blockNumber: transactionReceipt.blockNumber
|
|
@@ -1074,7 +1074,7 @@ const rpcTransactionType = {
|
|
|
1074
1074
|
eip4844: '0x3',
|
|
1075
1075
|
eip7702: '0x4',
|
|
1076
1076
|
};
|
|
1077
|
-
function formatTransactionRequest(request) {
|
|
1077
|
+
function formatTransactionRequest(request, _) {
|
|
1078
1078
|
const rpcRequest = {};
|
|
1079
1079
|
if (typeof request.authorizationList !== 'undefined')
|
|
1080
1080
|
rpcRequest.authorizationList = formatAuthorizationList(request.authorizationList);
|
|
@@ -1594,18 +1594,18 @@ function blobsToProofs(parameters) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
1596
|
/**
|
|
1597
|
-
*
|
|
1597
|
+
* Utilities for hex, bytes, CSPRNG.
|
|
1598
1598
|
* @module
|
|
1599
1599
|
*/
|
|
1600
|
+
/** Checks if something is Uint8Array. Be careful: nodejs Buffer will return true. */
|
|
1601
|
+
function isBytes(a) {
|
|
1602
|
+
return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
|
|
1603
|
+
}
|
|
1600
1604
|
/** Asserts something is positive integer. */
|
|
1601
1605
|
function anumber(n) {
|
|
1602
1606
|
if (!Number.isSafeInteger(n) || n < 0)
|
|
1603
1607
|
throw new Error('positive integer expected, got ' + n);
|
|
1604
1608
|
}
|
|
1605
|
-
/** Is number an Uint8Array? Copied from utils for perf. */
|
|
1606
|
-
function isBytes(a) {
|
|
1607
|
-
return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
|
|
1608
|
-
}
|
|
1609
1609
|
/** Asserts something is Uint8Array. */
|
|
1610
1610
|
function abytes(b, ...lengths) {
|
|
1611
1611
|
if (!isBytes(b))
|
|
@@ -1628,15 +1628,17 @@ function aoutput(out, instance) {
|
|
|
1628
1628
|
throw new Error('digestInto() expects output buffer of length at least ' + min);
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
|
-
|
|
1632
|
-
/**
|
|
1633
|
-
* Utilities for hex, bytes, CSPRNG.
|
|
1634
|
-
* @module
|
|
1635
|
-
*/
|
|
1631
|
+
/** Cast u8 / u16 / u32 to u32. */
|
|
1636
1632
|
function u32(arr) {
|
|
1637
1633
|
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
1638
1634
|
}
|
|
1639
|
-
|
|
1635
|
+
/** Zeroize a byte array. Warning: JS provides no guarantees. */
|
|
1636
|
+
function clean(...arrays) {
|
|
1637
|
+
for (let i = 0; i < arrays.length; i++) {
|
|
1638
|
+
arrays[i].fill(0);
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
/** Create DataView of an array for easy byte-level manipulation. */
|
|
1640
1642
|
function createView(arr) {
|
|
1641
1643
|
return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
1642
1644
|
}
|
|
@@ -1646,7 +1648,7 @@ function rotr(word, shift) {
|
|
|
1646
1648
|
}
|
|
1647
1649
|
/** Is current platform little-endian? Most are. Big-Endian platform: IBM */
|
|
1648
1650
|
const isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();
|
|
1649
|
-
|
|
1651
|
+
/** The byte swap operation for uint32 */
|
|
1650
1652
|
function byteSwap(word) {
|
|
1651
1653
|
return (((word << 24) & 0xff000000) |
|
|
1652
1654
|
((word << 8) & 0xff0000) |
|
|
@@ -1658,17 +1660,18 @@ function byteSwap32(arr) {
|
|
|
1658
1660
|
for (let i = 0; i < arr.length; i++) {
|
|
1659
1661
|
arr[i] = byteSwap(arr[i]);
|
|
1660
1662
|
}
|
|
1663
|
+
return arr;
|
|
1661
1664
|
}
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
+
const swap32IfBE = isLE
|
|
1666
|
+
? (u) => u
|
|
1667
|
+
: byteSwap32;
|
|
1665
1668
|
/**
|
|
1666
|
-
*
|
|
1667
|
-
* @example utf8ToBytes('abc') //
|
|
1669
|
+
* Converts string to bytes using UTF8 encoding.
|
|
1670
|
+
* @example utf8ToBytes('abc') // Uint8Array.from([97, 98, 99])
|
|
1668
1671
|
*/
|
|
1669
1672
|
function utf8ToBytes(str) {
|
|
1670
1673
|
if (typeof str !== 'string')
|
|
1671
|
-
throw new Error('
|
|
1674
|
+
throw new Error('string expected');
|
|
1672
1675
|
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
1673
1676
|
}
|
|
1674
1677
|
/**
|
|
@@ -1684,13 +1687,9 @@ function toBytes(data) {
|
|
|
1684
1687
|
}
|
|
1685
1688
|
/** For runtime check if class implements interface */
|
|
1686
1689
|
class Hash {
|
|
1687
|
-
// Safe version that clones internal state
|
|
1688
|
-
clone() {
|
|
1689
|
-
return this._cloneInto();
|
|
1690
|
-
}
|
|
1691
1690
|
}
|
|
1692
1691
|
/** Wraps hash function, creating an interface on top of it */
|
|
1693
|
-
function
|
|
1692
|
+
function createHasher(hashCons) {
|
|
1694
1693
|
const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
|
|
1695
1694
|
const tmp = hashCons();
|
|
1696
1695
|
hashC.outputLen = tmp.outputLen;
|
|
@@ -1744,8 +1743,9 @@ class HashMD extends Hash {
|
|
|
1744
1743
|
}
|
|
1745
1744
|
update(data) {
|
|
1746
1745
|
aexists(this);
|
|
1747
|
-
const { view, buffer, blockLen } = this;
|
|
1748
1746
|
data = toBytes(data);
|
|
1747
|
+
abytes(data);
|
|
1748
|
+
const { view, buffer, blockLen } = this;
|
|
1749
1749
|
const len = data.length;
|
|
1750
1750
|
for (let pos = 0; pos < len;) {
|
|
1751
1751
|
const take = Math.min(blockLen - this.pos, len - pos);
|
|
@@ -1779,7 +1779,7 @@ class HashMD extends Hash {
|
|
|
1779
1779
|
let { pos } = this;
|
|
1780
1780
|
// append the bit '1' to the message
|
|
1781
1781
|
buffer[pos++] = 0b10000000;
|
|
1782
|
-
this.buffer.subarray(pos)
|
|
1782
|
+
clean(this.buffer.subarray(pos));
|
|
1783
1783
|
// we have less than padOffset left in buffer, so we cannot put length in
|
|
1784
1784
|
// current block, need process it and pad again
|
|
1785
1785
|
if (this.padOffset > blockLen - pos) {
|
|
@@ -1817,28 +1817,69 @@ class HashMD extends Hash {
|
|
|
1817
1817
|
to || (to = new this.constructor());
|
|
1818
1818
|
to.set(...this.get());
|
|
1819
1819
|
const { blockLen, buffer, length, finished, destroyed, pos } = this;
|
|
1820
|
+
to.destroyed = destroyed;
|
|
1821
|
+
to.finished = finished;
|
|
1820
1822
|
to.length = length;
|
|
1821
1823
|
to.pos = pos;
|
|
1822
|
-
to.finished = finished;
|
|
1823
|
-
to.destroyed = destroyed;
|
|
1824
1824
|
if (length % blockLen)
|
|
1825
1825
|
to.buffer.set(buffer);
|
|
1826
1826
|
return to;
|
|
1827
1827
|
}
|
|
1828
|
+
clone() {
|
|
1829
|
+
return this._cloneInto();
|
|
1830
|
+
}
|
|
1828
1831
|
}
|
|
1832
|
+
/**
|
|
1833
|
+
* Initial SHA-2 state: fractional parts of square roots of first 16 primes 2..53.
|
|
1834
|
+
* Check out `test/misc/sha2-gen-iv.js` for recomputation guide.
|
|
1835
|
+
*/
|
|
1836
|
+
/** Initial SHA256 state. Bits 0..32 of frac part of sqrt of primes 2..19 */
|
|
1837
|
+
const SHA256_IV = /* @__PURE__ */ Uint32Array.from([
|
|
1838
|
+
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
|
|
1839
|
+
]);
|
|
1829
1840
|
|
|
1830
1841
|
/**
|
|
1831
|
-
*
|
|
1832
|
-
*
|
|
1833
|
-
* To break sha256 using birthday attack, attackers need to try 2^128 hashes.
|
|
1834
|
-
* BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
|
|
1835
|
-
*
|
|
1836
|
-
* Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
|
|
1842
|
+
* Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
|
|
1843
|
+
* @todo re-check https://issues.chromium.org/issues/42212588
|
|
1837
1844
|
* @module
|
|
1838
1845
|
*/
|
|
1839
|
-
|
|
1846
|
+
const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
1847
|
+
const _32n = /* @__PURE__ */ BigInt(32);
|
|
1848
|
+
function fromBig(n, le = false) {
|
|
1849
|
+
if (le)
|
|
1850
|
+
return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };
|
|
1851
|
+
return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
1852
|
+
}
|
|
1853
|
+
function split(lst, le = false) {
|
|
1854
|
+
const len = lst.length;
|
|
1855
|
+
let Ah = new Uint32Array(len);
|
|
1856
|
+
let Al = new Uint32Array(len);
|
|
1857
|
+
for (let i = 0; i < len; i++) {
|
|
1858
|
+
const { h, l } = fromBig(lst[i], le);
|
|
1859
|
+
[Ah[i], Al[i]] = [h, l];
|
|
1860
|
+
}
|
|
1861
|
+
return [Ah, Al];
|
|
1862
|
+
}
|
|
1863
|
+
// Left rotate for Shift in [1, 32)
|
|
1864
|
+
const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));
|
|
1865
|
+
const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));
|
|
1866
|
+
// Left rotate for Shift in (32, 64), NOTE: 32 is special case.
|
|
1867
|
+
const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));
|
|
1868
|
+
const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* SHA2 hash function. A.k.a. sha256, sha384, sha512, sha512_224, sha512_256.
|
|
1872
|
+
* SHA256 is the fastest hash implementable in JS, even faster than Blake3.
|
|
1873
|
+
* Check out [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and
|
|
1874
|
+
* [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
|
|
1875
|
+
* @module
|
|
1876
|
+
*/
|
|
1877
|
+
/**
|
|
1878
|
+
* Round constants:
|
|
1879
|
+
* First 32 bits of fractional parts of the cube roots of the first 64 primes 2..311)
|
|
1880
|
+
*/
|
|
1840
1881
|
// prettier-ignore
|
|
1841
|
-
const SHA256_K = /* @__PURE__ */
|
|
1882
|
+
const SHA256_K = /* @__PURE__ */ Uint32Array.from([
|
|
1842
1883
|
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
|
|
1843
1884
|
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
|
|
1844
1885
|
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
|
|
@@ -1848,15 +1889,7 @@ const SHA256_K = /* @__PURE__ */ new Uint32Array([
|
|
|
1848
1889
|
0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
|
|
1849
1890
|
0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
|
|
1850
1891
|
]);
|
|
1851
|
-
/**
|
|
1852
|
-
// prettier-ignore
|
|
1853
|
-
const SHA256_IV = /* @__PURE__ */ new Uint32Array([
|
|
1854
|
-
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
|
|
1855
|
-
]);
|
|
1856
|
-
/**
|
|
1857
|
-
* Temporary buffer, not used to store anything between runs.
|
|
1858
|
-
* Named this way because it matches specification.
|
|
1859
|
-
*/
|
|
1892
|
+
/** Reusable temporary buffer. "W" comes straight from spec. */
|
|
1860
1893
|
const SHA256_W = /* @__PURE__ */ new Uint32Array(64);
|
|
1861
1894
|
class SHA256 extends HashMD {
|
|
1862
1895
|
constructor(outputLen = 32) {
|
|
@@ -1926,15 +1959,34 @@ class SHA256 extends HashMD {
|
|
|
1926
1959
|
this.set(A, B, C, D, E, F, G, H);
|
|
1927
1960
|
}
|
|
1928
1961
|
roundClean() {
|
|
1929
|
-
SHA256_W
|
|
1962
|
+
clean(SHA256_W);
|
|
1930
1963
|
}
|
|
1931
1964
|
destroy() {
|
|
1932
1965
|
this.set(0, 0, 0, 0, 0, 0, 0, 0);
|
|
1933
|
-
this.buffer
|
|
1966
|
+
clean(this.buffer);
|
|
1934
1967
|
}
|
|
1935
1968
|
}
|
|
1936
|
-
/**
|
|
1937
|
-
|
|
1969
|
+
/**
|
|
1970
|
+
* SHA2-256 hash function from RFC 4634.
|
|
1971
|
+
*
|
|
1972
|
+
* It is the fastest JS hash, even faster than Blake3.
|
|
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
|
+
const sha256$2 = /* @__PURE__ */ createHasher(() => new SHA256());
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.
|
|
1980
|
+
*
|
|
1981
|
+
* To break sha256 using birthday attack, attackers need to try 2^128 hashes.
|
|
1982
|
+
* BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.
|
|
1983
|
+
*
|
|
1984
|
+
* Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).
|
|
1985
|
+
* @module
|
|
1986
|
+
* @deprecated
|
|
1987
|
+
*/
|
|
1988
|
+
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
1989
|
+
const sha256$1 = sha256$2;
|
|
1938
1990
|
|
|
1939
1991
|
function sha256(value, to_) {
|
|
1940
1992
|
const to = to_ || 'hex';
|
|
@@ -2234,34 +2286,6 @@ class LruMap extends Map {
|
|
|
2234
2286
|
}
|
|
2235
2287
|
}
|
|
2236
2288
|
|
|
2237
|
-
/**
|
|
2238
|
-
* Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.
|
|
2239
|
-
* @todo re-check https://issues.chromium.org/issues/42212588
|
|
2240
|
-
* @module
|
|
2241
|
-
*/
|
|
2242
|
-
const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
2243
|
-
const _32n = /* @__PURE__ */ BigInt(32);
|
|
2244
|
-
function fromBig(n, le = false) {
|
|
2245
|
-
if (le)
|
|
2246
|
-
return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };
|
|
2247
|
-
return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
2248
|
-
}
|
|
2249
|
-
function split(lst, le = false) {
|
|
2250
|
-
let Ah = new Uint32Array(lst.length);
|
|
2251
|
-
let Al = new Uint32Array(lst.length);
|
|
2252
|
-
for (let i = 0; i < lst.length; i++) {
|
|
2253
|
-
const { h, l } = fromBig(lst[i], le);
|
|
2254
|
-
[Ah[i], Al[i]] = [h, l];
|
|
2255
|
-
}
|
|
2256
|
-
return [Ah, Al];
|
|
2257
|
-
}
|
|
2258
|
-
// Left rotate for Shift in [1, 32)
|
|
2259
|
-
const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));
|
|
2260
|
-
const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));
|
|
2261
|
-
// Left rotate for Shift in (32, 64), NOTE: 32 is special case.
|
|
2262
|
-
const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));
|
|
2263
|
-
const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
|
|
2264
|
-
|
|
2265
2289
|
/**
|
|
2266
2290
|
* SHA3 (keccak) hash function, based on a new "Sponge function" design.
|
|
2267
2291
|
* Different from older hashes, the internal state is bigger than output size.
|
|
@@ -2273,16 +2297,18 @@ const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
|
|
|
2273
2297
|
* Check out `sha3-addons` module for cSHAKE, k12, and others.
|
|
2274
2298
|
* @module
|
|
2275
2299
|
*/
|
|
2300
|
+
// No __PURE__ annotations in sha3 header:
|
|
2301
|
+
// EVERYTHING is in fact used on every export.
|
|
2276
2302
|
// Various per round constants calculations
|
|
2303
|
+
const _0n = BigInt(0);
|
|
2304
|
+
const _1n = BigInt(1);
|
|
2305
|
+
const _2n = BigInt(2);
|
|
2306
|
+
const _7n = BigInt(7);
|
|
2307
|
+
const _256n = BigInt(256);
|
|
2308
|
+
const _0x71n = BigInt(0x71);
|
|
2277
2309
|
const SHA3_PI = [];
|
|
2278
2310
|
const SHA3_ROTL = [];
|
|
2279
2311
|
const _SHA3_IOTA = [];
|
|
2280
|
-
const _0n = /* @__PURE__ */ BigInt(0);
|
|
2281
|
-
const _1n = /* @__PURE__ */ BigInt(1);
|
|
2282
|
-
const _2n = /* @__PURE__ */ BigInt(2);
|
|
2283
|
-
const _7n = /* @__PURE__ */ BigInt(7);
|
|
2284
|
-
const _256n = /* @__PURE__ */ BigInt(256);
|
|
2285
|
-
const _0x71n = /* @__PURE__ */ BigInt(0x71);
|
|
2286
2312
|
for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
|
|
2287
2313
|
// Pi
|
|
2288
2314
|
[x, y] = [y, (2 * x + 3 * y) % 5];
|
|
@@ -2298,7 +2324,9 @@ for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
|
|
|
2298
2324
|
}
|
|
2299
2325
|
_SHA3_IOTA.push(t);
|
|
2300
2326
|
}
|
|
2301
|
-
const
|
|
2327
|
+
const IOTAS = split(_SHA3_IOTA, true);
|
|
2328
|
+
const SHA3_IOTA_H = IOTAS[0];
|
|
2329
|
+
const SHA3_IOTA_L = IOTAS[1];
|
|
2302
2330
|
// Left rotation (without 0, 32, 64)
|
|
2303
2331
|
const rotlH = (h, l, s) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s));
|
|
2304
2332
|
const rotlL = (h, l, s) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s));
|
|
@@ -2346,7 +2374,7 @@ function keccakP(s, rounds = 24) {
|
|
|
2346
2374
|
s[0] ^= SHA3_IOTA_H[round];
|
|
2347
2375
|
s[1] ^= SHA3_IOTA_L[round];
|
|
2348
2376
|
}
|
|
2349
|
-
B
|
|
2377
|
+
clean(B);
|
|
2350
2378
|
}
|
|
2351
2379
|
/** Keccak sponge function. */
|
|
2352
2380
|
class Keccak extends Hash {
|
|
@@ -2367,24 +2395,26 @@ class Keccak extends Hash {
|
|
|
2367
2395
|
anumber(outputLen);
|
|
2368
2396
|
// 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes
|
|
2369
2397
|
// 0 < blockLen < 200
|
|
2370
|
-
if (0
|
|
2371
|
-
throw new Error('
|
|
2398
|
+
if (!(0 < blockLen && blockLen < 200))
|
|
2399
|
+
throw new Error('only keccak-f1600 function is supported');
|
|
2372
2400
|
this.state = new Uint8Array(200);
|
|
2373
2401
|
this.state32 = u32(this.state);
|
|
2374
2402
|
}
|
|
2403
|
+
clone() {
|
|
2404
|
+
return this._cloneInto();
|
|
2405
|
+
}
|
|
2375
2406
|
keccak() {
|
|
2376
|
-
|
|
2377
|
-
byteSwap32(this.state32);
|
|
2407
|
+
swap32IfBE(this.state32);
|
|
2378
2408
|
keccakP(this.state32, this.rounds);
|
|
2379
|
-
|
|
2380
|
-
byteSwap32(this.state32);
|
|
2409
|
+
swap32IfBE(this.state32);
|
|
2381
2410
|
this.posOut = 0;
|
|
2382
2411
|
this.pos = 0;
|
|
2383
2412
|
}
|
|
2384
2413
|
update(data) {
|
|
2385
2414
|
aexists(this);
|
|
2386
|
-
const { blockLen, state } = this;
|
|
2387
2415
|
data = toBytes(data);
|
|
2416
|
+
abytes(data);
|
|
2417
|
+
const { blockLen, state } = this;
|
|
2388
2418
|
const len = data.length;
|
|
2389
2419
|
for (let pos = 0; pos < len;) {
|
|
2390
2420
|
const take = Math.min(blockLen - this.pos, len - pos);
|
|
@@ -2446,7 +2476,7 @@ class Keccak extends Hash {
|
|
|
2446
2476
|
}
|
|
2447
2477
|
destroy() {
|
|
2448
2478
|
this.destroyed = true;
|
|
2449
|
-
this.state
|
|
2479
|
+
clean(this.state);
|
|
2450
2480
|
}
|
|
2451
2481
|
_cloneInto(to) {
|
|
2452
2482
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
|
@@ -2464,9 +2494,9 @@ class Keccak extends Hash {
|
|
|
2464
2494
|
return to;
|
|
2465
2495
|
}
|
|
2466
2496
|
}
|
|
2467
|
-
const gen = (suffix, blockLen, outputLen) =>
|
|
2497
|
+
const gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
|
|
2468
2498
|
/** keccak-256 hash function. Different from SHA3-256. */
|
|
2469
|
-
const keccak_256 = /* @__PURE__ */ gen(0x01, 136, 256 / 8);
|
|
2499
|
+
const keccak_256 = /* @__PURE__ */ (() => gen(0x01, 136, 256 / 8))();
|
|
2470
2500
|
|
|
2471
2501
|
function keccak256(value, to_) {
|
|
2472
2502
|
const to = to_ || 'hex';
|
|
@@ -2735,13 +2765,13 @@ function serializeTransactionEIP7702(transaction, signature) {
|
|
|
2735
2765
|
return concatHex([
|
|
2736
2766
|
'0x04',
|
|
2737
2767
|
toRlp([
|
|
2738
|
-
|
|
2739
|
-
nonce ?
|
|
2740
|
-
maxPriorityFeePerGas ?
|
|
2741
|
-
maxFeePerGas ?
|
|
2742
|
-
gas ?
|
|
2768
|
+
numberToHex(chainId),
|
|
2769
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2770
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
|
|
2771
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
|
|
2772
|
+
gas ? numberToHex(gas) : '0x',
|
|
2743
2773
|
to ?? '0x',
|
|
2744
|
-
value ?
|
|
2774
|
+
value ? numberToHex(value) : '0x',
|
|
2745
2775
|
data ?? '0x',
|
|
2746
2776
|
serializedAccessList,
|
|
2747
2777
|
serializedAuthorizationList,
|
|
@@ -2777,16 +2807,16 @@ function serializeTransactionEIP4844(transaction, signature) {
|
|
|
2777
2807
|
}
|
|
2778
2808
|
const serializedAccessList = serializeAccessList(accessList);
|
|
2779
2809
|
const serializedTransaction = [
|
|
2780
|
-
|
|
2781
|
-
nonce ?
|
|
2782
|
-
maxPriorityFeePerGas ?
|
|
2783
|
-
maxFeePerGas ?
|
|
2784
|
-
gas ?
|
|
2810
|
+
numberToHex(chainId),
|
|
2811
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2812
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
|
|
2813
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
|
|
2814
|
+
gas ? numberToHex(gas) : '0x',
|
|
2785
2815
|
to ?? '0x',
|
|
2786
|
-
value ?
|
|
2816
|
+
value ? numberToHex(value) : '0x',
|
|
2787
2817
|
data ?? '0x',
|
|
2788
2818
|
serializedAccessList,
|
|
2789
|
-
maxFeePerBlobGas ?
|
|
2819
|
+
maxFeePerBlobGas ? numberToHex(maxFeePerBlobGas) : '0x',
|
|
2790
2820
|
blobVersionedHashes ?? [],
|
|
2791
2821
|
...toYParitySignatureArray(transaction, signature),
|
|
2792
2822
|
];
|
|
@@ -2814,13 +2844,13 @@ function serializeTransactionEIP1559(transaction, signature) {
|
|
|
2814
2844
|
assertTransactionEIP1559(transaction);
|
|
2815
2845
|
const serializedAccessList = serializeAccessList(accessList);
|
|
2816
2846
|
const serializedTransaction = [
|
|
2817
|
-
|
|
2818
|
-
nonce ?
|
|
2819
|
-
maxPriorityFeePerGas ?
|
|
2820
|
-
maxFeePerGas ?
|
|
2821
|
-
gas ?
|
|
2847
|
+
numberToHex(chainId),
|
|
2848
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2849
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : '0x',
|
|
2850
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : '0x',
|
|
2851
|
+
gas ? numberToHex(gas) : '0x',
|
|
2822
2852
|
to ?? '0x',
|
|
2823
|
-
value ?
|
|
2853
|
+
value ? numberToHex(value) : '0x',
|
|
2824
2854
|
data ?? '0x',
|
|
2825
2855
|
serializedAccessList,
|
|
2826
2856
|
...toYParitySignatureArray(transaction, signature),
|
|
@@ -2835,12 +2865,12 @@ function serializeTransactionEIP2930(transaction, signature) {
|
|
|
2835
2865
|
assertTransactionEIP2930(transaction);
|
|
2836
2866
|
const serializedAccessList = serializeAccessList(accessList);
|
|
2837
2867
|
const serializedTransaction = [
|
|
2838
|
-
|
|
2839
|
-
nonce ?
|
|
2840
|
-
gasPrice ?
|
|
2841
|
-
gas ?
|
|
2868
|
+
numberToHex(chainId),
|
|
2869
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2870
|
+
gasPrice ? numberToHex(gasPrice) : '0x',
|
|
2871
|
+
gas ? numberToHex(gas) : '0x',
|
|
2842
2872
|
to ?? '0x',
|
|
2843
|
-
value ?
|
|
2873
|
+
value ? numberToHex(value) : '0x',
|
|
2844
2874
|
data ?? '0x',
|
|
2845
2875
|
serializedAccessList,
|
|
2846
2876
|
...toYParitySignatureArray(transaction, signature),
|
|
@@ -2854,11 +2884,11 @@ function serializeTransactionLegacy(transaction, signature) {
|
|
|
2854
2884
|
const { chainId = 0, gas, data, nonce, to, value, gasPrice } = transaction;
|
|
2855
2885
|
assertTransactionLegacy(transaction);
|
|
2856
2886
|
let serializedTransaction = [
|
|
2857
|
-
nonce ?
|
|
2858
|
-
gasPrice ?
|
|
2859
|
-
gas ?
|
|
2887
|
+
nonce ? numberToHex(nonce) : '0x',
|
|
2888
|
+
gasPrice ? numberToHex(gasPrice) : '0x',
|
|
2889
|
+
gas ? numberToHex(gas) : '0x',
|
|
2860
2890
|
to ?? '0x',
|
|
2861
|
-
value ?
|
|
2891
|
+
value ? numberToHex(value) : '0x',
|
|
2862
2892
|
data ?? '0x',
|
|
2863
2893
|
];
|
|
2864
2894
|
if (signature) {
|
|
@@ -2883,7 +2913,7 @@ function serializeTransactionLegacy(transaction, signature) {
|
|
|
2883
2913
|
const s = trim(signature.s);
|
|
2884
2914
|
serializedTransaction = [
|
|
2885
2915
|
...serializedTransaction,
|
|
2886
|
-
|
|
2916
|
+
numberToHex(v),
|
|
2887
2917
|
r === '0x00' ? '0x' : r,
|
|
2888
2918
|
s === '0x00' ? '0x' : s,
|
|
2889
2919
|
];
|
|
@@ -2891,7 +2921,7 @@ function serializeTransactionLegacy(transaction, signature) {
|
|
|
2891
2921
|
else if (chainId > 0) {
|
|
2892
2922
|
serializedTransaction = [
|
|
2893
2923
|
...serializedTransaction,
|
|
2894
|
-
|
|
2924
|
+
numberToHex(chainId),
|
|
2895
2925
|
'0x',
|
|
2896
2926
|
'0x',
|
|
2897
2927
|
];
|
|
@@ -2911,12 +2941,12 @@ function toYParitySignatureArray(transaction, signature_) {
|
|
|
2911
2941
|
const s = trim(signature.s);
|
|
2912
2942
|
const yParity_ = (() => {
|
|
2913
2943
|
if (typeof yParity === 'number')
|
|
2914
|
-
return yParity ?
|
|
2944
|
+
return yParity ? numberToHex(1) : '0x';
|
|
2915
2945
|
if (v === 0n)
|
|
2916
2946
|
return '0x';
|
|
2917
2947
|
if (v === 1n)
|
|
2918
|
-
return
|
|
2919
|
-
return v === 27n ? '0x' :
|
|
2948
|
+
return numberToHex(1);
|
|
2949
|
+
return v === 27n ? '0x' : numberToHex(1);
|
|
2920
2950
|
})();
|
|
2921
2951
|
return [yParity_, r === '0x00' ? '0x' : r, s === '0x00' ? '0x' : s];
|
|
2922
2952
|
}
|
|
@@ -3027,12 +3057,13 @@ function assertTransactionDeposit(transaction) {
|
|
|
3027
3057
|
}
|
|
3028
3058
|
|
|
3029
3059
|
const chainConfig$1 = {
|
|
3060
|
+
blockTime: 2_000,
|
|
3030
3061
|
contracts,
|
|
3031
3062
|
formatters: formatters$1,
|
|
3032
3063
|
serializers: serializers$1,
|
|
3033
3064
|
};
|
|
3034
3065
|
|
|
3035
|
-
const sourceId$
|
|
3066
|
+
const sourceId$M = 1; // mainnet
|
|
3036
3067
|
/*#__PURE__*/ defineChain({
|
|
3037
3068
|
...chainConfig$1,
|
|
3038
3069
|
id: 888888888,
|
|
@@ -3053,27 +3084,27 @@ const sourceId$K = 1; // mainnet
|
|
|
3053
3084
|
contracts: {
|
|
3054
3085
|
...chainConfig$1.contracts,
|
|
3055
3086
|
l2OutputOracle: {
|
|
3056
|
-
[sourceId$
|
|
3087
|
+
[sourceId$M]: {
|
|
3057
3088
|
address: '0xB09DC08428C8b4EFB4ff9C0827386CDF34277996',
|
|
3058
3089
|
},
|
|
3059
3090
|
},
|
|
3060
3091
|
portal: {
|
|
3061
|
-
[sourceId$
|
|
3092
|
+
[sourceId$M]: {
|
|
3062
3093
|
address: '0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68',
|
|
3063
3094
|
blockCreated: 19070571,
|
|
3064
3095
|
},
|
|
3065
3096
|
},
|
|
3066
3097
|
l1StandardBridge: {
|
|
3067
|
-
[sourceId$
|
|
3098
|
+
[sourceId$M]: {
|
|
3068
3099
|
address: '0xd5e3eDf5b68135D559D572E26bF863FBC1950033',
|
|
3069
3100
|
blockCreated: 19070571,
|
|
3070
3101
|
},
|
|
3071
3102
|
},
|
|
3072
3103
|
},
|
|
3073
|
-
sourceId: sourceId$
|
|
3104
|
+
sourceId: sourceId$M,
|
|
3074
3105
|
});
|
|
3075
3106
|
|
|
3076
|
-
const sourceId$
|
|
3107
|
+
const sourceId$L = 11_155_111; // sepolia
|
|
3077
3108
|
/*#__PURE__*/ defineChain({
|
|
3078
3109
|
...chainConfig$1,
|
|
3079
3110
|
id: 28122024,
|
|
@@ -3094,27 +3125,27 @@ const sourceId$J = 11_155_111; // sepolia
|
|
|
3094
3125
|
contracts: {
|
|
3095
3126
|
...chainConfig$1.contracts,
|
|
3096
3127
|
l2OutputOracle: {
|
|
3097
|
-
[sourceId$
|
|
3128
|
+
[sourceId$L]: {
|
|
3098
3129
|
address: '0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB',
|
|
3099
3130
|
},
|
|
3100
3131
|
},
|
|
3101
3132
|
portal: {
|
|
3102
|
-
[sourceId$
|
|
3133
|
+
[sourceId$L]: {
|
|
3103
3134
|
address: '0xfa1d9E26A6aCD7b22115D27572c1221B9803c960',
|
|
3104
3135
|
blockCreated: 4972908,
|
|
3105
3136
|
},
|
|
3106
3137
|
},
|
|
3107
3138
|
l1StandardBridge: {
|
|
3108
|
-
[sourceId$
|
|
3139
|
+
[sourceId$L]: {
|
|
3109
3140
|
address: '0xF6Bc0146d3c74D48306e79Ae134A260E418C9335',
|
|
3110
3141
|
blockCreated: 4972908,
|
|
3111
3142
|
},
|
|
3112
3143
|
},
|
|
3113
3144
|
},
|
|
3114
|
-
sourceId: sourceId$
|
|
3145
|
+
sourceId: sourceId$L,
|
|
3115
3146
|
});
|
|
3116
3147
|
|
|
3117
|
-
const sourceId$
|
|
3148
|
+
const sourceId$K = 1; // mainnet
|
|
3118
3149
|
const base = /*#__PURE__*/ defineChain({
|
|
3119
3150
|
...chainConfig$1,
|
|
3120
3151
|
id: 8453,
|
|
@@ -3135,12 +3166,12 @@ const base = /*#__PURE__*/ defineChain({
|
|
|
3135
3166
|
contracts: {
|
|
3136
3167
|
...chainConfig$1.contracts,
|
|
3137
3168
|
disputeGameFactory: {
|
|
3138
|
-
[sourceId$
|
|
3169
|
+
[sourceId$K]: {
|
|
3139
3170
|
address: '0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e',
|
|
3140
3171
|
},
|
|
3141
3172
|
},
|
|
3142
3173
|
l2OutputOracle: {
|
|
3143
|
-
[sourceId$
|
|
3174
|
+
[sourceId$K]: {
|
|
3144
3175
|
address: '0x56315b90c40730925ec5485cf004d835058518A0',
|
|
3145
3176
|
},
|
|
3146
3177
|
},
|
|
@@ -3149,22 +3180,22 @@ const base = /*#__PURE__*/ defineChain({
|
|
|
3149
3180
|
blockCreated: 5022,
|
|
3150
3181
|
},
|
|
3151
3182
|
portal: {
|
|
3152
|
-
[sourceId$
|
|
3183
|
+
[sourceId$K]: {
|
|
3153
3184
|
address: '0x49048044D57e1C92A77f79988d21Fa8fAF74E97e',
|
|
3154
3185
|
blockCreated: 17482143,
|
|
3155
3186
|
},
|
|
3156
3187
|
},
|
|
3157
3188
|
l1StandardBridge: {
|
|
3158
|
-
[sourceId$
|
|
3189
|
+
[sourceId$K]: {
|
|
3159
3190
|
address: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35',
|
|
3160
3191
|
blockCreated: 17482143,
|
|
3161
3192
|
},
|
|
3162
3193
|
},
|
|
3163
3194
|
},
|
|
3164
|
-
sourceId: sourceId$
|
|
3195
|
+
sourceId: sourceId$K,
|
|
3165
3196
|
});
|
|
3166
3197
|
|
|
3167
|
-
const sourceId$
|
|
3198
|
+
const sourceId$J = 5; // goerli
|
|
3168
3199
|
/*#__PURE__*/ defineChain({
|
|
3169
3200
|
...chainConfig$1,
|
|
3170
3201
|
id: 84531,
|
|
@@ -3183,7 +3214,7 @@ const sourceId$H = 5; // goerli
|
|
|
3183
3214
|
contracts: {
|
|
3184
3215
|
...chainConfig$1.contracts,
|
|
3185
3216
|
l2OutputOracle: {
|
|
3186
|
-
[sourceId$
|
|
3217
|
+
[sourceId$J]: {
|
|
3187
3218
|
address: '0x2A35891ff30313CcFa6CE88dcf3858bb075A2298',
|
|
3188
3219
|
},
|
|
3189
3220
|
},
|
|
@@ -3192,21 +3223,21 @@ const sourceId$H = 5; // goerli
|
|
|
3192
3223
|
blockCreated: 1376988,
|
|
3193
3224
|
},
|
|
3194
3225
|
portal: {
|
|
3195
|
-
[sourceId$
|
|
3226
|
+
[sourceId$J]: {
|
|
3196
3227
|
address: '0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA',
|
|
3197
3228
|
},
|
|
3198
3229
|
},
|
|
3199
3230
|
l1StandardBridge: {
|
|
3200
|
-
[sourceId$
|
|
3231
|
+
[sourceId$J]: {
|
|
3201
3232
|
address: '0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a',
|
|
3202
3233
|
},
|
|
3203
3234
|
},
|
|
3204
3235
|
},
|
|
3205
3236
|
testnet: true,
|
|
3206
|
-
sourceId: sourceId$
|
|
3237
|
+
sourceId: sourceId$J,
|
|
3207
3238
|
});
|
|
3208
3239
|
|
|
3209
|
-
const sourceId$
|
|
3240
|
+
const sourceId$I = 11_155_111; // sepolia
|
|
3210
3241
|
const baseSepolia = /*#__PURE__*/ defineChain({
|
|
3211
3242
|
...chainConfig$1,
|
|
3212
3243
|
id: 84532,
|
|
@@ -3228,23 +3259,23 @@ const baseSepolia = /*#__PURE__*/ defineChain({
|
|
|
3228
3259
|
contracts: {
|
|
3229
3260
|
...chainConfig$1.contracts,
|
|
3230
3261
|
disputeGameFactory: {
|
|
3231
|
-
[sourceId$
|
|
3262
|
+
[sourceId$I]: {
|
|
3232
3263
|
address: '0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1',
|
|
3233
3264
|
},
|
|
3234
3265
|
},
|
|
3235
3266
|
l2OutputOracle: {
|
|
3236
|
-
[sourceId$
|
|
3267
|
+
[sourceId$I]: {
|
|
3237
3268
|
address: '0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254',
|
|
3238
3269
|
},
|
|
3239
3270
|
},
|
|
3240
3271
|
portal: {
|
|
3241
|
-
[sourceId$
|
|
3272
|
+
[sourceId$I]: {
|
|
3242
3273
|
address: '0x49f53e41452c74589e85ca1677426ba426459e85',
|
|
3243
3274
|
blockCreated: 4446677,
|
|
3244
3275
|
},
|
|
3245
3276
|
},
|
|
3246
3277
|
l1StandardBridge: {
|
|
3247
|
-
[sourceId$
|
|
3278
|
+
[sourceId$I]: {
|
|
3248
3279
|
address: '0xfd0Bf71F60660E2f608ed56e1659C450eB113120',
|
|
3249
3280
|
blockCreated: 4446677,
|
|
3250
3281
|
},
|
|
@@ -3255,7 +3286,7 @@ const baseSepolia = /*#__PURE__*/ defineChain({
|
|
|
3255
3286
|
},
|
|
3256
3287
|
},
|
|
3257
3288
|
testnet: true,
|
|
3258
|
-
sourceId: sourceId$
|
|
3289
|
+
sourceId: sourceId$I,
|
|
3259
3290
|
});
|
|
3260
3291
|
|
|
3261
3292
|
defineChain({
|
|
@@ -3276,7 +3307,7 @@ defineChain({
|
|
|
3276
3307
|
},
|
|
3277
3308
|
});
|
|
3278
3309
|
|
|
3279
|
-
const sourceId$
|
|
3310
|
+
const sourceId$H = 1; // mainnet
|
|
3280
3311
|
/*#__PURE__*/ defineChain({
|
|
3281
3312
|
...chainConfig$1,
|
|
3282
3313
|
id: 81457,
|
|
@@ -3302,11 +3333,29 @@ const sourceId$F = 1; // mainnet
|
|
|
3302
3333
|
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
3303
3334
|
blockCreated: 212929,
|
|
3304
3335
|
},
|
|
3336
|
+
l2OutputOracle: {
|
|
3337
|
+
[sourceId$H]: {
|
|
3338
|
+
address: '0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76',
|
|
3339
|
+
blockCreated: 19300358,
|
|
3340
|
+
},
|
|
3341
|
+
},
|
|
3342
|
+
portal: {
|
|
3343
|
+
[sourceId$H]: {
|
|
3344
|
+
address: '0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb',
|
|
3345
|
+
blockCreated: 19300357,
|
|
3346
|
+
},
|
|
3347
|
+
},
|
|
3348
|
+
l1StandardBridge: {
|
|
3349
|
+
[sourceId$H]: {
|
|
3350
|
+
address: '0x697402166Fbf2F22E970df8a6486Ef171dbfc524',
|
|
3351
|
+
blockCreated: 19300360,
|
|
3352
|
+
},
|
|
3353
|
+
},
|
|
3305
3354
|
},
|
|
3306
|
-
sourceId: sourceId$
|
|
3355
|
+
sourceId: sourceId$H,
|
|
3307
3356
|
});
|
|
3308
3357
|
|
|
3309
|
-
const sourceId$
|
|
3358
|
+
const sourceId$G = 1; // mainnet
|
|
3310
3359
|
defineChain({
|
|
3311
3360
|
...chainConfig$1,
|
|
3312
3361
|
id: 60808,
|
|
@@ -3335,22 +3384,22 @@ defineChain({
|
|
|
3335
3384
|
blockCreated: 23131,
|
|
3336
3385
|
},
|
|
3337
3386
|
l2OutputOracle: {
|
|
3338
|
-
[sourceId$
|
|
3387
|
+
[sourceId$G]: {
|
|
3339
3388
|
address: '0xdDa53E23f8a32640b04D7256e651C1db98dB11C1',
|
|
3340
3389
|
blockCreated: 4462615,
|
|
3341
3390
|
},
|
|
3342
3391
|
},
|
|
3343
3392
|
portal: {
|
|
3344
|
-
[sourceId$
|
|
3393
|
+
[sourceId$G]: {
|
|
3345
3394
|
address: '0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E',
|
|
3346
3395
|
blockCreated: 4462615,
|
|
3347
3396
|
},
|
|
3348
3397
|
},
|
|
3349
3398
|
},
|
|
3350
|
-
sourceId: sourceId$
|
|
3399
|
+
sourceId: sourceId$G,
|
|
3351
3400
|
});
|
|
3352
3401
|
|
|
3353
|
-
const sourceId$
|
|
3402
|
+
const sourceId$F = 11_155_111; // sepolia
|
|
3354
3403
|
defineChain({
|
|
3355
3404
|
...chainConfig$1,
|
|
3356
3405
|
id: 808813,
|
|
@@ -3379,20 +3428,20 @@ defineChain({
|
|
|
3379
3428
|
blockCreated: 35677,
|
|
3380
3429
|
},
|
|
3381
3430
|
l2OutputOracle: {
|
|
3382
|
-
[sourceId$
|
|
3431
|
+
[sourceId$F]: {
|
|
3383
3432
|
address: '0x14D0069452b4AE2b250B395b8adAb771E4267d2f',
|
|
3384
3433
|
blockCreated: 4462615,
|
|
3385
3434
|
},
|
|
3386
3435
|
},
|
|
3387
3436
|
portal: {
|
|
3388
|
-
[sourceId$
|
|
3437
|
+
[sourceId$F]: {
|
|
3389
3438
|
address: '0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4',
|
|
3390
3439
|
blockCreated: 4462615,
|
|
3391
3440
|
},
|
|
3392
3441
|
},
|
|
3393
3442
|
},
|
|
3394
3443
|
testnet: true,
|
|
3395
|
-
sourceId: sourceId$
|
|
3444
|
+
sourceId: sourceId$F,
|
|
3396
3445
|
});
|
|
3397
3446
|
|
|
3398
3447
|
const fees = {
|
|
@@ -3601,13 +3650,14 @@ function assertTransactionCIP64(transaction) {
|
|
|
3601
3650
|
}
|
|
3602
3651
|
|
|
3603
3652
|
const chainConfig = {
|
|
3653
|
+
blockTime: 1_000,
|
|
3604
3654
|
contracts,
|
|
3605
3655
|
formatters,
|
|
3606
3656
|
serializers,
|
|
3607
3657
|
fees,
|
|
3608
3658
|
};
|
|
3609
3659
|
|
|
3610
|
-
const sourceId$
|
|
3660
|
+
const sourceId$E = 17000; // holsky
|
|
3611
3661
|
// source https://storage.googleapis.com/cel2-rollup-files/alfajores/deployment-l1.json
|
|
3612
3662
|
/*#__PURE__*/ defineChain({
|
|
3613
3663
|
...chainConfig,
|
|
@@ -3637,25 +3687,25 @@ const sourceId$C = 17000; // holsky
|
|
|
3637
3687
|
blockCreated: 14569001,
|
|
3638
3688
|
},
|
|
3639
3689
|
portal: {
|
|
3640
|
-
[sourceId$
|
|
3690
|
+
[sourceId$E]: {
|
|
3641
3691
|
address: '0x82527353927d8D069b3B452904c942dA149BA381',
|
|
3642
3692
|
blockCreated: 2411324,
|
|
3643
3693
|
},
|
|
3644
3694
|
},
|
|
3645
3695
|
disputeGameFactory: {
|
|
3646
|
-
[sourceId$
|
|
3696
|
+
[sourceId$E]: {
|
|
3647
3697
|
address: '0xE28AAdcd9883746c0e5068F58f9ea06027b214cb',
|
|
3648
3698
|
blockCreated: 2411324,
|
|
3649
3699
|
},
|
|
3650
3700
|
},
|
|
3651
3701
|
l2OutputOracle: {
|
|
3652
|
-
[sourceId$
|
|
3702
|
+
[sourceId$E]: {
|
|
3653
3703
|
address: '0x4a2635e9e4f6e45817b1D402ac4904c1d1752438',
|
|
3654
3704
|
blockCreated: 2411324,
|
|
3655
3705
|
},
|
|
3656
3706
|
},
|
|
3657
3707
|
l1StandardBridge: {
|
|
3658
|
-
[sourceId$
|
|
3708
|
+
[sourceId$E]: {
|
|
3659
3709
|
address: '0xD1B0E0581973c9eB7f886967A606b9441A897037',
|
|
3660
3710
|
blockCreated: 2411324,
|
|
3661
3711
|
},
|
|
@@ -3664,6 +3714,57 @@ const sourceId$C = 17000; // holsky
|
|
|
3664
3714
|
testnet: true,
|
|
3665
3715
|
});
|
|
3666
3716
|
|
|
3717
|
+
const sourceId$D = 11_155_111; // sepolia
|
|
3718
|
+
// source https://storage.googleapis.com/cel2-rollup-files/celo-sepolia/deployment-l1.json
|
|
3719
|
+
/*#__PURE__*/ defineChain({
|
|
3720
|
+
...chainConfig,
|
|
3721
|
+
id: 11_142_220,
|
|
3722
|
+
name: 'Celo Sepolia Testnet',
|
|
3723
|
+
nativeCurrency: {
|
|
3724
|
+
decimals: 18,
|
|
3725
|
+
name: 'CELO',
|
|
3726
|
+
symbol: 'S-CELO',
|
|
3727
|
+
},
|
|
3728
|
+
rpcUrls: {
|
|
3729
|
+
default: {
|
|
3730
|
+
http: ['https://forno.celo-sepolia.celo-testnet.org'],
|
|
3731
|
+
},
|
|
3732
|
+
},
|
|
3733
|
+
blockExplorers: {
|
|
3734
|
+
default: {
|
|
3735
|
+
name: 'Celo Sepolia Explorer',
|
|
3736
|
+
url: 'https://celo-sepolia.blockscout.com/',
|
|
3737
|
+
apiUrl: 'https://celo-sepolia.blockscout.com/api',
|
|
3738
|
+
},
|
|
3739
|
+
},
|
|
3740
|
+
contracts: {
|
|
3741
|
+
...chainConfig.contracts,
|
|
3742
|
+
multicall3: {
|
|
3743
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
3744
|
+
blockCreated: 1,
|
|
3745
|
+
},
|
|
3746
|
+
portal: {
|
|
3747
|
+
[sourceId$D]: {
|
|
3748
|
+
address: '0x44ae3d41a335a7d05eb533029917aad35662dcc2',
|
|
3749
|
+
blockCreated: 8825790,
|
|
3750
|
+
},
|
|
3751
|
+
},
|
|
3752
|
+
disputeGameFactory: {
|
|
3753
|
+
[sourceId$D]: {
|
|
3754
|
+
address: '0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa',
|
|
3755
|
+
blockCreated: 8825790,
|
|
3756
|
+
},
|
|
3757
|
+
},
|
|
3758
|
+
l1StandardBridge: {
|
|
3759
|
+
[sourceId$D]: {
|
|
3760
|
+
address: '0xec18a3c30131a0db4246e785355fbc16e2eaf408',
|
|
3761
|
+
blockCreated: 8825790,
|
|
3762
|
+
},
|
|
3763
|
+
},
|
|
3764
|
+
},
|
|
3765
|
+
testnet: true,
|
|
3766
|
+
});
|
|
3767
|
+
|
|
3667
3768
|
defineChain({
|
|
3668
3769
|
id: 44,
|
|
3669
3770
|
name: 'Crab Network',
|
|
@@ -3778,7 +3879,7 @@ defineChain({
|
|
|
3778
3879
|
testnet: true,
|
|
3779
3880
|
});
|
|
3780
3881
|
|
|
3781
|
-
const sourceId$
|
|
3882
|
+
const sourceId$C = 1; // mainnet
|
|
3782
3883
|
/*#__PURE__*/ defineChain({
|
|
3783
3884
|
id: 478,
|
|
3784
3885
|
name: 'Form Network',
|
|
@@ -3802,27 +3903,27 @@ const sourceId$B = 1; // mainnet
|
|
|
3802
3903
|
contracts: {
|
|
3803
3904
|
...chainConfig$1.contracts,
|
|
3804
3905
|
addressManager: {
|
|
3805
|
-
[sourceId$
|
|
3906
|
+
[sourceId$C]: {
|
|
3806
3907
|
address: '0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B',
|
|
3807
3908
|
},
|
|
3808
3909
|
},
|
|
3809
3910
|
l1CrossDomainMessenger: {
|
|
3810
|
-
[sourceId$
|
|
3911
|
+
[sourceId$C]: {
|
|
3811
3912
|
address: '0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c',
|
|
3812
3913
|
},
|
|
3813
3914
|
},
|
|
3814
3915
|
l2OutputOracle: {
|
|
3815
|
-
[sourceId$
|
|
3916
|
+
[sourceId$C]: {
|
|
3816
3917
|
address: '0x4ccAAF69F41c5810cA875183648B577CaCf1F67E',
|
|
3817
3918
|
},
|
|
3818
3919
|
},
|
|
3819
3920
|
portal: {
|
|
3820
|
-
[sourceId$
|
|
3921
|
+
[sourceId$C]: {
|
|
3821
3922
|
address: '0x4E259Ee5F4136408908160dD32295A5031Fa426F',
|
|
3822
3923
|
},
|
|
3823
3924
|
},
|
|
3824
3925
|
l1StandardBridge: {
|
|
3825
|
-
[sourceId$
|
|
3926
|
+
[sourceId$C]: {
|
|
3826
3927
|
address: '0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba',
|
|
3827
3928
|
},
|
|
3828
3929
|
},
|
|
@@ -3830,10 +3931,10 @@ const sourceId$B = 1; // mainnet
|
|
|
3830
3931
|
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
3831
3932
|
},
|
|
3832
3933
|
},
|
|
3833
|
-
sourceId: sourceId$
|
|
3934
|
+
sourceId: sourceId$C,
|
|
3834
3935
|
});
|
|
3835
3936
|
|
|
3836
|
-
const sourceId$
|
|
3937
|
+
const sourceId$B = 11_155_111; // sepolia
|
|
3837
3938
|
/*#__PURE__*/ defineChain({
|
|
3838
3939
|
id: 132_902,
|
|
3839
3940
|
name: 'Form Testnet',
|
|
@@ -3857,27 +3958,27 @@ const sourceId$A = 11_155_111; // sepolia
|
|
|
3857
3958
|
contracts: {
|
|
3858
3959
|
...chainConfig$1.contracts,
|
|
3859
3960
|
addressManager: {
|
|
3860
|
-
[sourceId$
|
|
3961
|
+
[sourceId$B]: {
|
|
3861
3962
|
address: '0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373',
|
|
3862
3963
|
},
|
|
3863
3964
|
},
|
|
3864
3965
|
l1CrossDomainMessenger: {
|
|
3865
|
-
[sourceId$
|
|
3966
|
+
[sourceId$B]: {
|
|
3866
3967
|
address: '0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa',
|
|
3867
3968
|
},
|
|
3868
3969
|
},
|
|
3869
3970
|
l2OutputOracle: {
|
|
3870
|
-
[sourceId$
|
|
3971
|
+
[sourceId$B]: {
|
|
3871
3972
|
address: '0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2',
|
|
3872
3973
|
},
|
|
3873
3974
|
},
|
|
3874
3975
|
portal: {
|
|
3875
|
-
[sourceId$
|
|
3976
|
+
[sourceId$B]: {
|
|
3876
3977
|
address: '0x60377e3cE15dF4CCA24c4beF076b60314240b032',
|
|
3877
3978
|
},
|
|
3878
3979
|
},
|
|
3879
3980
|
l1StandardBridge: {
|
|
3880
|
-
[sourceId$
|
|
3981
|
+
[sourceId$B]: {
|
|
3881
3982
|
address: '0xD4531f633942b2725896F47cD2aFd260b44Ab1F7',
|
|
3882
3983
|
},
|
|
3883
3984
|
},
|
|
@@ -3886,10 +3987,10 @@ const sourceId$A = 11_155_111; // sepolia
|
|
|
3886
3987
|
},
|
|
3887
3988
|
},
|
|
3888
3989
|
testnet: true,
|
|
3889
|
-
sourceId: sourceId$
|
|
3990
|
+
sourceId: sourceId$B,
|
|
3890
3991
|
});
|
|
3891
3992
|
|
|
3892
|
-
const sourceId$
|
|
3993
|
+
const sourceId$A = 1; // mainnet
|
|
3893
3994
|
/*#__PURE__*/ defineChain({
|
|
3894
3995
|
...chainConfig$1,
|
|
3895
3996
|
id: 252,
|
|
@@ -3910,7 +4011,7 @@ const sourceId$z = 1; // mainnet
|
|
|
3910
4011
|
contracts: {
|
|
3911
4012
|
...chainConfig$1.contracts,
|
|
3912
4013
|
l2OutputOracle: {
|
|
3913
|
-
[sourceId$
|
|
4014
|
+
[sourceId$A]: {
|
|
3914
4015
|
address: '0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4',
|
|
3915
4016
|
},
|
|
3916
4017
|
},
|
|
@@ -3918,22 +4019,22 @@ const sourceId$z = 1; // mainnet
|
|
|
3918
4019
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
3919
4020
|
},
|
|
3920
4021
|
portal: {
|
|
3921
|
-
[sourceId$
|
|
4022
|
+
[sourceId$A]: {
|
|
3922
4023
|
address: '0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D',
|
|
3923
4024
|
blockCreated: 19135323,
|
|
3924
4025
|
},
|
|
3925
4026
|
},
|
|
3926
4027
|
l1StandardBridge: {
|
|
3927
|
-
[sourceId$
|
|
4028
|
+
[sourceId$A]: {
|
|
3928
4029
|
address: '0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2',
|
|
3929
4030
|
blockCreated: 19135323,
|
|
3930
4031
|
},
|
|
3931
4032
|
},
|
|
3932
4033
|
},
|
|
3933
|
-
sourceId: sourceId$
|
|
4034
|
+
sourceId: sourceId$A,
|
|
3934
4035
|
});
|
|
3935
4036
|
|
|
3936
|
-
const sourceId$
|
|
4037
|
+
const sourceId$z = 17000; // holesky
|
|
3937
4038
|
/*#__PURE__*/ defineChain({
|
|
3938
4039
|
...chainConfig$1,
|
|
3939
4040
|
id: 2522,
|
|
@@ -3954,7 +4055,7 @@ const sourceId$y = 17000; // holesky
|
|
|
3954
4055
|
contracts: {
|
|
3955
4056
|
...chainConfig$1.contracts,
|
|
3956
4057
|
l2OutputOracle: {
|
|
3957
|
-
[sourceId$
|
|
4058
|
+
[sourceId$z]: {
|
|
3958
4059
|
address: '0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32',
|
|
3959
4060
|
},
|
|
3960
4061
|
},
|
|
@@ -3962,22 +4063,22 @@ const sourceId$y = 17000; // holesky
|
|
|
3962
4063
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
3963
4064
|
},
|
|
3964
4065
|
portal: {
|
|
3965
|
-
[sourceId$
|
|
4066
|
+
[sourceId$z]: {
|
|
3966
4067
|
address: '0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d',
|
|
3967
4068
|
blockCreated: 318416,
|
|
3968
4069
|
},
|
|
3969
4070
|
},
|
|
3970
4071
|
l1StandardBridge: {
|
|
3971
|
-
[sourceId$
|
|
4072
|
+
[sourceId$z]: {
|
|
3972
4073
|
address: '0x0BaafC217162f64930909aD9f2B27125121d6332',
|
|
3973
4074
|
blockCreated: 318416,
|
|
3974
4075
|
},
|
|
3975
4076
|
},
|
|
3976
4077
|
},
|
|
3977
|
-
sourceId: sourceId$
|
|
4078
|
+
sourceId: sourceId$z,
|
|
3978
4079
|
});
|
|
3979
4080
|
|
|
3980
|
-
const sourceId$
|
|
4081
|
+
const sourceId$y = 1; // mainnet
|
|
3981
4082
|
/*#__PURE__*/ defineChain({
|
|
3982
4083
|
...chainConfig$1,
|
|
3983
4084
|
id: 33979,
|
|
@@ -3997,10 +4098,10 @@ const sourceId$x = 1; // mainnet
|
|
|
3997
4098
|
contracts: {
|
|
3998
4099
|
...chainConfig$1.contracts,
|
|
3999
4100
|
},
|
|
4000
|
-
sourceId: sourceId$
|
|
4101
|
+
sourceId: sourceId$y,
|
|
4001
4102
|
});
|
|
4002
4103
|
|
|
4003
|
-
const sourceId$
|
|
4104
|
+
const sourceId$x = 11_155_111; // sepolia
|
|
4004
4105
|
defineChain({
|
|
4005
4106
|
...chainConfig$1,
|
|
4006
4107
|
id: 3397901,
|
|
@@ -4026,16 +4127,16 @@ defineChain({
|
|
|
4026
4127
|
blockCreated: 1620204,
|
|
4027
4128
|
},
|
|
4028
4129
|
},
|
|
4029
|
-
sourceId: sourceId$
|
|
4130
|
+
sourceId: sourceId$x,
|
|
4030
4131
|
});
|
|
4031
4132
|
|
|
4032
|
-
const sourceId$
|
|
4133
|
+
const sourceId$w = 17000; // Holesky testnet
|
|
4033
4134
|
defineChain({
|
|
4034
4135
|
...chainConfig$1,
|
|
4035
4136
|
name: 'Garnet Testnet',
|
|
4036
4137
|
testnet: true,
|
|
4037
4138
|
id: 17069,
|
|
4038
|
-
sourceId: sourceId$
|
|
4139
|
+
sourceId: sourceId$w,
|
|
4039
4140
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
4040
4141
|
rpcUrls: {
|
|
4041
4142
|
default: {
|
|
@@ -4055,19 +4156,19 @@ defineChain({
|
|
|
4055
4156
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
4056
4157
|
},
|
|
4057
4158
|
portal: {
|
|
4058
|
-
[sourceId$
|
|
4159
|
+
[sourceId$w]: {
|
|
4059
4160
|
address: '0x57ee40586fbE286AfC75E67cb69511A6D9aF5909',
|
|
4060
4161
|
blockCreated: 1274684,
|
|
4061
4162
|
},
|
|
4062
4163
|
},
|
|
4063
4164
|
l2OutputOracle: {
|
|
4064
|
-
[sourceId$
|
|
4165
|
+
[sourceId$w]: {
|
|
4065
4166
|
address: '0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B',
|
|
4066
4167
|
blockCreated: 1274684,
|
|
4067
4168
|
},
|
|
4068
4169
|
},
|
|
4069
4170
|
l1StandardBridge: {
|
|
4070
|
-
[sourceId$
|
|
4171
|
+
[sourceId$w]: {
|
|
4071
4172
|
address: '0x09bcDd311FE398F80a78BE37E489f5D440DB95DE',
|
|
4072
4173
|
blockCreated: 1274684,
|
|
4073
4174
|
},
|
|
@@ -4075,6 +4176,52 @@ defineChain({
|
|
|
4075
4176
|
},
|
|
4076
4177
|
});
|
|
4077
4178
|
|
|
4179
|
+
const sourceId$v = 11_155_111; // sepolia
|
|
4180
|
+
/*#__PURE__*/ defineChain({
|
|
4181
|
+
...chainConfig$1,
|
|
4182
|
+
id: 91342,
|
|
4183
|
+
network: 'giwa-sepolia',
|
|
4184
|
+
name: 'GIWA Sepolia',
|
|
4185
|
+
nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
|
|
4186
|
+
blockTime: 1_000,
|
|
4187
|
+
rpcUrls: {
|
|
4188
|
+
default: {
|
|
4189
|
+
http: ['https://sepolia-rpc.giwa.io'],
|
|
4190
|
+
},
|
|
4191
|
+
},
|
|
4192
|
+
blockExplorers: {
|
|
4193
|
+
default: {
|
|
4194
|
+
name: 'Blockscout',
|
|
4195
|
+
url: 'https://sepolia-explorer.giwa.io',
|
|
4196
|
+
apiUrl: 'https://sepolia-explorer.giwa.io/api',
|
|
4197
|
+
},
|
|
4198
|
+
},
|
|
4199
|
+
contracts: {
|
|
4200
|
+
...chainConfig$1.contracts,
|
|
4201
|
+
multicall3: {
|
|
4202
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
4203
|
+
blockCreated: 0,
|
|
4204
|
+
},
|
|
4205
|
+
disputeGameFactory: {
|
|
4206
|
+
[sourceId$v]: {
|
|
4207
|
+
address: '0x37347caB2afaa49B776372279143D71ad1f354F6',
|
|
4208
|
+
},
|
|
4209
|
+
},
|
|
4210
|
+
portal: {
|
|
4211
|
+
[sourceId$v]: {
|
|
4212
|
+
address: '0x956962C34687A954e611A83619ABaA37Ce6bC78A',
|
|
4213
|
+
},
|
|
4214
|
+
},
|
|
4215
|
+
l1StandardBridge: {
|
|
4216
|
+
[sourceId$v]: {
|
|
4217
|
+
address: '0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7',
|
|
4218
|
+
},
|
|
4219
|
+
},
|
|
4220
|
+
},
|
|
4221
|
+
testnet: true,
|
|
4222
|
+
sourceId: sourceId$v,
|
|
4223
|
+
});
|
|
4224
|
+
|
|
4078
4225
|
const sourceId$u = 1; // mainnet
|
|
4079
4226
|
/*#__PURE__*/ defineChain({
|
|
4080
4227
|
...chainConfig$1,
|
|
@@ -4424,6 +4571,25 @@ const sourceId$o = 11_155_111; // sepolia
|
|
|
4424
4571
|
sourceId: sourceId$o,
|
|
4425
4572
|
});
|
|
4426
4573
|
|
|
4574
|
+
defineChain({
|
|
4575
|
+
id: 166,
|
|
4576
|
+
name: 'Omni',
|
|
4577
|
+
nativeCurrency: { name: 'Omni', symbol: 'OMNI', decimals: 18 },
|
|
4578
|
+
rpcUrls: {
|
|
4579
|
+
default: {
|
|
4580
|
+
http: ['https://mainnet.omni.network'],
|
|
4581
|
+
webSocket: ['wss://mainnet.omni.network'],
|
|
4582
|
+
},
|
|
4583
|
+
},
|
|
4584
|
+
blockExplorers: {
|
|
4585
|
+
default: {
|
|
4586
|
+
name: 'OmniScan',
|
|
4587
|
+
url: 'https://omniscan.network',
|
|
4588
|
+
},
|
|
4589
|
+
},
|
|
4590
|
+
testnet: false,
|
|
4591
|
+
});
|
|
4592
|
+
|
|
4427
4593
|
const sourceId$n = 56; // bsc mainnet
|
|
4428
4594
|
/*#__PURE__*/ defineChain({
|
|
4429
4595
|
id: 204,
|
|
@@ -5243,6 +5409,7 @@ const sourceId$6 = 1; // mainnet
|
|
|
5243
5409
|
id: 130,
|
|
5244
5410
|
name: 'Unichain',
|
|
5245
5411
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
5412
|
+
blockTime: 1_000,
|
|
5246
5413
|
rpcUrls: {
|
|
5247
5414
|
default: {
|
|
5248
5415
|
http: ['https://mainnet.unichain.org/'],
|
|
@@ -5290,6 +5457,7 @@ const sourceId$5 = 11_155_111; // sepolia
|
|
|
5290
5457
|
symbol: 'ETH',
|
|
5291
5458
|
decimals: 18,
|
|
5292
5459
|
},
|
|
5460
|
+
blockTime: 1_000,
|
|
5293
5461
|
rpcUrls: {
|
|
5294
5462
|
default: {
|
|
5295
5463
|
http: ['https://sepolia.unichain.org'],
|