@gvnrdao/dh-sdk 0.0.122 → 0.0.124

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.d.mts CHANGED
@@ -2465,7 +2465,7 @@ interface ILiquidationManager extends BaseContract {
2465
2465
  }
2466
2466
 
2467
2467
  interface ILoanOperationsManagerInterface extends Interface {
2468
- getFunction(nameOrSignature: "calculateCollateralRatio" | "getCurrentBTCPrice" | "getOriginationFeeBalance" | "getPKPActualCollateral" | "getUcdController" | "isPriceFeedStale" | "liquidationThreshold" | "maximumLtvRatio" | "minimumLoanValueWei" | "processPartialPayment" | "repayPosition" | "supportsInterface" | "transferOriginationFee" | "ucdToken" | "updatePosition"): FunctionFragment;
2468
+ getFunction(nameOrSignature: "calculateCollateralRatio" | "getCurrentBTCPrice" | "getOriginationFeeBalance" | "getPKPActualCollateral" | "getUcdController" | "isPriceFeedStale" | "liquidationThreshold" | "maximumLtvRatio" | "minimumLoanValueWei" | "mintUCD" | "processPartialPayment" | "repayPosition" | "supportsInterface" | "transferOriginationFee" | "ucdToken" | "updatePosition"): FunctionFragment;
2469
2469
  getEvent(nameOrSignatureOrTopic: "PositionRepaid" | "PositionUpdated" | "UCDMinted"): EventFragment;
2470
2470
  encodeFunctionData(functionFragment: "calculateCollateralRatio", values: [BytesLike]): string;
2471
2471
  encodeFunctionData(functionFragment: "getCurrentBTCPrice", values?: undefined): string;
@@ -2476,6 +2476,17 @@ interface ILoanOperationsManagerInterface extends Interface {
2476
2476
  encodeFunctionData(functionFragment: "liquidationThreshold", values?: undefined): string;
2477
2477
  encodeFunctionData(functionFragment: "maximumLtvRatio", values?: undefined): string;
2478
2478
  encodeFunctionData(functionFragment: "minimumLoanValueWei", values?: undefined): string;
2479
+ encodeFunctionData(functionFragment: "mintUCD", values: [
2480
+ BytesLike,
2481
+ BigNumberish,
2482
+ BigNumberish,
2483
+ BigNumberish,
2484
+ BigNumberish,
2485
+ BigNumberish,
2486
+ BytesLike,
2487
+ BigNumberish,
2488
+ BytesLike
2489
+ ]): string;
2479
2490
  encodeFunctionData(functionFragment: "processPartialPayment", values: [BytesLike, BigNumberish]): string;
2480
2491
  encodeFunctionData(functionFragment: "repayPosition", values: [BytesLike, BigNumberish]): string;
2481
2492
  encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
@@ -2491,6 +2502,7 @@ interface ILoanOperationsManagerInterface extends Interface {
2491
2502
  decodeFunctionResult(functionFragment: "liquidationThreshold", data: BytesLike): Result$2;
2492
2503
  decodeFunctionResult(functionFragment: "maximumLtvRatio", data: BytesLike): Result$2;
2493
2504
  decodeFunctionResult(functionFragment: "minimumLoanValueWei", data: BytesLike): Result$2;
2505
+ decodeFunctionResult(functionFragment: "mintUCD", data: BytesLike): Result$2;
2494
2506
  decodeFunctionResult(functionFragment: "processPartialPayment", data: BytesLike): Result$2;
2495
2507
  decodeFunctionResult(functionFragment: "repayPosition", data: BytesLike): Result$2;
2496
2508
  decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result$2;
@@ -2591,6 +2603,19 @@ interface ILoanOperationsManager extends BaseContract {
2591
2603
  liquidationThreshold: TypedContractMethod<[], [bigint], "view">;
2592
2604
  maximumLtvRatio: TypedContractMethod<[], [bigint], "view">;
2593
2605
  minimumLoanValueWei: TypedContractMethod<[], [bigint], "view">;
2606
+ mintUCD: TypedContractMethod<[
2607
+ positionId: BytesLike,
2608
+ mintAmount: BigNumberish,
2609
+ mintFee: BigNumberish,
2610
+ newDebt: BigNumberish,
2611
+ newCollateral: BigNumberish,
2612
+ btcPrice: BigNumberish,
2613
+ authorizedSpendsHash: BytesLike,
2614
+ quantumTimestamp: BigNumberish,
2615
+ mintValidatorSignature: BytesLike
2616
+ ], [
2617
+ boolean
2618
+ ], "nonpayable">;
2594
2619
  processPartialPayment: TypedContractMethod<[
2595
2620
  positionId: BytesLike,
2596
2621
  paymentAmount: BigNumberish
@@ -2631,6 +2656,19 @@ interface ILoanOperationsManager extends BaseContract {
2631
2656
  getFunction(nameOrSignature: "liquidationThreshold"): TypedContractMethod<[], [bigint], "view">;
2632
2657
  getFunction(nameOrSignature: "maximumLtvRatio"): TypedContractMethod<[], [bigint], "view">;
2633
2658
  getFunction(nameOrSignature: "minimumLoanValueWei"): TypedContractMethod<[], [bigint], "view">;
2659
+ getFunction(nameOrSignature: "mintUCD"): TypedContractMethod<[
2660
+ positionId: BytesLike,
2661
+ mintAmount: BigNumberish,
2662
+ mintFee: BigNumberish,
2663
+ newDebt: BigNumberish,
2664
+ newCollateral: BigNumberish,
2665
+ btcPrice: BigNumberish,
2666
+ authorizedSpendsHash: BytesLike,
2667
+ quantumTimestamp: BigNumberish,
2668
+ mintValidatorSignature: BytesLike
2669
+ ], [
2670
+ boolean
2671
+ ], "nonpayable">;
2634
2672
  getFunction(nameOrSignature: "processPartialPayment"): TypedContractMethod<[
2635
2673
  positionId: BytesLike,
2636
2674
  paymentAmount: BigNumberish
@@ -5155,7 +5193,7 @@ declare class DiamondHandsSDK {
5155
5193
  maxRows?: number;
5156
5194
  orderBy?: "createdAt" | "lastUpdatedAt" | "ucdDebt";
5157
5195
  orderDirection?: "asc" | "desc";
5158
- }, enrichBalance?: boolean, source?: "subgraph" | "contract"): Promise<Result$1<PaginatedLoansResponse, SDKError>>;
5196
+ }, source?: "subgraph" | "contract"): Promise<Result$1<PaginatedLoansResponse, SDKError>>;
5159
5197
  /**
5160
5198
  * Get all events for a loan position from the subgraph
5161
5199
  */
@@ -6645,7 +6683,7 @@ declare const DEFAULT_NETWORK_CONFIG: Partial<NetworkConfig>;
6645
6683
  * Browser-compatible environment handling without Node.js dependencies
6646
6684
  */
6647
6685
 
6648
- type EnvironmentName = "datil-test" | "datil";
6686
+ type EnvironmentName = "datil";
6649
6687
  interface SDKConfig {
6650
6688
  environment: EnvironmentName;
6651
6689
  litNetwork: LitNetwork;
package/dist/index.d.ts CHANGED
@@ -2465,7 +2465,7 @@ interface ILiquidationManager extends BaseContract {
2465
2465
  }
2466
2466
 
2467
2467
  interface ILoanOperationsManagerInterface extends Interface {
2468
- getFunction(nameOrSignature: "calculateCollateralRatio" | "getCurrentBTCPrice" | "getOriginationFeeBalance" | "getPKPActualCollateral" | "getUcdController" | "isPriceFeedStale" | "liquidationThreshold" | "maximumLtvRatio" | "minimumLoanValueWei" | "processPartialPayment" | "repayPosition" | "supportsInterface" | "transferOriginationFee" | "ucdToken" | "updatePosition"): FunctionFragment;
2468
+ getFunction(nameOrSignature: "calculateCollateralRatio" | "getCurrentBTCPrice" | "getOriginationFeeBalance" | "getPKPActualCollateral" | "getUcdController" | "isPriceFeedStale" | "liquidationThreshold" | "maximumLtvRatio" | "minimumLoanValueWei" | "mintUCD" | "processPartialPayment" | "repayPosition" | "supportsInterface" | "transferOriginationFee" | "ucdToken" | "updatePosition"): FunctionFragment;
2469
2469
  getEvent(nameOrSignatureOrTopic: "PositionRepaid" | "PositionUpdated" | "UCDMinted"): EventFragment;
2470
2470
  encodeFunctionData(functionFragment: "calculateCollateralRatio", values: [BytesLike]): string;
2471
2471
  encodeFunctionData(functionFragment: "getCurrentBTCPrice", values?: undefined): string;
@@ -2476,6 +2476,17 @@ interface ILoanOperationsManagerInterface extends Interface {
2476
2476
  encodeFunctionData(functionFragment: "liquidationThreshold", values?: undefined): string;
2477
2477
  encodeFunctionData(functionFragment: "maximumLtvRatio", values?: undefined): string;
2478
2478
  encodeFunctionData(functionFragment: "minimumLoanValueWei", values?: undefined): string;
2479
+ encodeFunctionData(functionFragment: "mintUCD", values: [
2480
+ BytesLike,
2481
+ BigNumberish,
2482
+ BigNumberish,
2483
+ BigNumberish,
2484
+ BigNumberish,
2485
+ BigNumberish,
2486
+ BytesLike,
2487
+ BigNumberish,
2488
+ BytesLike
2489
+ ]): string;
2479
2490
  encodeFunctionData(functionFragment: "processPartialPayment", values: [BytesLike, BigNumberish]): string;
2480
2491
  encodeFunctionData(functionFragment: "repayPosition", values: [BytesLike, BigNumberish]): string;
2481
2492
  encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
@@ -2491,6 +2502,7 @@ interface ILoanOperationsManagerInterface extends Interface {
2491
2502
  decodeFunctionResult(functionFragment: "liquidationThreshold", data: BytesLike): Result$2;
2492
2503
  decodeFunctionResult(functionFragment: "maximumLtvRatio", data: BytesLike): Result$2;
2493
2504
  decodeFunctionResult(functionFragment: "minimumLoanValueWei", data: BytesLike): Result$2;
2505
+ decodeFunctionResult(functionFragment: "mintUCD", data: BytesLike): Result$2;
2494
2506
  decodeFunctionResult(functionFragment: "processPartialPayment", data: BytesLike): Result$2;
2495
2507
  decodeFunctionResult(functionFragment: "repayPosition", data: BytesLike): Result$2;
2496
2508
  decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result$2;
@@ -2591,6 +2603,19 @@ interface ILoanOperationsManager extends BaseContract {
2591
2603
  liquidationThreshold: TypedContractMethod<[], [bigint], "view">;
2592
2604
  maximumLtvRatio: TypedContractMethod<[], [bigint], "view">;
2593
2605
  minimumLoanValueWei: TypedContractMethod<[], [bigint], "view">;
2606
+ mintUCD: TypedContractMethod<[
2607
+ positionId: BytesLike,
2608
+ mintAmount: BigNumberish,
2609
+ mintFee: BigNumberish,
2610
+ newDebt: BigNumberish,
2611
+ newCollateral: BigNumberish,
2612
+ btcPrice: BigNumberish,
2613
+ authorizedSpendsHash: BytesLike,
2614
+ quantumTimestamp: BigNumberish,
2615
+ mintValidatorSignature: BytesLike
2616
+ ], [
2617
+ boolean
2618
+ ], "nonpayable">;
2594
2619
  processPartialPayment: TypedContractMethod<[
2595
2620
  positionId: BytesLike,
2596
2621
  paymentAmount: BigNumberish
@@ -2631,6 +2656,19 @@ interface ILoanOperationsManager extends BaseContract {
2631
2656
  getFunction(nameOrSignature: "liquidationThreshold"): TypedContractMethod<[], [bigint], "view">;
2632
2657
  getFunction(nameOrSignature: "maximumLtvRatio"): TypedContractMethod<[], [bigint], "view">;
2633
2658
  getFunction(nameOrSignature: "minimumLoanValueWei"): TypedContractMethod<[], [bigint], "view">;
2659
+ getFunction(nameOrSignature: "mintUCD"): TypedContractMethod<[
2660
+ positionId: BytesLike,
2661
+ mintAmount: BigNumberish,
2662
+ mintFee: BigNumberish,
2663
+ newDebt: BigNumberish,
2664
+ newCollateral: BigNumberish,
2665
+ btcPrice: BigNumberish,
2666
+ authorizedSpendsHash: BytesLike,
2667
+ quantumTimestamp: BigNumberish,
2668
+ mintValidatorSignature: BytesLike
2669
+ ], [
2670
+ boolean
2671
+ ], "nonpayable">;
2634
2672
  getFunction(nameOrSignature: "processPartialPayment"): TypedContractMethod<[
2635
2673
  positionId: BytesLike,
2636
2674
  paymentAmount: BigNumberish
@@ -5155,7 +5193,7 @@ declare class DiamondHandsSDK {
5155
5193
  maxRows?: number;
5156
5194
  orderBy?: "createdAt" | "lastUpdatedAt" | "ucdDebt";
5157
5195
  orderDirection?: "asc" | "desc";
5158
- }, enrichBalance?: boolean, source?: "subgraph" | "contract"): Promise<Result$1<PaginatedLoansResponse, SDKError>>;
5196
+ }, source?: "subgraph" | "contract"): Promise<Result$1<PaginatedLoansResponse, SDKError>>;
5159
5197
  /**
5160
5198
  * Get all events for a loan position from the subgraph
5161
5199
  */
@@ -6645,7 +6683,7 @@ declare const DEFAULT_NETWORK_CONFIG: Partial<NetworkConfig>;
6645
6683
  * Browser-compatible environment handling without Node.js dependencies
6646
6684
  */
6647
6685
 
6648
- type EnvironmentName = "datil-test" | "datil";
6686
+ type EnvironmentName = "datil";
6649
6687
  interface SDKConfig {
6650
6688
  environment: EnvironmentName;
6651
6689
  litNetwork: LitNetwork;