@veridex/sdk 1.0.0-beta.10 → 1.0.0-beta.11

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/dist/index.mjs CHANGED
@@ -364,7 +364,7 @@ var WORMHOLE_API = {
364
364
  var HUB_ABI = [
365
365
  "function authenticateAndDispatch((bytes authenticatorData, string clientDataJSON, uint256 challengeIndex, uint256 typeIndex, uint256 r, uint256 s) auth, uint256 publicKeyX, uint256 publicKeyY, uint16 targetChain, bytes actionPayload) external payable returns (uint64 sequence)",
366
366
  "function authenticateRawAndDispatch(uint256 r, uint256 s, bytes32 messageHash, uint256 publicKeyX, uint256 publicKeyY, uint16 targetChain, bytes actionPayload, uint256 nonce) external payable returns (uint64 sequence)",
367
- "function getNonce(bytes32 userKeyHash) external view returns (uint256)",
367
+ "function userNonces(bytes32 userKeyHash) external view returns (uint256)",
368
368
  "function encodeTransferAction(address token, address recipient, uint256 amount) external pure returns (bytes)",
369
369
  "function encodeExecuteAction(address target, uint256 value, bytes data) external pure returns (bytes)",
370
370
  "function encodeBridgeAction(bytes32 token, uint256 amount, uint16 targetChain, bytes32 recipient) external pure returns (bytes)",
@@ -1515,6 +1515,14 @@ var OPTIMISM_SEPOLIA_TOKENS = {
1515
1515
  address: "0x4200000000000000000000000000000000000006",
1516
1516
  decimals: 18,
1517
1517
  isNative: false
1518
+ },
1519
+ {
1520
+ symbol: "WETH.base",
1521
+ name: "Wrapped WETH (Base via Wormhole)",
1522
+ address: "0xD408f6498f48aE11BcAb518dA39cF7940eE3271d",
1523
+ // Wormhole-wrapped Base WETH
1524
+ decimals: 18,
1525
+ isNative: false
1518
1526
  }
1519
1527
  ]
1520
1528
  };
@@ -1587,6 +1595,8 @@ var DEFAULT_RPC_URLS = {
1587
1595
  var TESTNET_TOKEN_PRICES = {
1588
1596
  ETH: 2500,
1589
1597
  WETH: 2500,
1598
+ "WETH.BASE": 2500,
1599
+ // Wormhole-wrapped Base WETH
1590
1600
  USDC: 1,
1591
1601
  USDT: 1,
1592
1602
  DAI: 1,
@@ -7520,7 +7530,8 @@ var TESTNET_CHAINS2 = [
7520
7530
  chainId: 84532,
7521
7531
  wormholeChainId: 10004,
7522
7532
  rpcUrl: "https://sepolia.base.org",
7523
- hubAddress: "0xf189b649ecb44708165f36619ED24ff917eF1f94",
7533
+ hubAddress: "0x66D87dE68327f48A099c5B9bE97020Feab9a7c82",
7534
+ vaultFactory: "0xCFaEb5652aa2Ee60b2229dC8895B4159749C7e53",
7524
7535
  isHub: true
7525
7536
  },
7526
7537
  {
@@ -7528,14 +7539,14 @@ var TESTNET_CHAINS2 = [
7528
7539
  chainId: 11155420,
7529
7540
  wormholeChainId: 10005,
7530
7541
  rpcUrl: "https://sepolia.optimism.io",
7531
- vaultFactory: "0x677bA5C2f9c7377860c7aeB00037E1a5D12B3515"
7542
+ vaultFactory: "0xA5653d54079ABeCe780F8d9597B2bc4B09fe464A"
7532
7543
  },
7533
7544
  {
7534
7545
  name: "Arbitrum Sepolia",
7535
7546
  chainId: 421614,
7536
7547
  wormholeChainId: 10003,
7537
7548
  rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
7538
- vaultFactory: "0xbE9B9c39956448DA75Ac97E5e3dE17e34171660A"
7549
+ vaultFactory: "0xd36D3D5DB59d78f1E33813490F72DABC15C9B07c"
7539
7550
  }
7540
7551
  ];
7541
7552
  var MAINNET_CHAINS2 = [
@@ -9835,7 +9846,7 @@ var ERC20_ABI2 = [
9835
9846
  ];
9836
9847
  var HUB_ABI2 = [
9837
9848
  "function dispatch(tuple(bytes authenticatorData, string clientDataJSON, uint256 challengeIndex, uint256 typeIndex, uint256 r, uint256 s) signature, uint256 publicKeyX, uint256 publicKeyY, uint16 targetChain, bytes actionPayload, uint256 nonce) payable returns (uint64 sequence)",
9838
- "function getNonce(bytes32 userKeyHash) view returns (uint256)",
9849
+ "function userNonces(bytes32 userKeyHash) view returns (uint256)",
9839
9850
  "function getMessageFee() view returns (uint256)",
9840
9851
  "function getVaultAddress(bytes32 userKeyHash) view returns (address)",
9841
9852
  "function vaultExists(bytes32 userKeyHash) view returns (bool)",
@@ -9921,7 +9932,7 @@ var EVMClient = class {
9921
9932
  return this.config;
9922
9933
  }
9923
9934
  async getNonce(userKeyHash) {
9924
- const nonce = await this.hubContract.getNonce(userKeyHash);
9935
+ const nonce = await this.hubContract.userNonces(userKeyHash);
9925
9936
  return BigInt(nonce.toString());
9926
9937
  }
9927
9938
  /**