@circle-fin/provider-cctp-v2 1.8.3 → 1.8.4
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 +28 -10
- package/index.cjs +3203 -3371
- package/index.d.cts +6814 -0
- package/index.d.mts +6814 -0
- package/index.d.ts +47 -5
- package/index.mjs +3201 -3369
- package/package.json +12 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @circle-fin/provider-cctp-v2
|
|
2
2
|
|
|
3
|
+
## 1.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix forwarded-route support to depend only on the destination chain.
|
|
8
|
+
|
|
9
|
+
`supportsRoute(source, destination, 'USDC', true)` previously also required the
|
|
10
|
+
source chain's `cctp.forwarderSupported.source` to be `true`. Today's Forwarding
|
|
11
|
+
Service operates on the destination chain, so any CCTP v2 chain can originate a
|
|
12
|
+
forwarded transfer; the route check now gates only on the destination chain's
|
|
13
|
+
`cctp.forwarderSupported.destination`, matching the bridge execution path.
|
|
14
|
+
|
|
15
|
+
`cctp.forwarderSupported.source` is now `false` for every chain definition,
|
|
16
|
+
reflecting that source-side forwarding is not yet available. This corrects
|
|
17
|
+
metadata that previously implied source-side forwarding was supported.
|
|
18
|
+
|
|
19
|
+
Also surfaced through `@circle-fin/bridge-kit` and `@circle-fin/app-kit`.
|
|
20
|
+
|
|
3
21
|
## 1.8.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -262,19 +280,19 @@
|
|
|
262
280
|
```typescript
|
|
263
281
|
// Fast transfer with automatic fee calculation
|
|
264
282
|
const result = await provider.bridge({
|
|
265
|
-
source: { adapter: sourceAdapter, chain:
|
|
266
|
-
destination: { adapter: destAdapter, chain:
|
|
267
|
-
amount:
|
|
268
|
-
config: { transferSpeed:
|
|
269
|
-
})
|
|
283
|
+
source: { adapter: sourceAdapter, chain: "Ethereum" },
|
|
284
|
+
destination: { adapter: destAdapter, chain: "Base" },
|
|
285
|
+
amount: "10.0",
|
|
286
|
+
config: { transferSpeed: "FAST" },
|
|
287
|
+
});
|
|
270
288
|
|
|
271
289
|
// Slow transfer with zero fees
|
|
272
290
|
const result = await provider.bridge({
|
|
273
|
-
source: { adapter: sourceAdapter, chain:
|
|
274
|
-
destination: { adapter: destAdapter, chain:
|
|
275
|
-
amount:
|
|
276
|
-
config: { transferSpeed:
|
|
277
|
-
})
|
|
291
|
+
source: { adapter: sourceAdapter, chain: "Ethereum" },
|
|
292
|
+
destination: { adapter: destAdapter, chain: "Base" },
|
|
293
|
+
amount: "10.0",
|
|
294
|
+
config: { transferSpeed: "SLOW" },
|
|
295
|
+
});
|
|
278
296
|
```
|
|
279
297
|
|
|
280
298
|
## 🔄 Advanced Retry Support
|