@xyo-network/evm-call-witness 2.85.0 → 2.85.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.
Files changed (69) hide show
  1. package/dist/browser/Diviner.d.cts +4 -2
  2. package/dist/browser/Diviner.d.cts.map +1 -1
  3. package/dist/browser/Diviner.d.mts +4 -2
  4. package/dist/browser/Diviner.d.mts.map +1 -1
  5. package/dist/browser/Diviner.d.ts +4 -2
  6. package/dist/browser/Diviner.d.ts.map +1 -1
  7. package/dist/browser/Labels.d.cts +12 -0
  8. package/dist/browser/Labels.d.cts.map +1 -0
  9. package/dist/browser/Labels.d.mts +12 -0
  10. package/dist/browser/Labels.d.mts.map +1 -0
  11. package/dist/browser/Labels.d.ts +12 -0
  12. package/dist/browser/Labels.d.ts.map +1 -0
  13. package/dist/browser/Payload.d.cts +1 -0
  14. package/dist/browser/Payload.d.cts.map +1 -1
  15. package/dist/browser/Payload.d.mts +1 -0
  16. package/dist/browser/Payload.d.mts.map +1 -1
  17. package/dist/browser/Payload.d.ts +1 -0
  18. package/dist/browser/Payload.d.ts.map +1 -1
  19. package/dist/browser/index.cjs +19 -8
  20. package/dist/browser/index.cjs.map +1 -1
  21. package/dist/browser/index.d.cts +1 -0
  22. package/dist/browser/index.d.cts.map +1 -1
  23. package/dist/browser/index.d.mts +1 -0
  24. package/dist/browser/index.d.mts.map +1 -1
  25. package/dist/browser/index.d.ts +1 -0
  26. package/dist/browser/index.d.ts.map +1 -1
  27. package/dist/browser/index.js +18 -7
  28. package/dist/browser/index.js.map +1 -1
  29. package/dist/node/Diviner.d.cts +4 -2
  30. package/dist/node/Diviner.d.cts.map +1 -1
  31. package/dist/node/Diviner.d.mts +4 -2
  32. package/dist/node/Diviner.d.mts.map +1 -1
  33. package/dist/node/Diviner.d.ts +4 -2
  34. package/dist/node/Diviner.d.ts.map +1 -1
  35. package/dist/node/Labels.d.cts +12 -0
  36. package/dist/node/Labels.d.cts.map +1 -0
  37. package/dist/node/Labels.d.mts +12 -0
  38. package/dist/node/Labels.d.mts.map +1 -0
  39. package/dist/node/Labels.d.ts +12 -0
  40. package/dist/node/Labels.d.ts.map +1 -0
  41. package/dist/node/Payload.d.cts +1 -0
  42. package/dist/node/Payload.d.cts.map +1 -1
  43. package/dist/node/Payload.d.mts +1 -0
  44. package/dist/node/Payload.d.mts.map +1 -1
  45. package/dist/node/Payload.d.ts +1 -0
  46. package/dist/node/Payload.d.ts.map +1 -1
  47. package/dist/node/index.cjs +21 -8
  48. package/dist/node/index.cjs.map +1 -1
  49. package/dist/node/index.d.cts +1 -0
  50. package/dist/node/index.d.cts.map +1 -1
  51. package/dist/node/index.d.mts +1 -0
  52. package/dist/node/index.d.mts.map +1 -1
  53. package/dist/node/index.d.ts +1 -0
  54. package/dist/node/index.d.ts.map +1 -1
  55. package/dist/node/index.js +18 -7
  56. package/dist/node/index.js.map +1 -1
  57. package/package.json +36 -24
  58. package/src/Diviner.ts +8 -3
  59. package/src/Labels.ts +15 -0
  60. package/src/Payload.ts +3 -1
  61. package/src/Witness.ts +1 -1
  62. package/src/index.ts +1 -0
  63. package/src/spec/imported/AddressToContract/AddressToContractIndex/Contract.Sentinel.Erc1155.Index.json +191 -0
  64. package/src/spec/imported/AddressToContract/AddressToContractIndex/Contract.Sentinel.Erc721.Index.json +191 -0
  65. package/src/spec/imported/AddressToContract/AddressToContractIndex/Contract.Sentinel.Node.json +279 -0
  66. package/src/spec/imported/AddressToContract/Erc721Sentinel.json +165 -0
  67. package/src/spec/imported/AddressToTotalSupplyIndex/Erc721.TotalSupply.Index.json +242 -0
  68. package/src/spec/imported/NftIndexToNftIdIndex/Erc721.NftId.Index.json +326 -0
  69. package/src/spec/imported/TotalSupplyToNftIndexIndex/Erc721.NftIndex.Index.json +403 -0
