@moonpay/wdk-protocol-swidge-moonpay-trade 0.1.0 → 0.1.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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/MoonPayTradeSwidgeProtocol.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.1] - 2026-07-09
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Default `baseUrl` changed from testing URL `box-v2.api.decent.xyz` to public `api-v2.swaps.xyz`
|
|
14
|
+
- Renamed env vars: `BOX_API_KEY` → `SWAPS_XYZ_KEY`, `BOX_API_BASE_URL` → `SWAPS_XYZ_BASE_URL`
|
|
15
|
+
|
|
10
16
|
## [0.1.0] - 2026-07-07
|
|
11
17
|
|
|
12
18
|
### Added
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ const tokens = await protocol.getSupportedTokens({ fromChain: 1 });
|
|
|
55
55
|
| Option | Type | Required | Default | Description |
|
|
56
56
|
|---|---|---|---|---|
|
|
57
57
|
| `apiKey` | `string` | ✅ | — | `x-api-key` credential for SwapsXYZ API |
|
|
58
|
-
| `baseUrl` | `string` | | `https://
|
|
58
|
+
| `baseUrl` | `string` | | `https://api-v2.swaps.xyz` | SwapsXYZ API base URL |
|
|
59
59
|
| `maxProtocolFeeBps` | `number \| bigint` | | — | Reject swidge if protocol fee exceeds this bps |
|
|
60
60
|
| `maxNetworkFeeBps` | `number \| bigint` | | — | Reject swidge if network fee exceeds this bps |
|
|
61
61
|
| `cacheTtlMs` | `number` | | `600000` (10 min) | Token/chain list cache TTL. Set `0` to disable. |
|
package/dist/index.js
CHANGED
|
@@ -188,7 +188,7 @@ function toSwidgeStatusResult(response) {
|
|
|
188
188
|
transactions: transactions.length > 0 ? transactions : void 0
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
var DEFAULT_BASE_URL = "https://
|
|
191
|
+
var DEFAULT_BASE_URL = "https://api-v2.swaps.xyz";
|
|
192
192
|
var DEFAULT_SLIPPAGE = 5e-3;
|
|
193
193
|
var DEFAULT_DECIMALS = 18;
|
|
194
194
|
var DEFAULT_CACHE_TTL_MS = 10 * 60 * 1e3;
|