@veridex/sdk 1.0.0-beta.5 → 1.0.0-beta.7

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
@@ -351,8 +351,8 @@ var TESTNET_CHAINS = {
351
351
  isEvm: true,
352
352
  contracts: {
353
353
  hub: "0x66D87dE68327f48A099c5B9bE97020Feab9a7c82",
354
- vaultFactory: "0x40D9B16094808Fa48e73598E31AB964Cf15b475f",
355
- vaultImplementation: "0xcBEb49b0109E61c1C69C51D5D9483A3aD6D18258",
354
+ vaultFactory: "0xCFaEb5652aa2Ee60b2229dC8895B4159749C7e53",
355
+ vaultImplementation: "0x0d13367C16c6f0B24eD275CC67C7D9f42878285c",
356
356
  wormholeCoreBridge: "0x79A1027a6A159502049F10906D333EC57E95F083",
357
357
  tokenBridge: "0x86F55A04690fd7815A3D802bD587e83eA888B239"
358
358
  }
@@ -365,8 +365,8 @@ var TESTNET_CHAINS = {
365
365
  explorerUrl: "https://sepolia-optimism.etherscan.io",
366
366
  isEvm: true,
367
367
  contracts: {
368
- vaultFactory: "0xAbB421166E648953CDBE93c0078a0A794c56Fb84",
369
- vaultImplementation: "0xDCD7daEf1AC06f4a8392957cca4834F7a16c058D",
368
+ vaultFactory: "0xA5653d54079ABeCe780F8d9597B2bc4B09fe464A",
369
+ vaultImplementation: "0x8099b1406485d2255ff89Ce5Ea18520802AFC150",
370
370
  wormholeCoreBridge: "0x31377888146f3253211EFEf5c676D41ECe7D58Fe",
371
371
  tokenBridge: "0x99737Ec4B815d816c49A385943baf0380e75c0Ac"
372
372
  }
@@ -4051,12 +4051,12 @@ var AptosClient = class {
4051
4051
  */
4052
4052
  async getVaultAddress(userKeyHash) {
4053
4053
  try {
4054
- const normalizedKeyHash = "0x" + userKeyHash.replace("0x", "").padStart(64, "0");
4054
+ const keyHashBytes = this.hexToBytes(userKeyHash.replace("0x", "").padStart(64, "0"));
4055
4055
  const payload = {
4056
4056
  function: `${this.moduleAddress}::spoke::get_vault_address`,
4057
4057
  type_arguments: [],
4058
- arguments: [normalizedKeyHash]
4059
- // Pass as hex string, not byte array
4058
+ arguments: [Array.from(keyHashBytes)]
4059
+ // Pass as array of numbers for vector<u8>
4060
4060
  };
4061
4061
  const response = await this.client.view(payload);
4062
4062
  if (response && response.length > 0) {
@@ -11119,8 +11119,8 @@ var CHAIN_PRESETS = {
11119
11119
  isEvm: true,
11120
11120
  contracts: {
11121
11121
  hub: "0x66D87dE68327f48A099c5B9bE97020Feab9a7c82",
11122
- vaultFactory: "0x40D9B16094808Fa48e73598E31AB964Cf15b475f",
11123
- vaultImplementation: "0xcBEb49b0109E61c1C69C51D5D9483A3aD6D18258",
11122
+ vaultFactory: "0xCFaEb5652aa2Ee60b2229dC8895B4159749C7e53",
11123
+ vaultImplementation: "0x0d13367C16c6f0B24eD275CC67C7D9f42878285c",
11124
11124
  wormholeCoreBridge: "0x79A1027a6A159502049F10906D333EC57E95F083",
11125
11125
  tokenBridge: "0x86F55A04690fd7815A3D802bD587e83eA888B239"
11126
11126
  }
@@ -11154,8 +11154,8 @@ var CHAIN_PRESETS = {
11154
11154
  explorerUrl: "https://sepolia-optimism.etherscan.io",
11155
11155
  isEvm: true,
11156
11156
  contracts: {
11157
- vaultFactory: "0xAbB421166E648953CDBE93c0078a0A794c56Fb84",
11158
- vaultImplementation: "0xDCD7daEf1AC06f4a8392957cca4834F7a16c058D",
11157
+ vaultFactory: "0xA5653d54079ABeCe780F8d9597B2bc4B09fe464A",
11158
+ vaultImplementation: "0x8099b1406485d2255ff89Ce5Ea18520802AFC150",
11159
11159
  wormholeCoreBridge: "0x31377888146f3253211EFEf5c676D41ECe7D58Fe",
11160
11160
  tokenBridge: "0x99737Ec4B815d816c49A385943baf0380e75c0Ac"
11161
11161
  }