@monolythium/core-sdk 0.4.17 → 0.4.18

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.
@@ -6074,9 +6074,23 @@ declare class RpcClient {
6074
6074
  ethChainId(): Promise<bigint>;
6075
6075
  /** Compatibility block-height read. */
6076
6076
  ethBlockNumber(): Promise<bigint>;
6077
- /** `eth_getBalance` — balance + Merkle proof envelope. */
6077
+ /**
6078
+ * `eth_getBalance` — balance + Merkle proof envelope.
6079
+ *
6080
+ * The node may answer with a bare `0x…` hex word or a proof-wrapped
6081
+ * object; both are normalized to a consistent {@link AccountProofResponse}
6082
+ * via {@link normalizeAccountProof} so `.value` is always the bare word.
6083
+ */
6078
6084
  ethGetBalance(address: string, block?: BlockSelector): Promise<AccountProofResponse>;
6079
- /** `eth_getStorageAt` — storage word + Merkle proof. */
6085
+ /**
6086
+ * `eth_getStorageAt` — storage word + Merkle proof.
6087
+ *
6088
+ * The node returns a proof-wrapped object
6089
+ * `{ value, proof, stateRoot, blockNumber }` (some builds use a bare
6090
+ * `0x…` hex word). Both shapes are normalized to a consistent
6091
+ * {@link AccountProofResponse} via {@link normalizeAccountProof}; `.value`
6092
+ * is always the bare storage word (even-length hex, `0x0` when zero).
6093
+ */
6080
6094
  ethGetStorageAt(address: string, slot: string, block?: BlockSelector): Promise<AccountProofResponse>;
6081
6095
  /** `eth_getTransactionCount` — sender nonce. */
6082
6096
  ethGetTransactionCount(address: string, block?: BlockSelector): Promise<bigint>;
@@ -6128,7 +6142,12 @@ declare class RpcClient {
6128
6142
  lythListProviders(capabilityMask: number, cursor?: string | null, limit?: number): Promise<RegistryRecord[]>;
6129
6143
  /** `lyth_getRegistration` — single registry lookup. */
6130
6144
  lythGetRegistration(peerId: string): Promise<RegistryRecord | null>;
6131
- /** `lyth_registryStateProof` — Merkle proof for a registry entry. */
6145
+ /**
6146
+ * `lyth_registryStateProof` — Merkle proof for a registry entry.
6147
+ *
6148
+ * Normalized through {@link normalizeAccountProof} so a bare-hex or
6149
+ * proof-wrapped answer both yield a consistent {@link AccountProofResponse}.
6150
+ */
6132
6151
  lythRegistryStateProof(peerId: string): Promise<AccountProofResponse>;
6133
6152
  /** `lyth_getAccountPolicy` — privacy posture for an account. */
6134
6153
  lythGetAccountPolicy(address: string): Promise<AccountPolicy>;
@@ -6074,9 +6074,23 @@ declare class RpcClient {
6074
6074
  ethChainId(): Promise<bigint>;
6075
6075
  /** Compatibility block-height read. */
6076
6076
  ethBlockNumber(): Promise<bigint>;
6077
- /** `eth_getBalance` — balance + Merkle proof envelope. */
6077
+ /**
6078
+ * `eth_getBalance` — balance + Merkle proof envelope.
6079
+ *
6080
+ * The node may answer with a bare `0x…` hex word or a proof-wrapped
6081
+ * object; both are normalized to a consistent {@link AccountProofResponse}
6082
+ * via {@link normalizeAccountProof} so `.value` is always the bare word.
6083
+ */
6078
6084
  ethGetBalance(address: string, block?: BlockSelector): Promise<AccountProofResponse>;
6079
- /** `eth_getStorageAt` — storage word + Merkle proof. */
6085
+ /**
6086
+ * `eth_getStorageAt` — storage word + Merkle proof.
6087
+ *
6088
+ * The node returns a proof-wrapped object
6089
+ * `{ value, proof, stateRoot, blockNumber }` (some builds use a bare
6090
+ * `0x…` hex word). Both shapes are normalized to a consistent
6091
+ * {@link AccountProofResponse} via {@link normalizeAccountProof}; `.value`
6092
+ * is always the bare storage word (even-length hex, `0x0` when zero).
6093
+ */
6080
6094
  ethGetStorageAt(address: string, slot: string, block?: BlockSelector): Promise<AccountProofResponse>;
6081
6095
  /** `eth_getTransactionCount` — sender nonce. */
6082
6096
  ethGetTransactionCount(address: string, block?: BlockSelector): Promise<bigint>;
@@ -6128,7 +6142,12 @@ declare class RpcClient {
6128
6142
  lythListProviders(capabilityMask: number, cursor?: string | null, limit?: number): Promise<RegistryRecord[]>;
6129
6143
  /** `lyth_getRegistration` — single registry lookup. */
6130
6144
  lythGetRegistration(peerId: string): Promise<RegistryRecord | null>;
6131
- /** `lyth_registryStateProof` — Merkle proof for a registry entry. */
6145
+ /**
6146
+ * `lyth_registryStateProof` — Merkle proof for a registry entry.
6147
+ *
6148
+ * Normalized through {@link normalizeAccountProof} so a bare-hex or
6149
+ * proof-wrapped answer both yield a consistent {@link AccountProofResponse}.
6150
+ */
6132
6151
  lythRegistryStateProof(peerId: string): Promise<AccountProofResponse>;
6133
6152
  /** `lyth_getAccountPolicy` — privacy posture for an account. */
6134
6153
  lythGetAccountPolicy(address: string): Promise<AccountPolicy>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolythium/core-sdk",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "Official TypeScript SDK for Monolythium / LythiumDAG-BFT",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {