@lagoon-protocol/lagoon-mcp 0.5.0 → 0.6.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/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/core/container.js +1 -1
- package/dist/graphql/fragments/transaction-base.fragment.d.ts +1 -1
- package/dist/graphql/fragments/transaction-base.fragment.d.ts.map +1 -1
- package/dist/graphql/fragments/transaction-base.fragment.js +0 -1
- package/dist/graphql/fragments/transaction-base.fragment.js.map +1 -1
- package/dist/graphql/fragments/vault.fragment.d.ts +2 -1
- package/dist/graphql/fragments/vault.fragment.d.ts.map +1 -1
- package/dist/graphql/fragments/vault.fragment.js +1 -0
- package/dist/graphql/fragments/vault.fragment.js.map +1 -1
- package/dist/graphql/queries/export.queries.d.ts +5 -7
- package/dist/graphql/queries/export.queries.d.ts.map +1 -1
- package/dist/graphql/queries/export.queries.js +22 -28
- package/dist/graphql/queries/export.queries.js.map +1 -1
- package/dist/graphql/queries/index.d.ts +3 -3
- package/dist/graphql/queries/index.d.ts.map +1 -1
- package/dist/graphql/queries/index.js +3 -3
- package/dist/graphql/queries/index.js.map +1 -1
- package/dist/graphql/queries/performance.queries.d.ts +6 -4
- package/dist/graphql/queries/performance.queries.d.ts.map +1 -1
- package/dist/graphql/queries/performance.queries.js +5 -11
- package/dist/graphql/queries/performance.queries.js.map +1 -1
- package/dist/graphql/queries/portfolio.queries.d.ts +5 -11
- package/dist/graphql/queries/portfolio.queries.d.ts.map +1 -1
- package/dist/graphql/queries/portfolio.queries.js +14 -87
- package/dist/graphql/queries/portfolio.queries.js.map +1 -1
- package/dist/graphql/queries/prediction.queries.d.ts +13 -15
- package/dist/graphql/queries/prediction.queries.d.ts.map +1 -1
- package/dist/graphql/queries/prediction.queries.js +12 -31
- package/dist/graphql/queries/prediction.queries.js.map +1 -1
- package/dist/graphql/queries/risk.queries.d.ts +3 -3
- package/dist/graphql/queries/risk.queries.d.ts.map +1 -1
- package/dist/graphql/queries/risk.queries.js +7 -22
- package/dist/graphql/queries/risk.queries.js.map +1 -1
- package/dist/graphql/queries/search.queries.d.ts.map +1 -1
- package/dist/graphql/queries/search.queries.js +6 -2
- package/dist/graphql/queries/search.queries.js.map +1 -1
- package/dist/graphql/queries/transaction.queries.d.ts +6 -26
- package/dist/graphql/queries/transaction.queries.d.ts.map +1 -1
- package/dist/graphql/queries/transaction.queries.js +227 -59
- package/dist/graphql/queries/transaction.queries.js.map +1 -1
- package/dist/graphql/queries/vault.queries.d.ts +21 -3
- package/dist/graphql/queries/vault.queries.d.ts.map +1 -1
- package/dist/graphql/queries/vault.queries.js +38 -0
- package/dist/graphql/queries/vault.queries.js.map +1 -1
- package/dist/services/analytics/risk.service.d.ts +9 -12
- package/dist/services/analytics/risk.service.d.ts.map +1 -1
- package/dist/services/analytics/risk.service.js +28 -30
- package/dist/services/analytics/risk.service.js.map +1 -1
- package/dist/tools/compare-vaults.d.ts.map +1 -1
- package/dist/tools/compare-vaults.js +6 -3
- package/dist/tools/compare-vaults.js.map +1 -1
- package/dist/tools/export-data.d.ts.map +1 -1
- package/dist/tools/export-data.js +10 -16
- package/dist/tools/export-data.js.map +1 -1
- package/dist/tools/get-price-history.d.ts.map +1 -1
- package/dist/tools/get-price-history.js +55 -63
- package/dist/tools/get-price-history.js.map +1 -1
- package/dist/tools/get-transactions.d.ts.map +1 -1
- package/dist/tools/get-transactions.js +3 -1
- package/dist/tools/get-transactions.js.map +1 -1
- package/dist/tools/optimize-portfolio.d.ts.map +1 -1
- package/dist/tools/optimize-portfolio.js +6 -17
- package/dist/tools/optimize-portfolio.js.map +1 -1
- package/dist/tools/predict-yield.d.ts.map +1 -1
- package/dist/tools/predict-yield.js +36 -9
- package/dist/tools/predict-yield.js.map +1 -1
- package/dist/tools/search-vaults.d.ts.map +1 -1
- package/dist/tools/search-vaults.js +9 -2
- package/dist/tools/search-vaults.js.map +1 -1
- package/dist/tools/vault-performance.d.ts.map +1 -1
- package/dist/tools/vault-performance.js +7 -19
- package/dist/tools/vault-performance.js.map +1 -1
- package/dist/types/generated.d.ts +811 -19
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/utils/csv-generator.d.ts +4 -1
- package/dist/utils/csv-generator.d.ts.map +1 -1
- package/dist/utils/csv-generator.js +8 -4
- package/dist/utils/csv-generator.js.map +1 -1
- package/dist/utils/tool-error-handler.d.ts.map +1 -1
- package/dist/utils/tool-error-handler.js +8 -6
- package/dist/utils/tool-error-handler.js.map +1 -1
- package/dist/utils/validators.d.ts +9 -3
- package/dist/utils/validators.d.ts.map +1 -1
- package/dist/utils/validators.js +49 -3
- package/dist/utils/validators.js.map +1 -1
- package/dist/utils/yield-prediction.d.ts +3 -0
- package/dist/utils/yield-prediction.d.ts.map +1 -1
- package/dist/utils/yield-prediction.js +13 -1
- package/dist/utils/yield-prediction.js.map +1 -1
- package/package.json +1 -1
|
@@ -53,6 +53,10 @@ export type Scalars = {
|
|
|
53
53
|
input: any;
|
|
54
54
|
output: any;
|
|
55
55
|
};
|
|
56
|
+
JSONObject: {
|
|
57
|
+
input: any;
|
|
58
|
+
output: any;
|
|
59
|
+
};
|
|
56
60
|
};
|
|
57
61
|
/** Annual Percentage Rate with various calculation methods */
|
|
58
62
|
export type ApRs = {
|
|
@@ -68,6 +72,20 @@ export type ApRs = {
|
|
|
68
72
|
/** List of native yields with their respective APR contributions for the corresponding period */
|
|
69
73
|
nativeYields: Array<NativeYield>;
|
|
70
74
|
};
|
|
75
|
+
/** Determines whether the vault enforces a whitelist (deny-by-default) or a blacklist (allow-by-default). */
|
|
76
|
+
export type AccessMode =
|
|
77
|
+
/** Allow-by-default. Any address may interact with the vault unless it is explicitly blacklisted or hit by the external sanctions list. */
|
|
78
|
+
'Blacklist'
|
|
79
|
+
/** Deny-by-default. Only addresses present in the whitelist may interact with the vault. */
|
|
80
|
+
| 'Whitelist';
|
|
81
|
+
/** Emitted when the owner switches the vault between whitelist and blacklist access modes. */
|
|
82
|
+
export type AccessModeUpdated = {
|
|
83
|
+
__typename?: 'AccessModeUpdated';
|
|
84
|
+
/** New access mode. */
|
|
85
|
+
newMode: AccessMode;
|
|
86
|
+
/** The vault whose access mode changed. */
|
|
87
|
+
vault: Vault;
|
|
88
|
+
};
|
|
71
89
|
/** Represents an airdrop event with details about token distribution */
|
|
72
90
|
export type Airdrop = {
|
|
73
91
|
__typename?: 'Airdrop';
|
|
@@ -171,6 +189,12 @@ export type AssetPage = {
|
|
|
171
189
|
/** Pagination information */
|
|
172
190
|
pageInfo: PageInfo;
|
|
173
191
|
};
|
|
192
|
+
/** Marker event emitted once when the owner irreversibly switches the vault to async-only mode. After this, SyncMode is forced to None and cannot be re-enabled. */
|
|
193
|
+
export type AsyncOnlyActivated = {
|
|
194
|
+
__typename?: 'AsyncOnlyActivated';
|
|
195
|
+
/** The vault that was switched to async-only. */
|
|
196
|
+
vault: Vault;
|
|
197
|
+
};
|
|
174
198
|
/** Current shares and assets balances of an address */
|
|
175
199
|
export type Balances = {
|
|
176
200
|
__typename?: 'Balances';
|
|
@@ -183,6 +207,24 @@ export type Balances = {
|
|
|
183
207
|
/** USD amount of shares */
|
|
184
208
|
sharesUsd?: Maybe<Scalars['Float']['output']>;
|
|
185
209
|
};
|
|
210
|
+
/** A timestamped BigInt value. */
|
|
211
|
+
export type BigIntDataPoint = {
|
|
212
|
+
__typename?: 'BigIntDataPoint';
|
|
213
|
+
/** Unix timestamp in seconds. */
|
|
214
|
+
x: Scalars['Float']['output'];
|
|
215
|
+
/** Value at timestamp x. Null when the underlying column is unset. */
|
|
216
|
+
y?: Maybe<Scalars['BigInt']['output']>;
|
|
217
|
+
};
|
|
218
|
+
/** Emitted when the whitelist manager adds or removes an address from the blacklist. The blacklist is only consulted when AccessMode is Blacklist, but it can be mutated at any time. */
|
|
219
|
+
export type BlacklistUpdated = {
|
|
220
|
+
__typename?: 'BlacklistUpdated';
|
|
221
|
+
/** The account whose blacklist status changed. */
|
|
222
|
+
account: Scalars['Address']['output'];
|
|
223
|
+
/** True if the account was added to the blacklist, false if removed. */
|
|
224
|
+
blacklisted: Scalars['Boolean']['output'];
|
|
225
|
+
/** The vault whose blacklist was updated. */
|
|
226
|
+
vault: Vault;
|
|
227
|
+
};
|
|
186
228
|
/** Bundle */
|
|
187
229
|
export type Bundles = {
|
|
188
230
|
__typename?: 'Bundles';
|
|
@@ -232,6 +274,26 @@ export type ChainPage = {
|
|
|
232
274
|
/** Pagination information */
|
|
233
275
|
pageInfo: PageInfo;
|
|
234
276
|
};
|
|
277
|
+
/** Settled deposit request awaiting finalization, expressed in assets and shares at settlement, plus the actualized asset value at the current price per share */
|
|
278
|
+
export type ClaimableDepositRequest = {
|
|
279
|
+
__typename?: 'ClaimableDepositRequest';
|
|
280
|
+
/** Amount denominated in assets at the settlement price */
|
|
281
|
+
assets: Scalars['BigInt']['output'];
|
|
282
|
+
/** Asset value of the locked-in shares at the current price per share (what the claim is worth today) */
|
|
283
|
+
assetsActualized: Scalars['BigInt']['output'];
|
|
284
|
+
/** Amount denominated in shares (locked in at settlement — this is what will be minted when finalized) */
|
|
285
|
+
shares: Scalars['BigInt']['output'];
|
|
286
|
+
};
|
|
287
|
+
/** Complete vault composition data with protocol and token breakdowns */
|
|
288
|
+
export type CompositionData = {
|
|
289
|
+
__typename?: 'CompositionData';
|
|
290
|
+
/** Breakdown by protocol (e.g., Aave, Morpho, Wallet) */
|
|
291
|
+
compositions: Array<ProtocolComposition>;
|
|
292
|
+
/** Breakdown by token/position */
|
|
293
|
+
tokenCompositions: Array<TokenComposition>;
|
|
294
|
+
/** Total portfolio net worth in USD */
|
|
295
|
+
totalValueInUsd?: Maybe<Scalars['Float']['output']>;
|
|
296
|
+
};
|
|
235
297
|
/** A curator entity that manages vault assets */
|
|
236
298
|
export type Curator = {
|
|
237
299
|
__typename?: 'Curator';
|
|
@@ -272,6 +334,8 @@ export type CuratorPage = {
|
|
|
272
334
|
/** Defi integration */
|
|
273
335
|
export type DefiIntegration = {
|
|
274
336
|
__typename?: 'DefiIntegration';
|
|
337
|
+
/** Annual fee rate in basis points (e.g., 314 = 3.14%). Only available for insurance protocols. */
|
|
338
|
+
annualFee?: Maybe<Scalars['Float']['output']>;
|
|
275
339
|
/** Description of the protocol */
|
|
276
340
|
description: Scalars['String']['output'];
|
|
277
341
|
/** Link to the protocol */
|
|
@@ -280,15 +344,33 @@ export type DefiIntegration = {
|
|
|
280
344
|
logoUrl: Scalars['String']['output'];
|
|
281
345
|
/** Name of the protocol */
|
|
282
346
|
name: Scalars['String']['output'];
|
|
347
|
+
/** Protocol key */
|
|
348
|
+
protocol: Scalars['String']['output'];
|
|
283
349
|
/** Type of the defi integration */
|
|
284
350
|
type: DefiIntegrationType;
|
|
285
351
|
};
|
|
286
352
|
/** Type of the defi integration */
|
|
287
353
|
export type DefiIntegrationType =
|
|
354
|
+
/** Insurance protocol */
|
|
355
|
+
'INSURANCE'
|
|
288
356
|
/** Lending protocol */
|
|
289
|
-
'LENDING'
|
|
357
|
+
| 'LENDING'
|
|
290
358
|
/** Yield protocol */
|
|
291
359
|
| 'YIELD';
|
|
360
|
+
/** Emitted when a user claims a previously requested and settled deposit in the ERC7540 async flow — the pending assets are converted at the settled rate and shares are minted to the owner. */
|
|
361
|
+
export type Deposit = {
|
|
362
|
+
__typename?: 'Deposit';
|
|
363
|
+
/** Amount of assets deposited. */
|
|
364
|
+
assets: Scalars['BigInt']['output'];
|
|
365
|
+
/** The address that receives the newly minted shares. */
|
|
366
|
+
owner: Scalars['Address']['output'];
|
|
367
|
+
/** The address that called `deposit` — pays the assets into the vault. */
|
|
368
|
+
sender: Scalars['Address']['output'];
|
|
369
|
+
/** Amount of shares minted. */
|
|
370
|
+
shares: Scalars['BigInt']['output'];
|
|
371
|
+
/** The vault associated with the deposit */
|
|
372
|
+
vault: Vault;
|
|
373
|
+
};
|
|
292
374
|
/** Emitted when a deposit request happens. */
|
|
293
375
|
export type DepositRequest = {
|
|
294
376
|
__typename?: 'DepositRequest';
|
|
@@ -333,6 +415,164 @@ export type DepositSync = {
|
|
|
333
415
|
/** The vault associated with the deposit sync */
|
|
334
416
|
vault: Vault;
|
|
335
417
|
};
|
|
418
|
+
/** Emitted when the whitelist manager updates the external sanctions list oracle. The zero address means no external check is performed. */
|
|
419
|
+
export type ExternalSanctionsListUpdated = {
|
|
420
|
+
__typename?: 'ExternalSanctionsListUpdated';
|
|
421
|
+
/** New external sanctions list address. */
|
|
422
|
+
newExternalSanctionList: Scalars['Address']['output'];
|
|
423
|
+
/** Previous external sanctions list address. */
|
|
424
|
+
oldExternalSanctionList: Scalars['Address']['output'];
|
|
425
|
+
/** The vault whose sanctions list was updated. */
|
|
426
|
+
vault: Vault;
|
|
427
|
+
};
|
|
428
|
+
/** Emitted every time the vault takes a fee. Carries the fee category, the total shares minted to cover the fee, the rate (BPS) that produced the amount, and the split between manager and protocol recipients. Starting with v0.6.0. */
|
|
429
|
+
export type FeeTaken = {
|
|
430
|
+
__typename?: 'FeeTaken';
|
|
431
|
+
/** The settleId of the producing settlement, or 0 when not relevant (e.g. fees charged on sync paths). */
|
|
432
|
+
contextId: Scalars['Int']['output'];
|
|
433
|
+
/** Which fee category was collected. */
|
|
434
|
+
feeType: FeeType;
|
|
435
|
+
/** Portion of the fee shares routed to the manager fee receiver. */
|
|
436
|
+
managerShares: Scalars['BigInt']['output'];
|
|
437
|
+
/** Portion of the fee shares routed to the protocol fee receiver. */
|
|
438
|
+
protocolShares: Scalars['BigInt']['output'];
|
|
439
|
+
/** Fee rate applied, expressed in basis points (1 BPS = 0.01%). */
|
|
440
|
+
rate: Scalars['Int']['output'];
|
|
441
|
+
/** Total shares minted to cover the fee. */
|
|
442
|
+
shares: Scalars['BigInt']['output'];
|
|
443
|
+
/** The vault associated with this fee. */
|
|
444
|
+
vault: Vault;
|
|
445
|
+
};
|
|
446
|
+
/** Category of fee collected by the vault. Carried on FeeTaken events so clients can disambiguate which fee rate produced a given deduction. */
|
|
447
|
+
export type FeeType =
|
|
448
|
+
/** Entry fee — charged on deposits. Deducted immediately on syncDeposit, at claim time for async deposits. */
|
|
449
|
+
'Entry'
|
|
450
|
+
/** Exit fee — charged on redemptions. Deducted immediately on syncRedeem, at claim time for async redemptions, at withdraw time for closed vaults. */
|
|
451
|
+
| 'Exit'
|
|
452
|
+
/** Management fee — accrues pro-rata on AUM since the last fee time. Taken during settlement. */
|
|
453
|
+
| 'Management'
|
|
454
|
+
/** Performance fee — charged on value appreciation above the high-water mark. Taken during settlement. */
|
|
455
|
+
| 'Performance';
|
|
456
|
+
/** A timestamped floating point value. */
|
|
457
|
+
export type FloatDataPoint = {
|
|
458
|
+
__typename?: 'FloatDataPoint';
|
|
459
|
+
/** Unix timestamp in seconds. */
|
|
460
|
+
x: Scalars['Float']['output'];
|
|
461
|
+
/** Value at timestamp x. Null when the underlying column is unset. */
|
|
462
|
+
y?: Maybe<Scalars['Float']['output']>;
|
|
463
|
+
};
|
|
464
|
+
/** Price-per-share evolution limits enforced. When activated, attempts to update newTotalAssets that would move PPS outside [lowerRate, upperRate] (scaled by time since the last valuation) are rejected. The security council can bypass this check via securityCouncilUpdateTotalAssets. */
|
|
465
|
+
export type Guardrails = {
|
|
466
|
+
__typename?: 'Guardrails';
|
|
467
|
+
/** Whether guardrails enforcement is currently active. When false, PPS updates bypass the [lowerRate, upperRate] check. */
|
|
468
|
+
activated: Scalars['Boolean']['output'];
|
|
469
|
+
/** Maximum allowed negative price-per-share drift per unit of time, expressed as a signed int256 rate in basis points per year (negative values permitted). */
|
|
470
|
+
lowerRate: Scalars['BigInt']['output'];
|
|
471
|
+
/** Maximum allowed positive price-per-share drift per unit of time, expressed as a uint256 rate in basis points per year. */
|
|
472
|
+
upperRate: Scalars['BigInt']['output'];
|
|
473
|
+
};
|
|
474
|
+
/** Emitted when the security council enables or disables guardrails enforcement. When deactivated, PPS updates bypass the [lowerRate, upperRate] check. */
|
|
475
|
+
export type GuardrailsStatusUpdated = {
|
|
476
|
+
__typename?: 'GuardrailsStatusUpdated';
|
|
477
|
+
/** Whether guardrails enforcement is now active. */
|
|
478
|
+
activated: Scalars['Boolean']['output'];
|
|
479
|
+
/** The vault whose guardrails activation changed. */
|
|
480
|
+
vault: Vault;
|
|
481
|
+
};
|
|
482
|
+
/** Emitted when the security council updates the price-per-share evolution limits. Rates are flattened to four BigInt fields rather than nested Guardrails objects because the activation flag lives on a separate GuardrailsStatusUpdated event. */
|
|
483
|
+
export type GuardrailsUpdated = {
|
|
484
|
+
__typename?: 'GuardrailsUpdated';
|
|
485
|
+
/** New maximum allowed negative PPS drift per unit of time. */
|
|
486
|
+
newLowerRate: Scalars['BigInt']['output'];
|
|
487
|
+
/** New maximum allowed positive PPS drift per unit of time. */
|
|
488
|
+
newUpperRate: Scalars['BigInt']['output'];
|
|
489
|
+
/** Previous maximum allowed negative PPS drift per unit of time. */
|
|
490
|
+
oldLowerRate: Scalars['BigInt']['output'];
|
|
491
|
+
/** Previous maximum allowed positive PPS drift per unit of time. */
|
|
492
|
+
oldUpperRate: Scalars['BigInt']['output'];
|
|
493
|
+
/** The vault whose guardrails were updated. */
|
|
494
|
+
vault: Vault;
|
|
495
|
+
};
|
|
496
|
+
/** Emitted on syncRedeem when a haircut is taken. The deducted shares are burned — they are not routed to any fee receiver, instead they redistribute value to remaining shareholders by reducing supply faster than assets. */
|
|
497
|
+
export type HaircutTaken = {
|
|
498
|
+
__typename?: 'HaircutTaken';
|
|
499
|
+
/** Address whose shares were haircut. */
|
|
500
|
+
owner: Scalars['Address']['output'];
|
|
501
|
+
/** Haircut rate applied, expressed in basis points (1 BPS = 0.01%, max 2000 BPS). */
|
|
502
|
+
rate: Scalars['Int']['output'];
|
|
503
|
+
/** Amount of shares burned as haircut. */
|
|
504
|
+
shares: Scalars['BigInt']['output'];
|
|
505
|
+
/** The vault associated with this haircut. */
|
|
506
|
+
vault: Vault;
|
|
507
|
+
};
|
|
508
|
+
/** Point-in-time reconstruction of a vault from onchain history. State metrics (totalAssets, pricing, USD values) are nullable when the underlying history row has a null column. Config fields (fees, roles, access mode, guardrails) are always populated from the nearest config-history row at or before `asOfTimestamp`. `maxCap: null` when the vault has no cap configured (MAX_UINT_256 sentinel). Some fields (curators, pending balances, safe balance, live APR) are not available on this type yet. */
|
|
509
|
+
export type HistoricalVaultState = {
|
|
510
|
+
__typename?: 'HistoricalVaultState';
|
|
511
|
+
/** Access control mode at `asOfTimestamp` (Whitelist / Blacklist). Pre-v0.6.0 history rows report Blacklist (contract default) as there is no reliable signal in the config row to distinguish legacy from explicitly-configured Blacklist. */
|
|
512
|
+
accessMode?: Maybe<AccessMode>;
|
|
513
|
+
/** Entry fee rate in basis points at `asOfTimestamp` (max 200 BPS). Applied on deposits — immediately on syncDeposit, at claim time for async. Paid to the fee receiver. */
|
|
514
|
+
entryRate: Scalars['Float']['output'];
|
|
515
|
+
/** Exit fee rate in basis points at `asOfTimestamp` (max 200 BPS). Applied on redeems — immediately on syncRedeem, at claim time for async, at withdraw time for closed vaults. Paid to the fee receiver. */
|
|
516
|
+
exitRate: Scalars['Float']['output'];
|
|
517
|
+
/** Address of the external sanctions list oracle configured at `asOfTimestamp`. Defaults to the zero address when unset. */
|
|
518
|
+
externalSanctionsList: Scalars['String']['output'];
|
|
519
|
+
/** Minimum delay (seconds) between fee rate update and enforcement at `asOfTimestamp`. */
|
|
520
|
+
feeRatesCooldown?: Maybe<Scalars['BigInt']['output']>;
|
|
521
|
+
/** Price-per-share guardrails configuration and activation at `asOfTimestamp`. */
|
|
522
|
+
guardrails: Guardrails;
|
|
523
|
+
/** Haircut fee rate in basis points at `asOfTimestamp` (max 2000 BPS). Applied on syncRedeem after the exit fee, on the shares remaining after exit-fee deduction. Unlike entry/exit fees, the haircut is not paid to the fee receiver — the corresponding asset value is retained by the vault. Price-per-share is unchanged at the moment of the redeem, and the retained value accrues to remaining shareholders at the next valuation update. */
|
|
524
|
+
haircutRate: Scalars['Float']['output'];
|
|
525
|
+
/** Highest price per share ever reached as of `asOfTimestamp`. */
|
|
526
|
+
highWaterMark?: Maybe<Scalars['BigInt']['output']>;
|
|
527
|
+
/** Annualized return since inception, computed from period summaries with timestamp <= `asOfTimestamp`. */
|
|
528
|
+
inceptionApr?: Maybe<ApRs>;
|
|
529
|
+
/** Whether the vault had been irreversibly switched to async-only mode at `asOfTimestamp`. */
|
|
530
|
+
isAsyncOnly: Scalars['Boolean']['output'];
|
|
531
|
+
/** Whether the whitelist was activated at `asOfTimestamp`. */
|
|
532
|
+
isWhitelistActivated?: Maybe<Scalars['Boolean']['output']>;
|
|
533
|
+
/** Timestamp of the last fee calculation at `asOfTimestamp`. */
|
|
534
|
+
lastFeeTime?: Maybe<Scalars['BigInt']['output']>;
|
|
535
|
+
/** Effective management fee at `asOfTimestamp` (applies upcoming rates if newRatesTimestamp has elapsed). */
|
|
536
|
+
managementFee?: Maybe<Scalars['Float']['output']>;
|
|
537
|
+
/** Maximum total assets the vault could hold at `asOfTimestamp`, in asset units. Null when no cap was configured. */
|
|
538
|
+
maxCap?: Maybe<Scalars['BigInt']['output']>;
|
|
539
|
+
/** Trailing 30-day APR as of `asOfTimestamp`, computed from period summaries with timestamp <= `asOfTimestamp`. */
|
|
540
|
+
monthlyApr?: Maybe<ApRs>;
|
|
541
|
+
/** Timestamp at which the upcoming rates become effective, as configured at `asOfTimestamp`. */
|
|
542
|
+
newRatesTimestamp?: Maybe<Scalars['BigInt']['output']>;
|
|
543
|
+
/** New valuation proposed for the next settlement at `asOfTimestamp`. */
|
|
544
|
+
newTotalAssets?: Maybe<Scalars['BigInt']['output']>;
|
|
545
|
+
/** Effective performance fee at `asOfTimestamp` (applies upcoming rates if newRatesTimestamp has elapsed). */
|
|
546
|
+
performanceFee?: Maybe<Scalars['Float']['output']>;
|
|
547
|
+
/** Price per vault share in base units at `asOfTimestamp`. */
|
|
548
|
+
pricePerShare?: Maybe<Scalars['BigInt']['output']>;
|
|
549
|
+
/** Price per vault share in USD at `asOfTimestamp`. */
|
|
550
|
+
pricePerShareUsd?: Maybe<Scalars['Float']['output']>;
|
|
551
|
+
/** Protocol fee at `asOfTimestamp`. */
|
|
552
|
+
protocolFee?: Maybe<Scalars['Float']['output']>;
|
|
553
|
+
/** Vault access control roles at `asOfTimestamp`. */
|
|
554
|
+
roles: Roles;
|
|
555
|
+
/** Vault lifecycle state (Open/Closing/Closed) at `asOfTimestamp`. */
|
|
556
|
+
state?: Maybe<State>;
|
|
557
|
+
/** Which synchronous operations were allowed at `asOfTimestamp` (Both, SyncDeposit, SyncRedeem, None). */
|
|
558
|
+
syncMode: SyncMode;
|
|
559
|
+
/** Total assets under management in the vault at `asOfTimestamp`. */
|
|
560
|
+
totalAssets?: Maybe<Scalars['BigInt']['output']>;
|
|
561
|
+
/** Unix timestamp after which totalAssets was considered stale (as configured at `asOfTimestamp`). */
|
|
562
|
+
totalAssetsExpiration: Scalars['BigInt']['output'];
|
|
563
|
+
/** Total assets value in USD at `asOfTimestamp`. */
|
|
564
|
+
totalAssetsUsd?: Maybe<Scalars['Float']['output']>;
|
|
565
|
+
/** Total supply of vault shares at `asOfTimestamp`. */
|
|
566
|
+
totalSupply?: Maybe<Scalars['BigInt']['output']>;
|
|
567
|
+
/** Upcoming management fee rate at `asOfTimestamp`. */
|
|
568
|
+
upcomingManagementFee?: Maybe<Scalars['Float']['output']>;
|
|
569
|
+
/** Upcoming performance fee rate at `asOfTimestamp`. */
|
|
570
|
+
upcomingPerformanceFee?: Maybe<Scalars['Float']['output']>;
|
|
571
|
+
/** Trailing 7-day APR as of `asOfTimestamp`, computed from period summaries with timestamp <= `asOfTimestamp`. */
|
|
572
|
+
weeklyApr?: Maybe<ApRs>;
|
|
573
|
+
/** Trailing 365-day APR as of `asOfTimestamp`, computed from period summaries with timestamp <= `asOfTimestamp`. */
|
|
574
|
+
yearlyApr?: Maybe<ApRs>;
|
|
575
|
+
};
|
|
336
576
|
/** Incentives from incentive programs */
|
|
337
577
|
export type Incentive = {
|
|
338
578
|
__typename?: 'Incentive';
|
|
@@ -369,6 +609,20 @@ export type IncentiveRate = {
|
|
|
369
609
|
/** Amount of reference token required to obtain the amount of incentive */
|
|
370
610
|
referenceTokenAmount: Scalars['Float']['output'];
|
|
371
611
|
};
|
|
612
|
+
/** Last block on a chain from which an indexed event was ingested. Only blocks that emit a tracked event advance this value, so on low-activity chains it may lag behind the chain head even when indexing is healthy. An hourly health-check event guarantees the value advances at least once per hour. */
|
|
613
|
+
export type IndexedBlock = {
|
|
614
|
+
__typename?: 'IndexedBlock';
|
|
615
|
+
/** Network details (null if the chain is unknown) */
|
|
616
|
+
chain?: Maybe<Chain>;
|
|
617
|
+
/** Chain ID */
|
|
618
|
+
chainId: Scalars['Int']['output'];
|
|
619
|
+
/** Block hash */
|
|
620
|
+
hash: Scalars['HexString']['output'];
|
|
621
|
+
/** Block number of the most recent tracked event. Not updated for blocks that produce no tracked events, so this can trail the current chain head during quiet periods — an hourly health-check event bounds the lag to ~1 hour. */
|
|
622
|
+
number: Scalars['BigInt']['output'];
|
|
623
|
+
/** Parent block hash */
|
|
624
|
+
parentHash: Scalars['HexString']['output'];
|
|
625
|
+
};
|
|
372
626
|
/** A integrator entity that manages vault assets */
|
|
373
627
|
export type Integrator = {
|
|
374
628
|
__typename?: 'Integrator';
|
|
@@ -418,6 +672,54 @@ export type LiveApr = {
|
|
|
418
672
|
/** Live net APR */
|
|
419
673
|
netApr?: Maybe<Scalars['Float']['output']>;
|
|
420
674
|
};
|
|
675
|
+
/** A vault logic implementation available in a protocol registry. Identified by its onchain address per chain. */
|
|
676
|
+
export type Logic = {
|
|
677
|
+
__typename?: 'Logic';
|
|
678
|
+
/** Address of the logic implementation contract */
|
|
679
|
+
address: Scalars['Address']['output'];
|
|
680
|
+
/** Whether this logic implementation is visible to users in the Lagoon frontend. Configured per (chainId, address) in metadata.logic_implementations; defaults to false when no row exists. */
|
|
681
|
+
isVisible: Scalars['Boolean']['output'];
|
|
682
|
+
/** Lagoon version of this logic implementation (e.g. "v0.5.0"). Derived from the SDK address catalog. Null if the address does not match a known release. */
|
|
683
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
684
|
+
};
|
|
685
|
+
/** Emitted when the safe updates the maximum total assets the vault can hold. Enforced on syncDeposit and requestDeposit. */
|
|
686
|
+
export type MaxCapUpdated = {
|
|
687
|
+
__typename?: 'MaxCapUpdated';
|
|
688
|
+
/** New max cap in asset units. */
|
|
689
|
+
maxCap: Scalars['BigInt']['output'];
|
|
690
|
+
/** Previous max cap in asset units. */
|
|
691
|
+
previousMaxCap: Scalars['BigInt']['output'];
|
|
692
|
+
/** The vault whose max cap was updated. */
|
|
693
|
+
vault: Vault;
|
|
694
|
+
};
|
|
695
|
+
/** Indexing status metadata */
|
|
696
|
+
export type Meta = {
|
|
697
|
+
__typename?: 'Meta';
|
|
698
|
+
/** Last indexed block per chain for the active integration */
|
|
699
|
+
lastIndexedBlocks: Array<IndexedBlock>;
|
|
700
|
+
};
|
|
701
|
+
export type Mutation = {
|
|
702
|
+
__typename?: 'Mutation';
|
|
703
|
+
/** Update off-chain metadata for a vault. Requires EIP-712 signature from the vault owner. */
|
|
704
|
+
updateVaultMetadata: Vault;
|
|
705
|
+
};
|
|
706
|
+
export type MutationUpdateVaultMetadataArgs = {
|
|
707
|
+
chainId: Scalars['Int']['input'];
|
|
708
|
+
deadline: Scalars['Int']['input'];
|
|
709
|
+
input: UpdateVaultMetadataInput;
|
|
710
|
+
signature: Scalars['String']['input'];
|
|
711
|
+
vaultAddress: Scalars['Address']['input'];
|
|
712
|
+
};
|
|
713
|
+
/** Emitted when the owner updates the ERC-20 token name. Note that wallets and explorers typically cache token metadata. */
|
|
714
|
+
export type NameUpdated = {
|
|
715
|
+
__typename?: 'NameUpdated';
|
|
716
|
+
/** New ERC-20 token name. */
|
|
717
|
+
newName: Scalars['String']['output'];
|
|
718
|
+
/** Previous ERC-20 token name. */
|
|
719
|
+
previousName: Scalars['String']['output'];
|
|
720
|
+
/** The vault whose name was updated. */
|
|
721
|
+
vault: Vault;
|
|
722
|
+
};
|
|
421
723
|
/** Native yields from underlying asset */
|
|
422
724
|
export type NativeYield = {
|
|
423
725
|
__typename?: 'NativeYield';
|
|
@@ -447,8 +749,6 @@ export type NewTotalAssetsUpdated = {
|
|
|
447
749
|
totalAssets: Scalars['BigInt']['output'];
|
|
448
750
|
/** The total value of all assets in the vault converted to USD */
|
|
449
751
|
totalAssetsUsd?: Maybe<Scalars['Float']['output']>;
|
|
450
|
-
/** The new total supply value. */
|
|
451
|
-
totalSupply: Scalars['BigInt']['output'];
|
|
452
752
|
/** The vault associated with the new total assets updated */
|
|
453
753
|
vault: Vault;
|
|
454
754
|
};
|
|
@@ -478,6 +778,22 @@ export type OrderDirection =
|
|
|
478
778
|
'asc'
|
|
479
779
|
/** Sort results in descending order (Z to A, 9 to 0) */
|
|
480
780
|
| 'desc';
|
|
781
|
+
/** An owner entity that owns vault assets */
|
|
782
|
+
export type Owner = {
|
|
783
|
+
__typename?: 'Owner';
|
|
784
|
+
/** Descriptive text about the owner */
|
|
785
|
+
aboutDescription?: Maybe<Scalars['String']['output']>;
|
|
786
|
+
/** Unique identifier for the owner */
|
|
787
|
+
id: Scalars['ID']['output'];
|
|
788
|
+
/** Whether the owner is visible to users in the Lagoon frontend */
|
|
789
|
+
isVisible: Scalars['Boolean']['output'];
|
|
790
|
+
/** Logo image URL of the owner */
|
|
791
|
+
logoUrl?: Maybe<Scalars['String']['output']>;
|
|
792
|
+
/** Name of the owner */
|
|
793
|
+
name: Scalars['String']['output'];
|
|
794
|
+
/** Website URL of the owner */
|
|
795
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
796
|
+
};
|
|
481
797
|
/** Pagination information for paginated query results */
|
|
482
798
|
export type PageInfo = {
|
|
483
799
|
__typename?: 'PageInfo';
|
|
@@ -512,6 +828,20 @@ export type PeriodSummary = {
|
|
|
512
828
|
/** The vault associated with the period summary */
|
|
513
829
|
vault: Vault;
|
|
514
830
|
};
|
|
831
|
+
/** Emitted at vault initialization when pre-minted shares are sent to the safe. */
|
|
832
|
+
export type PreMint = {
|
|
833
|
+
__typename?: 'PreMint';
|
|
834
|
+
/** Seed assets virtually deposited into the vault. */
|
|
835
|
+
assets: Scalars['BigInt']['output'];
|
|
836
|
+
/** Address that receives the pre-minted shares (typically the safe). */
|
|
837
|
+
receiver: Scalars['Address']['output'];
|
|
838
|
+
/** Address that provided the seed assets. */
|
|
839
|
+
sender: Scalars['Address']['output'];
|
|
840
|
+
/** Shares minted to the receiver. */
|
|
841
|
+
shares: Scalars['BigInt']['output'];
|
|
842
|
+
/** The vault that emitted the pre-mint. */
|
|
843
|
+
vault: Vault;
|
|
844
|
+
};
|
|
515
845
|
/** If activated, the curator want to prevent users from requesting redemption */
|
|
516
846
|
export type PreventWithdraw = {
|
|
517
847
|
__typename?: 'PreventWithdraw';
|
|
@@ -520,8 +850,50 @@ export type PreventWithdraw = {
|
|
|
520
850
|
/** Description of the reason why the curator want to prevent withdraw */
|
|
521
851
|
description: Scalars['String']['output'];
|
|
522
852
|
};
|
|
853
|
+
/** Protocol allocation within a vault composition */
|
|
854
|
+
export type ProtocolComposition = {
|
|
855
|
+
__typename?: 'ProtocolComposition';
|
|
856
|
+
/** Detail breakdown for grouped items (e.g., "Other" category contains small allocations) */
|
|
857
|
+
details?: Maybe<Array<ProtocolComposition>>;
|
|
858
|
+
/** Name of the protocol (e.g., "Aave", "Compound", "Morpho") */
|
|
859
|
+
protocol: Scalars['String']['output'];
|
|
860
|
+
/** Percentage of total vault value (0-100) */
|
|
861
|
+
repartition: Scalars['Float']['output'];
|
|
862
|
+
/** Value deployed to this protocol in USD */
|
|
863
|
+
valueInUsd: Scalars['Float']['output'];
|
|
864
|
+
};
|
|
865
|
+
/** A Lagoon protocol registry. Exposes the current onchain state derived from registry events (default logic, available logics, default rate, protocol fee receiver). */
|
|
866
|
+
export type ProtocolRegistry = {
|
|
867
|
+
__typename?: 'ProtocolRegistry';
|
|
868
|
+
/** Address of the registry contract */
|
|
869
|
+
address: Scalars['Address']['output'];
|
|
870
|
+
/** Set of logic implementations currently available on the registry (added but not subsequently removed). */
|
|
871
|
+
availableLogics: Array<Logic>;
|
|
872
|
+
/** The network where the registry is deployed. Null if the chain is not in the metadata catalog. */
|
|
873
|
+
chain?: Maybe<Chain>;
|
|
874
|
+
/** The current default logic implementation used by new proxies, derived from the latest DefaultLogicUpdated event. */
|
|
875
|
+
defaultLogic?: Maybe<Logic>;
|
|
876
|
+
/** The current default rate applied by the registry, in basis points (1 BPS = 0.01%). Derived from the latest DefaultRateUpdated event. Null if never set. */
|
|
877
|
+
defaultRate?: Maybe<Scalars['Int']['output']>;
|
|
878
|
+
/** The current protocol fee receiver, derived from the latest ProtocolFeeReceiverUpdated event. Null if never set. */
|
|
879
|
+
protocolFeeReceiver?: Maybe<Scalars['Address']['output']>;
|
|
880
|
+
};
|
|
881
|
+
/** Emitted when a factory deploys a new vault proxy. */
|
|
882
|
+
export type ProxyDeployed = {
|
|
883
|
+
__typename?: 'ProxyDeployed';
|
|
884
|
+
/** Address that triggered the deployment. */
|
|
885
|
+
deployer: Scalars['Address']['output'];
|
|
886
|
+
/** Address of the factory contract that emitted the event. */
|
|
887
|
+
factoryAddress: Scalars['Address']['output'];
|
|
888
|
+
/** Address of the newly deployed vault proxy. */
|
|
889
|
+
proxy: Scalars['Address']['output'];
|
|
890
|
+
/** The newly deployed vault. */
|
|
891
|
+
vault: Vault;
|
|
892
|
+
};
|
|
523
893
|
export type Query = {
|
|
524
894
|
__typename?: 'Query';
|
|
895
|
+
/** Indexing status metadata */
|
|
896
|
+
_meta: Meta;
|
|
525
897
|
/** Find a Asset entity by address and chain id */
|
|
526
898
|
assetByAddress: Asset;
|
|
527
899
|
/** Retrieve paginated list of Asset entities with optional filtering and sorting */
|
|
@@ -540,6 +912,10 @@ export type Query = {
|
|
|
540
912
|
integrator: Integrator;
|
|
541
913
|
/** Retrieve paginated list of Integrator entities with optional filtering and sorting */
|
|
542
914
|
integrators: IntegratorPage;
|
|
915
|
+
/** List all known Lagoon protocol registries. Optionally filter by one or more chain ids. */
|
|
916
|
+
protocolRegistries: Array<ProtocolRegistry>;
|
|
917
|
+
/** Find a ProtocolRegistry entity by chain id */
|
|
918
|
+
protocolRegistryByChainId?: Maybe<ProtocolRegistry>;
|
|
543
919
|
/** Retrieve paginated list of Transaction entities with optional filtering and sorting */
|
|
544
920
|
transactions: TransactionPage;
|
|
545
921
|
/** Find a user by their address and chain ID */
|
|
@@ -548,9 +924,17 @@ export type Query = {
|
|
|
548
924
|
users: UserPage;
|
|
549
925
|
/** Find a Vault entity by address and chain id */
|
|
550
926
|
vaultByAddress: Vault;
|
|
927
|
+
/**
|
|
928
|
+
* Fetch raw composition data from Octav API for a wallet address
|
|
929
|
+
* @deprecated Use the `composition` field on `Vault` instead. This query returns untyped raw JSON and will be removed in a future release.
|
|
930
|
+
*/
|
|
931
|
+
vaultComposition?: Maybe<Scalars['JSONObject']['output']>;
|
|
551
932
|
/** Retrieve paginated list of Vault entities with optional filtering and sorting */
|
|
552
933
|
vaults: VaultPage;
|
|
553
934
|
};
|
|
935
|
+
export type QueryMetaArgs = {
|
|
936
|
+
chainIds?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
937
|
+
};
|
|
554
938
|
export type QueryAssetByAddressArgs = {
|
|
555
939
|
address: Scalars['Address']['input'];
|
|
556
940
|
chainId: Scalars['Int']['input'];
|
|
@@ -592,6 +976,12 @@ export type QueryIntegratorsArgs = {
|
|
|
592
976
|
skip?: Scalars['Int']['input'];
|
|
593
977
|
where?: InputMaybe<IntegratorFilterInput>;
|
|
594
978
|
};
|
|
979
|
+
export type QueryProtocolRegistriesArgs = {
|
|
980
|
+
chainIds?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
981
|
+
};
|
|
982
|
+
export type QueryProtocolRegistryByChainIdArgs = {
|
|
983
|
+
chainId: Scalars['Int']['input'];
|
|
984
|
+
};
|
|
595
985
|
export type QueryTransactionsArgs = {
|
|
596
986
|
first?: Scalars['Int']['input'];
|
|
597
987
|
orderBy?: TransactionOrderBy;
|
|
@@ -614,16 +1004,27 @@ export type QueryVaultByAddressArgs = {
|
|
|
614
1004
|
address: Scalars['Address']['input'];
|
|
615
1005
|
chainId: Scalars['Int']['input'];
|
|
616
1006
|
};
|
|
1007
|
+
export type QueryVaultCompositionArgs = {
|
|
1008
|
+
walletAddress: Scalars['Address']['input'];
|
|
1009
|
+
};
|
|
617
1010
|
export type QueryVaultsArgs = {
|
|
1011
|
+
entityIds?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
618
1012
|
first?: Scalars['Int']['input'];
|
|
619
1013
|
orderBy?: VaultOrderBy;
|
|
620
1014
|
orderDirection?: InputMaybe<OrderDirection>;
|
|
1015
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
621
1016
|
skip?: Scalars['Int']['input'];
|
|
622
1017
|
where?: InputMaybe<VaultFilterInput>;
|
|
623
1018
|
};
|
|
624
|
-
/**
|
|
1019
|
+
/** Fee rates for the vault, all expressed in basis points (1 BPS = 0.01%). Management and performance rates are staged via newRatesTimestamp/feeRatesCooldown; entry, exit, and haircut rates are applied immediately with no cooldown. */
|
|
625
1020
|
export type Rates = {
|
|
626
1021
|
__typename?: 'Rates';
|
|
1022
|
+
/** Entry fee rate in basis points (max 200 BPS). Applied to shares on deposit — immediately on syncDeposit, at claim time for async deposits. Can only decrease after first initialization. */
|
|
1023
|
+
entryRate: Scalars['Float']['output'];
|
|
1024
|
+
/** Exit fee rate in basis points (max 200 BPS). Applied to shares on redeem — immediately on syncRedeem, at claim time for async redeems, at withdraw time for closed vaults. Can only decrease after first initialization. */
|
|
1025
|
+
exitRate: Scalars['Float']['output'];
|
|
1026
|
+
/** Haircut fee rate in basis points (max 2000 BPS). Applied only on syncRedeem, after the exit fee. Haircut shares are burned (not sent to the fee receiver), redistributing value to remaining shareholders. */
|
|
1027
|
+
haircutRate: Scalars['Float']['output'];
|
|
627
1028
|
/** Management fee rate in basis points. */
|
|
628
1029
|
managementRate: Scalars['Float']['output'];
|
|
629
1030
|
/** Performance fee rate in basis points. */
|
|
@@ -659,6 +1060,18 @@ export type RedeemRequest = {
|
|
|
659
1060
|
/** The vault associated with the redeem request */
|
|
660
1061
|
vault: Vault;
|
|
661
1062
|
};
|
|
1063
|
+
/** Emitted when a redemption request is canceled. */
|
|
1064
|
+
export type RedeemRequestCanceled = {
|
|
1065
|
+
__typename?: 'RedeemRequestCanceled';
|
|
1066
|
+
/** The controller of the canceled request. */
|
|
1067
|
+
controller: Scalars['Address']['output'];
|
|
1068
|
+
/** The id of the redeem request canceled. */
|
|
1069
|
+
requestId: Scalars['BigInt']['output'];
|
|
1070
|
+
/** The share amount that had been requested for redemption and is now refunded to the controller. */
|
|
1071
|
+
requestedAmount: Scalars['BigInt']['output'];
|
|
1072
|
+
/** The vault associated with this redeem request cancellation. */
|
|
1073
|
+
vault: Vault;
|
|
1074
|
+
};
|
|
662
1075
|
/** Referral program configuration with visibility settings and commission shares */
|
|
663
1076
|
export type Referral = {
|
|
664
1077
|
__typename?: 'Referral';
|
|
@@ -680,11 +1093,35 @@ export type Roles = {
|
|
|
680
1093
|
owner: Scalars['String']['output'];
|
|
681
1094
|
/** The fund custody contract address associated with this lagoon vault */
|
|
682
1095
|
safe: Scalars['String']['output'];
|
|
1096
|
+
/** Address allowed to force a totalAssets update bypassing guardrails and to manage guardrails configuration/activation. Defaults to the zero address when unset. */
|
|
1097
|
+
securityCouncil: Scalars['String']['output'];
|
|
1098
|
+
/** Address allowed to act on behalf of any controller for deposit/mint/redeem/withdraw/requestRedeem/cancelRequestDeposit. Bypasses access checks. Defaults to the zero address when unset. */
|
|
1099
|
+
superOperator: Scalars['String']['output'];
|
|
683
1100
|
/** The address responsible for updating the newTotalAssets value of the vault */
|
|
684
1101
|
valuationManager: Scalars['String']['output'];
|
|
685
1102
|
/** The address responsible for managing the whitelist of permissioned vaults */
|
|
686
1103
|
whitelistManager: Scalars['String']['output'];
|
|
687
1104
|
};
|
|
1105
|
+
/** Emitted when the safe (fund custody address) is rotated. */
|
|
1106
|
+
export type SafeUpdated = {
|
|
1107
|
+
__typename?: 'SafeUpdated';
|
|
1108
|
+
/** New safe address. */
|
|
1109
|
+
newSafe: Scalars['Address']['output'];
|
|
1110
|
+
/** Previous safe address. */
|
|
1111
|
+
oldSafe: Scalars['Address']['output'];
|
|
1112
|
+
/** The vault whose safe was updated. */
|
|
1113
|
+
vault: Vault;
|
|
1114
|
+
};
|
|
1115
|
+
/** Emitted when the owner assigns or rotates the security council. The zero address means no security council is configured. */
|
|
1116
|
+
export type SecurityCouncilUpdated = {
|
|
1117
|
+
__typename?: 'SecurityCouncilUpdated';
|
|
1118
|
+
/** New security council address. */
|
|
1119
|
+
newSecurityCouncil: Scalars['Address']['output'];
|
|
1120
|
+
/** Previous security council address. */
|
|
1121
|
+
oldSecurityCouncil: Scalars['Address']['output'];
|
|
1122
|
+
/** The vault whose security council was updated. */
|
|
1123
|
+
vault: Vault;
|
|
1124
|
+
};
|
|
688
1125
|
/**
|
|
689
1126
|
* Emitted only when assets are deposited into the safe, in the following sequence:
|
|
690
1127
|
* * After the `TotalAssetsUpdated` event
|
|
@@ -757,6 +1194,81 @@ export type StateUpdated = {
|
|
|
757
1194
|
/** The vault associated with this state update. */
|
|
758
1195
|
vault: Vault;
|
|
759
1196
|
};
|
|
1197
|
+
/** Emitted when the owner assigns or rotates the super operator. The zero address means no super operator is configured. */
|
|
1198
|
+
export type SuperOperatorUpdated = {
|
|
1199
|
+
__typename?: 'SuperOperatorUpdated';
|
|
1200
|
+
/** New super operator address. */
|
|
1201
|
+
newSuperOperator: Scalars['Address']['output'];
|
|
1202
|
+
/** Previous super operator address. */
|
|
1203
|
+
oldSuperOperator: Scalars['Address']['output'];
|
|
1204
|
+
/** The vault whose super operator was updated. */
|
|
1205
|
+
vault: Vault;
|
|
1206
|
+
};
|
|
1207
|
+
/** Emitted when the owner updates the ERC-20 token symbol. Note that wallets and explorers typically cache token metadata. */
|
|
1208
|
+
export type SymbolUpdated = {
|
|
1209
|
+
__typename?: 'SymbolUpdated';
|
|
1210
|
+
/** New ERC-20 token symbol. */
|
|
1211
|
+
newSymbol: Scalars['String']['output'];
|
|
1212
|
+
/** Previous ERC-20 token symbol. */
|
|
1213
|
+
previousSymbol: Scalars['String']['output'];
|
|
1214
|
+
/** The vault whose symbol was updated. */
|
|
1215
|
+
vault: Vault;
|
|
1216
|
+
};
|
|
1217
|
+
/** Controls which synchronous operations are currently allowed on the vault. Orthogonal to async request/claim, which is always available. */
|
|
1218
|
+
export type SyncMode =
|
|
1219
|
+
/** Both synchronous deposits and redemptions are enabled. */
|
|
1220
|
+
'Both'
|
|
1221
|
+
/** No synchronous operations are enabled; deposits and redemptions must go through the async request/claim flow. */
|
|
1222
|
+
| 'None'
|
|
1223
|
+
/** Only synchronous deposits are enabled; redemptions must go through the async request/claim flow. */
|
|
1224
|
+
| 'SyncDeposit'
|
|
1225
|
+
/** Only synchronous redemptions are enabled; deposits must go through the async request/claim flow. */
|
|
1226
|
+
| 'SyncRedeem';
|
|
1227
|
+
/** Emitted when the safe updates which synchronous operations are allowed on the vault. */
|
|
1228
|
+
export type SyncModeUpdated = {
|
|
1229
|
+
__typename?: 'SyncModeUpdated';
|
|
1230
|
+
/** Sync mode after the update. */
|
|
1231
|
+
newMode: SyncMode;
|
|
1232
|
+
/** Sync mode before the update. */
|
|
1233
|
+
oldMode: SyncMode;
|
|
1234
|
+
/** The vault whose sync mode changed. */
|
|
1235
|
+
vault: Vault;
|
|
1236
|
+
};
|
|
1237
|
+
/** Inclusive Unix timestamp range (seconds) to bound a historical query. When omitted, the server picks a sensible default per field. */
|
|
1238
|
+
export type TimeRangeOptions = {
|
|
1239
|
+
/** Upper bound (inclusive) of the query range, as Unix timestamp in seconds. */
|
|
1240
|
+
endTimestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
1241
|
+
/** Lower bound (inclusive) of the query range, as Unix timestamp in seconds. */
|
|
1242
|
+
startTimestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
1243
|
+
};
|
|
1244
|
+
/** Token or position allocation within a vault composition */
|
|
1245
|
+
export type TokenComposition = {
|
|
1246
|
+
__typename?: 'TokenComposition';
|
|
1247
|
+
/** Chain identifier (e.g., "ethereum", "base") */
|
|
1248
|
+
chainKey: Scalars['String']['output'];
|
|
1249
|
+
/** Contract address of the token (empty string if not applicable) */
|
|
1250
|
+
contract: Scalars['String']['output'];
|
|
1251
|
+
/** Detail breakdown for grouped items (e.g., "Wallet" or "Other" categories) */
|
|
1252
|
+
details?: Maybe<Array<TokenComposition>>;
|
|
1253
|
+
/** Full name of the token or position */
|
|
1254
|
+
name: Scalars['String']['output'];
|
|
1255
|
+
/** Percentage of total vault value (0-100) */
|
|
1256
|
+
repartition: Scalars['Float']['output'];
|
|
1257
|
+
/** Token symbol (e.g., "USDC", "ETH") or position name */
|
|
1258
|
+
symbol: Scalars['String']['output'];
|
|
1259
|
+
/** Value of this token/position in USD */
|
|
1260
|
+
valueInUsd: Scalars['Float']['output'];
|
|
1261
|
+
};
|
|
1262
|
+
/** Emitted when the timestamp after which totalAssets is considered stale changes. */
|
|
1263
|
+
export type TotalAssetsExpirationUpdated = {
|
|
1264
|
+
__typename?: 'TotalAssetsExpirationUpdated';
|
|
1265
|
+
/** New expiration unix timestamp. */
|
|
1266
|
+
newExpiration: Scalars['BigInt']['output'];
|
|
1267
|
+
/** Previous expiration unix timestamp. */
|
|
1268
|
+
oldExpiration: Scalars['BigInt']['output'];
|
|
1269
|
+
/** The vault whose totalAssets expiration changed. */
|
|
1270
|
+
vault: Vault;
|
|
1271
|
+
};
|
|
760
1272
|
/** Emitted before fees are taken, SettleDeposit and SettleRedeem when there is a new vault valuation settled. */
|
|
761
1273
|
export type TotalAssetsUpdated = {
|
|
762
1274
|
__typename?: 'TotalAssetsUpdated';
|
|
@@ -764,8 +1276,6 @@ export type TotalAssetsUpdated = {
|
|
|
764
1276
|
totalAssets: Scalars['BigInt']['output'];
|
|
765
1277
|
/** The total value of all assets in the vault converted to USD */
|
|
766
1278
|
totalAssetsUsd?: Maybe<Scalars['Float']['output']>;
|
|
767
|
-
/** The total supply value settled before fees, deposits, adn redeems */
|
|
768
|
-
totalSupply: Scalars['BigInt']['output'];
|
|
769
1279
|
/** The vault associated with the total assets updated */
|
|
770
1280
|
vault: Vault;
|
|
771
1281
|
};
|
|
@@ -780,25 +1290,45 @@ export type Transaction = {
|
|
|
780
1290
|
data: TransactionData;
|
|
781
1291
|
/** Transaction hash in hexadecimal format (null for virtual events) */
|
|
782
1292
|
hash?: Maybe<Scalars['HexString']['output']>;
|
|
783
|
-
/** Unique identifier for the transaction */
|
|
784
|
-
id: Scalars['ID']['output'];
|
|
785
1293
|
/** Index of the log entry within the transaction (null for virtual events) */
|
|
786
1294
|
logIndex?: Maybe<Scalars['Int']['output']>;
|
|
787
1295
|
/** Unix timestamp when the transaction was mined */
|
|
788
1296
|
timestamp: Scalars['BigInt']['output'];
|
|
1297
|
+
/** Index of the transaction within the block (null for virtual events) */
|
|
1298
|
+
transactionIndex?: Maybe<Scalars['Int']['output']>;
|
|
789
1299
|
/** Type of transaction or event */
|
|
790
1300
|
type: TransactionType;
|
|
791
1301
|
};
|
|
792
1302
|
/** Union type representing different types of transaction that can occur, including real on-chain events and virtual ones like PeriodSummaries */
|
|
793
|
-
export type TransactionData = DepositRequest | DepositRequestCanceled | DepositSync | NewTotalAssetsUpdated | PeriodSummary | RatesUpdated | RedeemRequest | SettleDeposit | SettleRedeem | StateUpdated | TotalAssetsUpdated | WhitelistUpdated;
|
|
1303
|
+
export type TransactionData = AccessModeUpdated | AsyncOnlyActivated | BlacklistUpdated | Deposit | DepositRequest | DepositRequestCanceled | DepositSync | ExternalSanctionsListUpdated | FeeTaken | GuardrailsStatusUpdated | GuardrailsUpdated | HaircutTaken | MaxCapUpdated | NameUpdated | NewTotalAssetsUpdated | PeriodSummary | PreMint | ProxyDeployed | RatesUpdated | RedeemRequest | RedeemRequestCanceled | SafeUpdated | SecurityCouncilUpdated | SettleDeposit | SettleRedeem | StateUpdated | SuperOperatorUpdated | SymbolUpdated | SyncModeUpdated | TotalAssetsExpirationUpdated | TotalAssetsUpdated | WhitelistUpdated | Withdraw | WithdrawSync;
|
|
794
1304
|
/** Filter input for Transaction */
|
|
795
1305
|
export type TransactionFilterInput = {
|
|
796
1306
|
/** Filter by chainId equal to value */
|
|
797
1307
|
chainId_eq?: InputMaybe<Scalars['Int']['input']>;
|
|
798
1308
|
/** Filter by chainId in array of values */
|
|
799
1309
|
chainId_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
1310
|
+
/** Filter by controller in array of values */
|
|
1311
|
+
controller_in?: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
1312
|
+
/** Filter by controller not in array of values */
|
|
1313
|
+
controller_not_in?: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
1314
|
+
/** Filter by owner in array of values */
|
|
1315
|
+
owner_in?: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
1316
|
+
/** Filter by owner not in array of values */
|
|
1317
|
+
owner_not_in?: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
1318
|
+
/** Filter by sender in array of values */
|
|
1319
|
+
sender_in?: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
1320
|
+
/** Filter by sender not in array of values */
|
|
1321
|
+
sender_not_in?: InputMaybe<Array<Scalars['Address']['input']>>;
|
|
800
1322
|
/** Filter by state equal to value */
|
|
801
1323
|
state_eq?: InputMaybe<Scalars['Int']['input']>;
|
|
1324
|
+
/** Filter by timestamp greater than value */
|
|
1325
|
+
timestamp_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1326
|
+
/** Filter by timestamp greater than or equal to value */
|
|
1327
|
+
timestamp_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1328
|
+
/** Filter by timestamp less than value */
|
|
1329
|
+
timestamp_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1330
|
+
/** Filter by timestamp less than or equal to value */
|
|
1331
|
+
timestamp_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
802
1332
|
/** Filter by type in array of values */
|
|
803
1333
|
type_in?: InputMaybe<Array<TransactionType>>;
|
|
804
1334
|
/** Filter by type not in array of values */
|
|
@@ -828,32 +1358,89 @@ export type TransactionPage = {
|
|
|
828
1358
|
};
|
|
829
1359
|
/** Enum representing different types of vault transactions and operations */
|
|
830
1360
|
export type TransactionType =
|
|
1361
|
+
/** Emitted when the owner switches the vault between whitelist and blacklist access modes. */
|
|
1362
|
+
'AccessModeUpdated'
|
|
1363
|
+
/** Marker emitted once when the owner irreversibly switches the vault to async-only mode. */
|
|
1364
|
+
| 'AsyncOnlyActivated'
|
|
1365
|
+
/** Emitted when the whitelist manager adds or removes an address from the blacklist. */
|
|
1366
|
+
| 'BlacklistUpdated'
|
|
1367
|
+
/** Emitted when a user claims a previously requested and settled deposit in the ERC7540 async flow — the pending assets are converted at the settled rate and shares are minted to the owner. */
|
|
1368
|
+
| 'Deposit'
|
|
831
1369
|
/** Emitted when a deposit request happens. */
|
|
832
|
-
'DepositRequest'
|
|
1370
|
+
| 'DepositRequest'
|
|
833
1371
|
/** Emitted when a deposit request is canceled. */
|
|
834
1372
|
| 'DepositRequestCanceled'
|
|
835
1373
|
/** Same as a 4626 Deposit event. */
|
|
836
1374
|
| 'DepositSync'
|
|
1375
|
+
/** Emitted when the whitelist manager updates the external sanctions list oracle. */
|
|
1376
|
+
| 'ExternalSanctionsListUpdated'
|
|
1377
|
+
/** Emitted every time the vault takes a fee (management, performance, entry, or exit). */
|
|
1378
|
+
| 'FeeTaken'
|
|
1379
|
+
/** Emitted when the security council enables or disables guardrails enforcement. */
|
|
1380
|
+
| 'GuardrailsStatusUpdated'
|
|
1381
|
+
/** Emitted when the security council updates the price-per-share evolution limits. */
|
|
1382
|
+
| 'GuardrailsUpdated'
|
|
1383
|
+
/** Emitted on syncRedeem when a haircut is applied and burned to protect remaining shareholders. */
|
|
1384
|
+
| 'HaircutTaken'
|
|
1385
|
+
/** Emitted when the safe updates the maximum total assets the vault can hold. */
|
|
1386
|
+
| 'MaxCapUpdated'
|
|
1387
|
+
/** Emitted when the owner updates the ERC-20 token name. */
|
|
1388
|
+
| 'NameUpdated'
|
|
837
1389
|
/** Emitted when the newTotalAssets variable is updated. */
|
|
838
1390
|
| 'NewTotalAssetsUpdated'
|
|
839
1391
|
/** Period summaries are not events but are piece of data that summaries key vault metrics evolution. A period being a portion of time between two updates of TotalAssets. */
|
|
840
1392
|
| 'PeriodSummary'
|
|
1393
|
+
/** Emitted at vault initialization when pre-minted shares are sent to the safe in exchange for seed assets. */
|
|
1394
|
+
| 'PreMint'
|
|
1395
|
+
/** Emitted when a factory deploys a new vault proxy. */
|
|
1396
|
+
| 'ProxyDeployed'
|
|
841
1397
|
/** Emitted when vault fee rates get updated */
|
|
842
1398
|
| 'RatesUpdated'
|
|
843
1399
|
/** Emitted when a redemption request happens. */
|
|
844
1400
|
| 'RedeemRequest'
|
|
1401
|
+
/** Emitted when a redemption request is canceled. */
|
|
1402
|
+
| 'RedeemRequestCanceled'
|
|
1403
|
+
/** Emitted when the safe (fund custody address) is rotated. */
|
|
1404
|
+
| 'SafeUpdated'
|
|
1405
|
+
/** Emitted when the owner assigns or rotates the security council. */
|
|
1406
|
+
| 'SecurityCouncilUpdated'
|
|
845
1407
|
/** Emitted when there is assets deposited in the safe. */
|
|
846
1408
|
| 'SettleDeposit'
|
|
847
1409
|
/** Emitted when there assets unwind from the safe */
|
|
848
1410
|
| 'SettleRedeem'
|
|
849
1411
|
/** Emitted when vault state changes from Open -> Closing -> Close */
|
|
850
1412
|
| 'StateUpdated'
|
|
1413
|
+
/** Emitted when the owner assigns or rotates the super operator. */
|
|
1414
|
+
| 'SuperOperatorUpdated'
|
|
1415
|
+
/** Emitted when the owner updates the ERC-20 token symbol. */
|
|
1416
|
+
| 'SymbolUpdated'
|
|
1417
|
+
/** Emitted when the safe updates which synchronous operations are allowed. */
|
|
1418
|
+
| 'SyncModeUpdated'
|
|
1419
|
+
/** Emitted when the timestamp after which totalAssets is considered stale changes. */
|
|
1420
|
+
| 'TotalAssetsExpirationUpdated'
|
|
851
1421
|
/** Emitted when the totalAssets variable is updated. */
|
|
852
1422
|
| 'TotalAssetsUpdated'
|
|
853
1423
|
/** Vault states are not events but it maintains key event states. */
|
|
854
1424
|
| 'VaultState'
|
|
855
1425
|
/** Emitted when a whitelist entry is updated */
|
|
856
|
-
| 'WhitelistUpdated'
|
|
1426
|
+
| 'WhitelistUpdated'
|
|
1427
|
+
/** Emitted when a user claims a previously requested and settled redemption in the ERC7540 async flow — pending shares are burned at the settled rate and the corresponding assets are transferred to the receiver. */
|
|
1428
|
+
| 'Withdraw'
|
|
1429
|
+
/** ERC-4626 Withdraw mirror emitted on syncRedeem (after exit fee and haircut deduction). */
|
|
1430
|
+
| 'WithdrawSync';
|
|
1431
|
+
/** Input for updating off-chain vault metadata */
|
|
1432
|
+
export type UpdateVaultMetadataInput = {
|
|
1433
|
+
/** Average settlement time in hours */
|
|
1434
|
+
averageSettlement?: InputMaybe<Scalars['Float']['input']>;
|
|
1435
|
+
/** Detailed description of the vault and its strategy */
|
|
1436
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
1437
|
+
/** Off-chain soft cap on total deposits, surfaced to the frontend so vault operators can limit incoming deposits via the UI. Purely informative, no on-chain enforcement. */
|
|
1438
|
+
maxCapacity?: InputMaybe<Scalars['String']['input']>;
|
|
1439
|
+
/** Short one-line description of the vault */
|
|
1440
|
+
shortDescription?: InputMaybe<Scalars['String']['input']>;
|
|
1441
|
+
/** URL to transparency report or dashboard */
|
|
1442
|
+
transparencyUrl?: InputMaybe<Scalars['String']['input']>;
|
|
1443
|
+
};
|
|
857
1444
|
/** User entity representing a vault user */
|
|
858
1445
|
export type User = {
|
|
859
1446
|
__typename?: 'User';
|
|
@@ -916,6 +1503,10 @@ export type Vault = {
|
|
|
916
1503
|
bundles?: Maybe<Bundles>;
|
|
917
1504
|
/** The network where the vault is deployed */
|
|
918
1505
|
chain: Chain;
|
|
1506
|
+
/** Vault composition showing protocol and token allocations (requires Octav API) */
|
|
1507
|
+
composition?: Maybe<CompositionData>;
|
|
1508
|
+
/** Unix timestamp of when the vault was initialized on the blockchain (VaultInitialized event). */
|
|
1509
|
+
creationDate: Scalars['Float']['output'];
|
|
919
1510
|
/** List of curators associated with this vault */
|
|
920
1511
|
curators?: Maybe<Array<Curator>>;
|
|
921
1512
|
/** Number of decimal places for the vault share */
|
|
@@ -936,7 +1527,7 @@ export type Vault = {
|
|
|
936
1527
|
isVisible: Scalars['Boolean']['output'];
|
|
937
1528
|
/** URL to the vault logo image */
|
|
938
1529
|
logoUrl?: Maybe<Scalars['String']['output']>;
|
|
939
|
-
/**
|
|
1530
|
+
/** Off-chain soft cap on total deposits, surfaced to the frontend so vault operators can limit incoming deposits via the UI. Purely informative, no on-chain enforcement. */
|
|
940
1531
|
maxCapacity?: Maybe<Scalars['String']['output']>;
|
|
941
1532
|
/** Name of the vault */
|
|
942
1533
|
name?: Maybe<Scalars['String']['output']>;
|
|
@@ -944,16 +1535,28 @@ export type Vault = {
|
|
|
944
1535
|
nativeYields: Array<NativeYield>;
|
|
945
1536
|
/** A transparent upgradeable proxy that allows opting into logic upgrades through a registry. Returns null for vaults that don't support this upgradeability pattern. */
|
|
946
1537
|
optinProxy?: Maybe<OptinProxy>;
|
|
1538
|
+
/** Owner of the vault */
|
|
1539
|
+
owner?: Maybe<Owner>;
|
|
947
1540
|
/** Prevent withdraw */
|
|
948
1541
|
preventWithdraw?: Maybe<PreventWithdraw>;
|
|
949
1542
|
/** Referral program associated with the vault */
|
|
950
1543
|
referral?: Maybe<Referral>;
|
|
951
1544
|
/** Brief summary of the vault */
|
|
952
1545
|
shortDescription?: Maybe<Scalars['String']['output']>;
|
|
953
|
-
/** Current operational state and metrics of the vault */
|
|
1546
|
+
/** Current operational state and metrics of the vault. */
|
|
954
1547
|
state: VaultState;
|
|
1548
|
+
/** Vault state as of `timestamp`, reconstructed from onchain history. Returns null if no history exists at or before that time. */
|
|
1549
|
+
stateAt?: Maybe<HistoricalVaultState>;
|
|
1550
|
+
/** Historical event stream for the fields exposed by vault.state. Each field exposes an ascending time series of onchain changes within an optional TimeRangeOptions window (default: from vault creation to now). Capped at 1000 most recent events per underlying table. */
|
|
1551
|
+
stateHistory: VaultStateHistory;
|
|
955
1552
|
/** The symbol of the vault share */
|
|
956
1553
|
symbol?: Maybe<Scalars['String']['output']>;
|
|
1554
|
+
/** Transparency report URL for this vault */
|
|
1555
|
+
transparencyUrl?: Maybe<Scalars['String']['output']>;
|
|
1556
|
+
};
|
|
1557
|
+
/** A vault entity that represents a Lagoon vault contract */
|
|
1558
|
+
export type VaultStateAtArgs = {
|
|
1559
|
+
timestamp: Scalars['Int']['input'];
|
|
957
1560
|
};
|
|
958
1561
|
/** Filter input for Vault */
|
|
959
1562
|
export type VaultFilterInput = {
|
|
@@ -1001,6 +1604,18 @@ export type VaultFilterInput = {
|
|
|
1001
1604
|
integratorId_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1002
1605
|
/** Filter by isVisible equal to value */
|
|
1003
1606
|
isVisible_eq?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1607
|
+
/** Filter by ownerId equal to value */
|
|
1608
|
+
ownerId_eq?: InputMaybe<Scalars['String']['input']>;
|
|
1609
|
+
/** Filter by ownerId in array of values */
|
|
1610
|
+
ownerId_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1611
|
+
/** Filter by ownerId not equal to value */
|
|
1612
|
+
ownerId_not_eq?: InputMaybe<Scalars['String']['input']>;
|
|
1613
|
+
/** Filter by ownerId not in array of values */
|
|
1614
|
+
ownerId_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1615
|
+
/** Filter by state equal to value */
|
|
1616
|
+
state_eq?: InputMaybe<State>;
|
|
1617
|
+
/** Filter by state in array of values */
|
|
1618
|
+
state_in?: InputMaybe<Array<State>>;
|
|
1004
1619
|
/** Filter by symbol equal to value */
|
|
1005
1620
|
symbol_eq?: InputMaybe<Scalars['String']['input']>;
|
|
1006
1621
|
/** Filter by symbol in array of values */
|
|
@@ -1041,22 +1656,61 @@ export type VaultPosition = {
|
|
|
1041
1656
|
/** Current operational state and metrics of the vault position */
|
|
1042
1657
|
export type VaultPositionState = {
|
|
1043
1658
|
__typename?: 'VaultPositionState';
|
|
1044
|
-
/**
|
|
1659
|
+
/** The user's position in assets. Takes into account the user's balance, pending and claimable deposit requests, and pending and claimable redeem requests. */
|
|
1045
1660
|
assets: Scalars['BigInt']['output'];
|
|
1046
|
-
/** User
|
|
1661
|
+
/** User share token balance held in the vault */
|
|
1662
|
+
balance: Scalars['BigInt']['output'];
|
|
1663
|
+
/** Settled deposit request awaiting finalization, with both settlement-time and current-PPS values */
|
|
1664
|
+
claimableDeposit: ClaimableDepositRequest;
|
|
1665
|
+
/** Settled redeem request awaiting finalization, in both asset and share units */
|
|
1666
|
+
claimableRedeem: VaultRequest;
|
|
1667
|
+
/** Pending deposit request awaiting settlement, in both asset and share units */
|
|
1668
|
+
pendingDeposit: VaultRequest;
|
|
1669
|
+
/** Pending redeem request awaiting settlement, in both asset and share units */
|
|
1670
|
+
pendingRedeem: VaultRequest;
|
|
1671
|
+
/** The user's position in shares. Takes into account the user's balance, pending and claimable deposit requests, and pending and claimable redeem requests. */
|
|
1047
1672
|
shares: Scalars['BigInt']['output'];
|
|
1048
|
-
/**
|
|
1673
|
+
/**
|
|
1674
|
+
* User shares in this vault converted to USD
|
|
1675
|
+
* @deprecated use usd instead
|
|
1676
|
+
*/
|
|
1049
1677
|
sharesUsd?: Maybe<Scalars['Float']['output']>;
|
|
1678
|
+
/** The user's position in this vault converted to USD */
|
|
1679
|
+
usd?: Maybe<Scalars['Float']['output']>;
|
|
1680
|
+
};
|
|
1681
|
+
/** A deposit or redeem request in the vault lifecycle, expressed in both asset and share units */
|
|
1682
|
+
export type VaultRequest = {
|
|
1683
|
+
__typename?: 'VaultRequest';
|
|
1684
|
+
/** Amount denominated in assets */
|
|
1685
|
+
assets: Scalars['BigInt']['output'];
|
|
1686
|
+
/** Amount denominated in shares */
|
|
1687
|
+
shares: Scalars['BigInt']['output'];
|
|
1050
1688
|
};
|
|
1051
1689
|
/** Current state and metrics of a vault including assets, supply, pricing, and performance data */
|
|
1052
1690
|
export type VaultState = {
|
|
1053
1691
|
__typename?: 'VaultState';
|
|
1692
|
+
/** Access control mode. Determines whether the vault enforces a whitelist (deny-by-default) or a blacklist (allow-by-default). Null when not applicable. */
|
|
1693
|
+
accessMode?: Maybe<AccessMode>;
|
|
1054
1694
|
/** List of curators associated with this vault */
|
|
1055
1695
|
curators?: Maybe<Array<Curator>>;
|
|
1696
|
+
/** Entry fee rate in basis points (max 200 BPS). Applied on deposits — immediately on syncDeposit, at claim time for async. */
|
|
1697
|
+
entryRate: Scalars['Float']['output'];
|
|
1698
|
+
/** Exit fee rate in basis points (max 200 BPS). Applied on redeems — immediately on syncRedeem, at claim time for async, at withdraw time for closed vaults. */
|
|
1699
|
+
exitRate: Scalars['Float']['output'];
|
|
1700
|
+
/** Address of an optional external sanctions list oracle consulted by the access control check. Defaults to the zero address when unset. */
|
|
1701
|
+
externalSanctionsList: Scalars['String']['output'];
|
|
1702
|
+
/** The minimum delay (in seconds) between rates update and their enforcement */
|
|
1703
|
+
feeRatesCooldown: Scalars['BigInt']['output'];
|
|
1704
|
+
/** Price-per-share evolution limits and their activation state. */
|
|
1705
|
+
guardrails: Guardrails;
|
|
1706
|
+
/** Haircut fee rate in basis points (max 2000 BPS). Applied only on syncRedeem, after the exit fee. Haircut shares are burned, redistributing value to remaining shareholders. */
|
|
1707
|
+
haircutRate: Scalars['Float']['output'];
|
|
1056
1708
|
/** The highest price per share ever reached, performance fees are taken when the price per share is above this value */
|
|
1057
1709
|
highWaterMark: Scalars['BigInt']['output'];
|
|
1058
1710
|
/** Annualized percentage returns since inception */
|
|
1059
1711
|
inceptionApr: ApRs;
|
|
1712
|
+
/** Whether the vault has been irreversibly switched to async-only mode. When true, SyncMode is forced to None and cannot be re-enabled. */
|
|
1713
|
+
isAsyncOnly: Scalars['Boolean']['output'];
|
|
1060
1714
|
/** Wether the whitelist is activated or not */
|
|
1061
1715
|
isWhitelistActivated: Scalars['Boolean']['output'];
|
|
1062
1716
|
/** The timestamp of the last fee calculation, used to compute management fees */
|
|
@@ -1065,8 +1719,12 @@ export type VaultState = {
|
|
|
1065
1719
|
liveAPR?: Maybe<LiveApr>;
|
|
1066
1720
|
/** Management fee percentage charged by the vault */
|
|
1067
1721
|
managementFee: Scalars['Float']['output'];
|
|
1722
|
+
/** Maximum total assets the vault can hold, in asset units. Enforced on syncDeposit and requestDeposit. Null when no cap is configured. */
|
|
1723
|
+
maxCap?: Maybe<Scalars['BigInt']['output']>;
|
|
1068
1724
|
/** Monthly annualized percentage returns */
|
|
1069
1725
|
monthlyApr: ApRs;
|
|
1726
|
+
/** The timestamp at which the new rates will be applied */
|
|
1727
|
+
newRatesTimestamp: Scalars['BigInt']['output'];
|
|
1070
1728
|
/** The new valuation proposed for the next settlement. Will return MAX_UINT_256 until a new totalAssets value is proposed or null if no valuation has ever been proposed. */
|
|
1071
1729
|
newTotalAssets?: Maybe<Scalars['BigInt']['output']>;
|
|
1072
1730
|
/** The shares and assets that will be settled if the settle is possible */
|
|
@@ -1083,18 +1741,26 @@ export type VaultState = {
|
|
|
1083
1741
|
protocolFee: Scalars['Float']['output'];
|
|
1084
1742
|
/** Vault access control roles and permissions */
|
|
1085
1743
|
roles: Roles;
|
|
1086
|
-
/** The asset amounts
|
|
1744
|
+
/** The asset amounts currently in the vault custody */
|
|
1087
1745
|
safeAssetBalance: Scalars['BigInt']['output'];
|
|
1088
|
-
/** The USD asset amounts
|
|
1746
|
+
/** The USD asset amounts currently in the vault custody */
|
|
1089
1747
|
safeAssetBalanceUsd?: Maybe<Scalars['Float']['output']>;
|
|
1090
1748
|
/** The status of the vault, open, closed, or closing */
|
|
1091
1749
|
state: State;
|
|
1750
|
+
/** Which synchronous operations are currently allowed (Both, SyncDeposit, SyncRedeem, None). Orthogonal to async. */
|
|
1751
|
+
syncMode: SyncMode;
|
|
1092
1752
|
/** Total assets under management in the vault */
|
|
1093
1753
|
totalAssets: Scalars['BigInt']['output'];
|
|
1754
|
+
/** Unix timestamp after which totalAssets is considered stale and synchronous operations are disabled until the next valuation update. */
|
|
1755
|
+
totalAssetsExpiration: Scalars['BigInt']['output'];
|
|
1094
1756
|
/** Total assets value in USD */
|
|
1095
1757
|
totalAssetsUsd?: Maybe<Scalars['Float']['output']>;
|
|
1096
1758
|
/** Total supply of vault shares */
|
|
1097
1759
|
totalSupply: Scalars['BigInt']['output'];
|
|
1760
|
+
/** Upcoming management fee rates applied at newRatesTimestamp else null */
|
|
1761
|
+
upcomingManagementFee?: Maybe<Scalars['Float']['output']>;
|
|
1762
|
+
/** Upcoming performance fee rates applied at newRatesTimestamp else null */
|
|
1763
|
+
upcomingPerformanceFee?: Maybe<Scalars['Float']['output']>;
|
|
1098
1764
|
/** Vault version */
|
|
1099
1765
|
version: Scalars['String']['output'];
|
|
1100
1766
|
/** Weekly annualized percentage returns */
|
|
@@ -1104,6 +1770,100 @@ export type VaultState = {
|
|
|
1104
1770
|
/** Yearly annualized percentage returns */
|
|
1105
1771
|
yearlyApr: ApRs;
|
|
1106
1772
|
};
|
|
1773
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1774
|
+
export type VaultStateHistory = {
|
|
1775
|
+
__typename?: 'VaultStateHistory';
|
|
1776
|
+
/** History of the minimum delay (seconds) between fee rates update and enforcement. */
|
|
1777
|
+
feeRatesCooldown: Array<BigIntDataPoint>;
|
|
1778
|
+
/** Highest price per share ever reached, history. */
|
|
1779
|
+
highWaterMark: Array<BigIntDataPoint>;
|
|
1780
|
+
/** History of the last fee-calculation timestamp. */
|
|
1781
|
+
lastFeeTime: Array<BigIntDataPoint>;
|
|
1782
|
+
/** Management fee percentage history. */
|
|
1783
|
+
managementFee: Array<FloatDataPoint>;
|
|
1784
|
+
/** History of the timestamp at which new fee rates become applicable. */
|
|
1785
|
+
newRatesTimestamp: Array<BigIntDataPoint>;
|
|
1786
|
+
/** History of the proposed next-settlement total assets valuation. */
|
|
1787
|
+
newTotalAssets: Array<BigIntDataPoint>;
|
|
1788
|
+
/** Performance fee percentage history. */
|
|
1789
|
+
performanceFee: Array<FloatDataPoint>;
|
|
1790
|
+
/** Price per vault share in base units, history. */
|
|
1791
|
+
pricePerShare: Array<BigIntDataPoint>;
|
|
1792
|
+
/** Price per vault share in USD, history. */
|
|
1793
|
+
pricePerShareUsd: Array<FloatDataPoint>;
|
|
1794
|
+
/** Protocol fee percentage history. */
|
|
1795
|
+
protocolFee: Array<FloatDataPoint>;
|
|
1796
|
+
/** Total assets under management history. */
|
|
1797
|
+
totalAssets: Array<BigIntDataPoint>;
|
|
1798
|
+
/** Total assets value in USD history. */
|
|
1799
|
+
totalAssetsUsd: Array<FloatDataPoint>;
|
|
1800
|
+
/** Total supply of vault shares history. */
|
|
1801
|
+
totalSupply: Array<BigIntDataPoint>;
|
|
1802
|
+
/** Upcoming management fee history. */
|
|
1803
|
+
upcomingManagementFee: Array<FloatDataPoint>;
|
|
1804
|
+
/** Upcoming performance fee history. */
|
|
1805
|
+
upcomingPerformanceFee: Array<FloatDataPoint>;
|
|
1806
|
+
};
|
|
1807
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1808
|
+
export type VaultStateHistoryFeeRatesCooldownArgs = {
|
|
1809
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1810
|
+
};
|
|
1811
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1812
|
+
export type VaultStateHistoryHighWaterMarkArgs = {
|
|
1813
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1814
|
+
};
|
|
1815
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1816
|
+
export type VaultStateHistoryLastFeeTimeArgs = {
|
|
1817
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1818
|
+
};
|
|
1819
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1820
|
+
export type VaultStateHistoryManagementFeeArgs = {
|
|
1821
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1822
|
+
};
|
|
1823
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1824
|
+
export type VaultStateHistoryNewRatesTimestampArgs = {
|
|
1825
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1826
|
+
};
|
|
1827
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1828
|
+
export type VaultStateHistoryNewTotalAssetsArgs = {
|
|
1829
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1830
|
+
};
|
|
1831
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1832
|
+
export type VaultStateHistoryPerformanceFeeArgs = {
|
|
1833
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1834
|
+
};
|
|
1835
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1836
|
+
export type VaultStateHistoryPricePerShareArgs = {
|
|
1837
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1838
|
+
};
|
|
1839
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1840
|
+
export type VaultStateHistoryPricePerShareUsdArgs = {
|
|
1841
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1842
|
+
};
|
|
1843
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1844
|
+
export type VaultStateHistoryProtocolFeeArgs = {
|
|
1845
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1846
|
+
};
|
|
1847
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1848
|
+
export type VaultStateHistoryTotalAssetsArgs = {
|
|
1849
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1850
|
+
};
|
|
1851
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1852
|
+
export type VaultStateHistoryTotalAssetsUsdArgs = {
|
|
1853
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1854
|
+
};
|
|
1855
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1856
|
+
export type VaultStateHistoryTotalSupplyArgs = {
|
|
1857
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1858
|
+
};
|
|
1859
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1860
|
+
export type VaultStateHistoryUpcomingManagementFeeArgs = {
|
|
1861
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1862
|
+
};
|
|
1863
|
+
/** Historical event stream for vault state and fee configuration. Each field exposes an ascending time series of the underlying value, one point per onchain change within the requested range. Capped at 1000 most recent events per underlying table. */
|
|
1864
|
+
export type VaultStateHistoryUpcomingPerformanceFeeArgs = {
|
|
1865
|
+
options?: InputMaybe<TimeRangeOptions>;
|
|
1866
|
+
};
|
|
1107
1867
|
/** Emitted when a whitelist entry is updated. */
|
|
1108
1868
|
export type WhitelistUpdated = {
|
|
1109
1869
|
__typename?: 'WhitelistUpdated';
|
|
@@ -1111,7 +1871,39 @@ export type WhitelistUpdated = {
|
|
|
1111
1871
|
account: Scalars['Address']['output'];
|
|
1112
1872
|
/** Indicates whether the account is authorized (true) or not (false). */
|
|
1113
1873
|
authorized: Scalars['Boolean']['output'];
|
|
1114
|
-
/** The vault associated with this
|
|
1874
|
+
/** The vault associated with this whitelist update. */
|
|
1875
|
+
vault: Vault;
|
|
1876
|
+
};
|
|
1877
|
+
/** Emitted when a user claims a previously requested and settled redemption in the ERC7540 async flow — pending shares are burned at the settled rate and the corresponding assets are transferred to the receiver. */
|
|
1878
|
+
export type Withdraw = {
|
|
1879
|
+
__typename?: 'Withdraw';
|
|
1880
|
+
/** Amount of assets withdrawn. */
|
|
1881
|
+
assets: Scalars['BigInt']['output'];
|
|
1882
|
+
/** The address whose shares are burned. */
|
|
1883
|
+
owner: Scalars['Address']['output'];
|
|
1884
|
+
/** The address that receives the withdrawn assets. May differ from `sender` and `owner`. */
|
|
1885
|
+
receiver: Scalars['Address']['output'];
|
|
1886
|
+
/** The address that called `withdraw`. */
|
|
1887
|
+
sender: Scalars['Address']['output'];
|
|
1888
|
+
/** Amount of shares burned. */
|
|
1889
|
+
shares: Scalars['BigInt']['output'];
|
|
1890
|
+
/** The vault associated with the withdraw */
|
|
1891
|
+
vault: Vault;
|
|
1892
|
+
};
|
|
1893
|
+
/** ERC-4626 Withdraw mirror emitted on syncRedeem. */
|
|
1894
|
+
export type WithdrawSync = {
|
|
1895
|
+
__typename?: 'WithdrawSync';
|
|
1896
|
+
/** Net assets transferred to the receiver (after exit fee and haircut). */
|
|
1897
|
+
assets: Scalars['BigInt']['output'];
|
|
1898
|
+
/** Address whose shares are burned. */
|
|
1899
|
+
owner: Scalars['Address']['output'];
|
|
1900
|
+
/** Address that receives the assets. May differ from sender and owner. */
|
|
1901
|
+
receiver: Scalars['Address']['output'];
|
|
1902
|
+
/** Address that called syncRedeem. */
|
|
1903
|
+
sender: Scalars['Address']['output'];
|
|
1904
|
+
/** Shares burned — includes the exit-fee and haircut portions. */
|
|
1905
|
+
shares: Scalars['BigInt']['output'];
|
|
1906
|
+
/** The vault associated with this sync redemption. */
|
|
1115
1907
|
vault: Vault;
|
|
1116
1908
|
};
|
|
1117
1909
|
/** Represents a wrapped native token with its contract details and metadata */
|