@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/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: web3.PublicKey
102
+ authority: PublicKey
103
103
 
104
- addressLookupTable: web3.PublicKey
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: web3.PublicKey
111
+ escrowSy: PublicKey
112
112
 
113
113
  /** Escrow account for holding deposited YT */
114
- escrowYt: web3.PublicKey
114
+ escrowYt: PublicKey
115
115
 
116
116
  /** Key to SY Program */
117
- syProgram: web3.PublicKey
117
+ syProgram: PublicKey
118
118
 
119
119
  syPosition: SyPosition
120
120
 
121
121
  cpiAccounts: CpiAccountsRaw
122
122
 
123
- mintPt: web3.PublicKey
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: web3.PublicKey
131
+ mintYt: PublicKey
132
132
 
133
- mintSy: web3.PublicKey
133
+ mintSy: PublicKey
134
134
 
135
- yieldPositonAddress: web3.PublicKey
135
+ yieldPositonAddress: PublicKey
136
136
 
137
137
  // yieldPosition: YtPosition
138
138
 
139
- treasurySyTokenAccount: web3.PublicKey
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: web3.PublicKey
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: web3.PublicKey
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: web3.PublicKey
241
+ tokenAccount: PublicKey
242
242
  initialIndex: AnchorizedPNum
243
243
  lastSeenIndex: AnchorizedPNum
244
244
  finalIndex: AnchorizedPNum
245
- treasuryTokenAccount: web3.PublicKey
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
+ }