starknet 9.5.0-beta.1 → 9.5.0-beta.2

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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [9.5.0-beta.2](https://github.com/starknet-io/starknet.js/compare/v9.5.0-beta.1...v9.5.0-beta.2) (2026-02-17)
2
+
3
+ ### Features
4
+
5
+ - proof & proof facts ([3b157ee](https://github.com/starknet-io/starknet.js/commit/3b157ee7e5a2d10bbfd78969d61f5136d9d89ec4))
6
+ - update account class execute with proofFacts and simulate with initial reads ([c42b787](https://github.com/starknet-io/starknet.js/commit/c42b7876edf254e9f843bdcb496ebe171d01308d))
7
+
1
8
  # [9.5.0-beta.1](https://github.com/starknet-io/starknet.js/compare/v9.4.1-beta.1...v9.5.0-beta.1) (2026-02-16)
2
9
 
3
10
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -761,6 +761,8 @@ type Invocation = CallDetails & {
761
761
  signature?: Signature;
762
762
  /** Proof facts to include in the transaction (RPC 0.10.1+) */
763
763
  proofFacts?: BigNumberish[];
764
+ /** Proof for the transaction (RPC 0.10.1+) */
765
+ proof?: number[];
764
766
  };
765
767
  type Call = CallDetails & {
766
768
  entrypoint: string;
@@ -2461,6 +2463,10 @@ interface UniversalDetails {
2461
2463
  version?: BigNumberish;
2462
2464
  resourceBounds?: ResourceBoundsBN;
2463
2465
  skipValidate?: boolean;
2466
+ /** Proof facts to include in the transaction (RPC 0.10.1+) */
2467
+ proofFacts?: BigNumberish[];
2468
+ /** Proof for the transaction (RPC 0.10.1+) */
2469
+ proof?: number[];
2464
2470
  }
2465
2471
  interface PaymasterDetails {
2466
2472
  feeMode: FeeMode;
@@ -2486,6 +2492,8 @@ type SimulateTransactionDetails = {
2486
2492
  blockIdentifier?: BlockIdentifier;
2487
2493
  skipValidate?: boolean;
2488
2494
  skipExecute?: boolean;
2495
+ /** Include initial storage reads in the trace response (RPC 0.10.1+) */
2496
+ returnInitialReads?: boolean;
2489
2497
  } & Partial<V3TransactionDetails>;
2490
2498
  type StarkProfile = {
2491
2499
  name?: string;
@@ -4423,7 +4431,7 @@ declare class RpcChannel {
4423
4431
  getEvents(eventFilter: RPCSPEC010.EventFilter): Promise<RPCSPEC010.EVENTS_CHUNK>;
4424
4432
  buildTransaction<T extends AccountInvocationItem>(invocation: T, versionType?: 'fee' | 'transaction'): T extends {
4425
4433
  type: typeof ETransactionType.INVOKE;
4426
- } ? RPCSPEC010.INVOKE_TXN_V3 : T extends {
4434
+ } ? RPCSPEC010.BROADCASTED_INVOKE_TXN : T extends {
4427
4435
  type: typeof ETransactionType.DECLARE;
4428
4436
  } ? RPCSPEC010.BROADCASTED_DECLARE_TXN_V3 : T extends {
4429
4437
  type: typeof ETransactionType.DEPLOY_ACCOUNT;
@@ -16461,7 +16461,8 @@ ${indent}}` : "}";
16461
16461
  ...details,
16462
16462
  ...invocation.proofFacts && {
16463
16463
  proof_facts: invocation.proofFacts.map((it) => toHex(it))
16464
- }
16464
+ },
16465
+ ...invocation.proof && { proof: invocation.proof }
16465
16466
  };
16466
16467
  return btx;
16467
16468
  }
@@ -20959,6 +20960,7 @@ ${indent}}` : "}";
20959
20960
  blockIdentifier,
20960
20961
  skipValidate = true,
20961
20962
  skipExecute,
20963
+ returnInitialReads,
20962
20964
  version: providedVersion
20963
20965
  } = details;
20964
20966
  const detailsWithTip = await this.resolveDetailsWithTip(details);
@@ -20972,7 +20974,8 @@ ${indent}}` : "}";
20972
20974
  return super.getSimulateTransaction(accountInvocations, {
20973
20975
  blockIdentifier,
20974
20976
  skipValidate,
20975
- skipExecute
20977
+ skipExecute,
20978
+ returnInitialReads
20976
20979
  });
20977
20980
  }
20978
20981
  async execute(transactions, transactionsDetail = {}) {
@@ -20999,7 +21002,9 @@ ${indent}}` : "}";
20999
21002
  {
21000
21003
  contractAddress: invocation.contractAddress,
21001
21004
  calldata: invocation.calldata,
21002
- signature: invocation.signature
21005
+ signature: invocation.signature,
21006
+ ...transactionsDetail.proofFacts && { proofFacts: transactionsDetail.proofFacts },
21007
+ ...transactionsDetail.proof && { proof: transactionsDetail.proof }
21003
21008
  },
21004
21009
  {
21005
21010
  ...v3Details(detailsWithTip),