@0dotxyz/p0-ts-sdk 2.2.0-beta.1 → 2.2.0-beta.2
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.cjs +21 -1441
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +19 -1439
- package/dist/index.js.map +1 -1
- package/dist/vendor.cjs +3 -1434
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.js +1 -1432
- package/dist/vendor.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -15595,6 +15595,7 @@ interface SwapQuoteResult {
|
|
|
15595
15595
|
priceImpactPct?: string;
|
|
15596
15596
|
contextSlot?: number;
|
|
15597
15597
|
timeTaken?: number;
|
|
15598
|
+
provider?: SwapProvider;
|
|
15598
15599
|
}
|
|
15599
15600
|
interface SwapIxsResult {
|
|
15600
15601
|
swapInstructions: TransactionInstruction[];
|
|
@@ -18201,7 +18202,7 @@ declare function computeMaxLeverage(depositBank: BankType, borrowBank: BankType,
|
|
|
18201
18202
|
* );
|
|
18202
18203
|
* ```
|
|
18203
18204
|
*/
|
|
18204
|
-
declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType,
|
|
18205
|
+
declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositPriceUsd: number, borrowPriceUsd: number, opts?: {
|
|
18205
18206
|
assetWeightInit?: BigNumber$1;
|
|
18206
18207
|
liabilityWeightInit?: BigNumber$1;
|
|
18207
18208
|
}): {
|
package/dist/index.d.ts
CHANGED
|
@@ -15595,6 +15595,7 @@ interface SwapQuoteResult {
|
|
|
15595
15595
|
priceImpactPct?: string;
|
|
15596
15596
|
contextSlot?: number;
|
|
15597
15597
|
timeTaken?: number;
|
|
15598
|
+
provider?: SwapProvider;
|
|
15598
15599
|
}
|
|
15599
15600
|
interface SwapIxsResult {
|
|
15600
15601
|
swapInstructions: TransactionInstruction[];
|
|
@@ -18201,7 +18202,7 @@ declare function computeMaxLeverage(depositBank: BankType, borrowBank: BankType,
|
|
|
18201
18202
|
* );
|
|
18202
18203
|
* ```
|
|
18203
18204
|
*/
|
|
18204
|
-
declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType,
|
|
18205
|
+
declare function computeLoopingParams(principal: Amount, targetLeverage: number, depositBank: BankType, borrowBank: BankType, depositPriceUsd: number, borrowPriceUsd: number, opts?: {
|
|
18205
18206
|
assetWeightInit?: BigNumber$1;
|
|
18206
18207
|
liabilityWeightInit?: BigNumber$1;
|
|
18207
18208
|
}): {
|