@xyo-network/xl1-rpc 2.2.1 → 3.0.0
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/neutral/index.mjs +94 -121
- package/dist/neutral/index.mjs.map +2 -2
- package/dist/neutral/networkTier3Descriptors.d.ts +2 -16
- package/dist/neutral/networkTier3Descriptors.d.ts.map +1 -1
- package/dist/node/index-node.mjs +94 -121
- package/dist/node/index-node.mjs.map +2 -2
- package/dist/node/networkTier3Descriptors.d.ts +2 -16
- package/dist/node/networkTier3Descriptors.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/neutral/index.mjs
CHANGED
|
@@ -2813,130 +2813,103 @@ JsonRpcXyoViewer = __decorateClass([
|
|
|
2813
2813
|
|
|
2814
2814
|
// src/networkTier3Descriptors.ts
|
|
2815
2815
|
var passes = () => true;
|
|
2816
|
-
|
|
2817
|
-
{
|
|
2818
|
-
id
|
|
2819
|
-
satisfies: [
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
surface
|
|
2823
|
-
preconditions: passes,
|
|
2824
|
-
build: () => JsonRpcBlockViewer.factory(JsonRpcBlockViewer.dependencies, {})
|
|
2825
|
-
},
|
|
2826
|
-
{
|
|
2827
|
-
id: "JsonRpcMempoolViewer",
|
|
2828
|
-
satisfies: [JsonRpcMempoolViewer.defaultMoniker],
|
|
2829
|
-
tier: 3,
|
|
2830
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2831
|
-
surface: "node",
|
|
2832
|
-
preconditions: passes,
|
|
2833
|
-
build: () => JsonRpcMempoolViewer.factory(JsonRpcMempoolViewer.dependencies, {})
|
|
2834
|
-
},
|
|
2835
|
-
{
|
|
2836
|
-
id: "JsonRpcMempoolRunner",
|
|
2837
|
-
satisfies: [JsonRpcMempoolRunner.defaultMoniker],
|
|
2838
|
-
tier: 3,
|
|
2839
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2840
|
-
surface: "node",
|
|
2841
|
-
preconditions: passes,
|
|
2842
|
-
build: () => JsonRpcMempoolRunner.factory(JsonRpcMempoolRunner.dependencies, {})
|
|
2843
|
-
},
|
|
2844
|
-
{
|
|
2845
|
-
id: "JsonRpcFinalizationViewer",
|
|
2846
|
-
satisfies: [JsonRpcFinalizationViewer.defaultMoniker],
|
|
2847
|
-
tier: 3,
|
|
2848
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2849
|
-
surface: "node",
|
|
2850
|
-
preconditions: passes,
|
|
2851
|
-
build: () => JsonRpcFinalizationViewer.factory(JsonRpcFinalizationViewer.dependencies, {})
|
|
2852
|
-
},
|
|
2853
|
-
{
|
|
2854
|
-
id: "JsonRpcAccountBalanceViewer",
|
|
2855
|
-
satisfies: [JsonRpcAccountBalanceViewer.defaultMoniker],
|
|
2856
|
-
tier: 3,
|
|
2857
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2858
|
-
// AccountBalanceViewer is a point query (`f(address) → balance`) — node-surface,
|
|
2859
|
-
// even though indexer-backed today on the producer side.
|
|
2860
|
-
surface: "node",
|
|
2861
|
-
preconditions: passes,
|
|
2862
|
-
build: () => JsonRpcAccountBalanceViewer.factory(JsonRpcAccountBalanceViewer.dependencies, {})
|
|
2863
|
-
},
|
|
2864
|
-
{
|
|
2865
|
-
id: "JsonRpcTransactionViewer",
|
|
2866
|
-
satisfies: [JsonRpcTransactionViewer.defaultMoniker],
|
|
2867
|
-
tier: 3,
|
|
2868
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2869
|
-
surface: "node",
|
|
2870
|
-
preconditions: passes,
|
|
2871
|
-
build: () => JsonRpcTransactionViewer.factory(JsonRpcTransactionViewer.dependencies, {})
|
|
2872
|
-
},
|
|
2873
|
-
{
|
|
2874
|
-
id: "JsonRpcTimeSyncViewer",
|
|
2875
|
-
satisfies: [JsonRpcTimeSyncViewer.defaultMoniker],
|
|
2876
|
-
tier: 3,
|
|
2877
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2878
|
-
surface: "node",
|
|
2879
|
-
preconditions: passes,
|
|
2880
|
-
build: () => JsonRpcTimeSyncViewer.factory(JsonRpcTimeSyncViewer.dependencies, {})
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
id: "JsonRpcXyoViewer",
|
|
2884
|
-
satisfies: [JsonRpcXyoViewer.defaultMoniker],
|
|
2885
|
-
tier: 3,
|
|
2886
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2887
|
-
surface: "node",
|
|
2888
|
-
preconditions: passes,
|
|
2889
|
-
build: () => JsonRpcXyoViewer.factory(JsonRpcXyoViewer.dependencies, {})
|
|
2890
|
-
},
|
|
2891
|
-
{
|
|
2892
|
-
id: "JsonRpcXyoRunner",
|
|
2893
|
-
satisfies: [JsonRpcXyoRunner.defaultMoniker],
|
|
2894
|
-
tier: 3,
|
|
2895
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2896
|
-
surface: "node",
|
|
2897
|
-
preconditions: passes,
|
|
2898
|
-
build: () => JsonRpcXyoRunner.factory(JsonRpcXyoRunner.dependencies, {})
|
|
2899
|
-
},
|
|
2900
|
-
{
|
|
2901
|
-
// StakeTotalsViewer.activeByStaked(addr) is a point query keyed by address — node-surface.
|
|
2902
|
-
id: "JsonRpcStakeTotalsViewer",
|
|
2903
|
-
satisfies: [JsonRpcStakeTotalsViewer.defaultMoniker],
|
|
2904
|
-
tier: 3,
|
|
2905
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2906
|
-
surface: "node",
|
|
2816
|
+
function rpcDescriptor(id, moniker, surface, build, planDependencies = []) {
|
|
2817
|
+
return {
|
|
2818
|
+
id,
|
|
2819
|
+
satisfies: [moniker],
|
|
2820
|
+
connectionTypes: ["rpc"],
|
|
2821
|
+
dependencies: planDependencies,
|
|
2822
|
+
surface,
|
|
2907
2823
|
preconditions: passes,
|
|
2908
|
-
build
|
|
2909
|
-
}
|
|
2824
|
+
build
|
|
2825
|
+
};
|
|
2826
|
+
}
|
|
2827
|
+
var nodeNetworkDescriptors = [
|
|
2828
|
+
rpcDescriptor(
|
|
2829
|
+
"JsonRpcBlockViewer",
|
|
2830
|
+
JsonRpcBlockViewer.defaultMoniker,
|
|
2831
|
+
"node",
|
|
2832
|
+
() => JsonRpcBlockViewer.factory(JsonRpcBlockViewer.dependencies, {})
|
|
2833
|
+
),
|
|
2834
|
+
rpcDescriptor(
|
|
2835
|
+
"JsonRpcMempoolViewer",
|
|
2836
|
+
JsonRpcMempoolViewer.defaultMoniker,
|
|
2837
|
+
"node",
|
|
2838
|
+
() => JsonRpcMempoolViewer.factory(JsonRpcMempoolViewer.dependencies, {})
|
|
2839
|
+
),
|
|
2840
|
+
rpcDescriptor(
|
|
2841
|
+
"JsonRpcMempoolRunner",
|
|
2842
|
+
JsonRpcMempoolRunner.defaultMoniker,
|
|
2843
|
+
"node",
|
|
2844
|
+
() => JsonRpcMempoolRunner.factory(JsonRpcMempoolRunner.dependencies, {})
|
|
2845
|
+
),
|
|
2846
|
+
rpcDescriptor(
|
|
2847
|
+
"JsonRpcFinalizationViewer",
|
|
2848
|
+
JsonRpcFinalizationViewer.defaultMoniker,
|
|
2849
|
+
"node",
|
|
2850
|
+
() => JsonRpcFinalizationViewer.factory(JsonRpcFinalizationViewer.dependencies, {})
|
|
2851
|
+
),
|
|
2852
|
+
rpcDescriptor(
|
|
2853
|
+
"JsonRpcAccountBalanceViewer",
|
|
2854
|
+
JsonRpcAccountBalanceViewer.defaultMoniker,
|
|
2855
|
+
"node",
|
|
2856
|
+
() => JsonRpcAccountBalanceViewer.factory(JsonRpcAccountBalanceViewer.dependencies, {})
|
|
2857
|
+
),
|
|
2858
|
+
rpcDescriptor(
|
|
2859
|
+
"JsonRpcTransactionViewer",
|
|
2860
|
+
JsonRpcTransactionViewer.defaultMoniker,
|
|
2861
|
+
"node",
|
|
2862
|
+
() => JsonRpcTransactionViewer.factory(JsonRpcTransactionViewer.dependencies, {}),
|
|
2863
|
+
[...JsonRpcTransactionViewer.dependencies]
|
|
2864
|
+
),
|
|
2865
|
+
rpcDescriptor(
|
|
2866
|
+
"JsonRpcTimeSyncViewer",
|
|
2867
|
+
JsonRpcTimeSyncViewer.defaultMoniker,
|
|
2868
|
+
"node",
|
|
2869
|
+
() => JsonRpcTimeSyncViewer.factory(JsonRpcTimeSyncViewer.dependencies, {})
|
|
2870
|
+
),
|
|
2871
|
+
rpcDescriptor(
|
|
2872
|
+
"JsonRpcXyoViewer",
|
|
2873
|
+
JsonRpcXyoViewer.defaultMoniker,
|
|
2874
|
+
"node",
|
|
2875
|
+
() => JsonRpcXyoViewer.factory(JsonRpcXyoViewer.dependencies, {})
|
|
2876
|
+
),
|
|
2877
|
+
rpcDescriptor(
|
|
2878
|
+
"JsonRpcXyoRunner",
|
|
2879
|
+
JsonRpcXyoRunner.defaultMoniker,
|
|
2880
|
+
"node",
|
|
2881
|
+
() => JsonRpcXyoRunner.factory(JsonRpcXyoRunner.dependencies, {}),
|
|
2882
|
+
[...JsonRpcXyoRunner.dependencies]
|
|
2883
|
+
),
|
|
2884
|
+
rpcDescriptor(
|
|
2885
|
+
"JsonRpcStakeTotalsViewer",
|
|
2886
|
+
JsonRpcStakeTotalsViewer.defaultMoniker,
|
|
2887
|
+
"node",
|
|
2888
|
+
() => JsonRpcStakeTotalsViewer.factory(JsonRpcStakeTotalsViewer.dependencies, {})
|
|
2889
|
+
)
|
|
2910
2890
|
];
|
|
2911
2891
|
var indexedNetworkDescriptors = [
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
satisfies: [JsonRpcNetworkStakeStepRewardsViewer.defaultMoniker],
|
|
2934
|
-
tier: 3,
|
|
2935
|
-
backings: [{ backing: "network", mode: "read" }],
|
|
2936
|
-
surface: "indexed",
|
|
2937
|
-
preconditions: passes,
|
|
2938
|
-
build: () => JsonRpcNetworkStakeStepRewardsViewer.factory(JsonRpcNetworkStakeStepRewardsViewer.dependencies, {})
|
|
2939
|
-
}
|
|
2892
|
+
rpcDescriptor(
|
|
2893
|
+
"JsonRpcStakeViewer",
|
|
2894
|
+
JsonRpcStakeViewer.defaultMoniker,
|
|
2895
|
+
"indexed",
|
|
2896
|
+
() => JsonRpcStakeViewer.factory(JsonRpcStakeViewer.dependencies, {})
|
|
2897
|
+
),
|
|
2898
|
+
rpcDescriptor(
|
|
2899
|
+
"JsonRpcNetworkStakeViewer",
|
|
2900
|
+
JsonRpcNetworkStakeViewer.defaultMoniker,
|
|
2901
|
+
"indexed",
|
|
2902
|
+
() => JsonRpcNetworkStakeViewer.factory(JsonRpcNetworkStakeViewer.dependencies, {})
|
|
2903
|
+
),
|
|
2904
|
+
rpcDescriptor(
|
|
2905
|
+
"JsonRpcNetworkStakeStepRewardsViewer",
|
|
2906
|
+
JsonRpcNetworkStakeStepRewardsViewer.defaultMoniker,
|
|
2907
|
+
"indexed",
|
|
2908
|
+
() => JsonRpcNetworkStakeStepRewardsViewer.factory(
|
|
2909
|
+
JsonRpcNetworkStakeStepRewardsViewer.dependencies,
|
|
2910
|
+
{}
|
|
2911
|
+
)
|
|
2912
|
+
)
|
|
2940
2913
|
];
|
|
2941
2914
|
var networkTier3Descriptors = [
|
|
2942
2915
|
...nodeNetworkDescriptors,
|