@zkp2p/indexer-schema 0.1.0 → 0.1.2

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.
@@ -32,7 +32,7 @@ type Deposit {
32
32
  }
33
33
 
34
34
  type DepositPaymentMethod {
35
- id: ID!
35
+ id: ID! # escrowAddress_depositId_paymentMethodHash
36
36
  chainId: Int!
37
37
  depositIdOnContract: BigInt!
38
38
  depositId: String!
@@ -43,7 +43,7 @@ type DepositPaymentMethod {
43
43
  }
44
44
 
45
45
  type MethodCurrency {
46
- id: ID!
46
+ id: ID! # escrowAddress_depositId_paymentMethodHash_currencyCode
47
47
  chainId: Int!
48
48
  depositIdOnContract: BigInt!
49
49
  depositId: String!
@@ -56,6 +56,7 @@ type Intent {
56
56
  id: ID! # chainId_intentHash
57
57
  intentHash: String!
58
58
  depositId: String!
59
+ escrowAddress: String!
59
60
  verifier: String!
60
61
  owner: String!
61
62
  toAddress: String!
@@ -63,10 +64,14 @@ type Intent {
63
64
  fiatCurrency: String!
64
65
  conversionRate: BigInt!
65
66
  status: String! # SIGNALED | FULFILLED | PRUNED
66
- signalTimestamp: BigInt!
67
+
68
+ # Tx hashes and timestamps
67
69
  signalTxHash: String!
70
+ signalTimestamp: BigInt!
68
71
  fulfillTxHash: String
72
+ fulfillTimestamp: BigInt
69
73
  pruneTxHash: String
74
+ pruneTimestamp: BigInt
70
75
 
71
76
  # Association to payment method
72
77
  paymentMethodHash: String
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/indexer-schema",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "ZKP2P Indexer GraphQL schema",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -18,11 +18,10 @@
18
18
  "dist/index.js",
19
19
  "README.md"
20
20
  ],
21
- "scripts": {
22
- "prepack": "node scripts/copy-schema.js",
23
- "pack:local": "npm pack"
24
- },
25
21
  "engines": {
26
22
  "node": ">=16"
23
+ },
24
+ "scripts": {
25
+ "pack:local": "npm pack"
27
26
  }
28
- }
27
+ }