@kamino-finance/klend-sdk 5.10.14 → 5.10.16

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.
@@ -1,5 +1,6 @@
1
1
  import { PublicKey } from "@solana/web3.js";
2
- export declare const PROGRAM_ID_CLI: PublicKey;
2
+ export declare const KVAULTS_PROGRAM_ID_CLI: PublicKey;
3
+ export declare let KVAULTS_PROGRAM_ID: PublicKey;
3
4
  export declare let PROGRAM_ID: PublicKey;
4
5
  export declare const setKVaultsProgramId: (programId: PublicKey) => void;
5
6
  //# sourceMappingURL=programId.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"programId.d.ts","sourceRoot":"","sources":["../../src/idl_codegen_kamino_vault/programId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAG3C,eAAO,MAAM,cAAc,WAE1B,CAAA;AAGD,eAAO,IAAI,UAAU,EAAE,SAA0B,CAAA;AAEjD,eAAO,MAAM,mBAAmB,cAAe,SAAS,SAEvD,CAAA"}
1
+ {"version":3,"file":"programId.d.ts","sourceRoot":"","sources":["../../src/idl_codegen_kamino_vault/programId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAG3C,eAAO,MAAM,sBAAsB,WAElC,CAAA;AAGD,eAAO,IAAI,kBAAkB,EAAE,SAAkC,CAAA;AACjE,eAAO,IAAI,UAAU,EAAE,SAAkC,CAAA;AAEzD,eAAO,MAAM,mBAAmB,cAAe,SAAS,SAGvD,CAAA"}
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setKVaultsProgramId = exports.PROGRAM_ID = exports.PROGRAM_ID_CLI = void 0;
3
+ exports.setKVaultsProgramId = exports.PROGRAM_ID = exports.KVAULTS_PROGRAM_ID = exports.KVAULTS_PROGRAM_ID_CLI = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  // Program ID passed with the cli --program-id flag when running the code generator. Do not edit, it will get overwritten.
6
- exports.PROGRAM_ID_CLI = new web3_js_1.PublicKey("kvauTFR8qm1dhniz6pYuBZkuene3Hfrs1VQhVRgCNrr");
6
+ exports.KVAULTS_PROGRAM_ID_CLI = new web3_js_1.PublicKey("kvauTFR8qm1dhniz6pYuBZkuene3Hfrs1VQhVRgCNrr");
7
7
  // This constant will not get overwritten on subsequent code generations and it's safe to modify it's value.
8
- exports.PROGRAM_ID = exports.PROGRAM_ID_CLI;
8
+ exports.KVAULTS_PROGRAM_ID = exports.KVAULTS_PROGRAM_ID_CLI;
9
+ exports.PROGRAM_ID = exports.KVAULTS_PROGRAM_ID_CLI;
9
10
  const setKVaultsProgramId = (programId) => {
11
+ exports.KVAULTS_PROGRAM_ID = programId;
10
12
  exports.PROGRAM_ID = programId;
11
13
  };
12
14
  exports.setKVaultsProgramId = setKVaultsProgramId;
@@ -1 +1 @@
1
- {"version":3,"file":"programId.js","sourceRoot":"","sources":["../../src/idl_codegen_kamino_vault/programId.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAE3C,0HAA0H;AAC7G,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAA;AAED,4GAA4G;AACjG,QAAA,UAAU,GAAc,sBAAc,CAAA;AAE1C,MAAM,mBAAmB,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC1D,kBAAU,GAAG,SAAS,CAAC;AACzB,CAAC,CAAA;AAFY,QAAA,mBAAmB,uBAE/B"}
1
+ {"version":3,"file":"programId.js","sourceRoot":"","sources":["../../src/idl_codegen_kamino_vault/programId.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAE3C,0HAA0H;AAC7G,QAAA,sBAAsB,GAAG,IAAI,mBAAS,CACjD,6CAA6C,CAC9C,CAAA;AAED,4GAA4G;AACjG,QAAA,kBAAkB,GAAc,8BAAsB,CAAA;AACtD,QAAA,UAAU,GAAc,8BAAsB,CAAA;AAElD,MAAM,mBAAmB,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC1D,0BAAkB,GAAG,SAAS,CAAC;IAC/B,kBAAU,GAAG,SAAS,CAAC;AACzB,CAAC,CAAA;AAHY,QAAA,mBAAmB,uBAG/B"}
package/dist/lib.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './idl_codegen/zero_padding';
5
5
  export * from './idl_codegen_kamino_vault/instructions';
6
6
  export * from './idl_codegen_kamino_vault/accounts/VaultState';
7
7
  export * from './idl_codegen_kamino_vault/types';
8
+ export { KVAULTS_PROGRAM_ID, setKVaultsProgramId } from './idl_codegen_kamino_vault/programId';
8
9
  export * from './classes';
9
10
  export * from './utils';
10
11
  export * from './leverage';
package/dist/lib.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAE3C,cAAc,yCAAyC,CAAC;AAExD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kCAAkC,CAAC;AAEjD,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAE3C,cAAc,yCAAyC,CAAC;AAExD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AAE7F,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
package/dist/lib.js CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.setKVaultsProgramId = exports.KVAULTS_PROGRAM_ID = void 0;
17
18
  __exportStar(require("./idl_codegen/instructions"), exports);
18
19
  __exportStar(require("./idl_codegen/accounts"), exports);
19
20
  __exportStar(require("./idl_codegen/programId"), exports);
@@ -22,6 +23,9 @@ __exportStar(require("./idl_codegen_kamino_vault/instructions"), exports);
22
23
  // only export vault state, do not export Reserve as it's the same one in main klend /idl_codegen/accounts
23
24
  __exportStar(require("./idl_codegen_kamino_vault/accounts/VaultState"), exports);
24
25
  __exportStar(require("./idl_codegen_kamino_vault/types"), exports);
26
+ var programId_1 = require("./idl_codegen_kamino_vault/programId");
27
+ Object.defineProperty(exports, "KVAULTS_PROGRAM_ID", { enumerable: true, get: function () { return programId_1.KVAULTS_PROGRAM_ID; } });
28
+ Object.defineProperty(exports, "setKVaultsProgramId", { enumerable: true, get: function () { return programId_1.setKVaultsProgramId; } });
25
29
  __exportStar(require("./classes"), exports);
26
30
  __exportStar(require("./utils"), exports);
27
31
  __exportStar(require("./leverage"), exports);
package/dist/lib.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAE3C,0EAAwD;AACxD,0GAA0G;AAC1G,iFAA+D;AAC/D,mEAAiD;AAEjD,4CAA0B;AAC1B,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,uDAAqC"}
1
+ {"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAE3C,0EAAwD;AACxD,0GAA0G;AAC1G,iFAA+D;AAC/D,mEAAiD;AACjD,kEAA6F;AAArF,+GAAA,kBAAkB,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AAE/C,4CAA0B;AAC1B,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,uDAAqC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kamino-finance/klend-sdk",
3
- "version": "5.10.14",
3
+ "version": "5.10.16",
4
4
  "description": "Typescript SDK for interacting with the Kamino Lending (klend) protocol",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,13 +1,15 @@
1
1
  import { PublicKey } from "@solana/web3.js"
2
2
 
3
3
  // Program ID passed with the cli --program-id flag when running the code generator. Do not edit, it will get overwritten.
4
- export const PROGRAM_ID_CLI = new PublicKey(
4
+ export const KVAULTS_PROGRAM_ID_CLI = new PublicKey(
5
5
  "kvauTFR8qm1dhniz6pYuBZkuene3Hfrs1VQhVRgCNrr"
6
6
  )
7
7
 
8
8
  // This constant will not get overwritten on subsequent code generations and it's safe to modify it's value.
9
- export let PROGRAM_ID: PublicKey = PROGRAM_ID_CLI
9
+ export let KVAULTS_PROGRAM_ID: PublicKey = KVAULTS_PROGRAM_ID_CLI
10
+ export let PROGRAM_ID: PublicKey = KVAULTS_PROGRAM_ID_CLI
10
11
 
11
12
  export const setKVaultsProgramId = (programId: PublicKey) => {
13
+ KVAULTS_PROGRAM_ID = programId;
12
14
  PROGRAM_ID = programId;
13
15
  }
package/src/lib.ts CHANGED
@@ -7,6 +7,7 @@ export * from './idl_codegen_kamino_vault/instructions';
7
7
  // only export vault state, do not export Reserve as it's the same one in main klend /idl_codegen/accounts
8
8
  export * from './idl_codegen_kamino_vault/accounts/VaultState';
9
9
  export * from './idl_codegen_kamino_vault/types';
10
+ export {KVAULTS_PROGRAM_ID, setKVaultsProgramId} from './idl_codegen_kamino_vault/programId';
10
11
 
11
12
  export * from './classes';
12
13
  export * from './utils';