@gvnrdao/dh-sdk 0.0.120 → 0.0.122

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
@@ -42579,11 +42579,18 @@ var PKPAuthorization = class {
42579
42579
  * @returns Mint authorization response
42580
42580
  */
42581
42581
  async authorizeMintUCD(params, pkpPublicKey, auth, pkpTokenId, pkpEthAddress) {
42582
+ console.log("[PKP-AUTH] ========================================");
42583
+ console.log("[PKP-AUTH] authorizeMintUCD CALLED - FUNCTION ENTRY POINT");
42584
+ console.log("[PKP-AUTH] ========================================");
42582
42585
  console.log("[PKP-AUTH] authorizeMintUCD called", {
42583
42586
  positionId: params.positionId,
42584
42587
  hasConfig: !!this.config,
42585
42588
  hasContractAddresses: !!this.config?.contractAddresses,
42586
- debug: this.config?.debug
42589
+ contractAddressKeys: this.config?.contractAddresses ? Object.keys(this.config.contractAddresses) : [],
42590
+ debug: this.config?.debug,
42591
+ pkpPublicKey: pkpPublicKey?.substring(0, 20) + "...",
42592
+ hasPkpTokenId: !!pkpTokenId,
42593
+ hasPkpEthAddress: !!pkpEthAddress
42587
42594
  });
42588
42595
  if (this.config.debug) {
42589
42596
  log.info("\u{1F510} Authorizing mint UCD", {
@@ -49018,6 +49025,13 @@ var DiamondHandsSDK = class _DiamondHandsSDK {
49018
49025
  signer,
49019
49026
  contracts
49020
49027
  );
49028
+ console.log("[SDK] Authorization generated successfully", {
49029
+ hasAuth: !!auth,
49030
+ hasSignature: !!auth?.signature,
49031
+ timestamp: auth?.timestamp,
49032
+ chainId: auth?.chainId,
49033
+ mode: auth?.mode
49034
+ });
49021
49035
  if (this.config.debug) {
49022
49036
  log.info(" Authorization generated", {});
49023
49037
  log.info(` Timestamp: ${auth.timestamp}`);
package/dist/index.mjs CHANGED
@@ -42484,11 +42484,18 @@ var PKPAuthorization = class {
42484
42484
  * @returns Mint authorization response
42485
42485
  */
42486
42486
  async authorizeMintUCD(params, pkpPublicKey, auth, pkpTokenId, pkpEthAddress) {
42487
+ console.log("[PKP-AUTH] ========================================");
42488
+ console.log("[PKP-AUTH] authorizeMintUCD CALLED - FUNCTION ENTRY POINT");
42489
+ console.log("[PKP-AUTH] ========================================");
42487
42490
  console.log("[PKP-AUTH] authorizeMintUCD called", {
42488
42491
  positionId: params.positionId,
42489
42492
  hasConfig: !!this.config,
42490
42493
  hasContractAddresses: !!this.config?.contractAddresses,
42491
- debug: this.config?.debug
42494
+ contractAddressKeys: this.config?.contractAddresses ? Object.keys(this.config.contractAddresses) : [],
42495
+ debug: this.config?.debug,
42496
+ pkpPublicKey: pkpPublicKey?.substring(0, 20) + "...",
42497
+ hasPkpTokenId: !!pkpTokenId,
42498
+ hasPkpEthAddress: !!pkpEthAddress
42492
42499
  });
42493
42500
  if (this.config.debug) {
42494
42501
  log.info("\u{1F510} Authorizing mint UCD", {
@@ -48923,6 +48930,13 @@ var DiamondHandsSDK = class _DiamondHandsSDK {
48923
48930
  signer,
48924
48931
  contracts
48925
48932
  );
48933
+ console.log("[SDK] Authorization generated successfully", {
48934
+ hasAuth: !!auth,
48935
+ hasSignature: !!auth?.signature,
48936
+ timestamp: auth?.timestamp,
48937
+ chainId: auth?.chainId,
48938
+ mode: auth?.mode
48939
+ });
48926
48940
  if (this.config.debug) {
48927
48941
  log.info(" Authorization generated", {});
48928
48942
  log.info(` Timestamp: ${auth.timestamp}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
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",