@xyo-network/chain-bridge 1.16.23 → 1.16.25

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.
@@ -1 +1 @@
1
- {"version":3,"file":"getLocator.d.ts","sourceRoot":"","sources":["../../../src/manifest/getLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAclD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAI1E,OAAO,KAAK,EACW,MAAM,EAC5B,MAAM,+BAA+B,CAAA;AAGtC,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAU,SAAS,iBAAiB,kCAqE1D,CAAA"}
1
+ {"version":3,"file":"getLocator.d.ts","sourceRoot":"","sources":["../../../src/manifest/getLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAclD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAI1E,OAAO,KAAK,EACW,MAAM,EAC5B,MAAM,+BAA+B,CAAA;AAGtC,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAU,SAAS,iBAAiB,kCAmE1D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/chain-bridge",
3
- "version": "1.16.23",
3
+ "version": "1.16.25",
4
4
  "description": "XYO Layer One Bridge",
5
5
  "homepage": "https://xylabs.com",
6
6
  "bugs": {
@@ -52,23 +52,23 @@
52
52
  "@opentelemetry/instrumentation": "~0.208.0",
53
53
  "@opentelemetry/instrumentation-express": "~0.57.0",
54
54
  "@opentelemetry/instrumentation-http": "~0.208.0",
55
- "@xylabs/express": "~5.0.39",
56
- "@xylabs/sdk-js": "~5.0.39",
57
- "@xyo-network/archivist-model": "~5.1.24",
58
- "@xyo-network/boundwitness-model": "~5.1.24",
59
- "@xyo-network/chain-protocol": "~1.16.23",
60
- "@xyo-network/manifest-model": "~5.1.24",
61
- "@xyo-network/module-factory-locator": "~5.1.24",
62
- "@xyo-network/module-model": "~5.1.24",
63
- "@xyo-network/node-model": "~5.1.24",
64
- "@xyo-network/payload-builder": "~5.1.24",
65
- "@xyo-network/payload-model": "~5.1.24",
66
- "@xyo-network/sentinel-abstract": "~5.1.24",
67
- "@xyo-network/sentinel-model": "~5.1.24",
55
+ "@xylabs/express": "~5.0.42",
56
+ "@xylabs/sdk-js": "~5.0.42",
57
+ "@xyo-network/archivist-model": "~5.2.10",
58
+ "@xyo-network/boundwitness-model": "~5.2.10",
59
+ "@xyo-network/chain-protocol": "~1.16.25",
60
+ "@xyo-network/manifest-model": "~5.2.10",
61
+ "@xyo-network/module-factory-locator": "~5.2.10",
62
+ "@xyo-network/module-model": "~5.2.10",
63
+ "@xyo-network/node-model": "~5.2.10",
64
+ "@xyo-network/payload-builder": "~5.2.10",
65
+ "@xyo-network/payload-model": "~5.2.10",
66
+ "@xyo-network/sentinel-abstract": "~5.2.10",
67
+ "@xyo-network/sentinel-model": "~5.2.10",
68
68
  "@xyo-network/typechain": "~4.0.10",
69
- "@xyo-network/wallet-model": "~5.1.24",
70
- "@xyo-network/xl1-protocol": "~1.13.13",
71
- "@xyo-network/xl1-protocol-sdk": "~1.16.23",
69
+ "@xyo-network/wallet-model": "~5.2.10",
70
+ "@xyo-network/xl1-protocol": "~1.14.13",
71
+ "@xyo-network/xl1-protocol-sdk": "~1.16.25",
72
72
  "compression": "~1.8.1",
73
73
  "cors": "~2.8.5",
74
74
  "express": "~5.1.0",
@@ -83,32 +83,32 @@
83
83
  "@types/express": "5.0.5",
84
84
  "@types/express-serve-static-core": "~5.1.0",
85
85
  "@types/node": "~24.10.1",
86
- "@xylabs/mongo": "~5.0.39",
87
- "@xylabs/sdk-js": "~5.0.39",
86
+ "@xylabs/mongo": "~5.0.42",
87
+ "@xylabs/sdk-js": "~5.0.42",
88
88
  "@xylabs/ts-scripts-yarn3": "~7.2.8",
89
89
  "@xylabs/tsconfig": "~7.2.8",
90
- "@xyo-network/account": "~5.1.24",
91
- "@xyo-network/account-model": "~5.1.24",
92
- "@xyo-network/archivist-abstract": "~5.1.24",
93
- "@xyo-network/archivist-memory": "~5.1.24",
94
- "@xyo-network/archivist-mongodb": "~5.1.24",
95
- "@xyo-network/archivist-view": "~5.1.24",
96
- "@xyo-network/bios": "~7.1.1",
97
- "@xyo-network/bios-model": "~7.1.1",
98
- "@xyo-network/boundwitness-builder": "~5.1.24",
99
- "@xyo-network/chain-modules": "~1.16.23",
100
- "@xyo-network/chain-protocol": "~1.16.23",
101
- "@xyo-network/chain-services": "~1.16.23",
102
- "@xyo-network/chain-telemetry": "~1.16.23",
103
- "@xyo-network/manifest-wrapper": "~5.1.24",
104
- "@xyo-network/module-abstract": "~5.1.24",
105
- "@xyo-network/module-abstract-mongodb": "~5.1.24",
106
- "@xyo-network/module-model-mongodb": "~5.1.24",
107
- "@xyo-network/node-memory": "~5.1.24",
108
- "@xyo-network/payload-builder": "~5.1.24",
109
- "@xyo-network/sentinel-memory": "~5.1.24",
110
- "@xyo-network/wallet": "~5.1.24",
111
- "@xyo-network/xl1-protocol": "~1.13.13",
90
+ "@xyo-network/account": "~5.2.10",
91
+ "@xyo-network/account-model": "~5.2.10",
92
+ "@xyo-network/archivist-abstract": "~5.2.10",
93
+ "@xyo-network/archivist-memory": "~5.2.10",
94
+ "@xyo-network/archivist-mongodb": "~5.2.10",
95
+ "@xyo-network/archivist-view": "~5.2.10",
96
+ "@xyo-network/bios": "~7.2.0",
97
+ "@xyo-network/bios-model": "~7.2.0",
98
+ "@xyo-network/boundwitness-builder": "~5.2.10",
99
+ "@xyo-network/chain-modules": "~1.16.25",
100
+ "@xyo-network/chain-protocol": "~1.16.25",
101
+ "@xyo-network/chain-services": "~1.16.25",
102
+ "@xyo-network/chain-telemetry": "~1.16.25",
103
+ "@xyo-network/manifest-wrapper": "~5.2.10",
104
+ "@xyo-network/module-abstract": "~5.2.10",
105
+ "@xyo-network/module-abstract-mongodb": "~5.2.10",
106
+ "@xyo-network/module-model-mongodb": "~5.2.10",
107
+ "@xyo-network/node-memory": "~5.2.10",
108
+ "@xyo-network/payload-builder": "~5.2.10",
109
+ "@xyo-network/sentinel-memory": "~5.2.10",
110
+ "@xyo-network/wallet": "~5.2.10",
111
+ "@xyo-network/xl1-protocol": "~1.14.13",
112
112
  "async-mutex": "~0.5.0",
113
113
  "dotenv": "~17.2.3",
114
114
  "eslint": "^9.39.1",
@@ -117,7 +117,7 @@
117
117
  "nodemon": "~3.1.11",
118
118
  "tslib": "~2.8.1",
119
119
  "typescript": "~5.9.3",
120
- "vitest": "~4.0.10",
120
+ "vitest": "~4.0.13",
121
121
  "vitest-mock-extended": "~3.1.0"
122
122
  },
123
123
  "engines": {
@@ -35,16 +35,14 @@ export interface GetLocatorContext {
35
35
  export const getLocator = async (context: GetLocatorContext) => {
36
36
  const { config, logger } = context
37
37
  const { otlpEndpoint } = config.telemetry?.otel ?? {}
38
+ const { path: endpoint = '/metrics', port: port = 9468 } = config.telemetry?.metrics?.scrape ?? {}
38
39
  const { traceProvider, meterProvider } = await initTelemetry({
39
40
  attributes: {
40
41
  serviceName: 'xl1-bridge',
41
42
  serviceVersion: '1.0.0',
42
43
  },
43
44
  otlpEndpoint,
44
- metricsConfig: {
45
- endpoint: '/metrics',
46
- port: 9465,
47
- },
45
+ metricsConfig: { endpoint, port },
48
46
  })
49
47
 
50
48
  if (isDefined(logger)) AbstractModule.defaultLogger = logger
@@ -9,7 +9,7 @@ import type {
9
9
  SentinelConfig, SentinelInstance, SentinelModuleEventData, SentinelParams,
10
10
  } from '@xyo-network/sentinel-model'
11
11
  import type { BridgeIntent, SignedHydratedTransaction } from '@xyo-network/xl1-protocol'
12
- import { isBridgeIntent } from '@xyo-network/xl1-protocol'
12
+ import { asXL1BlockNumber, isBridgeIntent } from '@xyo-network/xl1-protocol'
13
13
  import type {
14
14
  XyoConnection, XyoGatewayRunner, XyoViewer,
15
15
  } from '@xyo-network/xl1-protocol-sdk'
@@ -150,7 +150,7 @@ export class XL1toEvmBridgeSentinel<
150
150
  gateway: XyoGatewayRunner,
151
151
  ): Promise<SignedHydratedTransaction | undefined> {
152
152
  const currentBlockNumber = await this.viewer.currentBlockNumber()
153
- const result = await gateway.addPayloadsToChain?.([], [], { nbf: currentBlockNumber, exp: currentBlockNumber + 10 })
153
+ const result = await gateway.addPayloadsToChain?.([], [], { nbf: currentBlockNumber, exp: asXL1BlockNumber(currentBlockNumber + 10) })
154
154
  if (isDefined(result)) return result[1]
155
155
  }
156
156
  }