@xyo-network/xl1-providers 4.0.7 → 4.0.8
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 +98 -7
- package/dist/browser/index.mjs.map +4 -4
- package/dist/browser/locators/basicRestViewerLocator.d.ts +25 -0
- package/dist/browser/locators/basicRestViewerLocator.d.ts.map +1 -0
- package/dist/browser/locators/index.d.ts +1 -0
- package/dist/browser/locators/index.d.ts.map +1 -1
- package/dist/browser/locators/providerCandidates.d.ts.map +1 -1
- package/dist/neutral/index.mjs +98 -7
- package/dist/neutral/index.mjs.map +4 -4
- package/dist/neutral/locators/basicRestViewerLocator.d.ts +25 -0
- package/dist/neutral/locators/basicRestViewerLocator.d.ts.map +1 -0
- package/dist/neutral/locators/index.d.ts +1 -0
- package/dist/neutral/locators/index.d.ts.map +1 -1
- package/dist/neutral/locators/providerCandidates.d.ts.map +1 -1
- package/dist/node/index.mjs +98 -7
- package/dist/node/index.mjs.map +4 -4
- package/dist/node/locators/basicRestViewerLocator.d.ts +25 -0
- package/dist/node/locators/basicRestViewerLocator.d.ts.map +1 -0
- package/dist/node/locators/index.d.ts +1 -0
- package/dist/node/locators/index.d.ts.map +1 -1
- package/dist/node/locators/providerCandidates.d.ts.map +1 -1
- package/package.json +7 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RestConnectionConfig } from '@xyo-network/xl1-protocol-sdk';
|
|
2
|
+
/** REST connection config for the S3-backed static file layout, split by bucket. */
|
|
3
|
+
export interface RestRemoteConfig {
|
|
4
|
+
/** REST connection over the finalized blocks bucket (always required — the base for BlockViewer/ChainStateViewer/ChainContractViewer). */
|
|
5
|
+
blocks: RestConnectionConfig;
|
|
6
|
+
/** REST connection over a separate chain-state bucket, when the head pointer lives apart from finalized blocks. Defaults to `blocks`. */
|
|
7
|
+
chainState?: RestConnectionConfig;
|
|
8
|
+
/** REST connection over a separate index bucket, when step summaries live apart from finalized blocks. Defaults to `blocks`. */
|
|
9
|
+
index?: RestConnectionConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface BasicRestViewerLocatorOptions {
|
|
12
|
+
dataLakeEndpoint?: string;
|
|
13
|
+
/** Custom fetch override for every REST viewer (custom agents, auth headers, tests). Defaults to the global fetch. */
|
|
14
|
+
fetchFn?: typeof globalThis.fetch;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Builds a config-driven, connections-native locator for a REST/S3-backed read-only gateway:
|
|
18
|
+
* `BlockViewer`/`ChainStateViewer`/`FinalizationViewer`/`ChainContractViewer` are bound to REST
|
|
19
|
+
* connections over the S3 static file layout; every other viewer moniker
|
|
20
|
+
* (`synthesizeMemoryViewerBindings`) is bound to a shared `memory` connection, resolving to the
|
|
21
|
+
* `Simple*` implementations that compute their data from the injected `BlockViewer` instead of a
|
|
22
|
+
* dedicated remote source. Mirrors `basicRemoteViewerLocator`'s RPC-based counterpart.
|
|
23
|
+
*/
|
|
24
|
+
export declare function basicRestViewerLocator(name: string, restConfig: RestRemoteConfig, dataLakeEndpoint?: string, options?: BasicRestViewerLocatorOptions): Promise<import("@xyo-network/xl1-protocol-sdk").ProviderFactoryLocatorInstance<import("@xyo-network/xl1-protocol-sdk").CreatableProviderContextType>>;
|
|
25
|
+
//# sourceMappingURL=basicRestViewerLocator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicRestViewerLocator.d.ts","sourceRoot":"","sources":["../../../src/locators/basicRestViewerLocator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACsD,oBAAoB,EACrF,MAAM,+BAA+B,CAAA;AAgBtC,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAC/B,0IAA0I;IAC1I,MAAM,EAAE,oBAAoB,CAAA;IAC5B,yIAAyI;IACzI,UAAU,CAAC,EAAE,oBAAoB,CAAA;IACjC,gIAAgI;IAChI,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAC7B;AAED,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,sHAAsH;IACtH,OAAO,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAA;CAClC;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,gBAAgB,EAC5B,gBAAgB,CAAC,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,6BAA6B,yJAmExC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './baseConfigFactoryLocator.ts';
|
|
2
2
|
export * from './basicRemoteRunnerLocator.ts';
|
|
3
3
|
export * from './basicRemoteViewerLocator.ts';
|
|
4
|
+
export * from './basicRestViewerLocator.ts';
|
|
4
5
|
export * from './locatorFromAdaptedConfig.ts';
|
|
5
6
|
export * from './providerCandidates.ts';
|
|
6
7
|
export * from './remoteLocatorFromConfig.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerCandidates.d.ts","sourceRoot":"","sources":["../../../src/locators/providerCandidates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"providerCandidates.d.ts","sourceRoot":"","sources":["../../../src/locators/providerCandidates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAqH1F,+EAA+E;AAC/E,wBAAgB,qBAAqB,IAAI,kBAAkB,EAAE,CAE5D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/xl1-providers",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"description": "XYO Layer One API",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
@@ -44,10 +44,12 @@
|
|
|
44
44
|
"README.md"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@xyo-network/xl1-
|
|
48
|
-
"@xyo-network/xl1-protocol-
|
|
49
|
-
"@xyo-network/xl1-
|
|
50
|
-
"@xyo-network/xl1-
|
|
47
|
+
"@xyo-network/xl1-driver-memory": "~4.0.8",
|
|
48
|
+
"@xyo-network/xl1-protocol-lib": "~4.0.8",
|
|
49
|
+
"@xyo-network/xl1-rest-block-viewer": "~4.0.8",
|
|
50
|
+
"@xyo-network/xl1-protocol-model": "~4.0.8",
|
|
51
|
+
"@xyo-network/xl1-rpc": "~4.0.8",
|
|
52
|
+
"@xyo-network/xl1-protocol-sdk": "~4.0.8"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
55
|
"@ariestools/sdk": "^7.0.3",
|