@circle-fin/provider-cctp-v2 1.0.4 → 1.1.0
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 +40 -0
- package/index.cjs +2439 -1379
- package/index.d.ts +149 -10
- package/index.mjs +2439 -1379
- package/package.json +13 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @circle-fin/provider-cctp-v2
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add `reAttest` method to `CCTPV2BridgingProvider` for handling expired attestations.
|
|
8
|
+
|
|
9
|
+
When a CCTP v2 attestation expires before the mint transaction can be completed, users can now call `reAttest()` to request a fresh attestation using the original burn transaction hash.
|
|
10
|
+
|
|
11
|
+
- **Enhanced bridge estimate response**: `EstimateResult` now includes `token`, `amount`, `source`, `destination` fields to provide complete transfer information alongside cost estimates.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Fix fast burn fee calculation to handle decimal basis points from IRIS API
|
|
16
|
+
|
|
17
|
+
The IRIS API returns `minimumFee` as decimal basis points (e.g., `"1.3"` for 1.3 bps), but the code was attempting to convert this directly to `BigInt`, which fails for non-integer values. This caused `"Max fee must be less than amount"` errors during FAST transfers.
|
|
18
|
+
|
|
19
|
+
## 1.0.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Improved how the retry function handles bridge transfers stuck in a pending state:
|
|
24
|
+
- The retry function now properly waits for pending transactions to complete before continuing with the next steps, instead of failing or skipping them
|
|
25
|
+
- Validates that required data (like transaction hashes) is present before attempting to continue, throwing clear errors immediately instead of failing silently
|
|
26
|
+
- Error messages now clearly indicate when "user action is required" for non-actionable states
|
|
27
|
+
- Validation errors during pending state resolution are no longer silently caught and now surface properly
|
|
28
|
+
|
|
29
|
+
- Fix retry functionality when a custom `recipientAddress` is specified in bridge parameters. Previously, retry operations would fail attestation validation because the `recipientAddress` was not preserved in the bridge result, causing the system to use the adapter address instead of the originally specified recipient.
|
|
30
|
+
- Validation errors now use standardized error codes for consistent error handling. All validation failures return the same `KitError` structure as other SDK errors.
|
|
31
|
+
|
|
32
|
+
**Migration:** If you're catching validation errors, update your error handling:
|
|
33
|
+
- Check `error.code === 1098` instead of `instanceof ValidationError`
|
|
34
|
+
- Access details via `error.cause?.trace?.validationErrors` instead of `error.errors`
|
|
35
|
+
|
|
36
|
+
The legacy `ValidationError` class remains available for backward compatibility.
|
|
37
|
+
|
|
38
|
+
- **Improved retry() behavior for completed bridges**
|
|
39
|
+
|
|
40
|
+
-The `retry()` method now handles completed bridge operations gracefully:
|
|
41
|
+
Calling `retry()` on an already-completed bridge now returns successfully instead of throwing an error
|
|
42
|
+
|
|
3
43
|
## 1.0.4
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|