@circle-fin/app-kit 1.17.0 → 1.18.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 CHANGED
@@ -1,5 +1,46 @@
1
1
  # @circle-fin/app-kit
2
2
 
3
+ ## 1.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Bridge Kit now sends a success analytics event when `bridge()` or `retry()`
8
+ completes a transfer. The event includes the source and destination chains,
9
+ the token, the amount, and the source transaction hash (the CCTP burn or the
10
+ CCTPx transfer). It never includes wallet addresses or keys, and a failed
11
+ telemetry request never changes the bridge result.
12
+
13
+ - Set `disableAnalytics: true` on `BridgeKit` to opt out. It is separate from
14
+ `disableErrorReporting`, which still controls error telemetry only.
15
+ - App Kit's existing `disableAnalytics` option now also covers bridge
16
+ operations.
17
+
18
+ - Support same-chain deposits into Veda vaults.
19
+
20
+ A Veda vault mints its shares straight to the depositing wallet, so the Earn Service only builds a Veda deposit for a wallet that signed a `DepositIntent` for it. `deposit()` now looks up the vault first. When the vault is a Veda vault, the wallet signs an EIP-712 `DepositIntent` (wallet, vault, amount, deadline) during the `fetchParams` step, and the SDK sends the signature with the deposit request. Deposits into other vaults do not show an extra signature prompt. If the vault lookup fails (an error, or the vault listed in the lookup's `errors`), the deposit continues without an intent, so deposits into other vaults work as before; a Veda deposit then fails with the lookup error (for example, a retryable rate-limit error) instead of a signature rejection.
21
+
22
+ A Veda deposit needs an adapter that can sign typed data, and an amount with no more decimal places than the vault asset. Otherwise it fails with `InputError.VALIDATION_FAILED` before the signature prompt. When the Earn Service rejects the intent (error `380418`), the SDK reports `EarnError.SIGNATURE_REJECTED`. The intent is valid for 240 seconds from the signature prompt, so a wallet that signs slowly can submit an expired intent; the error message says so, and calling `deposit()` again signs a new intent.
23
+
24
+ Known limitations:
25
+
26
+ - Cross-chain deposits into Veda vaults are not supported. The Earn Service rejects them with `UNSUPPORTED_VAULT`.
27
+ - An application that configures an `onBeforeAuthorize` hook on its adapter cannot deposit into a Veda vault yet: the authorization review cannot decode the Veda deposit bundle, so the deposit fails before anything is signed. Applications without the hook are not affected. Support for the hook is planned.
28
+
29
+ ### Patch Changes
30
+
31
+ - Arc Testnet calls no longer fail with `HTTP request failed` when no custom RPC is configured. The default Arc Testnet RPC endpoint is now `https://rpc.testnet.arc.io`, replacing the retired `https://rpc.testnet.arc.network/` host. Apps that already pass their own Arc Testnet RPC URL or transport are unaffected.
32
+ - Forwarded transfers to Solana (`useForwarder: true`) now include the cost of
33
+ creating the recipient's USDC token account in the forwarder fee, so Circle's
34
+ Forwarding Service can always complete the mint. At current prices this adds
35
+ about 0.16 USDC to the forwarder fee for Solana destinations. Transfers to EVM
36
+ chains are unchanged.
37
+
38
+ - If you set `config.maxFee` yourself for these transfers, it must cover the
39
+ higher fee, or the transfer can stall after the burn and need a manual mint.
40
+ Use the `forwarder` fee from `estimate()`, or leave `maxFee` unset.
41
+ - Forwarded transfers to Solana whose amount does not exceed the fee now fail
42
+ before any transaction is sent, with an `INPUT_INVALID_AMOUNT` error.
43
+
3
44
  ## 1.17.0
4
45
 
5
46
  ### Minor Changes
package/borrow.cjs CHANGED
@@ -3863,14 +3863,14 @@ var BorrowChain;
3863
3863
  symbol: 'USDC',
3864
3864
  // Arc uses native USDC with 18 decimals for gas payments (EVM standard).
3865
3865
  // Note: The ERC-20 USDC contract at usdcAddress uses 6 decimals.
3866
- // See: https://docs.arc.network/arc/references/contract-addresses
3866
+ // See: https://docs.arc.io/arc/references/contract-addresses
3867
3867
  decimals: 18
3868
3868
  },
