@dev.sail.money/sailor 1.1.0-44 → 1.1.0-45
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/package.json +1 -1
- package/packages/cli/dist/server.cjs +58 -3
- package/packages/sdk/dist/intelligence.d.ts +1 -1
- package/packages/sdk/dist/intelligence.js +1 -1
- package/packages/ui/dist/assets/{add-BHh1DUhq.js → add-CuxPbpGQ.js} +1 -1
- package/packages/ui/dist/assets/{all-wallets-BksVbtLO.js → all-wallets-DVNrodWH.js} +1 -1
- package/packages/ui/dist/assets/{app-store-DAXz4Z64.js → app-store-CLy47zai.js} +1 -1
- package/packages/ui/dist/assets/{apple-D1qi9OLG.js → apple-qd0OGVL9.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-BiqLduSV.js → arrow-bottom-DEtuClPM.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-circle-DjOKHyE8.js → arrow-bottom-circle-Bu08qYSw.js} +1 -1
- package/packages/ui/dist/assets/{arrow-left-Cv3GiY8T.js → arrow-left-BQu2mPBY.js} +1 -1
- package/packages/ui/dist/assets/{arrow-right-cU9gH-83.js → arrow-right-BRa8Ye3S.js} +1 -1
- package/packages/ui/dist/assets/{arrow-top-CwdOsDUA.js → arrow-top-C-qEzx3a.js} +1 -1
- package/packages/ui/dist/assets/{bank-BvkUuR5o.js → bank-XKQImESR.js} +1 -1
- package/packages/ui/dist/assets/{basic-ULr_cCSL.js → basic-CY0-_ytM.js} +1 -1
- package/packages/ui/dist/assets/{browser-ofrFja4K.js → browser-DKNp6o61.js} +1 -1
- package/packages/ui/dist/assets/{card-CD4ERbnK.js → card-J3M9-GjK.js} +1 -1
- package/packages/ui/dist/assets/{ccip-C7eZiz3a.js → ccip-PsciOdzV.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-6onG3n_x.js → checkmark-b7O3ZGfI.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-bold-NcCoTwYz.js → checkmark-bold-B8l9sbY8.js} +1 -1
- package/packages/ui/dist/assets/{chevron-bottom-BbtzkXrF.js → chevron-bottom-C0Rhk0Nb.js} +1 -1
- package/packages/ui/dist/assets/{chevron-left-BupFb2YQ.js → chevron-left-DvMhUnlB.js} +1 -1
- package/packages/ui/dist/assets/{chevron-right-B8ORkqXW.js → chevron-right-CEOgfs12.js} +1 -1
- package/packages/ui/dist/assets/{chevron-top-3bPA7cI0.js → chevron-top-B5t9_8Rn.js} +1 -1
- package/packages/ui/dist/assets/{chrome-store-TyiIOIxo.js → chrome-store-amK96yww.js} +1 -1
- package/packages/ui/dist/assets/{clock-XdWZm05K.js → clock-C21ua2do.js} +1 -1
- package/packages/ui/dist/assets/{close-O2N8lyoj.js → close-B-tATo70.js} +1 -1
- package/packages/ui/dist/assets/{coinPlaceholder-DmXeJurd.js → coinPlaceholder-Dw-YZ5sd.js} +1 -1
- package/packages/ui/dist/assets/{compass-BNxtPTdy.js → compass-C7TnsyN2.js} +1 -1
- package/packages/ui/dist/assets/{copy-CcKL-ay_.js → copy-C3CV7z1R.js} +1 -1
- package/packages/ui/dist/assets/{core-CA8vptSL.js → core-BBCAfMGJ.js} +3 -3
- package/packages/ui/dist/assets/cursor-CHaBIJU0.js +3 -0
- package/packages/ui/dist/assets/{cursor-transparent-OF-vM6pK.js → cursor-transparent-CzVJy7xF.js} +1 -1
- package/packages/ui/dist/assets/{desktop-BfhpeGBs.js → desktop-CTaKlbCR.js} +1 -1
- package/packages/ui/dist/assets/{disconnect-C82unXY9.js → disconnect-C_AmlIjm.js} +1 -1
- package/packages/ui/dist/assets/{discord-CXKsMGcp.js → discord-DogGK6PA.js} +1 -1
- package/packages/ui/dist/assets/{etherscan-CNJ1W4Ky.js → etherscan-O4MVsEOS.js} +1 -1
- package/packages/ui/dist/assets/{events-Bqdt3zhf.js → events-CtXOl6VZ.js} +1 -1
- package/packages/ui/dist/assets/{exclamation-triangle-CopyPOzr.js → exclamation-triangle-DQlVECHi.js} +1 -1
- package/packages/ui/dist/assets/{extension-DXl-l9r3.js → extension-DwL9DEX9.js} +1 -1
- package/packages/ui/dist/assets/{external-link-DbaKKqZS.js → external-link-DLUneXoQ.js} +1 -1
- package/packages/ui/dist/assets/{facebook-uQnRLN_c.js → facebook-f4ib1JlO.js} +1 -1
- package/packages/ui/dist/assets/{fallback-qvxUxnWI.js → fallback-B7gFA7kN.js} +1 -1
- package/packages/ui/dist/assets/{farcaster-CjxFnq3Q.js → farcaster-CkvEdWvl.js} +1 -1
- package/packages/ui/dist/assets/{filters-ONZDIBOt.js → filters-BmEQoKM0.js} +1 -1
- package/packages/ui/dist/assets/{github-CV4aFvqa.js → github-DmhsrzGj.js} +1 -1
- package/packages/ui/dist/assets/{google-BzKMlcn7.js → google-B1LwZpPA.js} +1 -1
- package/packages/ui/dist/assets/{help-circle-JrQdZVju.js → help-circle-szpqjlih.js} +1 -1
- package/packages/ui/dist/assets/{id-DkP1sjPL.js → id-B-r44o37.js} +1 -1
- package/packages/ui/dist/assets/{image-DnevZUmm.js → image-xshuNC75.js} +1 -1
- package/packages/ui/dist/assets/{index-DBk2Tmio.js → index-C9GmbEw-.js} +1 -1
- package/packages/ui/dist/assets/{index-aTtdADh3.js → index-CQST4iI0.js} +1 -1
- package/packages/ui/dist/assets/{index-CZVBCY_B.js → index-CSH_E5vx.js} +1 -1
- package/packages/ui/dist/assets/{index-Cf1OFgoJ.js → index-I46l8l3Q.js} +3 -3
- package/packages/ui/dist/assets/{index-dsFClx06.js → index-bZ7i2qxQ.js} +1 -1
- package/packages/ui/dist/assets/{index-BFj8874c.js → index-dMFuu4nC.js} +56 -56
- package/packages/ui/dist/assets/{index.es-BeGshwm4.js → index.es-Bes7NHTP.js} +4 -4
- package/packages/ui/dist/assets/{info-CL9fTXa-.js → info-BGxnDu0S.js} +1 -1
- package/packages/ui/dist/assets/{info-circle-1g_YMvEJ.js → info-circle-BsOXm9aC.js} +1 -1
- package/packages/ui/dist/assets/{lightbulb-BCz1ZXej.js → lightbulb-Dh281T-w.js} +1 -1
- package/packages/ui/dist/assets/{mail-C34-jLtr.js → mail-BoWgeb_j.js} +1 -1
- package/packages/ui/dist/assets/{metamask-sdk-CSM1cHvw.js → metamask-sdk-DZpaixcA.js} +1 -1
- package/packages/ui/dist/assets/{mobile-C6LNNWIU.js → mobile-gWFFfkjE.js} +1 -1
- package/packages/ui/dist/assets/{more-Mq--l-Tg.js → more-DHT5yweg.js} +1 -1
- package/packages/ui/dist/assets/{network-placeholder-D8dAk4sm.js → network-placeholder-Dhr0fSfy.js} +1 -1
- package/packages/ui/dist/assets/{nftPlaceholder-DelmkBov.js → nftPlaceholder-DfAiS0FX.js} +1 -1
- package/packages/ui/dist/assets/{off-7H_l5MJ-.js → off-BKMbkbI3.js} +1 -1
- package/packages/ui/dist/assets/{parseSignature-DYe1tJDq.js → parseSignature-BYfwqRgP.js} +1 -1
- package/packages/ui/dist/assets/{play-store-Czh3YKh7.js → play-store-CxryY7s5.js} +1 -1
- package/packages/ui/dist/assets/{plus-ComRxU33.js → plus-BL5cBLLk.js} +1 -1
- package/packages/ui/dist/assets/{qr-code-CuqCcyVv.js → qr-code-UodA9mQQ.js} +1 -1
- package/packages/ui/dist/assets/{recycle-horizontal-DFKQpQAP.js → recycle-horizontal-efHXoKat.js} +1 -1
- package/packages/ui/dist/assets/{refresh-CTJiyWAT.js → refresh-Bp3qJbd3.js} +1 -1
- package/packages/ui/dist/assets/{reown-logo-C6YIY-fD.js → reown-logo-DLhqBsP6.js} +1 -1
- package/packages/ui/dist/assets/{search-BiwxRFHX.js → search-gaftaqzk.js} +1 -1
- package/packages/ui/dist/assets/{secp256k1-CPGf_4B1.js → secp256k1-CBiejMBD.js} +1 -1
- package/packages/ui/dist/assets/{send-D03N9lRH.js → send-DNaxin3m.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontal-B5x5kCS-.js → swapHorizontal-BgjNJr1M.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalBold-DCMf8a5a.js → swapHorizontalBold-BoVyXGEm.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalMedium-BYlOGVkE.js → swapHorizontalMedium-D-_ybPwh.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalRoundedBold-CZwHe_mN.js → swapHorizontalRoundedBold-iFVxCgPA.js} +1 -1
- package/packages/ui/dist/assets/{swapVertical-ytho09QV.js → swapVertical-D_WLekh9.js} +1 -1
- package/packages/ui/dist/assets/{telegram-FqqxzOzC.js → telegram-CE7hiGRd.js} +1 -1
- package/packages/ui/dist/assets/{three-dots-zaLgHURe.js → three-dots-UCftCwCs.js} +1 -1
- package/packages/ui/dist/assets/{twitch-CxKccKXq.js → twitch-C3zLdpv_.js} +1 -1
- package/packages/ui/dist/assets/{twitterIcon-CxT39J_l.js → twitterIcon-DK__qrkc.js} +1 -1
- package/packages/ui/dist/assets/{verify-DxwXI19y.js → verify-Cj3SEC2L.js} +1 -1
- package/packages/ui/dist/assets/{verify-filled-BTHJmMkV.js → verify-filled-nAtMHxdt.js} +1 -1
- package/packages/ui/dist/assets/{w3m-modal-BGEooFHU.js → w3m-modal-LcGOJsnk.js} +1 -1
- package/packages/ui/dist/assets/{wallet-N29oXhAV.js → wallet-Dt2qxywq.js} +1 -1
- package/packages/ui/dist/assets/{wallet-placeholder-DBI8jWka.js → wallet-placeholder-yL1R0I0a.js} +1 -1
- package/packages/ui/dist/assets/{walletconnect-BT1fqf0b.js → walletconnect-D2fFvtXb.js} +1 -1
- package/packages/ui/dist/assets/{warning-circle-f1tnN6R2.js → warning-circle-YDpkiWFe.js} +1 -1
- package/packages/ui/dist/assets/{x-NK3JDZtO.js → x-CNJOH18g.js} +1 -1
- package/packages/ui/dist/index.html +1 -1
- package/packages/ui/dist/assets/cursor-DOh7MR7A.js +0 -3
package/package.json
CHANGED
|
@@ -48770,12 +48770,21 @@ var CHAIN_RPC_ENV_KEYS = {
|
|
|
48770
48770
|
84532: ["RPC_URL_84532", "BASE_SEPOLIA_RPC_URL"],
|
|
48771
48771
|
11155111: ["RPC_URL_11155111", "SEPOLIA_RPC_URL"]
|
|
48772
48772
|
};
|
|
48773
|
+
var SUPPORTED_CHAIN_IDS = [1, 8453, 42161, 130, 84532];
|
|
48774
|
+
var DEFAULT_RPC_URLS = {
|
|
48775
|
+
1: "https://eth.llamarpc.com",
|
|
48776
|
+
8453: "https://mainnet.base.org",
|
|
48777
|
+
42161: "https://arb1.arbitrum.io/rpc",
|
|
48778
|
+
130: "https://mainnet.unichain.org",
|
|
48779
|
+
84532: "https://sepolia.base.org"
|
|
48780
|
+
};
|
|
48773
48781
|
function resolveRpcUrl(env, chainId) {
|
|
48774
48782
|
const keys = CHAIN_RPC_ENV_KEYS[chainId] ?? [`RPC_URL_${chainId}`];
|
|
48775
48783
|
for (const k of keys) {
|
|
48776
48784
|
if (env[k]) return env[k];
|
|
48777
48785
|
}
|
|
48778
|
-
|
|
48786
|
+
if (env.RPC_URL && Number(env.CHAIN_ID) === Number(chainId)) return env.RPC_URL;
|
|
48787
|
+
return DEFAULT_RPC_URLS[chainId] ?? env.RPC_URL ?? null;
|
|
48779
48788
|
}
|
|
48780
48789
|
function balanceStatus(wei) {
|
|
48781
48790
|
if (wei === 0n) return "critical";
|
|
@@ -48840,6 +48849,53 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
48840
48849
|
computeOverview(account).then((data) => storeOverview(account.safe, account.chainId, data)).catch(() => {
|
|
48841
48850
|
}).finally(() => overviewInFlight.delete(key));
|
|
48842
48851
|
};
|
|
48852
|
+
const onchainChainsCache = /* @__PURE__ */ new Map();
|
|
48853
|
+
const ONCHAIN_CHAINS_TTL_MS = 5 * 6e4;
|
|
48854
|
+
const resolveDeployedChains = async (account) => {
|
|
48855
|
+
const safeLower = account.safe.toLowerCase();
|
|
48856
|
+
const chains = /* @__PURE__ */ new Set();
|
|
48857
|
+
if (Array.isArray(account.deployedChains)) {
|
|
48858
|
+
for (const c of account.deployedChains) if (c != null) chains.add(Number(c));
|
|
48859
|
+
}
|
|
48860
|
+
if (account.chainId != null) chains.add(Number(account.chainId));
|
|
48861
|
+
try {
|
|
48862
|
+
const accounts = JSON.parse(import_node_fs2.default.readFileSync(at("state/accounts.json"), "utf-8"));
|
|
48863
|
+
for (const a of accounts) {
|
|
48864
|
+
if (a?.safe?.toLowerCase() === safeLower && a.chainId != null) chains.add(Number(a.chainId));
|
|
48865
|
+
}
|
|
48866
|
+
} catch {
|
|
48867
|
+
}
|
|
48868
|
+
try {
|
|
48869
|
+
for (const f of import_node_fs2.default.readdirSync(at("state/overview"))) {
|
|
48870
|
+
const m = f.match(/^(.+)-(\d+)\.json$/);
|
|
48871
|
+
if (m && m[1] === safeLower) chains.add(Number(m[2]));
|
|
48872
|
+
}
|
|
48873
|
+
} catch {
|
|
48874
|
+
}
|
|
48875
|
+
const cached = onchainChainsCache.get(safeLower);
|
|
48876
|
+
if (cached && Date.now() - cached.at < ONCHAIN_CHAINS_TTL_MS) {
|
|
48877
|
+
for (const c of cached.chains) chains.add(c);
|
|
48878
|
+
} else {
|
|
48879
|
+
const env = parseEnvFile(at(".env.local"));
|
|
48880
|
+
const found = await Promise.all(
|
|
48881
|
+
SUPPORTED_CHAIN_IDS.map(async (cid) => {
|
|
48882
|
+
const url = resolveRpcUrl(env, cid);
|
|
48883
|
+
if (!url) return null;
|
|
48884
|
+
try {
|
|
48885
|
+
const client = createPublicClient({ transport: http(url) });
|
|
48886
|
+
const code = await client.getBytecode({ address: account.safe });
|
|
48887
|
+
return code && code !== "0x" ? cid : null;
|
|
48888
|
+
} catch {
|
|
48889
|
+
return null;
|
|
48890
|
+
}
|
|
48891
|
+
})
|
|
48892
|
+
);
|
|
48893
|
+
const discovered = found.filter((c) => c != null);
|
|
48894
|
+
onchainChainsCache.set(safeLower, { at: Date.now(), chains: discovered });
|
|
48895
|
+
for (const c of discovered) chains.add(c);
|
|
48896
|
+
}
|
|
48897
|
+
return [...chains].filter((c) => Number.isFinite(c) && c > 0);
|
|
48898
|
+
};
|
|
48843
48899
|
const invalidateOverviewCache = (safe) => {
|
|
48844
48900
|
const prefix = safe.toLowerCase() + "-";
|
|
48845
48901
|
for (const k of overviewCacheByAccount.keys()) {
|
|
@@ -49471,7 +49527,6 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
49471
49527
|
deployment = getSailDeployment(chainId);
|
|
49472
49528
|
} catch {
|
|
49473
49529
|
}
|
|
49474
|
-
const SUPPORTED_CHAIN_IDS = [8453, 42161, 130, 84532];
|
|
49475
49530
|
const rpcByChain = {};
|
|
49476
49531
|
for (const cid of SUPPORTED_CHAIN_IDS) {
|
|
49477
49532
|
const url = resolveRpcUrl(env, cid);
|
|
@@ -49803,7 +49858,7 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
49803
49858
|
res.json([]);
|
|
49804
49859
|
return;
|
|
49805
49860
|
}
|
|
49806
|
-
const deployedChains =
|
|
49861
|
+
const deployedChains = await resolveDeployedChains(account);
|
|
49807
49862
|
const results = await Promise.all(
|
|
49808
49863
|
deployedChains.map(async (cid) => {
|
|
49809
49864
|
const chainAccount = { ...account, chainId: cid };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Do not edit manually — run `pnpm build` to regenerate.
|
|
6
6
|
*
|
|
7
7
|
* Spec version : 1.2.0
|
|
8
|
-
* Generated at : 2026-06-
|
|
8
|
+
* Generated at : 2026-06-15T11:10:40.209Z
|
|
9
9
|
*/
|
|
10
10
|
export declare const SAIL_INTELLIGENCE_BASE_URL = "https://api.sail.money";
|
|
11
11
|
export declare const SAIL_INTELLIGENCE_DOCS_URL = "https://api.sail.money/docs";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Do not edit manually — run `pnpm build` to regenerate.
|
|
6
6
|
*
|
|
7
7
|
* Spec version : 1.2.0
|
|
8
|
-
* Generated at : 2026-06-
|
|
8
|
+
* Generated at : 2026-06-15T11:10:40.209Z
|
|
9
9
|
*/
|
|
10
10
|
export const SAIL_INTELLIGENCE_BASE_URL = "https://api.sail.money";
|
|
11
11
|
export const SAIL_INTELLIGENCE_DOCS_URL = "https://api.sail.money/docs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const d=o`<svg
|
|
2
2
|
width="14"
|
|
3
3
|
height="14"
|
|
4
4
|
viewBox="0 0 14 14"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 24 24">
|
|
2
2
|
<path
|
|
3
3
|
style="fill: var(--wui-color-accent-100);"
|
|
4
4
|
d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as t}from"./core-
|
|
1
|
+
import{F as t}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const e=t`
|
|
2
2
|
<svg width="36" height="36">
|
|
3
3
|
<path
|
|
4
4
|
d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as i}from"./core-
|
|
1
|
+
import{F as i}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const h=i`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#000" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
package/packages/ui/dist/assets/{arrow-bottom-circle-DjOKHyE8.js → arrow-bottom-circle-Bu08qYSw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const t=o`<svg
|
|
2
2
|
fill="none"
|
|
3
3
|
viewBox="0 0 21 20"
|
|
4
4
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const a=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const H=o`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as P,s as M,y as A,v as I,p as c,g as L,c as T,O as Y,l as E,m as J,R as O,h as ke,e as D,f as S,o as ft,j as Hi,W as gt,C as jt,d as si,T as kt,n as Qe,M as vi,k as yi,F as Ae,A as li,q as Ki}from"./core-
|
|
1
|
+
import{u as P,s as M,y as A,v as I,p as c,g as L,c as T,O as Y,l as E,m as J,R as O,h as ke,e as D,f as S,o as ft,j as Hi,W as gt,C as jt,d as si,T as kt,n as Qe,M as vi,k as yi,F as Ae,A as li,q as Ki}from"./core-BBCAfMGJ.js";import{n as u,c as C,o as y,r as v,U as se,e as Gi,f as Yi,a as Ji}from"./index-I46l8l3Q.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const Qi=P`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as l}from"./core-
|
|
1
|
+
import{F as l}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const i=l`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as C}from"./core-
|
|
1
|
+
import{F as C}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const l=C`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as u,cY as p,fP as k,c0 as x,de as M,dl as S,dk as $,bK as A,bR as T,cd as C,cJ as w,dc as E,a0 as b,dg as G}from"./index-
|
|
1
|
+
import{B as u,cY as p,fP as k,c0 as x,de as M,dl as S,dk as $,bK as A,bR as T,cd as C,cJ as w,dc as E,a0 as b,dg as G}from"./index-dMFuu4nC.js";class D extends u{constructor({callbackSelector:a,cause:t,data:f,extraData:e,sender:d,urls:i}){var o;super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],(o=t.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(n=>` ${p(n)}`)],` Sender: ${d}`,` Data: ${f}`,` Callback selector: ${a}`,` Extra data: ${e}`].flat(),name:"OffchainLookupError"})}}class P extends u{constructor({result:a,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${p(t)}`,`Response: ${k(a)}`],name:"OffchainLookupResponseMalformedError"})}}class B extends u{constructor({sender:a,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${a}`],name:"OffchainLookupSenderMismatchError"})}}const H="0x556f1830",U={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function J(c,{blockNumber:a,blockTag:t,data:f,requestOptions:e,to:d}){var s;const{args:i}=x({data:f,abi:[U]}),[o,n,l,g,y]=i,{ccipRead:h}=c,r=h&&typeof(h==null?void 0:h.request)=="function"?h.request:j;try{if(!M(d,o))throw new B({sender:o,to:d});const m=n.includes(S)?await $({data:l,ccipRequest:R=>r({...R,requestOptions:e})}):await r({data:l,requestOptions:e,sender:o,urls:n}),{data:L}=await A(c,{blockNumber:a,blockTag:t,data:T([g,C([{type:"bytes"},{type:"bytes"}],[m,y])]),requestOptions:e,to:d});return L}catch(m){throw(s=e==null?void 0:e.signal)!=null&&s.aborted?w(e.signal):E(m)?m:new D({callbackSelector:g,cause:m,data:f,extraData:y,sender:o,urls:n})}}async function j({data:c,requestOptions:a,sender:t,urls:f}){var d,i,o;let e=new Error("An unknown error occurred.");for(let n=0;n<f.length;n++){if((d=a==null?void 0:a.signal)!=null&&d.aborted)throw w(a.signal);const l=f[n],g=l.includes("{data}")?"GET":"POST",y=g==="POST"?{data:c,sender:t}:void 0,h=g==="POST"?{"Content-Type":"application/json"}:{};try{const r=await fetch(l.replace("{sender}",t.toLowerCase()).replace("{data}",c),{body:JSON.stringify(y),headers:h,method:g,...a!=null&&a.signal?{signal:a.signal}:{}});let s;if((i=r.headers.get("Content-Type"))!=null&&i.startsWith("application/json")?s=(await r.json()).data:s=await r.text(),!r.ok){e=new b({body:y,details:s!=null&&s.error?k(s.error):r.statusText,headers:r.headers,status:r.status,url:l});continue}if(!G(s)){e=new P({result:s,url:l});continue}return s}catch(r){if((o=a==null?void 0:a.signal)!=null&&o.aborted)throw w(a.signal);if(E(r))throw r;e=new b({body:y,details:r.message,url:l})}}throw e}export{j as ccipRequest,J as offchainLookup,U as offchainLookupAbiItem,H as offchainLookupSignature};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg
|
|
2
2
|
width="28"
|
|
3
3
|
height="28"
|
|
4
4
|
viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 14 14">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as t}from"./core-
|
|
1
|
+
import{F as t}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const l=t`<svg width="36" height="36" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
fill="#fff"
|
|
4
4
|
fill-opacity=".05"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const t=o`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
fill-rule="evenodd"
|
|
4
4
|
clip-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const m=o`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as C}from"./core-
|
|
1
|
+
import{F as C}from"./core-BBCAfMGJ.js";import"./index-dMFuu4nC.js";import"./events-CtXOl6VZ.js";import"./index.es-Bes7NHTP.js";import"./fallback-B7gFA7kN.js";const e=C`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="16"
|
|
4
4
|
height="16"
|