@xyo-network/bridge 2.38.0-rc.7 → 2.38.0-rc.9

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,11 +11,11 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/assert": "^2.6.9",
14
- "@xyo-network/account": "^2.38.0-rc.7",
15
- "@xyo-network/boundwitness": "^2.38.0-rc.7",
16
- "@xyo-network/module": "^2.38.0-rc.7",
17
- "@xyo-network/payload": "^2.38.0-rc.7",
18
- "@xyo-network/promise": "^2.38.0-rc.7",
14
+ "@xyo-network/account": "^2.38.0-rc.9",
15
+ "@xyo-network/boundwitness": "^2.38.0-rc.9",
16
+ "@xyo-network/module": "^2.38.0-rc.9",
17
+ "@xyo-network/payload": "^2.38.0-rc.9",
18
+ "@xyo-network/promise": "^2.38.0-rc.9",
19
19
  "pako": "^2.0.4",
20
20
  "tslib": "^2.4.0"
21
21
  },
@@ -55,6 +55,6 @@
55
55
  },
56
56
  "sideEffects": false,
57
57
  "types": "dist/esm/index.d.ts",
58
- "version": "2.38.0-rc.7",
58
+ "version": "2.38.0-rc.9",
59
59
  "stableVersion": "2.37.6"
60
60
  }
@@ -3,14 +3,16 @@ import { uuid } from '@xyo-network/core'
3
3
  import { PayloadWrapper } from '@xyo-network/payload'
4
4
  import { Axios } from 'axios'
5
5
 
6
- import { XyoHttpBridge, XyoHttpBridgeConfigSchema } from './XyoHttpBridge'
6
+ import { XyoHttpBridge, XyoHttpBridgeConfig, XyoHttpBridgeConfigSchema, XyoHttpBridgeParams } from './XyoHttpBridge'
7
7
 
8
8
  test('XyoHttpBridge', async () => {
9
9
  const nodeUri = `${process.env.API_DOMAIN}` ?? 'https://beta.api.archivist.xyo.network'
10
10
  const targetAddress = 'temp'
11
- const bridge = new XyoHttpBridge({ axios: new Axios(), config: { nodeUri, schema: XyoHttpBridgeConfigSchema, targetAddress } })
12
- await bridge.start()
13
- const wrapper = new XyoArchivistWrapper({ module: bridge })
11
+ const bridge = await XyoHttpBridge.create({
12
+ axios: new Axios(),
13
+ config: { nodeUri, schema: XyoHttpBridgeConfigSchema, targetAddress } as XyoHttpBridgeConfig,
14
+ } as XyoHttpBridgeParams)
15
+ const wrapper = new XyoArchivistWrapper(bridge)
14
16
  const debugPayload = {
15
17
  nonce: uuid(),
16
18
  schema: 'network.xyo.debug',