@xyo-network/bridge-wrapper 5.6.4 → 6.0.1

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.
@@ -32,4 +32,4 @@ var BridgeWrapper = class extends ModuleWrapper {
32
32
  export {
33
33
  BridgeWrapper
34
34
  };
35
- //# sourceMappingURL=index.mjs.map
35
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/BridgeWrapper.ts"],"sourcesContent":["import type { Address } from '@xylabs/sdk-js'\nimport type {\n BridgeExposeOptions,\n BridgeExposeQuery,\n BridgeInstance,\n BridgeModule,\n BridgeUnexposeOptions,\n BridgeUnexposeQuery,\n ModuleFilterPayload,\n} from '@xyo-network/bridge-model'\nimport {\n BridgeExposeQuerySchema,\n BridgeUnexposeQuerySchema,\n isBridgeInstance,\n isBridgeModule,\n ModuleFilterPayloadSchema,\n} from '@xyo-network/bridge-model'\nimport type {\n AddressPayload, ModuleIdentifier, ModuleInstance,\n} from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\n\nconstructableModuleWrapper()\nexport class BridgeWrapper<TWrappedModule extends BridgeModule = BridgeModule>\n extends ModuleWrapper<TWrappedModule>\n implements BridgeInstance<TWrappedModule['params']> {\n static override readonly instanceIdentityCheck = isBridgeInstance\n static override readonly moduleIdentityCheck = isBridgeModule\n\n async expose(id: ModuleIdentifier, options?: BridgeExposeOptions): Promise<ModuleInstance[]> {\n const filterPayload: ModuleFilterPayload = {\n id, schema: ModuleFilterPayloadSchema, ...options,\n }\n const addresses = (\n await this.sendQuery<BridgeExposeQuery, ModuleFilterPayload, AddressPayload>({ schema: BridgeExposeQuerySchema }, [filterPayload])\n ).map(({ address }) => address)\n return await Promise.all((addresses as Address[]).map(address => this.resolve(address)))\n }\n\n async unexpose(id: ModuleIdentifier, options?: BridgeUnexposeOptions): Promise<Address[]> {\n const filterPayload: ModuleFilterPayload = {\n id, schema: ModuleFilterPayloadSchema, ...options,\n }\n return (\n await this.sendQuery<BridgeUnexposeQuery, ModuleFilterPayload, AddressPayload>({ schema: BridgeUnexposeQuerySchema }, [filterPayload])\n ).map(({ address }) => address)\n }\n}\n"],"mappings":";AAUA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIP,SAAS,4BAA4B,qBAAqB;AAE1D,2BAA2B;AACpB,IAAM,gBAAN,cACG,cAC4C;AAAA,EACpD,OAAyB,wBAAwB;AAAA,EACjD,OAAyB,sBAAsB;AAAA,EAE/C,MAAM,OAAO,IAAsB,SAA0D;AAC3F,UAAM,gBAAqC;AAAA,MACzC;AAAA,MAAI,QAAQ;AAAA,MAA2B,GAAG;AAAA,IAC5C;AACA,UAAM,aACJ,MAAM,KAAK,UAAkE,EAAE,QAAQ,wBAAwB,GAAG,CAAC,aAAa,CAAC,GACjI,IAAI,CAAC,EAAE,QAAQ,MAAM,OAAO;AAC9B,WAAO,MAAM,QAAQ,IAAK,UAAwB,IAAI,aAAW,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA,EACzF;AAAA,EAEA,MAAM,SAAS,IAAsB,SAAqD;AACxF,UAAM,gBAAqC;AAAA,MACzC;AAAA,MAAI,QAAQ;AAAA,MAA2B,GAAG;AAAA,IAC5C;AACA,YACE,MAAM,KAAK,UAAoE,EAAE,QAAQ,0BAA0B,GAAG,CAAC,aAAa,CAAC,GACrI,IAAI,CAAC,EAAE,QAAQ,MAAM,OAAO;AAAA,EAChC;AACF;","names":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/BridgeWrapper.ts"],
4
+ "sourcesContent": ["import type { Address } from '@xylabs/sdk-js'\nimport type {\n BridgeExposeOptions,\n BridgeExposeQuery,\n BridgeInstance,\n BridgeModule,\n BridgeUnexposeOptions,\n BridgeUnexposeQuery,\n ModuleFilterPayload,\n} from '@xyo-network/bridge-model'\nimport {\n BridgeExposeQuerySchema,\n BridgeUnexposeQuerySchema,\n isBridgeInstance,\n isBridgeModule,\n ModuleFilterPayloadSchema,\n} from '@xyo-network/bridge-model'\nimport type {\n AddressPayload, ModuleIdentifier, ModuleInstance,\n} from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\n\nconstructableModuleWrapper()\nexport class BridgeWrapper<TWrappedModule extends BridgeModule = BridgeModule>\n extends ModuleWrapper<TWrappedModule>\n implements BridgeInstance<TWrappedModule['params']> {\n static override readonly instanceIdentityCheck = isBridgeInstance\n static override readonly moduleIdentityCheck = isBridgeModule\n\n async expose(id: ModuleIdentifier, options?: BridgeExposeOptions): Promise<ModuleInstance[]> {\n const filterPayload: ModuleFilterPayload = {\n id, schema: ModuleFilterPayloadSchema, ...options,\n }\n const addresses = (\n await this.sendQuery<BridgeExposeQuery, ModuleFilterPayload, AddressPayload>({ schema: BridgeExposeQuerySchema }, [filterPayload])\n ).map(({ address }) => address)\n return await Promise.all((addresses).map(address => this.resolve(address)))\n }\n\n async unexpose(id: ModuleIdentifier, options?: BridgeUnexposeOptions): Promise<Address[]> {\n const filterPayload: ModuleFilterPayload = {\n id, schema: ModuleFilterPayloadSchema, ...options,\n }\n return (\n await this.sendQuery<BridgeUnexposeQuery, ModuleFilterPayload, AddressPayload>({ schema: BridgeUnexposeQuerySchema }, [filterPayload])\n ).map(({ address }) => address)\n }\n}\n"],
5
+ "mappings": ";AAUA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIP,SAAS,4BAA4B,qBAAqB;AAE1D,2BAA2B;AACpB,IAAM,gBAAN,cACG,cAC4C;AAAA,EACpD,OAAyB,wBAAwB;AAAA,EACjD,OAAyB,sBAAsB;AAAA,EAE/C,MAAM,OAAO,IAAsB,SAA0D;AAC3F,UAAM,gBAAqC;AAAA,MACzC;AAAA,MAAI,QAAQ;AAAA,MAA2B,GAAG;AAAA,IAC5C;AACA,UAAM,aACJ,MAAM,KAAK,UAAkE,EAAE,QAAQ,wBAAwB,GAAG,CAAC,aAAa,CAAC,GACjI,IAAI,CAAC,EAAE,QAAQ,MAAM,OAAO;AAC9B,WAAO,MAAM,QAAQ,IAAK,UAAW,IAAI,aAAW,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA,EAC5E;AAAA,EAEA,MAAM,SAAS,IAAsB,SAAqD;AACxF,UAAM,gBAAqC;AAAA,MACzC;AAAA,MAAI,QAAQ;AAAA,MAA2B,GAAG;AAAA,IAC5C;AACA,YACE,MAAM,KAAK,UAAoE,EAAE,QAAQ,0BAA0B,GAAG,CAAC,aAAa,CAAC,GACrI,IAAI,CAAC,EAAE,QAAQ,MAAM,OAAO;AAAA,EAChC;AACF;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/bridge-wrapper",
3
- "version": "5.6.4",
3
+ "version": "6.0.1",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,64 +34,70 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/bridge-model": "~5.6.4",
38
- "@xyo-network/module-wrapper": "~5.6.4",
39
- "@xyo-network/module-model": "~5.6.4"
37
+ "@xyo-network/bridge-model": "~6.0.1",
38
+ "@xyo-network/module-model": "~6.0.1",
39
+ "@xyo-network/module-wrapper": "~6.0.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@bitauth/libauth": "~3.0.0",
42
+ "@bitauth/libauth": "~3.0",
43
+ "@metamask/providers": "^22.1",
44
+ "@noble/post-quantum": "~0.6.1",
43
45
  "@opentelemetry/api": "^1.9.1",
