@zkp2p/indexer-schema 0.2.0 → 0.2.3
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/README.md +1 -1
- package/dist/schema.graphql +19 -0
- package/dist/types.d.ts +509 -0
- package/dist/types.ts +510 -0
- package/docs/schema-field-reference.md +1413 -0
- package/llms.txt +681 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ schema: node_modules/@zkp2p/indexer-schema/dist/schema.graphql
|
|
|
33
33
|
|
|
34
34
|
## Exported Types
|
|
35
35
|
|
|
36
|
-
**Domain entities:** Deposit, DepositPaymentMethod, MethodCurrency, Intent, QuoteCandidate, ReferralFeeDistribution
|
|
36
|
+
**Domain entities:** Deposit, DepositPaymentMethod, MethodCurrency, Intent, QuoteCandidate, WhitelistEntry, ReferralFeeDistribution
|
|
37
37
|
|
|
38
38
|
**Stats:** TakerStats, MakerStats, MakerPlatformStats, MakerCurrencyStats, ManagerStats, ManagerAggregateStats, ManagerDailySnapshot
|
|
39
39
|
|
package/dist/schema.graphql
CHANGED
|
@@ -68,6 +68,9 @@ type Deposit {
|
|
|
68
68
|
rateManagerAddress: String
|
|
69
69
|
delegatedAt: BigInt
|
|
70
70
|
|
|
71
|
+
# Whitelist hook address (optional)
|
|
72
|
+
whitelistHookAddress: String # Address of the active whitelist pre-intent hook (optional)
|
|
73
|
+
|
|
71
74
|
# Reverse links for convenience in GraphQL (via @derivedFrom)
|
|
72
75
|
intents: [Intent!]! @derivedFrom(field: "depositId")
|
|
73
76
|
paymentMethods: [DepositPaymentMethod!]! @derivedFrom(field: "depositId")
|
|
@@ -447,6 +450,7 @@ type QuoteCandidate {
|
|
|
447
450
|
successRateBps: Int! # Maker success rate for deposit-level filtering
|
|
448
451
|
payeeDetailsHash: String! # Hashed payee details required for verification
|
|
449
452
|
intentGatingService: String # Optional gating service that must authorize takers
|
|
453
|
+
whitelistHookAddress: String # Address of the active whitelist pre-intent hook for this deposit (optional)
|
|
450
454
|
isActive: Boolean! # Whether this tuple is currently quoteable for takers
|
|
451
455
|
hasMinLiquidity: Boolean! # Whether availableTokenAmount is at least intentAmountMin
|
|
452
456
|
minFiatSupported: BigInt! # intentAmountMin converted using takerConversionRate
|
|
@@ -454,3 +458,18 @@ type QuoteCandidate {
|
|
|
454
458
|
maxFiatAvail: BigInt! # availableTokenAmount converted using takerConversionRate
|
|
455
459
|
updatedAt: BigInt! # Last time the denormalized row was refreshed
|
|
456
460
|
}
|
|
461
|
+
|
|
462
|
+
"""
|
|
463
|
+
Per-deposit taker whitelist entry. Created when a taker is whitelisted for a specific deposit via a WhitelistPreIntentHook contract. Deleted when the taker is removed or the hook is rotated.
|
|
464
|
+
"""
|
|
465
|
+
type WhitelistEntry {
|
|
466
|
+
id: ID! # escrowAddress_depositId_taker
|
|
467
|
+
chainId: Int!
|
|
468
|
+
hookAddress: String!
|
|
469
|
+
escrowAddress: String! @index
|
|
470
|
+
depositId: String! @index
|
|
471
|
+
depositIdOnContract: BigInt!
|
|
472
|
+
taker: String! @index
|
|
473
|
+
createdAt: BigInt!
|
|
474
|
+
updatedAt: BigInt!
|
|
475
|
+
}
|