@gvnrdao/dh-sdk 0.0.117 → 0.0.118

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.js CHANGED
@@ -42891,21 +42891,20 @@ var PKPAuthorization = class {
42891
42891
  }
42892
42892
  log.info("\u{1F4E4} Complete jsParams (sanitized JSON):", JSON.stringify(sanitizedParams, null, 2));
42893
42893
  }
42894
- if (!jsParams.contracts && !jsParams.contractAddresses) {
42895
- console.warn("[PKP-AUTH] \u26A0\uFE0F TEMPORARY FIX: Hardcoding Sepolia contract addresses for testing");
42896
- const hardcodedSepoliaAddresses = {
42897
- PositionManager: "0x5fC008a31985349D304184848B8940924b815946",
42898
- LoanOperationsManagerModule: "0x85079F44fD612489631cc412833659f2F2d09323",
42899
- TermManagerModule: "0x8748639e561F9b18C02235e837E82acEDc84876f",
42900
- UCDController: "0xEE24c338e394610b503768Ba7D8A8c26efdD3Aeb",
42901
- UCDToken: "0x86060Fa5B3E01E003b8aFd9C1295F1F444a7dC60",
42902
- BTCProofValidator: "0x79469590b41AF8b21276914da7f18FF136B59afB",
42903
- PriceFeedConsumer: "0xA285198196B8f4f658DC81bf4e99A5DC6c191694"
42904
- };
42905
- jsParams["contracts"] = hardcodedSepoliaAddresses;
42906
- jsParams["contractAddresses"] = hardcodedSepoliaAddresses;
42907
- console.log("[PKP-AUTH] \u2705 TEMPORARY: Hardcoded addresses added to jsParams");
42908
- }
42894
+ console.warn("[PKP-AUTH] \u26A0\uFE0F TEMPORARY FIX: FORCING hardcoded Sepolia contract addresses");
42895
+ const hardcodedSepoliaAddresses = {
42896
+ PositionManager: "0x5fC008a31985349D304184848B8940924b815946",
42897
+ LoanOperationsManagerModule: "0x85079F44fD612489631cc412833659f2F2d09323",
42898
+ TermManagerModule: "0x8748639e561F9b18C02235e837E82acEDc84876f",
42899
+ UCDController: "0xEE24c338e394610b503768Ba7D8A8c26efdD3Aeb",
42900
+ UCDToken: "0x86060Fa5B3E01E003b8aFd9C1295F1F444a7dC60",
42901
+ BTCProofValidator: "0x79469590b41AF8b21276914da7f18FF136B59afB",
42902
+ PriceFeedConsumer: "0xA285198196B8f4f658DC81bf4e99A5DC6c191694"
42903
+ };
42904
+ jsParams["contracts"] = hardcodedSepoliaAddresses;
42905
+ jsParams["contractAddresses"] = hardcodedSepoliaAddresses;
42906
+ console.log("[PKP-AUTH] \u2705 TEMPORARY: Hardcoded addresses FORCED into jsParams (always)");
42907
+ console.log("[PKP-AUTH] \u2705 Hardcoded addresses:", JSON.stringify(hardcodedSepoliaAddresses, null, 2));
42909
42908
  console.log("[PKP-AUTH] FINAL jsParams being sent to LIT Action", {
42910
42909
  hasContracts: !!jsParams.contracts,
42911
42910
  hasContractAddresses: !!jsParams.contractAddresses,
package/dist/index.mjs CHANGED
@@ -42796,21 +42796,20 @@ var PKPAuthorization = class {
42796
42796
  }
42797
42797
  log.info("\u{1F4E4} Complete jsParams (sanitized JSON):", JSON.stringify(sanitizedParams, null, 2));
42798
42798
  }
42799
- if (!jsParams.contracts && !jsParams.contractAddresses) {
42800
- console.warn("[PKP-AUTH] \u26A0\uFE0F TEMPORARY FIX: Hardcoding Sepolia contract addresses for testing");
42801
- const hardcodedSepoliaAddresses = {
42802
- PositionManager: "0x5fC008a31985349D304184848B8940924b815946",
42803
- LoanOperationsManagerModule: "0x85079F44fD612489631cc412833659f2F2d09323",
42804
- TermManagerModule: "0x8748639e561F9b18C02235e837E82acEDc84876f",
42805
- UCDController: "0xEE24c338e394610b503768Ba7D8A8c26efdD3Aeb",
42806
- UCDToken: "0x86060Fa5B3E01E003b8aFd9C1295F1F444a7dC60",
42807
- BTCProofValidator: "0x79469590b41AF8b21276914da7f18FF136B59afB",
42808
- PriceFeedConsumer: "0xA285198196B8f4f658DC81bf4e99A5DC6c191694"
42809
- };
42810
- jsParams["contracts"] = hardcodedSepoliaAddresses;
42811
- jsParams["contractAddresses"] = hardcodedSepoliaAddresses;
42812
- console.log("[PKP-AUTH] \u2705 TEMPORARY: Hardcoded addresses added to jsParams");
42813
- }
42799
+ console.warn("[PKP-AUTH] \u26A0\uFE0F TEMPORARY FIX: FORCING hardcoded Sepolia contract addresses");
42800
+ const hardcodedSepoliaAddresses = {
42801
+ PositionManager: "0x5fC008a31985349D304184848B8940924b815946",
42802
+ LoanOperationsManagerModule: "0x85079F44fD612489631cc412833659f2F2d09323",
42803
+ TermManagerModule: "0x8748639e561F9b18C02235e837E82acEDc84876f",
42804
+ UCDController: "0xEE24c338e394610b503768Ba7D8A8c26efdD3Aeb",
42805
+ UCDToken: "0x86060Fa5B3E01E003b8aFd9C1295F1F444a7dC60",
42806
+ BTCProofValidator: "0x79469590b41AF8b21276914da7f18FF136B59afB",
42807
+ PriceFeedConsumer: "0xA285198196B8f4f658DC81bf4e99A5DC6c191694"
42808
+ };
42809
+ jsParams["contracts"] = hardcodedSepoliaAddresses;
42810
+ jsParams["contractAddresses"] = hardcodedSepoliaAddresses;
42811
+ console.log("[PKP-AUTH] \u2705 TEMPORARY: Hardcoded addresses FORCED into jsParams (always)");
42812
+ console.log("[PKP-AUTH] \u2705 Hardcoded addresses:", JSON.stringify(hardcodedSepoliaAddresses, null, 2));
42814
42813
  console.log("[PKP-AUTH] FINAL jsParams being sent to LIT Action", {
42815
42814
  hasContracts: !!jsParams.contracts,
42816
42815
  hasContractAddresses: !!jsParams.contractAddresses,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.117",
3
+ "version": "0.0.118",
4
4
  "description": "TypeScript SDK for Diamond Hands Protocol - Bitcoin-backed lending with LIT Protocol PKPs",
5
5
  "main": "dist/index.cjs",
6
6
  "types": "dist/index.d.ts",