@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.d.mts CHANGED
@@ -7257,7 +7257,7 @@ declare namespace lavarageUSDC {
7257
7257
  * IDL can be found at `target/idl/user_vault.json`.
7258
7258
  */
7259
7259
  type UserVault = {
7260
- "address": "F7L3T5fjHbD13SH8UhNuYxCdabHX9CRg2zxbPjmiwU7R";
7260
+ "address": "FFe8xWs9iBdWB6vsxg8yBLirZHsbACFNbXqAM4K3fPPB";
7261
7261
  "metadata": {
7262
7262
  "name": "userVault";
7263
7263
  "version": "0.1.0";
package/dist/index.d.ts CHANGED
@@ -7257,7 +7257,7 @@ declare namespace lavarageUSDC {
7257
7257
  * IDL can be found at `target/idl/user_vault.json`.
7258
7258
  */
7259
7259
  type UserVault = {
7260
- "address": "F7L3T5fjHbD13SH8UhNuYxCdabHX9CRg2zxbPjmiwU7R";
7260
+ "address": "FFe8xWs9iBdWB6vsxg8yBLirZHsbACFNbXqAM4K3fPPB";
7261
7261
  "metadata": {
7262
7262
  "name": "userVault";
7263
7263
  "version": "0.1.0";
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ var import_anchor3 = require("@coral-xyz/anchor");
115
115
 
116
116
  // idl/userVault.json
117
117
  var userVault_default = {
118
- address: "F7L3T5fjHbD13SH8UhNuYxCdabHX9CRg2zxbPjmiwU7R",
118
+ address: "FFe8xWs9iBdWB6vsxg8yBLirZHsbACFNbXqAM4K3fPPB",
119
119
  metadata: {
120
120
  name: "user_vault",
121
121
  version: "0.1.0",
@@ -361,7 +361,7 @@ var userVault_default = {
361
361
 
362
362
  // idl/lavarageUSDC.json
363
363
  var lavarageUSDC_default = {
364
- address: "8AD6AnnkdD3MMqQE2v3V7HLaxocSr8kZb1uHNX19PnwF",
364
+ address: "1avaAUcjccXCjSZzwUvB2gS3DzkkieV2Mw8CjdN65uu",
365
365
  metadata: {
366
366
  name: "lavarage",
367
367
  version: "0.1.0",
@@ -7612,14 +7612,10 @@ var lavarageSOL_default = {
7612
7612
 
7613
7613
  // utils.ts
7614
7614
  function u8ArrayToString(input) {
7615
- const end = input.indexOf(0);
7616
- const bytes = new Uint8Array(end === -1 ? input : input.slice(0, end));
7617
- const decoder = new TextDecoder("utf-8", { fatal: true });
7618
- try {
7619
- return decoder.decode(bytes);
7620
- } catch (e) {
7621
- return "0x" + Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
7615
+ if (input.length > 32) {
7616
+ throw new Error("Input has more than 32 bytes");
7622
7617
  }
7618
+ return "0x" + Buffer.from(input).toString("hex");
7623
7619
  }
7624
7620
  function isSolProgram(program) {
7625
7621
  return program.programId.toBase58() === lavarageSOL_default.address;
@@ -9229,7 +9225,6 @@ function getWithdrawalAccessList(lavarageProgram, params) {
9229
9225
  var lavarageUSDC_exports = {};
9230
9226
 
9231
9227
  // index.ts
9232
- var REFFERAL_VAULT_PROGRAM_ID = new import_web33.PublicKey("FFe8xWs9iBdWB6vsxg8yBLirZHsbACFNbXqAM4K3fPPB");
9233
9228
  var LAVARAGE_LOOKUP_TABLE = "CDPmKb5VggsHABwDCTaxiw5XXLjcgkqSJMNKRTzHWXwK";
9234
9229
  function getPda(seed, programId) {
9235
9230
  const seedsBuffer = Array.isArray(seed) ? seed : [seed];