@carrot-protocol/clend-vaults-rpc 0.0.2 → 0.0.3-pub2-dev-be4bd59

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.
@@ -0,0 +1,4 @@
1
+ import { web3 } from "@coral-xyz/anchor";
2
+ export declare const CLEND_VAULTS_PROGRAM_ID: web3.PublicKey;
3
+ export declare function getVaultPda(sharesMint: web3.PublicKey): web3.PublicKey;
4
+ export declare const JUPITER_SWAP_PROGRAM_ID: web3.PublicKey;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JUPITER_SWAP_PROGRAM_ID = exports.CLEND_VAULTS_PROGRAM_ID = void 0;
4
+ exports.getVaultPda = getVaultPda;
5
+ const anchor_1 = require("@coral-xyz/anchor");
6
+ // Program id from your IDL
7
+ exports.CLEND_VAULTS_PROGRAM_ID = new anchor_1.web3.PublicKey("CVAU7TAbdfv7s6rxSmcNKg2AGswZAChXaovoKdvxVs5Q");
8
+ // PDA: ["vault", shares_mint]
9
+ function getVaultPda(sharesMint) {
10
+ return anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("vault"), sharesMint.toBuffer()], exports.CLEND_VAULTS_PROGRAM_ID)[0];
11
+ }
12
+ // Jupiter program id used by your `swap` instruction
13
+ exports.JUPITER_SWAP_PROGRAM_ID = new anchor_1.web3.PublicKey("JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4");
14
+ //# sourceMappingURL=addresses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":";;;AAQA,kCAKC;AAbD,8CAAyC;AAEzC,2BAA2B;AACd,QAAA,uBAAuB,GAAG,IAAI,aAAI,CAAC,SAAS,CACvD,8CAA8C,CAC/C,CAAC;AAEF,8BAA8B;AAC9B,SAAgB,WAAW,CAAC,UAA0B;IACpD,OAAO,aAAI,CAAC,SAAS,CAAC,sBAAsB,CAC1C,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,EAC7C,+BAAuB,CACxB,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAED,qDAAqD;AACxC,QAAA,uBAAuB,GAAG,IAAI,aAAI,CAAC,SAAS,CACvD,6CAA6C,CAC9C,CAAC"}