@xyo-network/chain-orchestration 1.20.0 → 1.20.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.
- package/dist/browser/index.mjs +8 -27
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/neutral/config/locators/basicRemoteRunnerLocator.d.ts +2 -2
- package/dist/browser/neutral/config/locators/basicRemoteRunnerLocator.d.ts.map +1 -1
- package/dist/browser/neutral/config/locators/basicRemoteViewerLocator.d.ts +2 -2
- package/dist/browser/neutral/config/locators/basicRemoteViewerLocator.d.ts.map +1 -1
- package/dist/browser/node/config/locators/basicRemoteRunnerLocator.d.ts +2 -2
- package/dist/browser/node/config/locators/basicRemoteRunnerLocator.d.ts.map +1 -1
- package/dist/browser/node/config/locators/basicRemoteViewerLocator.d.ts +2 -2
- package/dist/browser/node/config/locators/basicRemoteViewerLocator.d.ts.map +1 -1
- package/dist/neutral/index.mjs +8 -27
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/neutral/config/locators/basicRemoteRunnerLocator.d.ts +2 -2
- package/dist/neutral/neutral/config/locators/basicRemoteRunnerLocator.d.ts.map +1 -1
- package/dist/neutral/neutral/config/locators/basicRemoteViewerLocator.d.ts +2 -2
- package/dist/neutral/neutral/config/locators/basicRemoteViewerLocator.d.ts.map +1 -1
- package/dist/neutral/node/config/locators/basicRemoteRunnerLocator.d.ts +2 -2
- package/dist/neutral/node/config/locators/basicRemoteRunnerLocator.d.ts.map +1 -1
- package/dist/neutral/node/config/locators/basicRemoteViewerLocator.d.ts +2 -2
- package/dist/neutral/node/config/locators/basicRemoteViewerLocator.d.ts.map +1 -1
- package/dist/node/index.mjs +10 -29
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/neutral/config/locators/basicRemoteRunnerLocator.d.ts +2 -2
- package/dist/node/neutral/config/locators/basicRemoteRunnerLocator.d.ts.map +1 -1
- package/dist/node/neutral/config/locators/basicRemoteViewerLocator.d.ts +2 -2
- package/dist/node/neutral/config/locators/basicRemoteViewerLocator.d.ts.map +1 -1
- package/dist/node/node/config/locators/basicRemoteRunnerLocator.d.ts +2 -2
- package/dist/node/node/config/locators/basicRemoteRunnerLocator.d.ts.map +1 -1
- package/dist/node/node/config/locators/basicRemoteViewerLocator.d.ts +2 -2
- package/dist/node/node/config/locators/basicRemoteViewerLocator.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/neutral/config/locators/basicRemoteRunnerLocator.ts +1 -3
- package/src/neutral/config/locators/basicRemoteViewerLocator.ts +3 -25
- package/src/node/config/locators/basicRemoteRunnerLocator.ts +1 -3
- package/src/node/config/locators/basicRemoteViewerLocator.ts +4 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RemoteConfig, RpcTransport, XyoSignerRpcSchemas } from '@xyo-network/xl1-sdk';
|
|
2
2
|
import { ProviderFactoryLocator } from '@xyo-network/xl1-sdk';
|
|
3
|
-
export declare function basicRemoteRunnerLocator(name: string, remoteConfig: RemoteConfig, signerTransport: RpcTransport<XyoSignerRpcSchemas>,
|
|
3
|
+
export declare function basicRemoteRunnerLocator(name: string, remoteConfig: RemoteConfig, signerTransport: RpcTransport<XyoSignerRpcSchemas>, dataLakeEndpoint?: string): Promise<ProviderFactoryLocator<import("@xyo-network/xl1-sdk").CreatableProviderContextType, string[]>>;
|
|
4
4
|
//# sourceMappingURL=basicRemoteRunnerLocator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basicRemoteRunnerLocator.d.ts","sourceRoot":"","sources":["../../../../../src/neutral/config/locators/basicRemoteRunnerLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"basicRemoteRunnerLocator.d.ts","sourceRoot":"","sources":["../../../../../src/neutral/config/locators/basicRemoteRunnerLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAChD,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,sBAAsB,EAGvB,MAAM,sBAAsB,CAAA;AAI7B,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,YAAY,CAAC,mBAAmB,CAAC,EAClD,gBAAgB,CAAC,EAAE,MAAM,0GAmB1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RemoteConfig } from '@xyo-network/xl1-sdk';
|
|
2
2
|
import { ProviderFactoryLocator } from '@xyo-network/xl1-sdk';
|
|
3
|
-
export declare function basicRemoteViewerLocator(name: string, remoteConfig: RemoteConfig,
|
|
3
|
+
export declare function basicRemoteViewerLocator(name: string, remoteConfig: RemoteConfig, dataLakeEndpoint?: string): Promise<ProviderFactoryLocator<import("@xyo-network/xl1-sdk").CreatableProviderContextType, string[]>>;
|
|
4
4
|
//# sourceMappingURL=basicRemoteViewerLocator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basicRemoteViewerLocator.d.ts","sourceRoot":"","sources":["../../../../../src/neutral/config/locators/basicRemoteViewerLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"basicRemoteViewerLocator.d.ts","sourceRoot":"","sources":["../../../../../src/neutral/config/locators/basicRemoteViewerLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAEL,sBAAsB,EAGvB,MAAM,sBAAsB,CAAA;AAI7B,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,YAAY,EAC1B,gBAAgB,CAAC,EAAE,MAAM,0GAsB1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AccountInstance } from '@xyo-network/sdk-js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { RemoteConfig, RpcTransport, XyoSignerRpcSchemas } from '@xyo-network/xl1-sdk';
|
|
3
3
|
import { ProviderFactoryLocator } from '@xyo-network/xl1-sdk';
|
|
4
|
-
export declare function basicRemoteRunnerLocator(name: string, remoteConfig: RemoteConfig, signer: RpcTransport<XyoSignerRpcSchemas> | AccountInstance,
|
|
4
|
+
export declare function basicRemoteRunnerLocator(name: string, remoteConfig: RemoteConfig, signer: RpcTransport<XyoSignerRpcSchemas> | AccountInstance, dataLakeEndpoint?: string): Promise<ProviderFactoryLocator<import("@xyo-network/xl1-sdk").CreatableProviderContextType, string[]>>;
|
|
5
5
|
//# sourceMappingURL=basicRemoteRunnerLocator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basicRemoteRunnerLocator.d.ts","sourceRoot":"","sources":["../../../../../src/node/config/locators/basicRemoteRunnerLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"basicRemoteRunnerLocator.d.ts","sourceRoot":"","sources":["../../../../../src/node/config/locators/basicRemoteRunnerLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D,OAAO,KAAK,EACV,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAChD,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,sBAAsB,EAGvB,MAAM,sBAAsB,CAAA;AAI7B,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,YAAY,CAAC,mBAAmB,CAAC,GAAG,eAAe,EAC3D,gBAAgB,CAAC,EAAE,MAAM,0GA2B1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RemoteConfig } from '@xyo-network/xl1-sdk';
|
|
2
2
|
import { ProviderFactoryLocator } from '@xyo-network/xl1-sdk';
|
|
3
|
-
export declare function basicRemoteViewerLocator(name: string, remoteConfig: RemoteConfig,
|
|
3
|
+
export declare function basicRemoteViewerLocator(name: string, remoteConfig: RemoteConfig, dataLakeEndpoint?: string): Promise<ProviderFactoryLocator<import("@xyo-network/xl1-sdk").CreatableProviderContextType, string[]>>;
|
|
4
4
|
//# sourceMappingURL=basicRemoteViewerLocator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basicRemoteViewerLocator.d.ts","sourceRoot":"","sources":["../../../../../src/node/config/locators/basicRemoteViewerLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"basicRemoteViewerLocator.d.ts","sourceRoot":"","sources":["../../../../../src/node/config/locators/basicRemoteViewerLocator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAGL,sBAAsB,EAGvB,MAAM,sBAAsB,CAAA;AAK7B,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,YAAY,EAC1B,gBAAgB,CAAC,EAAE,MAAM,0GA0B1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/chain-orchestration",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.1",
|
|
4
4
|
"description": "XYO Layer One SDK Orchestration",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"@xyo-network/archivist-view": "~5.3.15",
|
|
53
53
|
"@xyo-network/bios": "~7.2.1",
|
|
54
54
|
"@xyo-network/bridge-model": "~5.3.15",
|
|
55
|
-
"@xyo-network/chain-ethereum": "~1.20.
|
|
56
|
-
"@xyo-network/chain-protocol": "~1.20.
|
|
57
|
-
"@xyo-network/chain-sdk": "~1.20.
|
|
58
|
-
"@xyo-network/chain-services": "~1.20.
|
|
59
|
-
"@xyo-network/chain-telemetry": "~1.20.
|
|
60
|
-
"@xyo-network/chain-utils": "~1.20.
|
|
61
|
-
"@xyo-network/chain-validation": "~1.20.
|
|
55
|
+
"@xyo-network/chain-ethereum": "~1.20.1",
|
|
56
|
+
"@xyo-network/chain-protocol": "~1.20.1",
|
|
57
|
+
"@xyo-network/chain-sdk": "~1.20.1",
|
|
58
|
+
"@xyo-network/chain-services": "~1.20.1",
|
|
59
|
+
"@xyo-network/chain-telemetry": "~1.20.1",
|
|
60
|
+
"@xyo-network/chain-utils": "~1.20.1",
|
|
61
|
+
"@xyo-network/chain-validation": "~1.20.1",
|
|
62
62
|
"@xyo-network/module-abstract": "~5.3.15",
|
|
63
63
|
"@xyo-network/sdk-js": "~5.3.15",
|
|
64
64
|
"@xyo-network/sentinel-memory": "~5.3.15",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@xyo-network/sdk-js": "~5.3.15",
|
|
79
79
|
"@xyo-network/storage-model": "~7.2.1",
|
|
80
80
|
"@xyo-network/wallet-model": "~5.3.15",
|
|
81
|
-
"@xyo-network/xl1-sdk": "~1.25.
|
|
81
|
+
"@xyo-network/xl1-sdk": "~1.25.18",
|
|
82
82
|
"axios": "^1.13.6",
|
|
83
83
|
"cosmiconfig": "^9.0.1",
|
|
84
84
|
"eslint": "^9.39.3",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isDefined } from '@xylabs/sdk-js'
|
|
2
2
|
import type {
|
|
3
|
-
ChainId,
|
|
4
3
|
RemoteConfig, RpcTransport, XyoSignerRpcSchemas,
|
|
5
4
|
} from '@xyo-network/xl1-sdk'
|
|
6
5
|
import {
|
|
@@ -16,10 +15,9 @@ export async function basicRemoteRunnerLocator(
|
|
|
16
15
|
name: string,
|
|
17
16
|
remoteConfig: RemoteConfig,
|
|
18
17
|
signerTransport: RpcTransport<XyoSignerRpcSchemas>,
|
|
19
|
-
chainId?: ChainId,
|
|
20
18
|
dataLakeEndpoint?: string,
|
|
21
19
|
) {
|
|
22
|
-
const remoteViewerLocator = await basicRemoteViewerLocator(name, remoteConfig,
|
|
20
|
+
const remoteViewerLocator = await basicRemoteViewerLocator(name, remoteConfig, dataLakeEndpoint)
|
|
23
21
|
const locator = new ProviderFactoryLocator(remoteViewerLocator.context, {})
|
|
24
22
|
locator.registerMany([
|
|
25
23
|
JsonRpcXyoSigner.factory<JsonRpcXyoSigner>(JsonRpcXyoSigner.dependencies, { transport: signerTransport }),
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
BlockViewer,
|
|
4
|
-
ChainId,
|
|
5
|
-
RemoteConfig,
|
|
6
|
-
} from '@xyo-network/xl1-sdk'
|
|
1
|
+
import { isDefined } from '@xylabs/sdk-js'
|
|
2
|
+
import type { RemoteConfig } from '@xyo-network/xl1-sdk'
|
|
7
3
|
import {
|
|
8
4
|
ActorConfigZod,
|
|
9
|
-
BaseConfigZod,
|
|
10
|
-
BlockViewerMoniker,
|
|
11
|
-
JsonRpcBlockViewer,
|
|
12
5
|
ProviderFactoryLocator, RestDataLakeViewer,
|
|
13
6
|
SimpleTransactionViewer,
|
|
14
7
|
SimpleXyoConnectionViewer, SimpleXyoGateway,
|
|
@@ -16,27 +9,12 @@ import {
|
|
|
16
9
|
|
|
17
10
|
import { commonLocatorFromConfig, remoteLocatorFromConfig } from '../../../shared/index.ts'
|
|
18
11
|
|
|
19
|
-
async function getChainIdFromRemote(remoteConfig: RemoteConfig) {
|
|
20
|
-
const locator = new ProviderFactoryLocator({
|
|
21
|
-
config: BaseConfigZod.parse({ remote: remoteConfig }), singletons: {}, caches: {},
|
|
22
|
-
})
|
|
23
|
-
locator.registerMany([
|
|
24
|
-
JsonRpcBlockViewer.factory<JsonRpcBlockViewer>(JsonRpcBlockViewer.dependencies, {}),
|
|
25
|
-
])
|
|
26
|
-
locator.freeze()
|
|
27
|
-
const blockViewer = await locator.getInstance<BlockViewer>(BlockViewerMoniker)
|
|
28
|
-
return assertEx(await blockViewer.chainId(), () => 'Chain ID could not be determined from remote config')
|
|
29
|
-
}
|
|
30
|
-
|
|
31
12
|
export async function basicRemoteViewerLocator(
|
|
32
13
|
name: string,
|
|
33
14
|
remoteConfig: RemoteConfig,
|
|
34
|
-
chainId?: ChainId,
|
|
35
15
|
dataLakeEndpoint?: string,
|
|
36
16
|
) {
|
|
37
|
-
const config = ActorConfigZod.parse({
|
|
38
|
-
name, remote: remoteConfig, chain: { id: chainId ?? await getChainIdFromRemote(remoteConfig) },
|
|
39
|
-
})
|
|
17
|
+
const config = ActorConfigZod.parse({ name, remote: remoteConfig })
|
|
40
18
|
const rootLocator = await commonLocatorFromConfig({
|
|
41
19
|
config, singletons: {}, caches: {},
|
|
42
20
|
})
|
|
@@ -2,7 +2,6 @@ import { isDefined } from '@xylabs/sdk-js'
|
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/sdk-js'
|
|
3
3
|
import { isAccountInstance } from '@xyo-network/sdk-js'
|
|
4
4
|
import type {
|
|
5
|
-
ChainId,
|
|
6
5
|
RemoteConfig, RpcTransport, XyoSignerRpcSchemas,
|
|
7
6
|
} from '@xyo-network/xl1-sdk'
|
|
8
7
|
import {
|
|
@@ -18,10 +17,9 @@ export async function basicRemoteRunnerLocator(
|
|
|
18
17
|
name: string,
|
|
19
18
|
remoteConfig: RemoteConfig,
|
|
20
19
|
signer: RpcTransport<XyoSignerRpcSchemas> | AccountInstance,
|
|
21
|
-
chainId?: ChainId,
|
|
22
20
|
dataLakeEndpoint?: string,
|
|
23
21
|
) {
|
|
24
|
-
const remoteViewerLocator = await basicRemoteViewerLocator(name, remoteConfig,
|
|
22
|
+
const remoteViewerLocator = await basicRemoteViewerLocator(name, remoteConfig, dataLakeEndpoint)
|
|
25
23
|
const locator = new ProviderFactoryLocator(remoteViewerLocator.context, {})
|
|
26
24
|
locator.registerMany([
|
|
27
25
|
SimpleXyoConnectionRunner.factory<SimpleXyoConnectionRunner>(SimpleXyoConnectionRunner.dependencies, {}),
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
BlockViewer,
|
|
4
|
-
ChainId,
|
|
5
|
-
RemoteConfig,
|
|
6
|
-
} from '@xyo-network/xl1-sdk'
|
|
1
|
+
import { isDefined } from '@xylabs/sdk-js'
|
|
2
|
+
import type { RemoteConfig } from '@xyo-network/xl1-sdk'
|
|
7
3
|
import {
|
|
8
4
|
ActorConfigZod,
|
|
9
|
-
|
|
10
|
-
BlockViewerMoniker,
|
|
11
|
-
JsonRpcAccountBalanceViewer, JsonRpcBlockViewer,
|
|
5
|
+
JsonRpcAccountBalanceViewer,
|
|
12
6
|
ProviderFactoryLocator, RestDataLakeViewer,
|
|
13
7
|
SimpleTransactionViewer,
|
|
14
8
|
SimpleXyoConnectionViewer, SimpleXyoGateway,
|
|
@@ -17,27 +11,12 @@ import {
|
|
|
17
11
|
import { remoteLocatorFromConfig } from '../../../shared/index.ts'
|
|
18
12
|
import { rootLocatorFromConfig } from './rootLocatorFromConfig.ts'
|
|
19
13
|
|
|
20
|
-
async function getChainIdFromRemote(remoteConfig: RemoteConfig) {
|
|
21
|
-
const locator = new ProviderFactoryLocator({
|
|
22
|
-
config: BaseConfigZod.parse({ remote: remoteConfig }), singletons: {}, caches: {},
|
|
23
|
-
}, {}, true)
|
|
24
|
-
locator.registerMany([
|
|
25
|
-
JsonRpcBlockViewer.factory<JsonRpcBlockViewer>(JsonRpcBlockViewer.dependencies, {}),
|
|
26
|
-
])
|
|
27
|
-
locator.freeze()
|
|
28
|
-
const blockViewer = await locator.getInstance<BlockViewer>(BlockViewerMoniker)
|
|
29
|
-
return assertEx(await blockViewer.chainId(), () => 'Chain ID could not be determined from remote config')
|
|
30
|
-
}
|
|
31
|
-
|
|
32
14
|
export async function basicRemoteViewerLocator(
|
|
33
15
|
name: string,
|
|
34
16
|
remoteConfig: RemoteConfig,
|
|
35
|
-
chainId?: ChainId,
|
|
36
17
|
dataLakeEndpoint?: string,
|
|
37
18
|
) {
|
|
38
|
-
const config = ActorConfigZod.parse({
|
|
39
|
-
name, remote: remoteConfig, chain: { id: chainId ?? await getChainIdFromRemote(remoteConfig) },
|
|
40
|
-
})
|
|
19
|
+
const config = ActorConfigZod.parse({ name, remote: remoteConfig })
|
|
41
20
|
const rootLocator = await rootLocatorFromConfig({
|
|
42
21
|
config, singletons: {}, caches: {},
|
|
43
22
|
})
|