@xyo-network/crypto-contract-function-read-plugin 2.84.1 → 2.84.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/package.json CHANGED
@@ -12,35 +12,36 @@
12
12
  "dependencies": {
13
13
  "@xylabs/assert": "^2.13.20",
14
14
  "@xylabs/promise": "^2.13.20",
15
- "@xyo-network/abstract-diviner": "^2.84.3",
16
- "@xyo-network/abstract-witness": "^2.84.3",
17
- "@xyo-network/crypto-contract-function-read-payload-plugin": "~2.84.1",
18
- "@xyo-network/crypto-nft-payload-plugin": "~2.84.1",
19
- "@xyo-network/module-model": "^2.84.3",
20
- "@xyo-network/payload-model": "^2.84.3",
21
- "@xyo-network/payloadset-plugin": "^2.84.3",
22
- "@xyo-network/witness-model": "^2.84.3",
15
+ "@xyo-network/abstract-diviner": "^2.84.8",
16
+ "@xyo-network/abstract-witness": "^2.84.8",
17
+ "@xyo-network/crypto-contract-function-read-payload-plugin": "~2.84.3",
18
+ "@xyo-network/crypto-nft-payload-plugin": "~2.84.3",
19
+ "@xyo-network/module-model": "^2.84.8",
20
+ "@xyo-network/payload-model": "^2.84.8",
21
+ "@xyo-network/payloadset-plugin": "^2.84.8",
22
+ "@xyo-network/witness-model": "^2.84.8",
23
23
  "ethers": "^6.9.0"
24
24
  },
25
25
  "devDependencies": {
26
+ "@xylabs/delay": "^2.13.20",
26
27
  "@xylabs/hex": "^2.13.20",
27
28
  "@xylabs/jest-helpers": "^2.13.20",
28
- "@xylabs/ts-scripts-yarn3": "^3.2.19",
29
- "@xylabs/tsconfig": "^3.2.19",
30
- "@xyo-network/account": "^2.84.3",
31
- "@xyo-network/diviner-boundwitness-memory": "^2.84.3",
32
- "@xyo-network/diviner-jsonpatch": "^2.84.3",
33
- "@xyo-network/diviner-model": "^2.84.3",
34
- "@xyo-network/diviner-payload-memory": "^2.84.3",
35
- "@xyo-network/diviner-payload-model": "^2.84.3",
36
- "@xyo-network/diviner-temporal-indexing": "^2.84.3",
37
- "@xyo-network/manifest": "^2.84.3",
38
- "@xyo-network/memory-archivist": "^2.84.3",
39
- "@xyo-network/node-memory": "^2.84.3",
29
+ "@xylabs/ts-scripts-yarn3": "^3.2.24",
30
+ "@xylabs/tsconfig": "^3.2.24",
31
+ "@xyo-network/account": "^2.84.8",
32
+ "@xyo-network/diviner-boundwitness-memory": "^2.84.8",
33
+ "@xyo-network/diviner-jsonpatch": "^2.84.8",
34
+ "@xyo-network/diviner-model": "^2.84.8",
35
+ "@xyo-network/diviner-payload-memory": "^2.84.8",
36
+ "@xyo-network/diviner-payload-model": "^2.84.8",
37
+ "@xyo-network/diviner-temporal-indexing": "^2.84.8",
38
+ "@xyo-network/manifest": "^2.84.8",
39
+ "@xyo-network/memory-archivist": "^2.84.8",
40
+ "@xyo-network/node-memory": "^2.84.8",
40
41
  "@xyo-network/open-zeppelin-typechain": "^3.0.5",
41
- "@xyo-network/sentinel-model": "^2.84.3",
42
- "@xyo-network/witness-blockchain-abstract": "^2.84.3",
43
- "@xyo-network/witness-timestamp": "^2.84.3",
42
+ "@xyo-network/sentinel-model": "^2.84.8",
43
+ "@xyo-network/witness-blockchain-abstract": "^2.84.8",
44
+ "@xyo-network/witness-timestamp": "^2.84.8",
44
45
  "async-mutex": "^0.4.0",
45
46
  "jest": "^29.7.0",
46
47
  "typescript": "^5.3.3"
@@ -84,6 +85,6 @@
84
85
  "url": "https://github.com/XYOracleNetwork/plugins.git"
85
86
  },
