@jup-ag/lend 0.1.9 → 0.1.10-beta.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/borrow/index.d.mts +8 -5
- package/dist/borrow/index.d.ts +8 -5
- package/dist/borrow/index.mjs +4 -5
- package/dist/earn/index.d.mts +25 -15
- package/dist/earn/index.d.ts +25 -15
- package/dist/earn/index.mjs +2247 -84
- package/dist/flashloan/index.d.mts +11 -7
- package/dist/flashloan/index.d.ts +11 -7
- package/dist/flashloan/index.mjs +759 -31
- package/dist/index.d.mts +39 -36
- package/dist/index.d.ts +39 -36
- package/dist/index.mjs +5 -6
- package/dist/refinance/index.d.mts +1 -1
- package/dist/refinance/index.d.ts +1 -1
- package/dist/refinance/index.mjs +4 -5
- package/dist/shared/lend.0Rjy1SRf.mjs +70 -0
- package/dist/shared/{lend.B1GEdPEJ.d.mts → lend.34CmCyWr.d.mts} +10 -7
- package/dist/shared/{lend.B1GEdPEJ.d.ts → lend.34CmCyWr.d.ts} +10 -7
- package/dist/shared/lend.BKZOr4CM.mjs +67 -0
- package/dist/shared/{lend.BzG5ldOV.mjs → lend.BjhqzIWk.mjs} +17 -16
- package/dist/shared/lend.COO39gwN.mjs +7900 -0
- package/dist/shared/lend.tU-yHdcH.mjs +204 -0
- package/package.json +1 -1
- package/dist/shared/lend.BaZsInAi.mjs +0 -3020
- package/dist/shared/lend.CioR9-te.mjs +0 -5
- package/dist/shared/lend.Cr2l14_0.mjs +0 -741
- package/dist/shared/lend.Cw-khlBI.mjs +0 -5014
- package/dist/shared/lend.DS0KoPpL.mjs +0 -2175
|
@@ -5,6 +5,7 @@ import BN__default from 'bn.js';
|
|
|
5
5
|
type ConnectionParams = {
|
|
6
6
|
connection: Connection;
|
|
7
7
|
signer: PublicKey;
|
|
8
|
+
market: "main" | "ethena";
|
|
8
9
|
};
|
|
9
10
|
type FlashloanContextParams = {
|
|
10
11
|
asset: PublicKey;
|
|
@@ -12,14 +13,17 @@ type FlashloanContextParams = {
|
|
|
12
13
|
} & ConnectionParams;
|
|
13
14
|
type FlashloanParams = {
|
|
14
15
|
amount: BN__default;
|
|
15
|
-
|
|
16
|
+
market?: "main" | "ethena";
|
|
17
|
+
} & Omit<FlashloanContextParams, "market">;
|
|
16
18
|
type FlashPaybackParams = {
|
|
17
19
|
amount: BN__default;
|
|
18
|
-
|
|
20
|
+
market?: "main" | "ethena";
|
|
21
|
+
} & Omit<FlashloanContextParams, "market">;
|
|
19
22
|
type FlashBorrowParams = {
|
|
20
23
|
amount: BN__default;
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
market?: "main" | "ethena";
|
|
25
|
+
} & Omit<FlashloanContextParams, "market">;
|
|
26
|
+
declare function getFlashloanContext({ signer, asset, connection, market, }: FlashloanContextParams): Promise<{
|
|
23
27
|
signer: PublicKey;
|
|
24
28
|
flashloanAdmin: PublicKey;
|
|
25
29
|
signerBorrowTokenAccount: PublicKey;
|
|
@@ -35,9 +39,9 @@ declare function getFlashloanContext({ signer, asset, connection, }: FlashloanCo
|
|
|
35
39
|
systemProgram: PublicKey;
|
|
36
40
|
instructionSysvar: PublicKey;
|
|
37
41
|
}>;
|
|
38
|
-
declare function getFlashBorrowIx(
|
|
39
|
-
declare function getFlashPaybackIx(
|
|
40
|
-
declare function getFlashloanIx(
|
|
42
|
+
declare function getFlashBorrowIx({ connection, signer, amount, asset, market, }: FlashBorrowParams): Promise<_solana_web3_js.TransactionInstruction>;
|
|
43
|
+
declare function getFlashPaybackIx({ connection, signer, amount, market, asset, }: FlashPaybackParams): Promise<_solana_web3_js.TransactionInstruction>;
|
|
44
|
+
declare function getFlashloanIx({ connection, signer, amount, market, asset, }: FlashloanParams): Promise<{
|
|
41
45
|
borrowIx: _solana_web3_js.TransactionInstruction;
|
|
42
46
|
paybackIx: _solana_web3_js.TransactionInstruction;
|
|
43
47
|
}>;
|
|
@@ -5,6 +5,7 @@ import BN__default from 'bn.js';
|
|
|
5
5
|
type ConnectionParams = {
|
|
6
6
|
connection: Connection;
|
|
7
7
|
signer: PublicKey;
|
|
8
|
+
market: "main" | "ethena";
|
|
8
9
|
};
|
|
9
10
|
type FlashloanContextParams = {
|
|
10
11
|
asset: PublicKey;
|
|
@@ -12,14 +13,17 @@ type FlashloanContextParams = {
|
|
|
12
13
|
} & ConnectionParams;
|
|
13
14
|
type FlashloanParams = {
|
|
14
15
|
amount: BN__default;
|
|
15
|
-
|
|
16
|
+
market?: "main" | "ethena";
|
|
17
|
+
} & Omit<FlashloanContextParams, "market">;
|
|
16
18
|
type FlashPaybackParams = {
|
|
17
19
|
amount: BN__default;
|
|
18
|
-
|
|
20
|
+
market?: "main" | "ethena";
|
|
21
|
+
} & Omit<FlashloanContextParams, "market">;
|
|
19
22
|
type FlashBorrowParams = {
|
|
20
23
|
amount: BN__default;
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
market?: "main" | "ethena";
|
|
25
|
+
} & Omit<FlashloanContextParams, "market">;
|
|
26
|
+
declare function getFlashloanContext({ signer, asset, connection, market, }: FlashloanContextParams): Promise<{
|
|
23
27
|
signer: PublicKey;
|
|
24
28
|
flashloanAdmin: PublicKey;
|
|
25
29
|
signerBorrowTokenAccount: PublicKey;
|
|
@@ -35,9 +39,9 @@ declare function getFlashloanContext({ signer, asset, connection, }: FlashloanCo
|
|
|
35
39
|
systemProgram: PublicKey;
|
|
36
40
|
instructionSysvar: PublicKey;
|
|
37
41
|
}>;
|
|
38
|
-
declare function getFlashBorrowIx(
|
|
39
|
-
declare function getFlashPaybackIx(
|
|
40
|
-
declare function getFlashloanIx(
|
|
42
|
+
declare function getFlashBorrowIx({ connection, signer, amount, asset, market, }: FlashBorrowParams): Promise<_solana_web3_js.TransactionInstruction>;
|
|
43
|
+
declare function getFlashPaybackIx({ connection, signer, amount, market, asset, }: FlashPaybackParams): Promise<_solana_web3_js.TransactionInstruction>;
|
|
44
|
+
declare function getFlashloanIx({ connection, signer, amount, market, asset, }: FlashloanParams): Promise<{
|
|
41
45
|
borrowIx: _solana_web3_js.TransactionInstruction;
|
|
42
46
|
paybackIx: _solana_web3_js.TransactionInstruction;
|
|
43
47
|
}>;
|