Socket
Socket
Sign inDemoInstall

@wormhole-foundation/sdk-connect

Package Overview
Dependencies
Maintainers
5
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wormhole-foundation/sdk-connect - npm Package Compare versions

Comparing version 0.5.0-alpha.1 to 0.5.0-alpha.2

2

dist/esm/circle-api.js
import axios from "axios";
import { retry } from "./tasks";
import { retry } from "./tasks.js";
// Note: mostly ripped off from https://github.com/circlefin/cctp-sample-app/blob/master/src/services/attestationService.ts

@@ -4,0 +4,0 @@ export const CIRCLE_RETRY_INTERVAL = 2000;

@@ -1,17 +0,17 @@

export { Wormhole } from "./wormhole";
export type { WormholeConfig, ConfigOverrides } from "./config";
export { networkPlatformConfigs, applyOverrides, DEFAULT_TASK_TIMEOUT, CONFIG, DEFAULT_NETWORK, } from "./config";
export { signSendWait } from "./common";
export type { AttestationReceipt, CreatedTransferReceipt, SourceInitiatedTransferReceipt, SourceFinalizedTransferReceipt, AttestedTransferReceipt, CompletedTransferReceipt, FailedTransferReceipt, TransferReceipt, TransferQuote, } from "./types";
export { isSourceInitiated, isSourceFinalized, isAttested, isCompleted, isFailed, TransferState, } from "./types";
export * from "./protocols/wormholeTransfer";
export * from "./protocols/tokenTransfer";
export * from "./protocols/cctpTransfer";
export * from "./protocols/gatewayTransfer";
export * as tasks from "./tasks";
export * as circleApi from "./circle-api";
export * as api from "./whscan-api";
export * as routes from "./routes";
export { Wormhole } from "./wormhole.js";
export type { WormholeConfig, ConfigOverrides } from './config.js';
export { networkPlatformConfigs, applyOverrides, DEFAULT_TASK_TIMEOUT, CONFIG, DEFAULT_NETWORK } from "./config.js";
export { signSendWait } from "./common.js";
export type { AttestationReceipt, CreatedTransferReceipt, SourceInitiatedTransferReceipt, SourceFinalizedTransferReceipt, AttestedTransferReceipt, CompletedTransferReceipt, FailedTransferReceipt, TransferReceipt, TransferQuote } from './types.js';
export { isSourceInitiated, isSourceFinalized, isAttested, isCompleted, isFailed, TransferState } from "./types.js";
export * from "./protocols/wormholeTransfer.js";
export * from "./protocols/tokenTransfer.js";
export * from "./protocols/cctpTransfer.js";
export * from "./protocols/gatewayTransfer.js";
export * as tasks from "./tasks.js";
export * as circleApi from "./circle-api.js";
export * as api from "./whscan-api.js";
export * as routes from "./routes/index.js";
export * from "@wormhole-foundation/sdk-base";
export * from "@wormhole-foundation/sdk-definitions";
//# sourceMappingURL=index.d.ts.map

@@ -1,13 +0,13 @@

export { Wormhole } from "./wormhole";
export { networkPlatformConfigs, applyOverrides, DEFAULT_TASK_TIMEOUT, CONFIG, DEFAULT_NETWORK, } from "./config";
export { signSendWait } from "./common";
export { isSourceInitiated, isSourceFinalized, isAttested, isCompleted, isFailed, TransferState, } from "./types";
export * from "./protocols/wormholeTransfer";
export * from "./protocols/tokenTransfer";
export * from "./protocols/cctpTransfer";
export * from "./protocols/gatewayTransfer";
export * as tasks from "./tasks";
export * as circleApi from "./circle-api";
export * as api from "./whscan-api";
export * as routes from "./routes";
export { Wormhole } from "./wormhole.js";
export { networkPlatformConfigs, applyOverrides, DEFAULT_TASK_TIMEOUT, CONFIG, DEFAULT_NETWORK } from "./config.js";
export { signSendWait } from "./common.js";
export { isSourceInitiated, isSourceFinalized, isAttested, isCompleted, isFailed, TransferState } from "./types.js";
export * from "./protocols/wormholeTransfer.js";
export * from "./protocols/tokenTransfer.js";
export * from "./protocols/cctpTransfer.js";
export * from "./protocols/gatewayTransfer.js";
export * as tasks from "./tasks.js";
export * as circleApi from "./circle-api.js";
export * as api from "./whscan-api.js";
export * as routes from "./routes/index.js";
// Re-export from core packages

@@ -14,0 +14,0 @@ export * from "@wormhole-foundation/sdk-base";

