@allbridge/bridge-core-sdk 3.36.0-beta.2 → 3.36.0-beta.3

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.
@@ -289,6 +289,24 @@ export interface TransferStatusResponse {
289
289
  * Optional: older Core API versions may omit it.
290
290
  */
291
291
  refunded?: boolean;
292
+ /**
293
+ * Hash of the refund transaction on the source chain, when {@link refunded} and the refund tx is known
294
+ * ({@link Messenger.NEAR_INTENTS} only). `null` until the Core API has indexed it, which can be a poll
295
+ * later than `refunded`. Optional: older Core API versions omit it.
296
+ */
297
+ refundTxId?: string | null;
298
+ /**
299
+ * Amount returned to the sender, in the smallest units of the source token (like {@link sendAmount}),
300
+ * when {@link refunded} ({@link Messenger.NEAR_INTENTS} only). It is the deposited amount minus the refund fee,
301
+ * so it can differ from the quoted amount after an incomplete deposit. `null` until known.
302
+ * Optional: older Core API versions omit it.
303
+ */
304
+ refundedAmount?: string | null;
305
+ /**
306
+ * {@link refundedAmount} in source token units (like {@link sendAmountFormatted}). `null` until known.
307
+ * Optional: older Core API versions omit it.
308
+ */
309
+ refundedAmountFormatted?: number | null;
292
310
  responseTime?: number;
293
311
  }
