@sherwoodagent/cli 0.74.3 → 0.75.0
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/dist/{addresses-OFFTM6NG.js → addresses-JJPQTF6S.js} +4 -4
- package/dist/{agent-B7V5L2ZL.js → agent-FYRYTKYM.js} +7 -7
- package/dist/{chat-CXUU4AXK.js → chat-CO244AHH.js} +8 -8
- package/dist/{chunk-6MV4ESXM.js → chunk-3TZIOAPH.js} +25 -1
- package/dist/chunk-3TZIOAPH.js.map +1 -0
- package/dist/{chunk-EW6FTUOL.js → chunk-EVTDWMXQ.js} +4 -4
- package/dist/{chunk-2OHX3O55.js → chunk-FP5DZCOM.js} +3 -3
- package/dist/{chunk-UINMHN6S.js → chunk-I6X6NL65.js} +2 -2
- package/dist/{chunk-LHVSS27T.js → chunk-LSVCF24W.js} +2 -2
- package/dist/{chunk-YADJ5YWY.js → chunk-M7CGUYUX.js} +6 -6
- package/dist/{chunk-3ZOWP3VO.js → chunk-MEMYGZWQ.js} +3 -3
- package/dist/{chunk-BD4ZV7FQ.js → chunk-RGFA732Z.js} +3 -3
- package/dist/{chunk-DGLLSZ2D.js → chunk-T2HVR3O6.js} +2 -2
- package/dist/{chunk-4LKU7ASB.js → chunk-TI64P5R4.js} +4 -4
- package/dist/{chunk-6UEQUVTQ.js → chunk-TN7J5LXW.js} +4 -4
- package/dist/{chunk-O65AC2YS.js → chunk-WCX7DKLQ.js} +4 -4
- package/dist/{chunk-K3EYEJMT.js → chunk-WGXZ623D.js} +4 -4
- package/dist/{client-C3C6IXAH.js → client-GRPJRISD.js} +4 -4
- package/dist/{config-7HU4X7EK.js → config-ZGFS4I7K.js} +12 -4
- package/dist/{eas-XWQYAUEM.js → eas-4RIW3IS4.js} +6 -6
- package/dist/{governor-NHXBIFFB.js → governor-7KETSN47.js} +6 -6
- package/dist/index.js +410 -61
- package/dist/index.js.map +1 -1
- package/dist/{network-WU2QC3L4.js → network-UP2X5XDW.js} +3 -3
- package/dist/{price-QSVIM6QY.js → price-LAQSXN7M.js} +6 -6
- package/dist/{providers-YOOQFBN2.js → providers-2J6LL67W.js} +5 -5
- package/dist/{research-NQKYGTLY.js → research-FHQCSLTZ.js} +9 -9
- package/dist/{session-NLI6UFKB.js → session-JQ3IF3IV.js} +11 -11
- package/dist/{trade-6VYB6YJZ.js → trade-5EYPZN7M.js} +17 -17
- package/dist/{vault-45POYGLN.js → vault-5YYTHS5W.js} +8 -8
- package/dist/{xmtp-KH5I6GOL.js → xmtp-OZ5PJFCT.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-6MV4ESXM.js.map +0 -1
- /package/dist/{addresses-OFFTM6NG.js.map → addresses-JJPQTF6S.js.map} +0 -0
- /package/dist/{agent-B7V5L2ZL.js.map → agent-FYRYTKYM.js.map} +0 -0
- /package/dist/{chat-CXUU4AXK.js.map → chat-CO244AHH.js.map} +0 -0
- /package/dist/{chunk-EW6FTUOL.js.map → chunk-EVTDWMXQ.js.map} +0 -0
- /package/dist/{chunk-2OHX3O55.js.map → chunk-FP5DZCOM.js.map} +0 -0
- /package/dist/{chunk-UINMHN6S.js.map → chunk-I6X6NL65.js.map} +0 -0
- /package/dist/{chunk-LHVSS27T.js.map → chunk-LSVCF24W.js.map} +0 -0
- /package/dist/{chunk-YADJ5YWY.js.map → chunk-M7CGUYUX.js.map} +0 -0
- /package/dist/{chunk-3ZOWP3VO.js.map → chunk-MEMYGZWQ.js.map} +0 -0
- /package/dist/{chunk-BD4ZV7FQ.js.map → chunk-RGFA732Z.js.map} +0 -0
- /package/dist/{chunk-DGLLSZ2D.js.map → chunk-T2HVR3O6.js.map} +0 -0
- /package/dist/{chunk-4LKU7ASB.js.map → chunk-TI64P5R4.js.map} +0 -0
- /package/dist/{chunk-6UEQUVTQ.js.map → chunk-TN7J5LXW.js.map} +0 -0
- /package/dist/{chunk-O65AC2YS.js.map → chunk-WCX7DKLQ.js.map} +0 -0
- /package/dist/{chunk-K3EYEJMT.js.map → chunk-WGXZ623D.js.map} +0 -0
- /package/dist/{client-C3C6IXAH.js.map → client-GRPJRISD.js.map} +0 -0
- /package/dist/{config-7HU4X7EK.js.map → config-ZGFS4I7K.js.map} +0 -0
- /package/dist/{eas-XWQYAUEM.js.map → eas-4RIW3IS4.js.map} +0 -0
- /package/dist/{governor-NHXBIFFB.js.map → governor-7KETSN47.js.map} +0 -0
- /package/dist/{network-WU2QC3L4.js.map → network-UP2X5XDW.js.map} +0 -0
- /package/dist/{price-QSVIM6QY.js.map → price-LAQSXN7M.js.map} +0 -0
- /package/dist/{providers-YOOQFBN2.js.map → providers-2J6LL67W.js.map} +0 -0
- /package/dist/{research-NQKYGTLY.js.map → research-FHQCSLTZ.js.map} +0 -0
- /package/dist/{session-NLI6UFKB.js.map → session-JQ3IF3IV.js.map} +0 -0
- /package/dist/{trade-6VYB6YJZ.js.map → trade-5EYPZN7M.js.map} +0 -0
- /package/dist/{vault-45POYGLN.js.map → vault-5YYTHS5W.js.map} +0 -0
- /package/dist/{xmtp-KH5I6GOL.js.map → xmtp-OZ5PJFCT.js.map} +0 -0
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
isRobinhoodEquityFeed,
|
|
19
19
|
robinhoodEquityMaxAge,
|
|
20
20
|
symbolForTokenAddress
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-I6X6NL65.js";
|
|
22
|
+
import "./chunk-LSVCF24W.js";
|
|
23
|
+
import "./chunk-3TZIOAPH.js";
|
|
24
24
|
export {
|
|
25
25
|
AERODROME,
|
|
26
26
|
AGENT_REGISTRY,
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
robinhoodEquityMaxAge,
|
|
43
43
|
symbolForTokenAddress
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=addresses-
|
|
45
|
+
//# sourceMappingURL=addresses-JJPQTF6S.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
getResearchProvider,
|
|
14
14
|
isX402WalletFunded
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-T2HVR3O6.js";
|
|
16
16
|
import {
|
|
17
17
|
HyperliquidProvider,
|
|
18
18
|
calculateATR,
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
} from "./chunk-DBOINZYU.js";
|
|
30
30
|
import {
|
|
31
31
|
chatCompletion
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-RGFA732Z.js";
|
|
33
|
+
import "./chunk-FP5DZCOM.js";
|
|
34
|
+
import "./chunk-LSVCF24W.js";
|
|
35
35
|
import {
|
|
36
36
|
getVeniceApiKey
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3TZIOAPH.js";
|
|
38
38
|
|
|
39
39
|
// src/commands/agent.ts
|
|
40
40
|
import chalk9 from "chalk";
|
|
@@ -5573,7 +5573,7 @@ var PortfolioTracker = class {
|
|
|
5573
5573
|
}
|
|
5574
5574
|
try {
|
|
5575
5575
|
const { createPublicClient, http } = await import("viem");
|
|
5576
|
-
const { getChain } = await import("./network-
|
|
5576
|
+
const { getChain } = await import("./network-UP2X5XDW.js");
|
|
5577
5577
|
const { BASE_STRATEGY_ABI, SYNDICATE_VAULT_ABI } = await import("./abis-OLIDCWDS.js");
|
|
5578
5578
|
void chain;
|
|
5579
5579
|
const client = createPublicClient({
|
|
@@ -9550,4 +9550,4 @@ function formatFearGreed(value) {
|
|
|
9550
9550
|
export {
|
|
9551
9551
|
registerAgentCommands
|
|
9552
9552
|
};
|
|
9553
|
-
//# sourceMappingURL=agent-
|
|
9553
|
+
//# sourceMappingURL=agent-FYRYTKYM.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFund,
|
|
3
3
|
updateMetadata
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WGXZ623D.js";
|
|
5
5
|
import {
|
|
6
6
|
getTextRecord,
|
|
7
7
|
resolveFund,
|
|
8
8
|
setTextRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TN7J5LXW.js";
|
|
10
10
|
import {
|
|
11
11
|
ENS
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-I6X6NL65.js";
|
|
13
13
|
import {
|
|
14
14
|
formatContractError,
|
|
15
15
|
getAccount
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-FP5DZCOM.js";
|
|
17
|
+
import "./chunk-LSVCF24W.js";
|
|
18
18
|
import {
|
|
19
19
|
cacheGroupId,
|
|
20
20
|
getCachedGroupId
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3TZIOAPH.js";
|
|
22
22
|
import "./chunk-TU655ZTV.js";
|
|
23
23
|
import {
|
|
24
24
|
fetchMetadata,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import chalk from "chalk";
|
|
30
30
|
import ora from "ora";
|
|
31
31
|
async function loadXmtp() {
|
|
32
|
-
return import("./xmtp-
|
|
32
|
+
return import("./xmtp-OZ5PJFCT.js");
|
|
33
33
|
}
|
|
34
34
|
function formatTimestamp(date) {
|
|
35
35
|
return `${date.getHours().toString().padStart(2, "0")}:${date.getMinutes().toString().padStart(2, "0")}`;
|
|
@@ -563,4 +563,4 @@ function registerChatCommands(program) {
|
|
|
563
563
|
export {
|
|
564
564
|
registerChatCommands
|
|
565
565
|
};
|
|
566
|
-
//# sourceMappingURL=chat-
|
|
566
|
+
//# sourceMappingURL=chat-CO244AHH.js.map
|
|
@@ -105,8 +105,28 @@ function getAnthropicApiKey() {
|
|
|
105
105
|
function setAgentId(agentId) {
|
|
106
106
|
const config = loadConfig();
|
|
107
107
|
config.agentId = agentId;
|
|
108
|
+
delete config.identityProvider;
|
|
109
|
+
delete config.identityChainId;
|
|
110
|
+
delete config.virtuals;
|
|
108
111
|
saveConfig(config);
|
|
109
112
|
}
|
|
113
|
+
function setVirtualsIdentity(tokenId, issuingChainId, identity) {
|
|
114
|
+
const config = loadConfig();
|
|
115
|
+
config.agentId = tokenId;
|
|
116
|
+
config.identityProvider = "virtuals";
|
|
117
|
+
config.identityChainId = issuingChainId;
|
|
118
|
+
config.virtuals = identity;
|
|
119
|
+
saveConfig(config);
|
|
120
|
+
}
|
|
121
|
+
function getVirtualsIdentity() {
|
|
122
|
+
return loadConfig().virtuals;
|
|
123
|
+
}
|
|
124
|
+
function getIdentityProvider() {
|
|
125
|
+
return loadConfig().identityProvider ?? "agent0";
|
|
126
|
+
}
|
|
127
|
+
function getIdentityChainId() {
|
|
128
|
+
return loadConfig().identityChainId;
|
|
129
|
+
}
|
|
110
130
|
function getAgentId() {
|
|
111
131
|
return loadConfig().agentId;
|
|
112
132
|
}
|
|
@@ -241,6 +261,10 @@ export {
|
|
|
241
261
|
setAnthropicApiKey,
|
|
242
262
|
getAnthropicApiKey,
|
|
243
263
|
setAgentId,
|
|
264
|
+
setVirtualsIdentity,
|
|
265
|
+
getVirtualsIdentity,
|
|
266
|
+
getIdentityProvider,
|
|
267
|
+
getIdentityChainId,
|
|
244
268
|
getAgentId,
|
|
245
269
|
setPrivateKey,
|
|
246
270
|
requirePrivateKey,
|
|
@@ -260,4 +284,4 @@ export {
|
|
|
260
284
|
cacheSwapRoute,
|
|
261
285
|
clearSwapRoutes
|
|
262
286
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
287
|
+
//# sourceMappingURL=chunk-3TZIOAPH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/config.ts","../src/lib/settings.ts"],"sourcesContent":["/**\n * Local config management — ~/.sherwood/config.json\n *\n * Stores group ID cache, per-chain contract addresses, and wallet config.\n */\n\nimport fs from \"node:fs\";\nimport os from \"node:os\";\nimport path from \"node:path\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nimport { resolveSetting } from \"./settings.js\";\n\nconst CONFIG_DIR = path.join(os.homedir(), \".sherwood\");\nconst CONFIG_PATH = path.join(CONFIG_DIR, \"config.json\");\nconst DASHBOARD_BRIDGE_PATH = path.join(CONFIG_DIR, \"dashboard.json\");\n\n/** Per-chain user-specific addresses (stored by chainId). */\nexport interface ChainContracts {\n vault?: string; // user's default vault address\n}\n\n/** A fund the agent belongs to (creator or member). */\nexport interface FundMembership {\n subdomain: string;\n vault: string;\n role: \"creator\" | \"agent\";\n}\n\nexport interface SherwoodConfig {\n dbEncryptionKey?: string; // legacy — no longer used, XMTP CLI manages its own DB\n privateKey?: string; // wallet private key (0x-prefixed)\n xmtpInboxId?: string;\n groupCache: Record<string, string>; // subdomain → XMTP group ID\n veniceApiKey?: string; // Venice AI inference API key\n anthropicApiKey?: string; // Anthropic Claude API key (for LLM judge)\n agentId?: number; // ERC-8004 identity token ID\n identityProvider?: \"agent0\" | \"virtuals\"; // who issued the identity (absent ⇒ agent0)\n identityChainId?: number; // chain the ERC-8004 NFT lives on (absent ⇒ active chain)\n virtuals?: VirtualsIdentity; // economyOS link details (identityProvider === \"virtuals\")\n contracts?: Record<string, ChainContracts>; // chainId → user addresses\n funds?: Record<string, FundMembership[]>; // chainId → fund memberships\n primaryFund?: Record<string, string>; // chainId → subdomain of the active fund\n rpc?: Record<string, string>; // network name → custom RPC URL\n notifyTo?: string; // destination for cron summaries (Telegram chat ID, phone, etc.)\n uniswapApiKey?: string; // Uniswap Trading API key (from developers.uniswap.org)\n positions?: unknown[]; // open trade positions (typed in positions.ts)\n closedPositions?: unknown[]; // historical closed positions\n _xmtpMigrated?: boolean; // one-time flag: revoked stale installations from ~/.xmtp/ era\n /** Cached swap routes per chain: chainId → { tokenPair → SwapRoute } */\n swapRoutes?: Record<string, Record<string, SwapRoute>>;\n}\n\n/** Linked Virtuals economyOS identity (see lib/virtuals.ts). */\nexport interface VirtualsIdentity {\n agentId?: string; // Virtuals platform agent ID (opaque, e.g. \"abc-123\")\n wallet: string; // economyOS agent wallet (identity holder)\n binding?: {\n sig: string; // EIP-191 signature by the economyOS wallet\n message: string; // the exact signed binding message\n };\n}\n\n/** Persisted swap route detected by the CLI during portfolio strategy proposal. */\nexport interface SwapRoute {\n mode: \"direct\" | \"multi-hop\";\n feeTier: number; // direct pool fee tier\n hop?: { via: string; feeIn: number; feeOut: number }; // multi-hop details\n detectedAt: number; // unix timestamp\n}\n\nexport function loadConfig(): SherwoodConfig {\n if (fs.existsSync(CONFIG_PATH)) {\n const config = JSON.parse(fs.readFileSync(CONFIG_PATH, \"utf-8\"));\n if (!config.groupCache) config.groupCache = {};\n return config;\n }\n\n return { groupCache: {} };\n}\n\nexport function saveConfig(config: SherwoodConfig): void {\n fs.mkdirSync(CONFIG_DIR, { recursive: true, mode: 0o700 });\n fs.writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2), { mode: 0o600 });\n writeDashboardBridge(config);\n}\n\n/**\n * Public-safe derivation of config.json for Hermes dashboard plugins to read.\n * Excludes privateKey + every other sensitive field. Hermes' sherwood-companion\n * plugin reads ~/.sherwood/dashboard.json to auto-detect the operator's\n * primary fund without prompting.\n *\n * Wrapped in try/catch — bridge-write failure must not break a config save.\n */\nfunction writeDashboardBridge(config: SherwoodConfig): void {\n try {\n let agentWallet: string | null = null;\n if (config.privateKey) {\n const key = config.privateKey.startsWith(\"0x\")\n ? (config.privateKey as `0x${string}`)\n : (`0x${config.privateKey}` as `0x${string}`);\n agentWallet = privateKeyToAccount(key).address;\n }\n const bridge = {\n version: 1,\n agentWallet,\n funds: config.funds ?? {},\n primaryFund: config.primaryFund ?? {},\n };\n fs.writeFileSync(\n DASHBOARD_BRIDGE_PATH,\n JSON.stringify(bridge, null, 2),\n { mode: 0o600 },\n );\n } catch {\n // Non-fatal: plugin will fall back to manual subdomain entry.\n }\n}\n\nexport function cacheGroupId(subdomain: string, groupId: string): void {\n const config = loadConfig();\n config.groupCache[subdomain] = groupId;\n saveConfig(config);\n}\n\nexport function getCachedGroupId(subdomain: string): string | undefined {\n const config = loadConfig();\n return config.groupCache[subdomain];\n}\n\nexport function invalidateCachedGroupId(subdomain: string): void {\n const config = loadConfig();\n if (config.groupCache[subdomain]) {\n delete config.groupCache[subdomain];\n saveConfig(config);\n }\n}\n\nexport function setVeniceApiKey(apiKey: string): void {\n const config = loadConfig();\n config.veniceApiKey = apiKey;\n saveConfig(config);\n}\n\nexport function getVeniceApiKey(): string | undefined {\n return resolveSetting(\"veniceApiKey\", loadConfig(), process.env);\n}\n\n// ── Anthropic API Key ──\n\nexport function setAnthropicApiKey(apiKey: string): void {\n const config = loadConfig();\n config.anthropicApiKey = apiKey;\n saveConfig(config);\n}\n\nexport function getAnthropicApiKey(): string | undefined {\n return resolveSetting(\"anthropicApiKey\", loadConfig(), process.env);\n}\n\n/**\n * Bind an agent0-minted (or loaded) identity. Clears any previously linked\n * Virtuals state — otherwise `fund join` would emit a vid tag mixing the new\n * agent0 token with the stale economyOS wallet/binding (renders ✘ to\n * creators) and `identity status` would misreport the provider.\n */\nexport function setAgentId(agentId: number): void {\n const config = loadConfig();\n config.agentId = agentId;\n delete config.identityProvider;\n delete config.identityChainId;\n delete config.virtuals;\n saveConfig(config);\n}\n\n/**\n * Persist a linked Virtuals economyOS identity. Sets the ERC-8004 token ID\n * as the active agentId and stamps provider + issuing chain alongside it.\n */\nexport function setVirtualsIdentity(\n tokenId: number,\n issuingChainId: number,\n identity: VirtualsIdentity,\n): void {\n const config = loadConfig();\n config.agentId = tokenId;\n config.identityProvider = \"virtuals\";\n config.identityChainId = issuingChainId;\n config.virtuals = identity;\n saveConfig(config);\n}\n\nexport function getVirtualsIdentity(): VirtualsIdentity | undefined {\n return loadConfig().virtuals;\n}\n\n/** Identity provider for the saved agentId. Absent field ⇒ legacy agent0 mint. */\nexport function getIdentityProvider(): \"agent0\" | \"virtuals\" {\n return loadConfig().identityProvider ?? \"agent0\";\n}\n\nexport function getIdentityChainId(): number | undefined {\n return loadConfig().identityChainId;\n}\n\nexport function getAgentId(): number | undefined {\n return loadConfig().agentId;\n}\n\nexport function setPrivateKey(key: string): void {\n const config = loadConfig();\n config.privateKey = key.startsWith(\"0x\") ? key : `0x${key}`;\n saveConfig(config);\n}\n\n/**\n * Resolve the signing key (config → PRIVATE_KEY env, 0x-normalized) or\n * throw with the canonical setup hint. Every path that signs or derives\n * identity from the key (viem clients, Agent0 SDK, XMTP) must use this,\n * so they can never resolve different keys.\n */\nexport function requirePrivateKey(): `0x${string}` {\n const key = resolveSetting(\"privateKey\", loadConfig(), process.env);\n if (!key) {\n throw new Error(\n \"Private key not found. Run 'sherwood config set --private-key <key>' or set PRIVATE_KEY env var.\",\n );\n }\n return key as `0x${string}`;\n}\n\n// ── Uniswap Trading API Key ──\n\nexport function setUniswapApiKey(apiKey: string): void {\n const config = loadConfig();\n config.uniswapApiKey = apiKey;\n saveConfig(config);\n}\n\nexport function getUniswapApiKey(): string | undefined {\n return resolveSetting(\"uniswapApiKey\", loadConfig(), process.env);\n}\n\n// ── Per-network RPC URLs ──\n\nexport function getConfigRpcUrl(network: string): string | undefined {\n return loadConfig().rpc?.[network];\n}\n\nexport function setConfigRpcUrl(network: string, url: string): void {\n const config = loadConfig();\n if (!config.rpc) config.rpc = {};\n config.rpc[network] = url;\n saveConfig(config);\n}\n\n// ── Per-chain contract addresses ──\n\nexport function getChainContracts(chainId: number): ChainContracts {\n const config = loadConfig();\n return config.contracts?.[String(chainId)] ?? {};\n}\n\nexport function getNotifyTo(): string | undefined {\n return loadConfig().notifyTo;\n}\n\nexport function setNotifyTo(id: string): void {\n const config = loadConfig();\n config.notifyTo = id;\n saveConfig(config);\n}\n\nexport function setChainContract(\n chainId: number,\n key: keyof ChainContracts,\n value: string,\n): void {\n const config = loadConfig();\n if (!config.contracts) config.contracts = {};\n const cid = String(chainId);\n if (!config.contracts[cid]) config.contracts[cid] = {};\n config.contracts[cid][key] = value;\n saveConfig(config);\n}\n\n// ── Fund Membership ──\n\n/**\n * Add (or update) a fund membership. Deduplicates by subdomain.\n * Automatically sets it as primary if it's the first fund on this chain.\n */\nexport function addFund(\n chainId: number,\n membership: FundMembership,\n): void {\n const config = loadConfig();\n const cid = String(chainId);\n if (!config.funds) config.funds = {};\n if (!config.funds[cid]) config.funds[cid] = [];\n\n // Upsert — replace existing entry with same subdomain\n const idx = config.funds[cid].findIndex(\n (s) => s.subdomain === membership.subdomain,\n );\n if (idx >= 0) {\n config.funds[cid][idx] = membership;\n } else {\n config.funds[cid].push(membership);\n }\n\n // Auto-set as primary if it's the first fund (or no primary set)\n if (!config.primaryFund) config.primaryFund = {};\n if (!config.primaryFund[cid]) {\n config.primaryFund[cid] = membership.subdomain;\n }\n\n saveConfig(config);\n}\n\n/** Get all fund memberships for a chain. */\nexport function getFunds(chainId: number): FundMembership[] {\n const config = loadConfig();\n return config.funds?.[String(chainId)] ?? [];\n}\n\n/** Set which fund is the active/primary one for CLI commands. */\nexport function setPrimaryFund(\n chainId: number,\n subdomain: string,\n): void {\n const config = loadConfig();\n if (!config.primaryFund) config.primaryFund = {};\n config.primaryFund[String(chainId)] = subdomain;\n saveConfig(config);\n}\n\n/**\n * Get the primary fund for this chain.\n * Falls back to ChainContracts.vault for backwards compat with older configs.\n */\nexport function getPrimaryFund(\n chainId: number,\n): FundMembership | undefined {\n const config = loadConfig();\n const cid = String(chainId);\n\n // Check new funds store first\n const primarySubdomain = config.primaryFund?.[cid];\n if (primarySubdomain && config.funds?.[cid]) {\n const found = config.funds[cid].find(\n (s) => s.subdomain === primarySubdomain,\n );\n if (found) return found;\n }\n\n // Backwards compat: if funds list has entries but no primary, use the first one\n if (config.funds?.[cid]?.length) {\n return config.funds[cid][0];\n }\n\n // Legacy fallback: config only has a vault address, no subdomain\n const vault = config.contracts?.[cid]?.vault;\n if (vault) {\n return { subdomain: \"\", vault, role: \"creator\" };\n }\n\n return undefined;\n}\n\n// ── Swap Route Cache ──\n\nfunction swapRouteKey(asset: string, token: string): string {\n return `${asset.toLowerCase()}→${token.toLowerCase()}`;\n}\n\n/** Get a cached swap route for a token pair on a chain. */\nexport function getCachedSwapRoute(chainId: number, asset: string, token: string): SwapRoute | undefined {\n const config = loadConfig();\n return config.swapRoutes?.[String(chainId)]?.[swapRouteKey(asset, token)];\n}\n\n/** Save a detected swap route to the config cache. */\nexport function cacheSwapRoute(chainId: number, asset: string, token: string, route: SwapRoute): void {\n const config = loadConfig();\n const cid = String(chainId);\n if (!config.swapRoutes) config.swapRoutes = {};\n if (!config.swapRoutes[cid]) config.swapRoutes[cid] = {};\n config.swapRoutes[cid][swapRouteKey(asset, token)] = route;\n saveConfig(config);\n}\n\n/** Clear all cached swap routes for a chain (e.g. after pool migration). */\nexport function clearSwapRoutes(chainId: number): void {\n const config = loadConfig();\n delete config.swapRoutes?.[String(chainId)];\n saveConfig(config);\n}\n","/**\n * Single owner of config → env resolution for user settings. Every\n * config-or-env setting resolves through the table below — accessors in\n * config.ts and requirePrivateKey() delegate here.\n */\n\nimport { type SherwoodConfig } from \"./config.js\";\n\ntype Env = Record<string, string | undefined>;\n\nconst hex0x = (v: string): string => (v.startsWith(\"0x\") ? v : `0x${v}`);\n\ninterface SettingSpec {\n fromConfig: (c: Partial<SherwoodConfig>) => string | undefined;\n envVar?: string;\n normalize?: (v: string) => string;\n}\n\nconst SETTINGS = {\n privateKey: {\n fromConfig: (c) => c.privateKey,\n envVar: \"PRIVATE_KEY\",\n normalize: hex0x,\n },\n veniceApiKey: {\n fromConfig: (c) => c.veniceApiKey,\n envVar: \"VENICE_API_KEY\",\n },\n anthropicApiKey: {\n fromConfig: (c) => c.anthropicApiKey,\n envVar: \"ANTHROPIC_API_KEY\",\n },\n uniswapApiKey: {\n fromConfig: (c) => c.uniswapApiKey,\n envVar: \"UNISWAP_API_KEY\",\n },\n} satisfies Record<string, SettingSpec>;\n\nexport type SettingKey = keyof typeof SETTINGS;\n\nexport function resolveSetting(\n key: SettingKey,\n config: Partial<SherwoodConfig>,\n env: Env,\n): string | undefined {\n const spec: SettingSpec = SETTINGS[key];\n // Empty string counts as absent on both sources: an empty config key\n // falls through to the env, and a blank `PRIVATE_KEY=` dotenv line\n // resolves to undefined (so callers show the setup hint) instead of\n // normalizing to a bare \"0x\".\n const raw =\n spec.fromConfig(config) || (spec.envVar ? env[spec.envVar] : undefined);\n if (!raw) return undefined;\n return spec.normalize ? spec.normalize(raw) : raw;\n}\n"],"mappings":";AAMA,OAAO,QAAQ;AACf,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,SAAS,2BAA2B;;;ACCpC,IAAM,QAAQ,CAAC,MAAuB,EAAE,WAAW,IAAI,IAAI,IAAI,KAAK,CAAC;AAQrE,IAAM,WAAW;AAAA,EACf,YAAY;AAAA,IACV,YAAY,CAAC,MAAM,EAAE;AAAA,IACrB,QAAQ;AAAA,IACR,WAAW;AAAA,EACb;AAAA,EACA,cAAc;AAAA,IACZ,YAAY,CAAC,MAAM,EAAE;AAAA,IACrB,QAAQ;AAAA,EACV;AAAA,EACA,iBAAiB;AAAA,IACf,YAAY,CAAC,MAAM,EAAE;AAAA,IACrB,QAAQ;AAAA,EACV;AAAA,EACA,eAAe;AAAA,IACb,YAAY,CAAC,MAAM,EAAE;AAAA,IACrB,QAAQ;AAAA,EACV;AACF;AAIO,SAAS,eACd,KACA,QACA,KACoB;AACpB,QAAM,OAAoB,SAAS,GAAG;AAKtC,QAAM,MACJ,KAAK,WAAW,MAAM,MAAM,KAAK,SAAS,IAAI,KAAK,MAAM,IAAI;AAC/D,MAAI,CAAC,IAAK,QAAO;AACjB,SAAO,KAAK,YAAY,KAAK,UAAU,GAAG,IAAI;AAChD;;;AD1CA,IAAM,aAAa,KAAK,KAAK,GAAG,QAAQ,GAAG,WAAW;AACtD,IAAM,cAAc,KAAK,KAAK,YAAY,aAAa;AACvD,IAAM,wBAAwB,KAAK,KAAK,YAAY,gBAAgB;AAwD7D,SAAS,aAA6B;AAC3C,MAAI,GAAG,WAAW,WAAW,GAAG;AAC9B,UAAM,SAA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AI,aAAa,OAAO,KAAK,CAAC;AAC1E;AAGO,SAAS,eAAe,SAAiB,OAAe,OAAe,OAAwB;AACpG,QAAM,SAAS,WAAW;AAC1B,QAAM,MAAM,OAAO,OAAO;AAC1B,MAAI,CAAC,OAAO,WAAY,QAAO,aAAa,CAAC;AAC7C,MAAI,CAAC,OAAO,WAAW,GAAG,EAAG,QAAO,WAAW,GAAG,IAAI,CAAC;AACvD,SAAO,WAAW,GAAG,EAAE,aAAa,OAAO,KAAK,CAAC,IAAI;AACrD,aAAW,MAAM;AACnB;AAGO,SAAS,gBAAgB,SAAuB;AACrD,QAAM,SAAS,WAAW;AAC1B,SAAO,OAAO,aAAa,OAAO,OAAO,CAAC;AAC1C,aAAW,MAAM;AACnB;","names":[]}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SHERWOOD
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I6X6NL65.js";
|
|
4
4
|
import {
|
|
5
5
|
getAccount,
|
|
6
6
|
getPublicClient,
|
|
7
7
|
waitForReceipt,
|
|
8
8
|
writeContractWithRetry
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FP5DZCOM.js";
|
|
10
10
|
import {
|
|
11
11
|
getChain
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LSVCF24W.js";
|
|
13
13
|
import {
|
|
14
14
|
PROTOCOL_CONFIG_ABI,
|
|
15
15
|
SYNDICATE_FACTORY_ABI,
|
|
@@ -429,4 +429,4 @@ export {
|
|
|
429
429
|
vetoProposal,
|
|
430
430
|
setProtocolFeeBps
|
|
431
431
|
};
|
|
432
|
-
//# sourceMappingURL=chunk-
|
|
432
|
+
//# sourceMappingURL=chunk-EVTDWMXQ.js.map
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getChain,
|
|
3
3
|
getMinGasReserve,
|
|
4
4
|
getRpcUrls
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LSVCF24W.js";
|
|
6
6
|
import {
|
|
7
7
|
requirePrivateKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3TZIOAPH.js";
|
|
9
9
|
|
|
10
10
|
// src/lib/client.ts
|
|
11
11
|
import { createPublicClient, createWalletClient, fallback, http } from "viem";
|
|
@@ -524,4 +524,4 @@ export {
|
|
|
524
524
|
writeContractWithRetry,
|
|
525
525
|
waitForReceipt
|
|
526
526
|
};
|
|
527
|
-
//# sourceMappingURL=chunk-
|
|
527
|
+
//# sourceMappingURL=chunk-FP5DZCOM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getNetwork
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LSVCF24W.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/addresses.ts
|
|
6
6
|
import { isAddress } from "viem";
|
|
@@ -305,4 +305,4 @@ export {
|
|
|
305
305
|
SYNTHRA,
|
|
306
306
|
CHAINLINK
|
|
307
307
|
};
|
|
308
|
-
//# sourceMappingURL=chunk-
|
|
308
|
+
//# sourceMappingURL=chunk-I6X6NL65.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigRpcUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3TZIOAPH.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/network.ts
|
|
6
6
|
import { defineChain, parseEther } from "viem";
|
|
@@ -118,4 +118,4 @@ export {
|
|
|
118
118
|
getExplorerUrl,
|
|
119
119
|
isTestnet
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
121
|
+
//# sourceMappingURL=chunk-LSVCF24W.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLogsChunked
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MEMYGZWQ.js";
|
|
4
4
|
import {
|
|
5
5
|
TOKENS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I6X6NL65.js";
|
|
7
7
|
import {
|
|
8
8
|
GAS_UNITS,
|
|
9
9
|
estimateGasCushion,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
getWalletClient,
|
|
13
13
|
waitForReceipt,
|
|
14
14
|
writeContractWithRetry
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FP5DZCOM.js";
|
|
16
16
|
import {
|
|
17
17
|
getChain
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LSVCF24W.js";
|
|
19
19
|
import {
|
|
20
20
|
getChainContracts
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3TZIOAPH.js";
|
|
22
22
|
import {
|
|
23
23
|
ERC20_ABI,
|
|
24
24
|
SYNDICATE_VAULT_ABI
|
|
@@ -557,4 +557,4 @@ export {
|
|
|
557
557
|
registerAgent,
|
|
558
558
|
getVaultInfo
|
|
559
559
|
};
|
|
560
|
-
//# sourceMappingURL=chunk-
|
|
560
|
+
//# sourceMappingURL=chunk-M7CGUYUX.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PROPOSAL_STATES,
|
|
3
3
|
getProposal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EVTDWMXQ.js";
|
|
5
5
|
import {
|
|
6
6
|
getPublicClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FP5DZCOM.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveMetadataSummary
|
|
10
10
|
} from "./chunk-XDGCHURW.js";
|
|
@@ -170,4 +170,4 @@ export {
|
|
|
170
170
|
getCurrentBlock,
|
|
171
171
|
enrichProposalEvents
|
|
172
172
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-MEMYGZWQ.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAccount
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FP5DZCOM.js";
|
|
4
4
|
import {
|
|
5
5
|
getVeniceApiKey,
|
|
6
6
|
setVeniceApiKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3TZIOAPH.js";
|
|
8
8
|
|
|
9
9
|
// src/lib/venice.ts
|
|
10
10
|
import chalk from "chalk";
|
|
@@ -186,4 +186,4 @@ export {
|
|
|
186
186
|
chatCompletion,
|
|
187
187
|
listModels
|
|
188
188
|
};
|
|
189
|
-
//# sourceMappingURL=chunk-
|
|
189
|
+
//# sourceMappingURL=chunk-RGFA732Z.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAccount
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FP5DZCOM.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/x402.ts
|
|
6
6
|
var _x402Fetch = null;
|
|
@@ -635,4 +635,4 @@ export {
|
|
|
635
635
|
NansenProvider,
|
|
636
636
|
getResearchProvider
|
|
637
637
|
};
|
|
638
|
-
//# sourceMappingURL=chunk-
|
|
638
|
+
//# sourceMappingURL=chunk-T2HVR3O6.js.map
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
UNISWAP,
|
|
9
9
|
VENICE,
|
|
10
10
|
robinhoodEquityMaxAge
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I6X6NL65.js";
|
|
12
12
|
import {
|
|
13
13
|
getPublicClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FP5DZCOM.js";
|
|
15
15
|
import {
|
|
16
16
|
getNetwork
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LSVCF24W.js";
|
|
18
18
|
import {
|
|
19
19
|
BASE_STRATEGY_ABI,
|
|
20
20
|
ERC20_ABI,
|
|
@@ -1250,4 +1250,4 @@ export {
|
|
|
1250
1250
|
applySlippage,
|
|
1251
1251
|
encodeSwapPath
|
|
1252
1252
|
};
|
|
1253
|
-
//# sourceMappingURL=chunk-
|
|
1253
|
+
//# sourceMappingURL=chunk-TI64P5R4.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ENS,
|
|
3
3
|
SHERWOOD
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I6X6NL65.js";
|
|
5
5
|
import {
|
|
6
6
|
getPublicClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FP5DZCOM.js";
|
|
8
8
|
import {
|
|
9
9
|
VALID_NETWORKS,
|
|
10
10
|
withNetwork
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LSVCF24W.js";
|
|
12
12
|
import {
|
|
13
13
|
L2_REGISTRY_ABI,
|
|
14
14
|
SYNDICATE_FACTORY_ABI
|
|
@@ -111,4 +111,4 @@ export {
|
|
|
111
111
|
setTextRecord,
|
|
112
112
|
getTextRecord
|
|
113
113
|
};
|
|
114
|
-
//# sourceMappingURL=chunk-
|
|
114
|
+
//# sourceMappingURL=chunk-TN7J5LXW.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EAS_CONTRACTS,
|
|
3
3
|
EAS_SCHEMAS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I6X6NL65.js";
|
|
5
5
|
import {
|
|
6
6
|
getAccount,
|
|
7
7
|
getPublicClient,
|
|
8
8
|
waitForReceipt,
|
|
9
9
|
writeContractWithRetry
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FP5DZCOM.js";
|
|
11
11
|
import {
|
|
12
12
|
CHAIN_REGISTRY,
|
|
13
13
|
getChain,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
getNetwork,
|
|
16
16
|
isTestnet,
|
|
17
17
|
withNetwork
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LSVCF24W.js";
|
|
19
19
|
import {
|
|
20
20
|
EAS_ABI
|
|
21
21
|
} from "./chunk-TU655ZTV.js";
|
|
@@ -453,4 +453,4 @@ export {
|
|
|
453
453
|
queryApprovals,
|
|
454
454
|
queryJoinRequests
|
|
455
455
|
};
|
|
456
|
-
//# sourceMappingURL=chunk-
|
|
456
|
+
//# sourceMappingURL=chunk-WCX7DKLQ.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SHERWOOD
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I6X6NL65.js";
|
|
4
4
|
import {
|
|
5
5
|
getAccount,
|
|
6
6
|
getPublicClient,
|
|
7
7
|
waitForReceipt,
|
|
8
8
|
writeContractWithRetry
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FP5DZCOM.js";
|
|
10
10
|
import {
|
|
11
11
|
getChain
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LSVCF24W.js";
|
|
13
13
|
import {
|
|
14
14
|
SYNDICATE_FACTORY_ABI
|
|
15
15
|
} from "./chunk-TU655ZTV.js";
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
getActiveFunds,
|
|
145
145
|
updateMetadata
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-WGXZ623D.js.map
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
unstickWallet,
|
|
13
13
|
waitForReceipt,
|
|
14
14
|
writeContractWithRetry
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-FP5DZCOM.js";
|
|
16
|
+
import "./chunk-LSVCF24W.js";
|
|
17
|
+
import "./chunk-3TZIOAPH.js";
|
|
18
18
|
export {
|
|
19
19
|
GAS_UNITS,
|
|
20
20
|
detectStuckNonce,
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
waitForReceipt,
|
|
31
31
|
writeContractWithRetry
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=client-
|
|
33
|
+
//# sourceMappingURL=client-GRPJRISD.js.map
|
|
@@ -10,10 +10,13 @@ import {
|
|
|
10
10
|
getChainContracts,
|
|
11
11
|
getConfigRpcUrl,
|
|
12
12
|
getFunds,
|
|
13
|
+
getIdentityChainId,
|
|
14
|
+
getIdentityProvider,
|
|
13
15
|
getNotifyTo,
|
|
14
16
|
getPrimaryFund,
|
|
15
17
|
getUniswapApiKey,
|
|
16
18
|
getVeniceApiKey,
|
|
19
|
+
getVirtualsIdentity,
|
|
17
20
|
invalidateCachedGroupId,
|
|
18
21
|
loadConfig,
|
|
19
22
|
requirePrivateKey,
|
|
@@ -26,8 +29,9 @@ import {
|
|
|
26
29
|
setPrimaryFund,
|
|
27
30
|
setPrivateKey,
|
|
28
31
|
setUniswapApiKey,
|
|
29
|
-
setVeniceApiKey
|
|
30
|
-
|
|
32
|
+
setVeniceApiKey,
|
|
33
|
+
setVirtualsIdentity
|
|
34
|
+
} from "./chunk-3TZIOAPH.js";
|
|
31
35
|
export {
|
|
32
36
|
addFund,
|
|
33
37
|
cacheGroupId,
|
|
@@ -40,10 +44,13 @@ export {
|
|
|
40
44
|
getChainContracts,
|
|
41
45
|
getConfigRpcUrl,
|
|
42
46
|
getFunds,
|
|
47
|
+
getIdentityChainId,
|
|
48
|
+
getIdentityProvider,
|
|
43
49
|
getNotifyTo,
|
|
44
50
|
getPrimaryFund,
|
|
45
51
|
getUniswapApiKey,
|
|
46
52
|
getVeniceApiKey,
|
|
53
|
+
getVirtualsIdentity,
|
|
47
54
|
invalidateCachedGroupId,
|
|
48
55
|
loadConfig,
|
|
49
56
|
requirePrivateKey,
|
|
@@ -56,6 +63,7 @@ export {
|
|
|
56
63
|
setPrimaryFund,
|
|
57
64
|
setPrivateKey,
|
|
58
65
|
setUniswapApiKey,
|
|
59
|
-
setVeniceApiKey
|
|
66
|
+
setVeniceApiKey,
|
|
67
|
+
setVirtualsIdentity
|
|
60
68
|
};
|
|
61
|
-
//# sourceMappingURL=config-
|
|
69
|
+
//# sourceMappingURL=config-ZGFS4I7K.js.map
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
revokeAttestation,
|
|
18
18
|
revokeJoinRequest,
|
|
19
19
|
stripReferrerPrefix
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-WCX7DKLQ.js";
|
|
21
|
+
import "./chunk-I6X6NL65.js";
|
|
22
|
+
import "./chunk-FP5DZCOM.js";
|
|
23
|
+
import "./chunk-LSVCF24W.js";
|
|
24
|
+
import "./chunk-3TZIOAPH.js";
|
|
25
25
|
import "./chunk-TU655ZTV.js";
|
|
26
26
|
export {
|
|
27
27
|
createApproval,
|
|
@@ -43,4 +43,4 @@ export {
|
|
|
43
43
|
revokeJoinRequest,
|
|
44
44
|
stripReferrerPrefix
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=eas-
|
|
46
|
+
//# sourceMappingURL=eas-4RIW3IS4.js.map
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
settleProposal,
|
|
37
37
|
vetoProposal,
|
|
38
38
|
vote
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-EVTDWMXQ.js";
|
|
40
|
+
import "./chunk-I6X6NL65.js";
|
|
41
|
+
import "./chunk-FP5DZCOM.js";
|
|
42
|
+
import "./chunk-LSVCF24W.js";
|
|
43
|
+
import "./chunk-3TZIOAPH.js";
|
|
44
44
|
import "./chunk-TU655ZTV.js";
|
|
45
45
|
export {
|
|
46
46
|
PROPOSAL_STATE,
|
|
@@ -81,4 +81,4 @@ export {
|
|
|
81
81
|
vetoProposal,
|
|
82
82
|
vote
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=governor-
|
|
84
|
+
//# sourceMappingURL=governor-7KETSN47.js.map
|