@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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -10
- package/dist/index.mjs.map +1 -1
- package/idl/lavarageUSDC.json +1 -1
- package/idl/userVault.json +1 -1
- package/idl/userVault.ts +1 -1
- package/index.ts +0 -1
- package/package.json +1 -1
- package/utils.ts +5 -11
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: "
|
|
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: "
|
|
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
|
-
|
|
7567
|
-
|
|
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];
|