@lavarage/sdk 8.0.13 → 8.0.15

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
@@ -47,7 +47,7 @@ import { BN as BN2, Program as Program3 } from "@coral-xyz/anchor";
47
47
 
48
48
  // idl/userVault.json
49
49
  var userVault_default = {
50
- address: "F7L3T5fjHbD13SH8UhNuYxCdabHX9CRg2zxbPjmiwU7R",
50
+ address: "FFe8xWs9iBdWB6vsxg8yBLirZHsbACFNbXqAM4K3fPPB",
51
51
  metadata: {
52
52
  name: "user_vault",
53
53
  version: "0.1.0",
@@ -293,7 +293,7 @@ var userVault_default = {
293
293
 
294
294
  // idl/lavarageUSDC.json
295
295
  var lavarageUSDC_default = {
296
- address: "8AD6AnnkdD3MMqQE2v3V7HLaxocSr8kZb1uHNX19PnwF",
296
+ address: "1avaAUcjccXCjSZzwUvB2gS3DzkkieV2Mw8CjdN65uu",
297
297
  metadata: {
298
298
  name: "lavarage",
299
299
  version: "0.1.0",
@@ -7563,14 +7563,10 @@ var lavarageSOL_default = {
7563
7563
 
7564
7564
  // utils.ts
7565
7565
  function u8ArrayToString(input) {
7566
- const end = input.indexOf(0);
7567
- const bytes = new Uint8Array(end === -1 ? input : input.slice(0, end));
7568
- const decoder = new TextDecoder("utf-8", { fatal: true });
7569
- try {
7570
- return decoder.decode(bytes);
7571
- } catch (e) {
7572
- return "0x" + Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
7566
+ if (input.length > 32) {
7567
+ throw new Error("Input has more than 32 bytes");
7573
7568
  }
7569
+ return "0x" + Buffer.from(input).toString("hex");
7574
7570
  }
7575
7571
  function isSolProgram(program) {
7576
7572
  return program.programId.toBase58() === lavarageSOL_default.address;
@@ -9197,7 +9193,6 @@ function getWithdrawalAccessList(lavarageProgram, params) {
9197
9193
  var lavarageUSDC_exports = {};
9198
9194
 
9199
9195
  // index.ts
9200
- var REFFERAL_VAULT_PROGRAM_ID = new PublicKey3("FFe8xWs9iBdWB6vsxg8yBLirZHsbACFNbXqAM4K3fPPB");
9201
9196
  var LAVARAGE_LOOKUP_TABLE = "CDPmKb5VggsHABwDCTaxiw5XXLjcgkqSJMNKRTzHWXwK";
9202
9197
  function getPda(seed, programId) {
9203
9198
  const seedsBuffer = Array.isArray(seed) ? seed : [seed];