@circle-fin/provider-cctp-v2 1.0.4 → 1.0.5
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 +24 -0
- package/index.cjs +2142 -1380
- package/index.d.ts +60 -9
- package/index.mjs +2142 -1380
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @circle-fin/provider-cctp-v2
|
|
2
2
|
|
|
3
|
+
## 1.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Improved how the retry function handles bridge transfers stuck in a pending state:
|
|
8
|
+
- The retry function now properly waits for pending transactions to complete before continuing with the next steps, instead of failing or skipping them
|
|
9
|
+
- Validates that required data (like transaction hashes) is present before attempting to continue, throwing clear errors immediately instead of failing silently
|
|
10
|
+
- Error messages now clearly indicate when "user action is required" for non-actionable states
|
|
11
|
+
- Validation errors during pending state resolution are no longer silently caught and now surface properly
|
|
12
|
+
|
|
13
|
+
- 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.
|
|
14
|
+
- Validation errors now use standardized error codes for consistent error handling. All validation failures return the same `KitError` structure as other SDK errors.
|
|
15
|
+
|
|
16
|
+
**Migration:** If you're catching validation errors, update your error handling:
|
|
17
|
+
- Check `error.code === 1098` instead of `instanceof ValidationError`
|
|
18
|
+
- Access details via `error.cause?.trace?.validationErrors` instead of `error.errors`
|
|
19
|
+
|
|
20
|
+
The legacy `ValidationError` class remains available for backward compatibility.
|
|
21
|
+
|
|
22
|
+
- **Improved retry() behavior for completed bridges**
|
|
23
|
+
|
|
24
|
+
-The `retry()` method now handles completed bridge operations gracefully:
|
|
25
|
+
Calling `retry()` on an already-completed bridge now returns successfully instead of throwing an error
|
|
26
|
+
|
|
3
27
|
## 1.0.4
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|