import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import type { Attestation, AttestationId, AutomaticCircleBridge, ChainContext, CircleTransferDetails, Signer, TransactionId, TxHash, WormholeMessageId } from "@wormhole-foundation/sdk-definitions";
import type { AttestationReceipt, TransferQuote, TransferReceipt } from "../types";
import { TransferState } from "../types";
import { Wormhole } from "../wormhole";
import type { WormholeTransfer } from "./wormholeTransfer";
import type { AttestationReceipt, TransferQuote, TransferReceipt } from "../types.js";
import { TransferState } from "../types.js";
import { Wormhole } from "../wormhole.js";
import type { WormholeTransfer } from "./wormholeTransfer.js";
type CircleTransferProtocol = "CircleBridge" | "AutomaticCircleBridge";

@@ -8,0 +8,0 @@ export type CircleAttestationReceipt = AttestationReceipt<CircleTransferProtocol>;

import { circle, encoding, toChain } from "@wormhole-foundation/sdk-base";
import { CircleBridge, isCircleMessageId, isCircleTransferDetails, isTransactionIdentifier, isWormholeMessageId, } from "@wormhole-foundation/sdk-definitions";
import { signSendWait } from "../common";
import { DEFAULT_TASK_TIMEOUT } from "../config";
import { TransferState, isAttested, isSourceFinalized, isSourceInitiated } from "../types";
import { Wormhole } from "../wormhole";
import { signSendWait } from "../common.js";
import { DEFAULT_TASK_TIMEOUT } from "../config.js";
import { TransferState, isAttested, isSourceFinalized, isSourceInitiated } from "../types.js";
import { Wormhole } from "../wormhole.js";
export class CircleTransfer {

@@ -8,0 +8,0 @@ wh;

import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import type { AttestationId, ChainContext, GatewayTransferDetails, IbcTransferInfo, Signer, TokenId, TransactionId, TxHash, WormholeMessageId } from "@wormhole-foundation/sdk-definitions";
import { TokenBridge } from "@wormhole-foundation/sdk-definitions";
import { TransferState } from "../types";
import { Wormhole } from "../wormhole";
import type { WormholeTransfer } from "./wormholeTransfer";
import { TransferState } from "../types.js";
import { Wormhole } from "../wormhole.js";
import type { WormholeTransfer } from "./wormholeTransfer.js";
export declare class GatewayTransfer<N extends Network = Network> implements WormholeTransfer<"IbcBridge"> {

@@ -8,0 +8,0 @@ static chain: "Wormchain";

import { chainToPlatform, encoding, toChain } from "@wormhole-foundation/sdk-base";
import { TokenBridge, UniversalAddress, gatewayTransferMsg, isGatewayTransferDetails, isNative, isTransactionIdentifier, isWormholeMessageId, toGatewayMsg, toNative, } from "@wormhole-foundation/sdk-definitions";
import { signSendWait } from "../common";
import { fetchIbcXfer, isTokenBridgeVaaRedeemed, retry } from "../tasks";
import { TransferState } from "../types";
import { Wormhole } from "../wormhole";
import { signSendWait } from "../common.js";
import { fetchIbcXfer, isTokenBridgeVaaRedeemed, retry } from "../tasks.js";
import { TransferState } from "../types.js";
import { Wormhole } from "../wormhole.js";
export class GatewayTransfer {

@@ -8,0 +8,0 @@ static chain = "Wormchain";

import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import type { AttestationId, AutomaticTokenBridge, ChainContext, Signer, TokenId, TokenTransferDetails, TransactionId, TxHash, WormholeMessageId } from "@wormhole-foundation/sdk-definitions";
import { TokenBridge } from "@wormhole-foundation/sdk-definitions";
import type { AttestationReceipt, TransferQuote, TransferReceipt } from "../types";
import { TransferState } from "../types";
import { Wormhole } from "../wormhole";
import type { WormholeTransfer } from "./wormholeTransfer";
import type { AttestationReceipt, TransferQuote, TransferReceipt } from "../types.js";
import { TransferState } from "../types.js";
import { Wormhole } from "../wormhole.js";
import type { WormholeTransfer } from "./wormholeTransfer.js";
export type TokenTransferProtocol = "TokenBridge" | "AutomaticTokenBridge";

@@ -9,0 +9,0 @@ export type TokenTransferVAA = TokenBridge.TransferVAA | AutomaticTokenBridge.VAA;

import { amount, encoding, toChain as toChainName } from "@wormhole-foundation/sdk-base";
import { TokenBridge, deserialize, isNative, isTokenId, isTokenTransferDetails, isTransactionIdentifier, isWormholeMessageId, serialize, toNative, toUniversal, universalAddress, } from "@wormhole-foundation/sdk-definitions";
import { signSendWait } from "../common";
import { DEFAULT_TASK_TIMEOUT } from "../config";
import { TransferState, isAttested, isSourceFinalized, isSourceInitiated } from "../types";
import { getGovernedTokens, getGovernorLimits } from "../whscan-api";
import { Wormhole } from "../wormhole";
import { signSendWait } from "../common.js";
import { DEFAULT_TASK_TIMEOUT } from "../config.js";
import { TransferState, isAttested, isSourceFinalized, isSourceInitiated } from "../types.js";
import { getGovernedTokens, getGovernorLimits } from "../whscan-api.js";
import { Wormhole } from "../wormhole.js";
// 8 is maximum precision supported by the token bridge VAA

@@ -9,0 +9,0 @@ const TOKEN_BRIDGE_MAX_DECIMALS = 8;

import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import type { AttestationId, ChainContext, CircleTransferDetails, GatewayTransferDetails, ProtocolName, Signer, TokenTransferDetails, TxHash } from "@wormhole-foundation/sdk-definitions";
import type { AttestationReceipt, TransferQuote, TransferReceipt, TransferState } from "../types";
import type { Wormhole } from "../wormhole";
import type { AttestationReceipt, TransferQuote, TransferReceipt, TransferState } from "../types.js";
import type { Wormhole } from "../wormhole.js";
export type TransferRequest<PN extends ProtocolName = ProtocolName> = PN extends "TokenBridge" | "AutomaticTokenBridge" ? TokenTransferDetails : PN extends "CircleBridge" | "AutomaticCircleBridge" ? CircleTransferDetails : PN extends "IbcBridge" ? GatewayTransferDetails : never;

@@ -6,0 +6,0 @@ export interface TransferProtocol<PN extends ProtocolName> {

import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import { amount } from "@wormhole-foundation/sdk-base";
import type { ChainContext, Signer, TokenId } from "@wormhole-foundation/sdk-definitions";
import type { CircleAttestationReceipt } from "../../protocols/cctpTransfer";
import type { StaticRouteMethods } from "../route";
import { AutomaticRoute } from "../route";
import type { Quote, QuoteResult, Receipt, TransferParams, ValidatedTransferParams, ValidationResult } from "../types";
import type { CircleAttestationReceipt } from "../../protocols/cctpTransfer.js";
import type { StaticRouteMethods } from "../route.js";
import { AutomaticRoute } from "../route.js";
import type { Quote, QuoteResult, Receipt, TransferParams, ValidatedTransferParams, ValidationResult } from "../types.js";
export declare namespace AutomaticCCTPRoute {

@@ -45,5 +45,5 @@ type Options = {

initiate(signer: Signer, quote: Q): Promise<R>;
track(receipt: R, timeout?: number): AsyncGenerator<import("../../protocols/cctpTransfer").CircleTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">, void, unknown>;
track(receipt: R, timeout?: number): AsyncGenerator<import("../../protocols/cctpTransfer.js").CircleTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">, void, unknown>;
}
export {};
//# sourceMappingURL=automatic.d.ts.map
import { circle, contracts, amount } from "@wormhole-foundation/sdk-base";
import { nativeTokenId } from "@wormhole-foundation/sdk-definitions";
import { CircleTransfer } from "../../protocols/cctpTransfer";
import { TransferState } from "../../types";
import { AutomaticRoute } from "../route";
import { Wormhole } from "../../wormhole";
import { CircleTransfer } from "../../protocols/cctpTransfer.js";
import { TransferState } from "../../types.js";
import { AutomaticRoute } from "../route.js";
import { Wormhole } from "../../wormhole.js";
export class AutomaticCCTPRoute extends AutomaticRoute {

@@ -8,0 +8,0 @@ NATIVE_GAS_DROPOFF_SUPPORTED = true;

@@ -1,3 +0,3 @@

export { CCTPRoute } from "./manual";
export { AutomaticCCTPRoute } from "./automatic";
export { CCTPRoute } from "./manual.js";
export { AutomaticCCTPRoute } from "./automatic.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

export { CCTPRoute } from "./manual";
export { AutomaticCCTPRoute } from "./automatic";
export { CCTPRoute } from "./manual.js";
export { AutomaticCCTPRoute } from "./automatic.js";
//# sourceMappingURL=index.js.map
import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import { amount } from "@wormhole-foundation/sdk-base";
import type { ChainContext, Signer, TokenId, TransactionId } from "@wormhole-foundation/sdk-definitions";
import type { CircleAttestationReceipt } from "../../protocols/cctpTransfer";
import type { TransferReceipt } from "../../types";
import type { StaticRouteMethods } from "../route";
import { ManualRoute } from "../route";
import type { Quote, QuoteResult, TransferParams, ValidatedTransferParams, ValidationResult } from "../types";
import type { CircleAttestationReceipt } from "../../protocols/cctpTransfer.js";
import type { TransferReceipt } from "../../types.js";
import type { StaticRouteMethods } from "../route.js";
import { ManualRoute } from "../route.js";
import type { Quote, QuoteResult, TransferParams, ValidatedTransferParams, ValidationResult } from "../types.js";
export declare namespace CCTPRoute {

@@ -41,3 +41,3 @@ type Options = {

complete(signer: Signer, receipt: R): Promise<TransactionId[]>;
track(receipt: R, timeout?: number): AsyncGenerator<import("../../protocols/cctpTransfer").CircleTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">, void, unknown>;
track(receipt: R, timeout?: number): AsyncGenerator<import("../../protocols/cctpTransfer.js").CircleTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">, void, unknown>;
private toTransferDetails;

@@ -44,0 +44,0 @@ }

import { circle, contracts, amount } from "@wormhole-foundation/sdk-base";
import { CircleBridge } from "@wormhole-foundation/sdk-definitions";
import { signSendWait } from "../../common";
import { CircleTransfer } from "../../protocols/cctpTransfer";
import { TransferState, isAttested } from "../../types";
import { ManualRoute } from "../route";
import { Wormhole } from "../../wormhole";
import { signSendWait } from "../../common.js";
import { CircleTransfer } from "../../protocols/cctpTransfer.js";
import { TransferState, isAttested } from "../../types.js";
import { ManualRoute } from "../route.js";
import { Wormhole } from "../../wormhole.js";
export class CCTPRoute extends ManualRoute {

@@ -9,0 +9,0 @@ static meta = {

import type { Network } from "@wormhole-foundation/sdk-base";
import type { Signer } from "@wormhole-foundation/sdk-definitions";
import type { Receipt } from "./types";
import type { Route } from "./route";
import type { Receipt } from "./types.js";
import type { Route } from "./route.js";
/**

@@ -12,3 +12,3 @@ * track the transfer until the destination is initiated

*/
export declare function checkAndCompleteTransfer<N extends Network>(route: Route<N>, receipt: Receipt, destinationSigner?: Signer<N>, timeout?: number, log?: typeof console.log): Promise<import("../types").CreatedTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types").SourceInitiatedTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types").FailedTransferReceipt<import("../types").AttestationReceipt, "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types").SourceFinalizedTransferReceipt<import("../types").AttestationReceipt, "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types").AttestedTransferReceipt<import("../types").AttestationReceipt, "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types").CompletedTransferReceipt<import("../types").AttestationReceipt, "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">>;
export declare function checkAndCompleteTransfer<N extends Network>(route: Route<N>, receipt: Receipt, destinationSigner?: Signer<N>, timeout?: number, log?: typeof console.log): Promise<import("../types.js").CreatedTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types.js").SourceInitiatedTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types.js").FailedTransferReceipt<import("../types.js").AttestationReceipt, "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types.js").SourceFinalizedTransferReceipt<import("../types.js").AttestationReceipt, "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types.js").AttestedTransferReceipt<import("../types.js").AttestationReceipt, "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia"> | import("../types.js").CompletedTransferReceipt<import("../types.js").AttestationReceipt, "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">>;
//# sourceMappingURL=common.d.ts.map

@@ -1,3 +0,3 @@

import { isManual } from "./route";
import { TransferState, isAttested, isCompleted } from "../types";
import { isManual } from "./route.js";
import { TransferState, isAttested, isCompleted } from "../types.js";
/**

@@ -4,0 +4,0 @@ * track the transfer until the destination is initiated

@@ -1,11 +0,11 @@

export type { RouteMeta, RouteConstructor, StaticRouteMethods } from "./route";
export { isAutomatic, isManual, Route, AutomaticRoute, ManualRoute } from "./route";
export { RouteResolver } from "./resolver";
export { RouteTransferRequest } from "./request";
export type { Options, TransferParams, Receipt, ValidatedTransferParams, ValidationResult, QuoteResult, Quote, QuoteError, } from "./types";
export { checkAndCompleteTransfer } from "./common";
export { AutomaticTokenBridgeRoute, TokenBridgeRoute } from "./tokenBridge";
export type { PorticoRoute } from "./portico";
export { SLIPPAGE_BPS, BPS_PER_HUNDRED_PERCENT, AutomaticPorticoRoute } from "./portico";
export { CCTPRoute, AutomaticCCTPRoute } from "./cctp";
export type { RouteMeta, RouteConstructor, StaticRouteMethods } from './route.js';
export { isAutomatic, isManual, Route, AutomaticRoute, ManualRoute } from "./route.js";
export { RouteResolver } from "./resolver.js";
export { RouteTransferRequest } from "./request.js";
export type { Options, TransferParams, Receipt, ValidatedTransferParams, ValidationResult, QuoteResult, Quote, QuoteError, } from "./types.js";
export { checkAndCompleteTransfer } from "./common.js";
export { AutomaticTokenBridgeRoute, TokenBridgeRoute } from "./tokenBridge/index.js";
export type { PorticoRoute } from './portico/index.js';
export { SLIPPAGE_BPS, BPS_PER_HUNDRED_PERCENT, AutomaticPorticoRoute } from "./portico/index.js";
export { CCTPRoute, AutomaticCCTPRoute } from "./cctp/index.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,8 +0,8 @@

export { isAutomatic, isManual, Route, AutomaticRoute, ManualRoute } from "./route";
export { RouteResolver } from "./resolver";
export { RouteTransferRequest } from "./request";
export { checkAndCompleteTransfer } from "./common";
export { AutomaticTokenBridgeRoute, TokenBridgeRoute } from "./tokenBridge";
export { SLIPPAGE_BPS, BPS_PER_HUNDRED_PERCENT, AutomaticPorticoRoute } from "./portico";
export { CCTPRoute, AutomaticCCTPRoute } from "./cctp";
export { isAutomatic, isManual, Route, AutomaticRoute, ManualRoute } from "./route.js";
export { RouteResolver } from "./resolver.js";
export { RouteTransferRequest } from "./request.js";
export { checkAndCompleteTransfer } from "./common.js";
export { AutomaticTokenBridgeRoute, TokenBridgeRoute } from "./tokenBridge/index.js";
export { SLIPPAGE_BPS, BPS_PER_HUNDRED_PERCENT, AutomaticPorticoRoute } from "./portico/index.js";
export { CCTPRoute, AutomaticCCTPRoute } from "./cctp/index.js";
//# sourceMappingURL=index.js.map

@@ -1,6 +0,6 @@

import type { AttestationReceipt, Chain, ChainContext, Network, Signer, SourceInitiatedTransferReceipt, TokenId, TransactionId } from "../..";
import { PorticoBridge, TransferState, amount } from "../..";
import type { StaticRouteMethods } from "../route";
import { AutomaticRoute } from "../route";
import type { Quote, QuoteResult, Receipt, TransferParams, ValidatedTransferParams, ValidationResult } from "../types";
import type { AttestationReceipt, Chain, ChainContext, Network, Signer, SourceInitiatedTransferReceipt, TokenId, TransactionId } from "./../../index.js";
import { PorticoBridge, TransferState, amount } from "./../../index.js";
import type { StaticRouteMethods } from "../route.js";
import { AutomaticRoute } from "../route.js";
import type { Quote, QuoteResult, Receipt, TransferParams, ValidatedTransferParams, ValidationResult } from "../types.js";
export declare const SLIPPAGE_BPS = 15n;

@@ -45,3 +45,3 @@ export declare const BPS_PER_HUNDRED_PERCENT = 10000n;

track(receipt: R, timeout?: number): AsyncGenerator<{
vaa: import("@wormhole-foundation/sdk-definitions/dist/cjs/vaa/vaa").VAA<"TokenBridge:TransferWithPayload">;
vaa: import("./../../index.js").VAA<"TokenBridge:TransferWithPayload">;
parsed: {

@@ -54,6 +54,6 @@ readonly flagSet: {

readonly padding: Uint8Array;
readonly flags: import("@wormhole-foundation/sdk-base/dist/cjs/utils/layout/items").Bitset<readonly ["shouldWrapNative", "shouldUnwrapNative"]>;
readonly flags: import("./../../index.js").Bitset<readonly ["shouldWrapNative", "shouldUnwrapNative"]>;
};
readonly finalTokenAddress: import("@wormhole-foundation/sdk-definitions/dist/cjs/universalAddress").UniversalAddress;
readonly recipientAddress: import("@wormhole-foundation/sdk-definitions/dist/cjs/universalAddress").UniversalAddress;
readonly finalTokenAddress: import("./../../index.js").UniversalAddress;
readonly recipientAddress: import("./../../index.js").UniversalAddress;
readonly cannonAssetAmount: bigint;

@@ -60,0 +60,0 @@ readonly minAmountFinish: bigint;

@@ -1,3 +0,3 @@

import { PorticoBridge, TokenTransfer, TransferState, Wormhole, canonicalAddress, chainToPlatform, contracts, isAttested, isNative, isSourceInitiated, resolveWrappedToken, signSendWait, tokens, amount, } from "../..";
import { AutomaticRoute } from "../route";
import { PorticoBridge, TokenTransfer, TransferState, Wormhole, canonicalAddress, chainToPlatform, contracts, isAttested, isNative, isSourceInitiated, resolveWrappedToken, signSendWait, tokens, amount, } from "./../../index.js";
import { AutomaticRoute } from "../route.js";
export const SLIPPAGE_BPS = 15n; // 0.15%

@@ -4,0 +4,0 @@ export const BPS_PER_HUNDRED_PERCENT = 10000n;

@@ -1,3 +0,3 @@

export type { PorticoRoute } from "./automatic";
export { SLIPPAGE_BPS, BPS_PER_HUNDRED_PERCENT, AutomaticPorticoRoute } from "./automatic";
export type { PorticoRoute } from './automatic.js';
export { SLIPPAGE_BPS, BPS_PER_HUNDRED_PERCENT, AutomaticPorticoRoute } from "./automatic.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

export { SLIPPAGE_BPS, BPS_PER_HUNDRED_PERCENT, AutomaticPorticoRoute } from "./automatic";
export { SLIPPAGE_BPS, BPS_PER_HUNDRED_PERCENT, AutomaticPorticoRoute } from "./automatic.js";
//# sourceMappingURL=index.js.map

@@ -0,1 +1,2 @@

export {};
//# sourceMappingURL=utils.d.ts.map

@@ -1,2 +0,2 @@

"use strict";
export {};
//# sourceMappingURL=utils.js.map
import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import { amount } from "@wormhole-foundation/sdk-base";
import type { ChainAddress, ChainContext, TokenId } from "@wormhole-foundation/sdk-definitions";
import type { TransferQuote } from "../types";
import type { Wormhole } from "../wormhole";
import type { TokenDetails } from "./token";
import type { Quote, ValidatedTransferParams } from "./types";
import type { TransferQuote } from "../types.js";
import type { Wormhole } from "../wormhole.js";
import type { TokenDetails } from "./token.js";
import type { Quote, ValidatedTransferParams } from "./types.js";
export declare class RouteTransferRequest<N extends Network> {

@@ -9,0 +9,0 @@ from: ChainAddress;

import { amount } from "@wormhole-foundation/sdk-base";
import { getTokenDetails } from "./token";
import { getTokenDetails } from "./token.js";
export class RouteTransferRequest {

@@ -4,0 +4,0 @@ from;

import type { Network } from "@wormhole-foundation/sdk-base";
import type { ChainContext, TokenId } from "@wormhole-foundation/sdk-definitions";
import type { Wormhole } from "../wormhole";
import type { RouteTransferRequest } from "./request";
import type { Route, RouteConstructor } from "./route";
import type { Wormhole } from "../wormhole.js";
import type { RouteTransferRequest } from "./request.js";
import type { Route, RouteConstructor } from "./route.js";
export declare class RouteResolver<N extends Network> {

@@ -7,0 +7,0 @@ wh: Wormhole<N>;

import { canonicalAddress, isNative, resolveWrappedToken, } from "@wormhole-foundation/sdk-definitions";
import { isAutomatic } from "./route";
import { uniqueTokens } from "./token";
import { isAutomatic } from "./route.js";
import { uniqueTokens } from "./token.js";
export class RouteResolver {

@@ -5,0 +5,0 @@ wh;

import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import type { ChainContext, Signer, TokenId, TransactionId } from "@wormhole-foundation/sdk-definitions";
import type { Wormhole } from "../wormhole";
import type { RouteTransferRequest } from "./request";
import type { Options, Quote, QuoteResult, Receipt, TransferParams, ValidatedTransferParams, ValidationResult } from "./types";
import type { Wormhole } from "../wormhole.js";
import type { RouteTransferRequest } from "./request.js";
import type { Options, Quote, QuoteResult, Receipt, TransferParams, ValidatedTransferParams, ValidationResult } from "./types.js";
export declare abstract class Route<N extends Network, OP extends Options = Options, VP extends ValidatedTransferParams<OP> = ValidatedTransferParams<OP>, R extends Receipt = Receipt> {

@@ -7,0 +7,0 @@ wh: Wormhole<N>;

import { tokens } from "@wormhole-foundation/sdk-base";
import { canonicalAddress, isNative } from "@wormhole-foundation/sdk-definitions";
import { Wormhole } from "../wormhole";
import { Wormhole } from "../wormhole.js";
export function uniqueTokens(tokens) {

@@ -5,0 +5,0 @@ if (tokens.length === 0)

import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import { amount } from "@wormhole-foundation/sdk-base";
import type { ChainContext, Signer, TokenId } from "@wormhole-foundation/sdk-definitions";
import type { AttestationReceipt } from "../../types";
import type { StaticRouteMethods } from "../route";
import { AutomaticRoute } from "../route";
import type { Quote, QuoteResult, Receipt, TransferParams, ValidatedTransferParams, ValidationResult } from "../types";
import type { AttestationReceipt } from "../../types.js";
import type { StaticRouteMethods } from "../route.js";
import { AutomaticRoute } from "../route.js";
import type { Quote, QuoteResult, Receipt, TransferParams, ValidatedTransferParams, ValidationResult } from "../types.js";
export declare namespace AutomaticTokenBridgeRoute {

@@ -44,3 +44,3 @@ type Options = {

initiate(signer: Signer, quote: Q): Promise<R>;
track(receipt: R, timeout?: number): AsyncGenerator<import("../../protocols/tokenTransfer").TokenTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">, void, unknown>;
track(receipt: R, timeout?: number): AsyncGenerator<import("../../protocols/tokenTransfer.js").TokenTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">, void, unknown>;
private toTransferDetails;

@@ -47,0 +47,0 @@ }

import { amount, contracts } from "@wormhole-foundation/sdk-base";
import { isNative, isTokenId, nativeTokenId } from "@wormhole-foundation/sdk-definitions";
import { TokenTransfer } from "../../protocols/tokenTransfer";
import { TransferState } from "../../types";
import { AutomaticRoute } from "../route";
import { TokenTransfer } from "../../protocols/tokenTransfer.js";
import { TransferState } from "../../types.js";
import { AutomaticRoute } from "../route.js";
export class AutomaticTokenBridgeRoute extends AutomaticRoute {

@@ -7,0 +7,0 @@ NATIVE_GAS_DROPOFF_SUPPORTED = true;

@@ -1,3 +0,3 @@

export { AutomaticTokenBridgeRoute } from "./automatic";
export { TokenBridgeRoute } from "./manual";
export { AutomaticTokenBridgeRoute } from "./automatic.js";
export { TokenBridgeRoute } from "./manual.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

export { AutomaticTokenBridgeRoute } from "./automatic";
export { TokenBridgeRoute } from "./manual";
export { AutomaticTokenBridgeRoute } from "./automatic.js";
export { TokenBridgeRoute } from "./manual.js";
//# sourceMappingURL=index.js.map
import type { Chain, Network } from "@wormhole-foundation/sdk-base";
import { amount } from "@wormhole-foundation/sdk-base";
import type { ChainContext, Signer, TokenId, TransactionId } from "@wormhole-foundation/sdk-definitions";
import type { AttestationReceipt, TransferReceipt } from "../../types";
import type { StaticRouteMethods } from "../route";
import { ManualRoute } from "../route";
import type { Quote, QuoteResult, TransferParams, ValidatedTransferParams, ValidationResult } from "../types";
import type { AttestationReceipt, TransferReceipt } from "../../types.js";
import type { StaticRouteMethods } from "../route.js";
import { ManualRoute } from "../route.js";
import type { Quote, QuoteResult, TransferParams, ValidatedTransferParams, ValidationResult } from "../types.js";
export declare namespace TokenBridgeRoute {

@@ -40,3 +40,3 @@ type Options = {

complete(signer: Signer, receipt: R): Promise<TransactionId[]>;
track(receipt: R, timeout?: number): AsyncGenerator<import("../../protocols/tokenTransfer").TokenTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">, void, unknown>;
track(receipt: R, timeout?: number): AsyncGenerator<import("../../protocols/tokenTransfer.js").TokenTransferReceipt<"Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Pythnet" | "Cosmoshub" | "Evmos" | "Injective" | "Kujira" | "Osmosis" | "Sei" | "Terra" | "Terra2" | "Wormchain" | "Xpla" | "Dymension" | "Neutron" | "Stargaze" | "Celestia">, void, unknown>;
private toTransferDetails;

@@ -43,0 +43,0 @@ }

import { amount, contracts } from "@wormhole-foundation/sdk-base";
import { TokenTransfer } from "../../protocols/tokenTransfer";
import { TransferState, isAttested } from "../../types";
import { Wormhole } from "../../wormhole";
import { ManualRoute } from "../route";
import { TokenTransfer } from "../../protocols/tokenTransfer.js";
import { TransferState, isAttested } from "../../types.js";
import { Wormhole } from "../../wormhole.js";
import { ManualRoute } from "../route.js";
export class TokenBridgeRoute extends ManualRoute {

@@ -7,0 +7,0 @@ static meta = {

import type { TokenId } from "@wormhole-foundation/sdk-definitions";
import type { AttestationReceipt, TransferReceipt } from "../types";
import type { AttestationReceipt, TransferReceipt } from "../types.js";
import type { amount } from "@wormhole-foundation/sdk-base";

@@ -4,0 +4,0 @@ export interface Options {

import { isGatewayTransferMsg, isGatewayTransferWithPayloadMsg, isIbcMessageId, isTransactionIdentifier, } from "@wormhole-foundation/sdk-definitions";
import { DEFAULT_TASK_TIMEOUT } from "./config";
import { DEFAULT_TASK_TIMEOUT } from "./config.js";
export async function retry(task, interval, timeout = DEFAULT_TASK_TIMEOUT, title) {

@@ -4,0 +4,0 @@ const maxRetries = Math.floor(timeout / interval);

import { amount, encoding, toChain, toChainId } from "@wormhole-foundation/sdk-base";
import { deserialize } from "@wormhole-foundation/sdk-definitions";
import axios from "axios";
import { retry } from "./tasks";
import { retry } from "./tasks.js";
export const WHSCAN_RETRY_INTERVAL = 2000;

@@ -6,0 +6,0 @@ /**

import type { Chain, Network, Platform } from "@wormhole-foundation/sdk-base";
import type { ChainAddress, ChainContext, Contracts, NativeAddress, PayloadDiscriminator, PayloadLiteral, PlatformContext, PlatformUtils, TokenAddress, TokenId, TxHash, WormholeMessageId, deserialize } from "@wormhole-foundation/sdk-definitions";
import type { ConfigOverrides, WormholeConfig } from "./config";
import { CircleTransfer } from "./protocols/cctpTransfer";
import { TokenTransfer } from "./protocols/tokenTransfer";
import type { RouteConstructor } from "./routes";
import { RouteResolver } from "./routes/resolver";
import type { TransactionStatus } from "./whscan-api";
import type { ConfigOverrides, WormholeConfig } from "./config.js";
import { CircleTransfer } from "./protocols/cctpTransfer.js";
import { TokenTransfer } from "./protocols/tokenTransfer.js";
import type { RouteConstructor } from "./routes/index.js";
import { RouteResolver } from "./routes/resolver.js";
import type { TransactionStatus } from "./whscan-api.js";
type PlatformMap<N extends Network, P extends Platform = Platform> = Map<P, PlatformContext<N, P>>;

@@ -10,0 +10,0 @@ type ChainMap<N extends Network, C extends Chain = Chain> = Map<C, ChainContext<N, C>>;

import { chainToPlatform, circle } from "@wormhole-foundation/sdk-base";
import { canonicalAddress, isNative, nativeTokenId, toNative, } from "@wormhole-foundation/sdk-definitions";
import { getCircleAttestationWithRetry } from "./circle-api";
import { DEFAULT_TASK_TIMEOUT, applyOverrides } from "./config";
import { CircleTransfer } from "./protocols/cctpTransfer";
import { TokenTransfer } from "./protocols/tokenTransfer";
import { RouteResolver } from "./routes/resolver";
import { retry } from "./tasks";
import { getTransactionStatusWithRetry, getTxsByAddress, getVaaByTxHashWithRetry, getVaaBytesWithRetry, getVaaWithRetry, } from "./whscan-api";
import { getCircleAttestationWithRetry } from "./circle-api.js";
import { DEFAULT_TASK_TIMEOUT, applyOverrides } from "./config.js";
import { CircleTransfer } from "./protocols/cctpTransfer.js";
import { TokenTransfer } from "./protocols/tokenTransfer.js";
import { RouteResolver } from "./routes/resolver.js";
import { retry } from "./tasks.js";
import { getTransactionStatusWithRetry, getTxsByAddress, getVaaByTxHashWithRetry, getVaaBytesWithRetry, getVaaWithRetry, } from "./whscan-api.js";
export class Wormhole {

@@ -11,0 +11,0 @@ _network;

{
"name": "@wormhole-foundation/sdk-connect",
"version": "0.5.0-alpha.1",
"version": "0.5.0-alpha.2",
"repository": {

@@ -16,4 +16,4 @@ "type": "git",

"license": "Apache-2.0",
"main": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts",
"main": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.js",

@@ -23,3 +23,2 @@ "author": "",

"files": [
"dist/cjs",
"dist/esm"

@@ -39,4 +38,3 @@ ],

"build:cjs": "tsc -p ./tsconfig.cjs.json",
"build:esm": "tsc -p ./tsconfig.esm.json",
"build": "npm run build:cjs && npm run build:esm",
"build": "tsc -p ./tsconfig.esm.json",
"rebuild": "npm run clean && npm run build",

@@ -52,5 +50,6 @@ "clean": "rm -rf ./dist && rm -rf ./.turbo",

"axios": "^1.4.0",
"@wormhole-foundation/sdk-base": "0.5.0-alpha.1",
"@wormhole-foundation/sdk-definitions": "0.5.0-alpha.1"
}
"@wormhole-foundation/sdk-base": "0.5.0-alpha.2",
"@wormhole-foundation/sdk-definitions": "0.5.0-alpha.2"
},
"type": "module"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc