@dev.sail.money/sailor 1.1.0-43 → 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.
Files changed (100) hide show
  1. package/package.json +1 -1
  2. package/packages/cli/dist/server.cjs +58 -3
  3. package/packages/sdk/README.md +2 -2
  4. package/packages/sdk/dist/intelligence.d.ts +1 -1
  5. package/packages/sdk/dist/intelligence.js +1 -1
  6. package/packages/ui/dist/assets/{add-BjqRem-K.js → add-CuxPbpGQ.js} +1 -1
  7. package/packages/ui/dist/assets/{all-wallets-Ce2n1Z8I.js → all-wallets-DVNrodWH.js} +1 -1
  8. package/packages/ui/dist/assets/{app-store-C7E_7mH6.js → app-store-CLy47zai.js} +1 -1
  9. package/packages/ui/dist/assets/{apple-BC7kAskQ.js → apple-qd0OGVL9.js} +1 -1
  10. package/packages/ui/dist/assets/{arrow-bottom-Dq_l3FWT.js → arrow-bottom-DEtuClPM.js} +1 -1
  11. package/packages/ui/dist/assets/{arrow-bottom-circle-CjACGJGK.js → arrow-bottom-circle-Bu08qYSw.js} +1 -1
  12. package/packages/ui/dist/assets/{arrow-left-5W_pClNR.js → arrow-left-BQu2mPBY.js} +1 -1
  13. package/packages/ui/dist/assets/{arrow-right-DXy553gM.js → arrow-right-BRa8Ye3S.js} +1 -1
  14. package/packages/ui/dist/assets/{arrow-top-DD0q04nr.js → arrow-top-C-qEzx3a.js} +1 -1
  15. package/packages/ui/dist/assets/{bank-CCXCwaWG.js → bank-XKQImESR.js} +1 -1
  16. package/packages/ui/dist/assets/{basic-CAwLXzDD.js → basic-CY0-_ytM.js} +1 -1
  17. package/packages/ui/dist/assets/{browser-DWmAo_2s.js → browser-DKNp6o61.js} +1 -1
  18. package/packages/ui/dist/assets/{card-C_tjSBK2.js → card-J3M9-GjK.js} +1 -1
  19. package/packages/ui/dist/assets/{ccip-B4SUIV1s.js → ccip-PsciOdzV.js} +1 -1
  20. package/packages/ui/dist/assets/{checkmark-W_dSsbPW.js → checkmark-b7O3ZGfI.js} +1 -1
  21. package/packages/ui/dist/assets/{checkmark-bold-C9Xi2fBZ.js → checkmark-bold-B8l9sbY8.js} +1 -1
  22. package/packages/ui/dist/assets/{chevron-bottom-Dxo8Hw1W.js → chevron-bottom-C0Rhk0Nb.js} +1 -1
  23. package/packages/ui/dist/assets/{chevron-left-CD7UuRQl.js → chevron-left-DvMhUnlB.js} +1 -1
  24. package/packages/ui/dist/assets/{chevron-right-D6kOGOGy.js → chevron-right-CEOgfs12.js} +1 -1
  25. package/packages/ui/dist/assets/{chevron-top-ynjtovar.js → chevron-top-B5t9_8Rn.js} +1 -1
  26. package/packages/ui/dist/assets/{chrome-store-CB5wu9g8.js → chrome-store-amK96yww.js} +1 -1
  27. package/packages/ui/dist/assets/{clock-B3H1XYXj.js → clock-C21ua2do.js} +1 -1
  28. package/packages/ui/dist/assets/{close-DVSIOMF5.js → close-B-tATo70.js} +1 -1
  29. package/packages/ui/dist/assets/{coinPlaceholder-Co_HN9AE.js → coinPlaceholder-Dw-YZ5sd.js} +1 -1
  30. package/packages/ui/dist/assets/{compass-CaY11Job.js → compass-C7TnsyN2.js} +1 -1
  31. package/packages/ui/dist/assets/{copy-D7gntTj6.js → copy-C3CV7z1R.js} +1 -1
  32. package/packages/ui/dist/assets/{core-CqvnE8sM.js → core-BBCAfMGJ.js} +3 -3
  33. package/packages/ui/dist/assets/cursor-CHaBIJU0.js +3 -0
  34. package/packages/ui/dist/assets/{cursor-transparent-BrL6QUeS.js → cursor-transparent-CzVJy7xF.js} +1 -1
  35. package/packages/ui/dist/assets/{desktop-BLH7DXoy.js → desktop-CTaKlbCR.js} +1 -1
  36. package/packages/ui/dist/assets/{disconnect-BxnvzLHz.js → disconnect-C_AmlIjm.js} +1 -1
  37. package/packages/ui/dist/assets/{discord-CfV-36UX.js → discord-DogGK6PA.js} +1 -1
  38. package/packages/ui/dist/assets/{etherscan-CyMQ7xaE.js → etherscan-O4MVsEOS.js} +1 -1
  39. package/packages/ui/dist/assets/{events-D_3qqJ93.js → events-CtXOl6VZ.js} +1 -1
  40. package/packages/ui/dist/assets/{exclamation-triangle-DWjoM6jA.js → exclamation-triangle-DQlVECHi.js} +1 -1
  41. package/packages/ui/dist/assets/{extension-D3fVJAol.js → extension-DwL9DEX9.js} +1 -1
  42. package/packages/ui/dist/assets/{external-link-D1vHHGXX.js → external-link-DLUneXoQ.js} +1 -1
  43. package/packages/ui/dist/assets/{facebook-Dzk6W-1X.js → facebook-f4ib1JlO.js} +1 -1
  44. package/packages/ui/dist/assets/{fallback-BDBC0epM.js → fallback-B7gFA7kN.js} +1 -1
  45. package/packages/ui/dist/assets/{farcaster-BkJt6sOG.js → farcaster-CkvEdWvl.js} +1 -1
  46. package/packages/ui/dist/assets/{filters-Btr-hO6b.js → filters-BmEQoKM0.js} +1 -1
  47. package/packages/ui/dist/assets/{github-ulrStu89.js → github-DmhsrzGj.js} +1 -1
  48. package/packages/ui/dist/assets/{google-BTTDuZjf.js → google-B1LwZpPA.js} +1 -1
  49. package/packages/ui/dist/assets/{help-circle-DcSMbQJh.js → help-circle-szpqjlih.js} +1 -1
  50. package/packages/ui/dist/assets/{id-7WOxEl6j.js → id-B-r44o37.js} +1 -1
  51. package/packages/ui/dist/assets/{image-D2GBTxnU.js → image-xshuNC75.js} +1 -1
  52. package/packages/ui/dist/assets/{index-Bvqcol0e.js → index-C9GmbEw-.js} +1 -1
  53. package/packages/ui/dist/assets/{index-BfABWjw0.js → index-CQST4iI0.js} +1 -1
  54. package/packages/ui/dist/assets/{index-C35kUMRo.js → index-CSH_E5vx.js} +1 -1
  55. package/packages/ui/dist/assets/{index-BjpGs3bJ.js → index-I46l8l3Q.js} +3 -3
  56. package/packages/ui/dist/assets/index-ZMTNJl7U.css +1 -0
  57. package/packages/ui/dist/assets/{index-jNjVgIvi.js → index-bZ7i2qxQ.js} +1 -1
  58. package/packages/ui/dist/assets/index-dMFuu4nC.js +1789 -0
  59. package/packages/ui/dist/assets/{index.es-Cz1WraDz.js → index.es-Bes7NHTP.js} +4 -4
  60. package/packages/ui/dist/assets/{info-CezLTebu.js → info-BGxnDu0S.js} +1 -1
  61. package/packages/ui/dist/assets/{info-circle-BHDy0RH1.js → info-circle-BsOXm9aC.js} +1 -1
  62. package/packages/ui/dist/assets/{lightbulb-DvUuugiy.js → lightbulb-Dh281T-w.js} +1 -1
  63. package/packages/ui/dist/assets/{mail-D6W2cU_-.js → mail-BoWgeb_j.js} +1 -1
  64. package/packages/ui/dist/assets/{metamask-sdk-Cj8b59wb.js → metamask-sdk-DZpaixcA.js} +1 -1
  65. package/packages/ui/dist/assets/{mobile-DD4cG8mI.js → mobile-gWFFfkjE.js} +1 -1
  66. package/packages/ui/dist/assets/{more-RsHIPHXv.js → more-DHT5yweg.js} +1 -1
  67. package/packages/ui/dist/assets/{network-placeholder-E2lpOWE4.js → network-placeholder-Dhr0fSfy.js} +1 -1
  68. package/packages/ui/dist/assets/{nftPlaceholder-Cm9qGJHf.js → nftPlaceholder-DfAiS0FX.js} +1 -1
  69. package/packages/ui/dist/assets/{off-7ALa1e8N.js → off-BKMbkbI3.js} +1 -1
  70. package/packages/ui/dist/assets/{parseSignature-EU-GmuA0.js → parseSignature-BYfwqRgP.js} +1 -1
  71. package/packages/ui/dist/assets/{play-store-YmFLoPbj.js → play-store-CxryY7s5.js} +1 -1
  72. package/packages/ui/dist/assets/{plus-CljVpN-Y.js → plus-BL5cBLLk.js} +1 -1
  73. package/packages/ui/dist/assets/{qr-code-DVGz15q5.js → qr-code-UodA9mQQ.js} +1 -1
  74. package/packages/ui/dist/assets/{recycle-horizontal-Ch_2PFBB.js → recycle-horizontal-efHXoKat.js} +1 -1
  75. package/packages/ui/dist/assets/{refresh-B1yJjeZR.js → refresh-Bp3qJbd3.js} +1 -1
  76. package/packages/ui/dist/assets/{reown-logo-B4gHTrkG.js → reown-logo-DLhqBsP6.js} +1 -1
  77. package/packages/ui/dist/assets/{search-C7OPO4bC.js → search-gaftaqzk.js} +1 -1
  78. package/packages/ui/dist/assets/{secp256k1-ZHPkrWDd.js → secp256k1-CBiejMBD.js} +1 -1
  79. package/packages/ui/dist/assets/{send-C5Aj89yl.js → send-DNaxin3m.js} +1 -1
  80. package/packages/ui/dist/assets/{swapHorizontal-D5l_jKrZ.js → swapHorizontal-BgjNJr1M.js} +1 -1
  81. package/packages/ui/dist/assets/{swapHorizontalBold-TxFZ3Umb.js → swapHorizontalBold-BoVyXGEm.js} +1 -1
  82. package/packages/ui/dist/assets/{swapHorizontalMedium-M_yuNi0o.js → swapHorizontalMedium-D-_ybPwh.js} +1 -1
  83. package/packages/ui/dist/assets/{swapHorizontalRoundedBold-G73a-cMg.js → swapHorizontalRoundedBold-iFVxCgPA.js} +1 -1
  84. package/packages/ui/dist/assets/{swapVertical-Gy7GjYS4.js → swapVertical-D_WLekh9.js} +1 -1
  85. package/packages/ui/dist/assets/{telegram-BnO9isY5.js → telegram-CE7hiGRd.js} +1 -1
  86. package/packages/ui/dist/assets/{three-dots-B616bG-O.js → three-dots-UCftCwCs.js} +1 -1
  87. package/packages/ui/dist/assets/{twitch-DUpzj8Dd.js → twitch-C3zLdpv_.js} +1 -1
  88. package/packages/ui/dist/assets/{twitterIcon-itK0Mrgj.js → twitterIcon-DK__qrkc.js} +1 -1
  89. package/packages/ui/dist/assets/{verify-B1Gtl5H9.js → verify-Cj3SEC2L.js} +1 -1
  90. package/packages/ui/dist/assets/{verify-filled-D3noLrZ3.js → verify-filled-nAtMHxdt.js} +1 -1
  91. package/packages/ui/dist/assets/{w3m-modal-CiZVJcHR.js → w3m-modal-LcGOJsnk.js} +1 -1
  92. package/packages/ui/dist/assets/{wallet-BK1sp3ca.js → wallet-Dt2qxywq.js} +1 -1
  93. package/packages/ui/dist/assets/{wallet-placeholder-CatD0vru.js → wallet-placeholder-yL1R0I0a.js} +1 -1
  94. package/packages/ui/dist/assets/{walletconnect-DmCqpZUB.js → walletconnect-D2fFvtXb.js} +1 -1
  95. package/packages/ui/dist/assets/{warning-circle-bT7aRO8J.js → warning-circle-YDpkiWFe.js} +1 -1
  96. package/packages/ui/dist/assets/{x-DuFufU-Y.js → x-CNJOH18g.js} +1 -1
  97. package/packages/ui/dist/index.html +2 -2
  98. package/packages/ui/dist/assets/cursor-rLwK_mXz.js +0 -3
  99. package/packages/ui/dist/assets/index-BODuSfdj.css +0 -1
  100. package/packages/ui/dist/assets/index-DOy_BvMy.js +0 -1775
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.sail.money/sailor",
3
- "version": "1.1.0-43",
3
+ "version": "1.1.0-45",
4
4
  "description": "Operator toolkit for Sail Protocol",
