@xyo-network/bridge-wrapper 5.3.20 → 5.3.24

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/bridge-wrapper",
3
- "version": "5.3.20",
3
+ "version": "5.3.24",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,28 +30,40 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src",
34
33
  "!**/*.bench.*",
35
34
  "!**/*.spec.*",
36
- "!**/*.test.*"
35
+ "!**/*.test.*",
36
+ "README.md"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/bridge-model": "~5.3.20",
40
- "@xyo-network/module-model": "~5.3.20",
41
- "@xyo-network/module-wrapper": "~5.3.20"
39
+ "@xyo-network/module-model": "~5.3.24",
40
+ "@xyo-network/bridge-model": "~5.3.24",
41
+ "@xyo-network/module-wrapper": "~5.3.24"
42
42
  },
43
43
  "devDependencies": {
44
- "@xylabs/sdk-js": "^5.0.90",
45
- "@xylabs/ts-scripts-common": "~7.5.6",
46
- "@xylabs/ts-scripts-yarn3": "~7.5.6",
47
- "@xylabs/tsconfig": "~7.5.6",
44
+ "@opentelemetry/api": "^1.9.1",
45
+ "@types/node": "^25.5.0",
46
+ "@xylabs/sdk-js": "^5.0.93",
47
+ "@xylabs/ts-scripts-common": "~7.6.16",
48
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
49
+ "@xylabs/tsconfig": "~7.6.16",
50
+ "acorn": "^8.16.0",
51
+ "axios": "^1.14.0",
52
+ "esbuild": "^0.28.0",
53
+ "ethers": "^6.16.0",
54
+ "tslib": "^2.8.1",
48
55
  "typescript": "~5.9.3",
49
- "zod": "^4.3.6"
56
+ "zod": "^4.3.6",
57
+ "@xyo-network/bridge-model": "~5.3.24",
58
+ "@xyo-network/module-model": "~5.3.24",
59
+ "@xyo-network/module-wrapper": "~5.3.24"
50
60
  },
51
61
  "peerDependencies": {
52
- "@xylabs/sdk-js": "^5"
62
+ "@xylabs/sdk-js": "^5",
63
+ "ethers": "^6",
64
+ "tslib": "^2.8.1"
53
65
  },
54
66
  "publishConfig": {
55
67
  "access": "public"
56
68
  }
57
- }
69
+ }
@@ -1,48 +0,0 @@
1
- import type { Address } from '@xylabs/sdk-js'
2
- import type {
3
- BridgeExposeOptions,
4
- BridgeExposeQuery,
5
- BridgeInstance,
6
- BridgeModule,
7
- BridgeUnexposeOptions,
8
- BridgeUnexposeQuery,
9
- ModuleFilterPayload,
10
- } from '@xyo-network/bridge-model'
11
- import {
12
- BridgeExposeQuerySchema,
13
- BridgeUnexposeQuerySchema,
14
- isBridgeInstance,
15
- isBridgeModule,
16
- ModuleFilterPayloadSchema,
17
- } from '@xyo-network/bridge-model'
18
- import type {
19
- AddressPayload, ModuleIdentifier, ModuleInstance,
20
- } from '@xyo-network/module-model'
21
- import { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'
22
-
23
- constructableModuleWrapper()
24
- export class BridgeWrapper<TWrappedModule extends BridgeModule = BridgeModule>
25
- extends ModuleWrapper<TWrappedModule>
26
- implements BridgeInstance<TWrappedModule['params']> {
27
- static override readonly instanceIdentityCheck = isBridgeInstance
28
- static override readonly moduleIdentityCheck = isBridgeModule
29
-
30
- async expose(id: ModuleIdentifier, options?: BridgeExposeOptions): Promise<ModuleInstance[]> {
31
- const filterPayload: ModuleFilterPayload = {
32
- id, schema: ModuleFilterPayloadSchema, ...options,
33
- }
34
- const addresses = (
35
- await this.sendQuery<BridgeExposeQuery, ModuleFilterPayload, AddressPayload>({ schema: BridgeExposeQuerySchema }, [filterPayload])
36
- ).map(({ address }) => address)
37
- return await Promise.all((addresses as Address[]).map(address => this.resolve(address)))
38
- }
39
-
40
- async unexpose(id: ModuleIdentifier, options?: BridgeUnexposeOptions): Promise<Address[]> {
41
- const filterPayload: ModuleFilterPayload = {
42
- id, schema: ModuleFilterPayloadSchema, ...options,
43
- }
44
- return (
45
- await this.sendQuery<BridgeUnexposeQuery, ModuleFilterPayload, AddressPayload>({ schema: BridgeUnexposeQuerySchema }, [filterPayload])
46
- ).map(({ address }) => address)
47
- }
48
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './BridgeWrapper.ts'