starknet 11.6.3 → 11.7.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 +6 -0
- package/dist/index.d.ts +129 -104
- package/dist/index.global.js +42 -18
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +45 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# [11.7.0](https://github.com/starknet-io/starknet.js/compare/v11.6.3...v11.7.0) (2026-11-16)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- add RPC 0.10.5 support (starknet-types-0105, RpcChannel v0_10_5, STRK20 register) ([2ab33e2](https://github.com/starknet-io/starknet.js/commit/2ab33e214627a68ea241d3d56ad8cb2f0d111264))
|
|
6
|
+
|
|
1
7
|
## [11.6.3](https://github.com/starknet-io/starknet.js/compare/v11.6.2...v11.6.3) (2026-11-13)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { PAYMASTER_API, CONTRACT, ETransactionType, EDataAvailabilityMode as EDataAvailabilityMode$1, SUBSCRIPTION_BLOCK_ID, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, OutsideExecutionTypedData, IsSucceeded, TransactionReceipt as TransactionReceipt$1, IsReverted, BLOCK_WITH_TX_HASHES, PRE_CONFIRMED_BLOCK_WITH_TX_HASHES, IsType, ETransactionVersion3 as ETransactionVersion3$1, SUBSCRIPTION_ID, NewHeadsEvent, TXN_FINALITY_STATUS, STATUS_ACCEPTED_ON_L1, StarknetEventsEvent, TransactionsStatusEvent, NewTransactionReceiptsEvent, TXN_STATUS_WITHOUT_L1, NewTransactionEvent, TransactionHash, BlockHash, FAILED_TO_RECEIVE_TXN, NO_TRACE_AVAILABLE, CONTRACT_NOT_FOUND, ENTRYPOINT_NOT_FOUND, BLOCK_NOT_FOUND, INVALID_TXN_INDEX, CLASS_HASH_NOT_FOUND, TXN_HASH_NOT_FOUND, PAGE_SIZE_TOO_BIG, NO_BLOCKS, INVALID_CONTINUATION_TOKEN, TOO_MANY_KEYS_IN_FILTER, CONTRACT_ERROR, TRANSACTION_EXECUTION_ERROR, STORAGE_PROOF_NOT_SUPPORTED, CLASS_ALREADY_DECLARED, INVALID_TRANSACTION_NONCE, INSUFFICIENT_RESOURCES_FOR_VALIDATE, INSUFFICIENT_ACCOUNT_BALANCE, VALIDATION_FAILURE, COMPILATION_FAILED, CONTRACT_CLASS_SIZE_IS_TOO_LARGE, NON_ACCOUNT, DUPLICATE_TX, COMPILED_CLASS_HASH_MISMATCH, UNSUPPORTED_TX_VERSION, UNSUPPORTED_CONTRACT_CLASS_VERSION, UNEXPECTED_ERROR, REPLACEMENT_TRANSACTION_UNDERPRICED, FEE_BELOW_MINIMUM, INVALID_SUBSCRIPTION_ID, TOO_MANY_ADDRESSES_IN_FILTER, TOO_MANY_BLOCKS_BACK, COMPILATION_ERROR, ETransactionVersion as ETransactionVersion$1, STORAGE_RESULT, INVOKE_TXN_V3, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, STRK20_DEPOSIT_ACTION, STRK20_WITHDRAW_ACTION, STRK20_TRANSFER_ACTION, STRK20_INVOKE_ACTION, STRK20_SHADOW_ACCOUNT_INVOKE_ACTION as STRK20_SHADOW_ACCOUNT_INVOKE_ACTION$1, STRK20_CALL_AND_PROOF as STRK20_CALL_AND_PROOF$1, STRK20_PROOF, Address, STRK20_BALANCE_ENTRY, STRK20_DAPP_NAME, FELT as FELT$1, EDAMode as EDAMode$1, TypedDataRevision, StarknetType, StarknetMerkleType, OutsideCallV1, OutsideCallV2, Event as Event$2, EmittedEvent as EmittedEvent$1, AddDeclareTransactionParameters, AddDeclareTransactionResult, AddInvokeTransactionParameters, AddInvokeTransactionResult, AccountDeploymentData, Permission, ChainId, SpecVersion, API_VERSION as API_VERSION$1, STRK20_ACTION as STRK20_ACTION$1 } from '@starknet-io/starknet-types-
|
|
3
|
-
export { STRK20_BALANCE_ENTRY, STRK20_CALLDATA_ITEM, STRK20_CALLDATA_PLACEHOLDER, STRK20_COLLECT_POLICY, STRK20_DAPP_NAME, STRK20_DEPOSIT_ACTION, STRK20_INVOKE_ACTION, STRK20_PROOF, STRK20_TRANSFER_ACTION, STRK20_WITHDRAW_ACTION, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from '@starknet-io/starknet-types-
|
|
1
|
+
import * as RPCSPEC0105 from '@starknet-io/starknet-types-0105';
|
|
2
|
+
import { PAYMASTER_API, CONTRACT, ETransactionType, EDataAvailabilityMode as EDataAvailabilityMode$1, SUBSCRIPTION_BLOCK_ID, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, OutsideExecutionTypedData, IsSucceeded, TransactionReceipt as TransactionReceipt$1, IsReverted, BLOCK_WITH_TX_HASHES, PRE_CONFIRMED_BLOCK_WITH_TX_HASHES, IsType, ETransactionVersion3 as ETransactionVersion3$1, SUBSCRIPTION_ID, NewHeadsEvent, TXN_FINALITY_STATUS, STATUS_ACCEPTED_ON_L1, StarknetEventsEvent, TransactionsStatusEvent, NewTransactionReceiptsEvent, TXN_STATUS_WITHOUT_L1, NewTransactionEvent, TransactionHash, BlockHash, FAILED_TO_RECEIVE_TXN, NO_TRACE_AVAILABLE, CONTRACT_NOT_FOUND, ENTRYPOINT_NOT_FOUND, BLOCK_NOT_FOUND, INVALID_TXN_INDEX, CLASS_HASH_NOT_FOUND, TXN_HASH_NOT_FOUND, PAGE_SIZE_TOO_BIG, NO_BLOCKS, INVALID_CONTINUATION_TOKEN, TOO_MANY_KEYS_IN_FILTER, CONTRACT_ERROR, TRANSACTION_EXECUTION_ERROR, STORAGE_PROOF_NOT_SUPPORTED, CLASS_ALREADY_DECLARED, INVALID_TRANSACTION_NONCE, INSUFFICIENT_RESOURCES_FOR_VALIDATE, INSUFFICIENT_ACCOUNT_BALANCE, VALIDATION_FAILURE, COMPILATION_FAILED, CONTRACT_CLASS_SIZE_IS_TOO_LARGE, NON_ACCOUNT, DUPLICATE_TX, COMPILED_CLASS_HASH_MISMATCH, UNSUPPORTED_TX_VERSION, UNSUPPORTED_CONTRACT_CLASS_VERSION, UNEXPECTED_ERROR, REPLACEMENT_TRANSACTION_UNDERPRICED, FEE_BELOW_MINIMUM, INVALID_SUBSCRIPTION_ID, TOO_MANY_ADDRESSES_IN_FILTER, TOO_MANY_BLOCKS_BACK, COMPILATION_ERROR, ETransactionVersion as ETransactionVersion$1, STORAGE_RESULT, INVOKE_TXN_V3, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, STRK20_REGISTER_ACTION, STRK20_DEPOSIT_ACTION, STRK20_WITHDRAW_ACTION, STRK20_TRANSFER_ACTION, STRK20_INVOKE_ACTION, STRK20_SHADOW_ACCOUNT_INVOKE_ACTION as STRK20_SHADOW_ACCOUNT_INVOKE_ACTION$1, STRK20_CALL_AND_PROOF as STRK20_CALL_AND_PROOF$1, STRK20_PROOF, Address, STRK20_BALANCE_ENTRY, STRK20_DAPP_NAME, FELT as FELT$1, EDAMode as EDAMode$1, TypedDataRevision, StarknetType, StarknetMerkleType, OutsideCallV1, OutsideCallV2, Event as Event$2, EmittedEvent as EmittedEvent$1, AddDeclareTransactionParameters, AddDeclareTransactionResult, AddInvokeTransactionParameters, AddInvokeTransactionResult, AccountDeploymentData, Permission, ChainId, SpecVersion, API_VERSION as API_VERSION$1, STRK20_ACTION as STRK20_ACTION$1 } from '@starknet-io/starknet-types-0105';
|
|
3
|
+
export { STRK20_BALANCE_ENTRY, STRK20_CALLDATA_ITEM, STRK20_CALLDATA_PLACEHOLDER, STRK20_COLLECT_POLICY, STRK20_DAPP_NAME, STRK20_DEPOSIT_ACTION, STRK20_INVOKE_ACTION, STRK20_PROOF, STRK20_REGISTER_ACTION, STRK20_TRANSFER_ACTION, STRK20_WITHDRAW_ACTION, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from '@starknet-io/starknet-types-0105';
|
|
4
4
|
import * as RPC$1 from '@starknet-io/starknet-types-0101';
|
|
5
5
|
import { WatchAssetParameters as WatchAssetParameters$1, AddStarknetChainParameters as AddStarknetChainParameters$1, Signature as Signature$2, AddDeclareTransactionParameters as AddDeclareTransactionParameters$1, AddDeclareTransactionResult as AddDeclareTransactionResult$1, AddInvokeTransactionParameters as AddInvokeTransactionParameters$1, AddInvokeTransactionResult as AddInvokeTransactionResult$1, AccountDeploymentData as AccountDeploymentData$1, Permission as Permission$1, Address as Address$1, ChainId as ChainId$1, TypedData as TypedData$1, SpecVersion as SpecVersion$1, API_VERSION as API_VERSION$2 } from '@starknet-io/starknet-types-0101';
|
|
6
6
|
import * as weierstrass from '@noble/curves/abstract/weierstrass.js';
|
|
@@ -56,13 +56,13 @@ declare namespace jsonrpc {
|
|
|
56
56
|
export type { Error$1 as Error, jsonrpc_ErrorResponseBody as ErrorResponseBody, jsonrpc_RequestBody as RequestBody, jsonrpc_ResponseBody as ResponseBody, jsonrpc_SuccessResponseBody as SuccessResponseBody, jsonrpc_WebSocketEvent as WebSocketEvent };
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
declare const index$
|
|
60
|
-
declare const index$
|
|
61
|
-
declare namespace index$
|
|
59
|
+
declare const index$9_PAYMASTER_API: typeof PAYMASTER_API;
|
|
60
|
+
declare const index$9_RPCSPEC0105: typeof RPCSPEC0105;
|
|
61
|
+
declare namespace index$9 {
|
|
62
62
|
export {
|
|
63
63
|
jsonrpc as JRPC,
|
|
64
|
-
index$
|
|
65
|
-
index$
|
|
64
|
+
index$9_PAYMASTER_API as PAYMASTER_API,
|
|
65
|
+
index$9_RPCSPEC0105 as RPCSPEC0105,
|
|
66
66
|
RPC as RPCSPEC09,
|
|
67
67
|
};
|
|
68
68
|
}
|
|
@@ -490,42 +490,42 @@ declare const ETransactionVersion3: {
|
|
|
490
490
|
readonly V3: "0x3";
|
|
491
491
|
readonly F3: "0x100000000000000000000000000000003";
|
|
492
492
|
};
|
|
493
|
-
type BLOCK_HASH = Merge<
|
|
494
|
-
type BLOCK_NUMBER = Merge<
|
|
495
|
-
type FELT = Merge<
|
|
496
|
-
type TXN_HASH = Merge<
|
|
497
|
-
type PRICE_UNIT = Merge<
|
|
498
|
-
type RESOURCE_PRICE = Merge<
|
|
499
|
-
type SIMULATION_FLAG = Merge<
|
|
500
|
-
type STATE_UPDATE = Merge<
|
|
501
|
-
type PRE_CONFIRMED_STATE_UPDATE = Merge<
|
|
502
|
-
type BlockWithTxHashes = Merge<
|
|
503
|
-
type ContractClassPayload = Merge<
|
|
504
|
-
type DeclaredTransaction = Merge<
|
|
505
|
-
type InvokedTransaction = Merge<
|
|
506
|
-
type DeployedAccountTransaction = Merge<
|
|
507
|
-
type L1_HANDLER_TXN =
|
|
508
|
-
type EDataAvailabilityMode =
|
|
493
|
+
type BLOCK_HASH = Merge<RPCSPEC0105.BLOCK_HASH, RPC.BLOCK_HASH>;
|
|
494
|
+
type BLOCK_NUMBER = Merge<RPCSPEC0105.BLOCK_NUMBER, RPC.BLOCK_NUMBER>;
|
|
495
|
+
type FELT = Merge<RPCSPEC0105.FELT, RPC.FELT>;
|
|
496
|
+
type TXN_HASH = Merge<RPCSPEC0105.TXN_HASH, RPC.TXN_HASH>;
|
|
497
|
+
type PRICE_UNIT = Merge<RPCSPEC0105.PRICE_UNIT, RPC.PRICE_UNIT>;
|
|
498
|
+
type RESOURCE_PRICE = Merge<RPCSPEC0105.RESOURCE_PRICE, RPC.RESOURCE_PRICE>;
|
|
499
|
+
type SIMULATION_FLAG = Merge<RPCSPEC0105.SIMULATION_FLAG, RPC.SIMULATION_FLAG>;
|
|
500
|
+
type STATE_UPDATE = Merge<RPCSPEC0105.STATE_UPDATE, RPC.STATE_UPDATE>;
|
|
501
|
+
type PRE_CONFIRMED_STATE_UPDATE = Merge<RPCSPEC0105.PRE_CONFIRMED_STATE_UPDATE, RPC.PRE_CONFIRMED_STATE_UPDATE>;
|
|
502
|
+
type BlockWithTxHashes = Merge<RPCSPEC0105.BlockWithTxHashes, RPC.BlockWithTxHashes>;
|
|
503
|
+
type ContractClassPayload = Merge<RPCSPEC0105.ContractClass, RPC.ContractClass>;
|
|
504
|
+
type DeclaredTransaction = Merge<RPCSPEC0105.DeclaredTransaction, RPC.DeclaredTransaction>;
|
|
505
|
+
type InvokedTransaction = Merge<RPCSPEC0105.InvokedTransaction, RPC.InvokedTransaction>;
|
|
506
|
+
type DeployedAccountTransaction = Merge<RPCSPEC0105.DeployedAccountTransaction, RPC.DeployedAccountTransaction>;
|
|
507
|
+
type L1_HANDLER_TXN = RPCSPEC0105.L1_HANDLER_TXN;
|
|
508
|
+
type EDataAvailabilityMode = RPCSPEC0105.EDataAvailabilityMode;
|
|
509
509
|
declare const EDataAvailabilityMode: {
|
|
510
510
|
readonly L1: "L1";
|
|
511
511
|
readonly L2: "L2";
|
|
512
512
|
};
|
|
513
|
-
type EDAMode =
|
|
513
|
+
type EDAMode = RPCSPEC0105.EDAMode;
|
|
514
514
|
declare const EDAMode: {
|
|
515
515
|
readonly L1: 0;
|
|
516
516
|
readonly L2: 1;
|
|
517
517
|
};
|
|
518
|
-
type EmittedEvent = Merge<
|
|
519
|
-
type Event$1 = Merge<
|
|
520
|
-
type Receipt = Merge<
|
|
518
|
+
type EmittedEvent = Merge<RPCSPEC0105.EmittedEvent, RPC.EmittedEvent>;
|
|
519
|
+
type Event$1 = Merge<RPCSPEC0105.Event, RPC.Event>;
|
|
520
|
+
type Receipt = Merge<RPCSPEC0105.TransactionReceiptProductionBlock, RPC.TransactionReceiptProductionBlock>;
|
|
521
521
|
/**
|
|
522
522
|
* original response from estimate fee without parsing
|
|
523
523
|
*/
|
|
524
|
-
type FeeEstimate = Merge<
|
|
524
|
+
type FeeEstimate = Merge<RPCSPEC0105.FEE_ESTIMATE, RPC.FEE_ESTIMATE>;
|
|
525
525
|
type ApiEstimateFeeResponse = FeeEstimate[];
|
|
526
|
-
declare function isRPC08Plus_ResourceBounds(entry: ResourceBounds): entry is
|
|
526
|
+
declare function isRPC08Plus_ResourceBounds(entry: ResourceBounds): entry is RPCSPEC0105.ResourceBounds;
|
|
527
527
|
declare function isRPC08Plus_ResourceBoundsBN(entry: ResourceBoundsBN): entry is ResourceBoundsBN;
|
|
528
|
-
type ResourceBounds = Merge<
|
|
528
|
+
type ResourceBounds = Merge<RPCSPEC0105.ResourceBounds, RPC.ResourceBounds>;
|
|
529
529
|
type EventFilter = RPC.EventFilter;
|
|
530
530
|
/**
|
|
531
531
|
* Represents percentage overhead for each resource bound
|
|
@@ -544,36 +544,36 @@ type ResourceBoundsBN = {
|
|
|
544
544
|
[P in keyof ResourceBounds[K]]: bigint;
|
|
545
545
|
} : number;
|
|
546
546
|
};
|
|
547
|
-
type SimulateTransaction = SimpleOneOf<RPC.SimulateTransaction,
|
|
548
|
-
type SimulateTransactionResponse = RPC.SimulateTransactionResponse |
|
|
549
|
-
type INITIAL_READS =
|
|
547
|
+
type SimulateTransaction = SimpleOneOf<RPC.SimulateTransaction, RPCSPEC0105.SimulateTransaction>;
|
|
548
|
+
type SimulateTransactionResponse = RPC.SimulateTransactionResponse | RPCSPEC0105.SimulateTransactionResponse;
|
|
549
|
+
type INITIAL_READS = RPCSPEC0105.INITIAL_READS;
|
|
550
550
|
/** Flags to request additional fields in transaction responses (RPC 0.10.1+) */
|
|
551
|
-
type ETxnResponseFlag =
|
|
551
|
+
type ETxnResponseFlag = RPCSPEC0105.ETxnResponseFlag;
|
|
552
552
|
declare const ETxnResponseFlag: {
|
|
553
553
|
readonly INCLUDE_PROOF_FACTS: "INCLUDE_PROOF_FACTS";
|
|
554
554
|
};
|
|
555
555
|
/** Flags to request additional fields in trace responses (RPC 0.10.1+) */
|
|
556
|
-
type ETraceFlag =
|
|
556
|
+
type ETraceFlag = RPCSPEC0105.ETraceFlag;
|
|
557
557
|
declare const ETraceFlag: {
|
|
558
558
|
readonly RETURN_INITIAL_READS: "RETURN_INITIAL_READS";
|
|
559
559
|
};
|
|
560
560
|
/** Tags for WebSocket transaction subscriptions (RPC 0.10.1+) */
|
|
561
|
-
type ESubscriptionTag =
|
|
561
|
+
type ESubscriptionTag = RPCSPEC0105.ESubscriptionTag;
|
|
562
562
|
declare const ESubscriptionTag: {
|
|
563
563
|
readonly INCLUDE_PROOF_FACTS: "INCLUDE_PROOF_FACTS";
|
|
564
564
|
};
|
|
565
565
|
/** A single transaction trace within a block */
|
|
566
|
-
type BlockTransactionTrace =
|
|
566
|
+
type BlockTransactionTrace = RPCSPEC0105.BlockTransactionTrace;
|
|
567
567
|
/** Block transaction traces with optional initial storage reads (RPC 0.10.1+) */
|
|
568
|
-
type BlockTransactionsTracesWithInitialReads =
|
|
569
|
-
type TransactionTrace = SimpleOneOf<RPC.TRANSACTION_TRACE,
|
|
570
|
-
type TransactionWithHash = Merge<
|
|
571
|
-
type TransactionReceipt = Merge<
|
|
572
|
-
type Methods =
|
|
573
|
-
type TXN_STATUS = Merge<
|
|
574
|
-
type TXN_EXECUTION_STATUS = Merge<
|
|
575
|
-
type TransactionStatus = Merge<
|
|
576
|
-
type ETransactionStatus =
|
|
568
|
+
type BlockTransactionsTracesWithInitialReads = RPCSPEC0105.BlockTransactionsTracesWithInitialReads;
|
|
569
|
+
type TransactionTrace = SimpleOneOf<RPC.TRANSACTION_TRACE, RPCSPEC0105.TRANSACTION_TRACE>;
|
|
570
|
+
type TransactionWithHash = Merge<RPCSPEC0105.TransactionWithHash, RPC.TransactionWithHash>;
|
|
571
|
+
type TransactionReceipt = Merge<RPCSPEC0105.TransactionReceipt, RPC.TransactionReceipt>;
|
|
572
|
+
type Methods = RPCSPEC0105.Methods;
|
|
573
|
+
type TXN_STATUS = Merge<RPCSPEC0105.TXN_STATUS, RPC.TXN_STATUS>;
|
|
574
|
+
type TXN_EXECUTION_STATUS = Merge<RPCSPEC0105.TXN_EXECUTION_STATUS, RPC.TXN_EXECUTION_STATUS>;
|
|
575
|
+
type TransactionStatus = Merge<RPCSPEC0105.TransactionStatus, RPC.TransactionStatus>;
|
|
576
|
+
type ETransactionStatus = RPCSPEC0105.ETransactionStatus;
|
|
577
577
|
declare const ETransactionStatus: {
|
|
578
578
|
readonly RECEIVED: "RECEIVED";
|
|
579
579
|
readonly CANDIDATE: "CANDIDATE";
|
|
@@ -581,13 +581,13 @@ declare const ETransactionStatus: {
|
|
|
581
581
|
readonly ACCEPTED_ON_L2: "ACCEPTED_ON_L2";
|
|
582
582
|
readonly ACCEPTED_ON_L1: "ACCEPTED_ON_L1";
|
|
583
583
|
};
|
|
584
|
-
type ETransactionExecutionStatus =
|
|
584
|
+
type ETransactionExecutionStatus = RPCSPEC0105.ETransactionExecutionStatus;
|
|
585
585
|
declare const ETransactionExecutionStatus: {
|
|
586
586
|
readonly SUCCEEDED: "SUCCEEDED";
|
|
587
587
|
readonly REVERTED: "REVERTED";
|
|
588
588
|
};
|
|
589
|
-
type FEE_ESTIMATE = Merge<
|
|
590
|
-
type EVENTS_CHUNK = Merge<
|
|
589
|
+
type FEE_ESTIMATE = Merge<RPCSPEC0105.FEE_ESTIMATE, RPC.FEE_ESTIMATE>;
|
|
590
|
+
type EVENTS_CHUNK = Merge<RPCSPEC0105.EVENTS_CHUNK, RPC.EVENTS_CHUNK>;
|
|
591
591
|
type TransactionType = RPC.ETransactionType;
|
|
592
592
|
declare const TransactionType: {
|
|
593
593
|
readonly DECLARE: "DECLARE";
|
|
@@ -1005,11 +1005,11 @@ declare class RPCResponseParser implements Omit<ResponseParser, 'parseDeclareCon
|
|
|
1005
1005
|
parseSimulateTransactionResponse(res: SimulateTransactionResponse): SimulateTransactionOverheadResponse;
|
|
1006
1006
|
parseContractClassResponse(res: ContractClassPayload): ContractClassResponse;
|
|
1007
1007
|
parseL1GasPriceResponse(res: BlockWithTxHashes): string;
|
|
1008
|
-
parseStorageResponse(res:
|
|
1008
|
+
parseStorageResponse(res: RPCSPEC0105.FELT | RPCSPEC0105.STORAGE_RESULT): RPCSPEC0105.STORAGE_RESULT;
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
declare abstract class ProviderInterface {
|
|
1012
|
-
abstract channel: RpcChannel$3 | RpcChannel$2 | RpcChannel$1 | RpcChannel;
|
|
1012
|
+
abstract channel: RpcChannel$4 | RpcChannel$3 | RpcChannel$2 | RpcChannel$1 | RpcChannel;
|
|
1013
1013
|
abstract responseParser: RPCResponseParser;
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Gets the Starknet chain Id
|
|
@@ -1140,7 +1140,7 @@ declare abstract class ProviderInterface {
|
|
|
1140
1140
|
* // result = { value: '0x64', last_update_block: 0 }
|
|
1141
1141
|
* ```
|
|
1142
1142
|
*/
|
|
1143
|
-
abstract getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?:
|
|
1143
|
+
abstract getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?: RPCSPEC0105.STORAGE_RESPONSE_FLAG[]): Promise<StorageResponse>;
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Gets the transaction information from a tx id.
|
|
1146
1146
|
*
|
|
@@ -1429,7 +1429,7 @@ declare abstract class ProviderInterface {
|
|
|
1429
1429
|
* @param txHash - transaction hash
|
|
1430
1430
|
* @returns Transaction trace
|
|
1431
1431
|
*/
|
|
1432
|
-
abstract getTransactionTrace(txHash: BigNumberish): Promise<
|
|
1432
|
+
abstract getTransactionTrace(txHash: BigNumberish): Promise<RPCSPEC0105.TRANSACTION_TRACE | RPC.TRANSACTION_TRACE>;
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Get the status of a transaction
|
|
1435
1435
|
* @param transactionHash - transaction hash
|
|
@@ -1472,7 +1472,7 @@ declare abstract class ProviderInterface {
|
|
|
1472
1472
|
* @param blockIdentifier - block identifier
|
|
1473
1473
|
* @returns Fee estimate
|
|
1474
1474
|
*/
|
|
1475
|
-
abstract estimateMessageFee(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<
|
|
1475
|
+
abstract estimateMessageFee(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC0105.FEE_ESTIMATE | RPC.MESSAGE_FEE_ESTIMATE>;
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Get node synchronization status
|
|
1478
1478
|
* @returns Sync status or false if not syncing
|
|
@@ -1483,7 +1483,7 @@ declare abstract class ProviderInterface {
|
|
|
1483
1483
|
* @param eventFilter - event filter
|
|
1484
1484
|
* @returns Events and pagination info
|
|
1485
1485
|
*/
|
|
1486
|
-
abstract getEvents(eventFilter:
|
|
1486
|
+
abstract getEvents(eventFilter: RPCSPEC0105.EventFilter | RPC.EventFilter): Promise<RPCSPEC0105.EVENTS_CHUNK | RPC.EVENTS_CHUNK>;
|
|
1487
1487
|
/**
|
|
1488
1488
|
* Verify in Starknet a signature of a TypedData object or of a given hash.
|
|
1489
1489
|
* @param {BigNumberish | TypedData} message TypedData object to be verified, or message hash to be verified.
|
|
@@ -1525,7 +1525,7 @@ declare abstract class ProviderInterface {
|
|
|
1525
1525
|
* @param transactionHash - L1 transaction hash
|
|
1526
1526
|
* @returns L1 message status
|
|
1527
1527
|
*/
|
|
1528
|
-
abstract getL1MessagesStatus(transactionHash: BigNumberish): Promise<
|
|
1528
|
+
abstract getL1MessagesStatus(transactionHash: BigNumberish): Promise<RPCSPEC0105.L1L2MessagesStatus | RPC.L1L2MessagesStatus>;
|
|
1529
1529
|
/**
|
|
1530
1530
|
* Get Merkle paths in state tries
|
|
1531
1531
|
* @param classHashes - class hashes
|
|
@@ -2432,7 +2432,7 @@ type EstimateFeeResponseBulkOverhead = Array<EstimateFeeResponseOverhead>;
|
|
|
2432
2432
|
type InvokeFunctionResponse = InvokedTransaction;
|
|
2433
2433
|
type DeclareContractResponse = DeclaredTransaction;
|
|
2434
2434
|
type CallContractResponse = string[];
|
|
2435
|
-
type StorageResponse =
|
|
2435
|
+
type StorageResponse = RPCSPEC0105.STORAGE_RESULT;
|
|
2436
2436
|
type Nonce = string;
|
|
2437
2437
|
type SimulationFlags = Array<SIMULATION_FLAG>;
|
|
2438
2438
|
type SimulateTransactionOverhead = {
|
|
@@ -3475,7 +3475,7 @@ interface SubscribeNewTransactionsParams {
|
|
|
3475
3475
|
/** Filter by sender addresses */
|
|
3476
3476
|
senderAddress?: BigNumberish[];
|
|
3477
3477
|
/** Subscription tags for additional data (RPC 0.10.1+) */
|
|
3478
|
-
tags?:
|
|
3478
|
+
tags?: RPCSPEC0105.SUBSCRIPTION_TAG[];
|
|
3479
3479
|
}
|
|
3480
3480
|
type SubscriptionNewHeadsEvent = Subscription<NewHeadsEvent['result']>;
|
|
3481
3481
|
type SubscriptionStarknetEventsEvent = Subscription<StarknetEventsEvent['result']>;
|
|
@@ -8382,18 +8382,20 @@ declare const _SupportedRpcVersion: {
|
|
|
8382
8382
|
readonly '0.10.2': "0.10.2";
|
|
8383
8383
|
readonly '0.10.3': "0.10.3";
|
|
8384
8384
|
readonly '0.10.4': "0.10.4";
|
|
8385
|
+
readonly '0.10.5': "0.10.5";
|
|
8385
8386
|
readonly v0_9_0: "0.9.0";
|
|
8386
8387
|
readonly v0_10_0: "0.10.0";
|
|
8387
8388
|
readonly v0_10_2: "0.10.2";
|
|
8388
8389
|
readonly v0_10_3: "0.10.3";
|
|
8389
8390
|
readonly v0_10_4: "0.10.4";
|
|
8391
|
+
readonly v0_10_5: "0.10.5";
|
|
8390
8392
|
};
|
|
8391
8393
|
type _SupportedRpcVersion = ValuesType<typeof _SupportedRpcVersion>;
|
|
8392
8394
|
|
|
8393
8395
|
/**
|
|
8394
8396
|
* Union of RPC 0.10.x dot-format versions (spec 0.10.0 family).
|
|
8395
8397
|
*/
|
|
8396
|
-
type SupportedRpcVersion0_10 = typeof _SupportedRpcVersion.v0_10_0 | typeof _SupportedRpcVersion.v0_10_2 | typeof _SupportedRpcVersion.v0_10_3 | typeof _SupportedRpcVersion.v0_10_4;
|
|
8398
|
+
type SupportedRpcVersion0_10 = typeof _SupportedRpcVersion.v0_10_0 | typeof _SupportedRpcVersion.v0_10_2 | typeof _SupportedRpcVersion.v0_10_3 | typeof _SupportedRpcVersion.v0_10_4 | typeof _SupportedRpcVersion.v0_10_5;
|
|
8397
8399
|
type SupportedTransactionVersion = typeof ETransactionVersion$1.V3;
|
|
8398
8400
|
type SupportedCairoVersion = '1';
|
|
8399
8401
|
/**
|
|
@@ -8543,7 +8545,7 @@ type SubscriptionChannelOptions = {
|
|
|
8543
8545
|
* sub.on((header) => console.log(header.block_number));
|
|
8544
8546
|
* ```
|
|
8545
8547
|
*/
|
|
8546
|
-
declare class SubscriptionChannel$
|
|
8548
|
+
declare class SubscriptionChannel$4 {
|
|
8547
8549
|
readonly id: string;
|
|
8548
8550
|
readonly channelSpecVersion: _SupportedRpcVersion;
|
|
8549
8551
|
protected readonly transport: WsTransport;
|
|
@@ -8698,7 +8700,7 @@ declare class SubscriptionChannel$3 {
|
|
|
8698
8700
|
close(): void;
|
|
8699
8701
|
}
|
|
8700
8702
|
|
|
8701
|
-
declare class RpcChannel$
|
|
8703
|
+
declare class RpcChannel$4 {
|
|
8702
8704
|
readonly id = "RPC090";
|
|
8703
8705
|
/**
|
|
8704
8706
|
* RPC specification version this Channel class implements
|
|
@@ -8721,7 +8723,7 @@ declare class RpcChannel$3 {
|
|
|
8721
8723
|
/** Carries envelopes to the node. `HttpTransport` unless the caller injected its own. */
|
|
8722
8724
|
private transport;
|
|
8723
8725
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
8724
|
-
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | undefined;
|
|
8726
|
+
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | "0.10.5" | undefined;
|
|
8725
8727
|
private get transactionRetryIntervalDefault();
|
|
8726
8728
|
setChainId(chainId: _StarknetChainId): void;
|
|
8727
8729
|
/**
|
|
@@ -8743,7 +8745,7 @@ declare class RpcChannel$3 {
|
|
|
8743
8745
|
* fetch if undefined else just return this.specVersion
|
|
8744
8746
|
* @example this.specVersion = "0.9.0"
|
|
8745
8747
|
*/
|
|
8746
|
-
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4">;
|
|
8748
|
+
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | "0.10.5">;
|
|
8747
8749
|
/**
|
|
8748
8750
|
* Given an l1 tx hash, returns the associated l1_handler tx hashes and statuses for all L1 -> L2 messages sent by the l1 transaction, ordered by the l1 tx sending order
|
|
8749
8751
|
*/
|
|
@@ -8862,18 +8864,18 @@ declare class RpcChannel$3 {
|
|
|
8862
8864
|
* expose the same five subscription method names. Params and result types differ; the method set
|
|
8863
8865
|
* does not. So this is a trivial `extends`, and the axis exists for the day a version adds one.
|
|
8864
8866
|
*/
|
|
8865
|
-
declare class SubscriptionChannel$
|
|
8867
|
+
declare class SubscriptionChannel$3 extends SubscriptionChannel$4 {
|
|
8866
8868
|
readonly id = "RPC0.9.0-subscriptions";
|
|
8867
8869
|
readonly channelSpecVersion: _SupportedRpcVersion;
|
|
8868
8870
|
}
|
|
8869
8871
|
|
|
8870
|
-
type index$
|
|
8871
|
-
declare namespace index$
|
|
8872
|
-
export { RpcChannel$
|
|
8873
|
-
export type { index$
|
|
8872
|
+
type index$8_SubscriptionChannelOptions = SubscriptionChannelOptions;
|
|
8873
|
+
declare namespace index$8 {
|
|
8874
|
+
export { RpcChannel$4 as RpcChannel, SubscriptionChannel$3 as SubscriptionChannel };
|
|
8875
|
+
export type { index$8_SubscriptionChannelOptions as SubscriptionChannelOptions };
|
|
8874
8876
|
}
|
|
8875
8877
|
|
|
8876
|
-
declare class RpcChannel$
|
|
8878
|
+
declare class RpcChannel$3 {
|
|
8877
8879
|
readonly id: string;
|
|
8878
8880
|
/**
|
|
8879
8881
|
* RPC specification version this Channel class implements
|
|
@@ -8896,7 +8898,7 @@ declare class RpcChannel$2 {
|
|
|
8896
8898
|
/** Carries envelopes to the node. `HttpTransport` unless the caller injected its own. */
|
|
8897
8899
|
private transport;
|
|
8898
8900
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
8899
|
-
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | undefined;
|
|
8901
|
+
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | "0.10.5" | undefined;
|
|
8900
8902
|
private get transactionRetryIntervalDefault();
|
|
8901
8903
|
setChainId(chainId: _StarknetChainId): void;
|
|
8902
8904
|
/**
|
|
@@ -8918,7 +8920,7 @@ declare class RpcChannel$2 {
|
|
|
8918
8920
|
* fetch if undefined else just return this.specVersion
|
|
8919
8921
|
* @example this.specVersion = "0.9.0"
|
|
8920
8922
|
*/
|
|
8921
|
-
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4">;
|
|
8923
|
+
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | "0.10.5">;
|
|
8922
8924
|
/**
|
|
8923
8925
|
* Given an l1 tx hash, returns the associated l1_handler tx hashes and statuses for all L1 -> L2 messages sent by the l1 transaction, ordered by the l1 tx sending order
|
|
8924
8926
|
*/
|
|
@@ -9095,9 +9097,29 @@ declare class RpcChannel$2 {
|
|
|
9095
9097
|
} ? RPC$1.DEPLOY_ACCOUNT_TXN_V3 : never>;
|
|
9096
9098
|
}
|
|
9097
9099
|
|
|
9100
|
+
type index$7_SubscriptionChannelOptions = SubscriptionChannelOptions;
|
|
9101
|
+
declare namespace index$7 {
|
|
9102
|
+
export { RpcChannel$3 as RpcChannel, SubscriptionChannel$4 as SubscriptionChannel };
|
|
9103
|
+
export type { index$7_SubscriptionChannelOptions as SubscriptionChannelOptions };
|
|
9104
|
+
}
|
|
9105
|
+
|
|
9106
|
+
declare class RpcChannel$2 extends RpcChannel$3 {
|
|
9107
|
+
readonly id: string;
|
|
9108
|
+
readonly channelSpecVersion: _SupportedRpcVersion;
|
|
9109
|
+
}
|
|
9110
|
+
|
|
9111
|
+
/**
|
|
9112
|
+
* Spec 0.10.3 serves the same five subscription methods as 0.10.2, so this exists for the version
|
|
9113
|
+
* axis rather than for behaviour — the same reason `rpc_0_10_3.ts` is an eight-line `extends`.
|
|
9114
|
+
*/
|
|
9115
|
+
declare class SubscriptionChannel$2 extends SubscriptionChannel$4 {
|
|
9116
|
+
readonly id = "RPC0.10.3-subscriptions";
|
|
9117
|
+
readonly channelSpecVersion: _SupportedRpcVersion;
|
|
9118
|
+
}
|
|
9119
|
+
|
|
9098
9120
|
type index$6_SubscriptionChannelOptions = SubscriptionChannelOptions;
|
|
9099
9121
|
declare namespace index$6 {
|
|
9100
|
-
export { RpcChannel$2 as RpcChannel, SubscriptionChannel$
|
|
9122
|
+
export { RpcChannel$2 as RpcChannel, SubscriptionChannel$2 as SubscriptionChannel };
|
|
9101
9123
|
export type { index$6_SubscriptionChannelOptions as SubscriptionChannelOptions };
|
|
9102
9124
|
}
|
|
9103
9125
|
|
|
@@ -9107,11 +9129,12 @@ declare class RpcChannel$1 extends RpcChannel$2 {
|
|
|
9107
9129
|
}
|
|
9108
9130
|
|
|
9109
9131
|
/**
|
|
9110
|
-
*
|
|
9111
|
-
*
|
|
9132
|
+
* Verified against the installed type packages: `starknet-types-0103` and `starknet-types-0104`
|
|
9133
|
+
* declare the same five subscription method names. So this exists for the version axis rather
|
|
9134
|
+
* than for behaviour — the same reason `rpc_0_10_4.ts` is an eight-line `extends`.
|
|
9112
9135
|
*/
|
|
9113
|
-
declare class SubscriptionChannel$1 extends SubscriptionChannel$
|
|
9114
|
-
readonly id = "RPC0.10.
|
|
9136
|
+
declare class SubscriptionChannel$1 extends SubscriptionChannel$4 {
|
|
9137
|
+
readonly id = "RPC0.10.4-subscriptions";
|
|
9115
9138
|
readonly channelSpecVersion: _SupportedRpcVersion;
|
|
9116
9139
|
}
|
|
9117
9140
|
|
|
@@ -9122,17 +9145,17 @@ declare namespace index$5 {
|
|
|
9122
9145
|
}
|
|
9123
9146
|
|
|
9124
9147
|
declare class RpcChannel extends RpcChannel$1 {
|
|
9125
|
-
readonly id = "RPC0.10.
|
|
9148
|
+
readonly id = "RPC0.10.5";
|
|
9126
9149
|
readonly channelSpecVersion: _SupportedRpcVersion;
|
|
9127
9150
|
}
|
|
9128
9151
|
|
|
9129
9152
|
/**
|
|
9130
|
-
* Verified against the installed type packages: `starknet-types-
|
|
9153
|
+
* Verified against the installed type packages: `starknet-types-0104` and `starknet-types-0105`
|
|
9131
9154
|
* declare the same five subscription method names. So this exists for the version axis rather
|
|
9132
|
-
* than for behaviour — the same reason `
|
|
9155
|
+
* than for behaviour — the same reason `rpc_0_10_5.ts` is an eight-line `extends`.
|
|
9133
9156
|
*/
|
|
9134
|
-
declare class SubscriptionChannel extends SubscriptionChannel$
|
|
9135
|
-
readonly id = "RPC0.10.
|
|
9157
|
+
declare class SubscriptionChannel extends SubscriptionChannel$4 {
|
|
9158
|
+
readonly id = "RPC0.10.5-subscriptions";
|
|
9136
9159
|
readonly channelSpecVersion: _SupportedRpcVersion;
|
|
9137
9160
|
}
|
|
9138
9161
|
|
|
@@ -9429,7 +9452,7 @@ interface RpcProvider extends StarknetIdProviderMethods, BrotherIdProviderMethod
|
|
|
9429
9452
|
}
|
|
9430
9453
|
declare class RpcProvider implements ProviderInterface {
|
|
9431
9454
|
responseParser: RPCResponseParser;
|
|
9432
|
-
channel: RpcChannel$3 | RpcChannel$2 | RpcChannel$1 | RpcChannel;
|
|
9455
|
+
channel: RpcChannel$4 | RpcChannel$3 | RpcChannel$2 | RpcChannel$1 | RpcChannel;
|
|
9433
9456
|
/** @internal Plugin management infrastructure */
|
|
9434
9457
|
readonly pluginManager: PluginManager;
|
|
9435
9458
|
constructor(optionsOrProvider?: RpcProviderOptions | ProviderInterface | RpcProvider);
|
|
@@ -9453,9 +9476,9 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
9453
9476
|
use<T extends Record<string, any>>(plugin: StarknetPlugin<T, any>): this & T;
|
|
9454
9477
|
fetch(method: string, params?: object, id?: string | number): Promise<any>;
|
|
9455
9478
|
getChainId(): Promise<"0x534e5f4d41494e" | "0x534e5f5345504f4c4941">;
|
|
9456
|
-
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | undefined;
|
|
9479
|
+
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | "0.10.5" | undefined;
|
|
9457
9480
|
getSpecVersion(): Promise<string>;
|
|
9458
|
-
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4">;
|
|
9481
|
+
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4" | "0.10.5">;
|
|
9459
9482
|
getStarknetVersion(blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
9460
9483
|
getNonceForAddress(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
9461
9484
|
getBlock(): Promise<Block$1>;
|
|
@@ -9608,12 +9631,12 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
9608
9631
|
transaction_hash: RPC.TXN_HASH;
|
|
9609
9632
|
})>;
|
|
9610
9633
|
getTransactionReceipt(txHash: BigNumberish): Promise<GetTransactionReceiptResponse>;
|
|
9611
|
-
getTransactionTrace<V extends _SupportedRpcVersion = _SupportedRpcVersion>(txHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ?
|
|
9612
|
-
getTransactionTrace(txHash: BigNumberish): Promise<
|
|
9634
|
+
getTransactionTrace<V extends _SupportedRpcVersion = _SupportedRpcVersion>(txHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0105.TRANSACTION_TRACE : RPC.TRANSACTION_TRACE>;
|
|
9635
|
+
getTransactionTrace(txHash: BigNumberish): Promise<RPCSPEC0105.TRANSACTION_TRACE | RPC.TRANSACTION_TRACE>;
|
|
9613
9636
|
getTransactionStatus(transactionHash: BigNumberish): Promise<RPC.TXN_STATUS_RESULT>;
|
|
9614
9637
|
getSimulateTransaction(invocations: AccountInvocations, options?: getSimulateTransactionOptions): Promise<SimulateTransactionOverheadResponse>;
|
|
9615
9638
|
waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<GetTransactionReceiptResponse>;
|
|
9616
|
-
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?:
|
|
9639
|
+
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?: RPCSPEC0105.STORAGE_RESPONSE_FLAG[]): Promise<STORAGE_RESULT>;
|
|
9617
9640
|
getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
9618
9641
|
getClassByHash(classHash: BigNumberish): Promise<LegacyContractClass | Omit<CompiledSierra, "sierra_program_debug_info">>;
|
|
9619
9642
|
getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<LegacyContractClass | Omit<CompiledSierra, "sierra_program_debug_info">>;
|
|
@@ -9738,11 +9761,11 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
9738
9761
|
transaction_hash: string;
|
|
9739
9762
|
}>;
|
|
9740
9763
|
callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
|
|
9741
|
-
estimateMessageFee<V extends _SupportedRpcVersion = _SupportedRpcVersion>(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<V extends SupportedRpcVersion0_10 ?
|
|
9742
|
-
estimateMessageFee(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<
|
|
9764
|
+
estimateMessageFee<V extends _SupportedRpcVersion = _SupportedRpcVersion>(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0105.FEE_ESTIMATE : RPC.MESSAGE_FEE_ESTIMATE>;
|
|
9765
|
+
estimateMessageFee(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC0105.FEE_ESTIMATE | RPC.MESSAGE_FEE_ESTIMATE>;
|
|
9743
9766
|
getSyncingStats(): Promise<RPC.Syncing>;
|
|
9744
|
-
getEvents<V extends _SupportedRpcVersion = _SupportedRpcVersion>(eventFilter: V extends SupportedRpcVersion0_10 ?
|
|
9745
|
-
getEvents(eventFilter:
|
|
9767
|
+
getEvents<V extends _SupportedRpcVersion = _SupportedRpcVersion>(eventFilter: V extends SupportedRpcVersion0_10 ? RPCSPEC0105.EventFilter : RPC.EventFilter): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0105.EVENTS_CHUNK : RPC.EVENTS_CHUNK>;
|
|
9768
|
+
getEvents(eventFilter: RPCSPEC0105.EventFilter | RPC.EventFilter): Promise<RPCSPEC0105.EVENTS_CHUNK | RPC.EVENTS_CHUNK>;
|
|
9746
9769
|
verifyMessageInStarknet(message: BigNumberish | TypedData, signature: Signature, accountAddress: BigNumberish, signatureVerificationFunctionName?: string, signatureVerificationResponse?: {
|
|
9747
9770
|
okResponse: string[];
|
|
9748
9771
|
nokResponse: string[];
|
|
@@ -9750,8 +9773,8 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
9750
9773
|
}): Promise<boolean>;
|
|
9751
9774
|
isClassDeclared(contractClassIdentifier: ContractClassIdentifier, blockIdentifier?: BlockIdentifier): Promise<boolean>;
|
|
9752
9775
|
prepareInvocations(invocations: Invocations): Promise<Invocations>;
|
|
9753
|
-
getL1MessagesStatus<V extends _SupportedRpcVersion = _SupportedRpcVersion>(transactionHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ?
|
|
9754
|
-
getL1MessagesStatus(transactionHash: BigNumberish): Promise<
|
|
9776
|
+
getL1MessagesStatus<V extends _SupportedRpcVersion = _SupportedRpcVersion>(transactionHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0105.L1L2MessagesStatus : RPC.L1L2MessagesStatus>;
|
|
9777
|
+
getL1MessagesStatus(transactionHash: BigNumberish): Promise<RPCSPEC0105.L1L2MessagesStatus | RPC.L1L2MessagesStatus>;
|
|
9755
9778
|
getStorageProof(classHashes: BigNumberish[], contractAddresses: BigNumberish[], contractsStorageKeys: CONTRACT_STORAGE_KEYS[], blockIdentifier?: BlockIdentifier): Promise<StorageProof>;
|
|
9756
9779
|
getCompiledCasm(classHash: BigNumberish): Promise<CASM_COMPILED_CONTRACT_CLASS>;
|
|
9757
9780
|
getEstimateTip(blockIdentifier?: BlockIdentifier, options?: TipAnalysisOptions): Promise<TipEstimate>;
|
|
@@ -9769,7 +9792,7 @@ type WebSocketProviderOptions = RpcProviderOptions & Omit<Partial<ReconnectingWs
|
|
|
9769
9792
|
transport?: WsTransport;
|
|
9770
9793
|
};
|
|
9771
9794
|
/** The subscription channel of a given spec version. */
|
|
9772
|
-
type AnySubscriptionChannel = SubscriptionChannel$
|
|
9795
|
+
type AnySubscriptionChannel = SubscriptionChannel$3 | SubscriptionChannel;
|
|
9773
9796
|
/**
|
|
9774
9797
|
* An `RpcProvider` whose requests and subscriptions share one WebSocket.
|
|
9775
9798
|
*
|
|
@@ -9856,7 +9879,7 @@ declare function verifyMessageInStarknet(provider: ProviderInterface, message: B
|
|
|
9856
9879
|
error: string[];
|
|
9857
9880
|
}): Promise<boolean>;
|
|
9858
9881
|
|
|
9859
|
-
declare function getGasPrices(channel: RpcChannel$
|
|
9882
|
+
declare function getGasPrices(channel: RpcChannel$4 | RpcChannel$3, blockIdentifier?: BlockIdentifier): Promise<GasPrices>;
|
|
9860
9883
|
|
|
9861
9884
|
/**
|
|
9862
9885
|
* @deprecated Use {@link RpcProvider} instead. `Provider` is an alias of it, kept only for
|
|
@@ -10173,8 +10196,8 @@ declare class WalletAccount extends Account {
|
|
|
10173
10196
|
switchStarknetChain(chainId: _StarknetChainId): Promise<boolean>;
|
|
10174
10197
|
watchAsset(asset: WatchAssetParameters): Promise<boolean>;
|
|
10175
10198
|
addStarknetChain(chain: AddStarknetChainParameters): Promise<boolean>;
|
|
10176
|
-
execute(calls: AllowArray<Call>): Promise<
|
|
10177
|
-
declare(payload: DeclareContractPayload): Promise<
|
|
10199
|
+
execute(calls: AllowArray<Call>): Promise<RPCSPEC0105.AddInvokeTransactionResult>;
|
|
10200
|
+
declare(payload: DeclareContractPayload): Promise<RPCSPEC0105.AddDeclareTransactionResult>;
|
|
10178
10201
|
deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[]): Promise<MultiDeployContractResponse>;
|
|
10179
10202
|
signMessage(typedData: TypedData): Promise<Signature$1>;
|
|
10180
10203
|
static connect(provider: ProviderOptions | ProviderInterface, walletProvider: StarknetWalletProvider, cairoVersion?: CairoVersion, paymaster?: PaymasterOptions | PaymasterInterface, silentMode?: boolean): Promise<WalletAccount>;
|
|
@@ -10447,7 +10470,7 @@ type STRK20_SHADOW_ACCOUNT_INVOKE_ACTION = Omit<STRK20_SHADOW_ACCOUNT_INVOKE_ACT
|
|
|
10447
10470
|
};
|
|
10448
10471
|
/**
|
|
10449
10472
|
* A single action to perform via the STRK20 privacy protocol. The `type` field
|
|
10450
|
-
* discriminates the variant.
|
|
10473
|
+
* discriminates the variant. A `register` action must be the only action of its request.
|
|
10451
10474
|
* @example
|
|
10452
10475
|
* ```typescript
|
|
10453
10476
|
* const actions: STRK20_ACTION[] = [
|
|
@@ -10463,7 +10486,7 @@ type STRK20_SHADOW_ACCOUNT_INVOKE_ACTION = Omit<STRK20_SHADOW_ACCOUNT_INVOKE_ACT
|
|
|
10463
10486
|
* ];
|
|
10464
10487
|
* ```
|
|
10465
10488
|
*/
|
|
10466
|
-
type STRK20_ACTION = STRK20_DEPOSIT_ACTION | STRK20_WITHDRAW_ACTION | STRK20_TRANSFER_ACTION | STRK20_INVOKE_ACTION | STRK20_SHADOW_ACCOUNT_INVOKE_ACTION;
|
|
10489
|
+
type STRK20_ACTION = STRK20_REGISTER_ACTION | STRK20_DEPOSIT_ACTION | STRK20_WITHDRAW_ACTION | STRK20_TRANSFER_ACTION | STRK20_INVOKE_ACTION | STRK20_SHADOW_ACCOUNT_INVOKE_ACTION;
|
|
10467
10490
|
/**
|
|
10468
10491
|
* A Starknet call built by the wallet, together with the SNIP-36 zero-knowledge proof
|
|
10469
10492
|
* needed to submit it. In simulate mode the proof fields are present but empty, in which
|
|
@@ -10563,7 +10586,7 @@ declare class WalletAccountV6 extends WalletAccountV6_base {
|
|
|
10563
10586
|
* // result = { transaction_hash: '0x6f7d...' }
|
|
10564
10587
|
* ```
|
|
10565
10588
|
*/
|
|
10566
|
-
executeWithProof(calls: AllowArray<Call>, proof?: STRK20_PROOF): Promise<
|
|
10589
|
+
executeWithProof(calls: AllowArray<Call>, proof?: STRK20_PROOF): Promise<RPCSPEC0105.AddInvokeTransactionResult>;
|
|
10567
10590
|
/**
|
|
10568
10591
|
* Get the private balances held by the user inside the STRK20 privacy pool.
|
|
10569
10592
|
*
|
|
@@ -10609,8 +10632,10 @@ declare class WalletAccountV6 extends WalletAccountV6_base {
|
|
|
10609
10632
|
strk20PrepareInvoke(actions: STRK20_ACTION[], simulate?: boolean): Promise<STRK20_CALL_AND_PROOF>;
|
|
10610
10633
|
/**
|
|
10611
10634
|
* Submit STRK20 actions as a single atomic transaction. The wallet displays an approval
|
|
10612
|
-
* UI, generates the SNIP-36 proof, adds the fee action
|
|
10613
|
-
* take significantly longer than a standard invoke.
|
|
10635
|
+
* UI, generates the SNIP-36 proof, adds the fee action (except for a `register` action),
|
|
10636
|
+
* and submits — so this call may take significantly longer than a standard invoke.
|
|
10637
|
+
* The account must be registered in the pool first, else the wallet answers `NOT_REGISTERED`:
|
|
10638
|
+
* send `[{ type: 'register' }]` once, alone in its request.
|
|
10614
10639
|
* @param {STRK20_ACTION[]} actions - The STRK20 actions to perform atomically (min 1).
|
|
10615
10640
|
* @returns {Promise<{transaction_hash: string}>} The hash of the submitted transaction.
|
|
10616
10641
|
* @example
|
|
@@ -19011,5 +19036,5 @@ declare class Logger {
|
|
|
19011
19036
|
*/
|
|
19012
19037
|
declare const logger: Logger;
|
|
19013
19038
|
|
|
19014
|
-
export { AbiParser0, AbiParser1, AbiParser2, AbiParserInterface, Account, AccountInterface, BatchClient, BlockStatus, BlockTag, BrotherIdImpl, CairoArray, CairoBool, CairoByteArray, CairoBytes31, CairoClassHash, CairoContractAddress, CairoCustomEnum, CairoEthAddress, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoNonZero, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoSecp256k1Point, CairoStorageAddress, CairoStruct, CairoTuple, CairoTypeCustomEnum, CairoTypeOption, CairoTypeResult, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, CallData, Contract, ContractInterface, Deployer, DeployerInterface, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion3, ETxnResponseFlag, EntryPointType, EthSigner, HttpTransport, Int, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, LibraryError, Literal, LogLevelIndex, NON_ZERO_PREFIX, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, PaymasterInterface, PaymasterRpc, PluginManager, Provider, ProviderInterface, index$
|
|
19039
|
+
export { AbiParser0, AbiParser1, AbiParser2, AbiParserInterface, Account, AccountInterface, BatchClient, BlockStatus, BlockTag, BrotherIdImpl, CairoArray, CairoBool, CairoByteArray, CairoBytes31, CairoClassHash, CairoContractAddress, CairoCustomEnum, CairoEthAddress, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoNonZero, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoSecp256k1Point, CairoStorageAddress, CairoStruct, CairoTuple, CairoTypeCustomEnum, CairoTypeOption, CairoTypeResult, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, CallData, Contract, ContractInterface, Deployer, DeployerInterface, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion3, ETxnResponseFlag, EntryPointType, EthSigner, HttpTransport, Int, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, LibraryError, Literal, LogLevelIndex, NON_ZERO_PREFIX, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, PaymasterInterface, PaymasterRpc, PluginManager, Provider, ProviderInterface, index$9 as RPC, index$7 as RPC0102, index$6 as RPC0103, index$5 as RPC0104, index$4 as RPC0105, index$8 as RPC09, RPCResponseParser, ReconnectingWsTransport, ResponseParser, RpcChannel, RpcError, RpcProvider, SECP256K1_POINT_MAX, SECP256K1_POINT_MIN, Signer, SignerInterface, StarknetIdImpl, Subscription, TimeoutError, TransactionExecutionStatus, TransactionFinalityStatus, TransactionType, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, ValidateType, WalletAccount, WalletAccountV5, WalletAccountV6, WebSocketChannel, WebSocketNotConnectedError, WebSocketProvider, WsTransport, addAddressPadding, brotherId, byteArray, cairo, cairoTypeStrategy, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, contractLoader, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPlugins, ec, encode, enumStrategy, eth, index as events, extractContractHashes, fastCairoTypeStrategy, fastExecute, fastParsingStrategy, getAbiVersion, getChecksumAddress, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isCairoType, isFileSystemAvailable, isNoConstructorValid, isPreConfirmedBlock, isPreConfirmedStateUpdate, isPreConfirmedTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, legacyDeployer, logger, merkle, num, outsideExecution, parseCalldataField, utils as paymaster, paymasterPlugin, provider, selector, shortString, src5, index$1 as stark, starknetId, starknetId$1 as starknetIdPlugin, structStrategy, toAnyPatchVersion, toApiVersion, toReleaseVersion, index$2 as transaction, typedData, uint256, units, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, connect as wallet, connectV5 as walletV5, connectV6 as walletV6 };
|
|
19015
19040
|
export type { Abi, AbiEntry, AbiEntryType, AbiEnum, AbiEnums, AbiEvent, AbiEvents, AbiInterfaces, AbiStruct, AbiStructs, AccountHooks, AccountInvocationItem, AccountInvocations, AccountInvocationsFactoryDetails, AccountOptions, AllowArray, ApiEstimateFeeResponse, Args, ArgsOrCalldata, ArraySignatureType, AsyncContractFunction, BLOCK_HASH, BLOCK_NUMBER, BatchClientOptions, BigNumberish, Block$1 as Block, BlockIdentifier, BlockNumber, BlockTransactionTrace, BlockTransactionsTracesWithInitialReads, BlockWithTxHashes, BrotherIdProviderMethods, BrotherProfile, Builtins, ByteArray, ByteCode, CairoAssembly, CairoContract, CairoEnum, CairoEnumRaw, CairoEvent, CairoEventDefinition, CairoEventVariant, CairoType, CairoTypeStrategy, CairoVersion, Call, CallContractResponse, CallDetails, CallOptions, CallResult, Calldata, CommonContractOptions, CompiledContract, CompiledSierra, CompiledSierraCasm, CompilerVersion, CompleteDeclareContractPayload, CompressedProgram, ContractClass, ContractClassIdentifier, ContractClassPayload, ContractClassResponse, ContractEntryPointFields, ContractFunction, ContractOptions, ContractVersion, DeclareAndDeployContractPayload, DeclareContractPayload, DeclareContractResponse, DeclareContractTransaction, DeclareDeployUDCResponse, DeclareSignerDetails, DeclareTransactionReceiptResponse, DeclaredTransaction, DeployAccountContractPayload, DeployAccountContractTransaction, DeployAccountSignerDetails, DeployAccountTransactionReceiptResponse, DeployAndInvokeTransaction, DeployContractResponse, DeployContractUDCResponse, DeployTransaction, DeployTransactionReceiptResponse, DeployedAccountTransaction, DeployerCall, EVENTS_CHUNK, EmittedEvent, EntryPointsByType, ErrorReceiptResponseHelper, EstimateFeeBulk, EstimateFeeResponseBulkOverhead, EstimateFeeResponseOverhead, Event$1 as Event, EventEntry, EventFilter, ExecutableDeployAndInvokeTransaction, ExecutableDeployTransaction, ExecutableInvokeTransaction, ExecutableUserInvoke, ExecutableUserTransaction, ExecuteOptions, ExecutionParameters, FEE_ESTIMATE, FELT, FactoryParams, FastExecuteAccountMethods, FastExecuteProviderMethods, FastExecuteResponse, FastWaitForTransactionOptions, FeeEstimate, FeeMode, FormatResponse, FunctionAbi, GasPrices, GetBlockResponse, GetTransactionReceiptResponse, GetTransactionResponse, GetTxReceiptResponseWithoutHelper, HexCalldata, Hint, HttpTransportOptions, INITIAL_READS, InterfaceAbi, Invocation, Invocations, InvocationsDetails, InvocationsDetailsWithNonce, InvocationsSignerDetails, InvokeFunctionResponse, InvokeTransaction, InvokeTransactionReceiptResponse, InvokedTransaction, L1HandlerTransactionReceiptResponse, L1_HANDLER_TXN, LedgerPathCalculation, LegacyCompiledContract, LegacyContractClass, LegacyEvent, LoadedContract, LogLevel, Methods, MultiDeployContractResponse, MultiType, Nonce, OptionalPayload, OutsideCall, OutsideExecution, OutsideExecutionOptions, OutsideTransaction, PRE_CONFIRMED_STATE_UPDATE, PRICE_UNIT, ParsedEvent, ParsedEvents, ParsedStruct, ParsingStrategy, PaymasterAccountMethods, PaymasterDetails, PaymasterFeeEstimate, PaymasterOptions, PaymasterRpcOptions, PaymasterTimeBounds, PluginConfig, PreConfirmedBlock, PreConfirmedStateUpdate, PreparedDeployAndInvokeTransaction, PreparedDeployTransaction, PreparedInvokeTransaction, PreparedTransaction, Program, ProviderHooks, ProviderOptions, ProviderOrAccount, PythonicHints, RESOURCE_PRICE, RPC_ERROR, RPC_ERROR_SET, RawArgs, RawArgsArray, RawArgsObject, RawCalldata, Receipt, ReconnectOptions, ReconnectingWsTransportOptions, RequiredKeysOf, ResourceBounds, ResourceBoundsBN, ResourceBoundsOverhead, RevertedTransactionReceiptResponse, RevertedTransactionReceiptResponseHelper, RpcNotification, RpcProviderOptions, RpcTransport, SIMULATION_FLAG, STATE_UPDATE, STRK20_ACTION, STRK20_CALL_AND_PROOF, STRK20_SHADOW_ACCOUNT_INVOKE_ACTION, Secp256k1PointStruct, SierraContractClass, SierraContractEntryPointFields, SierraEntryPointsByType, SierraProgramDebugInfo, Signature, Simplify, SimulateTransaction, SimulateTransactionDetails, SimulateTransactionOverhead, SimulateTransactionOverheadResponse, SimulateTransactionResponse, SimulationFlags, StarkProfile, StarknetIdAccountMethods, StarknetIdProviderMethods, StarknetPlugin, StateUpdate, StateUpdateResponse, StorageResponse, SubscribeEventsParams, SubscribeNewHeadsParams, SubscribeNewTransactionReceiptsParams, SubscribeNewTransactionsParams, SubscribeTransactionStatusParams, SubscriptionBlockIdentifier, SubscriptionNewHeadsEvent, SubscriptionNewTransactionEvent, SubscriptionNewTransactionReceiptsEvent, SubscriptionOptions, SubscriptionOwner, SubscriptionStarknetEventsEvent, SubscriptionTransactionStatusEvent, SuccessfulTransactionReceiptResponse, SuccessfulTransactionReceiptResponseHelper, TXN_EXECUTION_STATUS, TXN_HASH, TXN_STATUS, TipAnalysisOptions, TipEstimate, TipType, TokenData, TransactionReceipt, TransactionReceiptCallbacks, TransactionReceiptCallbacksDefault, TransactionReceiptCallbacksDefined, TransactionReceiptStatus, TransactionReceiptValue, TransactionStatus, TransactionStatusReceiptSets, TransactionTrace, TransactionWithHash, Tupled, TypedContractV2, Uint256, Uint512, UniversalDeployerContractPayload, UniversalDetails, UserInvoke, UserTransaction, V3DeclareSignerDetails, V3DeployAccountSignerDetails, V3InvocationsSignerDetails, V3TransactionDetails, VariantType, WebSocketModule, WebSocketOptions, WebSocketProviderOptions, WeierstrassSignatureType, WithOptions, WsTransportOptions, WsTransportState, getBlockTransactionsTracesOptions, getContractVersionOptions, getEstimateFeeBulkOptions, getSimulateTransactionOptions, waitForTransactionOptions };
|