@lagoon-protocol/v0-core 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +57 -41
- package/dist/esm/index.js +17 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/addresses.d.ts +8 -0
- package/dist/types/addresses.d.ts.map +1 -1
- package/dist/types/chain.d.ts +13 -1
- package/dist/types/chain.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -105,7 +105,7 @@ function formatAbiParameter(abiParameter) {
|
|
|
105
105
|
if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
|
|
106
106
|
type = "(";
|
|
107
107
|
const length = abiParameter.components.length;
|
|
108
|
-
for (let i = 0;
|
|
108
|
+
for (let i = 0;i < length; i++) {
|
|
109
109
|
const component = abiParameter.components[i];
|
|
110
110
|
type += formatAbiParameter(component);
|
|
111
111
|
if (i < length - 1)
|
|
@@ -134,7 +134,7 @@ var init_formatAbiParameter = __esm(() => {
|
|
|
134
134
|
function formatAbiParameters(abiParameters) {
|
|
135
135
|
let params = "";
|
|
136
136
|
const length = abiParameters.length;
|
|
137
|
-
for (let i = 0;
|
|
137
|
+
for (let i = 0;i < length; i++) {
|
|
138
138
|
const abiParameter = abiParameters[i];
|
|
139
139
|
params += formatAbiParameter(abiParameter);
|
|
140
140
|
if (i !== length - 1)
|
|
@@ -500,7 +500,7 @@ function parseAbiParameter(param, options) {
|
|
|
500
500
|
const params = splitParameters(match.type);
|
|
501
501
|
const components_ = [];
|
|
502
502
|
const length = params.length;
|
|
503
|
-
for (let i = 0;
|
|
503
|
+
for (let i = 0;i < length; i++) {
|
|
504
504
|
components_.push(parseAbiParameter(params[i], { structs }));
|
|
505
505
|
}
|
|
506
506
|
components = { components: components_ };
|
|
@@ -541,7 +541,7 @@ function parseAbiParameter(param, options) {
|
|
|
541
541
|
}
|
|
542
542
|
function splitParameters(params, result = [], current = "", depth = 0) {
|
|
543
543
|
const length = params.trim().length;
|
|
544
|
-
for (let i = 0;
|
|
544
|
+
for (let i = 0;i < length; i++) {
|
|
545
545
|
const char = params[i];
|
|
546
546
|
const tail = params.slice(i + 1);
|
|
547
547
|
switch (char) {
|
|
@@ -589,7 +589,7 @@ var init_utils = __esm(() => {
|
|
|
589
589
|
function parseStructs(signatures) {
|
|
590
590
|
const shallowStructs = {};
|
|
591
591
|
const signaturesLength = signatures.length;
|
|
592
|
-
for (let i = 0;
|
|
592
|
+
for (let i = 0;i < signaturesLength; i++) {
|
|
593
593
|
const signature = signatures[i];
|
|
594
594
|
if (!isStructSignature(signature))
|
|
595
595
|
continue;
|
|
@@ -599,7 +599,7 @@ function parseStructs(signatures) {
|
|
|
599
599
|
const properties = match.properties.split(";");
|
|
600
600
|
const components = [];
|
|
601
601
|
const propertiesLength = properties.length;
|
|
602
|
-
for (let k = 0;
|
|
602
|
+
for (let k = 0;k < propertiesLength; k++) {
|
|
603
603
|
const property = properties[k];
|
|
604
604
|
const trimmed = property.trim();
|
|
605
605
|
if (!trimmed)
|
|
@@ -616,7 +616,7 @@ function parseStructs(signatures) {
|
|
|
616
616
|
const resolvedStructs = {};
|
|
617
617
|
const entries = Object.entries(shallowStructs);
|
|
618
618
|
const entriesLength = entries.length;
|
|
619
|
-
for (let i = 0;
|
|
619
|
+
for (let i = 0;i < entriesLength; i++) {
|
|
620
620
|
const [name, parameters] = entries[i];
|
|
621
621
|
resolvedStructs[name] = resolveStructs(parameters, shallowStructs);
|
|
622
622
|
}
|
|
@@ -625,7 +625,7 @@ function parseStructs(signatures) {
|
|
|
625
625
|
function resolveStructs(abiParameters, structs, ancestors = new Set) {
|
|
626
626
|
const components = [];
|
|
627
627
|
const length = abiParameters.length;
|
|
628
|
-
for (let i = 0;
|
|
628
|
+
for (let i = 0;i < length; i++) {
|
|
629
629
|
const abiParameter = abiParameters[i];
|
|
630
630
|
const isTuple = isTupleRegex.test(abiParameter.type);
|
|
631
631
|
if (isTuple)
|
|
@@ -675,7 +675,7 @@ function parseAbiParameter2(param) {
|
|
|
675
675
|
else {
|
|
676
676
|
const structs = parseStructs(param);
|
|
677
677
|
const length = param.length;
|
|
678
|
-
for (let i = 0;
|
|
678
|
+
for (let i = 0;i < length; i++) {
|
|
679
679
|
const signature = param[i];
|
|
680
680
|
if (isStructSignature(signature))
|
|
681
681
|
continue;
|
|
@@ -700,19 +700,19 @@ function parseAbiParameters(params) {
|
|
|
700
700
|
if (typeof params === "string") {
|
|
701
701
|
const parameters = splitParameters(params);
|
|
702
702
|
const length = parameters.length;
|
|
703
|
-
for (let i = 0;
|
|
703
|
+
for (let i = 0;i < length; i++) {
|
|
704
704
|
abiParameters.push(parseAbiParameter(parameters[i], { modifiers }));
|
|
705
705
|
}
|
|
706
706
|
} else {
|
|
707
707
|
const structs = parseStructs(params);
|
|
708
708
|
const length = params.length;
|
|
709
|
-
for (let i = 0;
|
|
709
|
+
for (let i = 0;i < length; i++) {
|
|
710
710
|
const signature = params[i];
|
|
711
711
|
if (isStructSignature(signature))
|
|
712
712
|
continue;
|
|
713
713
|
const parameters = splitParameters(signature);
|
|
714
714
|
const length2 = parameters.length;
|
|
715
|
-
for (let k = 0;
|
|
715
|
+
for (let k = 0;k < length2; k++) {
|
|
716
716
|
abiParameters.push(parseAbiParameter(parameters[k], { modifiers, structs }));
|
|
717
717
|
}
|
|
718
718
|
}
|
|
@@ -772,10 +772,10 @@ function size(value) {
|
|
|
772
772
|
return Math.ceil((value.length - 2) / 2);
|
|
773
773
|
return value.length;
|
|
774
774
|
}
|
|
775
|
-
var init_size = () => {
|
|
775
|
+
var init_size = () => {};
|
|
776
776
|
|
|
777
777
|
// ../../node_modules/viem/_esm/errors/version.js
|
|
778
|
-
var version2 = "2.
|
|
778
|
+
var version2 = "2.41.2";
|
|
779
779
|
|
|
780
780
|
// ../../node_modules/viem/_esm/errors/base.js
|
|
781
781
|
function walk(err, fn) {
|
|
@@ -994,7 +994,7 @@ function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
|
|
|
994
994
|
type: "bytes"
|
|
995
995
|
});
|
|
996
996
|
const paddedBytes = new Uint8Array(size2);
|
|
997
|
-
for (let i = 0;
|
|
997
|
+
for (let i = 0;i < size2; i++) {
|
|
998
998
|
const padEnd = dir === "right";
|
|
999
999
|
paddedBytes[padEnd ? i : size2 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
|
|
1000
1000
|
}
|
|
@@ -1054,7 +1054,7 @@ function boolToHex(value, opts = {}) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
function bytesToHex(value, opts = {}) {
|
|
1056
1056
|
let string = "";
|
|
1057
|
-
for (let i = 0;
|
|
1057
|
+
for (let i = 0;i < value.length; i++) {
|
|
1058
1058
|
string += hexes[value[i]];
|
|
1059
1059
|
}
|
|
1060
1060
|
const hex = `0x${string}`;
|
|
@@ -1144,7 +1144,7 @@ function hexToBytes(hex_, opts = {}) {
|
|
|
1144
1144
|
hexString = `0${hexString}`;
|
|
1145
1145
|
const length = hexString.length / 2;
|
|
1146
1146
|
const bytes = new Uint8Array(length);
|
|
1147
|
-
for (let index = 0, j = 0;
|
|
1147
|
+
for (let index = 0, j = 0;index < length; index++) {
|
|
1148
1148
|
const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
|
|
1149
1149
|
const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
|
|
1150
1150
|
if (nibbleLeft === undefined || nibbleRight === undefined) {
|
|
@@ -1193,7 +1193,7 @@ function split(lst, le = false) {
|
|
|
1193
1193
|
const len = lst.length;
|
|
1194
1194
|
let Ah = new Uint32Array(len);
|
|
1195
1195
|
let Al = new Uint32Array(len);
|
|
1196
|
-
for (let i = 0;
|
|
1196
|
+
for (let i = 0;i < len; i++) {
|
|
1197
1197
|
const { h, l } = fromBig(lst[i], le);
|
|
1198
1198
|
[Ah[i], Al[i]] = [h, l];
|
|
1199
1199
|
}
|
|
@@ -1236,7 +1236,7 @@ function u32(arr) {
|
|
|
1236
1236
|
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
1237
1237
|
}
|
|
1238
1238
|
function clean(...arrays) {
|
|
1239
|
-
for (let i = 0;
|
|
1239
|
+
for (let i = 0;i < arrays.length; i++) {
|
|
1240
1240
|
arrays[i].fill(0);
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
@@ -1244,7 +1244,7 @@ function byteSwap(word) {
|
|
|
1244
1244
|
return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
|
|
1245
1245
|
}
|
|
1246
1246
|
function byteSwap32(arr) {
|
|
1247
|
-
for (let i = 0;
|
|
1247
|
+
for (let i = 0;i < arr.length; i++) {
|
|
1248
1248
|
arr[i] = byteSwap(arr[i]);
|
|
1249
1249
|
}
|
|
1250
1250
|
return arr;
|
|
@@ -1281,24 +1281,24 @@ var init_utils2 = __esm(() => {
|
|
|
1281
1281
|
// ../../node_modules/@noble/hashes/esm/sha3.js
|
|
1282
1282
|
function keccakP(s, rounds = 24) {
|
|
1283
1283
|
const B = new Uint32Array(5 * 2);
|
|
1284
|
-
for (let round = 24 - rounds;
|
|
1285
|
-
for (let x = 0;
|
|
1284
|
+
for (let round = 24 - rounds;round < 24; round++) {
|
|
1285
|
+
for (let x = 0;x < 10; x++)
|
|
1286
1286
|
B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];
|
|
1287
|
-
for (let x = 0;
|
|
1287
|
+
for (let x = 0;x < 10; x += 2) {
|
|
1288
1288
|
const idx1 = (x + 8) % 10;
|
|
1289
1289
|
const idx0 = (x + 2) % 10;
|
|
1290
1290
|
const B0 = B[idx0];
|
|
1291
1291
|
const B1 = B[idx0 + 1];
|
|
1292
1292
|
const Th = rotlH(B0, B1, 1) ^ B[idx1];
|
|
1293
1293
|
const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];
|
|
1294
|
-
for (let y = 0;
|
|
1294
|
+
for (let y = 0;y < 50; y += 10) {
|
|
1295
1295
|
s[x + y] ^= Th;
|
|
1296
1296
|
s[x + y + 1] ^= Tl;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
let curH = s[2];
|
|
1300
1300
|
let curL = s[3];
|
|
1301
|
-
for (let t = 0;
|
|
1301
|
+
for (let t = 0;t < 24; t++) {
|
|
1302
1302
|
const shift = SHA3_ROTL[t];
|
|
1303
1303
|
const Th = rotlH(curH, curL, shift);
|
|
1304
1304
|
const Tl = rotlL(curH, curL, shift);
|
|
@@ -1308,10 +1308,10 @@ function keccakP(s, rounds = 24) {
|
|
|
1308
1308
|
s[PI] = Th;
|
|
1309
1309
|
s[PI + 1] = Tl;
|
|
1310
1310
|
}
|
|
1311
|
-
for (let y = 0;
|
|
1312
|
-
for (let x = 0;
|
|
1311
|
+
for (let y = 0;y < 50; y += 10) {
|
|
1312
|
+
for (let x = 0;x < 10; x++)
|
|
1313
1313
|
B[x] = s[y + x];
|
|
1314
|
-
for (let x = 0;
|
|
1314
|
+
for (let x = 0;x < 10; x++)
|
|
1315
1315
|
s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];
|
|
1316
1316
|
}
|
|
1317
1317
|
s[0] ^= SHA3_IOTA_H[round];
|
|
@@ -1332,12 +1332,12 @@ var init_sha3 = __esm(() => {
|
|
|
1332
1332
|
SHA3_PI = [];
|
|
1333
1333
|
SHA3_ROTL = [];
|
|
1334
1334
|
_SHA3_IOTA = [];
|
|
1335
|
-
for (let round = 0, R = _1n, x = 1, y = 0;
|
|
1335
|
+
for (let round = 0, R = _1n, x = 1, y = 0;round < 24; round++) {
|
|
1336
1336
|
[x, y] = [y, (2 * x + 3 * y) % 5];
|
|
1337
1337
|
SHA3_PI.push(2 * (5 * y + x));
|
|
1338
1338
|
SHA3_ROTL.push((round + 1) * (round + 2) / 2 % 64);
|
|
1339
1339
|
let t = _0n;
|
|
1340
|
-
for (let j = 0;
|
|
1340
|
+
for (let j = 0;j < 7; j++) {
|
|
1341
1341
|
R = (R << _1n ^ (R >> _7n) * _0x71n) % _256n;
|
|
1342
1342
|
if (R & _2n)
|
|
1343
1343
|
t ^= _1n << (_1n << /* @__PURE__ */ BigInt(j)) - _1n;
|
|
@@ -1382,9 +1382,9 @@ var init_sha3 = __esm(() => {
|
|
|
1382
1382
|
abytes(data);
|
|
1383
1383
|
const { blockLen, state } = this;
|
|
1384
1384
|
const len = data.length;
|
|
1385
|
-
for (let pos = 0;
|
|
1385
|
+
for (let pos = 0;pos < len; ) {
|
|
1386
1386
|
const take = Math.min(blockLen - this.pos, len - pos);
|
|
1387
|
-
for (let i = 0;
|
|
1387
|
+
for (let i = 0;i < take; i++)
|
|
1388
1388
|
state[this.pos++] ^= data[pos++];
|
|
1389
1389
|
if (this.pos === blockLen)
|
|
1390
1390
|
this.keccak();
|
|
@@ -1408,7 +1408,7 @@ var init_sha3 = __esm(() => {
|
|
|
1408
1408
|
this.finish();
|
|
1409
1409
|
const bufferOut = this.state;
|
|
1410
1410
|
const { blockLen } = this;
|
|
1411
|
-
for (let pos = 0, len = out.length;
|
|
1411
|
+
for (let pos = 0, len = out.length;pos < len; ) {
|
|
1412
1412
|
if (this.posOut >= blockLen)
|
|
1413
1413
|
this.keccak();
|
|
1414
1414
|
const take = Math.min(blockLen - this.posOut, len - pos);
|
|
@@ -1491,7 +1491,7 @@ function normalizeSignature(signature) {
|
|
|
1491
1491
|
let level = 0;
|
|
1492
1492
|
let result = "";
|
|
1493
1493
|
let valid = false;
|
|
1494
|
-
for (let i = 0;
|
|
1494
|
+
for (let i = 0;i < signature.length; i++) {
|
|
1495
1495
|
const char = signature[i];
|
|
1496
1496
|
if (["(", ")", ","].includes(char))
|
|
1497
1497
|
active = true;
|
|
@@ -1619,7 +1619,7 @@ function checksumAddress(address_, chainId) {
|
|
|
1619
1619
|
const hexAddress = chainId ? `${chainId}${address_.toLowerCase()}` : address_.substring(2).toLowerCase();
|
|
1620
1620
|
const hash2 = keccak256(stringToBytes(hexAddress), "bytes");
|
|
1621
1621
|
const address = (chainId ? hexAddress.substring(`${chainId}0x`.length) : hexAddress).split("");
|
|
1622
|
-
for (let i = 0;
|
|
1622
|
+
for (let i = 0;i < 40; i += 2) {
|
|
1623
1623
|
if (hash2[i >> 1] >> 4 >= 8 && address[i]) {
|
|
1624
1624
|
address[i] = address[i].toUpperCase();
|
|
1625
1625
|
}
|
|
@@ -1758,7 +1758,7 @@ function encodeAbiParameters(params, values) {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
function prepareParams({ params, values }) {
|
|
1760
1760
|
const preparedParams = [];
|
|
1761
|
-
for (let i = 0;
|
|
1761
|
+
for (let i = 0;i < params.length; i++) {
|
|
1762
1762
|
preparedParams.push(prepareParam({ param: params[i], value: values[i] }));
|
|
1763
1763
|
}
|
|
1764
1764
|
return preparedParams;
|
|
@@ -1800,7 +1800,7 @@ function prepareParam({ param, value }) {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
function encodeParams(preparedParams) {
|
|
1802
1802
|
let staticSize = 0;
|
|
1803
|
-
for (let i = 0;
|
|
1803
|
+
for (let i = 0;i < preparedParams.length; i++) {
|
|
1804
1804
|
const { dynamic, encoded } = preparedParams[i];
|
|
1805
1805
|
if (dynamic)
|
|
1806
1806
|
staticSize += 32;
|
|
@@ -1810,7 +1810,7 @@ function encodeParams(preparedParams) {
|
|
|
1810
1810
|
const staticParams = [];
|
|
1811
1811
|
const dynamicParams = [];
|
|
1812
1812
|
let dynamicSize = 0;
|
|
1813
|
-
for (let i = 0;
|
|
1813
|
+
for (let i = 0;i < preparedParams.length; i++) {
|
|
1814
1814
|
const { dynamic, encoded } = preparedParams[i];
|
|
1815
1815
|
if (dynamic) {
|
|
1816
1816
|
staticParams.push(numberToHex(staticSize + dynamicSize, { size: 32 }));
|
|
@@ -1839,7 +1839,7 @@ function encodeArray(value, { length, param }) {
|
|
|
1839
1839
|
});
|
|
1840
1840
|
let dynamicChild = false;
|
|
1841
1841
|
const preparedParams = [];
|
|
1842
|
-
for (let i = 0;
|
|
1842
|
+
for (let i = 0;i < value.length; i++) {
|
|
1843
1843
|
const preparedParam = prepareParam({ param, value: value[i] });
|
|
1844
1844
|
if (preparedParam.dynamic)
|
|
1845
1845
|
dynamicChild = true;
|
|
@@ -1914,7 +1914,7 @@ function encodeString(value) {
|
|
|
1914
1914
|
const hexValue = stringToHex(value);
|
|
1915
1915
|
const partsLength = Math.ceil(size(hexValue) / 32);
|
|
1916
1916
|
const parts = [];
|
|
1917
|
-
for (let i = 0;
|
|
1917
|
+
for (let i = 0;i < partsLength; i++) {
|
|
1918
1918
|
parts.push(padHex(slice(hexValue, i * 32, (i + 1) * 32), {
|
|
1919
1919
|
dir: "right"
|
|
1920
1920
|
}));
|
|
@@ -1930,7 +1930,7 @@ function encodeString(value) {
|
|
|
1930
1930
|
function encodeTuple(value, { param }) {
|
|
1931
1931
|
let dynamic = false;
|
|
1932
1932
|
const preparedParams = [];
|
|
1933
|
-
for (let i = 0;
|
|
1933
|
+
for (let i = 0;i < param.components.length; i++) {
|
|
1934
1934
|
const param_ = param.components[i];
|
|
1935
1935
|
const index = Array.isArray(value) ? i : param_.name;
|
|
1936
1936
|
const preparedParam = prepareParam({
|
|
@@ -2753,6 +2753,7 @@ var ChainId;
|
|
|
2753
2753
|
ChainId2[ChainId2["LineaMainnet"] = 59144] = "LineaMainnet";
|
|
2754
2754
|
ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
|
|
2755
2755
|
ChainId2[ChainId2["MonadMainnet"] = 143] = "MonadMainnet";
|
|
2756
|
+
ChainId2[ChainId2["Sei"] = 1329] = "Sei";
|
|
2756
2757
|
})(ChainId ||= {});
|
|
2757
2758
|
var ChainUtils;
|
|
2758
2759
|
((ChainUtils) => {
|
|
@@ -2888,6 +2889,13 @@ var ChainUtils;
|
|
|
2888
2889
|
explorerUrl: "https://plasmascan.to/",
|
|
2889
2890
|
identifier: "plasma"
|
|
2890
2891
|
},
|
|
2892
|
+
[1329 /* Sei */]: {
|
|
2893
|
+
name: "Sei",
|
|
2894
|
+
id: 1329 /* Sei */,
|
|
2895
|
+
nativeCurrency: { name: "Sei", symbol: "SEI", decimals: 18 },
|
|
2896
|
+
explorerUrl: "https://seiscan.io/",
|
|
2897
|
+
identifier: "sei"
|
|
2898
|
+
},
|
|
2891
2899
|
[143 /* MonadMainnet */]: {
|
|
2892
2900
|
name: "Monad Mainnet",
|
|
2893
2901
|
id: 143 /* MonadMainnet */,
|
|
@@ -2951,6 +2959,7 @@ var addresses = {
|
|
|
2951
2959
|
beaconProxyFactory: "0x57D969B556C6AebB3Ac8f54c98CF3a3f921d5659",
|
|
2952
2960
|
feeRegistry: "0x47A144e67834408716cB40Fa87fc886D63362ddC",
|
|
2953
2961
|
v0_4_0: "0xA7260Cee56B679eC05a736A7b603b8DA8525Dd69",
|
|
2962
|
+
v0_5_0: "0xC81Dd51239119Db80D5a6E1B7347F3C3BC8674d9",
|
|
2954
2963
|
wrappedNative: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
2955
2964
|
optinFactory: "0xc094c224ce0406bc338e00837b96ad2e265f7287"
|
|
2956
2965
|
},
|
|
@@ -2996,6 +3005,7 @@ var addresses = {
|
|
|
2996
3005
|
[59144 /* LineaMainnet */]: {
|
|
2997
3006
|
feeRegistry: "0xC81Dd51239119Db80D5a6E1B7347F3C3BC8674d9",
|
|
2998
3007
|
v0_4_0: "0xC094C224ce0406BC338E00837B96aD2e265F7287",
|
|
3008
|
+
v0_5_0: "0xA3C233C61436008e05EDdE6adb3f81a410fa80C2",
|
|
2999
3009
|
wrappedNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
|
|
3000
3010
|
optinFactory: "0x8D6f5479B14348186faE9BC7E636e947c260f9B1"
|
|
3001
3011
|
},
|
|
@@ -3011,6 +3021,12 @@ var addresses = {
|
|
|
3011
3021
|
wrappedNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
3012
3022
|
optinFactory: "0x0C0E287f6e4de685f4b44A5282A3ad4A29D05a91"
|
|
3013
3023
|
},
|
|
3024
|
+
[1329 /* Sei */]: {
|
|
3025
|
+
feeRegistry: "0xDd954bE514726Ed0C7156fe4aE06C539f7AE6C1c",
|
|
3026
|
+
v0_5_0: "0x357F1C9754dFFceD7c2EFe086d2114909538047D",
|
|
3027
|
+
wrappedNative: "0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7",
|
|
3028
|
+
optinFactory: "0xDa1d1De87C4D90A07a6462cCD9bE651a0d074362"
|
|
3029
|
+
},
|
|
3014
3030
|
[143 /* MonadMainnet */]: {
|
|
3015
3031
|
feeRegistry: "0xBf994c358f939011595AB4216AC005147863f9D6",
|
|
3016
3032
|
v0_5_0: "0x870dd43a868C35b036347c46042D97C7247EEa15",
|
package/dist/esm/index.js
CHANGED
|
@@ -748,7 +748,7 @@ function size(value) {
|
|
|
748
748
|
var init_size = () => {};
|
|
749
749
|
|
|
750
750
|
// ../../node_modules/viem/_esm/errors/version.js
|
|
751
|
-
var version2 = "2.
|
|
751
|
+
var version2 = "2.41.2";
|
|
752
752
|
|
|
753
753
|
// ../../node_modules/viem/_esm/errors/base.js
|
|
754
754
|
function walk(err, fn) {
|
|
@@ -2694,6 +2694,7 @@ var ChainId;
|
|
|
2694
2694
|
ChainId2[ChainId2["LineaMainnet"] = 59144] = "LineaMainnet";
|
|
2695
2695
|
ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
|
|
2696
2696
|
ChainId2[ChainId2["MonadMainnet"] = 143] = "MonadMainnet";
|
|
2697
|
+
ChainId2[ChainId2["Sei"] = 1329] = "Sei";
|
|
2697
2698
|
})(ChainId ||= {});
|
|
2698
2699
|
var ChainUtils;
|
|
2699
2700
|
((ChainUtils) => {
|
|
@@ -2829,6 +2830,13 @@ var ChainUtils;
|
|
|
2829
2830
|
explorerUrl: "https://plasmascan.to/",
|
|
2830
2831
|
identifier: "plasma"
|
|
2831
2832
|
},
|
|
2833
|
+
[1329 /* Sei */]: {
|
|
2834
|
+
name: "Sei",
|
|
2835
|
+
id: 1329 /* Sei */,
|
|
2836
|
+
nativeCurrency: { name: "Sei", symbol: "SEI", decimals: 18 },
|
|
2837
|
+
explorerUrl: "https://seiscan.io/",
|
|
2838
|
+
identifier: "sei"
|
|
2839
|
+
},
|
|
2832
2840
|
[143 /* MonadMainnet */]: {
|
|
2833
2841
|
name: "Monad Mainnet",
|
|
2834
2842
|
id: 143 /* MonadMainnet */,
|
|
@@ -2892,6 +2900,7 @@ var addresses = {
|
|
|
2892
2900
|
beaconProxyFactory: "0x57D969B556C6AebB3Ac8f54c98CF3a3f921d5659",
|
|
2893
2901
|
feeRegistry: "0x47A144e67834408716cB40Fa87fc886D63362ddC",
|
|
2894
2902
|
v0_4_0: "0xA7260Cee56B679eC05a736A7b603b8DA8525Dd69",
|
|
2903
|
+
v0_5_0: "0xC81Dd51239119Db80D5a6E1B7347F3C3BC8674d9",
|
|
2895
2904
|
wrappedNative: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
2896
2905
|
optinFactory: "0xc094c224ce0406bc338e00837b96ad2e265f7287"
|
|
2897
2906
|
},
|
|
@@ -2937,6 +2946,7 @@ var addresses = {
|
|
|
2937
2946
|
[59144 /* LineaMainnet */]: {
|
|
2938
2947
|
feeRegistry: "0xC81Dd51239119Db80D5a6E1B7347F3C3BC8674d9",
|
|
2939
2948
|
v0_4_0: "0xC094C224ce0406BC338E00837B96aD2e265F7287",
|
|
2949
|
+
v0_5_0: "0xA3C233C61436008e05EDdE6adb3f81a410fa80C2",
|
|
2940
2950
|
wrappedNative: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
|
|
2941
2951
|
optinFactory: "0x8D6f5479B14348186faE9BC7E636e947c260f9B1"
|
|
2942
2952
|
},
|
|
@@ -2952,6 +2962,12 @@ var addresses = {
|
|
|
2952
2962
|
wrappedNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
2953
2963
|
optinFactory: "0x0C0E287f6e4de685f4b44A5282A3ad4A29D05a91"
|
|
2954
2964
|
},
|
|
2965
|
+
[1329 /* Sei */]: {
|
|
2966
|
+
feeRegistry: "0xDd954bE514726Ed0C7156fe4aE06C539f7AE6C1c",
|
|
2967
|
+
v0_5_0: "0x357F1C9754dFFceD7c2EFe086d2114909538047D",
|
|
2968
|
+
wrappedNative: "0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7",
|
|
2969
|
+
optinFactory: "0xDa1d1De87C4D90A07a6462cCD9bE651a0d074362"
|
|
2970
|
+
},
|
|
2955
2971
|
[143 /* MonadMainnet */]: {
|
|
2956
2972
|
feeRegistry: "0xBf994c358f939011595AB4216AC005147863f9D6",
|
|
2957
2973
|
v0_5_0: "0x870dd43a868C35b036347c46042D97C7247EEa15",
|