@aptos-labs/cross-chain-core 5.4.14 → 5.4.15-xchaininit.0

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.
@@ -16,7 +16,7 @@ export interface CrossChainDappConfig {
16
16
  export type { AccountAddressInput } from "@aptos-labs/ts-sdk";
17
17
  export { NetworkToChainId, NetworkToNodeAPI } from "@aptos-labs/ts-sdk";
18
18
  export type AptosAccount = Account;
19
- export type Chain = "Solana" | "Ethereum" | "Sepolia" | "Aptos" | "BaseSepolia" | "ArbitrumSepolia" | "Avalanche" | "Base" | "Arbitrum" | "PolygonSepolia" | "Polygon" | "HyperEVM";
19
+ export type Chain = "Solana" | "Ethereum" | "Sepolia" | "Aptos" | "BaseSepolia" | "ArbitrumSepolia" | "Avalanche" | "Base" | "Arbitrum" | "PolygonSepolia" | "Polygon";
20
20
  export declare const EthereumChainIdToTestnetChain: Record<string, ChainConfig>;
21
21
  export declare const EthereumChainIdToMainnetChain: Record<string, ChainConfig>;
22
22
  export type CCTPProviders = "Wormhole";
@@ -1 +1 @@
1
- {"version":3,"file":"CrossChainCore.d.ts","sourceRoot":"","sources":["../src/CrossChainCore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAYtD,OAAO,EACL,YAAY,EAKZ,WAAW,EACX,WAAW,EACZ,MAAM,UAAU,CAAC;AAOlB,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,iBAAiB,CAAC,EAAE;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;YAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;KACH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AAkB,CACjC,aAAa,GAAG,GAAG,EACnB,cAAc,GAAG,GAAG,EACpB,gBAAgB,GAAG,GAAG,EACtB,iBAAiB,GAAG,GAAG,EACvB,gBAAgB,GAAG,GAAG,EACtB,iBAAiB,GAAG,GAAG;IAEvB,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACzD,QAAQ,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC/D,QAAQ,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAChE;AAED,qBAAa,cAAc;IACzB,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAExC;IAEF,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAiB;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAiB;gBAEjD,IAAI,EAAE;QAAE,UAAU,EAAE,oBAAoB,CAAA;KAAE;IAWtD,WAAW,CAAC,YAAY,EAAE,aAAa,GAAG,kBAAkB;IAgBtD,oBAAoB,CACxB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,KAAK,GACjB,OAAO,CAAC,MAAM,CAAC;CAsCnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/config/mainnet/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,YAwG3B,CAAC"}
1
+ {"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/config/mainnet/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,YA6F3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/config/mainnet/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAoFrD,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/config/mainnet/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CA2ErD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/config/testnet/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,YAyG3B,CAAC"}
1
+ {"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/config/testnet/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,YA8F3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/config/testnet/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAoFrD,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/config/testnet/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CA2ErD,CAAC"}
package/dist/index.d.mts CHANGED
@@ -62,7 +62,7 @@ interface CrossChainDappConfig {
62
62
  }
63
63
 
64
64
  type AptosAccount = Account;
65
- type Chain = "Solana" | "Ethereum" | "Sepolia" | "Aptos" | "BaseSepolia" | "ArbitrumSepolia" | "Avalanche" | "Base" | "Arbitrum" | "PolygonSepolia" | "Polygon" | "HyperEVM";
65
+ type Chain = "Solana" | "Ethereum" | "Sepolia" | "Aptos" | "BaseSepolia" | "ArbitrumSepolia" | "Avalanche" | "Base" | "Arbitrum" | "PolygonSepolia" | "Polygon";
66
66
  declare const EthereumChainIdToTestnetChain: Record<string, ChainConfig>;
67
67
  declare const EthereumChainIdToMainnetChain: Record<string, ChainConfig>;
68
68
  type CCTPProviders = "Wormhole";
package/dist/index.d.ts CHANGED
@@ -1,174 +1,6 @@
1
- import { Network, Account, AccountAddressInput } from '@aptos-labs/ts-sdk';
2
- export { AccountAddressInput, Network, NetworkToChainId, NetworkToNodeAPI } from '@aptos-labs/ts-sdk';
3
- import { Wormhole, TokenId, Network as Network$1, Chain as Chain$1, SignAndSendSigner, UnsignedTransaction, TxHash } from '@wormhole-foundation/sdk';
4
- import { AdapterWallet } from '@aptos-labs/wallet-adapter-core';
5
- import { routes, AttestationReceipt } from '@wormhole-foundation/sdk/dist/cjs';
6
- import { AptosChains } from '@wormhole-foundation/sdk-aptos';
7
-
8
- declare enum Context {
9
- ETH = "Ethereum",
10
- SOLANA = "Solana",
11
- APTOS = "Aptos"
12
- }
13
- type BaseChainConfig = {
14
- key: Chain;
15
- context: Context;
16
- disabledAsSource?: boolean;
17
- disabledAsDestination?: boolean;
18
- };
19
- interface ChainConfig extends BaseChainConfig {
20
- defaultRpc: string;
21
- displayName: string;
22
- explorerUrl: string;
23
- explorerName: string;
24
- chainId: number | string;
25
- icon: Chain;
26
- symbol?: string;
27
- }
28
- type ChainsConfig = {
29
- [chain in Chain]?: ChainConfig;
30
- };
31
- type TokenConfig = {
32
- symbol: string;
33
- name?: string;
34
- decimals: number;
35
- icon: string;
36
- tokenId: {
37
- chain: Chain;
38
- address: string;
39
- };
40
- };
41
-
42
- declare const testnetChains: ChainsConfig;
43
-
44
- declare const testnetTokens: Record<string, TokenConfig>;
45
-
46
- declare const mainnetChains: ChainsConfig;
47
-
48
- declare const mainnetTokens: Record<string, TokenConfig>;
49
-
50
- interface CrossChainDappConfig {
51
- aptosNetwork: Network;
52
- disableTelemetry?: boolean;
53
- solanaConfig?: {
54
- rpc?: string;
55
- priorityFeeConfig?: {
56
- percentile?: number;
57
- percentileMultiple?: number;
58
- min?: number;
59
- max?: number;
60
- };
61
- };
62
- }
63
-
64
- type AptosAccount = Account;
65
- type Chain = "Solana" | "Ethereum" | "Sepolia" | "Aptos" | "BaseSepolia" | "ArbitrumSepolia" | "Avalanche" | "Base" | "Arbitrum" | "PolygonSepolia" | "Polygon" | "HyperEVM";
66
- declare const EthereumChainIdToTestnetChain: Record<string, ChainConfig>;
67
- declare const EthereumChainIdToMainnetChain: Record<string, ChainConfig>;
68
- type CCTPProviders = "Wormhole";
69
- interface CrossChainProvider<TQuoteRequest = any, TQuoteResponse = any, TTransferRequest = any, TTransferResponse = any, TWithdrawRequest = any, TWithdrawResponse = any> {
70
- getQuote(params: TQuoteRequest): Promise<TQuoteResponse>;
71
- transfer(params: TTransferRequest): Promise<TTransferResponse>;
72
- withdraw(params: TWithdrawRequest): Promise<TWithdrawResponse>;
73
- }
74
- declare class CrossChainCore {
75
- readonly _dappConfig: CrossChainDappConfig;
76
- readonly CHAINS: ChainsConfig;
77
- readonly TOKENS: Record<string, TokenConfig>;
78
- constructor(args: {
79
- dappConfig: CrossChainDappConfig;
80
- });
81
- getProvider(providerType: CCTPProviders): CrossChainProvider;
82
- getWalletUSDCBalance(walletAddress: string, sourceChain: Chain): Promise<string>;
83
- }
84
-
85
- type WormholeRouteResponse = routes.Route<"Mainnet" | "Testnet", routes.Options, routes.ValidatedTransferParams<routes.Options>, routes.Receipt>;
86
- type WormholeRequest = routes.RouteTransferRequest<"Mainnet" | "Testnet">;
87
- type WormholeQuoteResponse = routes.Quote<routes.Options, routes.ValidatedTransferParams<routes.Options>, any>;
88
- interface WormholeQuoteRequest {
89
- amount: string;
90
- originChain: Chain;
91
- type: "transfer" | "withdraw";
92
- }
93
- type GasStationApiKey = string;
94
- interface WormholeTransferRequest {
95
- sourceChain: Chain;
96
- wallet: AdapterWallet;
97
- destinationAddress: AccountAddressInput;
98
- mainSigner: Account;
99
- amount?: string;
100
- sponsorAccount?: Account | GasStationApiKey;
101
- }
102
- interface WormholeWithdrawRequest {
103
- sourceChain: Chain;
104
- wallet: AdapterWallet;
105
- destinationAddress: AccountAddressInput;
106
- sponsorAccount?: Account | GasStationApiKey;
107
- }
108
- interface WormholeSubmitTransferRequest {
109
- sourceChain: Chain;
110
- wallet: AdapterWallet;
111
- destinationAddress: AccountAddressInput;
112
- }
113
- interface WormholeClaimTransferRequest {
114
- receipt: routes.Receipt<AttestationReceipt>;
115
- mainSigner: AptosAccount;
116
- sponsorAccount?: AptosAccount | GasStationApiKey;
117
- }
118
- interface WormholeTransferResponse {
119
- destinationChainTxnId: string;
120
- originChainTxnId: string;
121
- }
122
- interface WormholeWithdrawResponse {
123
- destinationChainTxnId: string;
124
- originChainTxnId: string;
125
- }
126
- interface WormholeStartTransferResponse {
127
- originChainTxnId: string;
128
- receipt: routes.Receipt<AttestationReceipt>;
129
- }
130
-
131
- declare class WormholeProvider implements CrossChainProvider<WormholeQuoteRequest, WormholeQuoteResponse, WormholeTransferRequest, WormholeTransferResponse, WormholeWithdrawRequest, WormholeWithdrawResponse> {
132
- private crossChainCore;
133
- private _wormholeContext;
134
- private wormholeRoute;
135
- private wormholeRequest;
136
- private wormholeQuote;
137
- constructor(core: CrossChainCore);
138
- get wormholeContext(): Wormhole<"Mainnet" | "Testnet"> | undefined;
139
- private setWormholeContext;
140
- private getRoute;
141
- getQuote(input: WormholeQuoteRequest): Promise<WormholeQuoteResponse>;
142
- submitCCTPTransfer(input: WormholeSubmitTransferRequest): Promise<WormholeStartTransferResponse>;
143
- claimCCTPTransfer(input: WormholeClaimTransferRequest): Promise<{
144
- destinationChainTxnId: string;
145
- }>;
146
- /**
147
- * Initiates a transfer of USDC funds from the source chain wallet to the destination chain wallet
148
- * @param args
149
- * @returns
150
- */
151
- transfer(input: WormholeTransferRequest): Promise<WormholeTransferResponse>;
152
- withdraw(input: WormholeWithdrawRequest): Promise<WormholeWithdrawResponse>;
153
- getChainConfig(chain: Chain): ChainConfig;
154
- getTokenInfo(sourceChain: Chain, destinationChain: Chain): {
155
- sourceToken: TokenId;
156
- destToken: TokenId;
157
- };
158
- }
159
-
160
- declare class AptosLocalSigner<N extends Network$1, C extends Chain$1> implements SignAndSendSigner<N, C> {
161
- _chain: C;
162
- _options: any;
163
- _wallet: Account;
164
- _sponsorAccount: Account | GasStationApiKey | undefined;
165
- _claimedTransactionHashes: string;
166
- constructor(chain: C, options: any, wallet: Account, feePayerAccount: Account | GasStationApiKey | undefined);
167
- chain(): C;
168
- address(): string;
169
- claimedTransactionHashes(): string;
170
- signAndSend(txs: UnsignedTransaction<N, C>[]): Promise<TxHash[]>;
171
- }
172
- declare function signAndSendTransaction(request: UnsignedTransaction<Network$1, AptosChains>, wallet: Account, sponsorAccount: Account | GasStationApiKey | undefined): Promise<string>;
173
-
174
- export { type AptosAccount, AptosLocalSigner, type BaseChainConfig, type CCTPProviders, type Chain, type ChainConfig, type ChainsConfig, Context, CrossChainCore, type CrossChainDappConfig, type CrossChainProvider, EthereumChainIdToMainnetChain, EthereumChainIdToTestnetChain, type GasStationApiKey, type TokenConfig, type WormholeClaimTransferRequest, WormholeProvider, type WormholeQuoteRequest, type WormholeQuoteResponse, type WormholeRequest, type WormholeRouteResponse, type WormholeStartTransferResponse, type WormholeSubmitTransferRequest, type WormholeTransferRequest, type WormholeTransferResponse, type WormholeWithdrawRequest, type WormholeWithdrawResponse, mainnetChains, mainnetTokens, signAndSendTransaction, testnetChains, testnetTokens };
1
+ export * from "./CrossChainCore";
2
+ export * from "./config";
3
+ export * from "./providers/wormhole/index";
4
+ export * from "./providers/wormhole/types";
5
+ export { Network } from "@aptos-labs/ts-sdk";
6
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -606,14 +606,6 @@ var WormholeProvider = class {
606
606
  }
607
607
  const isMainnet = dappNetwork === import_ts_sdk3.Network.MAINNET;
608
608
  const platforms = [import_aptos.default, import_solana.default, import_evm.default];
609
- const rpcOverrides = isMainnet ? {} : {
610
- chains: {
611
- // Wormhole SDK has wrong testnet RPC for HyperEVM (uses api. instead of rpc.)
612
- HyperEVM: {
613
- rpc: "https://rpc.hyperliquid-testnet.xyz/evm"
614
- }
615
- }
616
- };
617
609
  const wh = await (0, import_sdk.wormhole)(isMainnet ? "Mainnet" : "Testnet", platforms);
618
610
  this._wormholeContext = wh;
619
611
  }
@@ -640,12 +632,10 @@ var WormholeProvider = class {
640
632
  sourceContext,
641
633
  destContext
642
634
  );
643
- logger.log("request", request);
644
635
  const resolver = this._wormholeContext.resolver([
645
636
  import_sdk.routes.CCTPRoute
646
637
  // manual CCTP
647
638
  ]);
648
- logger.log("resolver", resolver);
649
639
  const route = await resolver.findRoutes(request);
650
640
  const cctpRoute = route[0];
651
641
  this.wormholeRoute = cctpRoute;
@@ -920,8 +910,8 @@ var testnetChains = {
920
910
  explorerUrl: "https://sepolia.etherscan.io/",
921
911
  explorerName: "Etherscan",
922
912
  icon: "Ethereum",
923
- symbol: "SepoliaETH",
924
- defaultRpc: "https://ethereum-sepolia-rpc.publicnode.com"
913
+ symbol: "ETH",
914
+ defaultRpc: "https://eth-sepolia.public.blastapi.io"
925
915
  },
926
916
  BaseSepolia: {
927
917
  key: "BaseSepolia",
@@ -967,17 +957,6 @@ var testnetChains = {
967
957
  symbol: "MATIC",
968
958
  defaultRpc: "https://rpc-amoy.polygon.technology/"
969
959
  },
970
- HyperEVM: {
971
- key: "HyperEVM",
972
- context: "Ethereum" /* ETH */,
973
- chainId: 998,
974
- displayName: "HyperEVM",
975
- explorerUrl: "https://testnet.purrsec.com",
976
- explorerName: "Purrsec testnet",
977
- icon: "HyperEVM",
978
- symbol: "HYPE",
979
- defaultRpc: "https://rpc.hyperliquid-testnet.xyz/evm"
980
- },
981
960
  Solana: {
982
961
  key: "Solana",
983
962
  context: "Solana" /* SOLANA */,
@@ -1081,15 +1060,6 @@ var testnetTokens = {
1081
1060
  chain: "PolygonSepolia",
1082
1061
  address: "0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582"
1083
1062
  }
1084
- },
1085
- HyperEVM: {
1086
- symbol: "USDC",
1087
- icon: "USDC",
1088
- tokenId: {
1089
- chain: "HyperEVM",
1090
- address: "0x2B3370eE501B4a559b57D449569354196457D8Ab"
1091
- },
1092
- decimals: 6
1093
1063
  }
1094
1064
  // Sui: {
1095
1065
  // symbol: "USDC",
@@ -1160,17 +1130,6 @@ var mainnetChains = {
1160
1130
  symbol: "BASE",
1161
1131
  defaultRpc: "https://mainnet.base.org"
1162
1132
  },
1163
- HyperEVM: {
1164
- key: "HyperEVM",
1165
- context: "Ethereum" /* ETH */,
1166
- chainId: 999,
1167
- displayName: "HyperEVM",
1168
- explorerUrl: "https://hyperevmscan.io/",
1169
- explorerName: "HyperEVMScan",
1170
- icon: "HyperEVM",
1171
- symbol: "HYPE",
1172
- defaultRpc: "https://rpc.hyperliquid.xyz/evm"
1173
- },
1174
1133
  Arbitrum: {
1175
1134
  key: "Arbitrum",
1176
1135
  context: "Ethereum" /* ETH */,
@@ -1274,15 +1233,6 @@ var mainnetTokens = {
1274
1233
  chain: "Polygon",
1275
1234
  address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
1276
1235
  }
1277
- },
1278
- HyperEVM: {
1279
- symbol: "USDC",
1280
- icon: "USDC",
1281
- tokenId: {
1282
- chain: "HyperEVM",
1283
- address: "0xb88339CB7199b77E23DB6E890353E22632Ba630f"
1284
- },
1285
- decimals: 6
1286
1236
  }
1287
1237
  // Sui: {
1288
1238
  // symbol: "USDC",
@@ -1312,7 +1262,6 @@ var getSolanaWalletUSDCBalance = async (walletAddress, aptosNetwork, rpc) => {
1312
1262
  return balance.value.uiAmountString ?? (Number(balance.value.amount) / 10 ** balance.value.decimals).toString();
1313
1263
  };
1314
1264
  var getEthereumWalletUSDCBalance = async (walletAddress, aptosNetwork, chain, rpc) => {
1315
- console.log("chain", chain);
1316
1265
  const token = aptosNetwork === import_ts_sdk4.Network.MAINNET ? mainnetTokens[chain] : testnetTokens[chain];
1317
1266
  const tokenAddress = token.tokenId.address;
1318
1267
  const connection = new import_ethers2.JsonRpcProvider(rpc);
@@ -1348,16 +1297,14 @@ var EthereumChainIdToTestnetChain = {
1348
1297
  84532: testnetChains.BaseSepolia,
1349
1298
  421614: testnetChains.ArbitrumSepolia,
1350
1299
  43113: testnetChains.Avalanche,
1351
- 80002: testnetChains.PolygonSepolia,
1352
- 998: testnetChains.HyperEVM
1300
+ 80002: testnetChains.PolygonSepolia
1353
1301
  };
1354
1302
  var EthereumChainIdToMainnetChain = {
1355
1303
  1: mainnetChains.Ethereum,
1356
1304
  8453: mainnetChains.Base,
1357
1305
  42161: mainnetChains.Arbitrum,
1358
1306
  43114: mainnetChains.Avalanche,
1359
- 137: mainnetChains.Polygon,
1360
- 999: mainnetChains.HyperEVM
1307
+ 137: mainnetChains.Polygon
1361
1308
  };
1362
1309
  var CrossChainCore = class {
1363
1310
  constructor(args) {
@@ -1409,7 +1356,6 @@ var CrossChainCore = class {
1409
1356
  case "Base":
1410
1357
  case "PolygonSepolia":
1411
1358
  case "Polygon":
1412
- case "HyperEVM":
1413
1359
  return await getEthereumWalletUSDCBalance(
1414
1360
  walletAddress,
1415
1361
  this._dappConfig.aptosNetwork,
@@ -1442,3 +1388,4 @@ var import_ts_sdk7 = require("@aptos-labs/ts-sdk");
1442
1388
  testnetChains,
1443
1389
  testnetTokens
1444
1390
  });
1391
+ //# sourceMappingURL=index.js.map