@zkp2p/indexer-schema 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/schema.graphql +28 -10
  2. package/package.json +1 -1
@@ -4,17 +4,21 @@ type Deposit {
4
4
  id: ID! # escrowAddress_depositId
5
5
  chainId: Int!
6
6
  escrowAddress: String!
7
+
8
+ # Static Deposit details
7
9
  depositId: BigInt!
8
10
  depositor: String!
9
11
  token: String!
10
- amount: BigInt!
11
- remainingDeposits: BigInt!
12
+
13
+ # Deposit details (can be updated)
12
14
  intentAmountMin: BigInt!
13
15
  intentAmountMax: BigInt!
14
16
  acceptingIntents: Boolean!
15
17
  status: String! # ACTIVE | CLOSED | WITHDRAWN
16
18
 
17
- # Pre-calculated fields
19
+ # Deposit amounts used for quote calculations
20
+ amount: BigInt!
21
+ remainingDeposits: BigInt!
18
22
  outstandingIntentAmount: BigInt!
19
23
  availableLiquidity: BigInt!
20
24
 
@@ -34,8 +38,12 @@ type Deposit {
34
38
  type DepositPaymentMethod {
35
39
  id: ID! # escrowAddress_depositId_paymentMethodHash
36
40
  chainId: Int!
41
+
42
+ # Corresponding Deposit details
43
+ depositId: String! # escrowAddress_depositId (foreign key)
37
44
  depositIdOnContract: BigInt!
38
- depositId: String!
45
+
46
+ # Payment method details
39
47
  paymentMethodHash: String!
40
48
  verifierAddress: String!
41
49
  intentGatingService: String!
@@ -45,8 +53,12 @@ type DepositPaymentMethod {
45
53
  type MethodCurrency {
46
54
  id: ID! # escrowAddress_depositId_paymentMethodHash_currencyCode
47
55
  chainId: Int!
56
+
57
+ # Corresponding Deposit details
58
+ depositId: String! # escrowAddress_depositId (foreign key)
48
59
  depositIdOnContract: BigInt!
49
- depositId: String!
60
+
61
+ # Payment method details
50
62
  paymentMethodHash: String!
51
63
  currencyCode: String!
52
64
  minConversionRate: BigInt! # Currently contract emits this field as conversionRate; todo: update it on contract
@@ -55,11 +67,20 @@ type MethodCurrency {
55
67
  type Intent {
56
68
  id: ID! # chainId_intentHash
57
69
  intentHash: String!
58
- depositId: String!
59
- escrowAddress: String!
70
+ orchestratorAddress: String!
71
+
72
+ # Corresponding Deposit details
73
+ depositId: String! # escrowAddress_depositId (foreign key)
74
+
75
+ # Verifier details
60
76
  verifier: String!
77
+ paymentMethodHash: String # Association to payment method
78
+
79
+ # Recipient details
61
80
  owner: String!
62
81
  toAddress: String!
82
+
83
+ # Payment details
63
84
  amount: BigInt!
64
85
  fiatCurrency: String!
65
86
  conversionRate: BigInt!
@@ -73,7 +94,4 @@ type Intent {
73
94
  pruneTxHash: String
74
95
  pruneTimestamp: BigInt
75
96
  updatedAt: BigInt!
76
-
77
- # Association to payment method
78
- paymentMethodHash: String
79
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/indexer-schema",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "ZKP2P Indexer GraphQL schema",
5
5
  "private": false,
6
6
  "publishConfig": {