@exponent-labs/exponent-types 0.1.8 → 0.9.1
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/build/common.d.ts +8 -7
- package/build/cpi.d.ts +2 -2
- package/build/cpi.js +4 -5
- package/build/cpi.js.map +1 -1
- package/build/flavor.d.ts +23 -23
- package/build/generic.d.ts +44 -37
- package/build/generic.js +39 -36
- package/build/generic.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/jito-restaking.d.ts +13 -12
- package/build/jito-restaking.js +1 -2
- package/build/jito-restaking.js.map +1 -1
- package/build/kamino.d.ts +26 -26
- package/build/marginfi.d.ts +18 -17
- package/build/orderbook.d.ts +33 -27
- package/build/orderbook.js +3 -3
- package/build/orderbook.js.map +1 -1
- package/build/perena.d.ts +13 -12
- package/build/perena.js +1 -2
- package/build/perena.js.map +1 -1
- package/build/vault.d.ts +16 -15
- package/package.json +4 -3
- package/src/common.ts +9 -8
- package/src/cpi.ts +3 -3
- package/src/flavor.ts +21 -22
- package/src/generic.ts +73 -64
- package/src/index.ts +1 -1
- package/src/jito-restaking.ts +14 -14
- package/src/kamino.ts +27 -27
- package/src/marginfi.ts +19 -19
- package/src/orderbook.ts +35 -27
- package/src/perena.ts +14 -14
- package/src/vault.ts +17 -17
package/src/vault.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BN, web3 } from "@coral-xyz/anchor"
|
|
2
1
|
import { IFlavorState, IFlavorStateJson, Flavor } from "./flavor"
|
|
3
2
|
import { CpiAccountsRaw, CpiAccountsRawJson } from "./cpi"
|
|
4
3
|
import { AnchorizedPNum, AnchorizedPNumJson } from "./common"
|
|
5
|
-
|
|
4
|
+
import { PublicKey } from "@solana/web3.js"
|
|
5
|
+
import BN from 'bn.js'
|
|
6
6
|
export type VaultJson = {
|
|
7
7
|
/** When does the vault start, as a UNIX timestamp */
|
|
8
8
|
startTs: number
|
|
@@ -99,28 +99,28 @@ export interface VaultState {
|
|
|
99
99
|
durationSeconds: number
|
|
100
100
|
|
|
101
101
|
/** Vault signer for token accounts, mints, SY position etc */
|
|
102
|
-
authority:
|
|
102
|
+
authority: PublicKey
|
|
103
103
|
|
|
104
|
-
addressLookupTable:
|
|
104
|
+
addressLookupTable: PublicKey
|
|
105
105
|
|
|
106
106
|
lastSeenSyExchangeRate: number
|
|
107
107
|
|
|
108
108
|
allTimeHighSyExchangeRate: number
|
|
109
109
|
|
|
110
110
|
/** Vault-owned account for passing SY between SY program and user */
|
|
111
|
-
escrowSy:
|
|
111
|
+
escrowSy: PublicKey
|
|
112
112
|
|
|
113
113
|
/** Escrow account for holding deposited YT */
|
|
114
|
-
escrowYt:
|
|
114
|
+
escrowYt: PublicKey
|
|
115
115
|
|
|
116
116
|
/** Key to SY Program */
|
|
117
|
-
syProgram:
|
|
117
|
+
syProgram: PublicKey
|
|
118
118
|
|
|
119
119
|
syPosition: SyPosition
|
|
120
120
|
|
|
121
121
|
cpiAccounts: CpiAccountsRaw
|
|
122
122
|
|
|
123
|
-
mintPt:
|
|
123
|
+
mintPt: PublicKey
|
|
124
124
|
|
|
125
125
|
status: number
|
|
126
126
|
|
|
@@ -128,15 +128,15 @@ export interface VaultState {
|
|
|
128
128
|
|
|
129
129
|
minOperationSizeMerge: bigint
|
|
130
130
|
|
|
131
|
-
mintYt:
|
|
131
|
+
mintYt: PublicKey
|
|
132
132
|
|
|
133
|
-
mintSy:
|
|
133
|
+
mintSy: PublicKey
|
|
134
134
|
|
|
135
|
-
yieldPositonAddress:
|
|
135
|
+
yieldPositonAddress: PublicKey
|
|
136
136
|
|
|
137
137
|
// yieldPosition: YtPosition
|
|
138
138
|
|
|
139
|
-
treasurySyTokenAccount:
|
|
139
|
+
treasurySyTokenAccount: PublicKey
|
|
140
140
|
|
|
141
141
|
interestBpsFee: number
|
|
142
142
|
|
|
@@ -226,23 +226,23 @@ export interface SyPositionJson {
|
|
|
226
226
|
|
|
227
227
|
export interface SyPosition {
|
|
228
228
|
balanceSy: bigint
|
|
229
|
-
owner:
|
|
229
|
+
owner: PublicKey
|
|
230
230
|
emissions: {
|
|
231
231
|
/** Last seen index for SY-to-emission exchange rate */
|
|
232
232
|
lastSeenIndex: number
|
|
233
233
|
/** mint of emission token */
|
|
234
|
-
mint:
|
|
234
|
+
mint: PublicKey
|
|
235
235
|
/** How many emissions are staged to claim */
|
|
236
236
|
staged: bigint
|
|
237
237
|
}[]
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
export interface VaultEmission {
|
|
241
|
-
tokenAccount:
|
|
241
|
+
tokenAccount: PublicKey
|
|
242
242
|
initialIndex: AnchorizedPNum
|
|
243
243
|
lastSeenIndex: AnchorizedPNum
|
|
244
244
|
finalIndex: AnchorizedPNum
|
|
245
|
-
treasuryTokenAccount:
|
|
245
|
+
treasuryTokenAccount: PublicKey
|
|
246
246
|
feeBps: number
|
|
247
247
|
treasuryEmission: BN
|
|
248
248
|
}
|
|
@@ -255,4 +255,4 @@ export interface VaultEmissionJson {
|
|
|
255
255
|
treasuryTokenAccount: string
|
|
256
256
|
feeBps: number
|
|
257
257
|
treasuryEmission: string
|
|
258
|
-
}
|
|
258
|
+
}
|