@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.mjs CHANGED
@@ -153,8 +153,8 @@ var TESTNET_CHAINS = {
153
153
  isEvm: true,
154
154
  contracts: {
155
155
  hub: "0x66D87dE68327f48A099c5B9bE97020Feab9a7c82",
156
- vaultFactory: "0x40D9B16094808Fa48e73598E31AB964Cf15b475f",
157
- vaultImplementation: "0xcBEb49b0109E61c1C69C51D5D9483A3aD6D18258",
156
+ vaultFactory: "0xCFaEb5652aa2Ee60b2229dC8895B4159749C7e53",
157
+ vaultImplementation: "0x0d13367C16c6f0B24eD275CC67C7D9f42878285c",
158
158
  wormholeCoreBridge: "0x79A1027a6A159502049F10906D333EC57E95F083",
159
159
  tokenBridge: "0x86F55A04690fd7815A3D802bD587e83eA888B239"
160
160
  }
@@ -167,8 +167,8 @@ var TESTNET_CHAINS = {
167
167
  explorerUrl: "https://sepolia-optimism.etherscan.io",
168
168
  isEvm: true,
169
169
  contracts: {
170
- vaultFactory: "0xAbB421166E648953CDBE93c0078a0A794c56Fb84",
171
- vaultImplementation: "0xDCD7daEf1AC06f4a8392957cca4834F7a16c058D",
170
+ vaultFactory: "0xA5653d54079ABeCe780F8d9597B2bc4B09fe464A",
171
+ vaultImplementation: "0x8099b1406485d2255ff89Ce5Ea18520802AFC150",
172
172
  wormholeCoreBridge: "0x31377888146f3253211EFEf5c676D41ECe7D58Fe",
173
173
  tokenBridge: "0x99737Ec4B815d816c49A385943baf0380e75c0Ac"
174
174
  }
@@ -3858,11 +3858,12 @@ var AptosClient = class {
3858
3858
  */
3859
3859
  async getVaultAddress(userKeyHash) {
3860
3860
  try {
3861
- const keyHashBytes = this.hexToBytes(userKeyHash.replace("0x", "").padStart(64, "0"));
3861
+ const normalizedKeyHash = "0x" + userKeyHash.replace("0x", "").padStart(64, "0");
3862
3862
  const payload = {
3863
- function: `${this.moduleAddress}::veridex_spoke::get_vault_address`,
3863
+ function: `${this.moduleAddress}::spoke::get_vault_address`,
3864
3864
  type_arguments: [],
3865
- arguments: [Array.from(keyHashBytes)]
3865
+ arguments: [normalizedKeyHash]
3866
+ // Pass as hex string, not byte array
3866
3867
  };
3867
3868
  const response = await this.client.view(payload);
3868
3869
  if (response && response.length > 0) {
@@ -10943,8 +10944,8 @@ var CHAIN_PRESETS = {
10943
10944
  isEvm: true,
10944
10945
  contracts: {
10945
10946
  hub: "0x66D87dE68327f48A099c5B9bE97020Feab9a7c82",
10946
- vaultFactory: "0x40D9B16094808Fa48e73598E31AB964Cf15b475f",
10947
- vaultImplementation: "0xcBEb49b0109E61c1C69C51D5D9483A3aD6D18258",
10947
+ vaultFactory: "0xCFaEb5652aa2Ee60b2229dC8895B4159749C7e53",
10948
+ vaultImplementation: "0x0d13367C16c6f0B24eD275CC67C7D9f42878285c",
10948
10949
  wormholeCoreBridge: "0x79A1027a6A159502049F10906D333EC57E95F083",
10949
10950
  tokenBridge: "0x86F55A04690fd7815A3D802bD587e83eA888B239"
10950
10951
  }
@@ -10978,8 +10979,8 @@ var CHAIN_PRESETS = {
10978
10979
  explorerUrl: "https://sepolia-optimism.etherscan.io",
10979
10980
  isEvm: true,
10980
10981
  contracts: {
10981
- vaultFactory: "0xAbB421166E648953CDBE93c0078a0A794c56Fb84",
10982
- vaultImplementation: "0xDCD7daEf1AC06f4a8392957cca4834F7a16c058D",
10982
+ vaultFactory: "0xA5653d54079ABeCe780F8d9597B2bc4B09fe464A",
10983
+ vaultImplementation: "0x8099b1406485d2255ff89Ce5Ea18520802AFC150",
10983
10984
  wormholeCoreBridge: "0x31377888146f3253211EFEf5c676D41ECe7D58Fe",
10984
10985
  tokenBridge: "0x99737Ec4B815d816c49A385943baf0380e75c0Ac"
10985
10986
  }