@0dotxyz/p0-ts-sdk 2.4.1 → 2.5.0-alpha.0
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/{dto-rate-model.types-CfqbDcgG.d.cts → dto-rate-model.types-IT8wckYH.d.cts} +7 -38
- package/dist/{dto-rate-model.types-CfqbDcgG.d.ts → dto-rate-model.types-IT8wckYH.d.ts} +7 -38
- package/dist/index.cjs +6575 -1622
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -35
- package/dist/index.d.ts +70 -35
- package/dist/index.js +6571 -1621
- package/dist/index.js.map +1 -1
- package/dist/instructions.cjs +7 -9
- package/dist/instructions.cjs.map +1 -1
- package/dist/instructions.d.cts +13 -7
- package/dist/instructions.d.ts +13 -7
- package/dist/instructions.js +7 -9
- package/dist/instructions.js.map +1 -1
- package/dist/types-Bv7AjHar.d.ts +20385 -0
- package/dist/types-f-ZjRBYz.d.cts +20385 -0
- package/dist/vendor.cjs +4 -32
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.d.cts +2 -2
- package/dist/vendor.d.ts +2 -2
- package/dist/vendor.js +4 -32
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
- package/dist/types-BnW15JjT.d.cts +0 -15449
- package/dist/types-CviIoob4.d.ts +0 -15449
|
@@ -752,48 +752,32 @@ interface JupLendingState {
|
|
|
752
752
|
*/
|
|
753
753
|
interface JupTokenReserve {
|
|
754
754
|
pubkey: PublicKey;
|
|
755
|
-
mint: PublicKey;
|
|
756
|
-
vault: PublicKey;
|
|
757
755
|
borrowRate: number;
|
|
758
756
|
feeOnInterest: number;
|
|
759
757
|
lastUtilization: number;
|
|
760
|
-
lastUpdateTimestamp: BN;
|
|
761
758
|
supplyExchangePrice: BN;
|
|
762
759
|
borrowExchangePrice: BN;
|
|
763
|
-
maxUtilization: number;
|
|
764
760
|
totalSupplyWithInterest: BN;
|
|
765
761
|
totalSupplyInterestFree: BN;
|
|
766
762
|
totalBorrowWithInterest: BN;
|
|
767
763
|
totalBorrowInterestFree: BN;
|
|
768
|
-
totalClaimAmount: BN;
|
|
769
|
-
interactingProtocol: PublicKey;
|
|
770
|
-
interactingTimestamp: BN;
|
|
771
|
-
interactingBalance: BN;
|
|
772
764
|
}
|
|
773
765
|
|
|
774
766
|
/**
|
|
775
|
-
* JSON-serializable DTO for the TokenReserve
|
|
767
|
+
* JSON-serializable DTO for the curated TokenReserve.
|
|
776
768
|
* PublicKey → string, BN → string.
|
|
777
769
|
*/
|
|
778
770
|
interface JupTokenReserveJSON {
|
|
779
771
|
pubkey: string;
|
|
780
|
-
mint: string;
|
|
781
|
-
vault: string;
|
|
782
772
|
borrowRate: number;
|
|
783
773
|
feeOnInterest: number;
|
|
784
774
|
lastUtilization: number;
|
|
785
|
-
lastUpdateTimestamp: string;
|
|
786
775
|
supplyExchangePrice: string;
|
|
787
776
|
borrowExchangePrice: string;
|
|
788
|
-
maxUtilization: number;
|
|
789
777
|
totalSupplyWithInterest: string;
|
|
790
778
|
totalSupplyInterestFree: string;
|
|
791
779
|
totalBorrowWithInterest: string;
|
|
792
780
|
totalBorrowInterestFree: string;
|
|
793
|
-
totalClaimAmount: string;
|
|
794
|
-
interactingProtocol: string;
|
|
795
|
-
interactingTimestamp: string;
|
|
796
|
-
interactingBalance: string;
|
|
797
781
|
}
|
|
798
782
|
|
|
799
783
|
/**
|
|
@@ -802,9 +786,6 @@ interface JupTokenReserveJSON {
|
|
|
802
786
|
* Controls the rewards distribution parameters for a jup-lend market.
|
|
803
787
|
*/
|
|
804
788
|
interface JupLendingRewardsRateModel {
|
|
805
|
-
pubkey: PublicKey;
|
|
806
|
-
/** Mint address */
|
|
807
|
-
mint: PublicKey;
|
|
808
789
|
/** TVL below which rewards rate is 0 */
|
|
809
790
|
startTvl: BN;
|
|
810
791
|
/** Duration for which current rewards should run */
|
|
@@ -813,34 +794,25 @@ interface JupLendingRewardsRateModel {
|
|
|
813
794
|
startTime: BN;
|
|
814
795
|
/** Annualized reward based on input params (duration, rewardAmount) */
|
|
815
796
|
yearlyReward: BN;
|
|
816
|
-
/** Duration for the next rewards phase */
|
|
817
|
-
nextDuration: BN;
|
|
818
|
-
/** Amount of rewards for the next phase */
|
|
819
|
-
nextRewardAmount: BN;
|
|
820
797
|
}
|
|
821
798
|
|
|
822
799
|
/**
|
|
823
|
-
* JSON-serializable DTO for the LendingRewardsRateModel
|
|
824
|
-
*
|
|
800
|
+
* JSON-serializable DTO for the curated LendingRewardsRateModel.
|
|
801
|
+
* BN → string.
|
|
825
802
|
*/
|
|
826
803
|
interface JupLendingRewardsRateModelJSON {
|
|
827
|
-
pubkey: string;
|
|
828
|
-
mint: string;
|
|
829
804
|
startTvl: string;
|
|
830
805
|
duration: string;
|
|
831
806
|
startTime: string;
|
|
832
807
|
yearlyReward: string;
|
|
833
|
-
nextDuration: string;
|
|
834
|
-
nextRewardAmount: string;
|
|
835
|
-
bump?: number;
|
|
836
808
|
}
|
|
837
809
|
|
|
838
810
|
/**
|
|
839
|
-
* Curated RateModel
|
|
811
|
+
* Curated RateModel used throughout the codebase.
|
|
812
|
+
*
|
|
813
|
+
* Interest-rate curve parameters (all bps values).
|
|
840
814
|
*/
|
|
841
815
|
interface JupRateModel {
|
|
842
|
-
pubkey: PublicKey;
|
|
843
|
-
mint: PublicKey;
|
|
844
816
|
version: number;
|
|
845
817
|
rateAtZero: number;
|
|
846
818
|
kink1Utilization: number;
|
|
@@ -851,12 +823,9 @@ interface JupRateModel {
|
|
|
851
823
|
}
|
|
852
824
|
|
|
853
825
|
/**
|
|
854
|
-
* JSON-serializable DTO for the RateModel
|
|
855
|
-
* PublicKey → string.
|
|
826
|
+
* JSON-serializable DTO for the curated RateModel.
|
|
856
827
|
*/
|
|
857
828
|
interface JupRateModelJSON {
|
|
858
|
-
pubkey: string;
|
|
859
|
-
mint: string;
|
|
860
829
|
version: number;
|
|
861
830
|
rateAtZero: number;
|
|
862
831
|
kink1Utilization: number;
|
|
@@ -752,48 +752,32 @@ interface JupLendingState {
|
|
|
752
752
|
*/
|
|
753
753
|
interface JupTokenReserve {
|
|
754
754
|
pubkey: PublicKey;
|
|
755
|
-
mint: PublicKey;
|
|
756
|
-
vault: PublicKey;
|
|
757
755
|
borrowRate: number;
|
|
758
756
|
feeOnInterest: number;
|
|
759
757
|
lastUtilization: number;
|
|
760
|
-
lastUpdateTimestamp: BN;
|
|
761
758
|
supplyExchangePrice: BN;
|
|
762
759
|
borrowExchangePrice: BN;
|
|
763
|
-
maxUtilization: number;
|
|
764
760
|
totalSupplyWithInterest: BN;
|
|
765
761
|
totalSupplyInterestFree: BN;
|
|
766
762
|
totalBorrowWithInterest: BN;
|
|
767
763
|
totalBorrowInterestFree: BN;
|
|
768
|
-
totalClaimAmount: BN;
|
|
769
|
-
interactingProtocol: PublicKey;
|
|
770
|
-
interactingTimestamp: BN;
|
|
771
|
-
interactingBalance: BN;
|
|
772
764
|
}
|
|
773
765
|
|
|
774
766
|
/**
|
|
775
|
-
* JSON-serializable DTO for the TokenReserve
|
|
767
|
+
* JSON-serializable DTO for the curated TokenReserve.
|
|
776
768
|
* PublicKey → string, BN → string.
|
|
777
769
|
*/
|
|
778
770
|
interface JupTokenReserveJSON {
|
|
779
771
|
pubkey: string;
|
|
780
|
-
mint: string;
|
|
781
|
-
vault: string;
|
|
782
772
|
borrowRate: number;
|
|
783
773
|
feeOnInterest: number;
|
|
784
774
|
lastUtilization: number;
|
|
785
|
-
lastUpdateTimestamp: string;
|
|
786
775
|
supplyExchangePrice: string;
|
|
787
776
|
borrowExchangePrice: string;
|
|
788
|
-
maxUtilization: number;
|
|
789
777
|
totalSupplyWithInterest: string;
|
|
790
778
|
totalSupplyInterestFree: string;
|
|
791
779
|
totalBorrowWithInterest: string;
|
|
792
780
|
totalBorrowInterestFree: string;
|
|
793
|
-
totalClaimAmount: string;
|
|
794
|
-
interactingProtocol: string;
|
|
795
|
-
interactingTimestamp: string;
|
|
796
|
-
interactingBalance: string;
|
|
797
781
|
}
|
|
798
782
|
|
|
799
783
|
/**
|
|
@@ -802,9 +786,6 @@ interface JupTokenReserveJSON {
|
|
|
802
786
|
* Controls the rewards distribution parameters for a jup-lend market.
|
|
803
787
|
*/
|
|
804
788
|
interface JupLendingRewardsRateModel {
|
|
805
|
-
pubkey: PublicKey;
|
|
806
|
-
/** Mint address */
|
|
807
|
-
mint: PublicKey;
|
|
808
789
|
/** TVL below which rewards rate is 0 */
|
|
809
790
|
startTvl: BN;
|
|
810
791
|
/** Duration for which current rewards should run */
|
|
@@ -813,34 +794,25 @@ interface JupLendingRewardsRateModel {
|
|
|
813
794
|
startTime: BN;
|
|
814
795
|
/** Annualized reward based on input params (duration, rewardAmount) */
|
|
815
796
|
yearlyReward: BN;
|
|
816
|
-
/** Duration for the next rewards phase */
|
|
817
|
-
nextDuration: BN;
|
|
818
|
-
/** Amount of rewards for the next phase */
|
|
819
|
-
nextRewardAmount: BN;
|
|
820
797
|
}
|
|
821
798
|
|
|
822
799
|
/**
|
|
823
|
-
* JSON-serializable DTO for the LendingRewardsRateModel
|
|
824
|
-
*
|
|
800
|
+
* JSON-serializable DTO for the curated LendingRewardsRateModel.
|
|
801
|
+
* BN → string.
|
|
825
802
|
*/
|
|
826
803
|
interface JupLendingRewardsRateModelJSON {
|
|
827
|
-
pubkey: string;
|
|
828
|
-
mint: string;
|
|
829
804
|
startTvl: string;
|
|
830
805
|
duration: string;
|
|
831
806
|
startTime: string;
|
|
832
807
|
yearlyReward: string;
|
|
833
|
-
nextDuration: string;
|
|
834
|
-
nextRewardAmount: string;
|
|
835
|
-
bump?: number;
|
|
836
808
|
}
|
|
837
809
|
|
|
838
810
|
/**
|
|
839
|
-
* Curated RateModel
|
|
811
|
+
* Curated RateModel used throughout the codebase.
|
|
812
|
+
*
|
|
813
|
+
* Interest-rate curve parameters (all bps values).
|
|
840
814
|
*/
|
|
841
815
|
interface JupRateModel {
|
|
842
|
-
pubkey: PublicKey;
|
|
843
|
-
mint: PublicKey;
|
|
844
816
|
version: number;
|
|
845
817
|
rateAtZero: number;
|
|
846
818
|
kink1Utilization: number;
|
|
@@ -851,12 +823,9 @@ interface JupRateModel {
|
|
|
851
823
|
}
|
|
852
824
|
|
|
853
825
|
/**
|
|
854
|
-
* JSON-serializable DTO for the RateModel
|
|
855
|
-
* PublicKey → string.
|
|
826
|
+
* JSON-serializable DTO for the curated RateModel.
|
|
856
827
|
*/
|
|
857
828
|
interface JupRateModelJSON {
|
|
858
|
-
pubkey: string;
|
|
859
|
-
mint: string;
|
|
860
829
|
version: number;
|
|
861
830
|
rateAtZero: number;
|
|
862
831
|
kink1Utilization: number;
|