5
5
  "bin": {
6
6
  "sailor": "packages/cli/dist/index.cjs"
@@ -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
- return env.RPC_URL ?? null;
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 = account.deployedChains ?? [account.chainId];
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 };
@@ -24,7 +24,7 @@ npm install @sail.money/sdk viem
24
24
  | `sailKernelDomain` | EIP-712 domain for any SailKernel |
25
25
  | `DISPATCH_EIP712_FIELDS` | Typed struct field lists keyed by dispatch model |
26
26
  | `LocalKeyring` | Encrypted manager key (geth keystore v3) |
27
- | `sailDeployments` | Live staging addresses (Base, Base Sepolia, Arbitrum, Unichain) |
27
+ | `sailDeployments` | Live staging addresses (Ethereum, Base, Arbitrum, Unichain, Base Sepolia, Eth Sepolia) |
28
28
  | `SailIntelligence` | Typed client for the Sail Intelligence API |
29
29
 
30
30
  ## Dispatch signing
@@ -38,7 +38,7 @@ const manager = await LocalKeyring.load("path/to/manager.json", passphrase);
38
38
 
39
39
  const { signature, nonce, deadline, dispatchModel } = await buildDispatchSignature({
40
40
  publicClient,
41
- kernel: "0x6319d3dfDDe3804ba93D65752b00c52bFb05a1ab", // Base
41
+ kernel: "0x02ABC18B65A328de2e749F56ba79ACF2718a6659", // SailKernel — same address on every supported chain
42
42
  chainId: 8453,
43
43
  account: mySafe,
44
44
  permission: myPermission,
@@ -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-12T18:55:57.557Z
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-12T18:55:57.557Z
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const d=o`<svg
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 24 24">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const e=t`
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const h=i`<svg fill="none" viewBox="0 0 40 40">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const t=o`<svg
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const a=o`<svg fill="none" viewBox="0 0 14 15">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const H=o`<svg
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-CqvnE8sM.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-BjpGs3bJ.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const Qi=P`
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const i=l`<svg fill="none" viewBox="0 0 20 20">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const l=C`<svg
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-DOy_BvMy.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
+ 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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 14 14">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const l=t`<svg width="36" height="36" fill="none">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const t=o`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const m=o`<svg fill="none" viewBox="0 0 20 20">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
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-CqvnE8sM.js";import"./index-DOy_BvMy.js";import"./events-D_3qqJ93.js";import"./index.es-Cz1WraDz.js";import"./fallback-BDBC0epM.js";const e=C`<svg
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"