@veridex/sdk 1.0.0-beta.4 → 1.0.0-beta.6

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