@xyo-network/crypto-contract-function-read-plugin 2.85.0 → 2.85.1

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 (63) hide show
  1. package/dist/browser/Diviner/Diviner.d.cts +2 -0
  2. package/dist/browser/Diviner/Diviner.d.cts.map +1 -1
  3. package/dist/browser/Diviner/Diviner.d.mts +2 -0
  4. package/dist/browser/Diviner/Diviner.d.mts.map +1 -1
  5. package/dist/browser/Diviner/Diviner.d.ts +2 -0
  6. package/dist/browser/Diviner/Diviner.d.ts.map +1 -1
  7. package/dist/browser/Plugin.d.cts +1 -2
  8. package/dist/browser/Plugin.d.cts.map +1 -1
  9. package/dist/browser/Plugin.d.mts +1 -2
  10. package/dist/browser/Plugin.d.mts.map +1 -1
  11. package/dist/browser/Plugin.d.ts +1 -2
  12. package/dist/browser/Plugin.d.ts.map +1 -1
  13. package/dist/browser/Witness.d.cts +2 -0
  14. package/dist/browser/Witness.d.cts.map +1 -1
  15. package/dist/browser/Witness.d.mts +2 -0
  16. package/dist/browser/Witness.d.mts.map +1 -1
  17. package/dist/browser/Witness.d.ts +2 -0
  18. package/dist/browser/Witness.d.ts.map +1 -1
  19. package/dist/browser/index.cjs +70 -72
  20. package/dist/browser/index.cjs.map +1 -1
  21. package/dist/browser/index.d.cts +1 -3
  22. package/dist/browser/index.d.cts.map +1 -1
  23. package/dist/browser/index.d.mts +1 -3
  24. package/dist/browser/index.d.mts.map +1 -1
  25. package/dist/browser/index.d.ts +1 -3
  26. package/dist/browser/index.d.ts.map +1 -1
  27. package/dist/browser/index.js +73 -75
  28. package/dist/browser/index.js.map +1 -1
  29. package/dist/node/Diviner/Diviner.d.cts +2 -0
  30. package/dist/node/Diviner/Diviner.d.cts.map +1 -1
  31. package/dist/node/Diviner/Diviner.d.mts +2 -0
  32. package/dist/node/Diviner/Diviner.d.mts.map +1 -1
  33. package/dist/node/Diviner/Diviner.d.ts +2 -0
  34. package/dist/node/Diviner/Diviner.d.ts.map +1 -1
  35. package/dist/node/Plugin.d.cts +1 -2
  36. package/dist/node/Plugin.d.cts.map +1 -1
  37. package/dist/node/Plugin.d.mts +1 -2
  38. package/dist/node/Plugin.d.mts.map +1 -1
  39. package/dist/node/Plugin.d.ts +1 -2
  40. package/dist/node/Plugin.d.ts.map +1 -1
  41. package/dist/node/Witness.d.cts +2 -0
  42. package/dist/node/Witness.d.cts.map +1 -1
  43. package/dist/node/Witness.d.mts +2 -0
  44. package/dist/node/Witness.d.mts.map +1 -1
  45. package/dist/node/Witness.d.ts +2 -0
  46. package/dist/node/Witness.d.ts.map +1 -1
  47. package/dist/node/index.cjs +73 -75
  48. package/dist/node/index.cjs.map +1 -1
  49. package/dist/node/index.d.cts +1 -3
  50. package/dist/node/index.d.cts.map +1 -1
  51. package/dist/node/index.d.mts +1 -3
  52. package/dist/node/index.d.mts.map +1 -1
  53. package/dist/node/index.d.ts +1 -3
  54. package/dist/node/index.d.ts.map +1 -1
  55. package/dist/node/index.js +76 -78
  56. package/dist/node/index.js.map +1 -1
  57. package/package.json +30 -30
  58. package/src/Diviner/Diviner.ts +6 -1
  59. package/src/Plugin.ts +2 -0
  60. package/src/Witness.ts +2 -0
  61. package/src/index.ts +1 -7
  62. package/src/spec/NftIndexToNftIdIndex/Erc721.NftId.Index.json +314 -0
  63. package/src/spec/TotalSupplyToNftIndexIndex/Erc721.NftIndex.Index.json +118 -28
