@jup-ag/lend 0.0.105 → 0.0.106
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 +16 -162
- package/dist/borrow/index.d.ts +16 -162
- package/dist/borrow/index.mjs +29 -1
- package/dist/earn/index.d.mts +44 -892
- package/dist/earn/index.d.ts +44 -892
- package/dist/earn/index.mjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/shared/{lend.BWTZqUUK.mjs → lend.BGZ9rdrj.mjs} +3 -190
- package/dist/shared/{lend.C7OmhOS3.mjs → lend.DS0KoPpL.mjs} +70 -918
- package/package.json +1 -1
package/dist/earn/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { SYSVAR_INSTRUCTIONS_PUBKEY, SystemProgram, PublicKey } from '@solana/we
|
|
|
2
2
|
import { ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync } from '@solana/spl-token';
|
|
3
3
|
import { l as liquidity } from '../shared/lend.CioR9-te.mjs';
|
|
4
4
|
import { Program } from '@coral-xyz/anchor';
|
|
5
|
-
import { b as lending, g as getLendingToken, c as getLending, d as getLendingRewardsRateModel, e as getClaimAccount, f as getLendingAdmin } from '../shared/lend.
|
|
5
|
+
import { b as lending, g as getLendingToken, c as getLending, d as getLendingRewardsRateModel, e as getClaimAccount, f as getLendingAdmin } from '../shared/lend.DS0KoPpL.mjs';
|
|
6
6
|
import { g as getLiquidity, a as getRateModel, b as getUserBorrowPosition, c as getUserSupplyPosition, d as getTokenReserveFromAsset, e as getReserve } from '../shared/lend.BzG5ldOV.mjs';
|
|
7
7
|
import BN from 'bn.js';
|
|
8
8
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { l as lendingPda, a as lendingRewardRateModelPda } from './shared/lend.
|
|
1
|
+
export { l as lendingPda, a as lendingRewardRateModelPda } from './shared/lend.DS0KoPpL.mjs';
|
|
2
2
|
export { l as liquidityPda } from './shared/lend.BzG5ldOV.mjs';
|
|
3
|
-
export { b as borrowPda } from './shared/lend.
|
|
3
|
+
export { b as borrowPda } from './shared/lend.BGZ9rdrj.mjs';
|
|
4
4
|
export { f as flashloanPda } from './shared/lend.Cr2l14_0.mjs';
|
|
5
5
|
export { m as merkleDistributorPda } from './shared/lend.Bpqe1Iia.mjs';
|
|
6
6
|
import '@solana/web3.js';
|
|
@@ -8,6 +8,6 @@ import './shared/lend.CioR9-te.mjs';
|
|
|
8
8
|
import '@solana/spl-token';
|
|
9
9
|
import 'bn.js';
|
|
10
10
|
|
|
11
|
-
const version = "0.0.
|
|
11
|
+
const version = "0.0.106";
|
|
12
12
|
|
|
13
13
|
export { version };
|
|
@@ -11,192 +11,6 @@ const metadata = {
|
|
|
11
11
|
description: "Created with Anchor"
|
|
12
12
|
};
|
|
13
13
|
const instructions = [
|
|
14
|
-
{
|
|
15
|
-
name: "close_position",
|
|
16
|
-
discriminator: [
|
|
17
|
-
123,
|
|
18
|
-
134,
|
|
19
|
-
81,
|
|
20
|
-
0,
|
|
21
|
-
49,
|
|
22
|
-
68,
|
|
23
|
-
98,
|
|
24
|
-
98
|
|
25
|
-
],
|
|
26
|
-
accounts: [
|
|
27
|
-
{
|
|
28
|
-
name: "signer",
|
|
29
|
-
writable: true,
|
|
30
|
-
signer: true
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "vault_admin"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "vault_state",
|
|
37
|
-
docs: [
|
|
38
|
-
"@dev Verification inside instruction logic"
|
|
39
|
-
],
|
|
40
|
-
writable: true
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "vault_config",
|
|
44
|
-
docs: [
|
|
45
|
-
"@dev Verification inside instruction logic"
|
|
46
|
-
],
|
|
47
|
-
writable: true
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "position",
|
|
51
|
-
docs: [
|
|
52
|
-
"@dev Verification inside instruction logic"
|
|
53
|
-
],
|
|
54
|
-
writable: true
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: "position_mint",
|
|
58
|
-
docs: [
|
|
59
|
-
"@dev Verification inside instruction logic"
|
|
60
|
-
],
|
|
61
|
-
writable: true
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: "position_token_account",
|
|
65
|
-
docs: [
|
|
66
|
-
"@dev Verification inside instruction logic"
|
|
67
|
-
],
|
|
68
|
-
writable: true
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: "metadata_account",
|
|
72
|
-
writable: true,
|
|
73
|
-
pda: {
|
|
74
|
-
seeds: [
|
|
75
|
-
{
|
|
76
|
-
kind: "const",
|
|
77
|
-
value: [
|
|
78
|
-
109,
|
|
79
|
-
101,
|
|
80
|
-
116,
|
|
81
|
-
97,
|
|
82
|
-
100,
|
|
83
|
-
97,
|
|
84
|
-
116,
|
|
85
|
-
97
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
kind: "const",
|
|
90
|
-
value: [
|
|
91
|
-
11,
|
|
92
|
-
112,
|
|
93
|
-
101,
|
|
94
|
-
177,
|
|
95
|
-
227,
|
|
96
|
-
209,
|
|
97
|
-
124,
|
|
98
|
-
69,
|
|
99
|
-
56,
|
|
100
|
-
157,
|
|
101
|
-
82,
|
|
102
|
-
127,
|
|
103
|
-
107,
|
|
104
|
-
4,
|
|
105
|
-
195,
|
|
106
|
-
205,
|
|
107
|
-
88,
|
|
108
|
-
184,
|
|
109
|
-
108,
|
|
110
|
-
115,
|
|
111
|
-
26,
|
|
112
|
-
160,
|
|
113
|
-
253,
|
|
114
|
-
181,
|
|
115
|
-
73,
|
|
116
|
-
182,
|
|
117
|
-
209,
|
|
118
|
-
188,
|
|
119
|
-
3,
|
|
120
|
-
248,
|
|
121
|
-
41,
|
|
122
|
-
70
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
kind: "account",
|
|
127
|
-
path: "position_mint"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
program: {
|
|
131
|
-
kind: "const",
|
|
132
|
-
value: [
|
|
133
|
-
11,
|
|
134
|
-
112,
|
|
135
|
-
101,
|
|
136
|
-
177,
|
|
137
|
-
227,
|
|
138
|
-
209,
|
|
139
|
-
124,
|
|
140
|
-
69,
|
|
141
|
-
56,
|
|
142
|
-
157,
|
|
143
|
-
82,
|
|
144
|
-
127,
|
|
145
|
-
107,
|
|
146
|
-
4,
|
|
147
|
-
195,
|
|
148
|
-
205,
|
|
149
|
-
88,
|
|
150
|
-
184,
|
|
151
|
-
108,
|
|
152
|
-
115,
|
|
153
|
-
26,
|
|
154
|
-
160,
|
|
155
|
-
253,
|
|
156
|
-
181,
|
|
157
|
-
73,
|
|
158
|
-
182,
|
|
159
|
-
209,
|
|
160
|
-
188,
|
|
161
|
-
3,
|
|
162
|
-
248,
|
|
163
|
-
41,
|
|
164
|
-
70
|
|
165
|
-
]
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: "token_program"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: "associated_token_program",
|
|
174
|
-
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: "system_program",
|
|
178
|
-
address: "11111111111111111111111111111111"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
name: "sysvar_instruction",
|
|
182
|
-
address: "Sysvar1nstructions1111111111111111111111111"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
name: "metadata_program",
|
|
186
|
-
address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
args: [
|
|
190
|
-
{
|
|
191
|
-
name: "vault_id",
|
|
192
|
-
type: "u16"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
name: "position_id",
|
|
196
|
-
type: "u32"
|
|
197
|
-
}
|
|
198
|
-
]
|
|
199
|
-
},
|
|
200
14
|
{
|
|
201
15
|
name: "get_exchange_prices",
|
|
202
16
|
discriminator: [
|
|
@@ -2192,10 +2006,6 @@ const instructions = [
|
|
|
2192
2006
|
196
|
|
2193
2007
|
],
|
|
2194
2008
|
accounts: [
|
|
2195
|
-
{
|
|
2196
|
-
name: "signer",
|
|
2197
|
-
signer: true
|
|
2198
|
-
},
|
|
2199
2009
|
{
|
|
2200
2010
|
name: "vault_state",
|
|
2201
2011
|
docs: [
|
|
@@ -4268,6 +4078,9 @@ const types = [
|
|
|
4268
4078
|
},
|
|
4269
4079
|
{
|
|
4270
4080
|
name: "Chainlink"
|
|
4081
|
+
},
|
|
4082
|
+
{
|
|
4083
|
+
name: "SinglePool"
|
|
4271
4084
|
}
|
|
4272
4085
|
]
|
|
4273
4086
|
}
|