294
312
  export interface BridgeTransaction {
@@ -1 +1 @@
1
- {"version":3,"file":"core-api.model.js","sourceRoot":"","sources":["../../../../src/client/core-api/core-api.model.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,0BAAS,CAAA;IACT,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,gDAA+B,CAAA;IAC/B,sDAAqC,CAAA;IACrC,kFAAiE,CAAA;AACnE,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AA2ED,MAAM,CAAN,IAAY,eAUX;AAVD,WAAY,eAAe;IACzB,8BAA8B;IAC9B,0CAAuB,CAAA;IACvB,8BAA8B;IAC9B,wCAAqB,CAAA;IACrB,gCAAa,CAAA;IACb,qCAAkB,CAAA;IAClB,8BAAW,CAAA;IACX,yCAAsB,CAAA;IACtB,+CAA4B,CAAA;AAC9B,CAAC,EAVW,eAAe,KAAf,eAAe,QAU1B;AAkBD;;;GAGG;AACH,MAAM,CAAN,IAAY,SAkCX;AAlCD,WAAY,SAAS;IACnB,8BAA8B;IAC9B,mDAAa,CAAA;IACb,8BAA8B;IAC9B,iDAAY,CAAA;IACZ;;;OAGG;IACH,yCAAQ,CAAA;IACR;;;OAGG;IACH,+CAAW,CAAA;IACX;;;;OAIG;IACH,uCAAO,CAAA;IACP;;;OAGG;IACH,mDAAa,CAAA;IACb;;;;;;OAMG;IACH,yDAAgB,CAAA;AAClB,CAAC,EAlCW,SAAS,KAAT,SAAS,QAkCpB","sourcesContent":["import { ChainSymbol } from \"../../chains/chain.enums\";\nimport { PoolInfo, SuiAddresses } from \"../../tokens-info\";\n\nexport type ChainDetailsResponse = Record<string, ChainDetailsDTO>;\n\nexport interface AbrPayerChainInfoDTO {\n payerAddress: string;\n tokenAddress: string;\n tokenDecimals: number;\n payerAvailability: AbrPayerAvailabilityTypeDTO;\n}\n\nexport interface ChainDetailsDTO {\n tokens: TokenDTO[];\n chainId: number;\n bridgeId?: string;\n paddingUtilId?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n bridgeAddress?: string;\n oftBridgeAddress?: string;\n abrPayer?: AbrPayerChainInfoDTO;\n /** @deprecated Do not use. Not served by the current Core API. */\n swapAddress?: string;\n /**\n * @deprecated Do not use.\n */\n yieldAddress?: string;\n transferTime: TransferTimeDTO;\n txCostAmount: TxCostAmountDTO;\n confirmations: number;\n suiAddresses?: SuiAddresses;\n}\n\nexport enum AddressStatus {\n OK = \"OK\",\n INVALID = \"INVALID\",\n FORBIDDEN = \"FORBIDDEN\",\n UNINITIALIZED = \"UNINITIALIZED\",\n CONTRACT_ADDRESS = \"CONTRACT_ADDRESS\",\n WRONG_ASSOCIATED_ACCOUNT_OWNER = \"WRONG_ASSOCIATED_ACCOUNT_OWNER\",\n}\n\nexport interface TokenDTO {\n symbol: string;\n name: string;\n decimals: number;\n /** @deprecated Do not use. Not served by the current Core API. */\n poolAddress?: string;\n tokenAddress: string;\n originTokenAddress?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n poolInfo?: PoolInfoDTO;\n oftId?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n feeShare?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n apr?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n apr7d?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n apr30d?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n lpRate?: string;\n cctpAddress?: string;\n cctpV2Address?: string;\n cctpFeeShare?: string;\n cctpV2FeeShare?: string;\n /**\n * @deprecated Do not use.\n */\n yieldId?: number;\n xReserve?: XReserveDTO;\n /**\n * NEAR Intents (1Click) asset of the token. Defined when the token is listed by NEAR Intents.\n */\n nearIntents?: NearIntentsDTO;\n /**\n * True when the token is the native gas token of the chain (listed under a sentinel address).\n */\n isNative?: boolean;\n /**\n * Optional: the current Core API always returns all tokens and omits the flags,\n * in which case every token is treated as `swap: true, pool: false`.\n */\n flags?: {\n swap: boolean;\n /** @deprecated Do not use. */\n pool: boolean;\n };\n}\n\nexport interface XReserveDTO {\n bridgeAddress: string;\n feeConst: string;\n feeShare: string;\n protocolAddress?: string;\n}\n\nexport interface NearIntentsDTO {\n assetId: string;\n}\n\n/**\n * @deprecated Do not use.\n */\nexport interface PoolInfoDTO {\n aValue: string;\n dValue: string;\n tokenBalance: string;\n vUsdBalance: string;\n totalLpAmount: string;\n accRewardPerShareP: string;\n p: number;\n}\n\nexport enum MessengerKeyDTO {\n /** @deprecated Do not use. */\n ALLBRIDGE = \"allbridge\",\n /** @deprecated Do not use. */\n WORMHOLE = \"wormhole\",\n CCTP = \"cctp\",\n CCTP_V2 = \"cctpV2\",\n OFT = \"oft\",\n X_RESERVE = \"xReserve\",\n NEAR_INTENTS = \"nearIntents\",\n}\n\nexport type AbrPayerAvailabilityKeyDTO = (typeof MessengerKeyDTO)[keyof typeof MessengerKeyDTO];\n\nexport type AbrPayerAvailabilityTypeDTO = Partial<Record<AbrPayerAvailabilityKeyDTO, boolean>>;\n\nexport type TransferTimeDTO = Record<string, MessengerTransferTimeDTO>;\n\nexport interface TxCostAmountDTO {\n maxAmount: string;\n swap: string;\n transfer: string;\n}\n\nexport type MessengerTransferTimeDTO = {\n [messenger in MessengerKeyDTO]: number | null;\n};\n\n/**\n * Bridging protocol used for a transfer.\n * Only {@link ActiveMessenger} values are supported.\n */\nexport enum Messenger {\n /** @deprecated Do not use. */\n ALLBRIDGE = 1,\n /** @deprecated Do not use. */\n WORMHOLE = 2,\n /**\n * Circle CCTP.\n * Route is supported when `cctpAddress` is defined on both source and destination tokens.\n */\n CCTP = 3,\n /**\n * Circle CCTP V2.\n * Route is supported when `cctpV2Address` is defined on both source and destination tokens.\n */\n CCTP_V2 = 4,\n /**\n * LayerZero OFT.\n * Route is supported when source and destination tokens have the same `oftId`\n * and `oftBridgeAddress` is defined on both chains.\n */\n OFT = 5,\n /**\n * xReserve.\n * Route is supported when `xReserve` is defined on both source and destination tokens.\n */\n X_RESERVE = 6,\n /**\n * NEAR Intents (1Click).\n * Route is supported when `nearIntents` is defined on both source and destination tokens.\n * The transfer is a plain token (or native currency) transfer to a one-shot deposit address,\n * so no approval is needed. Amounts are market-priced quotes from the Core API, not a deterministic fee:\n * see `AllbridgeCoreSdk.nearIntents`.\n */\n NEAR_INTENTS = 7,\n}\n\n/**\n * @deprecated Do not use.\n */\nexport type LegacyMessenger = Messenger.ALLBRIDGE | Messenger.WORMHOLE;\n/**\n * Messengers supported for transfers: {@link Messenger.CCTP}, {@link Messenger.CCTP_V2}, {@link Messenger.OFT}, {@link Messenger.X_RESERVE}, {@link Messenger.NEAR_INTENTS}\n */\nexport type ActiveMessenger = Exclude<Messenger, LegacyMessenger>;\n\nexport interface ReceiveTransactionCostRequest {\n sourceChainId: number;\n destinationChainId: number;\n messenger: Messenger;\n sourceToken?: string;\n}\n\nexport interface ReceiveTransactionCostResponse {\n exchangeRate: string;\n fee: string;\n sourceNativeTokenPrice: string;\n abrExchangeRate?: string;\n adminFeeShareWithExtras?: string;\n}\n\n/**\n * NEAR Intents quote direction.\n * - `EXACT_INPUT`: `amount` is what the user sends.\n * - `EXACT_OUTPUT`: `amount` is what the user wants to receive.\n */\nexport type NearIntentsSwapType = \"EXACT_INPUT\" | \"EXACT_OUTPUT\";\n\nexport interface NearIntentsQuoteRequest {\n sourceChainId: number;\n sourceToken: string;\n destinationChainId: number;\n destinationToken: string;\n /**\n * Integer amount: in source token units for `EXACT_INPUT`, in destination token units for `EXACT_OUTPUT`.\n */\n amount: string;\n swapType: NearIntentsSwapType;\n}\n\nexport interface NearIntentsQuoteResponse {\n /** Integer amount in source token units */\n amountIn: string;\n /** Integer amount in destination token units */\n amountOut: string;\n /** Integer amount in destination token units, the slippage floor */\n minAmountOut: string;\n /** Estimated transfer time, seconds */\n timeEstimate: number;\n /**\n * True when the server answered from its per-route quote model instead of a live 1Click quote.\n * Deposits are never estimated. Older servers omit it.\n */\n estimated: boolean;\n /** Absent on an estimated answer for a token without a catalog price */\n amountInUsd?: string;\n /** Absent on an estimated answer for a token without a catalog price */\n amountOutUsd?: string;\n}\n\nexport interface NearIntentsDepositRequest extends NearIntentsQuoteRequest {\n recipient: string;\n refundTo: string;\n}\n\nexport interface NearIntentsDepositResponse {\n depositAddress: string;\n depositMemo?: string;\n /** Integer amount in source token units */\n amountIn: string;\n /** Integer amount in destination token units */\n amountOut: string;\n /** Integer amount in destination token units, the slippage floor */\n minAmountOut: string;\n /** ISO 8601 */\n deadline: string;\n /** ISO 8601 */\n timeWhenInactive?: string;\n /** Estimated transfer time, seconds */\n timeEstimate: number;\n}\n\nexport interface NearIntentsSubmitDepositRequest {\n depositAddress: string;\n depositMemo?: string;\n txId: string;\n}\n\n/**\n * Error codes of the Core API NEAR Intents endpoints (HTTP 400 and 502 bodies).\n */\nexport type NearIntentsErrorCode = \"AMOUNT_TOO_LOW\" | \"NO_LIQUIDITY\" | \"FAILED_TO_GET_QUOTE\" | \"UPSTREAM_ERROR\";\n\nexport interface NearIntentsErrorResponse {\n code: NearIntentsErrorCode;\n message: string;\n minAmount?: string;\n minAmountUsd?: string;\n}\n\nexport interface GasBalanceResponse {\n gasBalance: string | null;\n status: AddressStatus;\n}\n\nexport interface CheckAddressResponse {\n gasBalance: string | null;\n status: AddressStatus;\n}\n\nexport interface TransferStatusResponse {\n txId: string;\n\n sourceChainSymbol: ChainSymbol;\n destinationChainSymbol: ChainSymbol;\n\n sendAmount: string;\n sendAmountFormatted: number;\n\n stableFee: string;\n stableFeeFormatted: number;\n\n sourceTokenAddress: string;\n destinationTokenAddress: string;\n\n originSourceTokenAddress?: string;\n originDestinationTokenAddress?: string;\n\n senderAddress: string;\n recipientAddress: string;\n\n signaturesCount: number;\n signaturesNeeded: number;\n\n send: BridgeTransaction;\n receive?: BridgeTransaction;\n\n /**\n * True when the transfer was refunded to the sender on the source chain instead of being delivered\n * (e.g. a {@link Messenger.NEAR_INTENTS} deposit refunded by NEAR Intents); `receive` stays absent.\n * Optional: older Core API versions may omit it.\n */\n refunded?: boolean;\n\n responseTime?: number;\n}\n\nexport interface BridgeTransaction {\n txId: string;\n\n sourceChainId: number;\n destinationChainId: number;\n\n fee: string;\n feeFormatted: number;\n\n stableFee: string;\n stableFeeFormatted: number;\n\n amount: string;\n amountFormatted: number;\n virtualAmount: string;\n\n bridgeContract: string;\n sender: string;\n recipient: string;\n\n sourceTokenAddress: string;\n destinationTokenAddress: string;\n\n originSourceTokenAddress?: string;\n originDestinationTokenAddress?: string;\n\n hash: string;\n\n messenger: Messenger;\n\n blockTime: number;\n blockId: string;\n\n confirmations: number;\n confirmationsNeeded: number;\n\n isClaimable?: boolean;\n}\n\n/**\n * @deprecated Do not use.\n */\nexport type PoolInfoResponse = Record<string, PoolInfo>;\n/**\n * @deprecated Do not use.\n */\nexport type PendingInfoResponse = Partial<Record<string, TokenPendingInfoDTO>>;\n/**\n * @deprecated Do not use.\n */\nexport type TokenPendingInfoDTO = Record<string, PendingInfoDTO>;\n\n/**\n * @deprecated Do not use.\n */\nexport interface PendingInfoDTO {\n pendingTxs: number;\n totalSentAmount: string;\n}\n"]}
1
+ {"version":3,"file":"core-api.model.js","sourceRoot":"","sources":["../../../../src/client/core-api/core-api.model.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,0BAAS,CAAA;IACT,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,gDAA+B,CAAA;IAC/B,sDAAqC,CAAA;IACrC,kFAAiE,CAAA;AACnE,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AA2ED,MAAM,CAAN,IAAY,eAUX;AAVD,WAAY,eAAe;IACzB,8BAA8B;IAC9B,0CAAuB,CAAA;IACvB,8BAA8B;IAC9B,wCAAqB,CAAA;IACrB,gCAAa,CAAA;IACb,qCAAkB,CAAA;IAClB,8BAAW,CAAA;IACX,yCAAsB,CAAA;IACtB,+CAA4B,CAAA;AAC9B,CAAC,EAVW,eAAe,KAAf,eAAe,QAU1B;AAkBD;;;GAGG;AACH,MAAM,CAAN,IAAY,SAkCX;AAlCD,WAAY,SAAS;IACnB,8BAA8B;IAC9B,mDAAa,CAAA;IACb,8BAA8B;IAC9B,iDAAY,CAAA;IACZ;;;OAGG;IACH,yCAAQ,CAAA;IACR;;;OAGG;IACH,+CAAW,CAAA;IACX;;;;OAIG;IACH,uCAAO,CAAA;IACP;;;OAGG;IACH,mDAAa,CAAA;IACb;;;;;;OAMG;IACH,yDAAgB,CAAA;AAClB,CAAC,EAlCW,SAAS,KAAT,SAAS,QAkCpB","sourcesContent":["import { ChainSymbol } from \"../../chains/chain.enums\";\nimport { PoolInfo, SuiAddresses } from \"../../tokens-info\";\n\nexport type ChainDetailsResponse = Record<string, ChainDetailsDTO>;\n\nexport interface AbrPayerChainInfoDTO {\n payerAddress: string;\n tokenAddress: string;\n tokenDecimals: number;\n payerAvailability: AbrPayerAvailabilityTypeDTO;\n}\n\nexport interface ChainDetailsDTO {\n tokens: TokenDTO[];\n chainId: number;\n bridgeId?: string;\n paddingUtilId?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n bridgeAddress?: string;\n oftBridgeAddress?: string;\n abrPayer?: AbrPayerChainInfoDTO;\n /** @deprecated Do not use. Not served by the current Core API. */\n swapAddress?: string;\n /**\n * @deprecated Do not use.\n */\n yieldAddress?: string;\n transferTime: TransferTimeDTO;\n txCostAmount: TxCostAmountDTO;\n confirmations: number;\n suiAddresses?: SuiAddresses;\n}\n\nexport enum AddressStatus {\n OK = \"OK\",\n INVALID = \"INVALID\",\n FORBIDDEN = \"FORBIDDEN\",\n UNINITIALIZED = \"UNINITIALIZED\",\n CONTRACT_ADDRESS = \"CONTRACT_ADDRESS\",\n WRONG_ASSOCIATED_ACCOUNT_OWNER = \"WRONG_ASSOCIATED_ACCOUNT_OWNER\",\n}\n\nexport interface TokenDTO {\n symbol: string;\n name: string;\n decimals: number;\n /** @deprecated Do not use. Not served by the current Core API. */\n poolAddress?: string;\n tokenAddress: string;\n originTokenAddress?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n poolInfo?: PoolInfoDTO;\n oftId?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n feeShare?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n apr?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n apr7d?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n apr30d?: string;\n /** @deprecated Do not use. Not served by the current Core API. */\n lpRate?: string;\n cctpAddress?: string;\n cctpV2Address?: string;\n cctpFeeShare?: string;\n cctpV2FeeShare?: string;\n /**\n * @deprecated Do not use.\n */\n yieldId?: number;\n xReserve?: XReserveDTO;\n /**\n * NEAR Intents (1Click) asset of the token. Defined when the token is listed by NEAR Intents.\n */\n nearIntents?: NearIntentsDTO;\n /**\n * True when the token is the native gas token of the chain (listed under a sentinel address).\n */\n isNative?: boolean;\n /**\n * Optional: the current Core API always returns all tokens and omits the flags,\n * in which case every token is treated as `swap: true, pool: false`.\n */\n flags?: {\n swap: boolean;\n /** @deprecated Do not use. */\n pool: boolean;\n };\n}\n\nexport interface XReserveDTO {\n bridgeAddress: string;\n feeConst: string;\n feeShare: string;\n protocolAddress?: string;\n}\n\nexport interface NearIntentsDTO {\n assetId: string;\n}\n\n/**\n * @deprecated Do not use.\n */\nexport interface PoolInfoDTO {\n aValue: string;\n dValue: string;\n tokenBalance: string;\n vUsdBalance: string;\n totalLpAmount: string;\n accRewardPerShareP: string;\n p: number;\n}\n\nexport enum MessengerKeyDTO {\n /** @deprecated Do not use. */\n ALLBRIDGE = \"allbridge\",\n /** @deprecated Do not use. */\n WORMHOLE = \"wormhole\",\n CCTP = \"cctp\",\n CCTP_V2 = \"cctpV2\",\n OFT = \"oft\",\n X_RESERVE = \"xReserve\",\n NEAR_INTENTS = \"nearIntents\",\n}\n\nexport type AbrPayerAvailabilityKeyDTO = (typeof MessengerKeyDTO)[keyof typeof MessengerKeyDTO];\n\nexport type AbrPayerAvailabilityTypeDTO = Partial<Record<AbrPayerAvailabilityKeyDTO, boolean>>;\n\nexport type TransferTimeDTO = Record<string, MessengerTransferTimeDTO>;\n\nexport interface TxCostAmountDTO {\n maxAmount: string;\n swap: string;\n transfer: string;\n}\n\nexport type MessengerTransferTimeDTO = {\n [messenger in MessengerKeyDTO]: number | null;\n};\n\n/**\n * Bridging protocol used for a transfer.\n * Only {@link ActiveMessenger} values are supported.\n */\nexport enum Messenger {\n /** @deprecated Do not use. */\n ALLBRIDGE = 1,\n /** @deprecated Do not use. */\n WORMHOLE = 2,\n /**\n * Circle CCTP.\n * Route is supported when `cctpAddress` is defined on both source and destination tokens.\n */\n CCTP = 3,\n /**\n * Circle CCTP V2.\n * Route is supported when `cctpV2Address` is defined on both source and destination tokens.\n */\n CCTP_V2 = 4,\n /**\n * LayerZero OFT.\n * Route is supported when source and destination tokens have the same `oftId`\n * and `oftBridgeAddress` is defined on both chains.\n */\n OFT = 5,\n /**\n * xReserve.\n * Route is supported when `xReserve` is defined on both source and destination tokens.\n */\n X_RESERVE = 6,\n /**\n * NEAR Intents (1Click).\n * Route is supported when `nearIntents` is defined on both source and destination tokens.\n * The transfer is a plain token (or native currency) transfer to a one-shot deposit address,\n * so no approval is needed. Amounts are market-priced quotes from the Core API, not a deterministic fee:\n * see `AllbridgeCoreSdk.nearIntents`.\n */\n NEAR_INTENTS = 7,\n}\n\n/**\n * @deprecated Do not use.\n */\nexport type LegacyMessenger = Messenger.ALLBRIDGE | Messenger.WORMHOLE;\n/**\n * Messengers supported for transfers: {@link Messenger.CCTP}, {@link Messenger.CCTP_V2}, {@link Messenger.OFT}, {@link Messenger.X_RESERVE}, {@link Messenger.NEAR_INTENTS}\n */\nexport type ActiveMessenger = Exclude<Messenger, LegacyMessenger>;\n\nexport interface ReceiveTransactionCostRequest {\n sourceChainId: number;\n destinationChainId: number;\n messenger: Messenger;\n sourceToken?: string;\n}\n\nexport interface ReceiveTransactionCostResponse {\n exchangeRate: string;\n fee: string;\n sourceNativeTokenPrice: string;\n abrExchangeRate?: string;\n adminFeeShareWithExtras?: string;\n}\n\n/**\n * NEAR Intents quote direction.\n * - `EXACT_INPUT`: `amount` is what the user sends.\n * - `EXACT_OUTPUT`: `amount` is what the user wants to receive.\n */\nexport type NearIntentsSwapType = \"EXACT_INPUT\" | \"EXACT_OUTPUT\";\n\nexport interface NearIntentsQuoteRequest {\n sourceChainId: number;\n sourceToken: string;\n destinationChainId: number;\n destinationToken: string;\n /**\n * Integer amount: in source token units for `EXACT_INPUT`, in destination token units for `EXACT_OUTPUT`.\n */\n amount: string;\n swapType: NearIntentsSwapType;\n}\n\nexport interface NearIntentsQuoteResponse {\n /** Integer amount in source token units */\n amountIn: string;\n /** Integer amount in destination token units */\n amountOut: string;\n /** Integer amount in destination token units, the slippage floor */\n minAmountOut: string;\n /** Estimated transfer time, seconds */\n timeEstimate: number;\n /**\n * True when the server answered from its per-route quote model instead of a live 1Click quote.\n * Deposits are never estimated. Older servers omit it.\n */\n estimated: boolean;\n /** Absent on an estimated answer for a token without a catalog price */\n amountInUsd?: string;\n /** Absent on an estimated answer for a token without a catalog price */\n amountOutUsd?: string;\n}\n\nexport interface NearIntentsDepositRequest extends NearIntentsQuoteRequest {\n recipient: string;\n refundTo: string;\n}\n\nexport interface NearIntentsDepositResponse {\n depositAddress: string;\n depositMemo?: string;\n /** Integer amount in source token units */\n amountIn: string;\n /** Integer amount in destination token units */\n amountOut: string;\n /** Integer amount in destination token units, the slippage floor */\n minAmountOut: string;\n /** ISO 8601 */\n deadline: string;\n /** ISO 8601 */\n timeWhenInactive?: string;\n /** Estimated transfer time, seconds */\n timeEstimate: number;\n}\n\nexport interface NearIntentsSubmitDepositRequest {\n depositAddress: string;\n depositMemo?: string;\n txId: string;\n}\n\n/**\n * Error codes of the Core API NEAR Intents endpoints (HTTP 400 and 502 bodies).\n */\nexport type NearIntentsErrorCode = \"AMOUNT_TOO_LOW\" | \"NO_LIQUIDITY\" | \"FAILED_TO_GET_QUOTE\" | \"UPSTREAM_ERROR\";\n\nexport interface NearIntentsErrorResponse {\n code: NearIntentsErrorCode;\n message: string;\n minAmount?: string;\n minAmountUsd?: string;\n}\n\nexport interface GasBalanceResponse {\n gasBalance: string | null;\n status: AddressStatus;\n}\n\nexport interface CheckAddressResponse {\n gasBalance: string | null;\n status: AddressStatus;\n}\n\nexport interface TransferStatusResponse {\n txId: string;\n\n sourceChainSymbol: ChainSymbol;\n destinationChainSymbol: ChainSymbol;\n\n sendAmount: string;\n sendAmountFormatted: number;\n\n stableFee: string;\n stableFeeFormatted: number;\n\n sourceTokenAddress: string;\n destinationTokenAddress: string;\n\n originSourceTokenAddress?: string;\n originDestinationTokenAddress?: string;\n\n senderAddress: string;\n recipientAddress: string;\n\n signaturesCount: number;\n signaturesNeeded: number;\n\n send: BridgeTransaction;\n receive?: BridgeTransaction;\n\n /**\n * True when the transfer was refunded to the sender on the source chain instead of being delivered\n * (e.g. a {@link Messenger.NEAR_INTENTS} deposit refunded by NEAR Intents); `receive` stays absent.\n * Optional: older Core API versions may omit it.\n */\n refunded?: boolean;\n\n /**\n * Hash of the refund transaction on the source chain, when {@link refunded} and the refund tx is known\n * ({@link Messenger.NEAR_INTENTS} only). `null` until the Core API has indexed it, which can be a poll\n * later than `refunded`. Optional: older Core API versions omit it.\n */\n refundTxId?: string | null;\n\n /**\n * Amount returned to the sender, in the smallest units of the source token (like {@link sendAmount}),\n * when {@link refunded} ({@link Messenger.NEAR_INTENTS} only). It is the deposited amount minus the refund fee,\n * so it can differ from the quoted amount after an incomplete deposit. `null` until known.\n * Optional: older Core API versions omit it.\n */\n refundedAmount?: string | null;\n\n /**\n * {@link refundedAmount} in source token units (like {@link sendAmountFormatted}). `null` until known.\n * Optional: older Core API versions omit it.\n */\n refundedAmountFormatted?: number | null;\n\n responseTime?: number;\n}\n\nexport interface BridgeTransaction {\n txId: string;\n\n sourceChainId: number;\n destinationChainId: number;\n\n fee: string;\n feeFormatted: number;\n\n stableFee: string;\n stableFeeFormatted: number;\n\n amount: string;\n amountFormatted: number;\n virtualAmount: string;\n\n bridgeContract: string;\n sender: string;\n recipient: string;\n\n sourceTokenAddress: string;\n destinationTokenAddress: string;\n\n originSourceTokenAddress?: string;\n originDestinationTokenAddress?: string;\n\n hash: string;\n\n messenger: Messenger;\n\n blockTime: number;\n blockId: string;\n\n confirmations: number;\n confirmationsNeeded: number;\n\n isClaimable?: boolean;\n}\n\n/**\n * @deprecated Do not use.\n */\nexport type PoolInfoResponse = Record<string, PoolInfo>;\n/**\n * @deprecated Do not use.\n */\nexport type PendingInfoResponse = Partial<Record<string, TokenPendingInfoDTO>>;\n/**\n * @deprecated Do not use.\n */\nexport type TokenPendingInfoDTO = Record<string, PendingInfoDTO>;\n\n/**\n * @deprecated Do not use.\n */\nexport interface PendingInfoDTO {\n pendingTxs: number;\n totalSentAmount: string;\n}\n"]}
@@ -1 +1 @@
1
- export declare const VERSION = "3.36.0-beta.2";
1
+ export declare const VERSION = "3.36.0-beta.3";
@@ -1,2 +1,2 @@
1
- export const VERSION = "3.36.0-beta.2";
1
+ export const VERSION = "3.36.0-beta.3";
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC","sourcesContent":["export const VERSION = \"3.36.0-beta.2\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC","sourcesContent":["export const VERSION = \"3.36.0-beta.3\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allbridge/bridge-core-sdk",
3
- "version": "3.36.0-beta.2",
3
+ "version": "3.36.0-beta.3",
4
4
  "main": "./dist/cjs/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/src/index.d.ts",