Skip to content

Commit 72dc168

Browse files
committed
fix(sdk): restore wallet_address/signer and wire websocket config
- Restore wallet_address and signer parameters in Python generator - Pass websocket config to SidecarWsClient in Python and TypeScript - Store websocket config on Exchange class - Add config parameter to SidecarWsClient constructor This fixes the hosted wallet regression and ensures websocket config is actually consumed by the transport layer. Fixes #1052 Fixes #1053
1 parent 072572a commit 72dc168

5 files changed

Lines changed: 181 additions & 12 deletions

File tree

core/scripts/generate-python-exchanges.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,15 @@ function generateClass(exchange) {
173173
constructorParams.push('base_url: Optional[str] = None');
174174
constructorParams.push('auto_start_server: Optional[bool] = None');
175175
constructorParams.push('pmxt_api_key: Optional[str] = None');
176+
constructorParams.push('wallet_address: Optional[str] = None');
177+
constructorParams.push('signer: Optional[object] = None');
178+
constructorParams.push('websocket: Optional[dict] = None');
176179
superArgs.push('base_url=base_url');
177180
superArgs.push('auto_start_server=auto_start_server');
178181
superArgs.push('pmxt_api_key=pmxt_api_key');
182+
superArgs.push('wallet_address=wallet_address');
183+
superArgs.push('signer=signer');
184+
superArgs.push('websocket=websocket');
179185

180186
const docLines = [];
181187
if (creds.apiKey) docLines.push(' api_key: API key for authentication (optional)');
@@ -192,6 +198,9 @@ function generateClass(exchange) {
192198
docLines.push(' base_url: Base URL of the PMXT sidecar server');
193199
docLines.push(' auto_start_server: Automatically start server if not running (default: True)');
194200
docLines.push(' pmxt_api_key: Hosted PMXT API key (optional; enables hosted mode)');
201+
docLines.push(' wallet_address: Wallet address for hosted operations (optional)');
202+
docLines.push(' signer: Custom signer for hosted operations (optional)');
203+
docLines.push(' websocket: WebSocket configuration dict (optional)');
195204

196205
const indent4 = s => ` ${s}`;
197206
const indent8 = s => ` ${s}`;

0 commit comments

Comments
 (0)