@wormhole-foundation/sdk-route-ntt 6.3.0 → 7.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -20
- package/dist/cjs/executor/consts.d.ts +0 -4
- package/dist/cjs/executor/consts.d.ts.map +0 -1
- package/dist/cjs/executor/consts.js +0 -32
- package/dist/cjs/executor/consts.js.map +0 -1
- package/dist/cjs/executor/executor.d.ts +0 -112
- package/dist/cjs/executor/executor.d.ts.map +0 -1
- package/dist/cjs/executor/executor.js +0 -575
- package/dist/cjs/executor/executor.js.map +0 -1
- package/dist/cjs/executor/multiToken.d.ts +0 -113
- package/dist/cjs/executor/multiToken.d.ts.map +0 -1
- package/dist/cjs/executor/multiToken.js +0 -386
- package/dist/cjs/executor/multiToken.js.map +0 -1
- package/dist/cjs/executor/utils.d.ts +0 -175
- package/dist/cjs/executor/utils.d.ts.map +0 -1
- package/dist/cjs/executor/utils.js +0 -147
- package/dist/cjs/executor/utils.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -6
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -22
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/manual.d.ts +0 -60
- package/dist/cjs/manual.d.ts.map +0 -1
- package/dist/cjs/manual.js +0 -309
- package/dist/cjs/manual.js.map +0 -1
- package/dist/cjs/multiTokenManual.d.ts +0 -65
- package/dist/cjs/multiTokenManual.d.ts.map +0 -1
- package/dist/cjs/multiTokenManual.js +0 -181
- package/dist/cjs/multiTokenManual.js.map +0 -1
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/tracking.d.ts +0 -5
- package/dist/cjs/tracking.d.ts.map +0 -1
- package/dist/cjs/tracking.js +0 -106
- package/dist/cjs/tracking.js.map +0 -1
- package/dist/cjs/types.d.ts +0 -116
- package/dist/cjs/types.d.ts.map +0 -1
- package/dist/cjs/types.js +0 -515
- package/dist/cjs/types.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wormhole-foundation/sdk-route-ntt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-beta.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/wormhole-foundation/native-token-transfers.git"
|
|
@@ -13,13 +13,12 @@
|
|
|
13
13
|
"test": "__tests__"
|
|
14
14
|
},
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
|
-
"main": "./dist/
|
|
17
|
-
"types": "./dist/
|
|
16
|
+
"main": "./dist/esm/index.js",
|
|
17
|
+
"types": "./dist/esm/index.d.ts",
|
|
18
18
|
"module": "./dist/esm/index.js",
|
|
19
19
|
"description": "Implementation of a Route usable by the Wormhole SDK",
|
|
20
20
|
"files": [
|
|
21
|
-
"dist/esm"
|
|
22
|
-
"dist/cjs"
|
|
21
|
+
"dist/esm"
|
|
23
22
|
],
|
|
24
23
|
"keywords": [
|
|
25
24
|
"wormhole",
|
|
@@ -32,11 +31,10 @@
|
|
|
32
31
|
},
|
|
33
32
|
"sideEffects": true,
|
|
34
33
|
"scripts": {
|
|
35
|
-
"build:cjs": "tsc -p ./tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
36
34
|
"build:esm": "tsc -p ./tsconfig.esm.json",
|
|
37
|
-
"build": "bun run build:esm
|
|
35
|
+
"build": "bun run build:esm",
|
|
38
36
|
"rebuild": "bun run clean && bun run build",
|
|
39
|
-
"test": "jest --config ./jest.config.ts",
|
|
37
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --config ./jest.config.ts",
|
|
40
38
|
"clean": "rm -rf ./dist",
|
|
41
39
|
"prettier": "prettier --write ./src ./__tests__"
|
|
42
40
|
},
|
|
@@ -46,25 +44,20 @@
|
|
|
46
44
|
"ts-node": "^10.9.2"
|
|
47
45
|
},
|
|
48
46
|
"dependencies": {
|
|
49
|
-
"@wormhole-foundation/sdk-definitions-ntt": "
|
|
50
|
-
"@wormhole-foundation/sdk-evm-ntt": "
|
|
51
|
-
"@wormhole-foundation/sdk-solana-ntt": "
|
|
47
|
+
"@wormhole-foundation/sdk-definitions-ntt": "7.0.0-beta.2",
|
|
48
|
+
"@wormhole-foundation/sdk-evm-ntt": "7.0.0-beta.2",
|
|
49
|
+
"@wormhole-foundation/sdk-solana-ntt": "7.0.0-beta.2"
|
|
52
50
|
},
|
|
53
51
|
"peerDependencies": {
|
|
54
|
-
"@wormhole-foundation/sdk-connect": "^
|
|
52
|
+
"@wormhole-foundation/sdk-connect": "^5.0.0-beta.2",
|
|
55
53
|
"axios": "^1.9.0"
|
|
56
54
|
},
|
|
57
55
|
"type": "module",
|
|
58
56
|
"exports": {
|
|
59
57
|
".": {
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
"require": {
|
|
65
|
-
"types": "./dist/cjs/index.d.ts",
|
|
66
|
-
"default": "./dist/cjs/index.js"
|
|
67
|
-
}
|
|
58
|
+
"types": "./dist/esm/index.d.ts",
|
|
59
|
+
"import": "./dist/esm/index.js",
|
|
60
|
+
"default": "./dist/esm/index.js"
|
|
68
61
|
}
|
|
69
62
|
}
|
|
70
63
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/executor/consts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,YAAY,EAEZ,OAAO,EAER,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAGvD,CAAC;AAGF,eAAO,MAAM,yBAAyB,GAAI,OAAO,KAAK,KAAG,YAgBxD,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDefaultReferrerAddress = exports.apiBaseUrl = void 0;
|
|
4
|
-
const sdk_connect_1 = require("@wormhole-foundation/sdk-connect");
|
|
5
|
-
exports.apiBaseUrl = {
|
|
6
|
-
Mainnet: "https://executor.labsapis.com",
|
|
7
|
-
Testnet: "https://executor-testnet.labsapis.com",
|
|
8
|
-
};
|
|
9
|
-
// Referrer addresses (to whom the referrer fee should be paid)
|
|
10
|
-
const getDefaultReferrerAddress = (chain) => {
|
|
11
|
-
const platform = (0, sdk_connect_1.chainToPlatform)(chain);
|
|
12
|
-
let address = "";
|
|
13
|
-
if (platform === "Evm") {
|
|
14
|
-
address = "0x9b2A3B92b1D86938D3Ed37B0519952C227bA6D09";
|
|
15
|
-
}
|
|
16
|
-
else if (platform === "Solana") {
|
|
17
|
-
address = "9q2q3EtP1VNdyaxzju1CGfh3EDj7heGABgxAJNyQDXgT";
|
|
18
|
-
}
|
|
19
|
-
else if (platform === "Sui") {
|
|
20
|
-
address =
|
|
21
|
-
"0xbfa1240e48c622d97881473953be730091161b7931d89bd6afe667841cf69ef4";
|
|
22
|
-
}
|
|
23
|
-
else if (platform === "Xrpl") {
|
|
24
|
-
address = "rrrrrrrrrrrrrrrrrrrrrhoLvTp";
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
throw new Error(`No referrer address for chain ${chain}`);
|
|
28
|
-
}
|
|
29
|
-
return sdk_connect_1.Wormhole.chainAddress(chain, address);
|
|
30
|
-
};
|
|
31
|
-
exports.getDefaultReferrerAddress = getDefaultReferrerAddress;
|
|
32
|
-
//# sourceMappingURL=consts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/executor/consts.ts"],"names":[],"mappings":";;;AAAA,kEAM0C;AAE7B,QAAA,UAAU,GAAqC;IAC1D,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,uCAAuC;CACjD,CAAC;AAEF,+DAA+D;AACxD,MAAM,yBAAyB,GAAG,CAAC,KAAY,EAAgB,EAAE;IACtE,MAAM,QAAQ,GAAG,IAAA,6BAAe,EAAC,KAAK,CAAC,CAAC;IACxC,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;QACvB,OAAO,GAAG,4CAA4C,CAAC;IACzD,CAAC;SAAM,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACjC,OAAO,GAAG,8CAA8C,CAAC;IAC3D,CAAC;SAAM,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;QAC9B,OAAO;YACL,oEAAoE,CAAC;IACzE,CAAC;SAAM,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;QAC/B,OAAO,GAAG,6BAA6B,CAAC;IAC1C,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,sBAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC,CAAC;AAhBW,QAAA,yBAAyB,6BAgBpC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { Chain, ChainAddress, ChainContext, Network, Signer, TokenId, TransactionId, TransferReceipt as _TransferReceipt, UnsignedTransaction, Wormhole, amount } from "@wormhole-foundation/sdk-connect";
|
|
2
|
-
import * as routes from "@wormhole-foundation/sdk-connect/routes";
|
|
3
|
-
import { NttRoute } from "../types.js";
|
|
4
|
-
import { Ntt, NttWithExecutor } from "@wormhole-foundation/sdk-definitions-ntt";
|
|
5
|
-
export declare namespace NttExecutorRoute {
|
|
6
|
-
type Config = {
|
|
7
|
-
ntt: NttRoute.Config;
|
|
8
|
-
getFee?: GetFeeCallback;
|
|
9
|
-
};
|
|
10
|
-
type GetFeeResult = {
|
|
11
|
-
transferTokenFee: bigint;
|
|
12
|
-
nativeTokenFee: bigint;
|
|
13
|
-
referrerAddress: string;
|
|
14
|
-
};
|
|
15
|
-
type GetFeeCallback = (params: {
|
|
16
|
-
amount: bigint;
|
|
17
|
-
sourceChain: Chain;
|
|
18
|
-
sourceToken: string;
|
|
19
|
-
destinationChain: Chain;
|
|
20
|
-
destinationToken: string;
|
|
21
|
-
}) => Promise<GetFeeResult>;
|
|
22
|
-
type Options = {
|
|
23
|
-
nativeGas?: number;
|
|
24
|
-
msgValue?: bigint;
|
|
25
|
-
gasLimit?: bigint;
|
|
26
|
-
feeToken?: string;
|
|
27
|
-
};
|
|
28
|
-
type NormalizedParams = {
|
|
29
|
-
amount: amount.Amount;
|
|
30
|
-
sourceContracts: Ntt.Contracts;
|
|
31
|
-
destinationContracts: Ntt.Contracts;
|
|
32
|
-
transferTokenFee: bigint;
|
|
33
|
-
nativeTokenFee: bigint;
|
|
34
|
-
referrerAddress?: ChainAddress;
|
|
35
|
-
};
|
|
36
|
-
interface ValidatedParams extends routes.ValidatedTransferParams<Options> {
|
|
37
|
-
normalizedParams: NormalizedParams;
|
|
38
|
-
}
|
|
39
|
-
type TransferReceipt<SC extends Chain = Chain, DC extends Chain = Chain> = _TransferReceipt<NttRoute.ManualAttestationReceipt, SC, DC> & {
|
|
40
|
-
params: ValidatedParams;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
type Op = NttExecutorRoute.Options;
|
|
44
|
-
type Tp = routes.TransferParams<Op>;
|
|
45
|
-
type Vr = routes.ValidationResult<Op>;
|
|
46
|
-
type Vp = NttExecutorRoute.ValidatedParams;
|
|
47
|
-
type Q = routes.Quote<Op, Vp, NttWithExecutor.Quote>;
|
|
48
|
-
type QR = routes.QuoteResult<Op, Vp>;
|
|
49
|
-
type R = NttExecutorRoute.TransferReceipt;
|
|
50
|
-
export declare function nttExecutorRoute(config: NttExecutorRoute.Config): {
|
|
51
|
-
new <N extends Network>(wh: Wormhole<N>): {
|
|
52
|
-
readonly staticConfig: NttExecutorRoute.Config;
|
|
53
|
-
getDefaultOptions(): Op;
|
|
54
|
-
validate(request: routes.RouteTransferRequest<N>, params: Tp): Promise<Vr>;
|
|
55
|
-
quote(request: routes.RouteTransferRequest<N>, params: Vp): Promise<QR>;
|
|
56
|
-
fetchExecutorQuote(request: routes.RouteTransferRequest<N>, params: Vp): Promise<NttWithExecutor.Quote>;
|
|
57
|
-
_buildInitiateXfer(request: routes.RouteTransferRequest<N>, sender: ChainAddress, to: ChainAddress, quote: Q): Promise<AsyncGenerator<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">, any, any>>;
|
|
58
|
-
buildInitiateTransactions(request: routes.RouteTransferRequest<N>, sender: ChainAddress, recipient: ChainAddress, quote: Q): Promise<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">[]>;
|
|
59
|
-
initiate(request: routes.RouteTransferRequest<N>, signer: Signer, quote: Q, to: ChainAddress): Promise<R>;
|
|
60
|
-
_buildCompleteXfer(sender: ChainAddress, receipt: R): Promise<AsyncGenerator<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">, any, any> | null>;
|
|
61
|
-
buildCompleteTransactions(sender: ChainAddress, receipt: R): Promise<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">[]>;
|
|
62
|
-
complete(signer: Signer, receipt: R): Promise<R>;
|
|
63
|
-
resume(tx: TransactionId): Promise<R>;
|
|
64
|
-
_buildFinalizeXfer(sender: ChainAddress, receipt: R): Promise<AsyncGenerator<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">, any, any>>;
|
|
65
|
-
buildFinalizeTransactions(sender: ChainAddress, receipt: R): Promise<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">[]>;
|
|
66
|
-
finalize(signer: Signer, receipt: R): Promise<R>;
|
|
67
|
-
track(receipt: R, timeout?: number): AsyncGenerator<R, void, unknown>;
|
|
68
|
-
wh: Wormhole<N>;
|
|
69
|
-
transferUrl(txid: string): string;
|
|
70
|
-
};
|
|
71
|
-
config: NttExecutorRoute.Config;
|
|
72
|
-
NATIVE_GAS_DROPOFF_SUPPORTED: boolean;
|
|
73
|
-
meta: {
|
|
74
|
-
name: string;
|
|
75
|
-
};
|
|
76
|
-
supportedNetworks(): Network[];
|
|
77
|
-
supportedChains(network: Network): Chain[];
|
|
78
|
-
supportedSourceTokens(fromChain: ChainContext<Network>): Promise<TokenId[]>;
|
|
79
|
-
supportedDestinationTokens<N extends Network>(sourceToken: TokenId, fromChain: ChainContext<N>, toChain: ChainContext<N>): Promise<TokenId[]>;
|
|
80
|
-
isProtocolSupported<N extends Network>(chain: ChainContext<N>): boolean;
|
|
81
|
-
IS_AUTOMATIC: boolean;
|
|
82
|
-
};
|
|
83
|
-
export declare class NttExecutorRoute<N extends Network> extends routes.AutomaticRoute<N, Op, Vp, R> implements routes.StaticRouteMethods<typeof NttExecutorRoute> {
|
|
84
|
-
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean;
|
|
85
|
-
readonly staticConfig: NttExecutorRoute.Config;
|
|
86
|
-
static config: NttExecutorRoute.Config;
|
|
87
|
-
static meta: {
|
|
88
|
-
name: string;
|
|
89
|
-
};
|
|
90
|
-
static supportedNetworks(): Network[];
|
|
91
|
-
static supportedChains(network: Network): Chain[];
|
|
92
|
-
static supportedSourceTokens(fromChain: ChainContext<Network>): Promise<TokenId[]>;
|
|
93
|
-
static supportedDestinationTokens<N extends Network>(sourceToken: TokenId, fromChain: ChainContext<N>, toChain: ChainContext<N>): Promise<TokenId[]>;
|
|
94
|
-
static isProtocolSupported<N extends Network>(chain: ChainContext<N>): boolean;
|
|
95
|
-
getDefaultOptions(): Op;
|
|
96
|
-
validate(request: routes.RouteTransferRequest<N>, params: Tp): Promise<Vr>;
|
|
97
|
-
quote(request: routes.RouteTransferRequest<N>, params: Vp): Promise<QR>;
|
|
98
|
-
fetchExecutorQuote(request: routes.RouteTransferRequest<N>, params: Vp): Promise<NttWithExecutor.Quote>;
|
|
99
|
-
_buildInitiateXfer(request: routes.RouteTransferRequest<N>, sender: ChainAddress, to: ChainAddress, quote: Q): Promise<AsyncGenerator<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">, any, any>>;
|
|
100
|
-
buildInitiateTransactions(request: routes.RouteTransferRequest<N>, sender: ChainAddress, recipient: ChainAddress, quote: Q): Promise<UnsignedTransaction<N, Chain>[]>;
|
|
101
|
-
initiate(request: routes.RouteTransferRequest<N>, signer: Signer, quote: Q, to: ChainAddress): Promise<R>;
|
|
102
|
-
_buildCompleteXfer(sender: ChainAddress, receipt: R): Promise<AsyncGenerator<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">, any, any> | null>;
|
|
103
|
-
buildCompleteTransactions(sender: ChainAddress, receipt: R): Promise<UnsignedTransaction<N, Chain>[]>;
|
|
104
|
-
complete(signer: Signer, receipt: R): Promise<R>;
|
|
105
|
-
resume(tx: TransactionId): Promise<R>;
|
|
106
|
-
_buildFinalizeXfer(sender: ChainAddress, receipt: R): Promise<AsyncGenerator<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Arc" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">, any, any>>;
|
|
107
|
-
buildFinalizeTransactions(sender: ChainAddress, receipt: R): Promise<UnsignedTransaction<N, Chain>[]>;
|
|
108
|
-
finalize(signer: Signer, receipt: R): Promise<R>;
|
|
109
|
-
track(receipt: R, timeout?: number): AsyncGenerator<R, void, unknown>;
|
|
110
|
-
}
|
|
111
|
-
export {};
|
|
112
|
-
//# sourceMappingURL=executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executor/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,YAAY,EACZ,YAAY,EAGZ,OAAO,EAEP,MAAM,EACN,OAAO,EACP,aAAa,EACb,eAAe,IAAI,gBAAgB,EAGnC,mBAAmB,EACnB,QAAQ,EAER,MAAM,EAiBP,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AASvC,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;A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