@rhea-finance/cross-chain-aggregation-dex 2.0.0 → 2.0.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/README.md +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,6 +68,8 @@ const result = await clientWithExecutor.executeSwap({
|
|
|
68
68
|
});
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
|
|
72
|
+
|
|
71
73
|
### Executor adapters
|
|
72
74
|
|
|
73
75
|
Each executor is imported from its own subpath and accepts a wallet-neutral adapter. The application decides whether that adapter wraps a browser wallet, server signer, RPC service, or HSM.
|
|
@@ -135,8 +137,6 @@ Zcash adapters may return `{ requiresUserAction: true }` for legacy wallets that
|
|
|
135
137
|
|
|
136
138
|
MCA deposit and withdrawal are execution modes of the unified root API. Use the same `client.quote()`, `client.buildSwap()`, `client.swap()`, `client.report()`, and `client.getHistory()` methods as a regular swap. The SDK does not create MCA accounts or query lending positions.
|
|
137
139
|
|
|
138
|
-
HTTP endpoint、请求/响应 JSON 和 curl 示例见 [MCA Swap HTTP API 文档](docs/MCA_SWAP_HTTP_API.md)。SDK 调用方式见 [MCA Swap SDK 文档](docs/MCA_SWAP_API.md)。
|
|
139
|
-
|
|
140
140
|
### Deposit into an MCA
|
|
141
141
|
|
|
142
142
|
The destination asset address is the Burrow token id expected by the Swap API. Execution reuses the registered source-chain executor.
|
|
@@ -290,6 +290,8 @@ Raw methods preserve the unified API `data` shape:
|
|
|
290
290
|
- `reportRaw()`
|
|
291
291
|
- `getHistoryRaw()`
|
|
292
292
|
|
|
293
|
+
|
|
294
|
+
|
|
293
295
|
## Execution kinds
|
|
294
296
|
|
|
295
297
|
Build responses are validated and represented as a discriminated union:
|
|
@@ -314,6 +316,8 @@ The SDK core defines the executor contract and registry. Wallet-specific impleme
|
|
|
314
316
|
- The package contains no fixed API credential and never manages private keys or wallet recovery phrases.
|
|
315
317
|
- Use `AbortSignal` on network, build, execute, and polling calls when cancellation is required.
|
|
316
318
|
|
|
319
|
+
|
|
320
|
+
|
|
317
321
|
## Retry and logging
|
|
318
322
|
|
|
319
323
|
Quote, history, and order-status requests retry network errors, timeouts, HTTP 429, and retryable 5xx responses twice by default. Build, report, order submission, and wallet execution are never retried automatically.
|
|
@@ -359,4 +363,4 @@ The service handles sender and pagination. `getHistory({ status })` filters the
|
|
|
359
363
|
|
|
360
364
|
## License
|
|
361
365
|
|
|
362
|
-
MIT
|
|
366
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhea-finance/cross-chain-aggregation-dex",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "TypeScript SDK for a unified multi-chain Swap API with quote, transaction building, execution adapters, status, reporting, and history.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|