starknet 10.0.4 → 10.2.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 +12 -0
- package/README.md +2 -2
- package/dist/index.d.ts +245 -211
- package/dist/index.global.js +187 -59
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +105 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -64
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { PAYMASTER_API, CONTRACT, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionType, SUBSCRIPTION_BLOCK_ID, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, OutsideExecutionTypedData, ETransactionVersion3 as ETransactionVersion3$1, IsType, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, PRE_CONFIRMED_BLOCK_WITH_TX_HASHES, BLOCK_WITH_TX_HASHES, 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, SUBSCRIPTION_ID, TXN_FINALITY_STATUS, STATUS_ACCEPTED_ON_L1, TXN_STATUS_WITHOUT_L1, StarknetEventsEvent, TransactionsStatusEvent, NewTransactionReceiptsEvent, NewTransactionEvent, NewHeadsEvent,
|
|
3
|
-
export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from '@starknet-io/starknet-types-
|
|
1
|
+
import * as RPCSPEC0103 from '@starknet-io/starknet-types-0103';
|
|
2
|
+
import { PAYMASTER_API, CONTRACT, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionType, SUBSCRIPTION_BLOCK_ID, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, OutsideExecutionTypedData, ETransactionVersion3 as ETransactionVersion3$1, IsType, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, PRE_CONFIRMED_BLOCK_WITH_TX_HASHES, BLOCK_WITH_TX_HASHES, 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, SUBSCRIPTION_ID, TXN_FINALITY_STATUS, STATUS_ACCEPTED_ON_L1, TXN_STATUS_WITHOUT_L1, StarknetEventsEvent, TransactionsStatusEvent, NewTransactionReceiptsEvent, NewTransactionEvent, NewHeadsEvent, STORAGE_RESULT, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, StarknetType, StarknetMerkleType, TypedDataRevision, OutsideCallV1, OutsideCallV2, EmittedEvent as EmittedEvent$1, Event as Event$2, Address, Permission, ChainId, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, SpecVersion } from '@starknet-io/starknet-types-0103';
|
|
3
|
+
export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from '@starknet-io/starknet-types-0103';
|
|
4
|
+
import * as RPC from '@starknet-io/starknet-types-0101';
|
|
5
|
+
import { WatchAssetParameters as WatchAssetParameters$1, AddStarknetChainParameters as AddStarknetChainParameters$1, Signature as Signature$2, Address as Address$1, Permission as Permission$1, ChainId as ChainId$1, AccountDeploymentData as AccountDeploymentData$1, AddInvokeTransactionParameters as AddInvokeTransactionParameters$1, AddInvokeTransactionResult as AddInvokeTransactionResult$1, AddDeclareTransactionParameters as AddDeclareTransactionParameters$1, AddDeclareTransactionResult as AddDeclareTransactionResult$1, TypedData as TypedData$1, SpecVersion as SpecVersion$1 } from '@starknet-io/starknet-types-0101';
|
|
4
6
|
import * as weierstrass from '@noble/curves/abstract/weierstrass';
|
|
5
7
|
import { RecoveredSignatureType } from '@noble/curves/abstract/weierstrass';
|
|
6
8
|
import * as RPCSPEC09 from '@starknet-io/starknet-types-09';
|
|
@@ -51,10 +53,10 @@ declare namespace jsonrpc {
|
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
declare const index$4_PAYMASTER_API: typeof PAYMASTER_API;
|
|
54
|
-
declare const index$
|
|
56
|
+
declare const index$4_RPCSPEC0103: typeof RPCSPEC0103;
|
|
55
57
|
declare const index$4_RPCSPEC09: typeof RPCSPEC09;
|
|
56
58
|
declare namespace index$4 {
|
|
57
|
-
export { jsonrpc as JRPC, index$4_PAYMASTER_API as PAYMASTER_API, index$
|
|
59
|
+
export { jsonrpc as JRPC, index$4_PAYMASTER_API as PAYMASTER_API, index$4_RPCSPEC0103 as RPCSPEC0103, index$4_RPCSPEC09 as RPCSPEC09 };
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
type CairoEnumRaw = Record<string, any>;
|
|
@@ -489,42 +491,42 @@ declare const ETransactionVersion3: {
|
|
|
489
491
|
readonly V3: "0x3";
|
|
490
492
|
readonly F3: "0x100000000000000000000000000000003";
|
|
491
493
|
};
|
|
492
|
-
type BLOCK_HASH = Merge<
|
|
493
|
-
type BLOCK_NUMBER = Merge<
|
|
494
|
-
type FELT = Merge<
|
|
495
|
-
type TXN_HASH = Merge<
|
|
496
|
-
type PRICE_UNIT = Merge<
|
|
497
|
-
type RESOURCE_PRICE = Merge<
|
|
498
|
-
type SIMULATION_FLAG = Merge<
|
|
499
|
-
type STATE_UPDATE = Merge<
|
|
500
|
-
type PRE_CONFIRMED_STATE_UPDATE = Merge<
|
|
501
|
-
type BlockWithTxHashes = Merge<
|
|
502
|
-
type ContractClassPayload = Merge<
|
|
503
|
-
type DeclaredTransaction = Merge<
|
|
504
|
-
type InvokedTransaction = Merge<
|
|
505
|
-
type DeployedAccountTransaction = Merge<
|
|
506
|
-
type L1_HANDLER_TXN =
|
|
507
|
-
type EDataAvailabilityMode =
|
|
494
|
+
type BLOCK_HASH = Merge<RPCSPEC0103.BLOCK_HASH, RPCSPEC09.BLOCK_HASH>;
|
|
495
|
+
type BLOCK_NUMBER = Merge<RPCSPEC0103.BLOCK_NUMBER, RPCSPEC09.BLOCK_NUMBER>;
|
|
496
|
+
type FELT = Merge<RPCSPEC0103.FELT, RPCSPEC09.FELT>;
|
|
497
|
+
type TXN_HASH = Merge<RPCSPEC0103.TXN_HASH, RPCSPEC09.TXN_HASH>;
|
|
498
|
+
type PRICE_UNIT = Merge<RPCSPEC0103.PRICE_UNIT, RPCSPEC09.PRICE_UNIT>;
|
|
499
|
+
type RESOURCE_PRICE = Merge<RPCSPEC0103.RESOURCE_PRICE, RPCSPEC09.RESOURCE_PRICE>;
|
|
500
|
+
type SIMULATION_FLAG = Merge<RPCSPEC0103.SIMULATION_FLAG, RPCSPEC09.SIMULATION_FLAG>;
|
|
501
|
+
type STATE_UPDATE = Merge<RPCSPEC0103.STATE_UPDATE, RPCSPEC09.STATE_UPDATE>;
|
|
502
|
+
type PRE_CONFIRMED_STATE_UPDATE = Merge<RPCSPEC0103.PRE_CONFIRMED_STATE_UPDATE, RPCSPEC09.PRE_CONFIRMED_STATE_UPDATE>;
|
|
503
|
+
type BlockWithTxHashes = Merge<RPCSPEC0103.BlockWithTxHashes, RPCSPEC09.BlockWithTxHashes>;
|
|
504
|
+
type ContractClassPayload = Merge<RPCSPEC0103.ContractClass, RPCSPEC09.ContractClass>;
|
|
505
|
+
type DeclaredTransaction = Merge<RPCSPEC0103.DeclaredTransaction, RPCSPEC09.DeclaredTransaction>;
|
|
506
|
+
type InvokedTransaction = Merge<RPCSPEC0103.InvokedTransaction, RPCSPEC09.InvokedTransaction>;
|
|
507
|
+
type DeployedAccountTransaction = Merge<RPCSPEC0103.DeployedAccountTransaction, RPCSPEC09.DeployedAccountTransaction>;
|
|
508
|
+
type L1_HANDLER_TXN = RPCSPEC0103.L1_HANDLER_TXN;
|
|
509
|
+
type EDataAvailabilityMode = RPCSPEC0103.EDataAvailabilityMode;
|
|
508
510
|
declare const EDataAvailabilityMode: {
|
|
509
511
|
readonly L1: "L1";
|
|
510
512
|
readonly L2: "L2";
|
|
511
513
|
};
|
|
512
|
-
type EDAMode =
|
|
514
|
+
type EDAMode = RPCSPEC0103.EDAMode;
|
|
513
515
|
declare const EDAMode: {
|
|
514
516
|
readonly L1: 0;
|
|
515
517
|
readonly L2: 1;
|
|
516
518
|
};
|
|
517
|
-
type EmittedEvent = Merge<
|
|
518
|
-
type Event$1 = Merge<
|
|
519
|
-
type Receipt = Merge<
|
|
519
|
+
type EmittedEvent = Merge<RPCSPEC0103.EmittedEvent, RPCSPEC09.EmittedEvent>;
|
|
520
|
+
type Event$1 = Merge<RPCSPEC0103.Event, RPCSPEC09.Event>;
|
|
521
|
+
type Receipt = Merge<RPCSPEC0103.TransactionReceiptProductionBlock, RPCSPEC09.TransactionReceiptProductionBlock>;
|
|
520
522
|
/**
|
|
521
523
|
* original response from estimate fee without parsing
|
|
522
524
|
*/
|
|
523
|
-
type FeeEstimate = Merge<
|
|
525
|
+
type FeeEstimate = Merge<RPCSPEC0103.FEE_ESTIMATE, RPCSPEC09.FEE_ESTIMATE>;
|
|
524
526
|
type ApiEstimateFeeResponse = FeeEstimate[];
|
|
525
|
-
declare function isRPC08Plus_ResourceBounds(entry: ResourceBounds): entry is
|
|
527
|
+
declare function isRPC08Plus_ResourceBounds(entry: ResourceBounds): entry is RPCSPEC0103.ResourceBounds;
|
|
526
528
|
declare function isRPC08Plus_ResourceBoundsBN(entry: ResourceBoundsBN): entry is ResourceBoundsBN;
|
|
527
|
-
type ResourceBounds = Merge<
|
|
529
|
+
type ResourceBounds = Merge<RPCSPEC0103.ResourceBounds, RPCSPEC09.ResourceBounds>;
|
|
528
530
|
type EventFilter = RPCSPEC09.EventFilter;
|
|
529
531
|
/**
|
|
530
532
|
* Represents percentage overhead for each resource bound
|
|
@@ -543,36 +545,36 @@ type ResourceBoundsBN = {
|
|
|
543
545
|
[P in keyof ResourceBounds[K]]: bigint;
|
|
544
546
|
} : number;
|
|
545
547
|
};
|
|
546
|
-
type SimulateTransaction = SimpleOneOf<RPCSPEC09.SimulateTransaction,
|
|
547
|
-
type SimulateTransactionResponse = RPCSPEC09.SimulateTransactionResponse |
|
|
548
|
-
type INITIAL_READS =
|
|
548
|
+
type SimulateTransaction = SimpleOneOf<RPCSPEC09.SimulateTransaction, RPCSPEC0103.SimulateTransaction>;
|
|
549
|
+
type SimulateTransactionResponse = RPCSPEC09.SimulateTransactionResponse | RPCSPEC0103.SimulateTransactionResponse;
|
|
550
|
+
type INITIAL_READS = RPCSPEC0103.INITIAL_READS;
|
|
549
551
|
/** Flags to request additional fields in transaction responses (RPC 0.10.1+) */
|
|
550
|
-
type ETxnResponseFlag =
|
|
552
|
+
type ETxnResponseFlag = RPCSPEC0103.ETxnResponseFlag;
|
|
551
553
|
declare const ETxnResponseFlag: {
|
|
552
554
|
readonly INCLUDE_PROOF_FACTS: "INCLUDE_PROOF_FACTS";
|
|
553
555
|
};
|
|
554
556
|
/** Flags to request additional fields in trace responses (RPC 0.10.1+) */
|
|
555
|
-
type ETraceFlag =
|
|
557
|
+
type ETraceFlag = RPCSPEC0103.ETraceFlag;
|
|
556
558
|
declare const ETraceFlag: {
|
|
557
559
|
readonly RETURN_INITIAL_READS: "RETURN_INITIAL_READS";
|
|
558
560
|
};
|
|
559
561
|
/** Tags for WebSocket transaction subscriptions (RPC 0.10.1+) */
|
|
560
|
-
type ESubscriptionTag =
|
|
562
|
+
type ESubscriptionTag = RPCSPEC0103.ESubscriptionTag;
|
|
561
563
|
declare const ESubscriptionTag: {
|
|
562
564
|
readonly INCLUDE_PROOF_FACTS: "INCLUDE_PROOF_FACTS";
|
|
563
565
|
};
|
|
564
566
|
/** A single transaction trace within a block */
|
|
565
|
-
type BlockTransactionTrace =
|
|
567
|
+
type BlockTransactionTrace = RPCSPEC0103.BlockTransactionTrace;
|
|
566
568
|
/** Block transaction traces with optional initial storage reads (RPC 0.10.1+) */
|
|
567
|
-
type BlockTransactionsTracesWithInitialReads =
|
|
568
|
-
type TransactionTrace = SimpleOneOf<RPCSPEC09.TRANSACTION_TRACE,
|
|
569
|
-
type TransactionWithHash = Merge<
|
|
570
|
-
type TransactionReceipt = Merge<
|
|
571
|
-
type Methods =
|
|
572
|
-
type TXN_STATUS = Merge<
|
|
573
|
-
type TXN_EXECUTION_STATUS = Merge<
|
|
574
|
-
type TransactionStatus = Merge<
|
|
575
|
-
type ETransactionStatus =
|
|
569
|
+
type BlockTransactionsTracesWithInitialReads = RPCSPEC0103.BlockTransactionsTracesWithInitialReads;
|
|
570
|
+
type TransactionTrace = SimpleOneOf<RPCSPEC09.TRANSACTION_TRACE, RPCSPEC0103.TRANSACTION_TRACE>;
|
|
571
|
+
type TransactionWithHash = Merge<RPCSPEC0103.TransactionWithHash, RPCSPEC09.TransactionWithHash>;
|
|
572
|
+
type TransactionReceipt = Merge<RPCSPEC0103.TransactionReceipt, RPCSPEC09.TransactionReceipt>;
|
|
573
|
+
type Methods = RPCSPEC0103.Methods;
|
|
574
|
+
type TXN_STATUS = Merge<RPCSPEC0103.TXN_STATUS, RPCSPEC09.TXN_STATUS>;
|
|
575
|
+
type TXN_EXECUTION_STATUS = Merge<RPCSPEC0103.TXN_EXECUTION_STATUS, RPCSPEC09.TXN_EXECUTION_STATUS>;
|
|
576
|
+
type TransactionStatus = Merge<RPCSPEC0103.TransactionStatus, RPCSPEC09.TransactionStatus>;
|
|
577
|
+
type ETransactionStatus = RPCSPEC0103.ETransactionStatus;
|
|
576
578
|
declare const ETransactionStatus: {
|
|
577
579
|
readonly RECEIVED: "RECEIVED";
|
|
578
580
|
readonly CANDIDATE: "CANDIDATE";
|
|
@@ -580,13 +582,13 @@ declare const ETransactionStatus: {
|
|
|
580
582
|
readonly ACCEPTED_ON_L2: "ACCEPTED_ON_L2";
|
|
581
583
|
readonly ACCEPTED_ON_L1: "ACCEPTED_ON_L1";
|
|
582
584
|
};
|
|
583
|
-
type ETransactionExecutionStatus =
|
|
585
|
+
type ETransactionExecutionStatus = RPCSPEC0103.ETransactionExecutionStatus;
|
|
584
586
|
declare const ETransactionExecutionStatus: {
|
|
585
587
|
readonly SUCCEEDED: "SUCCEEDED";
|
|
586
588
|
readonly REVERTED: "REVERTED";
|
|
587
589
|
};
|
|
588
|
-
type FEE_ESTIMATE = Merge<
|
|
589
|
-
type EVENTS_CHUNK = Merge<
|
|
590
|
+
type FEE_ESTIMATE = Merge<RPCSPEC0103.FEE_ESTIMATE, RPCSPEC09.FEE_ESTIMATE>;
|
|
591
|
+
type EVENTS_CHUNK = Merge<RPCSPEC0103.EVENTS_CHUNK, RPCSPEC09.EVENTS_CHUNK>;
|
|
590
592
|
type TransactionType = RPCSPEC09.ETransactionType;
|
|
591
593
|
declare const TransactionType: {
|
|
592
594
|
readonly DECLARE: "DECLARE";
|
|
@@ -985,11 +987,11 @@ declare class RPCResponseParser implements Omit<ResponseParser, 'parseDeclareCon
|
|
|
985
987
|
parseSimulateTransactionResponse(res: SimulateTransactionResponse): SimulateTransactionOverheadResponse;
|
|
986
988
|
parseContractClassResponse(res: ContractClassPayload): ContractClassResponse;
|
|
987
989
|
parseL1GasPriceResponse(res: BlockWithTxHashes): string;
|
|
988
|
-
parseStorageResponse(res:
|
|
990
|
+
parseStorageResponse(res: RPCSPEC0103.FELT | RPCSPEC0103.STORAGE_RESULT): RPCSPEC0103.STORAGE_RESULT;
|
|
989
991
|
}
|
|
990
992
|
|
|
991
993
|
declare abstract class ProviderInterface {
|
|
992
|
-
abstract channel: RpcChannel$1 | RpcChannel;
|
|
994
|
+
abstract channel: RpcChannel$2 | RpcChannel$1 | RpcChannel;
|
|
993
995
|
abstract responseParser: RPCResponseParser;
|
|
994
996
|
/**
|
|
995
997
|
* Gets the Starknet chain Id
|
|
@@ -1071,7 +1073,7 @@ declare abstract class ProviderInterface {
|
|
|
1071
1073
|
* @param blockIdentifier - block identifier
|
|
1072
1074
|
* @returns the value of the storage variable
|
|
1073
1075
|
*/
|
|
1074
|
-
abstract getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?:
|
|
1076
|
+
abstract getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?: RPCSPEC0103.STORAGE_RESPONSE_FLAG[]): Promise<StorageResponse>;
|
|
1075
1077
|
/**
|
|
1076
1078
|
* Gets the transaction information from a tx id.
|
|
1077
1079
|
*
|
|
@@ -1358,7 +1360,7 @@ declare abstract class ProviderInterface {
|
|
|
1358
1360
|
* @param txHash - transaction hash
|
|
1359
1361
|
* @returns Transaction trace
|
|
1360
1362
|
*/
|
|
1361
|
-
abstract getTransactionTrace(txHash: BigNumberish): Promise<
|
|
1363
|
+
abstract getTransactionTrace(txHash: BigNumberish): Promise<RPCSPEC0103.TRANSACTION_TRACE | RPCSPEC09.TRANSACTION_TRACE>;
|
|
1362
1364
|
/**
|
|
1363
1365
|
* Get the status of a transaction
|
|
1364
1366
|
* @param transactionHash - transaction hash
|
|
@@ -1401,7 +1403,7 @@ declare abstract class ProviderInterface {
|
|
|
1401
1403
|
* @param blockIdentifier - block identifier
|
|
1402
1404
|
* @returns Fee estimate
|
|
1403
1405
|
*/
|
|
1404
|
-
abstract estimateMessageFee(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<
|
|
1406
|
+
abstract estimateMessageFee(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC0103.FEE_ESTIMATE | RPCSPEC09.MESSAGE_FEE_ESTIMATE>;
|
|
1405
1407
|
/**
|
|
1406
1408
|
* Get node synchronization status
|
|
1407
1409
|
* @returns Sync status or false if not syncing
|
|
@@ -1412,7 +1414,7 @@ declare abstract class ProviderInterface {
|
|
|
1412
1414
|
* @param eventFilter - event filter
|
|
1413
1415
|
* @returns Events and pagination info
|
|
1414
1416
|
*/
|
|
1415
|
-
abstract getEvents(eventFilter:
|
|
1417
|
+
abstract getEvents(eventFilter: RPCSPEC0103.EventFilter | RPCSPEC09.EventFilter): Promise<RPCSPEC0103.EVENTS_CHUNK | RPCSPEC09.EVENTS_CHUNK>;
|
|
1416
1418
|
/**
|
|
1417
1419
|
* Verify in Starknet a signature of a TypedData object or of a given hash.
|
|
1418
1420
|
* @param {BigNumberish | TypedData} message TypedData object to be verified, or message hash to be verified.
|
|
@@ -1454,7 +1456,7 @@ declare abstract class ProviderInterface {
|
|
|
1454
1456
|
* @param transactionHash - L1 transaction hash
|
|
1455
1457
|
* @returns L1 message status
|
|
1456
1458
|
*/
|
|
1457
|
-
abstract getL1MessagesStatus(transactionHash: BigNumberish): Promise<
|
|
1459
|
+
abstract getL1MessagesStatus(transactionHash: BigNumberish): Promise<RPCSPEC0103.L1L2MessagesStatus | RPCSPEC09.L1L2MessagesStatus>;
|
|
1458
1460
|
/**
|
|
1459
1461
|
* Get Merkle paths in state tries
|
|
1460
1462
|
* @param classHashes - class hashes
|
|
@@ -3003,7 +3005,7 @@ type EstimateFeeResponseBulkOverhead = Array<EstimateFeeResponseOverhead>;
|
|
|
3003
3005
|
type InvokeFunctionResponse = InvokedTransaction;
|
|
3004
3006
|
type DeclareContractResponse = DeclaredTransaction;
|
|
3005
3007
|
type CallContractResponse = string[];
|
|
3006
|
-
type StorageResponse =
|
|
3008
|
+
type StorageResponse = RPCSPEC0103.STORAGE_RESULT;
|
|
3007
3009
|
type Nonce = string;
|
|
3008
3010
|
type SimulationFlags = Array<SIMULATION_FLAG>;
|
|
3009
3011
|
type SimulateTransactionOverhead = {
|
|
@@ -3611,7 +3613,7 @@ type ParsedEvents = Array<ParsedEvent> & {
|
|
|
3611
3613
|
};
|
|
3612
3614
|
/**
|
|
3613
3615
|
* Advance formatting used to get js types data as result
|
|
3614
|
-
* @description https://
|
|
3616
|
+
* @description https://starknet-io.github.io/starknet.js/docs/guides/define_call_message/#formatresponse
|
|
3615
3617
|
* @example
|
|
3616
3618
|
* ```typescript
|
|
3617
3619
|
* // assign custom or existing method to resulting data
|
|
@@ -4343,16 +4345,18 @@ declare const _SupportedRpcVersion: {
|
|
|
4343
4345
|
readonly '0.9.0': "0.9.0";
|
|
4344
4346
|
readonly '0.10.0': "0.10.0";
|
|
4345
4347
|
readonly '0.10.2': "0.10.2";
|
|
4348
|
+
readonly '0.10.3': "0.10.3";
|
|
4346
4349
|
readonly v0_9_0: "0.9.0";
|
|
4347
4350
|
readonly v0_10_0: "0.10.0";
|
|
4348
4351
|
readonly v0_10_2: "0.10.2";
|
|
4352
|
+
readonly v0_10_3: "0.10.3";
|
|
4349
4353
|
};
|
|
4350
4354
|
type _SupportedRpcVersion = ValuesType<typeof _SupportedRpcVersion>;
|
|
4351
4355
|
|
|
4352
4356
|
/**
|
|
4353
4357
|
* Union of RPC 0.10.x dot-format versions (spec 0.10.0 family).
|
|
4354
4358
|
*/
|
|
4355
|
-
type SupportedRpcVersion0_10 = typeof _SupportedRpcVersion.v0_10_0 | typeof _SupportedRpcVersion.v0_10_2;
|
|
4359
|
+
type SupportedRpcVersion0_10 = typeof _SupportedRpcVersion.v0_10_0 | typeof _SupportedRpcVersion.v0_10_2 | typeof _SupportedRpcVersion.v0_10_3;
|
|
4356
4360
|
type SupportedTransactionVersion = typeof ETransactionVersion$1.V3;
|
|
4357
4361
|
type SupportedCairoVersion = '1';
|
|
4358
4362
|
/**
|
|
@@ -4467,7 +4471,7 @@ declare namespace constants {
|
|
|
4467
4471
|
export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, _BaseUrl as BaseUrl, type constants_ChannelDefaultOptions as ChannelDefaultOptions, type constants_ChannelDefaults as ChannelDefaults, type constants_ChannelMethodOptions as ChannelMethodOptions, constants_DEFAULT_GLOBAL_CONFIG as DEFAULT_GLOBAL_CONFIG, constants_HARDENING_4BYTES as HARDENING_4BYTES, constants_HARDENING_BYTE as HARDENING_BYTE, constants_IS_BROWSER as IS_BROWSER, constants_LegacyUDC as LegacyUDC, constants_MASK_250 as MASK_250, constants_MASK_31 as MASK_31, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, _NetworkName as NetworkName, constants_OutsideExecutionCallerAny as OutsideExecutionCallerAny, constants_PAYMASTER_RPC_NODES as PAYMASTER_RPC_NODES, constants_PRIME as PRIME, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_I16 as RANGE_I16, constants_RANGE_I32 as RANGE_I32, constants_RANGE_I64 as RANGE_I64, constants_RANGE_I8 as RANGE_I8, constants_RANGE_U128 as RANGE_U128, constants_RANGE_U16 as RANGE_U16, constants_RANGE_U32 as RANGE_U32, constants_RANGE_U64 as RANGE_U64, constants_RANGE_U8 as RANGE_U8, constants_RANGE_U96 as RANGE_U96, constants_RPC_DEFAULT_NODES as RPC_DEFAULT_NODES, constants_SNIP9_V1_INTERFACE_ID as SNIP9_V1_INTERFACE_ID, constants_SNIP9_V2_INTERFACE_ID as SNIP9_V2_INTERFACE_ID, constants_SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS as SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS, constants_SYSTEM_MESSAGES as SYSTEM_MESSAGES, _StarknetChainId as StarknetChainId, type constants_SupportedCairoVersion as SupportedCairoVersion, _SupportedRpcVersion as SupportedRpcVersion, type constants_SupportedRpcVersion0_10 as SupportedRpcVersion0_10, type constants_SupportedTransactionVersion as SupportedTransactionVersion, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, _TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
|
|
4468
4472
|
}
|
|
4469
4473
|
|
|
4470
|
-
declare class RpcChannel$
|
|
4474
|
+
declare class RpcChannel$2 {
|
|
4471
4475
|
readonly id = "RPC090";
|
|
4472
4476
|
/**
|
|
4473
4477
|
* RPC specification version this Channel class implements
|
|
@@ -4488,7 +4492,7 @@ declare class RpcChannel$1 {
|
|
|
4488
4492
|
private batchClient?;
|
|
4489
4493
|
private baseFetch;
|
|
4490
4494
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
4491
|
-
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | undefined;
|
|
4495
|
+
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | undefined;
|
|
4492
4496
|
private get transactionRetryIntervalDefault();
|
|
4493
4497
|
setChainId(chainId: _StarknetChainId): void;
|
|
4494
4498
|
fetch(method: string, params?: object, id?: string | number): Promise<Response>;
|
|
@@ -4504,7 +4508,7 @@ declare class RpcChannel$1 {
|
|
|
4504
4508
|
* fetch if undefined else just return this.specVersion
|
|
4505
4509
|
* @example this.specVersion = "0.9.0"
|
|
4506
4510
|
*/
|
|
4507
|
-
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2">;
|
|
4511
|
+
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3">;
|
|
4508
4512
|
/**
|
|
4509
4513
|
* 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
|
|
4510
4514
|
*/
|
|
@@ -4618,11 +4622,11 @@ declare class RpcChannel$1 {
|
|
|
4618
4622
|
}
|
|
4619
4623
|
|
|
4620
4624
|
declare namespace rpc_0_9_0 {
|
|
4621
|
-
export { RpcChannel$
|
|
4625
|
+
export { RpcChannel$2 as RpcChannel };
|
|
4622
4626
|
}
|
|
4623
4627
|
|
|
4624
|
-
declare class RpcChannel {
|
|
4625
|
-
readonly id
|
|
4628
|
+
declare class RpcChannel$1 {
|
|
4629
|
+
readonly id: string;
|
|
4626
4630
|
/**
|
|
4627
4631
|
* RPC specification version this Channel class implements
|
|
4628
4632
|
*/
|
|
@@ -4642,12 +4646,12 @@ declare class RpcChannel {
|
|
|
4642
4646
|
private batchClient?;
|
|
4643
4647
|
private baseFetch;
|
|
4644
4648
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
4645
|
-
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | undefined;
|
|
4649
|
+
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | undefined;
|
|
4646
4650
|
private get transactionRetryIntervalDefault();
|
|
4647
4651
|
setChainId(chainId: _StarknetChainId): void;
|
|
4648
4652
|
fetch(method: string, params?: object, id?: string | number): Promise<Response>;
|
|
4649
4653
|
protected errorHandler(method: string, params: any, rpcError?: Error$1, otherError?: any): void;
|
|
4650
|
-
protected fetchEndpoint<T extends keyof
|
|
4654
|
+
protected fetchEndpoint<T extends keyof RPC.Methods>(method: T, params?: RPC.Methods[T]['params']): Promise<RPC.Methods[T]['result']>;
|
|
4651
4655
|
getChainId(): Promise<"0x534e5f4d41494e" | "0x534e5f5345504f4c4941">;
|
|
4652
4656
|
/**
|
|
4653
4657
|
* fetch rpc node specVersion
|
|
@@ -4658,14 +4662,14 @@ declare class RpcChannel {
|
|
|
4658
4662
|
* fetch if undefined else just return this.specVersion
|
|
4659
4663
|
* @example this.specVersion = "0.9.0"
|
|
4660
4664
|
*/
|
|
4661
|
-
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2">;
|
|
4665
|
+
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3">;
|
|
4662
4666
|
/**
|
|
4663
4667
|
* 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
|
|
4664
4668
|
*/
|
|
4665
|
-
getMessagesStatus(txHash: BigNumberish): Promise<
|
|
4666
|
-
getStorageProof(classHashes?: BigNumberish[], contractAddresses?: BigNumberish[], contractsStorageKeys?:
|
|
4667
|
-
blockIdentifier?: BlockIdentifier): Promise<
|
|
4668
|
-
getCompiledCasm(classHash: BigNumberish): Promise<
|
|
4669
|
+
getMessagesStatus(txHash: BigNumberish): Promise<RPC.L1L2MessagesStatus>;
|
|
4670
|
+
getStorageProof(classHashes?: BigNumberish[], contractAddresses?: BigNumberish[], contractsStorageKeys?: RPC.CONTRACT_STORAGE_KEYS[], // TODO: allow BigNUmberish[] and fix formatting before request
|
|
4671
|
+
blockIdentifier?: BlockIdentifier): Promise<RPC.StorageProof>;
|
|
4672
|
+
getCompiledCasm(classHash: BigNumberish): Promise<RPC.CASM_COMPILED_CONTRACT_CLASS>;
|
|
4669
4673
|
getNonceForAddress(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
4670
4674
|
/**
|
|
4671
4675
|
* Helper method to get the starknet version from the block, default latest block
|
|
@@ -4675,7 +4679,7 @@ declare class RpcChannel {
|
|
|
4675
4679
|
/**
|
|
4676
4680
|
* Get the most recent accepted block hash and number
|
|
4677
4681
|
*/
|
|
4678
|
-
getBlockLatestAccepted(): Promise<
|
|
4682
|
+
getBlockLatestAccepted(): Promise<RPC.BlockHashAndNumber>;
|
|
4679
4683
|
/**
|
|
4680
4684
|
* Get the most recent accepted block number
|
|
4681
4685
|
* redundant use getBlockLatestAccepted();
|
|
@@ -4683,8 +4687,8 @@ declare class RpcChannel {
|
|
|
4683
4687
|
*/
|
|
4684
4688
|
getBlockNumber(): Promise<number>;
|
|
4685
4689
|
getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<({
|
|
4686
|
-
status:
|
|
4687
|
-
} &
|
|
4690
|
+
status: RPC.BLOCK_STATUS;
|
|
4691
|
+
} & RPC.BLOCK_HEADER & RPC.BLOCK_BODY_WITH_TX_HASHES & {}) | (RPC.BLOCK_BODY_WITH_TX_HASHES & RPC.PRE_CONFIRMED_BLOCK_HEADER & {
|
|
4688
4692
|
block_hash?: undefined;
|
|
4689
4693
|
new_root?: undefined;
|
|
4690
4694
|
status?: undefined;
|
|
@@ -4706,8 +4710,8 @@ declare class RpcChannel {
|
|
|
4706
4710
|
getBlockWithTxs(blockIdentifier?: BlockIdentifier, options?: {
|
|
4707
4711
|
includeProofFacts?: boolean;
|
|
4708
4712
|
}): Promise<({
|
|
4709
|
-
status:
|
|
4710
|
-
} &
|
|
4713
|
+
status: RPC.BLOCK_STATUS;
|
|
4714
|
+
} & RPC.BLOCK_HEADER & RPC.BLOCK_BODY_WITH_TXS & {}) | (RPC.BLOCK_BODY_WITH_TXS & RPC.PRE_CONFIRMED_BLOCK_HEADER & {
|
|
4711
4715
|
block_hash?: undefined;
|
|
4712
4716
|
new_root?: undefined;
|
|
4713
4717
|
status?: undefined;
|
|
@@ -4729,8 +4733,8 @@ declare class RpcChannel {
|
|
|
4729
4733
|
getBlockWithReceipts(blockIdentifier?: BlockIdentifier, options?: {
|
|
4730
4734
|
includeProofFacts?: boolean;
|
|
4731
4735
|
}): Promise<({
|
|
4732
|
-
status:
|
|
4733
|
-
} &
|
|
4736
|
+
status: RPC.BLOCK_STATUS;
|
|
4737
|
+
} & RPC.BLOCK_HEADER & RPC.BLOCK_BODY_WITH_RECEIPTS & {}) | (RPC.BLOCK_BODY_WITH_RECEIPTS & RPC.PRE_CONFIRMED_BLOCK_HEADER & {
|
|
4734
4738
|
block_hash?: undefined;
|
|
4735
4739
|
new_root?: undefined;
|
|
4736
4740
|
status?: undefined;
|
|
@@ -4743,7 +4747,7 @@ declare class RpcChannel {
|
|
|
4743
4747
|
transaction_count?: undefined;
|
|
4744
4748
|
state_diff_length?: undefined;
|
|
4745
4749
|
})>;
|
|
4746
|
-
getBlockStateUpdate(blockIdentifier?: BlockIdentifier, contractAddresses?: BigNumberish[]): Promise<(
|
|
4750
|
+
getBlockStateUpdate(blockIdentifier?: BlockIdentifier, contractAddresses?: BigNumberish[]): Promise<(RPC.STATE_UPDATE & {}) | (RPC.PRE_CONFIRMED_STATE_UPDATE & {
|
|
4747
4751
|
new_root?: undefined;
|
|
4748
4752
|
})>;
|
|
4749
4753
|
/**
|
|
@@ -4754,7 +4758,7 @@ declare class RpcChannel {
|
|
|
4754
4758
|
*/
|
|
4755
4759
|
getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier, options?: {
|
|
4756
4760
|
returnInitialReads?: boolean;
|
|
4757
|
-
}): Promise<
|
|
4761
|
+
}): Promise<RPC.BlockTransactionsTraces>;
|
|
4758
4762
|
getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
|
|
4759
4763
|
/**
|
|
4760
4764
|
* Get transaction by hash
|
|
@@ -4764,7 +4768,7 @@ declare class RpcChannel {
|
|
|
4764
4768
|
*/
|
|
4765
4769
|
getTransactionByHash(txHash: BigNumberish, options?: {
|
|
4766
4770
|
includeProofFacts?: boolean;
|
|
4767
|
-
}): Promise<
|
|
4771
|
+
}): Promise<RPC.TXN_WITH_HASH>;
|
|
4768
4772
|
/**
|
|
4769
4773
|
* Get transaction by block identifier and index
|
|
4770
4774
|
* @param blockIdentifier - block identifier
|
|
@@ -4774,13 +4778,13 @@ declare class RpcChannel {
|
|
|
4774
4778
|
*/
|
|
4775
4779
|
getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number, options?: {
|
|
4776
4780
|
includeProofFacts?: boolean;
|
|
4777
|
-
}): Promise<
|
|
4778
|
-
getTransactionReceipt(txHash: BigNumberish): Promise<
|
|
4779
|
-
getTransactionTrace(txHash: BigNumberish): Promise<
|
|
4781
|
+
}): Promise<RPC.TXN_WITH_HASH>;
|
|
4782
|
+
getTransactionReceipt(txHash: BigNumberish): Promise<RPC.TXN_RECEIPT_WITH_BLOCK_INFO>;
|
|
4783
|
+
getTransactionTrace(txHash: BigNumberish): Promise<RPC.TRANSACTION_TRACE>;
|
|
4780
4784
|
/**
|
|
4781
4785
|
* Get the status of a transaction
|
|
4782
4786
|
*/
|
|
4783
|
-
getTransactionStatus(transactionHash: BigNumberish): Promise<
|
|
4787
|
+
getTransactionStatus(transactionHash: BigNumberish): Promise<RPC.TXN_STATUS_RESULT>;
|
|
4784
4788
|
/**
|
|
4785
4789
|
* @param invocations AccountInvocations
|
|
4786
4790
|
* @param simulateTransactionOptions blockIdentifier and flags to skip validation and fee charge<br/>
|
|
@@ -4789,55 +4793,64 @@ declare class RpcChannel {
|
|
|
4789
4793
|
* - skipFeeCharge (default true)<br/>
|
|
4790
4794
|
* - returnInitialReads (default false) - include initial storage reads in trace (RPC 0.10.1+)<br/>
|
|
4791
4795
|
*/
|
|
4792
|
-
simulateTransaction(invocations: AccountInvocations, simulateTransactionOptions?: getSimulateTransactionOptions): Promise<
|
|
4793
|
-
waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<
|
|
4794
|
-
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?:
|
|
4796
|
+
simulateTransaction(invocations: AccountInvocations, simulateTransactionOptions?: getSimulateTransactionOptions): Promise<RPC.SimulateTransactionResponse>;
|
|
4797
|
+
waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<RPC.TXN_RECEIPT>;
|
|
4798
|
+
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?: RPC.STORAGE_RESPONSE_FLAG[]): Promise<string | RPC.STORAGE_RESULT>;
|
|
4795
4799
|
getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
4796
|
-
getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<(
|
|
4800
|
+
getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<(RPC.CONTRACT_CLASS & {
|
|
4797
4801
|
program?: undefined;
|
|
4798
|
-
}) | (
|
|
4802
|
+
}) | (RPC.DEPRECATED_CONTRACT_CLASS & {
|
|
4799
4803
|
sierra_program?: undefined;
|
|
4800
4804
|
contract_class_version?: undefined;
|
|
4801
4805
|
})>;
|
|
4802
|
-
getClassAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<(
|
|
4806
|
+
getClassAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<(RPC.CONTRACT_CLASS & {
|
|
4803
4807
|
program?: undefined;
|
|
4804
|
-
}) | (
|
|
4808
|
+
}) | (RPC.DEPRECATED_CONTRACT_CLASS & {
|
|
4805
4809
|
sierra_program?: undefined;
|
|
4806
4810
|
contract_class_version?: undefined;
|
|
4807
4811
|
})>;
|
|
4808
|
-
getEstimateFee(invocations: AccountInvocations, options?: getEstimateFeeBulkOptions): Promise<
|
|
4809
|
-
invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<
|
|
4810
|
-
declare(declareTransaction: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<
|
|
4811
|
-
deployAccount(deployAccountTransaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<
|
|
4812
|
+
getEstimateFee(invocations: AccountInvocations, options?: getEstimateFeeBulkOptions): Promise<RPC.FEE_ESTIMATE[]>;
|
|
4813
|
+
invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<RPC.InvokedTransaction>;
|
|
4814
|
+
declare(declareTransaction: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<RPC.TXN_RECEIPT | RPC.DeclaredTransaction>;
|
|
4815
|
+
deployAccount(deployAccountTransaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<RPC.TXN_RECEIPT | RPC.DeployedAccountTransaction>;
|
|
4812
4816
|
callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
|
|
4813
4817
|
/**
|
|
4814
4818
|
* NEW: Estimate the fee for a message from L1
|
|
4815
4819
|
* @param message Message From L1
|
|
4816
4820
|
*/
|
|
4817
|
-
estimateMessageFee(message:
|
|
4821
|
+
estimateMessageFee(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<RPC.MESSAGE_FEE_ESTIMATE>;
|
|
4818
4822
|
/**
|
|
4819
4823
|
* Returns an object about the sync status, or false if the node is not synching
|
|
4820
4824
|
* @returns Object with the stats data
|
|
4821
4825
|
*/
|
|
4822
|
-
getSyncingStats(): Promise<
|
|
4826
|
+
getSyncingStats(): Promise<RPC.Syncing>;
|
|
4823
4827
|
/**
|
|
4824
4828
|
* Returns all events matching the given filter
|
|
4825
4829
|
* @returns events and the pagination of the events
|
|
4826
4830
|
*/
|
|
4827
|
-
getEvents(eventFilter:
|
|
4831
|
+
getEvents(eventFilter: RPC.EventFilter): Promise<RPC.EVENTS_CHUNK>;
|
|
4828
4832
|
buildTransaction<T extends AccountInvocationItem>(invocation: T, versionType?: 'fee' | 'transaction'): Promise<T extends {
|
|
4829
4833
|
type: typeof ETransactionType.INVOKE;
|
|
4830
|
-
} ?
|
|
4834
|
+
} ? RPC.BROADCASTED_INVOKE_TXN : T extends {
|
|
4831
4835
|
type: typeof ETransactionType.DECLARE;
|
|
4832
|
-
} ?
|
|
4836
|
+
} ? RPC.BROADCASTED_DECLARE_TXN_V3 : T extends {
|
|
4833
4837
|
type: typeof ETransactionType.DEPLOY_ACCOUNT;
|
|
4834
|
-
} ?
|
|
4838
|
+
} ? RPC.DEPLOY_ACCOUNT_TXN_V3 : never>;
|
|
4835
4839
|
}
|
|
4836
4840
|
|
|
4837
|
-
type rpc_0_10_2_RpcChannel = RpcChannel;
|
|
4838
|
-
declare const rpc_0_10_2_RpcChannel: typeof RpcChannel;
|
|
4839
4841
|
declare namespace rpc_0_10_2 {
|
|
4840
|
-
export {
|
|
4842
|
+
export { RpcChannel$1 as RpcChannel };
|
|
4843
|
+
}
|
|
4844
|
+
|
|
4845
|
+
declare class RpcChannel extends RpcChannel$1 {
|
|
4846
|
+
readonly id = "RPC0.10.3";
|
|
4847
|
+
readonly channelSpecVersion: _SupportedRpcVersion;
|
|
4848
|
+
}
|
|
4849
|
+
|
|
4850
|
+
type rpc_0_10_3_RpcChannel = RpcChannel;
|
|
4851
|
+
declare const rpc_0_10_3_RpcChannel: typeof RpcChannel;
|
|
4852
|
+
declare namespace rpc_0_10_3 {
|
|
4853
|
+
export { rpc_0_10_3_RpcChannel as RpcChannel };
|
|
4841
4854
|
}
|
|
4842
4855
|
|
|
4843
4856
|
/**
|
|
@@ -4965,7 +4978,7 @@ interface SubscribeNewTransactionsParams {
|
|
|
4965
4978
|
/** Filter by sender addresses */
|
|
4966
4979
|
senderAddress?: BigNumberish[];
|
|
4967
4980
|
/** Subscription tags for additional data (RPC 0.10.1+) */
|
|
4968
|
-
tags?:
|
|
4981
|
+
tags?: RPCSPEC0103.SUBSCRIPTION_TAG[];
|
|
4969
4982
|
}
|
|
4970
4983
|
type SubscriptionNewHeadsEvent = Subscription<NewHeadsEvent['result']>;
|
|
4971
4984
|
type SubscriptionStarknetEventsEvent = Subscription<StarknetEventsEvent['result']>;
|
|
@@ -5307,7 +5320,7 @@ declare class PluginManager {
|
|
|
5307
5320
|
|
|
5308
5321
|
declare class RpcProvider implements ProviderInterface {
|
|
5309
5322
|
responseParser: RPCResponseParser;
|
|
5310
|
-
channel: RpcChannel$1 | RpcChannel;
|
|
5323
|
+
channel: RpcChannel$2 | RpcChannel$1 | RpcChannel;
|
|
5311
5324
|
/** @internal Plugin management infrastructure */
|
|
5312
5325
|
readonly pluginManager: PluginManager;
|
|
5313
5326
|
constructor(optionsOrProvider?: RpcProviderOptions | ProviderInterface | RpcProvider);
|
|
@@ -5331,9 +5344,9 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
5331
5344
|
use<T extends Record<string, any>>(plugin: StarknetPlugin<T, any>): this & T;
|
|
5332
5345
|
fetch(method: string, params?: object, id?: string | number): Promise<any>;
|
|
5333
5346
|
getChainId(): Promise<"0x534e5f4d41494e" | "0x534e5f5345504f4c4941">;
|
|
5334
|
-
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | undefined;
|
|
5347
|
+
readSpecVersion(): "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | undefined;
|
|
5335
5348
|
getSpecVersion(): Promise<string>;
|
|
5336
|
-
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2">;
|
|
5349
|
+
setUpSpecVersion(): Promise<"0.9.0" | "0.10.0" | "0.10.2" | "0.10.3">;
|
|
5337
5350
|
getStarknetVersion(blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
5338
5351
|
getNonceForAddress(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
5339
5352
|
getBlock(): Promise<PreConfirmedBlock>;
|
|
@@ -5396,102 +5409,102 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
5396
5409
|
getBlockStateUpdate(blockIdentifier?: BlockIdentifier, contractAddresses?: BigNumberish[]): Promise<StateUpdateResponse>;
|
|
5397
5410
|
getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier, options?: {
|
|
5398
5411
|
returnInitialReads?: boolean;
|
|
5399
|
-
}): Promise<
|
|
5412
|
+
}): Promise<RPCSPEC09.BlockTransactionsTraces | RPC.BlockTransactionsTracesWithInitialReads>;
|
|
5400
5413
|
getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
|
|
5401
5414
|
getTransaction(txHash: BigNumberish, options?: {
|
|
5402
5415
|
includeProofFacts?: boolean;
|
|
5403
|
-
}): Promise<({
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
} & FUNCTION_CALL & {
|
|
5408
|
-
transaction_hash: TXN_HASH$1;
|
|
5409
|
-
}) | (INVOKE_TXN_V0 & {
|
|
5410
|
-
transaction_hash: TXN_HASH$1;
|
|
5411
|
-
}) | (INVOKE_TXN_V1 & {
|
|
5412
|
-
transaction_hash: TXN_HASH$1;
|
|
5413
|
-
}) | (DECLARE_TXN_V0 & {
|
|
5414
|
-
transaction_hash: TXN_HASH$1;
|
|
5415
|
-
}) | (DECLARE_TXN_V1 & {
|
|
5416
|
-
transaction_hash: TXN_HASH$1;
|
|
5417
|
-
}) | (DECLARE_TXN_V2 & {
|
|
5418
|
-
transaction_hash: TXN_HASH$1;
|
|
5419
|
-
}) | (DECLARE_TXN_V3 & {
|
|
5420
|
-
transaction_hash: TXN_HASH$1;
|
|
5421
|
-
}) | (DEPLOY_TXN & {
|
|
5422
|
-
transaction_hash: TXN_HASH$1;
|
|
5423
|
-
}) | (DEPLOY_ACCOUNT_TXN_V1 & {
|
|
5424
|
-
transaction_hash: TXN_HASH$1;
|
|
5425
|
-
}) | (DEPLOY_ACCOUNT_TXN_V3 & {
|
|
5426
|
-
transaction_hash: TXN_HASH$1;
|
|
5416
|
+
}): Promise<(RPCSPEC09.INVOKE_TXN_V0 & {
|
|
5417
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5418
|
+
}) | (RPCSPEC09.INVOKE_TXN_V1 & {
|
|
5419
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5427
5420
|
}) | (RPCSPEC09.INVOKE_TXN_V3 & {
|
|
5428
5421
|
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5422
|
+
}) | ({
|
|
5423
|
+
version: "0x0";
|
|
5424
|
+
type: Uppercase<RPCSPEC09.ABI_TYPE_L1_HANDLER>;
|
|
5425
|
+
nonce: RPCSPEC09.NUM_AS_HEX;
|
|
5426
|
+
} & RPCSPEC09.FUNCTION_CALL & {
|
|
5427
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5428
|
+
}) | (RPCSPEC09.DECLARE_TXN_V0 & {
|
|
5429
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5430
|
+
}) | (RPCSPEC09.DECLARE_TXN_V1 & {
|
|
5431
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5432
|
+
}) | (RPCSPEC09.DECLARE_TXN_V2 & {
|
|
5433
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5434
|
+
}) | (RPCSPEC09.DECLARE_TXN_V3 & {
|
|
5435
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5436
|
+
}) | (RPCSPEC09.DEPLOY_TXN & {
|
|
5437
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5438
|
+
}) | (RPCSPEC09.DEPLOY_ACCOUNT_TXN_V1 & {
|
|
5439
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5440
|
+
}) | (RPCSPEC09.DEPLOY_ACCOUNT_TXN_V3 & {
|
|
5441
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5429
5442
|
})>;
|
|
5430
5443
|
getTransactionByHash(txHash: BigNumberish, options?: {
|
|
5431
5444
|
includeProofFacts?: boolean;
|
|
5432
|
-
}): Promise<({
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
} & FUNCTION_CALL & {
|
|
5437
|
-
transaction_hash: TXN_HASH$1;
|
|
5438
|
-
}) | (INVOKE_TXN_V0 & {
|
|
5439
|
-
transaction_hash: TXN_HASH$1;
|
|
5440
|
-
}) | (INVOKE_TXN_V1 & {
|
|
5441
|
-
transaction_hash: TXN_HASH$1;
|
|
5442
|
-
}) | (DECLARE_TXN_V0 & {
|
|
5443
|
-
transaction_hash: TXN_HASH$1;
|
|
5444
|
-
}) | (DECLARE_TXN_V1 & {
|
|
5445
|
-
transaction_hash: TXN_HASH$1;
|
|
5446
|
-
}) | (DECLARE_TXN_V2 & {
|
|
5447
|
-
transaction_hash: TXN_HASH$1;
|
|
5448
|
-
}) | (DECLARE_TXN_V3 & {
|
|
5449
|
-
transaction_hash: TXN_HASH$1;
|
|
5450
|
-
}) | (DEPLOY_TXN & {
|
|
5451
|
-
transaction_hash: TXN_HASH$1;
|
|
5452
|
-
}) | (DEPLOY_ACCOUNT_TXN_V1 & {
|
|
5453
|
-
transaction_hash: TXN_HASH$1;
|
|
5454
|
-
}) | (DEPLOY_ACCOUNT_TXN_V3 & {
|
|
5455
|
-
transaction_hash: TXN_HASH$1;
|
|
5445
|
+
}): Promise<(RPCSPEC09.INVOKE_TXN_V0 & {
|
|
5446
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5447
|
+
}) | (RPCSPEC09.INVOKE_TXN_V1 & {
|
|
5448
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5456
5449
|
}) | (RPCSPEC09.INVOKE_TXN_V3 & {
|
|
5457
5450
|
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5451
|
+
}) | ({
|
|
5452
|
+
version: "0x0";
|
|
5453
|
+
type: Uppercase<RPCSPEC09.ABI_TYPE_L1_HANDLER>;
|
|
5454
|
+
nonce: RPCSPEC09.NUM_AS_HEX;
|
|
5455
|
+
} & RPCSPEC09.FUNCTION_CALL & {
|
|
5456
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5457
|
+
}) | (RPCSPEC09.DECLARE_TXN_V0 & {
|
|
5458
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5459
|
+
}) | (RPCSPEC09.DECLARE_TXN_V1 & {
|
|
5460
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5461
|
+
}) | (RPCSPEC09.DECLARE_TXN_V2 & {
|
|
5462
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5463
|
+
}) | (RPCSPEC09.DECLARE_TXN_V3 & {
|
|
5464
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5465
|
+
}) | (RPCSPEC09.DEPLOY_TXN & {
|
|
5466
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5467
|
+
}) | (RPCSPEC09.DEPLOY_ACCOUNT_TXN_V1 & {
|
|
5468
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5469
|
+
}) | (RPCSPEC09.DEPLOY_ACCOUNT_TXN_V3 & {
|
|
5470
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5458
5471
|
})>;
|
|
5459
5472
|
getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number, options?: {
|
|
5460
5473
|
includeProofFacts?: boolean;
|
|
5461
|
-
}): Promise<({
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
} & FUNCTION_CALL & {
|
|
5466
|
-
transaction_hash: TXN_HASH$1;
|
|
5467
|
-
}) | (INVOKE_TXN_V0 & {
|
|
5468
|
-
transaction_hash: TXN_HASH$1;
|
|
5469
|
-
}) | (INVOKE_TXN_V1 & {
|
|
5470
|
-
transaction_hash: TXN_HASH$1;
|
|
5471
|
-
}) | (DECLARE_TXN_V0 & {
|
|
5472
|
-
transaction_hash: TXN_HASH$1;
|
|
5473
|
-
}) | (DECLARE_TXN_V1 & {
|
|
5474
|
-
transaction_hash: TXN_HASH$1;
|
|
5475
|
-
}) | (DECLARE_TXN_V2 & {
|
|
5476
|
-
transaction_hash: TXN_HASH$1;
|
|
5477
|
-
}) | (DECLARE_TXN_V3 & {
|
|
5478
|
-
transaction_hash: TXN_HASH$1;
|
|
5479
|
-
}) | (DEPLOY_TXN & {
|
|
5480
|
-
transaction_hash: TXN_HASH$1;
|
|
5481
|
-
}) | (DEPLOY_ACCOUNT_TXN_V1 & {
|
|
5482
|
-
transaction_hash: TXN_HASH$1;
|
|
5483
|
-
}) | (DEPLOY_ACCOUNT_TXN_V3 & {
|
|
5484
|
-
transaction_hash: TXN_HASH$1;
|
|
5474
|
+
}): Promise<(RPCSPEC09.INVOKE_TXN_V0 & {
|
|
5475
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5476
|
+
}) | (RPCSPEC09.INVOKE_TXN_V1 & {
|
|
5477
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5485
5478
|
}) | (RPCSPEC09.INVOKE_TXN_V3 & {
|
|
5486
5479
|
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5480
|
+
}) | ({
|
|
5481
|
+
version: "0x0";
|
|
5482
|
+
type: Uppercase<RPCSPEC09.ABI_TYPE_L1_HANDLER>;
|
|
5483
|
+
nonce: RPCSPEC09.NUM_AS_HEX;
|
|
5484
|
+
} & RPCSPEC09.FUNCTION_CALL & {
|
|
5485
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5486
|
+
}) | (RPCSPEC09.DECLARE_TXN_V0 & {
|
|
5487
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5488
|
+
}) | (RPCSPEC09.DECLARE_TXN_V1 & {
|
|
5489
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5490
|
+
}) | (RPCSPEC09.DECLARE_TXN_V2 & {
|
|
5491
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5492
|
+
}) | (RPCSPEC09.DECLARE_TXN_V3 & {
|
|
5493
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5494
|
+
}) | (RPCSPEC09.DEPLOY_TXN & {
|
|
5495
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5496
|
+
}) | (RPCSPEC09.DEPLOY_ACCOUNT_TXN_V1 & {
|
|
5497
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5498
|
+
}) | (RPCSPEC09.DEPLOY_ACCOUNT_TXN_V3 & {
|
|
5499
|
+
transaction_hash: RPCSPEC09.TXN_HASH;
|
|
5487
5500
|
})>;
|
|
5488
5501
|
getTransactionReceipt(txHash: BigNumberish): Promise<GetTransactionReceiptResponse>;
|
|
5489
|
-
getTransactionTrace<V extends _SupportedRpcVersion = _SupportedRpcVersion>(txHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ?
|
|
5490
|
-
getTransactionTrace(txHash: BigNumberish): Promise<
|
|
5502
|
+
getTransactionTrace<V extends _SupportedRpcVersion = _SupportedRpcVersion>(txHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0103.TRANSACTION_TRACE : RPCSPEC09.TRANSACTION_TRACE>;
|
|
5503
|
+
getTransactionTrace(txHash: BigNumberish): Promise<RPCSPEC0103.TRANSACTION_TRACE | RPCSPEC09.TRANSACTION_TRACE>;
|
|
5491
5504
|
getTransactionStatus(transactionHash: BigNumberish): Promise<RPCSPEC09.TXN_STATUS_RESULT>;
|
|
5492
5505
|
getSimulateTransaction(invocations: AccountInvocations, options?: getSimulateTransactionOptions): Promise<SimulateTransactionOverheadResponse>;
|
|
5493
5506
|
waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<GetTransactionReceiptResponse>;
|
|
5494
|
-
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?:
|
|
5507
|
+
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?: RPCSPEC0103.STORAGE_RESPONSE_FLAG[]): Promise<STORAGE_RESULT>;
|
|
5495
5508
|
getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
5496
5509
|
getClassByHash(classHash: BigNumberish): Promise<LegacyContractClass | Omit<CompiledSierra, "sierra_program_debug_info">>;
|
|
5497
5510
|
getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<LegacyContractClass | Omit<CompiledSierra, "sierra_program_debug_info">>;
|
|
@@ -5514,11 +5527,11 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
5514
5527
|
transaction_hash: string;
|
|
5515
5528
|
}>;
|
|
5516
5529
|
callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
|
|
5517
|
-
estimateMessageFee<V extends _SupportedRpcVersion = _SupportedRpcVersion>(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<V extends SupportedRpcVersion0_10 ?
|
|
5518
|
-
estimateMessageFee(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<
|
|
5530
|
+
estimateMessageFee<V extends _SupportedRpcVersion = _SupportedRpcVersion>(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0103.FEE_ESTIMATE : RPCSPEC09.MESSAGE_FEE_ESTIMATE>;
|
|
5531
|
+
estimateMessageFee(message: RPCSPEC09.L1Message, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC0103.FEE_ESTIMATE | RPCSPEC09.MESSAGE_FEE_ESTIMATE>;
|
|
5519
5532
|
getSyncingStats(): Promise<RPCSPEC09.Syncing>;
|
|
5520
|
-
getEvents<V extends _SupportedRpcVersion = _SupportedRpcVersion>(eventFilter: V extends SupportedRpcVersion0_10 ?
|
|
5521
|
-
getEvents(eventFilter:
|
|
5533
|
+
getEvents<V extends _SupportedRpcVersion = _SupportedRpcVersion>(eventFilter: V extends SupportedRpcVersion0_10 ? RPCSPEC0103.EventFilter : RPCSPEC09.EventFilter): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0103.EVENTS_CHUNK : RPCSPEC09.EVENTS_CHUNK>;
|
|
5534
|
+
getEvents(eventFilter: RPCSPEC0103.EventFilter | RPCSPEC09.EventFilter): Promise<RPCSPEC0103.EVENTS_CHUNK | RPCSPEC09.EVENTS_CHUNK>;
|
|
5522
5535
|
verifyMessageInStarknet(message: BigNumberish | TypedData, signature: Signature, accountAddress: BigNumberish, signatureVerificationFunctionName?: string, signatureVerificationResponse?: {
|
|
5523
5536
|
okResponse: string[];
|
|
5524
5537
|
nokResponse: string[];
|
|
@@ -5526,8 +5539,8 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
5526
5539
|
}): Promise<boolean>;
|
|
5527
5540
|
isClassDeclared(contractClassIdentifier: ContractClassIdentifier, blockIdentifier?: BlockIdentifier): Promise<boolean>;
|
|
5528
5541
|
prepareInvocations(invocations: Invocations): Promise<Invocations>;
|
|
5529
|
-
getL1MessagesStatus<V extends _SupportedRpcVersion = _SupportedRpcVersion>(transactionHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ?
|
|
5530
|
-
getL1MessagesStatus(transactionHash: BigNumberish): Promise<
|
|
5542
|
+
getL1MessagesStatus<V extends _SupportedRpcVersion = _SupportedRpcVersion>(transactionHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0103.L1L2MessagesStatus : RPCSPEC09.L1L2MessagesStatus>;
|
|
5543
|
+
getL1MessagesStatus(transactionHash: BigNumberish): Promise<RPCSPEC0103.L1L2MessagesStatus | RPCSPEC09.L1L2MessagesStatus>;
|
|
5531
5544
|
getStorageProof(classHashes: BigNumberish[], contractAddresses: BigNumberish[], contractsStorageKeys: CONTRACT_STORAGE_KEYS[], blockIdentifier?: BlockIdentifier): Promise<StorageProof>;
|
|
5532
5545
|
getCompiledCasm(classHash: BigNumberish): Promise<CASM_COMPILED_CONTRACT_CLASS>;
|
|
5533
5546
|
getEstimateTip(blockIdentifier?: BlockIdentifier, options?: TipAnalysisOptions): Promise<TipEstimate>;
|
|
@@ -5558,7 +5571,7 @@ declare function verifyMessageInStarknet(provider: ProviderInterface, message: B
|
|
|
5558
5571
|
error: string[];
|
|
5559
5572
|
}): Promise<boolean>;
|
|
5560
5573
|
|
|
5561
|
-
declare function getGasPrices(channel: RpcChannel$
|
|
5574
|
+
declare function getGasPrices(channel: RpcChannel$2 | RpcChannel$1, blockIdentifier?: BlockIdentifier): Promise<GasPrices>;
|
|
5562
5575
|
|
|
5563
5576
|
declare class Account implements AccountInterface {
|
|
5564
5577
|
provider: RpcProvider;
|
|
@@ -5766,8 +5779,8 @@ declare class WalletAccount extends Account {
|
|
|
5766
5779
|
/**
|
|
5767
5780
|
* ACCOUNT METHODS
|
|
5768
5781
|
*/
|
|
5769
|
-
execute(calls: AllowArray<Call>): Promise<
|
|
5770
|
-
declare(payload: DeclareContractPayload): Promise<
|
|
5782
|
+
execute(calls: AllowArray<Call>): Promise<RPCSPEC0103.AddInvokeTransactionResult>;
|
|
5783
|
+
declare(payload: DeclareContractPayload): Promise<RPCSPEC0103.AddDeclareTransactionResult>;
|
|
5771
5784
|
deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[]): Promise<MultiDeployContractResponse>;
|
|
5772
5785
|
signMessage(typedData: TypedData): Promise<Signature$1>;
|
|
5773
5786
|
static connect(provider: ProviderOptions | ProviderInterface, walletProvider: StarknetWalletProvider, cairoVersion?: CairoVersion, paymaster?: PaymasterOptions | PaymasterInterface, silentMode?: boolean): Promise<WalletAccount>;
|
|
@@ -5797,15 +5810,15 @@ declare class WalletAccountV5 extends Account {
|
|
|
5797
5810
|
requestAccounts(silentMode?: boolean): Promise<string[]>;
|
|
5798
5811
|
getPermissions(): Promise<"accounts"[]>;
|
|
5799
5812
|
switchStarknetChain(chainId: _StarknetChainId): Promise<boolean>;
|
|
5800
|
-
watchAsset(asset: WatchAssetParameters): Promise<boolean>;
|
|
5801
|
-
addStarknetChain(chain: AddStarknetChainParameters): Promise<boolean>;
|
|
5813
|
+
watchAsset(asset: WatchAssetParameters$1): Promise<boolean>;
|
|
5814
|
+
addStarknetChain(chain: AddStarknetChainParameters$1): Promise<boolean>;
|
|
5802
5815
|
/**
|
|
5803
5816
|
* ACCOUNT METHODS
|
|
5804
5817
|
*/
|
|
5805
|
-
execute(calls: AllowArray<Call>): Promise<
|
|
5806
|
-
declare(payload: DeclareContractPayload): Promise<
|
|
5818
|
+
execute(calls: AllowArray<Call>): Promise<RPC.AddInvokeTransactionResult>;
|
|
5819
|
+
declare(payload: DeclareContractPayload): Promise<RPC.AddDeclareTransactionResult>;
|
|
5807
5820
|
deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[]): Promise<MultiDeployContractResponse>;
|
|
5808
|
-
signMessage(typedData: TypedData): Promise<Signature$
|
|
5821
|
+
signMessage(typedData: TypedData): Promise<Signature$2>;
|
|
5809
5822
|
static connect(provider: ProviderOptions | ProviderInterface, walletProvider: WalletWithStarknetFeatures, cairoVersion?: CairoVersion, paymaster?: PaymasterOptions | PaymasterInterface, silentMode?: boolean): Promise<WalletAccountV5>;
|
|
5810
5823
|
static connectSilent(provider: ProviderOptions | ProviderInterface, walletProvider: WalletWithStarknetFeatures, cairoVersion?: CairoVersion, paymaster?: PaymasterOptions | PaymasterInterface): Promise<WalletAccountV5>;
|
|
5811
5824
|
}
|
|
@@ -6616,7 +6629,7 @@ type CalcDeployAccountTxHashArgs = CalcV3DeployAccountTxHashArgs;
|
|
|
6616
6629
|
declare function calculateDeployAccountTransactionHash$1(args: CalcDeployAccountTxHashArgs): string;
|
|
6617
6630
|
|
|
6618
6631
|
/**
|
|
6619
|
-
*
|
|
6632
|
+
* Pure Pedersen hash utilities — no calldata dependency
|
|
6620
6633
|
*/
|
|
6621
6634
|
|
|
6622
6635
|
declare function computePedersenHash(a: BigNumberish, b: BigNumberish): string;
|
|
@@ -6634,6 +6647,11 @@ declare function computePedersenHash(a: BigNumberish, b: BigNumberish): string;
|
|
|
6634
6647
|
*/
|
|
6635
6648
|
declare function computeHashOnElements(data: BigNumberish[]): string;
|
|
6636
6649
|
declare const computePedersenHashOnElements: typeof computeHashOnElements;
|
|
6650
|
+
|
|
6651
|
+
/**
|
|
6652
|
+
* Cairo 0 Class Hash computation using Pedersen hash
|
|
6653
|
+
*/
|
|
6654
|
+
|
|
6637
6655
|
/**
|
|
6638
6656
|
* Calculate contract address from class hash
|
|
6639
6657
|
*
|
|
@@ -9403,6 +9421,22 @@ declare class CairoByteArray {
|
|
|
9403
9421
|
toBigInt(): bigint;
|
|
9404
9422
|
toHexString(): string;
|
|
9405
9423
|
toBuffer(): any;
|
|
9424
|
+
/**
|
|
9425
|
+
* Compute the Pedersen hash of this ByteArray, following OpenZeppelin's `hash_byte_array` algorithm.
|
|
9426
|
+
*
|
|
9427
|
+
* Serializes the ByteArray to its felt252 components (data array length, each data chunk,
|
|
9428
|
+
* pending_word, pending_word_len), then chains Pedersen hash over all elements starting
|
|
9429
|
+
* from 0, and finalizes with the total element count.
|
|
9430
|
+
*
|
|
9431
|
+
* @returns {string} hex-string felt252 Pedersen hash of the ByteArray
|
|
9432
|
+
* @example
|
|
9433
|
+
* ```typescript
|
|
9434
|
+
* const ba = new CairoByteArray('Hello');
|
|
9435
|
+
* const result = ba.hash();
|
|
9436
|
+
* // result = 0x15d19ad651ffaf8e90a13938db2081fa3ff01de0712e00cbe69891bace66c51
|
|
9437
|
+
* ```
|
|
9438
|
+
*/
|
|
9439
|
+
hash(): string;
|
|
9406
9440
|
/**
|
|
9407
9441
|
* returns an array of all the data chunks and the pending word
|
|
9408
9442
|
* when concatenated, represents the original bytes sequence
|
|
@@ -10145,73 +10179,73 @@ declare namespace connect {
|
|
|
10145
10179
|
* @param {boolean} [silent_mode=false] false: request user interaction allowance. true: return only pre-allowed
|
|
10146
10180
|
* @returns {Address[]} allowed accounts addresses
|
|
10147
10181
|
*/
|
|
10148
|
-
declare function requestAccounts(walletWSF: WalletWithStarknetFeatures, silent_mode?: boolean): Promise<Address[]>;
|
|
10182
|
+
declare function requestAccounts(walletWSF: WalletWithStarknetFeatures, silent_mode?: boolean): Promise<Address$1[]>;
|
|
10149
10183
|
/**
|
|
10150
10184
|
* Request if DAPP is connected to wallet.
|
|
10151
10185
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10152
10186
|
* @returns {Permission[]} "accounts" if permission granted
|
|
10153
10187
|
*/
|
|
10154
|
-
declare function getPermissions(walletWSF: WalletWithStarknetFeatures): Promise<Permission[]>;
|
|
10188
|
+
declare function getPermissions(walletWSF: WalletWithStarknetFeatures): Promise<Permission$1[]>;
|
|
10155
10189
|
/**
|
|
10156
10190
|
* Request adding an ERC20 Token to the Wallet List
|
|
10157
10191
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10158
10192
|
* @param {WatchAssetParameters} asset description of the token to add.
|
|
10159
10193
|
* @returns {boolean} true if the token was added successfully
|
|
10160
10194
|
*/
|
|
10161
|
-
declare function watchAsset(walletWSF: WalletWithStarknetFeatures, asset: WatchAssetParameters): Promise<boolean>;
|
|
10195
|
+
declare function watchAsset(walletWSF: WalletWithStarknetFeatures, asset: WatchAssetParameters$1): Promise<boolean>;
|
|
10162
10196
|
/**
|
|
10163
10197
|
* Request adding custom Starknet chain
|
|
10164
10198
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10165
10199
|
* @param {AddStarknetChainParameters} chain description of the chain to add.
|
|
10166
10200
|
* @returns {boolean} true if the chain was added successfully
|
|
10167
10201
|
*/
|
|
10168
|
-
declare function addStarknetChain(walletWSF: WalletWithStarknetFeatures, chain: AddStarknetChainParameters): Promise<boolean>;
|
|
10202
|
+
declare function addStarknetChain(walletWSF: WalletWithStarknetFeatures, chain: AddStarknetChainParameters$1): Promise<boolean>;
|
|
10169
10203
|
/**
|
|
10170
10204
|
* Request Wallet Network change
|
|
10171
10205
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10172
10206
|
* @param {ChainId} chainId encoded name of the chain requested.
|
|
10173
10207
|
* @returns {boolean} true if the chain was changed successfully
|
|
10174
10208
|
*/
|
|
10175
|
-
declare function switchStarknetChain(walletWSF: WalletWithStarknetFeatures, chainId: ChainId): Promise<boolean>;
|
|
10209
|
+
declare function switchStarknetChain(walletWSF: WalletWithStarknetFeatures, chainId: ChainId$1): Promise<boolean>;
|
|
10176
10210
|
/**
|
|
10177
10211
|
* Request the current chain ID from the wallet.
|
|
10178
10212
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10179
10213
|
* @returns {ChainId} The current Starknet chain ID.
|
|
10180
10214
|
*/
|
|
10181
|
-
declare function requestChainId(walletWSF: WalletWithStarknetFeatures): Promise<ChainId>;
|
|
10215
|
+
declare function requestChainId(walletWSF: WalletWithStarknetFeatures): Promise<ChainId$1>;
|
|
10182
10216
|
/**
|
|
10183
10217
|
* Get deployment data for a contract.
|
|
10184
10218
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10185
10219
|
* @returns {AccountDeploymentData} The deployment data result.
|
|
10186
10220
|
*/
|
|
10187
|
-
declare function deploymentData(walletWSF: WalletWithStarknetFeatures): Promise<AccountDeploymentData>;
|
|
10221
|
+
declare function deploymentData(walletWSF: WalletWithStarknetFeatures): Promise<AccountDeploymentData$1>;
|
|
10188
10222
|
/**
|
|
10189
10223
|
* Add an invoke transaction to the wallet.
|
|
10190
10224
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10191
10225
|
* @param {AddInvokeTransactionParameters} params The parameters required for the invoke transaction.
|
|
10192
10226
|
* @returns {AddInvokeTransactionResult} The result of adding the invoke transaction.
|
|
10193
10227
|
*/
|
|
10194
|
-
declare function addInvokeTransaction(walletWSF: WalletWithStarknetFeatures, params: AddInvokeTransactionParameters): Promise<AddInvokeTransactionResult>;
|
|
10228
|
+
declare function addInvokeTransaction(walletWSF: WalletWithStarknetFeatures, params: AddInvokeTransactionParameters$1): Promise<AddInvokeTransactionResult$1>;
|
|
10195
10229
|
/**
|
|
10196
10230
|
* Add a declare transaction to the wallet.
|
|
10197
10231
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10198
10232
|
* @param {AddDeclareTransactionParameters} params The parameters required for the declare transaction.
|
|
10199
10233
|
* @returns {AddDeclareTransactionResult} The result of adding the declare transaction.
|
|
10200
10234
|
*/
|
|
10201
|
-
declare function addDeclareTransaction(walletWSF: WalletWithStarknetFeatures, params: AddDeclareTransactionParameters): Promise<AddDeclareTransactionResult>;
|
|
10235
|
+
declare function addDeclareTransaction(walletWSF: WalletWithStarknetFeatures, params: AddDeclareTransactionParameters$1): Promise<AddDeclareTransactionResult$1>;
|
|
10202
10236
|
/**
|
|
10203
10237
|
* Sign typed data using the wallet.
|
|
10204
10238
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10205
10239
|
* @param {TypedData} typedData The typed data to sign.
|
|
10206
10240
|
* @returns {Signature} An array of signatures as strings.
|
|
10207
10241
|
*/
|
|
10208
|
-
declare function signMessage(walletWSF: WalletWithStarknetFeatures, typedData: TypedData): Promise<Signature$
|
|
10242
|
+
declare function signMessage(walletWSF: WalletWithStarknetFeatures, typedData: TypedData$1): Promise<Signature$2>;
|
|
10209
10243
|
/**
|
|
10210
10244
|
* Get the list of supported Wallet API specifications.
|
|
10211
10245
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10212
10246
|
* @returns {SpecVersion[]} An array of wallet API supported specification strings.
|
|
10213
10247
|
*/
|
|
10214
|
-
declare function supportedSpecs(walletWSF: WalletWithStarknetFeatures): Promise<SpecVersion[]>;
|
|
10248
|
+
declare function supportedSpecs(walletWSF: WalletWithStarknetFeatures): Promise<SpecVersion$1[]>;
|
|
10215
10249
|
/**
|
|
10216
10250
|
* Attaches an event handler function for the changes of network and account.
|
|
10217
10251
|
* When the account/network are changed, the specified callback function will be called.
|
|
@@ -10338,4 +10372,4 @@ declare class Logger {
|
|
|
10338
10372
|
*/
|
|
10339
10373
|
declare const logger: Logger;
|
|
10340
10374
|
|
|
10341
|
-
export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser1, AbiParser2, AbiParserInterface, type AbiStruct, type AbiStructs, Account, type AccountHooks, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AccountOptions, type AllowArray, type ApiEstimateFeeResponse, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BLOCK_HASH, type BLOCK_NUMBER, BatchClient, type BatchClientOptions, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockTransactionTrace, type BlockTransactionsTracesWithInitialReads, type BlockWithTxHashes, BrotherIdImpl, type BrotherIdProviderMethods, type BrotherProfile, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, CairoByteArray, CairoBytes31, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, type CommonContractOptions, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, Deployer, type DeployerCall, DeployerInterface, type Details, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, ETxnResponseFlag, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type ErrorReceiptResponseHelper, type EstimateFeeBulk, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FastExecuteAccountMethods, type FastExecuteProviderMethods, type FastExecuteResponse, type FastWaitForTransactionOptions, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, type INITIAL_READS, Int, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LoadedContract, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type ParsingStrategy, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PluginConfig, PluginManager, type PreConfirmedBlock, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, type ProviderHooks, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_10_2 as
|
|
10375
|
+
export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser1, AbiParser2, AbiParserInterface, type AbiStruct, type AbiStructs, Account, type AccountHooks, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AccountOptions, type AllowArray, type ApiEstimateFeeResponse, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BLOCK_HASH, type BLOCK_NUMBER, BatchClient, type BatchClientOptions, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockTransactionTrace, type BlockTransactionsTracesWithInitialReads, type BlockWithTxHashes, BrotherIdImpl, type BrotherIdProviderMethods, type BrotherProfile, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, CairoByteArray, CairoBytes31, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, type CommonContractOptions, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, Deployer, type DeployerCall, DeployerInterface, type Details, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, ETxnResponseFlag, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type ErrorReceiptResponseHelper, type EstimateFeeBulk, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FastExecuteAccountMethods, type FastExecuteProviderMethods, type FastExecuteResponse, type FastWaitForTransactionOptions, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, type INITIAL_READS, Int, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LoadedContract, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type ParsingStrategy, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PluginConfig, PluginManager, type PreConfirmedBlock, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, type ProviderHooks, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_10_2 as RPC0102, rpc_0_10_3 as RPC0103, rpc_0_9_0 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type ReconnectOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionOverhead, type SimulateTransactionOverheadResponse, type SimulateTransactionResponse, type SimulationFlags, type StarkProfile, type StarknetIdAccountMethods, StarknetIdImpl, type StarknetIdProviderMethods, type StarknetPlugin, type StateUpdate, type StateUpdateResponse, type StorageResponse, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, type SubscriptionStarknetEventsEvent, type SubscriptionTransactionStatusEvent, type SuccessfulTransactionReceiptResponse, type SuccessfulTransactionReceiptResponseHelper, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, type TipType, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, type TransactionTrace, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, 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, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UserInvoke, type UserTransaction, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, WalletAccountV5, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, brotherId, byteArray, cairo, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, contractLoader, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPlugins, ec, encode, eth, index as events, extractContractHashes, fastExecute, fastParsingStrategy, getAbiVersion, type getBlockTransactionsTracesOptions, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isFileSystemAvailable, isNoConstructorValid, isPreConfirmedBlock, isPreConfirmedStateUpdate, isPreConfirmedTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, legacyDeployer, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, toAnyPatchVersion, toApiVersion, index$2 as transaction, typedData, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet, connectV5 as walletV5 };
|