salt-sdk 0.0.6 → 0.0.7
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseError, a as getUrl, s as stringify, d as decodeErrorResult, i as isAddressEqual, l as localBatchGatewayUrl, b as localBatchGatewayRequest, c as call, e as concat, f as encodeAbiParameters, H as HttpRequestError, h as isHex } from "./index-
|
|
1
|
+
import { B as BaseError, a as getUrl, s as stringify, d as decodeErrorResult, i as isAddressEqual, l as localBatchGatewayUrl, b as localBatchGatewayRequest, c as call, e as concat, f as encodeAbiParameters, H as HttpRequestError, h as isHex } from "./index-DjPJD0Vu.js";
|
|
2
2
|
class OffchainLookupError extends BaseError {
|
|
3
3
|
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
|
|
4
4
|
super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
@@ -16052,9 +16052,9 @@ const SUPPORTED_CHAINS = [
|
|
|
16052
16052
|
11155111,
|
|
16053
16053
|
421614,
|
|
16054
16054
|
80002,
|
|
16055
|
-
50312,
|
|
16056
16055
|
1,
|
|
16057
|
-
42161
|
|
16056
|
+
42161,
|
|
16057
|
+
560048
|
|
16058
16058
|
];
|
|
16059
16059
|
const Environments = {
|
|
16060
16060
|
MAINNET: {
|
|
@@ -30420,7 +30420,7 @@ async function call(client2, args) {
|
|
|
30420
30420
|
return { data: response };
|
|
30421
30421
|
} catch (err) {
|
|
30422
30422
|
const data2 = getRevertErrorData(err);
|
|
30423
|
-
const { offchainLookup, offchainLookupSignature } = await import("./ccip-
|
|
30423
|
+
const { offchainLookup, offchainLookupSignature } = await import("./ccip-D5DBdhDJ.js");
|
|
30424
30424
|
if (client2.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature && to)
|
|
30425
30425
|
return { data: await offchainLookup(client2, { data: data2, to }) };
|
|
30426
30426
|
if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
|
|
@@ -43553,7 +43553,7 @@ const gql = (chunks, ...variables) => {
|
|
|
43553
43553
|
const isBrowser = typeof window !== "undefined";
|
|
43554
43554
|
if (!isBrowser) {
|
|
43555
43555
|
try {
|
|
43556
|
-
import("./browser-
|
|
43556
|
+
import("./browser-CsPK7Snd.js").then((n) => n.b).then((ws) => {
|
|
43557
43557
|
globalThis.WebSocket = ws.default || ws;
|
|
43558
43558
|
}).catch((error) => {
|
|
43559
43559
|
console.warn("WebSocket polyfill not available:", error);
|
|
@@ -44217,7 +44217,7 @@ if ((async () => {
|
|
|
44217
44217
|
var e = await Promise.resolve().then(() => constants);
|
|
44218
44218
|
e.getGraphEndpoint;
|
|
44219
44219
|
})(), "undefined" == typeof window) try {
|
|
44220
|
-
import("./browser-
|
|
44220
|
+
import("./browser-CsPK7Snd.js").then((n) => n.b).then((e) => {
|
|
44221
44221
|
globalThis.WebSocket = e.default || e;
|
|
44222
44222
|
}).catch((e) => {
|
|
44223
44223
|
console.warn("WebSocket polyfill not available:", e);
|
package/dist/index.d.ts
CHANGED
|
@@ -770,7 +770,7 @@ export declare interface SubmitTxParams {
|
|
|
770
770
|
vaultPublicKey?: string;
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
declare type SupportedChainId = 11155111 | 421614 | 80002 |
|
|
773
|
+
declare type SupportedChainId = 11155111 | 421614 | 80002 | 1 | 42161 | 560048;
|
|
774
774
|
|
|
775
775
|
/**
|
|
776
776
|
* Balance of a token for a specified account
|
package/dist/salt.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K, k, I, j, u, A, D, F, q, m, S, n, T, V, W, J, w, o, x, y, v, C, E, G, r, t, z, p } from "./index-
|
|
1
|
+
import { K, k, I, j, u, A, D, F, q, m, S, n, T, V, W, J, w, o, x, y, v, C, E, G, r, t, z, p } from "./index-DjPJD0Vu.js";
|
|
2
2
|
export {
|
|
3
3
|
K as InsufficientGas,
|
|
4
4
|
k as InvalidAddress,
|