@monolythium/core-sdk 0.3.15 → 0.3.16

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.
@@ -2180,6 +2180,12 @@ type TransactionReceipt = {
2180
2180
  * Execution units consumed by this transaction.
2181
2181
  */
2182
2182
  executionUnitsUsed: bigint;
2183
+ /**
2184
+ * Human-readable failure reason when `status == 0` (OBS-1). `None` on
2185
+ * success; carries a short machine-stable label (e.g. `"OutOfGas"`) or
2186
+ * the decoded revert message otherwise. Absent from JSON on success.
2187
+ */
2188
+ revertReason?: string;
2183
2189
  };
2184
2190
 
2185
2191
  /**
@@ -5231,12 +5237,25 @@ interface ClusterNameResponse {
5231
5237
  interface CirculatingSupplyResponse {
5232
5238
  circulatingSupplyLythoshi: string;
5233
5239
  initialSupplyLythoshi: string;
5240
+ /** H1/#60 — cumulative minted native LYTH (block rewards). */
5241
+ totalMintedLythoshi: string;
5234
5242
  totalBurnedLythoshi: string;
5235
5243
  }
5236
5244
  /** `lyth_totalBurned` response. Amount is a decimal lythoshi string (u128). */
5237
5245
  interface TotalBurnedResponse {
5238
5246
  totalBurnedLythoshi: string;
5239
5247
  }
5248
+ /** `lyth_totalMinted` response — cumulative minted native LYTH from block rewards (decimal lythoshi string, H1/#60). */
5249
+ interface TotalMintedResponse {
5250
+ totalMintedLythoshi: string;
5251
+ }
5252
+ /** `lyth_totalSupply` response — authoritative supply accounting (H1/#60). `current = initial + minted − burned`. */
5253
+ interface TotalSupplyResponse {
5254
+ initialSupplyLythoshi: string;
5255
+ totalMintedLythoshi: string;
5256
+ totalBurnedLythoshi: string;
5257
+ currentSupplyLythoshi: string;
5258
+ }
5240
5259
  /** `lyth_swapIntentStatus` response — bridge swap-intent / DKG-reshare lifecycle. */
5241
5260
  interface SwapIntentStatus {
5242
5261
  schemaVersion: number;
@@ -5666,6 +5685,10 @@ declare class RpcClient {
5666
5685
  lythCirculatingSupply(): Promise<CirculatingSupplyResponse>;
5667
5686
  /** `lyth_totalBurned` — cumulative burned native LYTH (decimal lythoshi string). */
5668
5687
  lythTotalBurned(): Promise<TotalBurnedResponse>;
5688
+ /** `lyth_totalMinted` — cumulative minted native LYTH from block rewards (decimal lythoshi string, H1/#60). */
5689
+ lythTotalMinted(): Promise<TotalMintedResponse>;
5690
+ /** `lyth_totalSupply` — authoritative supply accounting: `{ initial, minted, burned, current }` (H1/#60). */
5691
+ lythTotalSupply(): Promise<TotalSupplyResponse>;
5669
5692
  /** `lyth_swapIntentStatus` — bridge swap-intent / DKG-reshare lifecycle for one intent id. */
5670
5693
  lythSwapIntentStatus(intentId: number | bigint | string): Promise<SwapIntentStatus>;
5671
5694
  /**
@@ -2180,6 +2180,12 @@ type TransactionReceipt = {
2180
2180
  * Execution units consumed by this transaction.
2181
2181
  */
2182
2182
  executionUnitsUsed: bigint;
2183
+ /**
2184
+ * Human-readable failure reason when `status == 0` (OBS-1). `None` on
2185
+ * success; carries a short machine-stable label (e.g. `"OutOfGas"`) or
2186
+ * the decoded revert message otherwise. Absent from JSON on success.
2187
+ */
2188
+ revertReason?: string;
2183
2189
  };
2184
2190
 
2185
2191
  /**
@@ -5231,12 +5237,25 @@ interface ClusterNameResponse {
5231
5237
  interface CirculatingSupplyResponse {
5232
5238
  circulatingSupplyLythoshi: string;
5233
5239
  initialSupplyLythoshi: string;
5240
+ /** H1/#60 — cumulative minted native LYTH (block rewards). */
5241
+ totalMintedLythoshi: string;
5234
5242
  totalBurnedLythoshi: string;
5235
5243
  }
5236
5244
  /** `lyth_totalBurned` response. Amount is a decimal lythoshi string (u128). */
5237
5245
  interface TotalBurnedResponse {
5238
5246
  totalBurnedLythoshi: string;
5239
5247
  }
5248
+ /** `lyth_totalMinted` response — cumulative minted native LYTH from block rewards (decimal lythoshi string, H1/#60). */
5249
+ interface TotalMintedResponse {
5250
+ totalMintedLythoshi: string;
5251
+ }
5252
+ /** `lyth_totalSupply` response — authoritative supply accounting (H1/#60). `current = initial + minted − burned`. */
5253
+ interface TotalSupplyResponse {
5254
+ initialSupplyLythoshi: string;
5255
+ totalMintedLythoshi: string;
5256
+ totalBurnedLythoshi: string;
5257
+ currentSupplyLythoshi: string;
5258
+ }
5240
5259
  /** `lyth_swapIntentStatus` response — bridge swap-intent / DKG-reshare lifecycle. */
5241
5260
  interface SwapIntentStatus {
5242
5261
  schemaVersion: number;
@@ -5666,6 +5685,10 @@ declare class RpcClient {
5666
5685
  lythCirculatingSupply(): Promise<CirculatingSupplyResponse>;
5667
5686
  /** `lyth_totalBurned` — cumulative burned native LYTH (decimal lythoshi string). */
5668
5687
  lythTotalBurned(): Promise<TotalBurnedResponse>;
5688
+ /** `lyth_totalMinted` — cumulative minted native LYTH from block rewards (decimal lythoshi string, H1/#60). */
5689
+ lythTotalMinted(): Promise<TotalMintedResponse>;
5690
+ /** `lyth_totalSupply` — authoritative supply accounting: `{ initial, minted, burned, current }` (H1/#60). */
5691
+ lythTotalSupply(): Promise<TotalSupplyResponse>;
5669
5692
  /** `lyth_swapIntentStatus` — bridge swap-intent / DKG-reshare lifecycle for one intent id. */
5670
5693
  lythSwapIntentStatus(intentId: number | bigint | string): Promise<SwapIntentStatus>;
5671
5694
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolythium/core-sdk",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Official TypeScript SDK for Monolythium / LythiumDAG-BFT",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {