@xyo-network/witness 2.47.8 → 2.47.10

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,16 +11,16 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/assert": "^2.7.1",
14
- "@xyo-network/account": "^2.47.8",
15
- "@xyo-network/module": "^2.47.8",
16
- "@xyo-network/module-model": "^2.47.8",
17
- "@xyo-network/payload-model": "^2.47.8",
18
- "@xyo-network/payload-wrapper": "^2.47.8",
19
- "@xyo-network/promise": "^2.47.8"
14
+ "@xyo-network/account": "^2.47.10",
15
+ "@xyo-network/module": "^2.47.10",
16
+ "@xyo-network/module-model": "^2.47.10",
17
+ "@xyo-network/payload-model": "^2.47.10",
18
+ "@xyo-network/payload-wrapper": "^2.47.10",
19
+ "@xyo-network/promise": "^2.47.10"
20
20
  },
21
21
  "devDependencies": {
22
- "@xylabs/ts-scripts-yarn3": "^2.14.16",
23
- "@xylabs/tsconfig": "^2.14.16",
22
+ "@xylabs/ts-scripts-yarn3": "^2.15.0",
23
+ "@xylabs/tsconfig": "^2.15.0",
24
24
  "typescript": "^4.9.5"
25
25
  },
26
26
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -56,5 +56,5 @@
56
56
  },
57
57
  "sideEffects": false,
58
58
  "types": "dist/types/index.d.ts",
59
- "version": "2.47.8"
59
+ "version": "2.47.10"
60
60
  }
@@ -1,51 +0,0 @@
1
- import { AbstractModule, Module, ModuleParams } from '@xyo-network/module'
2
- import { XyoPayloadBuilder } from '@xyo-network/payload-builder'
3
-
4
- import { AbstractWitness } from '../AbstractWitness'
5
- import { XyoWitnessConfig, XyoWitnessConfigSchema } from '../Config'
6
- import { WitnessModule } from '../Witness'
7
- import { WitnessWrapper } from '../WitnessWrapper'
8
-
9
- describe('XyoWitness', () => {
10
- const config: XyoWitnessConfig = { schema: XyoWitnessConfigSchema }
11
- const params: ModuleParams<XyoWitnessConfig> = { config }
12
- const observed = new XyoPayloadBuilder({ schema: 'network.xyo.test' }).build()
13
-
14
- describe('fulfills type of', () => {
15
- it('Module', async () => {
16
- const witness: Module = await AbstractWitness.create(params)
17
- expect(witness).toBeObject()
18
- const wrapper = new WitnessWrapper(witness)
19
- expect(wrapper).toBeObject()
20
- })
21
- it('AbstractModule', async () => {
22
- const witness: AbstractModule = await AbstractWitness.create(params)
23
- expect(witness).toBeObject()
24
- const wrapper = new WitnessWrapper(witness)
25
- expect(wrapper).toBeObject()
26
- })
27
- it('WitnessModule', async () => {
28
- const witness: WitnessModule = await AbstractWitness.create(params)
29
- expect(witness).toBeObject()
30
- const wrapper = new WitnessWrapper(witness)
31
- expect(wrapper).toBeObject()
32
- })
33
- })
34
- describe('observe', () => {
35
- describe('with payload supplied to observe', () => {
36
- describe('returns payloads', () => {
37
- it('when module queried directly', async () => {
38
- const witness = await AbstractWitness.create(params)
39
- const observation = await witness.observe([observed])
40
- expect(observation).toBeArrayOfSize(1)
41
- })
42
- it('when module queried with XyoWitnessWrapper', async () => {
43
- const witness = await AbstractWitness.create(params)
44
- const wrapper = new WitnessWrapper(witness)
45
- const observation = await wrapper.observe([observed])
46
- expect(observation).toBeArrayOfSize(1)
47
- })
48
- })
49
- })
50
- })
51
- })