@xyo-network/module-instance-payload-plugin 5.3.1 → 5.3.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/module-instance-payload-plugin",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "description": "Contains the information about a module instance",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,21 +30,26 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src",
34
- "!**/*.bench.*",
35
- "!**/*.spec.*",
36
- "!**/*.test.*"
33
+ "README.md"
37
34
  ],
38
- "dependencies": {
39
- "@xyo-network/payload-model": "~5.3.2",
40
- "@xyo-network/payload-plugin": "~5.3.2"
41
- },
42
35
  "devDependencies": {
43
- "@xylabs/ts-scripts-yarn3": "~7.3.2",
44
- "@xylabs/tsconfig": "~7.3.2",
45
- "@xylabs/vitest-extended": "~5.0.64",
36
+ "@xylabs/sdk-js": "^5.0.90",
37
+ "@xylabs/ts-scripts-common": "~7.5.10",
38
+ "@xylabs/ts-scripts-yarn3": "~7.5.10",
39
+ "@xylabs/tsconfig": "~7.5.10",
40
+ "@xylabs/vitest-extended": "~5.0.90",
41
+ "@xyo-network/payload-model": "~5.3.5",
42
+ "@xyo-network/payload-plugin": "~5.3.5",
46
43
  "typescript": "~5.9.3",
47
- "vitest": "~4.0.18"
44
+ "vitest": "~4.1.2",
45
+ "zod": "^4.3.6"
46
+ },
47
+ "peerDependencies": {
48
+ "@xylabs/sdk-js": "^5",
49
+ "@xylabs/vitest-extended": "^5",
50
+ "@xyo-network/payload-model": "^5",
51
+ "@xyo-network/payload-plugin": "^5",
52
+ "zod": "^4"
48
53
  },
49
54
  "publishConfig": {
50
55
  "access": "public"
package/src/Payload.ts DELETED
@@ -1,13 +0,0 @@
1
- import type { Payload } from '@xyo-network/payload-model'
2
-
3
- import type { AbstractModuleInstanceSchema } from './Schema.ts'
4
-
5
- export interface AbstractModuleInstanceQueryConfig {
6
- cost?: string
7
- }
8
-
9
- export type AbstractModuleInstancePayload = Payload<{
10
- address: string
11
- queries?: Record<string, AbstractModuleInstanceQueryConfig>
12
- schema: AbstractModuleInstanceSchema
13
- }>
package/src/Plugin.ts DELETED
@@ -1,11 +0,0 @@
1
- import { createPayloadPlugin } from '@xyo-network/payload-plugin'
2
-
3
- import type { AbstractModuleInstancePayload } from './Payload.ts'
4
- import { AbstractModuleInstanceSchema } from './Schema.ts'
5
- import { moduleInstancePayloadTemplate } from './Template.ts'
6
-
7
- export const ModuleInstancePayloadPlugin = () =>
8
- createPayloadPlugin<AbstractModuleInstancePayload>({
9
- schema: AbstractModuleInstanceSchema,
10
- template: moduleInstancePayloadTemplate,
11
- })
package/src/Schema.ts DELETED
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export type AbstractModuleInstanceSchema = typeof AbstractModuleInstanceSchema
4
- export const AbstractModuleInstanceSchema = asSchema('network.xyo.module.instance', true)
package/src/Template.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { AbstractModuleInstancePayload } from './Payload.ts'
2
- import { AbstractModuleInstanceSchema } from './Schema.ts'
3
-
4
- export const moduleInstancePayloadTemplate = (): Partial<AbstractModuleInstancePayload> => {
5
- return {
6
- address: undefined,
7
- queries: undefined,
8
- schema: AbstractModuleInstanceSchema,
9
- }
10
- }
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './Payload.ts'
2
- export { ModuleInstancePayloadPlugin as default, ModuleInstancePayloadPlugin } from './Plugin.ts'
3
- export * from './Schema.ts'
4
- export * from './Template.ts'