@gvnrdao/dh-sdk 0.0.116 → 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
@@ -42829,6 +42829,17 @@ var PKPAuthorization = class {
42829
42829
  log.warn("\u26A0\uFE0F Passing incomplete contract addresses - LIT Action may fail");
42830
42830
  } else {
42831
42831
  console.error("[PKP-AUTH] \u274C No contract addresses to pass - LIT Action will definitely fail with toLowerCase error");
42832
+ console.error("[PKP-AUTH] \u274C Config contractAddresses state:", {
42833
+ hasConfig: !!this.config.contractAddresses,
42834
+ configKeys: this.config.contractAddresses ? Object.keys(this.config.contractAddresses) : [],
42835
+ configValues: this.config.contractAddresses ? {
42836
+ positionManager: this.config.contractAddresses.positionManager || "MISSING",
42837
+ loanOperationsManager: this.config.contractAddresses.loanOperationsManager || "MISSING",
42838
+ termManager: this.config.contractAddresses.termManager || "MISSING",
42839
+ ucdController: this.config.contractAddresses.ucdController || "MISSING"
42840
+ } : "NO CONFIG",
42841
+ mappedResult: contractAddresses
42842
+ });
42832
42843
  log.error("\u274C No contract addresses to pass - LIT Action will definitely fail with toLowerCase error");
42833
42844
  }
42834
42845
  }
@@ -42880,6 +42891,20 @@ var PKPAuthorization = class {
42880
42891
  }
42881
42892
  log.info("\u{1F4E4} Complete jsParams (sanitized JSON):", JSON.stringify(sanitizedParams, null, 2));
42882
42893
  }
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));
42883
42908
  console.log("[PKP-AUTH] FINAL jsParams being sent to LIT Action", {
42884
42909
  hasContracts: !!jsParams.contracts,
42885
42910
  hasContractAddresses: !!jsParams.contractAddresses,
package/dist/index.mjs CHANGED
@@ -42734,6 +42734,17 @@ var PKPAuthorization = class {
42734
42734
  log.warn("\u26A0\uFE0F Passing incomplete contract addresses - LIT Action may fail");
42735
42735
  } else {
42736
42736
  console.error("[PKP-AUTH] \u274C No contract addresses to pass - LIT Action will definitely fail with toLowerCase error");
42737
+ console.error("[PKP-AUTH] \u274C Config contractAddresses state:", {
42738
+ hasConfig: !!this.config.contractAddresses,
42739
+ configKeys: this.config.contractAddresses ? Object.keys(this.config.contractAddresses) : [],
42740
+ configValues: this.config.contractAddresses ? {
42741
+ positionManager: this.config.contractAddresses.positionManager || "MISSING",
42742
+ loanOperationsManager: this.config.contractAddresses.loanOperationsManager || "MISSING",
42743
+ termManager: this.config.contractAddresses.termManager || "MISSING",
42744
+ ucdController: this.config.contractAddresses.ucdController || "MISSING"
42745
+ } : "NO CONFIG",
42746
+ mappedResult: contractAddresses
42747
+ });
42737
42748
  log.error("\u274C No contract addresses to pass - LIT Action will definitely fail with toLowerCase error");
42738
42749
  }
42739
42750
  }
@@ -42785,6 +42796,20 @@ var PKPAuthorization = class {
42785
42796
  }
42786
42797
  log.info("\u{1F4E4} Complete jsParams (sanitized JSON):", JSON.stringify(sanitizedParams, null, 2));
42787
42798
  }
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));
42788
42813
  console.log("[PKP-AUTH] FINAL jsParams being sent to LIT Action", {
42789
42814
  hasContracts: !!jsParams.contracts,
42790
42815
  hasContractAddresses: !!jsParams.contractAddresses,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.116",
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",