perp-cli 0.12.0 → 0.12.1
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/guardrail/perp-guardrail.js +0 -0
- package/dist/index.js +13 -0
- package/dist/mcp-server.js +0 -0
- package/package.json +1 -1
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -307,6 +307,19 @@ async function _initWithOws(exchange, owsWalletName, isTestnet, opts, owsKeyToke
|
|
|
307
307
|
const { LighterAdapter } = await import("./exchanges/lighter.js");
|
|
308
308
|
_lighterAdapter = new LighterAdapter("", isTestnet);
|
|
309
309
|
_lighterAdapter.setSigner(OwsEvmSigner.create(owsWalletName, passphrase));
|
|
310
|
+
// Tier 1: agent if registered (mirrors getAdapter / getAdapterForExchange).
|
|
311
|
+
// Without this, _initWithOws would skip Tier 1 and fall through to
|
|
312
|
+
// auto-setup-at-slot-4 which is wrong for agent users (and breaks under
|
|
313
|
+
// SDK 1.0.11+ where signChangePubKey signature changed).
|
|
314
|
+
const { getAgent: getLtAgentOws } = await import("./agent-wallet/store.js");
|
|
315
|
+
const ltAgentMetaOws = getLtAgentOws("lighter");
|
|
316
|
+
if (ltAgentMetaOws && !noAgent) {
|
|
317
|
+
const { loadLighterKey } = await import("./agent-wallet/lighter-keystore.js");
|
|
318
|
+
const ltL2KeyOws = loadLighterKey(ltAgentMetaOws.accountIndex, ltAgentMetaOws.apiKeyIndex, "");
|
|
319
|
+
_lighterAdapter.setAgentSigner(ltAgentMetaOws, ltL2KeyOws);
|
|
320
|
+
}
|
|
321
|
+
if (noAgent)
|
|
322
|
+
_lighterAdapter.setNoAgent(true);
|
|
310
323
|
await _lighterAdapter.init();
|
|
311
324
|
_adapter = _lighterAdapter;
|
|
312
325
|
return _adapter;
|
package/dist/mcp-server.js
CHANGED
|
File without changes
|