@wormhole-foundation/sdk-connect
Advanced tools
Comparing version 0.9.2 to 0.10.0
@@ -30,3 +30,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
export declare class AutomaticCCTPRoute<N extends Network> extends AutomaticRoute<N, Op, Vp, R> implements StaticRouteMethods<typeof AutomaticCCTPRoute> { | ||
NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static meta: { | ||
@@ -33,0 +33,0 @@ name: string; |
@@ -11,3 +11,3 @@ "use strict"; | ||
class AutomaticCCTPRoute extends route_js_1.AutomaticRoute { | ||
NATIVE_GAS_DROPOFF_SUPPORTED = true; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED = true; | ||
static meta = { | ||
@@ -14,0 +14,0 @@ name: "AutomaticCCTP", |
@@ -31,3 +31,3 @@ import type { StaticRouteMethods } from "../route.js"; | ||
export declare class AutomaticPorticoRoute<N extends Network> extends AutomaticRoute<N, OP, VP, R> implements StaticRouteMethods<typeof AutomaticPorticoRoute> { | ||
NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static meta: { | ||
@@ -34,0 +34,0 @@ name: string; |
@@ -10,3 +10,3 @@ "use strict"; | ||
class AutomaticPorticoRoute extends route_js_1.AutomaticRoute { | ||
NATIVE_GAS_DROPOFF_SUPPORTED = false; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED = false; | ||
static meta = { | ||
@@ -13,0 +13,0 @@ name: "AutomaticPortico", |
@@ -9,4 +9,2 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
wh: Wormhole<N>; | ||
abstract readonly NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
abstract readonly IS_AUTOMATIC: boolean; | ||
constructor(wh: Wormhole<N>); | ||
@@ -30,2 +28,6 @@ abstract validate(request: RouteTransferRequest<N>, params: TransferParams<OP>): Promise<ValidationResult<OP>>; | ||
readonly meta: RouteMeta; | ||
/** true means this route supports native gas dropoff */ | ||
readonly NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
/** true means this is a one-transaction route (using a relayer) */ | ||
readonly IS_AUTOMATIC: boolean; | ||
/** get the list of networks this route supports */ | ||
@@ -48,3 +50,3 @@ supportedNetworks(): Network[]; | ||
export declare abstract class AutomaticRoute<N extends Network, OP extends Options = Options, VP extends ValidatedTransferParams<OP> = ValidatedTransferParams<OP>, R extends Receipt = Receipt> extends Route<N, OP, VP, R> { | ||
IS_AUTOMATIC: boolean; | ||
static IS_AUTOMATIC: boolean; | ||
abstract isAvailable(request: RouteTransferRequest<N>): Promise<boolean>; | ||
@@ -58,4 +60,4 @@ } | ||
export declare abstract class ManualRoute<N extends Network, OP extends Options = Options, VP extends ValidatedTransferParams<OP> = ValidatedTransferParams<OP>, R extends Receipt = Receipt> extends Route<N, OP, VP, R> { | ||
NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
IS_AUTOMATIC: boolean; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static IS_AUTOMATIC: boolean; | ||
abstract complete(sender: Signer, receipt: R): Promise<R>; | ||
@@ -62,0 +64,0 @@ abstract resume(tx: TransactionId): Promise<R>; |
@@ -20,7 +20,7 @@ "use strict"; | ||
class AutomaticRoute extends Route { | ||
IS_AUTOMATIC = true; | ||
static IS_AUTOMATIC = true; | ||
} | ||
exports.AutomaticRoute = AutomaticRoute; | ||
function isAutomatic(route) { | ||
return route.isAvailable !== undefined && route.IS_AUTOMATIC; | ||
return route.isAvailable !== undefined && route.constructor.IS_AUTOMATIC; | ||
} | ||
@@ -33,4 +33,4 @@ exports.isAutomatic = isAutomatic; | ||
class ManualRoute extends Route { | ||
NATIVE_GAS_DROPOFF_SUPPORTED = false; | ||
IS_AUTOMATIC = false; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED = false; | ||
static IS_AUTOMATIC = false; | ||
} | ||
@@ -37,0 +37,0 @@ exports.ManualRoute = ManualRoute; |
@@ -31,3 +31,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
export declare class AutomaticTokenBridgeRoute<N extends Network> extends AutomaticRoute<N, Op, Vp, R> implements StaticRouteMethods<typeof AutomaticTokenBridgeRoute> { | ||
NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static meta: { | ||
@@ -34,0 +34,0 @@ name: string; |
@@ -11,3 +11,3 @@ "use strict"; | ||
class AutomaticTokenBridgeRoute extends route_js_1.AutomaticRoute { | ||
NATIVE_GAS_DROPOFF_SUPPORTED = true; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED = true; | ||
static meta = { | ||
@@ -14,0 +14,0 @@ name: "AutomaticTokenBridge", |
@@ -30,3 +30,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
export declare class AutomaticCCTPRoute<N extends Network> extends AutomaticRoute<N, Op, Vp, R> implements StaticRouteMethods<typeof AutomaticCCTPRoute> { | ||
NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static meta: { | ||
@@ -33,0 +33,0 @@ name: string; |
@@ -8,3 +8,3 @@ import { amount, circle, contracts } from "@wormhole-foundation/sdk-base"; | ||
export class AutomaticCCTPRoute extends AutomaticRoute { | ||
NATIVE_GAS_DROPOFF_SUPPORTED = true; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED = true; | ||
static meta = { | ||
@@ -11,0 +11,0 @@ name: "AutomaticCCTP", |
@@ -31,3 +31,3 @@ import type { StaticRouteMethods } from "../route.js"; | ||
export declare class AutomaticPorticoRoute<N extends Network> extends AutomaticRoute<N, OP, VP, R> implements StaticRouteMethods<typeof AutomaticPorticoRoute> { | ||
NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static meta: { | ||
@@ -34,0 +34,0 @@ name: string; |
@@ -7,3 +7,3 @@ import { filters, finality } from "@wormhole-foundation/sdk-base"; | ||
export class AutomaticPorticoRoute extends AutomaticRoute { | ||
NATIVE_GAS_DROPOFF_SUPPORTED = false; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED = false; | ||
static meta = { | ||
@@ -10,0 +10,0 @@ name: "AutomaticPortico", |
@@ -9,4 +9,2 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
wh: Wormhole<N>; | ||
abstract readonly NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
abstract readonly IS_AUTOMATIC: boolean; | ||
constructor(wh: Wormhole<N>); | ||
@@ -30,2 +28,6 @@ abstract validate(request: RouteTransferRequest<N>, params: TransferParams<OP>): Promise<ValidationResult<OP>>; | ||
readonly meta: RouteMeta; | ||
/** true means this route supports native gas dropoff */ | ||
readonly NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
/** true means this is a one-transaction route (using a relayer) */ | ||
readonly IS_AUTOMATIC: boolean; | ||
/** get the list of networks this route supports */ | ||
@@ -48,3 +50,3 @@ supportedNetworks(): Network[]; | ||
export declare abstract class AutomaticRoute<N extends Network, OP extends Options = Options, VP extends ValidatedTransferParams<OP> = ValidatedTransferParams<OP>, R extends Receipt = Receipt> extends Route<N, OP, VP, R> { | ||
IS_AUTOMATIC: boolean; | ||
static IS_AUTOMATIC: boolean; | ||
abstract isAvailable(request: RouteTransferRequest<N>): Promise<boolean>; | ||
@@ -58,4 +60,4 @@ } | ||
export declare abstract class ManualRoute<N extends Network, OP extends Options = Options, VP extends ValidatedTransferParams<OP> = ValidatedTransferParams<OP>, R extends Receipt = Receipt> extends Route<N, OP, VP, R> { | ||
NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
IS_AUTOMATIC: boolean; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static IS_AUTOMATIC: boolean; | ||
abstract complete(sender: Signer, receipt: R): Promise<R>; | ||
@@ -62,0 +64,0 @@ abstract resume(tx: TransactionId): Promise<R>; |
@@ -16,6 +16,6 @@ export class Route { | ||
export class AutomaticRoute extends Route { | ||
IS_AUTOMATIC = true; | ||
static IS_AUTOMATIC = true; | ||
} | ||
export function isAutomatic(route) { | ||
return route.isAvailable !== undefined && route.IS_AUTOMATIC; | ||
return route.isAvailable !== undefined && route.constructor.IS_AUTOMATIC; | ||
} | ||
@@ -27,4 +27,4 @@ /** | ||
export class ManualRoute extends Route { | ||
NATIVE_GAS_DROPOFF_SUPPORTED = false; | ||
IS_AUTOMATIC = false; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED = false; | ||
static IS_AUTOMATIC = false; | ||
} | ||
@@ -31,0 +31,0 @@ export function isManual(route) { |
@@ -31,3 +31,3 @@ import type { Chain, Network } from "@wormhole-foundation/sdk-base"; | ||
export declare class AutomaticTokenBridgeRoute<N extends Network> extends AutomaticRoute<N, Op, Vp, R> implements StaticRouteMethods<typeof AutomaticTokenBridgeRoute> { | ||
NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean; | ||
static meta: { | ||
@@ -34,0 +34,0 @@ name: string; |
@@ -8,3 +8,3 @@ import { amount, contracts } from "@wormhole-foundation/sdk-base"; | ||
export class AutomaticTokenBridgeRoute extends AutomaticRoute { | ||
NATIVE_GAS_DROPOFF_SUPPORTED = true; | ||
static NATIVE_GAS_DROPOFF_SUPPORTED = true; | ||
static meta = { | ||
@@ -11,0 +11,0 @@ name: "AutomaticTokenBridge", |
{ | ||
"name": "@wormhole-foundation/sdk-connect", | ||
"version": "0.9.2", | ||
"version": "0.10.0", | ||
"repository": { | ||
@@ -101,6 +101,6 @@ "type": "git", | ||
"axios": "^1.4.0", | ||
"@wormhole-foundation/sdk-base": "0.9.2", | ||
"@wormhole-foundation/sdk-definitions": "0.9.2" | ||
"@wormhole-foundation/sdk-base": "0.10.0", | ||
"@wormhole-foundation/sdk-definitions": "0.10.0" | ||
}, | ||
"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
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
857592
9437
+ Added@wormhole-foundation/sdk-base@0.10.0(transitive)
+ Added@wormhole-foundation/sdk-definitions@0.10.0(transitive)
- Removed@wormhole-foundation/sdk-base@0.9.2(transitive)
- Removed@wormhole-foundation/sdk-definitions@0.9.2(transitive)