@gvnrdao/dh-sdk 0.0.131 → 0.0.132

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
@@ -45806,6 +45806,7 @@ var DiamondHandsGraph = class {
45806
45806
  * Converts flat graph structure to nested LoanData structure
45807
45807
  */
45808
45808
  transformGraphPositionToLoanData(graphPosition) {
45809
+ const ucdDebt = graphPosition.ucdDebt ? Number(graphPosition.ucdDebt) : 0;
45809
45810
  return {
45810
45811
  id: graphPosition.id,
45811
45812
  pkpId: graphPosition.pkpId,
@@ -45818,14 +45819,16 @@ var DiamondHandsGraph = class {
45818
45819
  loan: {
45819
45820
  ucdMinted: graphPosition.ucdMinted ? Number(graphPosition.ucdMinted) : 0,
45820
45821
  ucdPaid: graphPosition.ucdPaid ? Number(graphPosition.ucdPaid) : 0,
45821
- ucdDebt: graphPosition.ucdDebt ? Number(graphPosition.ucdDebt) : 0,
45822
+ ucdDebt,
45822
45823
  selectedTerm: graphPosition.selectedTerm ? Number(graphPosition.selectedTerm) : 0,
45823
45824
  status: graphPosition.status,
45824
45825
  expiryAt: graphPosition.expiryAt ? Number(graphPosition.expiryAt) : 0
45825
45826
  },
45826
45827
  collateral: {
45827
45828
  vaultAddress: graphPosition.vaultAddress || ""
45828
- }
45829
+ },
45830
+ // Backwards compatibility: provide ucdDebt at top level for components expecting flat structure
45831
+ ucdDebt
45829
45832
  };
45830
45833
  }
45831
45834
  /**
@@ -48030,7 +48033,7 @@ var DiamondHandsSDK = class _DiamondHandsSDK {
48030
48033
  validationResponse.timestamp,
48031
48034
  signatureBytes
48032
48035
  );
48033
- const receipt = await tx.wait();
48036
+ const receipt = await tx.wait(1, 3e5);
48034
48037
  let amountMinted;
48035
48038
  let positionId;
48036
48039
  if (receipt && receipt.logs && receipt.logs.length > 0) {
package/dist/index.mjs CHANGED
@@ -45711,6 +45711,7 @@ var DiamondHandsGraph = class {
45711
45711
  * Converts flat graph structure to nested LoanData structure
45712
45712
  */
45713
45713
  transformGraphPositionToLoanData(graphPosition) {
45714
+ const ucdDebt = graphPosition.ucdDebt ? Number(graphPosition.ucdDebt) : 0;
45714
45715
  return {
45715
45716
  id: graphPosition.id,
45716
45717
  pkpId: graphPosition.pkpId,
@@ -45723,14 +45724,16 @@ var DiamondHandsGraph = class {
45723
45724
  loan: {
45724
45725
  ucdMinted: graphPosition.ucdMinted ? Number(graphPosition.ucdMinted) : 0,
45725
45726
  ucdPaid: graphPosition.ucdPaid ? Number(graphPosition.ucdPaid) : 0,
45726
- ucdDebt: graphPosition.ucdDebt ? Number(graphPosition.ucdDebt) : 0,
45727
+ ucdDebt,
45727
45728
  selectedTerm: graphPosition.selectedTerm ? Number(graphPosition.selectedTerm) : 0,
45728
45729
  status: graphPosition.status,
45729
45730
  expiryAt: graphPosition.expiryAt ? Number(graphPosition.expiryAt) : 0
45730
45731
  },
45731
45732
  collateral: {
45732
45733
  vaultAddress: graphPosition.vaultAddress || ""
45733
- }
45734
+ },
45735
+ // Backwards compatibility: provide ucdDebt at top level for components expecting flat structure
45736
+ ucdDebt
45734
45737
  };
45735
45738
  }
45736
45739
  /**
@@ -47935,7 +47938,7 @@ var DiamondHandsSDK = class _DiamondHandsSDK {
47935
47938
  validationResponse.timestamp,
47936
47939
  signatureBytes
47937
47940
  );
47938
- const receipt = await tx.wait();
47941
+ const receipt = await tx.wait(1, 3e5);
47939
47942
  let amountMinted;
47940
47943
  let positionId;
47941
47944
  if (receipt && receipt.logs && receipt.logs.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
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",