@stableflow/bridges 3.1.0 → 3.1.1-beta-a6a26eeb19-20260721

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/README.md CHANGED
@@ -29,9 +29,9 @@ For HTTP-only quote/status without wallet orchestration, [`@stableflow/core`](..
29
29
  | `ServiceMap` | Per-service `quote` / `send` / `getStatus` implementations |
30
30
  | `getQuoteModes` | Helpers to interpret quote shape (OneClick, exact output, etc.) |
31
31
  | Utilities | `formatQuoteError`, `addressToBytes32`, `quoteSignature`, `formatNumber` |
32
- | USDT0 / FraxZero | `USDT0_CONFIG`, `OFT_ABI`, `getHopMsgFee`, `FRAXZERO_MIDDLE_TOKEN_*`, … |
32
+ | USDT0 / FraxZero / CCTP hybrid | `USDT0_CONFIG`, `OFT_ABI`, `getHopMsgFee`, `FRAXZERO_MIDDLE_TOKEN_*`, `CCTP_MIDDLE_TOKEN_CHAIN`, `CCTP_PROXY_RELAY_CONTRACT`, … |
33
33
 
34
- Supported `Service` values (from `@stableflow/core`): `oneclick`, `usdt0`, `cctp`, `fraxzero`, composite routes (`usdt0-oneclick`, `oneclick-usdt0`, `fraxzero-oneclick`, `oneclick-fraxzero`), and `native`.
34
+ Supported `Service` values (from `@stableflow/core`): `oneclick`, `usdt0`, `cctp`, `fraxzero`, composite routes (`usdt0-oneclick`, `oneclick-usdt0`, `cctp-oneclick`, `oneclick-cctp`, `fraxzero-oneclick`, `oneclick-fraxzero`), and `native`.
35
35
 
36
36
  See `dist/index.d.ts` after `pnpm build`.
37
37
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _stableflow_core from '@stableflow/core';
2
- import { Service, TokenConfig, WalletConfig, CancelablePromise, SubmitDepositTxResponse, TransactionStatus } from '@stableflow/core';
2
+ import { Service, TokenConfig, WalletConfig, OneClickSwapType, CancelablePromise, SubmitDepositTxResponse, TransactionStatus } from '@stableflow/core';
3
3
  import Big from 'big.js';
4
4
 
5
5
  declare const ServiceMap: Record<Service, any>;
@@ -141,7 +141,7 @@ interface GetAllQuoteParams {
141
141
  recipient: string;
142
142
  fee: number;
143
143
  }[];
144
- swapType?: "EXACT_INPUT" | "EXACT_OUTPUT" | "FLEX_INPUT";
144
+ swapType?: OneClickSwapType;
145
145
  isProxy?: boolean;
146
146
  };
147
147
  }
