shell-sdk 0.7.1 → 0.8.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/CHANGELOG.md +14 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +26 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.0] — 2026-05-06
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- `ShellDecodedProofInput` type: structured proof amendment payload decoded
|
|
7
|
+
from `starkReward` settlement transactions (requires `shell-chain v0.22+`).
|
|
8
|
+
Fields: `layer`, `blockNumber`, `startBlock`, `endBlock`, `nSigs`,
|
|
9
|
+
`compressedSize`, `originalSize`, `settlementTxHash`.
|
|
10
|
+
- `ShellRpcTransaction.decodedInput?: ShellDecodedProofInput | null` — filled
|
|
11
|
+
by the node for `starkReward` system transactions; `null`/absent otherwise.
|
|
12
|
+
- `ShellDecodedProofInput` exported from the package root.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Aligned with `shell-chain v0.22.0` RPC surface.
|
|
16
|
+
|
|
3
17
|
## [0.7.1] — 2026-05-06
|
|
4
18
|
|
|
5
19
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export { adapterFromKeyPair, generateAdapter, generateMlDsa65KeyPair, generateSl
|
|
|
7
7
|
export { buildShellSignature, publicKeyFromHex, ShellSigner, signatureTypeFromKeyType, type SignerAdapter, } from "./signer.js";
|
|
8
8
|
export { AA_MAX_PAYMASTER_CONTEXT, AA_SESSION_KEY_GAS_SURCHARGE } from "./types.js";
|
|
9
9
|
export { formatShellRpcTxType } from "./types.js";
|
|
10
|
-
export type { AaBundle, AaInnerCall, AddressLike, GuardianConfig, HexString, RecoveryProposal, SessionAuth, ShellAccessListItem, ShellBatchInnerCallRequest, ShellBatchInnerGas, ShellCipherParams, ShellEncryptedKey, ShellEstimateBatchRequest, ShellEstimateBatchResult, ShellKnownRpcTxType, ShellIsSponsoredResult, ShellKdfParams, ShellNodeInfo, ShellPaymasterPolicy, ShellReadableTxType, ShellRewardKind, ShellRpcReceipt, ShellRpcTransaction, ShellRpcTransactionSummary, ShellRpcTxType, ShellSendTransactionParams, ShellSignature, ShellStorageProfile, ShellTransactionRequest, ShellTxByAddressPage, ShellTxWitness, ShellWitnessBundle, ShellWitnessRootResult, SignedShellTransaction, SignatureTypeName, } from "./types.js";
|
|
10
|
+
export type { AaBundle, AaInnerCall, AddressLike, GuardianConfig, HexString, RecoveryProposal, SessionAuth, ShellAccessListItem, ShellBatchInnerCallRequest, ShellBatchInnerGas, ShellCipherParams, ShellEncryptedKey, ShellEstimateBatchRequest, ShellEstimateBatchResult, ShellKnownRpcTxType, ShellIsSponsoredResult, ShellKdfParams, ShellNodeInfo, ShellPaymasterPolicy, ShellReadableTxType, ShellRewardKind, ShellRpcReceipt, ShellRpcTransaction, ShellRpcTransactionSummary, ShellRpcTxType, ShellDecodedProofInput, ShellSendTransactionParams, ShellSignature, ShellStorageProfile, ShellTransactionRequest, ShellTxByAddressPage, ShellTxWitness, ShellWitnessBundle, ShellWitnessRootResult, SignedShellTransaction, SignatureTypeName, } from "./types.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -244,6 +244,30 @@ export type ShellRpcTxType = ShellKnownRpcTxType | (string & {});
|
|
|
244
244
|
export type ShellRewardKind = "blockGasReward" | "starkReward";
|
|
245
245
|
/** Human-readable transaction label for wallets, explorers, and apps. */
|
|
246
246
|
export type ShellReadableTxType = "Transfer" | "Contract Create" | "Contract Call" | "AA Batch" | "Block Reward" | "STARK Reward" | "System" | "Transaction";
|
|
247
|
+
/**
|
|
248
|
+
* Decoded proof amendment payload for `starkReward` settlement transactions.
|
|
249
|
+
*
|
|
250
|
+
* Populated by the node when `system_tx_to_rpc` decodes the `StarkReward`
|
|
251
|
+
* proof payload; `null` for non-settlement or non-StarkReward transactions.
|
|
252
|
+
*/
|
|
253
|
+
export interface ShellDecodedProofInput {
|
|
254
|
+
/** STARK compression layer (1 = L1, 2 = L2, …). */
|
|
255
|
+
layer: number;
|
|
256
|
+
/** Terminal block number of the proof range. */
|
|
257
|
+
blockNumber: number;
|
|
258
|
+
/** First block number in the proof range. */
|
|
259
|
+
startBlock: number;
|
|
260
|
+
/** Last block number in the proof range (= blockNumber). */
|
|
261
|
+
endBlock: number;
|
|
262
|
+
/** Number of transaction entries (signatures) compressed. */
|
|
263
|
+
nSigs: number;
|
|
264
|
+
/** Size of the stored proof in bytes. */
|
|
265
|
+
compressedSize: number;
|
|
266
|
+
/** Original (pre-compression) witness size in bytes. */
|
|
267
|
+
originalSize: number;
|
|
268
|
+
/** Hash of the settlement transaction that carried this proof, if finalized. */
|
|
269
|
+
settlementTxHash?: HexString | null;
|
|
270
|
+
}
|
|
247
271
|
/** Shell Chain `eth_getTransactionByHash` transaction shape. */
|
|
248
272
|
export interface ShellRpcTransaction {
|
|
249
273
|
hash: HexString;
|
|
@@ -267,6 +291,8 @@ export interface ShellRpcTransaction {
|
|
|
267
291
|
rewardSourceHash?: HexString | null;
|
|
268
292
|
originalSize?: HexString | null;
|
|
269
293
|
compressedSize?: HexString | null;
|
|
294
|
+
/** Decoded proof payload for `starkReward` settlement transactions (v0.22+). */
|
|
295
|
+
decodedInput?: ShellDecodedProofInput | null;
|
|
270
296
|
}
|
|
271
297
|
/** Shell Chain transaction summary returned in block/address transaction lists. */
|
|
272
298
|
export interface ShellRpcTransactionSummary {
|