@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.js CHANGED
@@ -562,7 +562,7 @@ var WORMHOLE_API = {
562
562
  var HUB_ABI = [
563
563
  "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)",
564
564
  "function authenticateRawAndDispatch(uint256 r, uint256 s, bytes32 messageHash, uint256 publicKeyX, uint256 publicKeyY, uint16 targetChain, bytes actionPayload, uint256 nonce) external payable returns (uint64 sequence)",
565
- "function getNonce(bytes32 userKeyHash) external view returns (uint256)",
565
+ "function userNonces(bytes32 userKeyHash) external view returns (uint256)",
566
566
  "function encodeTransferAction(address token, address recipient, uint256 amount) external pure returns (bytes)",
567
567
  "function encodeExecuteAction(address target, uint256 value, bytes data) external pure returns (bytes)",
568
568
  "function encodeBridgeAction(bytes32 token, uint256 amount, uint16 targetChain, bytes32 recipient) external pure returns (bytes)",
@@ -1713,6 +1713,14 @@ var OPTIMISM_SEPOLIA_TOKENS = {
1713
1713
  address: "0x4200000000000000000000000000000000000006",
1714
1714
  decimals: 18,
1715
1715
  isNative: false
1716
+ },
1717
+ {
1718
+ symbol: "WETH.base",
1719
+ name: "Wrapped WETH (Base via Wormhole)",
1720
+ address: "0xD408f6498f48aE11BcAb518dA39cF7940eE3271d",
1721
+ // Wormhole-wrapped Base WETH
1722
+ decimals: 18,
1723
+ isNative: false
1716
1724
  }
1717
1725
  ]
1718
1726
  };
@@ -1785,6 +1793,8 @@ var DEFAULT_RPC_URLS = {
1785
1793
  var TESTNET_TOKEN_PRICES = {
1786
1794
  ETH: 2500,
1787
1795
  WETH: 2500,
1796
+ "WETH.BASE": 2500,
1797
+ // Wormhole-wrapped Base WETH
1788
1798
  USDC: 1,
1789
1799
  USDT: 1,
1790
1800
  DAI: 1,
@@ -7695,7 +7705,8 @@ var TESTNET_CHAINS2 = [
7695
7705
  chainId: 84532,
7696
7706
  wormholeChainId: 10004,
7697
7707
  rpcUrl: "https://sepolia.base.org",
7698
- hubAddress: "0xf189b649ecb44708165f36619ED24ff917eF1f94",
7708
+ hubAddress: "0x66D87dE68327f48A099c5B9bE97020Feab9a7c82",
7709
+ vaultFactory: "0xCFaEb5652aa2Ee60b2229dC8895B4159749C7e53",
7699
7710
  isHub: true
7700
7711
  },
7701
7712
  {
@@ -7703,14 +7714,14 @@ var TESTNET_CHAINS2 = [
7703
7714
  chainId: 11155420,
7704
7715
  wormholeChainId: 10005,
7705
7716
  rpcUrl: "https://sepolia.optimism.io",
7706
- vaultFactory: "0x677bA5C2f9c7377860c7aeB00037E1a5D12B3515"
7717
+ vaultFactory: "0xA5653d54079ABeCe780F8d9597B2bc4B09fe464A"
7707
7718
  },
7708
7719
  {
7709
7720
  name: "Arbitrum Sepolia",
7710
7721
  chainId: 421614,
7711
7722
  wormholeChainId: 10003,
7712
7723
  rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
7713
- vaultFactory: "0xbE9B9c39956448DA75Ac97E5e3dE17e34171660A"
7724
+ vaultFactory: "0xd36D3D5DB59d78f1E33813490F72DABC15C9B07c"
7714
7725
  }
7715
7726
  ];
7716
7727
  var MAINNET_CHAINS2 = [
@@ -10010,7 +10021,7 @@ var ERC20_ABI2 = [
10010
10021
  ];
10011
10022
  var HUB_ABI2 = [
10012
10023
  "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)",
10013
- "function getNonce(bytes32 userKeyHash) view returns (uint256)",
10024
+ "function userNonces(bytes32 userKeyHash) view returns (uint256)",
10014
10025
  "function getMessageFee() view returns (uint256)",
10015
10026
  "function getVaultAddress(bytes32 userKeyHash) view returns (address)",
10016
10027
  "function vaultExists(bytes32 userKeyHash) view returns (bool)",
@@ -10096,7 +10107,7 @@ var EVMClient = class {
10096
10107
  return this.config;
10097
10108
  }
10098
10109
  async getNonce(userKeyHash) {
10099
- const nonce = await this.hubContract.getNonce(userKeyHash);
10110
+ const nonce = await this.hubContract.userNonces(userKeyHash);
10100
10111
  return BigInt(nonce.toString());
10101
10112
  }
10102
10113
  /**