@@ -53,7 +53,7 @@
53
53
  "config": {
54
54
  "filter": {
55
55
  "payload_schemas": [
56
- "network.xyo.crypto.contract.function.call.result"
56
+ "network.xyo.evm.nft.index"
57
57
  ]
58
58
  },
59
59
  "labels": {
@@ -76,7 +76,7 @@
76
76
  "name": "IndexCandidateToIndexDiviner",
77
77
  "schema": "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config",
78
78
  "schemaTransforms": {
79
- "network.xyo.crypto.contract.function.call.result": [
79
+ "network.xyo.evm.nft.index": [
80
80
  {
81
81
  "destinationField": "address",
82
82
  "sourcePathExpression": "$.address"
@@ -84,6 +84,10 @@
84
84
  {
85
85
  "destinationField": "chainId",
86
86
  "sourcePathExpression": "$.chainId"
87
+ },
88
+ {
89
+ "destinationField": "index",
90
+ "sourcePathExpression": "$.index"
87
91
  }
88
92
  ],
89
93
  "network.xyo.timestamp": [
@@ -146,21 +150,40 @@
146
150
  },
147
151
  {
148
152
  "config": {
149
- "language": "javascript",
150
153
  "name": "TimestampWitness",
151
154
  "schema": "network.xyo.witness.timestamp.config"
152
155
  }
153
156
  },
154
157
  {
155
158
  "config": {
156
- "language": "javascript",
157
159
  "name": "RangeDiviner",
158
160
  "schema": "network.xyo.diviner.range.config"
159
161
  }
160
162
  },
161
163
  {
162
164
  "config": {
163
- "language": "javascript",
165
+ "name": "InputBufferingDiviner",
166
+ "operations": [
167
+ {
168
+ "op": "test",
169
+ "path": "/schema",
170
+ "value": "network.xyo.crypto.contract.function.call.result"
171
+ },
172
+ {
173
+ "op": "test",
174
+ "path": "/functionName",
175
+ "value": "totalSupply"
176
+ },
177
+ {
178
+ "op": "defined",
179
+ "path": "/result"
180
+ }
181
+ ],
182
+ "schema": "network.xyo.diviner.jsonpatch.config"
183
+ }
184
+ },
185
+ {
186
+ "config": {
164
187
  "name": "TotalSupplyToRangeQueryTransformDiviner",
165
188
  "operations": [
166
189
  {
@@ -173,13 +196,24 @@
173
196
  "path": "/functionName",
174
197
  "value": "totalSupply"
175
198
  },
176
- { "op": "defined", "path": "/result" },
177
- { "op": "add", "path": "/start", "value": 0 },
178
- { "from": "/result", "op": "move", "path": "/count" },
199
+ {
200
+ "op": "defined",
201
+ "path": "/result"
202
+ },
203
+ {
204
+ "op": "add",
205
+ "path": "/start",
206
+ "value": 0
207
+ },
208
+ {
209
+ "from": "/result",
210
+ "op": "move",
211
+ "path": "/count"
212
+ },
179
213
  {
180
214
  "op": "replace",
181
215
  "path": "/schema",
182
- "value": "network.xyo.range.query"
216
+ "value": "network.xyo.range"
183
217
  }
184
218
  ],
185
219
  "schema": "network.xyo.diviner.jsonpatch.config"
@@ -187,7 +221,6 @@
187
221
  },
188
222
  {
189
223
  "config": {
190
- "language": "javascript",
191
224
  "name": "RangeToNftIndexTransformDiviner",
192
225
  "operations": [
193
226
  {
@@ -195,8 +228,15 @@
195
228
  "path": "/schema",
196
229
  "value": "network.xyo.number"
197
230
  },
198
- { "op": "defined", "path": "/value" },
199
- { "from": "/value", "op": "move", "path": "/index" },
231
+ {
232
+ "op": "defined",
233
+ "path": "/value"
234
+ },
235
+ {
236
+ "from": "/value",
237
+ "op": "move",
238
+ "path": "/index"
239
+ },
200
240
  {
201
241
  "op": "replace",
202
242
  "path": "/schema",
@@ -209,8 +249,7 @@
209
249
  {
210
250
  "config": {
211
251
  "destinationSchema": "network.xyo.evm.nft.index",
212
- "language": "javascript",
213
- "name": "NftIndexToNftIndexTransformDiviner",
252
+ "name": "NftIndexPartialToNftIndexTransformDiviner",
214
253
  "schemaTransforms": {
215
254
  "network.xyo.evm.nft.index": [
216
255
  {
@@ -221,16 +260,63 @@
221
260
  "destinationField": "schema",
222
261
  "sourcePathExpression": "$.schema"
223
262
  }
263
+ ],
264
+ "network.xyo.crypto.contract.function.call.result": [
265
+ {
266
+ "destinationField": "address",
267
+ "sourcePathExpression": "$.address"
268
+ },
269
+ {
270
+ "destinationField": "chainId",
271
+ "sourcePathExpression": "$.chainId"
272
+ }
224
273
  ]
225
274
  },
226
275
  "schema": "network.xyo.diviner.jsonpath.aggregate.config"
227
276
  }
277
+ },
278
+ {
279
+ "config": {
280
+ "name": "InputBufferingSentinel",
281
+ "schema": "network.xyo.sentinel.config",
282
+ "synchronous": "true",
283
+ "tasks": [
284
+ {
285
+ "input": true,
286
+ "module": "InputBufferingDiviner"
287
+ }
288
+ ]
289
+ }
290
+ },
291
+ {
292
+ "config": {
293
+ "name": "TotalSupplyToSlugsSentinel",
294
+ "schema": "network.xyo.sentinel.config",
295
+ "synchronous": "true",
296
+ "tasks": [
297
+ {
298
+ "input": true,
299
+ "module": "TotalSupplyToRangeQueryTransformDiviner"
300
+ },
301
+ {
302
+ "input": [
303
+ "TotalSupplyToRangeQueryTransformDiviner"
304
+ ],
305
+ "module": "RangeDiviner"
306
+ },
307
+ {
308
+ "input": [
309
+ "RangeDiviner"
310
+ ],
311
+ "module": "RangeToNftIndexTransformDiviner"
312
+ }
313
+ ]
314
+ }
228
315
  }
229
316
  ],
230
317
  "public": [
231
318
  {
232
319
  "config": {
233
- "language": "javascript",
234
320
  "name": "Archivist",
235
321
  "schema": "network.xyo.archivist.config",
236
322
  "storeQueries": false
@@ -239,7 +325,6 @@
239
325
  {
240
326
  "config": {
241
327
  "archivist": "Archivist",
242
- "language": "javascript",
243
328
  "name": "BoundWitnessDiviner",
244
329
  "schema": "network.xyo.diviner.boundwitness.config"
245
330
  }
@@ -247,7 +332,6 @@
247
332
  {
248
333
  "config": {
249
334
  "archivist": "Archivist",
250
- "language": "javascript",
251
335
  "name": "PayloadDiviner",
252
336
  "schema": "network.xyo.diviner.payload.config"
253
337
  }
@@ -265,7 +349,6 @@
265
349
  "indexQueryResponseToDivinerQueryResponseDiviner": "IndexQueryResponseToQueryResponseDiviner",
266
350
  "stateToIndexCandidateDiviner": "StateToIndexCandidateDiviner"
267
351
  },
268
- "language": "javascript",
269
352
  "name": "IndexDiviner",
270
353
  "pollFrequency": 1,
271
354
  "schema": "network.xyo.diviner.indexing.temporal.config",
@@ -279,28 +362,35 @@
279
362
  {
280
363
  "config": {
281
364
  "archiving": {
282
- "archivists": ["Archivist"]
365
+ "archivists": [
366
+ "Archivist"
367
+ ]
283
368
  },
284
- "language": "javascript",
285
369
  "name": "Sentinel",
286
370
  "schema": "network.xyo.sentinel.config",
287
371
  "synchronous": "true",
288
372
  "tasks": [
289
373
  {
290
374
  "input": true,
291
- "module": "TotalSupplyToRangeQueryTransformDiviner"
375
+ "module": "InputBufferingSentinel"
292
376
  },
293
377
  {
294
- "input": ["TotalSupplyToRangeQueryTransformDiviner"],
295
- "module": "RangeDiviner"
378
+ "input": true,
379
+ "module": "TotalSupplyToSlugsSentinel"
296
380
  },
297
381
  {
298
- "input": ["RangeDiviner"],
299
- "module": "RangeToNftIndexTransformDiviner"
382
+ "input": [
383
+ "InputBufferingSentinel",
384
+ "TotalSupplyToSlugsSentinel"
385
+ ],
386
+ "module": "NftIndexPartialToNftIndexTransformDiviner"
300
387
  },
301
388
  {
302
- "input": ["RangeToNftIndexTransformDiviner"],
303
- "module": "NftIndexToNftIndexTransformDiviner"
389
+ "input": [
390
+ "InputBufferingSentinel",
391
+ "TotalSupplyToSlugsSentinel"
392
+ ],
393
+ "module": "TimestampWitness"
304
394
  }
305
395
  ]
306
396
  }
@@ -310,4 +400,4 @@
310
400
  }
311
401
  ],
312
402
  "schema": "network.xyo.manifest"
313
- }
403
+ }