44
46
  "@opentelemetry/sdk-trace-base": "^2.7.1",
45
47
  "@scure/base": "~2.2.0",
46
- "@xylabs/sdk-js": "^5.1.2",
47
- "@xylabs/threads": "~5.1.2",
48
- "@xylabs/toolchain": "~7.13.15",
49
- "@xylabs/tsconfig": "~7.13.15",
50
- "@xyo-network/account-model": "~5.6.3",
51
- "@xyo-network/boundwitness-builder": "~5.6.2",
52
- "@xyo-network/boundwitness-model": "~5.6.3",
53
- "@xyo-network/boundwitness-wrapper": "~5.6.2",
54
- "@xyo-network/manifest-model": "~5.6.3",
55
- "@xyo-network/payload-model": "~5.6.3",
48
+ "@scure/bip39": "~2.2",
49
+ "@xylabs/geo": "^6.0",
50
+ "@xylabs/sdk-js": "^6.0.4",
51
+ "@xylabs/threads": "^6.0",
52
+ "@xylabs/toolchain": "~8.1.6",
53
+ "@xylabs/tsconfig": "~8.1.6",
54
+ "@xyo-network/sdk-protocol-js": "~6.0",
55
+ "ajv": "^8.20",
56
56
  "async-mutex": "^0.5.0",
