@novasamatech/host-container 0.6.4 → 0.6.5

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.
@@ -0,0 +1,2 @@
1
+ export declare const JSON_RPC_PROTOCOL_MAP: Readonly<Record<string, string>>;
2
+ export declare const PROTOCOL_TO_RPC_MAP: Readonly<Record<string, string>>;
@@ -0,0 +1,21 @@
1
+ // Maps JSON RPC method names to individual protocol keys
2
+ export const JSON_RPC_PROTOCOL_MAP = {
3
+ chainHead_v1_follow: 'host_chain_head_v1_follow',
4
+ chainHead_v1_unfollow: 'host_chain_head_v1_unfollow',
5
+ chainHead_v1_header: 'host_chain_head_v1_header',
6
+ chainHead_v1_body: 'host_chain_head_v1_body',
7
+ chainHead_v1_call: 'host_chain_head_v1_call',
8
+ chainHead_v1_storage: 'host_chain_head_v1_storage',
9
+ chainHead_v1_continue: 'host_chain_head_v1_continue',
10
+ chainHead_v1_stopOperation: 'host_chain_head_v1_stop_operation',
11
+ chainHead_v1_unpin: 'host_chain_head_v1_unpin',
12
+ chainSpec_v1_chainName: 'host_chain_spec_v1_chain_name',
13
+ chainSpec_v1_genesisHash: 'host_chain_spec_v1_genesis_hash',
14
+ chainSpec_v1_properties: 'host_chain_spec_v1_properties',
15
+ transaction_v1_broadcast: 'host_transaction_v1_broadcast',
16
+ transaction_v1_stop: 'host_transaction_v1_stop',
17
+ transactionWatch_v1_submitAndWatch: 'host_transaction_watch_v1_submit_and_watch',
18
+ transactionWatch_v1_unwatch: 'host_transaction_watch_v1_unwatch',
19
+ };
20
+ // Inverse map: protocol key → expected JSON RPC method (for container validation)
21
+ export const PROTOCOL_TO_RPC_MAP = Object.fromEntries(Object.entries(JSON_RPC_PROTOCOL_MAP).map(([rpc, protocol]) => [protocol, rpc]));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/host-container",
3
3
  "type": "module",
4
- "version": "0.6.4",
4
+ "version": "0.6.5",
5
5
  "description": "Host container for hosting and managing products within the Polkadot ecosystem.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@polkadot-api/utils": "^0.2.0",
30
30
  "@polkadot-api/json-rpc-provider": "^0.0.4",
31
- "@novasamatech/host-api": "0.6.4",
31
+ "@novasamatech/host-api": "0.6.5",
32
32
  "nanoid": "5.1.6"
33
33
  },
34
34
  "devDependencies": {