@xyo-network/node 2.34.0 → 2.35.0

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
@@ -11,12 +11,12 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/assert": "^2.6.7",
14
- "@xyo-network/account": "^2.34.0",
15
- "@xyo-network/archivist": "^2.34.0",
16
- "@xyo-network/boundwitness": "^2.34.0",
17
- "@xyo-network/module": "^2.34.0",
18
- "@xyo-network/payload": "^2.34.0",
19
- "@xyo-network/promise": "^2.34.0",
14
+ "@xyo-network/account": "^2.35.0",
15
+ "@xyo-network/archivist": "^2.35.0",
16
+ "@xyo-network/boundwitness": "^2.35.0",
17
+ "@xyo-network/module": "^2.35.0",
18
+ "@xyo-network/payload": "^2.35.0",
19
+ "@xyo-network/promise": "^2.35.0",
20
20
  "lodash": "^4.17.21",
21
21
  "tslib": "^2.4.0"
22
22
  },
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "sideEffects": false,
55
55
  "types": "dist/esm/index.d.ts",
56
- "version": "2.34.0"
56
+ "version": "2.35.0"
57
57
  }
@@ -33,9 +33,9 @@ test('Create Node', async () => {
33
33
  .fields({ test: true })
34
34
  .build()
35
35
 
36
- const insertQuery: XyoArchivistInsertQuery = { payloads: [testPayload], schema: XyoArchivistInsertQuerySchema }
36
+ const insertQuery: XyoArchivistInsertQuery = { payloads: [PayloadWrapper.hash(testPayload)], schema: XyoArchivistInsertQuerySchema }
37
37
  const insertQueryBoundwitness = new BoundWitnessBuilder().payload(insertQuery).witness(new XyoAccount()).build()
38
- await foundArchivist?.query(insertQueryBoundwitness, insertQuery)
38
+ await foundArchivist?.query(insertQueryBoundwitness, insertQuery, [testPayload])
39
39
 
40
40
  /*const subscribeQuery: XyoModuleSubscribeQuery = { payloads: [testPayload], schema: XyoModuleSubscribeQuerySchema }
41
41
  await foundArchivist?.query(subscribeQuery)*/
@@ -47,7 +47,7 @@ test('Create Node', async () => {
47
47
 
48
48
  if (payloads && payloads[0]) {
49
49
  const huri = new PayloadWrapper(payloads[0]).hash
50
- const huriPayload: XyoHuriPayload = { huri, schema: XyoHuriSchema }
50
+ const huriPayload: XyoHuriPayload = { huri: [huri], schema: XyoHuriSchema }
51
51
  const divineQuery: XyoDivinerDivineQuery = { payloads: [huriPayload], schema: XyoDivinerDivineQuerySchema }
52
52
  const divineQueryBoundwitness = new BoundWitnessBuilder().payload(divineQuery).witness(new XyoAccount()).build()
53
53
  const divinerModule = node.resolve(diviner.address) as DivinerModule