@@ -229,7 +229,7 @@ declare const formatQuoteError: (error: any, options: {
229
229
  serviceType: "oneclick";
230
230
  error: string;
231
231
  } | {
232
- serviceType: "usdt0" | "cctp" | "fraxzero" | "fraxzero-oneclick" | "oneclick-fraxzero" | "usdt0-oneclick" | "oneclick-usdt0" | "native";
232
+ serviceType: "usdt0" | "cctp" | "fraxzero" | "fraxzero-oneclick" | "oneclick-fraxzero" | "usdt0-oneclick" | "oneclick-usdt0" | "cctp-oneclick" | "oneclick-cctp" | "native";
233
233
  error: any;
234
234
  };
235
235
 
@@ -320,4 +320,8 @@ declare const OFT_ABI: ({
320
320
  declare const FRAXZERO_MIDDLE_TOKEN_USDC: _stableflow_core.TokenConfig;
321
321
  declare const FRAXZERO_MIDDLE_TOKEN_FRXUSD: _stableflow_core.TokenConfig;
322
322
 
323
- export { BridgeSFA, type BuildTransactionResult, DATA_HEX_PROTOBUF_EXTRA, type EvmTxData, FRAXZERO_MIDDLE_TOKEN_FRXUSD, FRAXZERO_MIDDLE_TOKEN_USDC, type GetAllQuoteParams, LZ_RECEIVE_VALUE, OFT_ABI, type PermitSignature, type PermitTypedData, SIGNATURE_SIZE, ServiceMap, USDT0_CONFIG, USDT0_LEGACY_MESH_TRANSFTER_FEE, addressToBytes32, buildApproveTx, buildPermitTypedData, buildSendTx, formatNumber, formatQuoteError, getHopMsgFee, getQuoteModes, quoteSignature };
323
+ declare const MIDDLE_TOKEN_CHAIN: _stableflow_core.TokenConfig;
324
+ declare const CCTP_PROXY_RELAY_CONTRACT = "0x0da5336C5CEb9d15e7659Ae376CC41d86Edd8802";
325
+ declare const MIDDLE_CHAIN_REFOUND_ADDRESS = "0x654E7B96E1DE0b54E53D9ae8082fC2219E66dAC3";
326
+
327
+ export { BridgeSFA, type BuildTransactionResult, MIDDLE_CHAIN_REFOUND_ADDRESS as CCTP_MIDDLE_CHAIN_REFOUND_ADDRESS, MIDDLE_TOKEN_CHAIN as CCTP_MIDDLE_TOKEN_CHAIN, CCTP_PROXY_RELAY_CONTRACT, DATA_HEX_PROTOBUF_EXTRA, type EvmTxData, FRAXZERO_MIDDLE_TOKEN_FRXUSD, FRAXZERO_MIDDLE_TOKEN_USDC, type GetAllQuoteParams, LZ_RECEIVE_VALUE, OFT_ABI, type PermitSignature, type PermitTypedData, SIGNATURE_SIZE, ServiceMap, USDT0_CONFIG, USDT0_LEGACY_MESH_TRANSFTER_FEE, addressToBytes32, buildApproveTx, buildPermitTypedData, buildSendTx, formatNumber, formatQuoteError, getHopMsgFee, getQuoteModes, quoteSignature };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _stableflow_core from '@stableflow/core';
2
- import { Service, TokenConfig, WalletConfig, CancelablePromise, SubmitDepositTxResponse, TransactionStatus } from '@stableflow/core';
2
+ import { Service, TokenConfig, WalletConfig, OneClickSwapType, CancelablePromise, SubmitDepositTxResponse, TransactionStatus } from '@stableflow/core';
3
3
  import Big from 'big.js';
4
4
 
5
5
  declare const ServiceMap: Record<Service, any>;
@@ -141,7 +141,7 @@ interface GetAllQuoteParams {
141
141
  recipient: string;
142
142
  fee: number;
143
143
  }[];
144
- swapType?: "EXACT_INPUT" | "EXACT_OUTPUT" | "FLEX_INPUT";
144
+ swapType?: OneClickSwapType;
145
145
  isProxy?: boolean;
146
146
  };
147
147
  }
@@ -229,7 +229,7 @@ declare const formatQuoteError: (error: any, options: {
229
229
  serviceType: "oneclick";
230
230
  error: string;
231
231
  } | {
232
- serviceType: "usdt0" | "cctp" | "fraxzero" | "fraxzero-oneclick" | "oneclick-fraxzero" | "usdt0-oneclick" | "oneclick-usdt0" | "native";
232
+ serviceType: "usdt0" | "cctp" | "fraxzero" | "fraxzero-oneclick" | "oneclick-fraxzero" | "usdt0-oneclick" | "oneclick-usdt0" | "cctp-oneclick" | "oneclick-cctp" | "native";
233
233
  error: any;
234
234
  };
235
235
 
@@ -320,4 +320,8 @@ declare const OFT_ABI: ({
320
320
  declare const FRAXZERO_MIDDLE_TOKEN_USDC: _stableflow_core.TokenConfig;
321
321
  declare const FRAXZERO_MIDDLE_TOKEN_FRXUSD: _stableflow_core.TokenConfig;
322
322
 
323
- export { BridgeSFA, type BuildTransactionResult, DATA_HEX_PROTOBUF_EXTRA, type EvmTxData, FRAXZERO_MIDDLE_TOKEN_FRXUSD, FRAXZERO_MIDDLE_TOKEN_USDC, type GetAllQuoteParams, LZ_RECEIVE_VALUE, OFT_ABI, type PermitSignature, type PermitTypedData, SIGNATURE_SIZE, ServiceMap, USDT0_CONFIG, USDT0_LEGACY_MESH_TRANSFTER_FEE, addressToBytes32, buildApproveTx, buildPermitTypedData, buildSendTx, formatNumber, formatQuoteError, getHopMsgFee, getQuoteModes, quoteSignature };
323
+ declare const MIDDLE_TOKEN_CHAIN: _stableflow_core.TokenConfig;
324
+ declare const CCTP_PROXY_RELAY_CONTRACT = "0x0da5336C5CEb9d15e7659Ae376CC41d86Edd8802";
325
+ declare const MIDDLE_CHAIN_REFOUND_ADDRESS = "0x654E7B96E1DE0b54E53D9ae8082fC2219E66dAC3";
326
+
327
+ export { BridgeSFA, type BuildTransactionResult, MIDDLE_CHAIN_REFOUND_ADDRESS as CCTP_MIDDLE_CHAIN_REFOUND_ADDRESS, MIDDLE_TOKEN_CHAIN as CCTP_MIDDLE_TOKEN_CHAIN, CCTP_PROXY_RELAY_CONTRACT, DATA_HEX_PROTOBUF_EXTRA, type EvmTxData, FRAXZERO_MIDDLE_TOKEN_FRXUSD, FRAXZERO_MIDDLE_TOKEN_USDC, type GetAllQuoteParams, LZ_RECEIVE_VALUE, OFT_ABI, type PermitSignature, type PermitTypedData, SIGNATURE_SIZE, ServiceMap, USDT0_CONFIG, USDT0_LEGACY_MESH_TRANSFTER_FEE, addressToBytes32, buildApproveTx, buildPermitTypedData, buildSendTx, formatNumber, formatQuoteError, getHopMsgFee, getQuoteModes, quoteSignature };