3869
3869
  chainId: 5042002,
3870
3870
  isTestnet: true,
3871
3871
  explorerUrl: 'https://testnet.arcscan.app/tx/{hash}',
3872
3872
  rpcEndpoints: [
3873
- 'https://rpc.testnet.arc.network/'
3873
+ 'https://rpc.testnet.arc.io'
3874
3874
  ],
3875
3875
  eurcAddress: '0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a',
3876
3876
  usdcAddress: '0x3600000000000000000000000000000000000000',
@@ -10205,7 +10205,7 @@ function resolveOptions(options) {
10205
10205
  }
10206
10206
 
10207
10207
  var name$3 = "@circle-fin/bridge-kit";
10208
- var version$3 = "1.15.3";
10208
+ var version$3 = "1.16.0";
10209
10209
  var pkg$3 = {
10210
10210
  name: name$3,
10211
10211
  version: version$3};
@@ -12284,7 +12284,7 @@ const validateQuoteItemSchema = zod.z.object({
12284
12284
  registerKit(`${pkg$3.name}/${pkg$3.version}`);
12285
12285
 
12286
12286
  var name$2 = "@circle-fin/swap-kit";
12287
- var version$2 = "1.8.0";
12287
+ var version$2 = "1.8.1";
12288
12288
  var pkg$2 = {
12289
12289
  name: name$2,
12290
12290
  version: version$2};
@@ -16671,7 +16671,7 @@ new Set(Object.values(Blockchain));
16671
16671
  registerKit(`${pkg$2.name}/${pkg$2.version}`);
16672
16672
 
16673
16673
  var name$1 = "@circle-fin/earn-kit";
16674
- var version$1 = "1.9.0";
16674
+ var version$1 = "1.10.0";
16675
16675
  var pkg$1 = {
16676
16676
  name: name$1,
16677
16677
  version: version$1};
@@ -18175,7 +18175,7 @@ registerKit(`${pkg$1.name}/${pkg$1.version}`);
18175
18175
  };
18176
18176
 
18177
18177
  var name = "@circle-fin/borrow-kit";
18178
- var version = "1.1.0";
18178
+ var version = "1.1.1";
18179
18179
  var pkg = {
18180
18180
  name: name,
18181
18181
  version: version};
package/borrow.d.cts CHANGED
@@ -10146,11 +10146,11 @@ interface AppKitContext {
10146
10146
  */
10147
10147
  actions: Record<'bridge' | 'earn' | 'borrow', Record<string, ((payload: unknown) => void)[]>>;
10148
10148
  /**
10149
- * Disable success analytics for the underlying EarnKit, SwapKit,
10149
+ * Disable success analytics for the underlying BridgeKit, EarnKit, SwapKit,
10150
10150
  * BorrowKit, and UnifiedBalanceKit.
10151
10151
  *
10152
- * When `true`, completed earn, swap, borrow, and unified balance operations
10153
- * will not POST analytics events. This does not disable error reporting; use
10152
+ * When `true`, completed bridge, earn, swap, borrow, and unified balance
10153
+ * operations will not POST analytics events. This does not disable error reporting; use
10154
10154
  * {@link AppKitContext.disableErrorReporting} for that. Defaults to `false`.
10155
10155
  *
10156
10156
  * @defaultValue false
package/borrow.d.mts CHANGED
@@ -10146,11 +10146,11 @@ interface AppKitContext {
10146
10146
  */
10147
10147
  actions: Record<'bridge' | 'earn' | 'borrow', Record<string, ((payload: unknown) => void)[]>>;
10148
10148
  /**
10149
- * Disable success analytics for the underlying EarnKit, SwapKit,
10149
+ * Disable success analytics for the underlying BridgeKit, EarnKit, SwapKit,
10150
10150
  * BorrowKit, and UnifiedBalanceKit.
10151
10151
  *
10152
- * When `true`, completed earn, swap, borrow, and unified balance operations
10153
- * will not POST analytics events. This does not disable error reporting; use
10152
+ * When `true`, completed bridge, earn, swap, borrow, and unified balance
10153
+ * operations will not POST analytics events. This does not disable error reporting; use
10154
10154
  * {@link AppKitContext.disableErrorReporting} for that. Defaults to `false`.
10155
10155
  *
10156
10156
  * @defaultValue false
package/borrow.d.ts CHANGED
@@ -10146,11 +10146,11 @@ interface AppKitContext {
10146
10146
  */
10147
10147
  actions: Record<'bridge' | 'earn' | 'borrow', Record<string, ((payload: unknown) => void)[]>>;
10148
10148
  /**
10149
- * Disable success analytics for the underlying EarnKit, SwapKit,
10149
+ * Disable success analytics for the underlying BridgeKit, EarnKit, SwapKit,
10150
10150
  * BorrowKit, and UnifiedBalanceKit.
10151
10151
  *
10152
- * When `true`, completed earn, swap, borrow, and unified balance operations
10153
- * will not POST analytics events. This does not disable error reporting; use
10152
+ * When `true`, completed bridge, earn, swap, borrow, and unified balance
10153
+ * operations will not POST analytics events. This does not disable error reporting; use
10154
10154
  * {@link AppKitContext.disableErrorReporting} for that. Defaults to `false`.
10155
10155
  *
10156
10156
  * @defaultValue false
package/borrow.mjs CHANGED
@@ -3857,14 +3857,14 @@ var BorrowChain;
3857
3857
  symbol: 'USDC',
3858
3858
  // Arc uses native USDC with 18 decimals for gas payments (EVM standard).
3859
3859
  // Note: The ERC-20 USDC contract at usdcAddress uses 6 decimals.
3860
- // See: https://docs.arc.network/arc/references/contract-addresses
3860
+ // See: https://docs.arc.io/arc/references/contract-addresses
3861
3861
  decimals: 18
3862
3862
  },
3863
3863
  chainId: 5042002,
3864
3864
  isTestnet: true,
3865
3865
  explorerUrl: 'https://testnet.arcscan.app/tx/{hash}',
3866
3866
  rpcEndpoints: [
3867
- 'https://rpc.testnet.arc.network/'
3867
+ 'https://rpc.testnet.arc.io'
3868
3868
  ],
3869
3869
  eurcAddress: '0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a',
3870
3870
  usdcAddress: '0x3600000000000000000000000000000000000000',
@@ -10199,7 +10199,7 @@ function resolveOptions(options) {
10199
10199
  }
10200
10200
 
10201
10201
  var name$3 = "@circle-fin/bridge-kit";
10202
- var version$3 = "1.15.3";
10202
+ var version$3 = "1.16.0";
10203
10203
  var pkg$3 = {
10204
10204
  name: name$3,
10205
10205
  version: version$3};
@@ -12278,7 +12278,7 @@ const validateQuoteItemSchema = z.object({
12278
12278
  registerKit(`${pkg$3.name}/${pkg$3.version}`);
12279
12279
 
12280
12280
  var name$2 = "@circle-fin/swap-kit";
12281
- var version$2 = "1.8.0";
12281
+ var version$2 = "1.8.1";
12282
12282
  var pkg$2 = {
12283
12283
  name: name$2,
12284
12284
  version: version$2};
@@ -16665,7 +16665,7 @@ new Set(Object.values(Blockchain));
16665
16665
  registerKit(`${pkg$2.name}/${pkg$2.version}`);
16666
16666
 
16667
16667
  var name$1 = "@circle-fin/earn-kit";
16668
- var version$1 = "1.9.0";
16668
+ var version$1 = "1.10.0";
16669
16669
  var pkg$1 = {
16670
16670
  name: name$1,
16671
16671
  version: version$1};
@@ -18169,7 +18169,7 @@ registerKit(`${pkg$1.name}/${pkg$1.version}`);
18169
18169
  };
18170
18170
 
18171
18171
  var name = "@circle-fin/borrow-kit";
18172
- var version = "1.1.0";
18172
+ var version = "1.1.1";
18173
18173
  var pkg = {
18174
18174
  name: name,
18175
18175
  version: version};