@@ -0,0 +1,326 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json",
3
+ "nodes": [
4
+ {
5
+ "config": {
6
+ "name": "Info",
7
+ "schema": "network.xyo.node.config"
8
+ },
9
+ "modules": {
10
+ "private": [
11
+ {
12
+ "config": {
13
+ "name": "AddressStateArchivist",
14
+ "schema": "network.xyo.archivist.config",
15
+ "storeQueries": false
16
+ }
17
+ },
18
+ {
19
+ "config": {
20
+ "archivist": "AddressStateArchivist",
21
+ "name": "AddressStateBoundWitnessDiviner",
22
+ "schema": "network.xyo.diviner.boundwitness.config"
23
+ }
24
+ },
25
+ {
26
+ "config": {
27
+ "archivist": "AddressStateArchivist",
28
+ "name": "AddressStatePayloadDiviner",
29
+ "schema": "network.xyo.diviner.payload.config"
30
+ }
31
+ },
32
+ {
33
+ "config": {
34
+ "name": "IndexArchivist",
35
+ "schema": "network.xyo.archivist.config"
36
+ }
37
+ },
38
+ {
39
+ "config": {
40
+ "archivist": "IndexArchivist",
41
+ "name": "IndexBoundWitnessDiviner",
42
+ "schema": "network.xyo.diviner.boundwitness.config"
43
+ }
44
+ },
45
+ {
46
+ "config": {
47
+ "archivist": "IndexArchivist",
48
+ "name": "IndexPayloadDiviner",
49
+ "schema": "network.xyo.diviner.payload.config"
50
+ }
51
+ },
52
+ {
53
+ "config": {
54
+ "filter": {
55
+ "payload_schemas": ["network.xyo.evm.nft.id"]
56
+ },
57
+ "labels": {
58
+ "network.xyo.diviner.stage": "stateToIndexCandidateDiviner"
59
+ },
60
+ "name": "StateToIndexCandidateDiviner",
61
+ "payloadStore": {
62
+ "archivist": "Archivist",
63
+ "boundWitnessDiviner": "BoundWitnessDiviner",
64
+ "payloadDiviner": "PayloadDiviner"
65
+ },
66
+ "schema": "network.xyo.diviner.indexing.temporal.stage.stateToIndexCandidateDiviner.config"
67
+ }
68
+ },
69
+ {
70
+ "config": {
71
+ "labels": {
72
+ "network.xyo.diviner.stage": "indexCandidateToIndexDiviner"
73
+ },
74
+ "name": "IndexCandidateToIndexDiviner",
75
+ "schema": "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config",
76
+ "schemaTransforms": {
77
+ "network.xyo.evm.nft.id": [
78
+ {
79
+ "destinationField": "address",
80
+ "sourcePathExpression": "$.address"
81
+ },
82
+ {
83
+ "destinationField": "chainId",
84
+ "sourcePathExpression": "$.chainId"
85
+ },
86
+ {
87
+ "destinationField": "tokenId",
88
+ "sourcePathExpression": "$.tokenId"
89
+ }
90
+ ],
91
+ "network.xyo.timestamp": [
92
+ {
93
+ "destinationField": "timestamp",
94
+ "sourcePathExpression": "$.timestamp"
95
+ }
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "config": {
102
+ "divinerQuerySchema": "network.xyo.diviner.payload.query",
103
+ "indexQuerySchema": "network.xyo.diviner.payload.query",
104
+ "indexSchema": "network.xyo.diviner.indexing.temporal.result.index",
105
+ "labels": {
106
+ "network.xyo.diviner.stage": "divinerQueryToIndexQueryDiviner"
107
+ },
108
+ "name": "QueryToIndexQueryDiviner",
109
+ "schema": "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config",
110
+ "schemaTransforms": {
111
+ "network.xyo.diviner.payload.query": [
112
+ {
113
+ "destinationField": "address",
114
+ "sourcePathExpression": "$.address"
115
+ },
116
+ {
117
+ "defaultValue": 1,
118
+ "destinationField": "chainId",
119
+ "sourcePathExpression": "$.chainId"
120
+ },
121
+ {
122
+ "defaultValue": 1,
123
+ "destinationField": "tokenId",
124
+ "sourcePathExpression": "$.tokenId"
125
+ },
126
+ {
127
+ "defaultValue": 1,
128
+ "destinationField": "limit",
129
+ "sourcePathExpression": "$.limit"
130
+ },
131
+ {
132
+ "defaultValue": 0,
133
+ "destinationField": "offset",
134
+ "sourcePathExpression": "$.offset"
135
+ },
136
+ {
137
+ "defaultValue": "desc",
138
+ "destinationField": "order",
139
+ "sourcePathExpression": "$.order"
140
+ }
141
+ ]
142
+ }
143
+ }
144
+ },
145
+ {
146
+ "config": {
147
+ "labels": {
148
+ "network.xyo.diviner.stage": "indexQueryResponseToDivinerQueryResponseDiviner"
149
+ },
150
+ "name": "IndexQueryResponseToQueryResponseDiviner",
151
+ "schema": "network.xyo.diviner.indexing.temporal.stage.indexQueryResponseToDivinerQueryResponseDiviner.config"
152
+ }
153
+ },
154
+ {
155
+ "config": {
156
+ "name": "TimestampWitness",
157
+ "schema": "network.xyo.witness.timestamp.config"
158
+ }
159
+ },
160
+ {
161
+ "config": {
162
+ "name": "RangeDiviner",
163
+ "schema": "network.xyo.diviner.range.config"
164
+ }
165
+ },
166
+ {
167
+ "config": {
168
+ "name": "InputBufferingDiviner",
169
+ "operations": [
170
+ {
171
+ "op": "test",
172
+ "path": "/schema",
173
+ "value": "network.xyo.evm.call"
174
+ },
175
+ {
176
+ "op": "test",
177
+ "path": "/functionName",
178
+ "value": "tokenByIndex"
179
+ },
180
+ {
181
+ "op": "defined",
182
+ "path": "/address"
183
+ }
184
+ ],
185
+ "schema": "network.xyo.diviner.jsonpatch.config"
186
+ }
187
+ },
188
+ {
189
+ "config": {
190
+ "destinationSchema": "network.xyo.evm.nft.id",
191
+ "name": "NftIdPartialToNftIdTransformDiviner",
192
+ "schemaTransforms": {
193
+ "network.xyo.evm.call.result": [
194
+ {
195
+ "destinationField": "address",
196
+ "sourcePathExpression": "$.address"
197
+ },
198
+ {
199
+ "destinationField": "chainId",
200
+ "sourcePathExpression": "$.chainId"
201
+ },
202
+ {
203
+ "destinationField": "tokenId",
204
+ "sourcePathExpression": "$.result"
205
+ }
206
+ ]
207
+ },
208
+ "schema": "network.xyo.diviner.jsonpath.aggregate.config"
209
+ }
210
+ },
211
+ {
212
+ "config": {
213
+ "name": "InputBufferingSentinel",
214
+ "schema": "network.xyo.sentinel.config",
215
+ "synchronous": "true",
216
+ "tasks": [
217
+ {
218
+ "input": true,
219
+ "module": "InputBufferingDiviner"
220
+ }
221
+ ]
222
+ }
223
+ },
224
+ {
225
+ "config": {
226
+ "functionName": "tokenByIndex",
227
+ "labels": {
228
+ "network.xyo.evm.interface": "Erc721Enumerable"
229
+ },
230
+ "language": "javascript",
231
+ "name": "Erc721TokenByIndexWitness",
232
+ "schema": "network.xyo.evm.call.witness.config"
233
+ }
234
+ },
235
+ {
236
+ "config": {
237
+ "archiving": {
238
+ "archivists": ["Archivist"]
239
+ },
240
+ "name": "TokenIndexToTokenIdSentinel",
241
+ "schema": "network.xyo.sentinel.config",
242
+ "synchronous": "true",
243
+ "tasks": [
244
+ {
245
+ "input": true,
246
+ "module": "Erc721TokenByIndexWitness"
247
+ }
248
+ ]
249
+ }
250
+ }
251
+ ],
252
+ "public": [
253
+ {
254
+ "config": {
255
+ "name": "Archivist",
256
+ "schema": "network.xyo.archivist.config",
257
+ "storeQueries": false
258
+ }
259
+ },
260
+ {
261
+ "config": {
262
+ "archivist": "Archivist",
263
+ "name": "BoundWitnessDiviner",
264
+ "schema": "network.xyo.diviner.boundwitness.config"
265
+ }
266
+ },
267
+ {
268
+ "config": {
269
+ "archivist": "Archivist",
270
+ "name": "PayloadDiviner",
271
+ "schema": "network.xyo.diviner.payload.config"
272
+ }
273
+ },
274
+ {
275
+ "config": {
276
+ "indexStore": {
277
+ "archivist": "IndexArchivist",
278
+ "boundWitnessDiviner": "IndexBoundWitnessDiviner",
279
+ "payloadDiviner": "IndexPayloadDiviner"
280
+ },
281
+ "indexingDivinerStages": {
282
+ "divinerQueryToIndexQueryDiviner": "QueryToIndexQueryDiviner",
283
+ "indexCandidateToIndexDiviner": "IndexCandidateToIndexDiviner",
284
+ "indexQueryResponseToDivinerQueryResponseDiviner": "IndexQueryResponseToQueryResponseDiviner",
285
+ "stateToIndexCandidateDiviner": "StateToIndexCandidateDiviner"
286
+ },
287
+ "name": "IndexDiviner",
288
+ "pollFrequency": 1,
289
+ "schema": "network.xyo.diviner.indexing.temporal.config",
290
+ "stateStore": {
291
+ "archivist": "AddressStateArchivist",
292
+ "boundWitnessDiviner": "AddressStateBoundWitnessDiviner",
293
+ "payloadDiviner": "AddressStatePayloadDiviner"
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "config": {
299
+ "archiving": {
300
+ "archivists": ["Archivist"]
301
+ },
302
+ "name": "Sentinel",
303
+ "schema": "network.xyo.sentinel.config",
304
+ "synchronous": "true",
305
+ "tasks": [
306
+ {
307
+ "input": true,
308
+ "module": "Erc721TokenByIndexWitness"
309
+ },
310
+ {
311
+ "input": ["Erc721TokenByIndexWitness"],
312
+ "module": "NftIdPartialToNftIdTransformDiviner"
313
+ },
314
+ {
315
+ "input": ["Erc721TokenByIndexWitness"],
316
+ "module": "TimestampWitness"
317
+ }
318
+ ]
319
+ }
320
+ }
321
+ ]
322
+ }
323
+ }
324
+ ],
325
+ "schema": "network.xyo.manifest"
326
+ }