@dev.sail.money/sailor 0.0.2-18 → 0.0.2-20
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/index.cjs +14 -14
- package/packages/cli/dist/server.cjs +48 -17
- package/packages/sdk/dist/intelligence.d.ts +1 -1
- package/packages/sdk/dist/intelligence.js +1 -1
- package/packages/ui/dist/assets/{add-BHtIsGoW.js → add-BrylwREe.js} +1 -1
- package/packages/ui/dist/assets/{all-wallets-BH8IiQp_.js → all-wallets-DGR35dSU.js} +1 -1
- package/packages/ui/dist/assets/{app-store-C7je0Hvt.js → app-store-BpM1x6bI.js} +1 -1
- package/packages/ui/dist/assets/{apple-C24YGi7n.js → apple-xvs7JX23.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-NmB75e6T.js → arrow-bottom-CF6xPQbH.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-circle-D9vkbcGm.js → arrow-bottom-circle-r0A6jlRF.js} +1 -1
- package/packages/ui/dist/assets/{arrow-left-BXX7egmu.js → arrow-left-Ce6MJKC0.js} +1 -1
- package/packages/ui/dist/assets/{arrow-right-CL5l1ER5.js → arrow-right-CiCNIsI0.js} +1 -1
- package/packages/ui/dist/assets/{arrow-top-B3NcsHvl.js → arrow-top-TI5RQSIc.js} +1 -1
- package/packages/ui/dist/assets/{bank-DyxCAL_C.js → bank-CmrK2TRa.js} +1 -1
- package/packages/ui/dist/assets/{basic-CnjXr1WW.js → basic-BhoXad_6.js} +1 -1
- package/packages/ui/dist/assets/{browser-C1sQ7PjQ.js → browser-BWCT-XSy.js} +1 -1
- package/packages/ui/dist/assets/{card-DUcWbZgm.js → card-v1fl0QNj.js} +1 -1
- package/packages/ui/dist/assets/{ccip-ZC8164Ut.js → ccip-BkGqsEgG.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-BFIb0gZI.js → checkmark-CiQnNFee.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-bold-GxOovLvw.js → checkmark-bold-B63f9SW6.js} +1 -1
- package/packages/ui/dist/assets/{chevron-bottom-BWFm5iOO.js → chevron-bottom-DpBpDiYb.js} +1 -1
- package/packages/ui/dist/assets/{chevron-left-Dw1vrfPS.js → chevron-left-o_G-ctyg.js} +1 -1
- package/packages/ui/dist/assets/{chevron-right-Lj-4a_f7.js → chevron-right-I9LAJ9De.js} +1 -1
- package/packages/ui/dist/assets/{chevron-top-CNtyUs8e.js → chevron-top-JRwGHMKH.js} +1 -1
- package/packages/ui/dist/assets/{chrome-store-BFjfxT2g.js → chrome-store-Cw9skzSt.js} +1 -1
- package/packages/ui/dist/assets/{clock-upNWT1cC.js → clock-BK_Lu0EB.js} +1 -1
- package/packages/ui/dist/assets/{close-BXOvqFtp.js → close-DWFjOyu7.js} +1 -1
- package/packages/ui/dist/assets/{coinPlaceholder-IDofua41.js → coinPlaceholder-gi3wDlPb.js} +1 -1
- package/packages/ui/dist/assets/{compass-Du2xGTuZ.js → compass-Dlpsn_k-.js} +1 -1
- package/packages/ui/dist/assets/{copy-thfTJs3L.js → copy-BzNKdXeG.js} +1 -1
- package/packages/ui/dist/assets/{core-C8jSlwHY.js → core-BN9UnMip.js} +3 -3
- package/packages/ui/dist/assets/cursor-BWdjWDLC.js +3 -0
- package/packages/ui/dist/assets/{cursor-transparent-DGzNzXxd.js → cursor-transparent-B3RZ6Udt.js} +1 -1
- package/packages/ui/dist/assets/{desktop-BozY9d6T.js → desktop-rngwE1T9.js} +1 -1
- package/packages/ui/dist/assets/{disconnect-B-oC8Fzu.js → disconnect-_DzDsvsZ.js} +1 -1
- package/packages/ui/dist/assets/{discord-CpgvcuGY.js → discord-B9qQB66m.js} +1 -1
- package/packages/ui/dist/assets/{etherscan-DB-rL796.js → etherscan-D7hlQ8Z3.js} +1 -1
- package/packages/ui/dist/assets/{events-i9ztcj9W.js → events-DrkgavVp.js} +1 -1
- package/packages/ui/dist/assets/{exclamation-triangle-Ct0mzv3Y.js → exclamation-triangle-iCvLVoM-.js} +1 -1
- package/packages/ui/dist/assets/{extension-CubWAVae.js → extension-CjGcOeuB.js} +1 -1
- package/packages/ui/dist/assets/{external-link-CgYSHh7f.js → external-link-DTkyjOr4.js} +1 -1
- package/packages/ui/dist/assets/{facebook-DI_kGikU.js → facebook-DoO2uCiE.js} +1 -1
- package/packages/ui/dist/assets/{fallback-CtKplO-p.js → fallback-Y8-BiCNG.js} +1 -1
- package/packages/ui/dist/assets/{farcaster-PEZAXYqi.js → farcaster-Dyz6wiZi.js} +1 -1
- package/packages/ui/dist/assets/{filters-D6NPvINV.js → filters-Bd5PxMiz.js} +1 -1
- package/packages/ui/dist/assets/{github-BRk_ww3A.js → github-CmqSJCq6.js} +1 -1
- package/packages/ui/dist/assets/{google-3tO0AiTd.js → google-i_MKKqQP.js} +1 -1
- package/packages/ui/dist/assets/{help-circle-DtbseC_9.js → help-circle-_ER8-V35.js} +1 -1
- package/packages/ui/dist/assets/{id-DNQF-HQS.js → id-D2adRwvh.js} +1 -1
- package/packages/ui/dist/assets/{image-D4l2W9gw.js → image-q_rpi7cn.js} +1 -1
- package/packages/ui/dist/assets/{index-A8Mpr5Rm.js → index-B6Wb3mjQ.js} +1 -1
- package/packages/ui/dist/assets/{index-cl7Zazmz.js → index-BLD08Nrb.js} +1 -1
- package/packages/ui/dist/assets/{index-vIXQ5sb2.js → index-Bdl623mb.js} +3 -3
- package/packages/ui/dist/assets/{index-D-PqJKnq.js → index-BwoSt5mL.js} +1 -1
- package/packages/ui/dist/assets/{index-BnYYo2S0.js → index-CzevBC-K.js} +1 -1
- package/packages/ui/dist/assets/index-DDKDa0s2.css +1 -0
- package/packages/ui/dist/assets/index-DJQDBPts.js +1775 -0
- package/packages/ui/dist/assets/{index.es-BxPfiRyX.js → index.es-D6UPoR2j.js} +4 -4
- package/packages/ui/dist/assets/{info-DAwJNl3r.js → info-Ck7GYYmo.js} +1 -1
- package/packages/ui/dist/assets/{info-circle-lvyXhzfD.js → info-circle-DtA5FQXd.js} +1 -1
- package/packages/ui/dist/assets/{lightbulb-BkrBfCQo.js → lightbulb-DR3jyzkK.js} +1 -1
- package/packages/ui/dist/assets/{mail-CrRh9uAx.js → mail-BK_pW_tL.js} +1 -1
- package/packages/ui/dist/assets/{metamask-sdk-SH1hL_jU.js → metamask-sdk-IZbe4GJ_.js} +1 -1
- package/packages/ui/dist/assets/{mobile-Cq71LsIe.js → mobile-CLG-4Yut.js} +1 -1
- package/packages/ui/dist/assets/{more-CzCaTRQT.js → more-BBqkkVbe.js} +1 -1
- package/packages/ui/dist/assets/{network-placeholder-B7ilsHLj.js → network-placeholder-kf7EWfmj.js} +1 -1
- package/packages/ui/dist/assets/{nftPlaceholder-DYo4ThqR.js → nftPlaceholder-BEFwtFPl.js} +1 -1
- package/packages/ui/dist/assets/{off-CVXtiamx.js → off-DKjJt-l0.js} +1 -1
- package/packages/ui/dist/assets/{parseSignature-DDqjAA1x.js → parseSignature-KWl5TpQf.js} +1 -1
- package/packages/ui/dist/assets/{play-store-Bxo5wDfY.js → play-store-DBVkWbwG.js} +1 -1
- package/packages/ui/dist/assets/{plus-ByOmN8u0.js → plus-BQzagKUL.js} +1 -1
- package/packages/ui/dist/assets/{qr-code-BLcaF-bG.js → qr-code-DVwEgFEM.js} +1 -1
- package/packages/ui/dist/assets/{recycle-horizontal-R32E5-sJ.js → recycle-horizontal-D2E6B1Kh.js} +1 -1
- package/packages/ui/dist/assets/{refresh-DV3LEAlt.js → refresh-CUavEsqn.js} +1 -1
- package/packages/ui/dist/assets/{reown-logo-CzXV-ULV.js → reown-logo-mAAAaf4E.js} +1 -1
- package/packages/ui/dist/assets/{search-C4ArXMR1.js → search-BAnb6iT_.js} +1 -1
- package/packages/ui/dist/assets/{secp256k1-CigFWhM4.js → secp256k1-CBUZgsE-.js} +1 -1
- package/packages/ui/dist/assets/{send-nlnStDog.js → send-BYjfitxS.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontal-I-zOG8Yz.js → swapHorizontal-C-4qjxwd.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalBold-5VnEg1-A.js → swapHorizontalBold-zA-cWlfT.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalMedium-DK837_PS.js → swapHorizontalMedium-gIIVXh3I.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalRoundedBold-EcrRbYtU.js → swapHorizontalRoundedBold-CwtQpc9E.js} +1 -1
- package/packages/ui/dist/assets/{swapVertical--ZRk6QJu.js → swapVertical-wrdYsAkk.js} +1 -1
- package/packages/ui/dist/assets/{telegram-DQOf_6vw.js → telegram-3aqbBSMX.js} +1 -1
- package/packages/ui/dist/assets/{three-dots-RaCioLRu.js → three-dots-BNRpZX3L.js} +1 -1
- package/packages/ui/dist/assets/{twitch-CXMYNleq.js → twitch-Bya9c1W1.js} +1 -1
- package/packages/ui/dist/assets/{twitterIcon-CafuOSTc.js → twitterIcon-1thOj_Z5.js} +1 -1
- package/packages/ui/dist/assets/{verify-B5SZMJAG.js → verify-D8ggGSfI.js} +1 -1
- package/packages/ui/dist/assets/{verify-filled-BrlLx5ry.js → verify-filled-CeZM7920.js} +1 -1
- package/packages/ui/dist/assets/{w3m-modal-57iUR7pY.js → w3m-modal-CUwD6iiA.js} +1 -1
- package/packages/ui/dist/assets/{wallet-Fu8Tn5wK.js → wallet-Baz0DeMJ.js} +1 -1
- package/packages/ui/dist/assets/{wallet-placeholder-BYpbF3M_.js → wallet-placeholder-3yAnyuC4.js} +1 -1
- package/packages/ui/dist/assets/{walletconnect-BT9pozGB.js → walletconnect-CfkgbqAq.js} +1 -1
- package/packages/ui/dist/assets/{warning-circle-BQ8awbZW.js → warning-circle-BfOqu3HN.js} +1 -1
- package/packages/ui/dist/assets/{x-D21DQ5BR.js → x-CxAcJv-O.js} +1 -1
- package/packages/ui/dist/index.html +2 -2
- package/packages/ui/dist/assets/cursor-Dc-Hxk5X.js +0 -3
- package/packages/ui/dist/assets/index-CKxgNxS9.css +0 -1
- package/packages/ui/dist/assets/index-L6zhWbjO.js +0 -2103
package/package.json
CHANGED
|
@@ -40295,8 +40295,8 @@ Project: ${project.name}`));
|
|
|
40295
40295
|
say(
|
|
40296
40296
|
() => console.log(
|
|
40297
40297
|
`
|
|
40298
|
-
\u2192
|
|
40299
|
-
|
|
40298
|
+
\u2192 Open the Sailor dashboard to approve signing requests:
|
|
40299
|
+
http://localhost:${projectPort(process.cwd())}/#/station
|
|
40300
40300
|
`
|
|
40301
40301
|
)
|
|
40302
40302
|
);
|
|
@@ -40834,8 +40834,8 @@ async function runDeploy(project, channel, options) {
|
|
|
40834
40834
|
say(() => {
|
|
40835
40835
|
console.log(
|
|
40836
40836
|
`
|
|
40837
|
-
\u2192
|
|
40838
|
-
|
|
40837
|
+
\u2192 Open the Sailor dashboard to approve signing requests:
|
|
40838
|
+
http://localhost:${projectPort(process.cwd())}/#/station
|
|
40839
40839
|
`
|
|
40840
40840
|
);
|
|
40841
40841
|
console.log(`Pushing deploy request for "${contractName}"\u2026`);
|
|
@@ -41057,8 +41057,8 @@ ${spec.label} clone (${options.template})`);
|
|
|
41057
41057
|
console.log(` SMA: ${sma}`);
|
|
41058
41058
|
for (const d of spec.describe(initParams)) console.log(` ${d.label}: ${d.value}`);
|
|
41059
41059
|
console.log(`
|
|
41060
|
-
\u2192
|
|
41061
|
-
|
|
41060
|
+
\u2192 Open the Sailor dashboard to approve signing requests:
|
|
41061
|
+
http://localhost:${projectPort(process.cwd())}/#/station
|
|
41062
41062
|
`);
|
|
41063
41063
|
});
|
|
41064
41064
|
const nonce = await publicClient.readContract({
|
|
@@ -41221,8 +41221,8 @@ async function runAttach(project, channel, options) {
|
|
|
41221
41221
|
if (!json) {
|
|
41222
41222
|
console.log(
|
|
41223
41223
|
`
|
|
41224
|
-
\u2192
|
|
41225
|
-
|
|
41224
|
+
\u2192 Open the Sailor dashboard to approve signing requests:
|
|
41225
|
+
http://localhost:${projectPort(process.cwd())}/#/station
|
|
41226
41226
|
`
|
|
41227
41227
|
);
|
|
41228
41228
|
}
|
|
@@ -41304,8 +41304,8 @@ Revoking ${targets.length} permission(s) from ${sma}:`);
|
|
|
41304
41304
|
for (const p of targets) console.log(` ${nameFor(p) ?? p} ${p}`);
|
|
41305
41305
|
console.log(
|
|
41306
41306
|
`
|
|
41307
|
-
\u2192
|
|
41308
|
-
|
|
41307
|
+
\u2192 Open the Sailor dashboard to approve signing requests:
|
|
41308
|
+
http://localhost:${projectPort(process.cwd())}/#/station
|
|
41309
41309
|
`
|
|
41310
41310
|
);
|
|
41311
41311
|
});
|
|
@@ -41851,8 +41851,8 @@ SMA: ${smaAddress}`);
|
|
|
41851
41851
|
}
|
|
41852
41852
|
console.log(
|
|
41853
41853
|
`
|
|
41854
|
-
\u2192
|
|
41855
|
-
|
|
41854
|
+
\u2192 Open the Sailor dashboard to approve signing requests:
|
|
41855
|
+
http://localhost:${projectPort(process.cwd())}/#/station
|
|
41856
41856
|
`
|
|
41857
41857
|
);
|
|
41858
41858
|
});
|
|
@@ -42167,8 +42167,8 @@ async function ownerConnect(options) {
|
|
|
42167
42167
|
try {
|
|
42168
42168
|
await channel.start();
|
|
42169
42169
|
if (!options.json) {
|
|
42170
|
-
console.log("\u2192 Open
|
|
42171
|
-
console.log(`
|
|
42170
|
+
console.log("\u2192 Open the Sailor dashboard and connect your wallet:");
|
|
42171
|
+
console.log(` http://localhost:${projectPort(projectRoot)}/#/station`);
|
|
42172
42172
|
if (channel.remote) console.log(" (using the running signing station)");
|
|
42173
42173
|
console.log("\nWaiting for a wallet connection\u2026");
|
|
42174
42174
|
}
|
|
@@ -50044,6 +50044,13 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
50044
50044
|
res.json(null);
|
|
50045
50045
|
}
|
|
50046
50046
|
});
|
|
50047
|
+
app.delete("/api/mandate-draft", (_req, res) => {
|
|
50048
|
+
try {
|
|
50049
|
+
import_node_fs2.default.rmSync(at("mandate-draft.json"), { force: true });
|
|
50050
|
+
} catch {
|
|
50051
|
+
}
|
|
50052
|
+
res.json({ ok: true });
|
|
50053
|
+
});
|
|
50047
50054
|
app.post("/api/mandate-submit", (req, res) => {
|
|
50048
50055
|
const { signature, signedAt } = req.body ?? {};
|
|
50049
50056
|
if (!signature) {
|
|
@@ -50235,12 +50242,20 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
50235
50242
|
deployment = getSailDeployment(chainId);
|
|
50236
50243
|
} catch {
|
|
50237
50244
|
}
|
|
50245
|
+
const SUPPORTED_CHAIN_IDS = [8453, 42161, 130, 84532];
|
|
50246
|
+
const rpcByChain = {};
|
|
50247
|
+
for (const cid of SUPPORTED_CHAIN_IDS) {
|
|
50248
|
+
const perChainKey = `RPC_URL_${cid}`;
|
|
50249
|
+
if (env[perChainKey]) rpcByChain[cid] = env[perChainKey];
|
|
50250
|
+
}
|
|
50251
|
+
if (env.RPC_URL && !rpcByChain[chainId]) rpcByChain[chainId] = env.RPC_URL;
|
|
50238
50252
|
res.json({
|
|
50239
50253
|
hasAccount,
|
|
50240
50254
|
hasManagerKey: Boolean(managerAddress),
|
|
50241
50255
|
managerAddress,
|
|
50242
|
-
hasRpc: Boolean(env.RPC_URL),
|
|
50256
|
+
hasRpc: Boolean(env.RPC_URL || Object.keys(rpcByChain).length > 0),
|
|
50243
50257
|
rpcUrl: env.RPC_URL ?? null,
|
|
50258
|
+
rpcByChain,
|
|
50244
50259
|
hasSailApiKey: Boolean(env.SAIL_API_KEY),
|
|
50245
50260
|
chainId,
|
|
50246
50261
|
projectName: config?.name ?? null,
|
|
@@ -50254,9 +50269,22 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
50254
50269
|
app.post("/api/onboard/save-config", (req, res) => {
|
|
50255
50270
|
const { rpcUrl, sailApiKey, chainId } = req.body ?? {};
|
|
50256
50271
|
try {
|
|
50272
|
+
const config = (() => {
|
|
50273
|
+
try {
|
|
50274
|
+
return JSON.parse(import_node_fs2.default.readFileSync(at("config.json"), "utf-8"));
|
|
50275
|
+
} catch {
|
|
50276
|
+
return null;
|
|
50277
|
+
}
|
|
50278
|
+
})();
|
|
50279
|
+
const activeChainId = config?.chainId ?? 8453;
|
|
50257
50280
|
const envPath = at(".env.local");
|
|
50258
50281
|
const existing = parseEnvFile(envPath);
|
|
50259
|
-
if (rpcUrl
|
|
50282
|
+
if (rpcUrl && chainId) {
|
|
50283
|
+
existing[`RPC_URL_${chainId}`] = rpcUrl;
|
|
50284
|
+
if (Number(chainId) === Number(activeChainId)) existing.RPC_URL = rpcUrl;
|
|
50285
|
+
} else if (rpcUrl) {
|
|
50286
|
+
existing.RPC_URL = rpcUrl;
|
|
50287
|
+
}
|
|
50260
50288
|
if (sailApiKey) existing.SAIL_API_KEY = sailApiKey;
|
|
50261
50289
|
if (chainId) existing.CHAIN_ID = String(chainId);
|
|
50262
50290
|
const content = Object.entries(existing).map(([k, v]) => `${k}=${v}`).join("\n") + "\n";
|
|
@@ -50490,6 +50518,20 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
50490
50518
|
res.status(404).json({ error: "no positions snapshot" });
|
|
50491
50519
|
}
|
|
50492
50520
|
});
|
|
50521
|
+
function mandatesFromStore(at2, account, nameByAddr, templateByAddr, network) {
|
|
50522
|
+
try {
|
|
50523
|
+
const store = JSON.parse(import_node_fs2.default.readFileSync(at2("state/mandates.json"), "utf-8"));
|
|
50524
|
+
const safe = account?.safe?.toLowerCase();
|
|
50525
|
+
return (store.mandates ?? []).filter((m) => m.address && m.chainId === account?.chainId && (m.attachments ?? []).some((a) => a.sma?.toLowerCase() === safe)).map((m) => ({
|
|
50526
|
+
address: m.address,
|
|
50527
|
+
name: m.name ?? nameByAddr.get(m.address.toLowerCase()) ?? null,
|
|
50528
|
+
template: m.name ?? templateByAddr.get(m.address.toLowerCase()) ?? null,
|
|
50529
|
+
network
|
|
50530
|
+
}));
|
|
50531
|
+
} catch {
|
|
50532
|
+
return [];
|
|
50533
|
+
}
|
|
50534
|
+
}
|
|
50493
50535
|
app.get("/api/overview", async (_req, res) => {
|
|
50494
50536
|
let account = null;
|
|
50495
50537
|
try {
|
|
@@ -50611,12 +50653,12 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
50611
50653
|
result.sma.balanceWei = safeBal.toString();
|
|
50612
50654
|
result.sma.balanceEth = formatEther(safeBal);
|
|
50613
50655
|
result.sma.balanceStatus = balanceStatus(safeBal);
|
|
50614
|
-
result.mandates = perms.map((addr) => ({
|
|
50656
|
+
result.mandates = perms.length > 0 ? perms.map((addr) => ({
|
|
50615
50657
|
address: addr,
|
|
50616
50658
|
name: nameByAddr.get(addr.toLowerCase()) ?? null,
|
|
50617
50659
|
template: templateByAddr.get(addr.toLowerCase()) ?? null,
|
|
50618
50660
|
network
|
|
50619
|
-
}));
|
|
50661
|
+
})) : mandatesFromStore(at, account, nameByAddr, templateByAddr, network);
|
|
50620
50662
|
let managerEntry;
|
|
50621
50663
|
if (managerSet) {
|
|
50622
50664
|
managerEntry = signerEntry("manager", managerAddr, balanceByAddr);
|
|
@@ -50638,22 +50680,11 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
50638
50680
|
];
|
|
50639
50681
|
} catch (err) {
|
|
50640
50682
|
result.onchainError = err instanceof Error ? err.message : String(err);
|
|
50641
|
-
|
|
50642
|
-
const local = JSON.parse(import_node_fs2.default.readFileSync(at("mandate.json"), "utf-8"));
|
|
50643
|
-
result.mandates = (local.permissions ?? []).map((p) => {
|
|
50644
|
-
const addr = typeof p === "string" ? p : p.address;
|
|
50645
|
-
return {
|
|
50646
|
-
address: addr,
|
|
50647
|
-
name: nameByAddr.get(addr.toLowerCase()) ?? null,
|
|
50648
|
-
template: (typeof p === "object" ? p.template : null) ?? templateByAddr.get(addr.toLowerCase()) ?? null,
|
|
50649
|
-
network
|
|
50650
|
-
};
|
|
50651
|
-
});
|
|
50652
|
-
} catch {
|
|
50653
|
-
}
|
|
50683
|
+
result.mandates = mandatesFromStore(at, account, nameByAddr, templateByAddr, network);
|
|
50654
50684
|
}
|
|
50655
50685
|
} else {
|
|
50656
50686
|
result.onchainError = "No kernel/RPC configured for on-chain reads";
|
|
50687
|
+
result.mandates = mandatesFromStore(at, account, nameByAddr, templateByAddr, network);
|
|
50657
50688
|
}
|
|
50658
50689
|
if (result.signers.length === 0 && localManagerAddrs.size > 0) {
|
|
50659
50690
|
result.signers = [...localManagerAddrs].map((la) => ({
|
|
@@ -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-09T11:33:37.273Z
|
|
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-09T11:33:37.273Z
|
|
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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-D9vkbcGm.js → arrow-bottom-circle-r0A6jlRF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.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-Bdl623mb.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-DJQDBPts.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.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-BN9UnMip.js";import"./index-DJQDBPts.js";import"./events-DrkgavVp.js";import"./index.es-D6UPoR2j.js";import"./fallback-Y8-BiCNG.js";const e=C`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="16"
|
|
4
4
|
height="16"
|