@wormhole-foundation/sdk-connect
Advanced tools
Comparing version 0.5.2-beta.4 to 0.5.2-beta.5
@@ -18,3 +18,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
attestations?: AttestationReceipt<CircleTransferProtocol>[]; | ||
private constructor(); | ||
constructor(wh: Wormhole<N>, transfer: CircleTransferDetails, fromChain?: ChainContext<N, Chain>, toChain?: ChainContext<N, Chain>); | ||
getTransferState(): TransferState; | ||
@@ -21,0 +21,0 @@ static from<N extends Network>(wh: Wormhole<N>, from: CircleTransferDetails, timeout?: number, fromChain?: ChainContext<N, Chain>, toChain?: ChainContext<N, Chain>): Promise<CircleTransfer<N>>; |
@@ -1,3 +0,3 @@ | ||
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 type { Chain, Network, PlatformToChains } from "@wormhole-foundation/sdk-base"; | ||
import type { AttestationId, ChainContext, GatewayTransferDetails, IbcBridge, IbcTransferInfo, Signer, TokenId, TransactionId, TxHash, WormholeMessageId } from "@wormhole-foundation/sdk-definitions"; | ||
import { TokenBridge } from "@wormhole-foundation/sdk-definitions"; | ||
@@ -7,2 +7,3 @@ import { TransferState } from "../types.js"; | ||
import type { WormholeTransfer } from "./wormholeTransfer.js"; | ||
type GatewayContext<N extends Network> = ChainContext<N, typeof GatewayTransfer.chain>; | ||
export declare class GatewayTransfer<N extends Network = Network> implements WormholeTransfer<"IbcBridge"> { | ||
@@ -23,3 +24,3 @@ static chain: "Wormchain"; | ||
ibcTransfers: IbcTransferInfo[]; | ||
private constructor(); | ||
constructor(wh: Wormhole<N>, transfer: GatewayTransferDetails, gateway: GatewayContext<N>, gatewayIbc: IbcBridge<N, PlatformToChains<"Cosmwasm">>); | ||
getTransferState(): TransferState; | ||
@@ -43,2 +44,3 @@ static from<N extends Network>(wh: Wormhole<N>, from: GatewayTransferDetails): Promise<GatewayTransfer<N>>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=gatewayTransfer.d.ts.map |
@@ -20,3 +20,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
attestations?: AttestationReceipt<TokenTransferProtocol>[]; | ||
private constructor(); | ||
constructor(wh: Wormhole<N>, transfer: TokenTransferDetails, fromChain?: ChainContext<N, Chain>, toChain?: ChainContext<N, Chain>); | ||
getTransferState(): TransferState; | ||
@@ -23,0 +23,0 @@ static from<N extends Network>(wh: Wormhole<N>, from: TokenTransferDetails, timeout?: number, fromChain?: ChainContext<N, Chain>, toChain?: ChainContext<N, Chain>): Promise<TokenTransfer<N>>; |
@@ -15,3 +15,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
toChain: ChainContext<N>; | ||
private constructor(); | ||
constructor(from: ChainAddress, to: ChainAddress, fromChain: ChainContext<N>, toChain: ChainContext<N>, source: TokenDetails, destination: TokenDetails); | ||
parseAmount(amt: string): amount.Amount; | ||
@@ -18,0 +18,0 @@ amountFromBaseUnits(amt: bigint): amount.Amount; |
@@ -18,3 +18,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
attestations?: AttestationReceipt<CircleTransferProtocol>[]; | ||
private constructor(); | ||
constructor(wh: Wormhole<N>, transfer: CircleTransferDetails, fromChain?: ChainContext<N, Chain>, toChain?: ChainContext<N, Chain>); | ||
getTransferState(): TransferState; | ||
@@ -21,0 +21,0 @@ static from<N extends Network>(wh: Wormhole<N>, from: CircleTransferDetails, timeout?: number, fromChain?: ChainContext<N, Chain>, toChain?: ChainContext<N, Chain>): Promise<CircleTransfer<N>>; |
@@ -1,3 +0,3 @@ | ||
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 type { Chain, Network, PlatformToChains } from "@wormhole-foundation/sdk-base"; | ||
import type { AttestationId, ChainContext, GatewayTransferDetails, IbcBridge, IbcTransferInfo, Signer, TokenId, TransactionId, TxHash, WormholeMessageId } from "@wormhole-foundation/sdk-definitions"; | ||
import { TokenBridge } from "@wormhole-foundation/sdk-definitions"; | ||
@@ -7,2 +7,3 @@ import { TransferState } from "../types.js"; | ||
import type { WormholeTransfer } from "./wormholeTransfer.js"; | ||
type GatewayContext<N extends Network> = ChainContext<N, typeof GatewayTransfer.chain>; | ||
export declare class GatewayTransfer<N extends Network = Network> implements WormholeTransfer<"IbcBridge"> { | ||
@@ -23,3 +24,3 @@ static chain: "Wormchain"; | ||
ibcTransfers: IbcTransferInfo[]; | ||
private constructor(); | ||
constructor(wh: Wormhole<N>, transfer: GatewayTransferDetails, gateway: GatewayContext<N>, gatewayIbc: IbcBridge<N, PlatformToChains<"Cosmwasm">>); | ||
getTransferState(): TransferState; | ||
@@ -43,2 +44,3 @@ static from<N extends Network>(wh: Wormhole<N>, from: GatewayTransferDetails): Promise<GatewayTransfer<N>>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=gatewayTransfer.d.ts.map |
@@ -20,3 +20,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
attestations?: AttestationReceipt<TokenTransferProtocol>[]; | ||
private constructor(); | ||
constructor(wh: Wormhole<N>, transfer: TokenTransferDetails, fromChain?: ChainContext<N, Chain>, toChain?: ChainContext<N, Chain>); | ||
getTransferState(): TransferState; | ||
@@ -23,0 +23,0 @@ static from<N extends Network>(wh: Wormhole<N>, from: TokenTransferDetails, timeout?: number, fromChain?: ChainContext<N, Chain>, toChain?: ChainContext<N, Chain>): Promise<TokenTransfer<N>>; |
@@ -15,3 +15,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
toChain: ChainContext<N>; | ||
private constructor(); | ||
constructor(from: ChainAddress, to: ChainAddress, fromChain: ChainContext<N>, toChain: ChainContext<N>, source: TokenDetails, destination: TokenDetails); | ||
parseAmount(amt: string): amount.Amount; | ||
@@ -18,0 +18,0 @@ amountFromBaseUnits(amt: bigint): amount.Amount; |
{ | ||
"name": "@wormhole-foundation/sdk-connect", | ||
"version": "0.5.2-beta.4", | ||
"version": "0.5.2-beta.5", | ||
"repository": { | ||
@@ -61,6 +61,6 @@ "type": "git", | ||
"axios": "^1.4.0", | ||
"@wormhole-foundation/sdk-base": "0.5.2-beta.4", | ||
"@wormhole-foundation/sdk-definitions": "0.5.2-beta.4" | ||
"@wormhole-foundation/sdk-base": "0.5.2-beta.5", | ||
"@wormhole-foundation/sdk-definitions": "0.5.2-beta.5" | ||
}, | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
755397
8473
+ Added@wormhole-foundation/sdk-base@0.5.2-beta.5(transitive)
+ Added@wormhole-foundation/sdk-definitions@0.5.2-beta.5(transitive)
- Removed@wormhole-foundation/sdk-base@0.5.2-beta.4(transitive)
- Removed@wormhole-foundation/sdk-definitions@0.5.2-beta.4(transitive)