57
57
  "bn.js": "^5.2.3",
58
58
  "buffer": "^6.0.3",
59
- "chalk": "^5.6.2",
60
- "debug": "~4.4.3",
61
- "eslint": "^10.3.0",
59
+ "debug": "~4.4",
60
+ "eslint": "^10.4.0",
62
61
  "ethers": "^6.16.0",
63
- "hash-wasm": "~4.12.0",
64
- "lru-cache": "^11.3.6",
65
- "observable-fns": "~0.6.1",
62
+ "hash-wasm": "~4.12",
63
+ "idb": "^8.0",
64
+ "lru-cache": "^11.5.1",
65
+ "mapbox-gl": "^3.23",
66
+ "observable-fns": "~0.6",
66
67
  "pako": "~2.1.0",
67
- "typescript": "~5.9.3",
68
- "wasm-feature-detect": "~1.8.0",
68
+ "store2": "~2.14",
69
+ "typescript": "~6.0.3",
70
+ "wasm-feature-detect": "~1.8",
71
+ "webextension-polyfill": "^0.12",
69
72
  "zod": "^4.4.3"
70
73
  },
71
74
  "peerDependencies": {
72
75
  "@bitauth/libauth": "~3.0",
76
+ "@metamask/providers": "^22.1",
77
+ "@noble/post-quantum": "~0.6.1",
73
78
  "@opentelemetry/api": "^1.9",
74
79
  "@opentelemetry/sdk-trace-base": "^2.7",
75
80
  "@scure/base": "~2.2",
76
- "@xylabs/sdk-js": "^5.1",
77
- "@xylabs/threads": "~5.1",
78
- "@xyo-network/account-model": "~5.6",
79
- "@xyo-network/boundwitness-builder": "~5.6",
80
- "@xyo-network/boundwitness-model": "~5.6",
81
- "@xyo-network/boundwitness-wrapper": "~5.6",
82
- "@xyo-network/manifest-model": "~5.6",
83
- "@xyo-network/payload-model": "~5.6",
81
+ "@scure/bip39": "~2.2",
82
+ "@xylabs/geo": "^6.0",
83
+ "@xylabs/sdk-js": "^6.0",
84
+ "@xylabs/threads": "^6.0",
85
+ "@xyo-network/sdk-protocol-js": "~6.0",
86
+ "ajv": "^8.20",
84
87
  "async-mutex": "^0.5",
85
88
  "bn.js": "^5.2",
86
89
  "buffer": "^6.0",
87
- "chalk": "^5.6",
88
90
  "debug": "~4.4",
89
91
  "ethers": "^6.16",
90
92
  "hash-wasm": "~4.12",
93
+ "idb": "^8.0",
91
94
  "lru-cache": "^11.3",
95
+ "mapbox-gl": "^3.23",
92
96
  "observable-fns": "~0.6",
93
97
  "pako": "~2.1",
98
+ "store2": "~2.14",
94
99
  "wasm-feature-detect": "~1.8",
100
+ "webextension-polyfill": "^0.12",
95
101
  "zod": "^4.4"
96
102
  },
97
103
  "publishConfig": {