@circle-fin/adapter-ethers-v6 1.3.0 → 1.5.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.
Files changed (5) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/index.cjs +845 -172
  3. package/index.d.ts +113 -2
  4. package/index.mjs +845 -172
  5. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @circle-fin/adapter-ethers-v6
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Minor Changes
6
+
7
+ Add Circle Forwarder support for CCTP v2 bridging.
8
+
9
+ Forwarding is a relay-assisted mode where Circle observes the burn transaction,
10
+ retrieves attestation data, and submits the destination mint on the user's
11
+ behalf. This removes most destination-side orchestration from client code.
12
+
13
+ What this enables:
14
+
15
+ - Opt-in forwarding with `useForwarder: true` so Circle handles destination mint
16
+ submission.
17
+ - Forwarder-only destinations (no destination adapter required) using
18
+ `{ recipientAddress, chain, useForwarder: true }`.
19
+ - Forwarding-fee-aware estimation and max-fee calculation when `maxFee` is
20
+ auto-derived.
21
+ - New hook-based burn actions: `cctp.v2.depositForBurnWithHook` and
22
+ `cctp.v2.customBurnWithHook`.
23
+ - New forwarding helpers: `buildForwardingHookData` and
24
+ `buildForwardingHookDataBuffer`.
25
+ - Chain-level forwarding metadata via `cctp.forwarderSupported` for route
26
+ capability checks.
27
+
28
+ Compatibility:
29
+
30
+ - Existing non-forwarded bridge flows remain unchanged.
31
+ - If you set `config.maxFee` manually, include any expected forwarding fee.
32
+
33
+ ### Patch Changes
34
+
35
+ - Fix RPC state propagation race condition in pre-flight simulation.
36
+
37
+ Added retry logic with exponential backoff when simulation fails with allowance errors ("exceeds allowance" or "insufficient allowance"). The adapter now retries up to 3 times with 1s, 2s delays to allow RPC nodes time to reflect recently confirmed transactions in their 'latest' block view.
38
+
39
+ This fixes an intermittent issue where bridging would fail during the burn step even though the approve transaction succeeded, particularly on chains with fast finality.
40
+
41
+ ## 1.4.0
42
+
43
+ ### Minor Changes
44
+
45
+ - Monad chain support added
46
+
47
+ Monad mainnet and testnet are now supported for cross-chain USDC transfers. Use `'Monad'` or `'Monad_Testnet'` as chain identifiers in your bridge operations.
48
+
3
49
  ## 1.3.0
4
50
 
5
51
  ### Minor Changes