@fased/fased 0.1.62 → 0.1.64
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/CHANGELOG.md +32 -0
- package/README.md +38 -30
- package/config/dependency-ownership.json +1 -1
- package/config/signer-policies/README.md +49 -0
- package/config/signer-policies/agent.json.template +32 -0
- package/config/signer-policies/mining.json.template +69 -0
- package/config/signer-policies/network.json.template +5 -0
- package/config/signer-policies/vault.json.template +70 -0
- package/config/signer-protocol-v2.json +76 -0
- package/config/typescript-noemit-baseline.json +680 -0
- package/dist/agents/auth-profiles/store.js +267 -31
- package/dist/agents/bash-tools.exec.js +10 -4
- package/dist/agents/current-model-catalog.js +3 -3
- package/dist/agents/memory-search.js +7 -1
- package/dist/agents/model-catalog-access.js +1 -2
- package/dist/agents/model-catalog-snapshot.js +1 -1
- package/dist/agents/model-catalog-source.js +1 -1
- package/dist/agents/model-metadata.js +1 -1
- package/dist/agents/model-selection.js +2 -28
- package/dist/agents/models-config.providers.js +6 -6
- package/dist/agents/pi-embedded-runner/compact.js +15 -7
- package/dist/agents/pi-embedded-runner/model.js +1 -1
- package/dist/agents/pi-embedded-runner/run/attempt.js +24 -13
- package/dist/agents/pi-embedded-runner/run.js +2 -0
- package/dist/agents/pi-embedded-runner/tool-split.js +40 -2
- package/dist/agents/pi-tool-definition-adapter.js +16 -1
- package/dist/agents/pi-tools.js +2 -1
- package/dist/agents/sandbox/config.js +1 -1
- package/dist/agents/sandbox/context.js +27 -2
- package/dist/agents/skills/env-overrides.js +38 -28
- package/dist/agents/skills/trust.js +93 -0
- package/dist/agents/skills/workspace.js +128 -0
- package/dist/agents/skills-clawhub.js +36 -11
- package/dist/agents/skills-marketplace-scan.js +49 -0
- package/dist/agents/tools/marketplace-offer-draft-tool.js +1 -1
- package/dist/agents/tools/mining-tool.js +1 -1
- package/dist/agents/tools/session-status-tool.js +1 -1
- package/dist/agents/tools/wallet-action-tool.js +172 -36
- package/dist/agents/tools/wallet-skill-policy.js +65 -23
- package/dist/agents/tools/wallet-tool.js +7 -11
- package/dist/auto-reply/reply/directive-handling.fast-lane.js +2 -1
- package/dist/auto-reply/reply/directive-handling.impl.js +2 -1
- package/dist/auto-reply/reply/directive-handling.model.js +2 -1
- package/dist/auto-reply/reply/directive-handling.persist.js +2 -2
- package/dist/auto-reply/reply/get-reply-directives-apply.js +2 -0
- package/dist/auto-reply/reply/get-reply-inline-actions.js +25 -1
- package/dist/auto-reply/reply/model-selection.js +7 -4
- package/dist/auto-reply/reply/session-reset-model.js +4 -4
- package/dist/brand.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/channel-web.js +2 -2
- package/dist/cli/gateway-cli/run.js +8 -0
- package/dist/cli/program/command-registry.js +1 -1
- package/dist/cli/program/register.onboard.js +2 -3
- package/dist/cli/program/register.wallet.js +16 -123
- package/dist/cli/providers-cli.js +1 -1
- package/dist/cli/sat-cli.js +129 -2
- package/dist/cli/update-cli/update-command.js +260 -11
- package/dist/commands/auth-choice.apply.api-providers.js +3 -3
- package/dist/commands/doctor-config-flow.js +1 -1
- package/dist/commands/doctor-legacy-config.js +2 -13
- package/dist/commands/model-picker.js +6 -6
- package/dist/commands/models/auth.js +1 -1
- package/dist/commands/onboard-auth.config-gateways.js +1 -1
- package/dist/commands/onboard-auth.credentials.js +32 -8
- package/dist/commands/onboard-non-interactive/local/wallet-config.js +28 -27
- package/dist/commands/onboard-non-interactive/local.js +5 -1
- package/dist/commands/wallet.js +568 -1911
- package/dist/config/config.js +2 -2
- package/dist/config/io.js +64 -2
- package/dist/config/schema.help.js +8 -7
- package/dist/config/schema.labels.js +5 -4
- package/dist/config/zod-schema.agent-runtime.js +1 -0
- package/dist/config/zod-schema.js +5 -0
- package/dist/control-ui/assets/{app-DLil9VO1.js → app-bR-fO5ty.js} +1511 -1555
- package/dist/control-ui/assets/{config-CU5Zi8Dh.js → config-LeImukCW.js} +10 -10
- package/dist/control-ui/assets/{federation-D10Q4eP_.js → federation-DgA9e-Pn.js} +364 -422
- package/dist/control-ui/assets/{index-DdE_NIXo.js → index-ckCxHwjy.js} +3 -3
- package/dist/control-ui/assets/{mining-BdhMn18r.js → mining-BgHFh0ei.js} +134 -114
- package/dist/control-ui/assets/mining-commit-DFpB_4JN.js +2 -0
- package/dist/control-ui/assets/{open-external-url-DwSiwMPl.js → open-external-url-ulF1B-sA.js} +3 -3
- package/dist/control-ui/assets/{providers-QMn4w2_f.js → providers-CIx9fxc6.js} +2 -2
- package/dist/control-ui/assets/{wallet-C2g294QT.js → wallet-DvStR_AT.js} +259 -377
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/version.json +1 -1
- package/dist/daemon/systemd-system.js +56 -50
- package/dist/extensions/sat-mining/src/protocol-contract.js +43 -3
- package/dist/extensions/sat-mining/src/rpc-read.js +235 -67
- package/dist/extensions/sat-mining/src/sat-bond-layout.js +5 -2
- package/dist/extensions/sat-mining/src/signer-codec-manifest.js +406 -0
- package/dist/extensions/sat-mining/src/solana-submit.js +1038 -397
- package/dist/extensions/sat-mining/src/submission-ledger.js +349 -0
- package/dist/federation/auto-connect.js +98 -8
- package/dist/federation/marketplace-capability-adapter.js +33 -7
- package/dist/federation/marketplace-delivery-outbox.js +196 -0
- package/dist/federation/marketplace-delivery.js +351 -215
- package/dist/federation/marketplace-direct-payment.js +272 -141
- package/dist/federation/marketplace-escrow.js +607 -249
- package/dist/federation/marketplace-settlement-ledger.js +352 -0
- package/dist/federation/offers.js +9 -7
- package/dist/federation/peer-auth-v2.js +529 -0
- package/dist/gateway/a2a-http.js +425 -96
- package/dist/gateway/a2a-settlement.js +259 -153
- package/dist/gateway/a2a-task-store.js +524 -0
- package/dist/gateway/auth.js +38 -2
- package/dist/gateway/config-reload.js +46 -33
- package/dist/gateway/durable-capacity.js +31 -0
- package/dist/gateway/federation-http.js +540 -135
- package/dist/gateway/federation-marketplace-run-store.js +397 -0
- package/dist/gateway/federation-marketplace.js +535 -230
- package/dist/gateway/mutating-admin-rpc-rate-limit.js +5 -0
- package/dist/gateway/security-path.js +1 -1
- package/dist/gateway/server-http.js +1084 -1205
- package/dist/gateway/server-methods/models.js +1 -1
- package/dist/gateway/server-methods/secrets.js +40 -0
- package/dist/gateway/server-methods.js +1 -2
- package/dist/gateway/server-reload-handlers.js +196 -66
- package/dist/gateway/server-runtime-config.js +1 -1
- package/dist/gateway/server-secrets-runtime.js +288 -0
- package/dist/gateway/server.impl.js +73 -42
- package/dist/gateway/sessions-patch.js +3 -5
- package/dist/index.js +4 -2
- package/dist/infra/fasedhub.js +64 -1
- package/dist/infra/local-source-paired-update.js +538 -0
- package/dist/infra/restart.js +41 -10
- package/dist/infra/update-runner.js +96 -0
- package/dist/light-update-status.js +11 -11
- package/dist/memory/backend-config.js +2 -1
- package/dist/memory/session-files.js +16 -2
- package/dist/plugin-sdk/{accounts-DxblobYM.js → accounts-Brn3-uWN.js} +1 -1
- package/dist/plugin-sdk/{actions-D4UNimWa.js → actions-DRu135h0.js} +2 -2
- package/dist/plugin-sdk/{active-listener-CFuy106s.js → active-listener-B_NMtgPL.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-Bwi2Oq03.js → audio-preflight-BYxAt775.js} +27 -27
- package/dist/plugin-sdk/{audit-Cs0K7LBp.js → audit-C5d2z5U1.js} +1 -1
- package/dist/plugin-sdk/{channel-access-D5aHoTY8.js → channel-access-CcFRdRPO.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-Dvch9mMQ.js → channel-access-configure-DaI5wevh.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.d.ts +3 -3
- package/dist/plugin-sdk/channel-plugin-common.js +4 -4
- package/dist/plugin-sdk/{chunk-B0FUGc5A.js → chunk-CyoyqpbG.js} +1 -1
- package/dist/plugin-sdk/{chunk-items-DzT4L4Ty.js → chunk-items-DIRHG2gJ.js} +1 -1
- package/dist/plugin-sdk/command-status.d.ts +2 -2
- package/dist/plugin-sdk/command-status.js +27 -27
- package/dist/plugin-sdk/{commands-registry-DmDRhRAU.js → commands-registry-BfqdEWdF.js} +2 -2
- package/dist/plugin-sdk/{common-CfUOowOp.js → common-HCcXU-NR.js} +1 -1
- package/dist/plugin-sdk/{config-mxULv0fQ.js → config-DlWVeLFB.js} +7113 -6877
- package/dist/plugin-sdk/{config-schema-BrkmtFxB.js → config-schema-BOT7kHb6.js} +6779 -3696
- package/dist/plugin-sdk/device-pair.d.ts +1 -1
- package/dist/plugin-sdk/discord.d.ts +6 -6
- package/dist/plugin-sdk/discord.js +19 -19
- package/dist/plugin-sdk/file-lock.js +35 -4
- package/dist/plugin-sdk/{filesystem-manager-ZoHU8oA7.js → filesystem-manager-DoI8IBNF.js} +1 -1
- package/dist/plugin-sdk/{group-mentions-BHRff6j8.d.ts → group-mentions-q3hUTCt7.d.ts} +1 -1
- package/dist/plugin-sdk/{handle-action-DbVCF9HZ.js → handle-action-hvwapMKg.js} +13 -13
- package/dist/plugin-sdk/{helpers-BXbdgs5H.js → helpers-DMBU4oTo.js} +1 -1
- package/dist/plugin-sdk/{image-ops-D7jPxaph.js → image-ops-DQi0n_Tt.js} +1 -1
- package/dist/plugin-sdk/index.d.ts +21 -39
- package/dist/plugin-sdk/index.js +29 -29
- package/dist/plugin-sdk/{login-BRxww6nv.js → login-Ca583Okc.js} +3 -3
- package/dist/plugin-sdk/{login-qr-DJXsk9XH.js → login-qr-CGciBSNP.js} +3 -3
- package/dist/plugin-sdk/{manager-Y2S_5IlI.js → manager-BegWxNYX.js} +4 -4
- package/dist/plugin-sdk/{markdown-tables-DHLFQqaF.js → markdown-tables-DCOXEUfZ.js} +1 -1
- package/dist/plugin-sdk/{media-Czo4carg.js → media-CAdQF5TG.js} +47 -47
- package/dist/plugin-sdk/{memory-search-DTjIMw8J.js → memory-search-CrFPOeTH.js} +4 -1
- package/dist/plugin-sdk/{monitor-M_ta2lMc.js → monitor-BCFDaqJ-.js} +31 -31
- package/dist/plugin-sdk/{monitor-wYVncM9w.js → monitor-BgbjRiPM.js} +32 -32
- package/dist/plugin-sdk/{openresponses-http-B2GmeSt4.js → openresponses-http-DFf87SMM.js} +27 -27
- package/dist/plugin-sdk/{optional-runtime-dependency-DdMbxS24.js → optional-runtime-dependency-0dznm3ZO.js} +1 -1
- package/dist/plugin-sdk/{outbound-Db8mRN6P.js → outbound-BgVDdHxx.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-BqFjcypb.js → outbound-attachment-QqTnIhZL.js} +2 -2
- package/dist/plugin-sdk/{pairing-message-B3bHYGaw.d.ts → pairing-message-CS-9BHug.d.ts} +2 -2
- package/dist/plugin-sdk/{pairing-message-B3GC_7CD.js → pairing-message-D0CoLHRJ.js} +1 -1
- package/dist/plugin-sdk/{pairing-store-CQikgIbw.js → pairing-store-BChahgI2.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-CY3m5zJP.js → pi-model-discovery-BX_JLcEJ.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-DSh1T2pn.js → pi-model-discovery-runtime-DxTMz_XF.js} +2 -2
- package/dist/plugin-sdk/provider-web-search-config-contract.d.ts +2 -2
- package/dist/plugin-sdk/{pw-ai-AFUqn-tQ.js → pw-ai-natjh3rm.js} +3 -3
- package/dist/plugin-sdk/{qmd-manager-DSyx77KY.js → qmd-manager-CgRaTxUq.js} +1 -1
- package/dist/plugin-sdk/{query-expansion-CAI2kKLQ.js → query-expansion-BG3FgzF7.js} +14 -3
- package/dist/plugin-sdk/{replies-Fzh9PhXl.js → replies-ChYo5ZQM.js} +2 -2
- package/dist/plugin-sdk/{resolve-outbound-target-KpF3co6T.js → resolve-outbound-target-D-KGgHJZ.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-CDl74O19.js → resolve-route-C8tvQm8Z.js} +1 -1
- package/dist/plugin-sdk/{retry-policy-D4uiqUOG.js → retry-policy-C6SjKjQA.js} +1 -1
- package/dist/plugin-sdk/{runtime-Bb6KRnCC.js → runtime-2B9_WKoI.js} +8 -3
- package/dist/plugin-sdk/{runtime-dependency-DLDmB94f.js → runtime-dependency-DczkvPxn.js} +2 -2
- package/dist/plugin-sdk/sat-runtime.d.ts +549 -309
- package/dist/plugin-sdk/sat-runtime.js +29 -29
- package/dist/plugin-sdk/{send-C4k4JuJN.js → send-B6KkGKZD.js} +6 -6
- package/dist/plugin-sdk/{send-D-uDKGIq.js → send-CFzGKJXo.js} +6 -6
- package/dist/plugin-sdk/{send-Du8ykP1k.js → send-DCO441U7.js} +8 -8
- package/dist/plugin-sdk/{send-5nFktR1n.js → send-gDoGA-7e.js} +5 -5
- package/dist/plugin-sdk/{send-Bfzf11VY.js → send-q9HXrSwK.js} +7 -7
- package/dist/plugin-sdk/{session-CS-Td9EM.js → session-DHD4ZKyG.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-CFAlXWHk.js → skill-commands-FKEPLS7T.js} +201 -26
- package/dist/plugin-sdk/{slack-CxE1mfzj.js → slack-BUTt8cxK.js} +39 -39
- package/dist/plugin-sdk/{slack-actions-BcMkNv1Z.js → slack-actions-DhbMcp8M.js} +11 -11
- package/dist/plugin-sdk/slack.d.ts +6 -6
- package/dist/plugin-sdk/slack.js +9 -9
- package/dist/plugin-sdk/{sticker-cache-CGzGWu00.js → sticker-cache-D0wHVqjt.js} +3 -3
- package/dist/plugin-sdk/{tables-bFXyRpkx.js → tables-B3jr0Pvq.js} +1 -1
- package/dist/plugin-sdk/{targets-DH7a9lKB.js → targets-CtSbTxYX.js} +1 -1
- package/dist/plugin-sdk/{telegram-actions-DaEcYQ8r.js → telegram-actions-CC_qN4v0.js} +30 -30
- package/dist/plugin-sdk/telegram.d.ts +6 -6
- package/dist/plugin-sdk/telegram.js +8 -8
- package/dist/plugin-sdk/{thread-bindings.lifecycle-CgOvvdw8.js → thread-bindings.lifecycle-QbkNl-m6.js} +3 -3
- package/dist/plugin-sdk/{thread-bindings.state-CQpk44Hq.js → thread-bindings.state-D9hg_M1c.js} +2 -2
- package/dist/plugin-sdk/tmp-fased-dir-xOTGlzBE.d.ts +486 -0
- package/dist/plugin-sdk/{types-vcJrC_uv.d.ts → types-C3avNytw.d.ts} +3 -4
- package/dist/plugin-sdk/{types-DyhXnYUr.d.ts → types-D0kDG8l0.d.ts} +3 -2
- package/dist/plugin-sdk/{types-DFAW-n1J.d.ts → types-DWfbSAaM.d.ts} +2 -2
- package/dist/plugin-sdk/{types.plugin-_fbu40Re.d.ts → types.plugin-BcSBq42x.d.ts} +8 -3
- package/dist/plugin-sdk/{web-CInY-lCv.js → web-BXsJ1vqe.js} +32 -32
- package/dist/plugin-sdk/{whatsapp-actions-BtSc2CBv.js → whatsapp-actions-Bj_rOncr.js} +13 -13
- package/dist/plugin-sdk/{whatsapp-heartbeat-Bg9TuYzl.js → whatsapp-heartbeat-B1WHkJIg.js} +2 -2
- package/dist/plugin-sdk/whatsapp.d.ts +13 -13
- package/dist/plugin-sdk/whatsapp.js +12 -12
- package/dist/plugin-sdk/{wsl-C4DGFkOd.js → wsl-J-HscWxS.js} +3 -3
- package/dist/plugin-sdk/{zod-schema.providers-core-BEbNizPe.d.ts → zod-schema.providers-core-CIzCjXH9.d.ts} +61 -61
- package/dist/providers/refresh.js +1 -1
- package/dist/providers/registry.js +1 -1
- package/dist/secrets/apply.js +1 -1
- package/dist/secrets/runtime.js +1 -1
- package/dist/wallet/external-submission-ledger.js +376 -0
- package/dist/wallet/legacy-embedded-keystore.js +40 -0
- package/dist/wallet/local-socket-signer-archive.js +30 -0
- package/dist/wallet/local-socket-signer-lifecycle.js +97 -0
- package/dist/wallet/local-socket-signer-policy.js +166 -0
- package/dist/wallet/local-socket-signer-protocol.js +561 -118
- package/dist/wallet/native-signer-wallet-id.js +25 -0
- package/dist/wallet/providers/alchemy-adapter.js +3 -0
- package/dist/wallet/providers/local-socket-signer-adapter.js +380 -105
- package/dist/wallet/providers/turnkey-adapter.js +292 -34
- package/dist/wallet/providers/wallet-standard-adapter.js +100 -0
- package/dist/wallet/signer-network-admin.js +184 -0
- package/dist/wallet/signer-protocol-v2.generated.js +90 -0
- package/dist/wallet/solana-bond-signing.js +157 -69
- package/dist/wallet/solana-reviewed-transaction.js +375 -0
- package/dist/wallet/solana-swap.js +520 -64
- package/dist/wallet/solana-transaction-inspection.js +106 -4
- package/dist/wallet/solana-trigger.js +658 -320
- package/dist/wallet/turnkey-reviewed-state.js +370 -0
- package/dist/wallet/wallet-approval-auth.js +17 -28
- package/dist/wallet/wallet-atomic-state.js +53 -0
- package/dist/wallet/wallet-canary.js +0 -1
- package/dist/wallet/wallet-inbound-events.js +16 -11
- package/dist/wallet/wallet-policy-simulation.js +1 -1
- package/dist/wallet/wallet-policy.js +90 -36
- package/dist/wallet/wallet-provider-capabilities.js +28 -4
- package/dist/wallet/wallet-provider-registry.js +57 -44
- package/dist/wallet/wallet-provider-resolver.js +62 -63
- package/dist/wallet/wallet-runtime-config.js +28 -41
- package/dist/wallet/wallet-secrets-store.js +22 -0
- package/dist/wallet/wallet-send-approvals.js +1891 -589
- package/dist/wallet/wallet-send-execution-ledger.js +292 -0
- package/dist/wallet/wallet-settlement-links.js +14 -13
- package/dist/wallet/wallet-standard-review.js +353 -0
- package/dist/wallet/wallet-status.js +0 -9
- package/dist/wallet/wallet-task-ledger.js +16 -2
- package/dist/web/auto-reply/heartbeat-runner.js +1 -1
- package/dist/web/auto-reply/monitor.js +2 -2
- package/dist/wizard/host-security-capability.js +14 -23
- package/dist/wizard/onboarding.finalize.js +63 -184
- package/dist/wizard/onboarding.host-security.js +117 -1367
- package/dist/wizard/onboarding.js +172 -217
- package/dist/wizard/onboarding.wallet.js +232 -785
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/fased-federation/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +12 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +2 -2
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/index.ts +498 -153
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/sat-mining/signer-codec-schema.v1.json +374 -0
- package/extensions/sat-mining/src/audit-store.ts +50 -5
- package/extensions/sat-mining/src/claim-service.ts +85 -14
- package/extensions/sat-mining/src/config.ts +9 -0
- package/extensions/sat-mining/src/cycle-progress.ts +16 -8
- package/extensions/sat-mining/src/epoch-service.ts +9 -5
- package/extensions/sat-mining/src/gateway-runner.ts +21 -1
- package/extensions/sat-mining/src/protocol-contract.ts +45 -1
- package/extensions/sat-mining/src/recovery-service.ts +312 -0
- package/extensions/sat-mining/src/round-watcher.ts +391 -81
- package/extensions/sat-mining/src/rpc-read.ts +330 -89
- package/extensions/sat-mining/src/runtime.ts +14 -0
- package/extensions/sat-mining/src/sat-bond-layout.ts +6 -0
- package/extensions/sat-mining/src/signer-codec-manifest.ts +429 -0
- package/extensions/sat-mining/src/solana-submit.ts +1199 -428
- package/extensions/sat-mining/src/submission-ledger.ts +433 -0
- package/extensions/signal/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +12 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +12 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/install.sh +4955 -0
- package/package.json +23 -5
- package/scripts/fased-host-updater.mjs +1421 -0
- package/scripts/fased-host-updaterctl.mjs +186 -0
- package/scripts/fased-managed-service.sh +36 -0
- package/scripts/fased-managed-updater.mjs +3065 -156
- package/scripts/fased-signer-enroll-hosting.sh +275 -0
- package/scripts/fased-signer-network-hosting.sh +143 -0
- package/scripts/fased-signer-owner-policy.mjs +1430 -0
- package/scripts/fased-signer-policy-hosting.sh +50 -0
- package/scripts/fased-signer-policy-local.sh +26 -0
- package/scripts/hosted-release-manifest.mjs +185 -0
- package/scripts/install-fased-signerd.sh +183 -108
- package/scripts/install-managed-runtime.mjs +212 -10
- package/scripts/managed-runtime-layout.mjs +75 -3
- package/scripts/migrate-hosted-signer-v2.mjs +58 -0
- package/scripts/start-managed.sh +169 -360
- package/dist/control-ui/assets/mining-commit-R-6nu87p.js +0 -2
- package/dist/plugin-sdk/tmp-fased-dir-CS6zsYEE.d.ts +0 -77
- package/dist/wallet/local-socket-signer-broker.js +0 -224
- package/dist/wallet/local-socket-signer-custody.js +0 -42
- package/dist/wallet/providers/embedded-keystore-adapter.js +0 -402
- package/dist/wallet/providers/privy-adapter.js +0 -80
- package/dist/wallet/wallet-custody.js +0 -1836
|
@@ -3,103 +3,367 @@ import { Value } from "@sinclair/typebox/value";
|
|
|
3
3
|
|
|
4
4
|
//#region src/wallet/local-socket-signer-protocol.ts
|
|
5
5
|
const WalletChainSchema = Type.Literal("solana");
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const LOCAL_SIGNER_NATIVE_FEE_RESERVATION_LAMPORTS_V2 = 5e6;
|
|
7
|
+
const SignerWalletRoleSchema = Type.Union([
|
|
8
|
+
Type.Literal("agent"),
|
|
9
|
+
Type.Literal("mining"),
|
|
10
|
+
Type.Literal("vault")
|
|
11
|
+
]);
|
|
12
|
+
const SignerProtocolRangeV2Schema = Type.Object({
|
|
13
|
+
current: Type.Literal(2),
|
|
14
|
+
min: Type.Integer({ minimum: 2 }),
|
|
15
|
+
max: Type.Integer({ minimum: 2 })
|
|
16
|
+
}, { additionalProperties: false });
|
|
17
|
+
const LocalSocketSignerCapabilitiesV2Schema = Type.Object({
|
|
18
|
+
protocol: SignerProtocolRangeV2Schema,
|
|
19
|
+
nativeFeeReservationLamports: Type.Literal(LOCAL_SIGNER_NATIVE_FEE_RESERVATION_LAMPORTS_V2),
|
|
20
|
+
intentTypes: Type.Array(Type.String()),
|
|
21
|
+
operationStates: Type.Array(Type.String()),
|
|
22
|
+
features: Type.Array(Type.String())
|
|
23
|
+
}, { additionalProperties: false });
|
|
24
|
+
const LocalSocketSignerReleaseIdentityV2Schema = Type.Union([Type.Object({
|
|
25
|
+
version: Type.String({ pattern: "^(?:dev|[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?)$" }),
|
|
26
|
+
commit: Type.String({ pattern: "^(?:unknown|[a-f0-9]{40})$" }),
|
|
27
|
+
buildInputDigest: Type.String({ pattern: "^(?:unknown|sha256:[a-f0-9]{64})$" }),
|
|
28
|
+
development: Type.Literal(true)
|
|
29
|
+
}, { additionalProperties: false }), Type.Object({
|
|
30
|
+
version: Type.String({ pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$" }),
|
|
31
|
+
commit: Type.String({ pattern: "^[a-f0-9]{40}$" }),
|
|
32
|
+
buildInputDigest: Type.String({ pattern: "^sha256:[a-f0-9]{64}$" }),
|
|
33
|
+
development: Type.Literal(false)
|
|
34
|
+
}, { additionalProperties: false })]);
|
|
35
|
+
const SignerPolicyAssetV2Schema = Type.Object({
|
|
36
|
+
asset: Type.String(),
|
|
37
|
+
destinations: Type.Array(Type.String()),
|
|
38
|
+
maxPerTx: Type.String(),
|
|
39
|
+
maxDaily: Type.String()
|
|
40
|
+
}, { additionalProperties: false });
|
|
41
|
+
const SignerPolicyInputV2Schema = Type.Object({
|
|
8
42
|
walletId: Type.Optional(Type.String()),
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
43
|
+
role: SignerWalletRoleSchema,
|
|
44
|
+
version: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
45
|
+
operations: Type.Array(Type.String()),
|
|
46
|
+
programs: Type.Array(Type.String()),
|
|
47
|
+
assets: Type.Array(SignerPolicyAssetV2Schema),
|
|
48
|
+
hash: Type.Optional(Type.String())
|
|
49
|
+
}, { additionalProperties: false });
|
|
50
|
+
const LocalSocketSignerPolicyV2Schema = Type.Object({
|
|
51
|
+
walletId: Type.String(),
|
|
52
|
+
role: SignerWalletRoleSchema,
|
|
53
|
+
version: Type.Integer({ minimum: 1 }),
|
|
54
|
+
operations: Type.Array(Type.String()),
|
|
55
|
+
programs: Type.Array(Type.String()),
|
|
56
|
+
assets: Type.Array(SignerPolicyAssetV2Schema),
|
|
57
|
+
hash: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" })
|
|
58
|
+
}, { additionalProperties: false });
|
|
59
|
+
const SignerSatAccountV2Schema = Type.Object({
|
|
22
60
|
pubkey: Type.String(),
|
|
23
61
|
isSigner: Type.Boolean(),
|
|
24
62
|
isWritable: Type.Boolean()
|
|
25
63
|
}, { additionalProperties: false });
|
|
26
|
-
const
|
|
27
|
-
|
|
64
|
+
const SignerJupiterTriggerIntentV2Schema = Type.Object({
|
|
65
|
+
operation: Type.Union([Type.Literal("create"), Type.Literal("cancel")]),
|
|
66
|
+
program: Type.String(),
|
|
67
|
+
order: Type.Optional(Type.String()),
|
|
68
|
+
triggerMint: Type.Optional(Type.String()),
|
|
69
|
+
condition: Type.Optional(Type.Union([Type.Literal("above"), Type.Literal("below")])),
|
|
70
|
+
targetPriceUsd: Type.Optional(Type.String({ pattern: "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$" })),
|
|
71
|
+
slippageBps: Type.Optional(Type.Integer({
|
|
72
|
+
minimum: 1,
|
|
73
|
+
maximum: 1e3
|
|
74
|
+
})),
|
|
75
|
+
expiresAt: Type.Optional(Type.String({ pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" })),
|
|
76
|
+
expectedOrderState: Type.Union([Type.Literal("new"), Type.Literal("open")])
|
|
77
|
+
}, { additionalProperties: false });
|
|
78
|
+
const SignerSatContextV2Schema = Type.Object({
|
|
79
|
+
targetAuthority: Type.Optional(Type.String()),
|
|
80
|
+
disputeAuthority: Type.Optional(Type.String()),
|
|
81
|
+
intervalStartCycleId: Type.Optional(Type.String()),
|
|
82
|
+
registryPageIndex: Type.Optional(Type.String()),
|
|
83
|
+
minerAuthorities: Type.Optional(Type.Array(Type.String())),
|
|
84
|
+
frontCycleIds: Type.Optional(Type.Array(Type.String())),
|
|
85
|
+
backCycleIds: Type.Optional(Type.Array(Type.String()))
|
|
86
|
+
}, { additionalProperties: false });
|
|
87
|
+
const SignerJupiterIntentV2Schema = Type.Object({
|
|
88
|
+
owner: Type.String(),
|
|
89
|
+
inputMint: Type.Optional(Type.String()),
|
|
90
|
+
outputMint: Type.Optional(Type.String()),
|
|
91
|
+
inputAmount: Type.Optional(Type.String()),
|
|
92
|
+
maxInputAmount: Type.Optional(Type.String()),
|
|
93
|
+
minimumOutputAmount: Type.Optional(Type.String()),
|
|
94
|
+
maxFeeLamports: Type.String(),
|
|
95
|
+
sourceTokenAccount: Type.Optional(Type.String()),
|
|
96
|
+
destinationTokenAccount: Type.Optional(Type.String()),
|
|
97
|
+
programs: Type.Array(Type.String(), {
|
|
98
|
+
minItems: 1,
|
|
99
|
+
maxItems: 64
|
|
100
|
+
}),
|
|
101
|
+
trigger: Type.Optional(SignerJupiterTriggerIntentV2Schema)
|
|
102
|
+
}, { additionalProperties: false });
|
|
103
|
+
const SignerSatInstructionV2Schema = Type.Object({
|
|
104
|
+
action: Type.String({ minLength: 1 }),
|
|
28
105
|
programId: Type.String(),
|
|
29
106
|
dataBase64: Type.String(),
|
|
30
|
-
keys: Type.Array(
|
|
107
|
+
keys: Type.Array(SignerSatAccountV2Schema),
|
|
108
|
+
context: Type.Optional(SignerSatContextV2Schema)
|
|
31
109
|
}, { additionalProperties: false });
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
110
|
+
const SignerFederationBondChallengeV2Schema = Type.Object({
|
|
111
|
+
challengeId: Type.String({
|
|
112
|
+
minLength: 1,
|
|
113
|
+
maxLength: 256
|
|
114
|
+
}),
|
|
115
|
+
federationOrigin: Type.String({
|
|
116
|
+
minLength: 1,
|
|
117
|
+
maxLength: 2048
|
|
118
|
+
}),
|
|
119
|
+
handle: Type.String({
|
|
120
|
+
minLength: 1,
|
|
121
|
+
maxLength: 512
|
|
122
|
+
}),
|
|
123
|
+
nodeId: Type.String({
|
|
124
|
+
minLength: 1,
|
|
125
|
+
maxLength: 512
|
|
126
|
+
}),
|
|
127
|
+
tokenId: Type.String({
|
|
128
|
+
minLength: 1,
|
|
129
|
+
maxLength: 512
|
|
130
|
+
}),
|
|
131
|
+
bondId: Type.String({
|
|
132
|
+
minLength: 1,
|
|
133
|
+
maxLength: 512
|
|
134
|
+
}),
|
|
135
|
+
tier: Type.Union([
|
|
136
|
+
Type.Literal("none"),
|
|
137
|
+
Type.Literal("basic-bond"),
|
|
138
|
+
Type.Literal("operator-bond")
|
|
139
|
+
]),
|
|
140
|
+
amountRaw: Type.Optional(Type.String({ pattern: "^(0|[1-9][0-9]*)$" })),
|
|
141
|
+
expiresAt: Type.String({
|
|
142
|
+
minLength: 1,
|
|
143
|
+
maxLength: 512
|
|
144
|
+
}),
|
|
145
|
+
payloadBase64: Type.String({
|
|
146
|
+
minLength: 4,
|
|
147
|
+
maxLength: 24 * 1024
|
|
38
148
|
})
|
|
39
149
|
}, { additionalProperties: false });
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Type.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
150
|
+
const SignerIntentV2Schema = Type.Union([
|
|
151
|
+
Type.Object({
|
|
152
|
+
type: Type.Literal("solana.nativeTransfer"),
|
|
153
|
+
destination: Type.String(),
|
|
154
|
+
lamports: Type.String(),
|
|
155
|
+
memo: Type.Optional(Type.String({ pattern: "^fased:a2a-(?:payment|refund):v1:[0-9a-f]{64}$" }))
|
|
156
|
+
}, { additionalProperties: false }),
|
|
157
|
+
Type.Object({
|
|
158
|
+
type: Type.Literal("solana.splTransferChecked"),
|
|
159
|
+
destination: Type.String(),
|
|
160
|
+
tokenProgram: Type.Optional(Type.String()),
|
|
161
|
+
mint: Type.String(),
|
|
162
|
+
amount: Type.String(),
|
|
163
|
+
memo: Type.Optional(Type.String({ pattern: "^fased:a2a-(?:payment|refund):v1:[0-9a-f]{64}$" }))
|
|
164
|
+
}, { additionalProperties: false }),
|
|
165
|
+
Type.Object({
|
|
166
|
+
type: Type.Literal("solana.satAction"),
|
|
167
|
+
action: Type.String({ minLength: 1 }),
|
|
168
|
+
programId: Type.Optional(Type.String()),
|
|
169
|
+
dataBase64: Type.Optional(Type.String()),
|
|
170
|
+
keys: Type.Optional(Type.Array(SignerSatAccountV2Schema)),
|
|
171
|
+
context: Type.Optional(SignerSatContextV2Schema),
|
|
172
|
+
instructions: Type.Optional(Type.Array(SignerSatInstructionV2Schema, {
|
|
173
|
+
minItems: 1,
|
|
174
|
+
maxItems: 6
|
|
175
|
+
}))
|
|
176
|
+
}, { additionalProperties: false }),
|
|
177
|
+
Type.Object({
|
|
178
|
+
type: Type.Literal("solana.vaultBondAction"),
|
|
179
|
+
cluster: Type.Union([
|
|
180
|
+
Type.Literal("local"),
|
|
181
|
+
Type.Literal("devnet"),
|
|
182
|
+
Type.Literal("mainnet-beta")
|
|
183
|
+
]),
|
|
184
|
+
action: Type.String({ minLength: 1 }),
|
|
185
|
+
programId: Type.String(),
|
|
186
|
+
dataBase64: Type.String(),
|
|
187
|
+
keys: Type.Array(SignerSatAccountV2Schema),
|
|
188
|
+
context: Type.Optional(SignerSatContextV2Schema)
|
|
189
|
+
}, { additionalProperties: false }),
|
|
190
|
+
Type.Object({
|
|
191
|
+
type: Type.Literal("federation.bondChallenge"),
|
|
192
|
+
federation: SignerFederationBondChallengeV2Schema
|
|
193
|
+
}, { additionalProperties: false }),
|
|
194
|
+
Type.Object({
|
|
195
|
+
type: Type.Union([
|
|
196
|
+
Type.Literal("solana.jupiter.swap"),
|
|
197
|
+
Type.Literal("solana.jupiter.trigger.create"),
|
|
198
|
+
Type.Literal("solana.jupiter.trigger.cancel")
|
|
199
|
+
]),
|
|
200
|
+
jupiter: SignerJupiterIntentV2Schema
|
|
201
|
+
}, { additionalProperties: false })
|
|
202
|
+
]);
|
|
203
|
+
const SignerReviewModeV2Schema = Type.Union([Type.Literal("autonomous"), Type.Literal("reviewed")]);
|
|
204
|
+
const SignerSolanaTransactionEnvelopeV2Schema = Type.Object({
|
|
205
|
+
serializedTxBase64: Type.String(),
|
|
206
|
+
programs: Type.Array(Type.String(), {
|
|
207
|
+
minItems: 1,
|
|
208
|
+
maxItems: 64
|
|
209
|
+
}),
|
|
210
|
+
writableAccounts: Type.Array(Type.String(), {
|
|
211
|
+
minItems: 1,
|
|
212
|
+
maxItems: 64
|
|
213
|
+
}),
|
|
214
|
+
submission: Type.Literal("rpc")
|
|
55
215
|
}, { additionalProperties: false });
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
walletId: Type.Optional(Type.String())
|
|
216
|
+
const SignerReviewAuthorizationV2Schema = Type.Object({
|
|
217
|
+
type: Type.Literal("webauthn"),
|
|
218
|
+
proof: Type.Object({ proofId: Type.String({ minLength: 1 }) }, { additionalProperties: false })
|
|
60
219
|
}, { additionalProperties: false });
|
|
220
|
+
const LocalSocketSignerJupiterTriggerHistoryV2Schema = Type.Object({ orders: Type.Array(Type.Object({
|
|
221
|
+
orderId: Type.String({ minLength: 1 }),
|
|
222
|
+
orderState: Type.String({ minLength: 1 }),
|
|
223
|
+
orderType: Type.Literal("single"),
|
|
224
|
+
inputMint: Type.String({ minLength: 1 }),
|
|
225
|
+
initialInputAmount: Type.String({ pattern: "^[1-9][0-9]*$" }),
|
|
226
|
+
remainingInputAmount: Type.String({ pattern: "^(?:0|[1-9][0-9]*)$" }),
|
|
227
|
+
outputMint: Type.String({ minLength: 1 }),
|
|
228
|
+
triggerMint: Type.String({ minLength: 1 }),
|
|
229
|
+
condition: Type.Union([Type.Literal("above"), Type.Literal("below")]),
|
|
230
|
+
targetPriceUsd: Type.String({ pattern: "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$" }),
|
|
231
|
+
slippageBps: Type.Integer({
|
|
232
|
+
minimum: 1,
|
|
233
|
+
maximum: 1e3
|
|
234
|
+
}),
|
|
235
|
+
expiresAt: Type.String({ pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$" }),
|
|
236
|
+
cancel: Type.Optional(Type.Object({
|
|
237
|
+
expectedOrderState: Type.Literal("open"),
|
|
238
|
+
refundMint: Type.String({ minLength: 1 }),
|
|
239
|
+
refundAmount: Type.String({ pattern: "^[1-9][0-9]*$" }),
|
|
240
|
+
destinationTokenAccount: Type.String({ minLength: 1 }),
|
|
241
|
+
program: Type.String({ minLength: 1 })
|
|
242
|
+
}, { additionalProperties: false }))
|
|
243
|
+
}, { additionalProperties: false })) }, { additionalProperties: false });
|
|
244
|
+
const SignerWalletPolicyCreateV2Schema = Type.Object({
|
|
245
|
+
expectedPolicyVersion: Type.Literal(0),
|
|
246
|
+
policy: SignerPolicyInputV2Schema
|
|
247
|
+
}, { additionalProperties: false });
|
|
248
|
+
const SignerOperationLookupV2Schema = Type.Object({ requestId: Type.String() }, { additionalProperties: false });
|
|
61
249
|
const LocalSocketSignerRequestSchema = Type.Union([
|
|
62
250
|
Type.Object({ op: Type.Literal("health") }, { additionalProperties: false }),
|
|
251
|
+
Type.Object({ op: Type.Literal("v2.capabilities") }, { additionalProperties: false }),
|
|
63
252
|
Type.Object({
|
|
64
|
-
op: Type.Literal("
|
|
65
|
-
walletId: Type.
|
|
253
|
+
op: Type.Literal("v2.jupiter.trigger.history"),
|
|
254
|
+
walletId: Type.String()
|
|
66
255
|
}, { additionalProperties: false }),
|
|
67
256
|
Type.Object({
|
|
68
|
-
op: Type.Literal("
|
|
69
|
-
|
|
70
|
-
|
|
257
|
+
op: Type.Literal("v2.policy.get"),
|
|
258
|
+
walletId: Type.String()
|
|
259
|
+
}, { additionalProperties: false }),
|
|
260
|
+
Type.Object({
|
|
261
|
+
op: Type.Literal("v2.policy.put"),
|
|
262
|
+
walletId: Type.String(),
|
|
263
|
+
request: Type.Object({
|
|
264
|
+
expectedVersion: Type.Integer({ minimum: 0 }),
|
|
265
|
+
policy: SignerPolicyInputV2Schema
|
|
266
|
+
}, { additionalProperties: false })
|
|
267
|
+
}, { additionalProperties: false }),
|
|
268
|
+
Type.Object({
|
|
269
|
+
op: Type.Literal("v2.policy.tighten"),
|
|
270
|
+
walletId: Type.String(),
|
|
271
|
+
request: Type.Object({
|
|
272
|
+
expectedVersion: Type.Integer({ minimum: 1 }),
|
|
273
|
+
policy: SignerPolicyInputV2Schema
|
|
274
|
+
}, { additionalProperties: false })
|
|
275
|
+
}, { additionalProperties: false }),
|
|
276
|
+
Type.Object({
|
|
277
|
+
op: Type.Literal("v2.wallet.get"),
|
|
278
|
+
walletId: Type.String()
|
|
71
279
|
}, { additionalProperties: false }),
|
|
72
280
|
Type.Object({
|
|
73
|
-
op: Type.Literal("
|
|
74
|
-
|
|
281
|
+
op: Type.Literal("v2.wallet.create"),
|
|
282
|
+
walletId: Type.String(),
|
|
283
|
+
request: SignerWalletPolicyCreateV2Schema
|
|
75
284
|
}, { additionalProperties: false }),
|
|
76
285
|
Type.Object({
|
|
77
|
-
op: Type.Literal("
|
|
78
|
-
|
|
286
|
+
op: Type.Literal("v2.wallet.import"),
|
|
287
|
+
walletId: Type.String(),
|
|
288
|
+
request: Type.Object({
|
|
289
|
+
expectedPolicyVersion: Type.Literal(0),
|
|
290
|
+
policy: SignerPolicyInputV2Schema,
|
|
291
|
+
path: Type.String()
|
|
292
|
+
}, { additionalProperties: false })
|
|
79
293
|
}, { additionalProperties: false }),
|
|
80
294
|
Type.Object({
|
|
81
|
-
op: Type.Literal("
|
|
82
|
-
|
|
295
|
+
op: Type.Literal("v2.wallet.importLegacy"),
|
|
296
|
+
walletId: Type.String(),
|
|
297
|
+
request: Type.Object({
|
|
298
|
+
expectedPolicyVersion: Type.Literal(0),
|
|
299
|
+
policy: SignerPolicyInputV2Schema,
|
|
300
|
+
path: Type.String(),
|
|
301
|
+
passphrasePath: Type.String()
|
|
302
|
+
}, { additionalProperties: false })
|
|
83
303
|
}, { additionalProperties: false }),
|
|
84
304
|
Type.Object({
|
|
85
|
-
op: Type.Literal("
|
|
86
|
-
|
|
305
|
+
op: Type.Literal("v2.wallet.reencrypt"),
|
|
306
|
+
walletId: Type.String()
|
|
87
307
|
}, { additionalProperties: false }),
|
|
88
308
|
Type.Object({
|
|
89
|
-
op: Type.Literal("
|
|
90
|
-
|
|
309
|
+
op: Type.Literal("v2.execute"),
|
|
310
|
+
walletId: Type.String(),
|
|
311
|
+
request: Type.Object({
|
|
312
|
+
requestId: Type.String(),
|
|
313
|
+
policyHash: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" }),
|
|
314
|
+
intent: SignerIntentV2Schema
|
|
315
|
+
}, { additionalProperties: false })
|
|
91
316
|
}, { additionalProperties: false }),
|
|
92
317
|
Type.Object({
|
|
93
|
-
op: Type.Literal("
|
|
94
|
-
walletId: Type.
|
|
318
|
+
op: Type.Literal("v2.review.get"),
|
|
319
|
+
walletId: Type.String(),
|
|
320
|
+
request: SignerOperationLookupV2Schema
|
|
95
321
|
}, { additionalProperties: false }),
|
|
96
322
|
Type.Object({
|
|
97
|
-
op: Type.Literal("
|
|
98
|
-
|
|
323
|
+
op: Type.Literal("v2.review.prepare"),
|
|
324
|
+
walletId: Type.String(),
|
|
325
|
+
request: Type.Object({
|
|
326
|
+
requestId: Type.String(),
|
|
327
|
+
policyHash: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" }),
|
|
328
|
+
mode: SignerReviewModeV2Schema,
|
|
329
|
+
intent: SignerIntentV2Schema,
|
|
330
|
+
transaction: Type.Optional(SignerSolanaTransactionEnvelopeV2Schema)
|
|
331
|
+
}, { additionalProperties: false })
|
|
99
332
|
}, { additionalProperties: false }),
|
|
100
333
|
Type.Object({
|
|
101
|
-
op: Type.Literal("
|
|
102
|
-
|
|
334
|
+
op: Type.Literal("v2.review.execute"),
|
|
335
|
+
walletId: Type.String(),
|
|
336
|
+
request: Type.Object({
|
|
337
|
+
requestId: Type.String(),
|
|
338
|
+
authorization: Type.Optional(SignerReviewAuthorizationV2Schema)
|
|
339
|
+
}, { additionalProperties: false })
|
|
340
|
+
}, { additionalProperties: false }),
|
|
341
|
+
Type.Object({
|
|
342
|
+
op: Type.Literal("v2.review.authorization.begin"),
|
|
343
|
+
walletId: Type.String(),
|
|
344
|
+
request: Type.Object({ requestId: Type.String() }, { additionalProperties: false })
|
|
345
|
+
}, { additionalProperties: false }),
|
|
346
|
+
Type.Object({
|
|
347
|
+
op: Type.Literal("v2.review.authorization.finish"),
|
|
348
|
+
walletId: Type.String(),
|
|
349
|
+
request: Type.Object({
|
|
350
|
+
challengeId: Type.String(),
|
|
351
|
+
credential: Type.Unknown()
|
|
352
|
+
}, { additionalProperties: false })
|
|
353
|
+
}, { additionalProperties: false }),
|
|
354
|
+
Type.Object({
|
|
355
|
+
op: Type.Union([Type.Literal("v2.operation.get"), Type.Literal("v2.operation.reconcile")]),
|
|
356
|
+
walletId: Type.String(),
|
|
357
|
+
request: SignerOperationLookupV2Schema
|
|
358
|
+
}, { additionalProperties: false }),
|
|
359
|
+
Type.Object({
|
|
360
|
+
op: Type.Literal("getAddresses"),
|
|
361
|
+
walletId: Type.String({ minLength: 1 })
|
|
362
|
+
}, { additionalProperties: false }),
|
|
363
|
+
Type.Object({
|
|
364
|
+
op: Type.Literal("getBalance"),
|
|
365
|
+
chain: WalletChainSchema,
|
|
366
|
+
walletId: Type.String({ minLength: 1 })
|
|
103
367
|
}, { additionalProperties: false })
|
|
104
368
|
], { additionalProperties: false });
|
|
105
369
|
const LocalSocketSignerResponseEnvelopeSchema = Type.Object({
|
|
@@ -111,63 +375,232 @@ const LocalSocketSignerHealthResultSchema = Type.Object({
|
|
|
111
375
|
details: Type.Optional(Type.String()),
|
|
112
376
|
readOnly: Type.Optional(Type.Boolean()),
|
|
113
377
|
keystoreType: Type.Optional(Type.String()),
|
|
114
|
-
chains: Type.Optional(Type.Array(WalletChainSchema))
|
|
378
|
+
chains: Type.Optional(Type.Array(WalletChainSchema)),
|
|
379
|
+
ready: Type.Optional(Type.Boolean()),
|
|
380
|
+
release: LocalSocketSignerReleaseIdentityV2Schema,
|
|
381
|
+
schema: Type.Optional(Type.Object({
|
|
382
|
+
version: Type.Integer({ minimum: 0 }),
|
|
383
|
+
supported: Type.Integer({ minimum: 1 }),
|
|
384
|
+
ready: Type.Boolean()
|
|
385
|
+
}, { additionalProperties: false })),
|
|
386
|
+
network: Type.Optional(Type.Object({
|
|
387
|
+
ready: Type.Boolean(),
|
|
388
|
+
wallets: Type.Array(Type.Object({
|
|
389
|
+
walletId: Type.String(),
|
|
390
|
+
configured: Type.Boolean(),
|
|
391
|
+
version: Type.Integer({ minimum: 0 }),
|
|
392
|
+
hash: Type.Optional(Type.String({ pattern: "^hmac-sha256:[0-9a-f]{64}$" })),
|
|
393
|
+
ready: Type.Boolean()
|
|
394
|
+
}, { additionalProperties: false }))
|
|
395
|
+
}, { additionalProperties: false })),
|
|
396
|
+
capabilities: Type.Optional(LocalSocketSignerCapabilitiesV2Schema),
|
|
397
|
+
policies: Type.Optional(Type.Array(Type.Object({
|
|
398
|
+
walletId: Type.String(),
|
|
399
|
+
role: SignerWalletRoleSchema,
|
|
400
|
+
version: Type.Integer({ minimum: 1 }),
|
|
401
|
+
hash: Type.String()
|
|
402
|
+
}, { additionalProperties: false }))),
|
|
403
|
+
webAuthn: Type.Optional(Type.Object({
|
|
404
|
+
configured: Type.Boolean(),
|
|
405
|
+
rpId: Type.Optional(Type.String()),
|
|
406
|
+
origins: Type.Optional(Type.Array(Type.String())),
|
|
407
|
+
credentialCount: Type.Integer({ minimum: 0 }),
|
|
408
|
+
credentialVersion: Type.Integer({ minimum: 0 }),
|
|
409
|
+
ready: Type.Boolean()
|
|
410
|
+
}, { additionalProperties: false })),
|
|
411
|
+
jupiter: Type.Optional(Type.Object({
|
|
412
|
+
triggerConfigured: Type.Boolean(),
|
|
413
|
+
liveEnabled: Type.Optional(Type.Boolean())
|
|
414
|
+
}, { additionalProperties: false })),
|
|
415
|
+
audit: Type.Optional(Type.Object({
|
|
416
|
+
configured: Type.Boolean(),
|
|
417
|
+
healthy: Type.Boolean(),
|
|
418
|
+
lastError: Type.Optional(Type.String())
|
|
419
|
+
}, { additionalProperties: false })),
|
|
420
|
+
state: Type.Optional(Type.Object({
|
|
421
|
+
databaseBytes: Type.Integer({ minimum: 0 }),
|
|
422
|
+
wallets: Type.Integer({ minimum: 0 }),
|
|
423
|
+
operations: Type.Integer({ minimum: 0 }),
|
|
424
|
+
operationReplayArchive: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
425
|
+
reviews: Type.Integer({ minimum: 0 }),
|
|
426
|
+
triggerWorkflows: Type.Integer({ minimum: 0 }),
|
|
427
|
+
dailyUsageBuckets: Type.Integer({ minimum: 0 }),
|
|
428
|
+
capacities: Type.Optional(Type.Record(Type.String(), Type.Object({
|
|
429
|
+
used: Type.Integer({ minimum: 0 }),
|
|
430
|
+
maximum: Type.Integer({ minimum: 1 }),
|
|
431
|
+
warnAt: Type.Integer({ minimum: 1 }),
|
|
432
|
+
warning: Type.Boolean()
|
|
433
|
+
}, { additionalProperties: false }))),
|
|
434
|
+
capacityWarnings: Type.Optional(Type.Array(Type.String()))
|
|
435
|
+
}, { additionalProperties: false }))
|
|
115
436
|
}, { additionalProperties: false });
|
|
116
437
|
const LocalSocketSignerAddressMapSchema = Type.Object({ solana: Type.Optional(Type.String()) }, { additionalProperties: false });
|
|
117
438
|
const LocalSocketSignerBalanceResultSchema = Type.Object({
|
|
118
|
-
ok: Type.
|
|
439
|
+
ok: Type.Literal(true),
|
|
119
440
|
chain: WalletChainSchema,
|
|
120
|
-
address: Type.String(),
|
|
121
|
-
balance: Type.String(),
|
|
122
|
-
unit: Type.
|
|
441
|
+
address: Type.String({ pattern: "^[1-9A-HJ-NP-Za-km-z]{32,44}$" }),
|
|
442
|
+
balance: Type.String({ pattern: "^(0|[1-9][0-9]*)$" }),
|
|
443
|
+
unit: Type.Literal("lamports")
|
|
123
444
|
}, { additionalProperties: false });
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
445
|
+
const LocalSocketSignerWalletV2Schema = Type.Object({
|
|
446
|
+
walletId: Type.String(),
|
|
447
|
+
publicKey: Type.String(),
|
|
448
|
+
version: Type.Integer({ minimum: 1 }),
|
|
449
|
+
createdAt: Type.String(),
|
|
450
|
+
rotatedAt: Type.Optional(Type.String()),
|
|
451
|
+
nonce: Type.Optional(Type.Literal("")),
|
|
452
|
+
secret: Type.Optional(Type.Literal(""))
|
|
130
453
|
}, { additionalProperties: false });
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
454
|
+
const LocalSocketSignerOperationV2Schema = Type.Object({
|
|
455
|
+
requestId: Type.String(),
|
|
456
|
+
walletId: Type.String(),
|
|
457
|
+
intentType: Type.String(),
|
|
458
|
+
intentDigest: Type.String(),
|
|
459
|
+
transactionDigest: Type.Optional(Type.String()),
|
|
460
|
+
policyHash: Type.String(),
|
|
461
|
+
asset: Type.String(),
|
|
462
|
+
amount: Type.String(),
|
|
463
|
+
reservations: Type.Optional(Type.Array(Type.Object({
|
|
464
|
+
asset: Type.String(),
|
|
465
|
+
amount: Type.String(),
|
|
466
|
+
usageBucket: Type.String()
|
|
467
|
+
}, { additionalProperties: false }))),
|
|
468
|
+
state: Type.Union([
|
|
469
|
+
Type.Literal("reserved"),
|
|
470
|
+
Type.Literal("broadcast"),
|
|
471
|
+
Type.Literal("confirmed"),
|
|
472
|
+
Type.Literal("failed"),
|
|
473
|
+
Type.Literal("unknown")
|
|
474
|
+
]),
|
|
475
|
+
reservationActive: Type.Boolean(),
|
|
476
|
+
usageBucket: Type.String(),
|
|
477
|
+
reservedAt: Type.String(),
|
|
478
|
+
broadcastAt: Type.Optional(Type.String()),
|
|
479
|
+
confirmedAt: Type.Optional(Type.String()),
|
|
480
|
+
updatedAt: Type.String(),
|
|
481
|
+
signature: Type.Optional(Type.String()),
|
|
482
|
+
error: Type.Optional(Type.String()),
|
|
483
|
+
executionAttempt: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
484
|
+
executionLeaseUntil: Type.Optional(Type.String()),
|
|
485
|
+
authorizationProof: Type.Optional(Type.String()),
|
|
486
|
+
authorizedAt: Type.Optional(Type.String()),
|
|
487
|
+
externalResult: Type.Optional(Type.Object({
|
|
488
|
+
provider: Type.Literal("jupiter-trigger-v2"),
|
|
489
|
+
action: Type.Union([Type.Literal("create"), Type.Literal("cancel")]),
|
|
490
|
+
orderId: Type.String({ minLength: 1 }),
|
|
491
|
+
orderState: Type.Union([Type.Literal("open"), Type.Literal("cancelled")])
|
|
492
|
+
}, { additionalProperties: false }))
|
|
137
493
|
}, { additionalProperties: false });
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
494
|
+
const LocalSocketSignerReviewV2Schema = Type.Object({
|
|
495
|
+
requestId: Type.String(),
|
|
496
|
+
walletId: Type.String(),
|
|
497
|
+
intentType: Type.String(),
|
|
498
|
+
intentDigest: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" }),
|
|
499
|
+
policyHash: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" }),
|
|
500
|
+
mode: SignerReviewModeV2Schema,
|
|
501
|
+
nonce: Type.String({ pattern: "^[0-9a-f]{64}$" }),
|
|
502
|
+
semanticIntent: SignerIntentV2Schema,
|
|
503
|
+
walletPublicKey: Type.Optional(Type.String()),
|
|
504
|
+
artifactKind: Type.Union([
|
|
505
|
+
Type.Literal("solana-transaction"),
|
|
506
|
+
Type.Literal("domain-separated-message"),
|
|
507
|
+
Type.Literal("jupiter-trigger-state")
|
|
508
|
+
]),
|
|
509
|
+
artifactDigest: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" }),
|
|
510
|
+
transaction: Type.Optional(SignerSolanaTransactionEnvelopeV2Schema),
|
|
511
|
+
messageBase64: Type.Optional(Type.String()),
|
|
512
|
+
stateDigest: Type.Optional(Type.String({ pattern: "^sha256:[0-9a-f]{64}$" })),
|
|
513
|
+
stateSlot: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
514
|
+
asset: Type.String({ minLength: 1 }),
|
|
515
|
+
amount: Type.String({ pattern: "^[1-9][0-9]*$" }),
|
|
516
|
+
destination: Type.String({ minLength: 1 }),
|
|
517
|
+
policyOperation: Type.String({ minLength: 1 }),
|
|
518
|
+
requiredPrograms: Type.Array(Type.String({ minLength: 1 }), { minItems: 1 }),
|
|
519
|
+
requiredRole: Type.Optional(SignerWalletRoleSchema),
|
|
520
|
+
issuedAt: Type.String(),
|
|
521
|
+
state: Type.Union([Type.Literal("prepared"), Type.Literal("signed")]),
|
|
522
|
+
preparedAt: Type.String(),
|
|
523
|
+
expiresAt: Type.String(),
|
|
524
|
+
updatedAt: Type.String(),
|
|
525
|
+
transactionDigest: Type.Optional(Type.String({ pattern: "^sha256:[0-9a-f]{64}$" })),
|
|
526
|
+
signature: Type.Optional(Type.String())
|
|
527
|
+
}, { additionalProperties: false });
|
|
528
|
+
const LocalSocketSignerReviewExecutionV2Schema = Type.Object({
|
|
529
|
+
review: LocalSocketSignerReviewV2Schema,
|
|
530
|
+
operation: LocalSocketSignerOperationV2Schema,
|
|
531
|
+
signatureBase64: Type.Optional(Type.String()),
|
|
532
|
+
signer: Type.String()
|
|
533
|
+
}, { additionalProperties: false });
|
|
534
|
+
const LocalSocketSignerReviewBindingV2Schema = Type.Object({
|
|
535
|
+
requestId: Type.String(),
|
|
536
|
+
walletId: Type.String(),
|
|
537
|
+
role: SignerWalletRoleSchema,
|
|
538
|
+
walletPublicKey: Type.Optional(Type.String()),
|
|
539
|
+
intentType: Type.String(),
|
|
540
|
+
intentDigest: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" }),
|
|
541
|
+
semanticIntent: SignerIntentV2Schema,
|
|
542
|
+
artifactKind: Type.Union([
|
|
543
|
+
Type.Literal("solana-transaction"),
|
|
544
|
+
Type.Literal("domain-separated-message"),
|
|
545
|
+
Type.Literal("jupiter-trigger-state")
|
|
546
|
+
]),
|
|
547
|
+
artifactDigest: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" }),
|
|
548
|
+
transactionDigest: Type.Optional(Type.String({ pattern: "^sha256:[0-9a-f]{64}$" })),
|
|
549
|
+
stateDigest: Type.Optional(Type.String({ pattern: "^sha256:[0-9a-f]{64}$" })),
|
|
550
|
+
stateSlot: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
551
|
+
asset: Type.String({ minLength: 1 }),
|
|
552
|
+
amount: Type.String({ pattern: "^[1-9][0-9]*$" }),
|
|
553
|
+
destination: Type.String({ minLength: 1 }),
|
|
554
|
+
policyOperation: Type.String({ minLength: 1 }),
|
|
555
|
+
requiredPrograms: Type.Array(Type.String({ minLength: 1 }), { minItems: 1 }),
|
|
556
|
+
policyHash: Type.String({ pattern: "^sha256:[0-9a-f]{64}$" }),
|
|
557
|
+
nonce: Type.String(),
|
|
558
|
+
issuedAt: Type.String(),
|
|
559
|
+
expiresAt: Type.String()
|
|
162
560
|
}, { additionalProperties: false });
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
|
|
561
|
+
const LocalSocketSignerReviewAuthorizationBeginV2Schema = Type.Object({
|
|
562
|
+
challengeId: Type.String(),
|
|
563
|
+
expiresAt: Type.String(),
|
|
564
|
+
binding: LocalSocketSignerReviewBindingV2Schema,
|
|
565
|
+
options: Type.Unknown()
|
|
566
|
+
}, { additionalProperties: false });
|
|
567
|
+
const LocalSocketSignerReviewAuthorizationFinishV2Schema = Type.Object({
|
|
568
|
+
authorization: SignerReviewAuthorizationV2Schema,
|
|
569
|
+
binding: LocalSocketSignerReviewBindingV2Schema,
|
|
570
|
+
credentialId: Type.String(),
|
|
571
|
+
expiresAt: Type.String()
|
|
572
|
+
}, { additionalProperties: false });
|
|
573
|
+
const LocalSocketSignerWalletPolicyResultV2Schema = Type.Object({
|
|
574
|
+
wallet: LocalSocketSignerWalletV2Schema,
|
|
575
|
+
policy: LocalSocketSignerPolicyV2Schema
|
|
166
576
|
}, { additionalProperties: false });
|
|
577
|
+
function isPositiveUnsignedInteger(value) {
|
|
578
|
+
return typeof value === "string" && /^[1-9][0-9]*$/.test(value);
|
|
579
|
+
}
|
|
580
|
+
function isExactSignerOwnedTriggerIntent(intent) {
|
|
581
|
+
if (intent.type !== "solana.jupiter.trigger.create" && intent.type !== "solana.jupiter.trigger.cancel") {
|
|
582
|
+
return true;
|
|
583
|
+
}
|
|
584
|
+
const jupiter = intent.jupiter;
|
|
585
|
+
const trigger = jupiter.trigger;
|
|
586
|
+
if (!trigger || !jupiter.programs.includes(trigger.program)) {
|
|
587
|
+
return false;
|
|
588
|
+
}
|
|
589
|
+
if (intent.type === "solana.jupiter.trigger.create") {
|
|
590
|
+
return trigger.operation === "create" && trigger.order === undefined && Boolean(trigger.triggerMint) && (trigger.condition === "above" || trigger.condition === "below") && Boolean(trigger.targetPriceUsd) && trigger.slippageBps !== undefined && Boolean(trigger.expiresAt) && trigger.expectedOrderState === "new" && Boolean(jupiter.inputMint) && Boolean(jupiter.outputMint) && jupiter.inputMint !== jupiter.outputMint && isPositiveUnsignedInteger(jupiter.inputAmount) && jupiter.maxInputAmount === jupiter.inputAmount && jupiter.minimumOutputAmount === "0" && jupiter.sourceTokenAccount === undefined && jupiter.destinationTokenAccount === undefined;
|
|
591
|
+
}
|
|
592
|
+
return trigger.operation === "cancel" && Boolean(trigger.order) && trigger.triggerMint === undefined && trigger.condition === undefined && trigger.targetPriceUsd === undefined && trigger.slippageBps === undefined && trigger.expiresAt === undefined && trigger.expectedOrderState === "open" && jupiter.inputMint === undefined && jupiter.inputAmount === undefined && jupiter.maxInputAmount === undefined && Boolean(jupiter.outputMint) && isPositiveUnsignedInteger(jupiter.minimumOutputAmount) && Boolean(jupiter.destinationTokenAccount) && jupiter.sourceTokenAccount === undefined;
|
|
593
|
+
}
|
|
167
594
|
function parseLocalSocketSignerRequest(input) {
|
|
168
595
|
if (!Value.Check(LocalSocketSignerRequestSchema, input)) {
|
|
169
596
|
throw new Error("invalid signer request");
|
|
170
597
|
}
|
|
598
|
+
if (input.op === "v2.review.prepare" && (input.request.intent.type === "solana.jupiter.trigger.create" || input.request.intent.type === "solana.jupiter.trigger.cancel") && input.request.transaction !== undefined) {
|
|
599
|
+
throw new Error("invalid signer request: Jupiter Trigger transaction bytes are signer-owned");
|
|
600
|
+
}
|
|
601
|
+
if ((input.op === "v2.review.prepare" || input.op === "v2.execute") && !isExactSignerOwnedTriggerIntent(input.request.intent)) {
|
|
602
|
+
throw new Error("invalid signer request: Jupiter Trigger terms are not exact and signer-owned");
|
|
603
|
+
}
|
|
171
604
|
return input;
|
|
172
605
|
}
|
|
173
606
|
function parseLocalSocketSignerResponseEnvelope(input) {
|
|
@@ -178,19 +611,29 @@ function parseLocalSocketSignerResponseEnvelope(input) {
|
|
|
178
611
|
}
|
|
179
612
|
function validateLocalSocketSignerResult(op, result) {
|
|
180
613
|
switch (op) {
|
|
181
|
-
case "health":
|
|
614
|
+
case "health":
|
|
615
|
+
case "v2.capabilities": return Value.Check(LocalSocketSignerHealthResultSchema, result);
|
|
616
|
+
case "v2.jupiter.trigger.history": return Value.Check(LocalSocketSignerJupiterTriggerHistoryV2Schema, result);
|
|
617
|
+
case "v2.policy.get":
|
|
618
|
+
case "v2.policy.put":
|
|
619
|
+
case "v2.policy.tighten": return Value.Check(LocalSocketSignerPolicyV2Schema, result);
|
|
620
|
+
case "v2.wallet.get":
|
|
621
|
+
case "v2.wallet.reencrypt": return Value.Check(LocalSocketSignerWalletV2Schema, result);
|
|
622
|
+
case "v2.wallet.create":
|
|
623
|
+
case "v2.wallet.import":
|
|
624
|
+
case "v2.wallet.importLegacy": return Value.Check(LocalSocketSignerWalletPolicyResultV2Schema, result);
|
|
625
|
+
case "v2.execute":
|
|
626
|
+
case "v2.operation.get":
|
|
627
|
+
case "v2.operation.reconcile": return Value.Check(LocalSocketSignerOperationV2Schema, result);
|
|
628
|
+
case "v2.review.get":
|
|
629
|
+
case "v2.review.prepare": return Value.Check(LocalSocketSignerReviewV2Schema, result);
|
|
630
|
+
case "v2.review.execute": return Value.Check(LocalSocketSignerReviewExecutionV2Schema, result);
|
|
631
|
+
case "v2.review.authorization.begin": return Value.Check(LocalSocketSignerReviewAuthorizationBeginV2Schema, result);
|
|
632
|
+
case "v2.review.authorization.finish": return Value.Check(LocalSocketSignerReviewAuthorizationFinishV2Schema, result);
|
|
182
633
|
case "getAddresses": return Value.Check(LocalSocketSignerAddressMapSchema, result);
|
|
183
634
|
case "getBalance": return Value.Check(LocalSocketSignerBalanceResultSchema, result);
|
|
184
|
-
case "prepareTx": return Value.Check(LocalSocketSignerPrepareResultSchema, result);
|
|
185
|
-
case "sendTx": return Value.Check(LocalSocketSignerSendResultSchema, result);
|
|
186
|
-
case "signTx": return Value.Check(LocalSocketSignerSignResultSchema, result);
|
|
187
|
-
case "sendSolanaInstruction": return Value.Check(LocalSocketSignerSendSolanaInstructionResultSchema, result);
|
|
188
|
-
case "sendSolanaInstructions": return Value.Check(LocalSocketSignerSendSolanaInstructionsResultSchema, result);
|
|
189
|
-
case "custodyStatus": return Value.Check(LocalSocketSignerCustodyStatusResultSchema, result);
|
|
190
|
-
case "unlockCustody": return Value.Check(LocalSocketSignerCustodyStatusResultSchema, result);
|
|
191
|
-
case "lockCustody": return Value.Check(LocalSocketSignerCustodyLockResultSchema, result);
|
|
192
635
|
}
|
|
193
636
|
}
|
|
194
637
|
|
|
195
638
|
//#endregion
|
|
196
|
-
export { parseLocalSocketSignerRequest, parseLocalSocketSignerResponseEnvelope, validateLocalSocketSignerResult };
|
|
639
|
+
export { LOCAL_SIGNER_NATIVE_FEE_RESERVATION_LAMPORTS_V2, parseLocalSocketSignerRequest, parseLocalSocketSignerResponseEnvelope, validateLocalSocketSignerResult };
|