@lavarage/sdk 8.0.14 → 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 +4 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -9
- package/dist/index.mjs.map +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.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": "
|
|
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": "
|
|
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: "
|
|
118
|
+
address: "FFe8xWs9iBdWB6vsxg8yBLirZHsbACFNbXqAM4K3fPPB",
|
|
119
119
|
metadata: {
|
|
120
120
|
name: "user_vault",
|
|
121
121
|
version: "0.1.0",
|
|
@@ -7612,14 +7612,10 @@ var lavarageSOL_default = {
|
|
|
7612
7612
|
|
|
7613
7613
|
// utils.ts
|
|
7614
7614
|
function u8ArrayToString(input) {
|
|
7615
|
-
|
|
7616
|
-
|
|
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];
|