@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 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://box-v2.api.decent.xyz` | SwapsXYZ API base URL |
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. |
@@ -7,7 +7,7 @@ export interface MoonPayTradeConfig {
7
7
  apiKey: string;
8
8
  /**
9
9
  * Base URL for SwapsXYZ API requests.
10
- * @default https://box-v2.api.decent.xyz
10
+ * @default https://api-v2.swaps.xyz
11
11
  */
12
12
  baseUrl?: string;
13
13
  /**
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://box-v2.api.decent.xyz";
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonpay/wdk-protocol-swidge-moonpay-trade",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "WDK Swidge protocol implementation for MoonPay Trade",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",