86
87
  "sideEffects": false,
87
- "version": "2.84.1",
88
+ "version": "2.84.3",
88
89
  "type": "module"
89
90
  }
@@ -0,0 +1,240 @@
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": [
56
+ "network.xyo.crypto.contract.function.call.result"
57
+ ]
58
+ },
59
+ "labels": {
60
+ "network.xyo.diviner.stage": "stateToIndexCandidateDiviner"
61
+ },
62
+ "name": "StateToIndexCandidateDiviner",
63
+ "payloadStore": {
64
+ "archivist": "Archivist",
65
+ "boundWitnessDiviner": "BoundWitnessDiviner",
66
+ "payloadDiviner": "PayloadDiviner"
67
+ },
68
+ "schema": "network.xyo.diviner.indexing.temporal.stage.stateToIndexCandidateDiviner.config"
69
+ }
70
+ },
71
+ {
72
+ "config": {
73
+ "labels": {
74
+ "network.xyo.diviner.stage": "indexCandidateToIndexDiviner"
75
+ },
76
+ "name": "IndexCandidateToIndexDiviner",
77
+ "schema": "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config",
78
+ "schemaTransforms": {
79
+ "network.xyo.crypto.contract.function.call.result": [
80
+ {
81
+ "destinationField": "address",
82
+ "sourcePathExpression": "$.address"
83
+ },
84
+ {
85
+ "destinationField": "chainId",
86
+ "sourcePathExpression": "$.chainId"
87
+ }
88
+ ],
89
+ "network.xyo.timestamp": [
90
+ {
91
+ "destinationField": "timestamp",
92
+ "sourcePathExpression": "$.timestamp"
93
+ }
94
+ ]
95
+ }
96
+ }
97
+ },
98
+ {
99
+ "config": {
100
+ "divinerQuerySchema": "network.xyo.diviner.payload.query",
101
+ "indexQuerySchema": "network.xyo.diviner.payload.query",
102
+ "indexSchema": "network.xyo.diviner.indexing.temporal.result.index",
103
+ "labels": {
104
+ "network.xyo.diviner.stage": "divinerQueryToIndexQueryDiviner"
105
+ },
106
+ "name": "QueryToIndexQueryDiviner",
107
+ "schema": "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config",
108
+ "schemaTransforms": {
109
+ "network.xyo.diviner.payload.query": [
110
+ {
111
+ "destinationField": "address",
112
+ "sourcePathExpression": "$.address"
113
+ },
114
+ {
115
+ "defaultValue": 1,
116
+ "destinationField": "chainId",
117
+ "sourcePathExpression": "$.chainId"
118
+ },
119
+ {
120
+ "defaultValue": 1,
121
+ "destinationField": "limit",
122
+ "sourcePathExpression": "$.limit"
123
+ },
124
+ {
125
+ "defaultValue": 0,
126
+ "destinationField": "offset",
127
+ "sourcePathExpression": "$.offset"
128
+ },
129
+ {
130
+ "defaultValue": "desc",
131
+ "destinationField": "order",
132
+ "sourcePathExpression": "$.order"
133
+ }
134
+ ]
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "config": {
140
+ "labels": {
141
+ "network.xyo.diviner.stage": "indexQueryResponseToDivinerQueryResponseDiviner"
142
+ },
143
+ "name": "IndexQueryResponseToQueryResponseDiviner",
144
+ "schema": "network.xyo.diviner.indexing.temporal.stage.indexQueryResponseToDivinerQueryResponseDiviner.config"
145
+ }
146
+ },
147
+ {
148
+ "config": {
149
+ "language": "javascript",
150
+ "name": "TimestampWitness",
151
+ "schema": "network.xyo.witness.timestamp.config"
152
+ }
153
+ },
154
+ {
155
+ "config": {
156
+ "functionName": "totalSupply",
157
+ "labels": {
158
+ "network.xyo.crypto.contract.interface": "Erc721Enumerable"
159
+ },
160
+ "name": "Erc721TotalSupplyWitness",
161
+ "schema": "network.xyo.crypto.contract.function.read.config"
162
+ }
163
+ }
164
+ ],
165
+ "public": [
166
+ {
167
+ "config": {
168
+ "language": "javascript",
169
+ "name": "Archivist",
170
+ "schema": "network.xyo.archivist.config",
171
+ "storeQueries": false
172
+ }
173
+ },
174
+ {
175
+ "config": {
176
+ "archivist": "Archivist",
177
+ "language": "javascript",
178
+ "name": "BoundWitnessDiviner",
179
+ "schema": "network.xyo.diviner.boundwitness.config"
180
+ }
181
+ },
182
+ {
183
+ "config": {
184
+ "archivist": "Archivist",
185
+ "language": "javascript",
186
+ "name": "PayloadDiviner",
187
+ "schema": "network.xyo.diviner.payload.config"
188
+ }
189
+ },
190
+ {
191
+ "config": {
192
+ "indexStore": {
193
+ "archivist": "IndexArchivist",
194
+ "boundWitnessDiviner": "IndexBoundWitnessDiviner",
195
+ "payloadDiviner": "IndexPayloadDiviner"
196
+ },
197
+ "indexingDivinerStages": {
198
+ "divinerQueryToIndexQueryDiviner": "QueryToIndexQueryDiviner",
199
+ "indexCandidateToIndexDiviner": "IndexCandidateToIndexDiviner",
200
+ "indexQueryResponseToDivinerQueryResponseDiviner": "IndexQueryResponseToQueryResponseDiviner",
201
+ "stateToIndexCandidateDiviner": "StateToIndexCandidateDiviner"
202
+ },
203
+ "language": "javascript",
204
+ "name": "IndexDiviner",
205
+ "pollFrequency": 1,
206
+ "schema": "network.xyo.diviner.indexing.temporal.config",
207
+ "stateStore": {
208
+ "archivist": "AddressStateArchivist",
209
+ "boundWitnessDiviner": "AddressStateBoundWitnessDiviner",
210
+ "payloadDiviner": "AddressStatePayloadDiviner"
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "config": {
216
+ "archiving": {
217
+ "archivists": ["Archivist"]
218
+ },
219
+ "language": "javascript",
220
+ "name": "Sentinel",
221
+ "schema": "network.xyo.sentinel.config",
222
+ "synchronous": "true",
223
+ "tasks": [
224
+ {
225
+ "input": true,
226
+ "module": "TimestampWitness"
227
+ },
228
+ {
229
+ "input": true,
230
+ "module": "Erc721TotalSupplyWitness"
231
+ }
232
+ ]
233
+ }
234
+ }
235
+ ]
236
+ }
237
+ }
238
+ ],
239
+ "schema": "network.xyo.manifest"
240
+ }
@@ -0,0 +1,313 @@
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": [
56
+ "network.xyo.crypto.contract.function.call.result"
57
+ ]
58
+ },
59
+ "labels": {
60
+ "network.xyo.diviner.stage": "stateToIndexCandidateDiviner"
61
+ },
62
+ "name": "StateToIndexCandidateDiviner",
63
+ "payloadStore": {
64
+ "archivist": "Archivist",
65
+ "boundWitnessDiviner": "BoundWitnessDiviner",
66
+ "payloadDiviner": "PayloadDiviner"
67
+ },
68
+ "schema": "network.xyo.diviner.indexing.temporal.stage.stateToIndexCandidateDiviner.config"
69
+ }
70
+ },
71
+ {
72
+ "config": {
73
+ "labels": {
74
+ "network.xyo.diviner.stage": "indexCandidateToIndexDiviner"
75
+ },
76
+ "name": "IndexCandidateToIndexDiviner",
77
+ "schema": "network.xyo.diviner.indexing.temporal.stage.indexCandidateToIndexDiviner.config",
78
+ "schemaTransforms": {
79
+ "network.xyo.crypto.contract.function.call.result": [
80
+ {
81
+ "destinationField": "address",
82
+ "sourcePathExpression": "$.address"
83
+ },
84
+ {
85
+ "destinationField": "chainId",
86
+ "sourcePathExpression": "$.chainId"
87
+ }
88
+ ],
89
+ "network.xyo.timestamp": [
90
+ {
91
+ "destinationField": "timestamp",
92
+ "sourcePathExpression": "$.timestamp"
93
+ }
94
+ ]
95
+ }
96
+ }
97
+ },
98
+ {
99
+ "config": {
100
+ "divinerQuerySchema": "network.xyo.diviner.payload.query",
101
+ "indexQuerySchema": "network.xyo.diviner.payload.query",
102
+ "indexSchema": "network.xyo.diviner.indexing.temporal.result.index",
103
+ "labels": {
104
+ "network.xyo.diviner.stage": "divinerQueryToIndexQueryDiviner"
105
+ },
106
+ "name": "QueryToIndexQueryDiviner",
107
+ "schema": "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config",
108
+ "schemaTransforms": {
109
+ "network.xyo.diviner.payload.query": [
110
+ {
111
+ "destinationField": "address",
112
+ "sourcePathExpression": "$.address"
113
+ },
114
+ {
115
+ "defaultValue": 1,
116
+ "destinationField": "chainId",
117
+ "sourcePathExpression": "$.chainId"
118
+ },
119
+ {
120
+ "defaultValue": 1,
121
+ "destinationField": "limit",
122
+ "sourcePathExpression": "$.limit"
123
+ },
124
+ {
125
+ "defaultValue": 0,
126
+ "destinationField": "offset",
127
+ "sourcePathExpression": "$.offset"
128
+ },
129
+ {
130
+ "defaultValue": "desc",
131
+ "destinationField": "order",
132
+ "sourcePathExpression": "$.order"
133
+ }
134
+ ]
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "config": {
140
+ "labels": {
141
+ "network.xyo.diviner.stage": "indexQueryResponseToDivinerQueryResponseDiviner"
142
+ },
143
+ "name": "IndexQueryResponseToQueryResponseDiviner",
144
+ "schema": "network.xyo.diviner.indexing.temporal.stage.indexQueryResponseToDivinerQueryResponseDiviner.config"
145
+ }
146
+ },
147
+ {
148
+ "config": {
149
+ "language": "javascript",
150
+ "name": "TimestampWitness",
151
+ "schema": "network.xyo.witness.timestamp.config"
152
+ }
153
+ },
154
+ {
155
+ "config": {
156
+ "language": "javascript",
157
+ "name": "RangeDiviner",
158
+ "schema": "network.xyo.diviner.range.config"
159
+ }
160
+ },
161
+ {
162
+ "config": {
163
+ "language": "javascript",
164
+ "name": "TotalSupplyToRangeQueryTransformDiviner",
165
+ "operations": [
166
+ {
167
+ "op": "test",
168
+ "path": "/schema",
169
+ "value": "network.xyo.crypto.contract.function.call.result"
170
+ },
171
+ {
172
+ "op": "test",
173
+ "path": "/functionName",
174
+ "value": "totalSupply"
175
+ },
176
+ { "op": "defined", "path": "/result" },
177
+ { "op": "add", "path": "/start", "value": 0 },
178
+ { "from": "/result", "op": "move", "path": "/count" },
179
+ {
180
+ "op": "replace",
181
+ "path": "/schema",
182
+ "value": "network.xyo.range.query"
183
+ }
184
+ ],
185
+ "schema": "network.xyo.diviner.jsonpatch.config"
186
+ }
187
+ },
188
+ {
189
+ "config": {
190
+ "language": "javascript",
191
+ "name": "RangeToNftIndexTransformDiviner",
192
+ "operations": [
193
+ {
194
+ "op": "test",
195
+ "path": "/schema",
196
+ "value": "network.xyo.number"
197
+ },
198
+ { "op": "defined", "path": "/value" },
199
+ { "from": "/value", "op": "move", "path": "/index" },
200
+ {
201
+ "op": "replace",
202
+ "path": "/schema",
203
+ "value": "network.xyo.evm.nft.index"
204
+ }
205
+ ],
206
+ "schema": "network.xyo.diviner.jsonpatch.config"
207
+ }
208
+ },
209
+ {
210
+ "config": {
211
+ "destinationSchema": "network.xyo.evm.nft.index",
212
+ "language": "javascript",
213
+ "name": "NftIndexToNftIndexTransformDiviner",
214
+ "schemaTransforms": {
215
+ "network.xyo.evm.nft.index": [
216
+ {
217
+ "destinationField": "index",
218
+ "sourcePathExpression": "$.index"
219
+ },
220
+ {
221
+ "destinationField": "schema",
222
+ "sourcePathExpression": "$.schema"
223
+ }
224
+ ]
225
+ },
226
+ "schema": "network.xyo.diviner.jsonpath.aggregate.config"
227
+ }
228
+ }
229
+ ],
230
+ "public": [
231
+ {
232
+ "config": {
233
+ "language": "javascript",
234
+ "name": "Archivist",
235
+ "schema": "network.xyo.archivist.config",
236
+ "storeQueries": false
237
+ }
238
+ },
239
+ {
240
+ "config": {
241
+ "archivist": "Archivist",
242
+ "language": "javascript",
243
+ "name": "BoundWitnessDiviner",
244
+ "schema": "network.xyo.diviner.boundwitness.config"
245
+ }
246
+ },
247
+ {
248
+ "config": {
249
+ "archivist": "Archivist",
250
+ "language": "javascript",
251
+ "name": "PayloadDiviner",
252
+ "schema": "network.xyo.diviner.payload.config"
253
+ }
254
+ },
255
+ {
256
+ "config": {
257
+ "indexStore": {
258
+ "archivist": "IndexArchivist",
259
+ "boundWitnessDiviner": "IndexBoundWitnessDiviner",
260
+ "payloadDiviner": "IndexPayloadDiviner"
261
+ },
262
+ "indexingDivinerStages": {
263
+ "divinerQueryToIndexQueryDiviner": "QueryToIndexQueryDiviner",
264
+ "indexCandidateToIndexDiviner": "IndexCandidateToIndexDiviner",
265
+ "indexQueryResponseToDivinerQueryResponseDiviner": "IndexQueryResponseToQueryResponseDiviner",
266
+ "stateToIndexCandidateDiviner": "StateToIndexCandidateDiviner"
267
+ },
268
+ "language": "javascript",
269
+ "name": "IndexDiviner",
270
+ "pollFrequency": 1,
271
+ "schema": "network.xyo.diviner.indexing.temporal.config",
272
+ "stateStore": {
273
+ "archivist": "AddressStateArchivist",
274
+ "boundWitnessDiviner": "AddressStateBoundWitnessDiviner",
275
+ "payloadDiviner": "AddressStatePayloadDiviner"
276
+ }
277
+ }
278
+ },
279
+ {
280
+ "config": {
281
+ "archiving": {
282
+ "archivists": ["Archivist"]
283
+ },
284
+ "language": "javascript",
285
+ "name": "Sentinel",
286
+ "schema": "network.xyo.sentinel.config",
287
+ "synchronous": "true",
288
+ "tasks": [
289
+ {
290
+ "input": true,
291
+ "module": "TotalSupplyToRangeQueryTransformDiviner"
292
+ },
293
+ {
294
+ "input": ["TotalSupplyToRangeQueryTransformDiviner"],
295
+ "module": "RangeDiviner"
296
+ },
297
+ {
298
+ "input": ["RangeDiviner"],
299
+ "module": "RangeToNftIndexTransformDiviner"
300
+ },
301
+ {
302
+ "input": ["RangeToNftIndexTransformDiviner"],
303
+ "module": "NftIndexToNftIndexTransformDiviner"
304
+ }
305
+ ]
306
+ }
307
+ }
308
+ ]
309
+ }
310
+ }
311
+ ],
312
+ "schema": "network.xyo.manifest"
313
+ }