starknet 7.0.1 → 7.1.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 +11 -0
- package/dist/index.d.ts +104 -98
- package/dist/index.global.js +78 -67
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +78 -67
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -67
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as RPCSPEC07 from 'starknet-types-07';
|
|
|
2
2
|
import { STRUCT_EVENT, EVENT_FIELD, ENUM_EVENT, BlockHash, TransactionHash, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision, StarknetWindowObject, Address, Permission, WatchAssetParameters as WatchAssetParameters$1, AddStarknetChainParameters as AddStarknetChainParameters$1, ChainId, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, Signature as Signature$2, SpecVersion, AccountChangeEventHandler as AccountChangeEventHandler$1, NetworkChangeEventHandler as NetworkChangeEventHandler$1 } from 'starknet-types-07';
|
|
3
3
|
export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from 'starknet-types-07';
|
|
4
4
|
import * as RPCSPEC08 from 'starknet-types-08';
|
|
5
|
-
import { EDataAvailabilityMode as EDataAvailabilityMode$1, SUBSCRIPTION_BLOCK_TAG, BLOCK_WITH_TX_HASHES, PENDING_BLOCK_WITH_TX_HASHES, BlockWithTxHashes as BlockWithTxHashes$1, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, IsType, ETransactionVersion as ETransactionVersion$1, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, SubscriptionReorgResponse, SubscriptionNewHeadsResponse, SubscriptionEventsResponse, SubscriptionTransactionsStatusResponse, SubscriptionPendingTransactionsResponse,
|
|
5
|
+
import { EDataAvailabilityMode as EDataAvailabilityMode$1, SUBSCRIPTION_BLOCK_TAG, BLOCK_WITH_TX_HASHES, PENDING_BLOCK_WITH_TX_HASHES, BlockWithTxHashes as BlockWithTxHashes$1, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, IsType, ETransactionVersion as ETransactionVersion$1, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, SubscriptionReorgResponse, SubscriptionNewHeadsResponse, SubscriptionEventsResponse, SubscriptionTransactionsStatusResponse, SubscriptionPendingTransactionsResponse, SUBSCRIPTION_ID, WebSocketMethods, BLOCK_STATUS, BLOCK_HEADER, BLOCK_BODY_WITH_RECEIPTS, PENDING_BLOCK_HEADER, BlockTransactionsTraces, CONTRACT_STORAGE_KEYS, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, PRICE_UNIT as PRICE_UNIT$1, EmittedEvent as EmittedEvent$1, Methods as Methods$1 } from 'starknet-types-08';
|
|
6
6
|
import * as weierstrass from '@noble/curves/abstract/weierstrass';
|
|
7
7
|
import { RecoveredSignatureType } from '@noble/curves/abstract/weierstrass';
|
|
8
8
|
import { Abi as Abi$1, TypedContract } from 'abi-wan-kanabi';
|
|
@@ -634,7 +634,7 @@ type Details = {
|
|
|
634
634
|
nonce: BigNumberish;
|
|
635
635
|
maxFee: BigNumberish;
|
|
636
636
|
version: BigNumberish;
|
|
637
|
-
chainId:
|
|
637
|
+
chainId: _StarknetChainId;
|
|
638
638
|
};
|
|
639
639
|
type InvocationsDetailsWithNonce = (InvocationsDetails & {
|
|
640
640
|
nonce: BigNumberish;
|
|
@@ -759,13 +759,13 @@ type FeeMarginPercentage = {
|
|
|
759
759
|
maxFee: number;
|
|
760
760
|
};
|
|
761
761
|
type RpcProviderOptions = {
|
|
762
|
-
nodeUrl?: string |
|
|
762
|
+
nodeUrl?: string | _NetworkName;
|
|
763
763
|
retries?: number;
|
|
764
764
|
transactionRetryIntervalFallback?: number;
|
|
765
765
|
headers?: object;
|
|
766
766
|
blockIdentifier?: BlockIdentifier;
|
|
767
|
-
chainId?:
|
|
768
|
-
specVersion?:
|
|
767
|
+
chainId?: _StarknetChainId;
|
|
768
|
+
specVersion?: _SupportedRpcVersion;
|
|
769
769
|
default?: boolean;
|
|
770
770
|
waitMode?: boolean;
|
|
771
771
|
baseFetch?: WindowOrWorkerGlobalScope['fetch'];
|
|
@@ -1075,11 +1075,12 @@ declare const OutsideExecutionTypesV2: {
|
|
|
1075
1075
|
type: string;
|
|
1076
1076
|
}[];
|
|
1077
1077
|
};
|
|
1078
|
-
declare
|
|
1079
|
-
UNSUPPORTED
|
|
1080
|
-
V1
|
|
1081
|
-
V2
|
|
1082
|
-
}
|
|
1078
|
+
declare const OutsideExecutionVersion: {
|
|
1079
|
+
readonly UNSUPPORTED: "0";
|
|
1080
|
+
readonly V1: "1";
|
|
1081
|
+
readonly V2: "2";
|
|
1082
|
+
};
|
|
1083
|
+
type OutsideExecutionVersion = ValuesType<typeof OutsideExecutionVersion>;
|
|
1083
1084
|
|
|
1084
1085
|
type InvocationsSignerDetails = (V2InvocationsSignerDetails | V3InvocationsSignerDetails) & {
|
|
1085
1086
|
version: `${ETransactionVersion$1}`;
|
|
@@ -1088,7 +1089,7 @@ type InvocationsSignerDetails = (V2InvocationsSignerDetails | V3InvocationsSigne
|
|
|
1088
1089
|
type V2InvocationsSignerDetails = {
|
|
1089
1090
|
walletAddress: string;
|
|
1090
1091
|
cairoVersion: CairoVersion;
|
|
1091
|
-
chainId:
|
|
1092
|
+
chainId: _StarknetChainId;
|
|
1092
1093
|
nonce: BigNumberish;
|
|
1093
1094
|
maxFee: BigNumberish;
|
|
1094
1095
|
version: `${ETransactionVersion2$1}`;
|
|
@@ -1096,7 +1097,7 @@ type V2InvocationsSignerDetails = {
|
|
|
1096
1097
|
type V3InvocationsSignerDetails = V3TransactionDetails & {
|
|
1097
1098
|
walletAddress: string;
|
|
1098
1099
|
cairoVersion: CairoVersion;
|
|
1099
|
-
chainId:
|
|
1100
|
+
chainId: _StarknetChainId;
|
|
1100
1101
|
version: `${ETransactionVersion3$1}`;
|
|
1101
1102
|
};
|
|
1102
1103
|
type DeclareSignerDetails = (V3DeclareSignerDetails | V2DeclareSignerDetails) & {
|
|
@@ -1106,25 +1107,25 @@ type V2DeclareSignerDetails = Required<InvocationsDetails> & {
|
|
|
1106
1107
|
classHash: string;
|
|
1107
1108
|
compiledClassHash?: string;
|
|
1108
1109
|
senderAddress: string;
|
|
1109
|
-
chainId:
|
|
1110
|
+
chainId: _StarknetChainId;
|
|
1110
1111
|
version: `${ETransactionVersion2$1}`;
|
|
1111
1112
|
};
|
|
1112
1113
|
type V3DeclareSignerDetails = V3TransactionDetails & {
|
|
1113
1114
|
classHash: string;
|
|
1114
1115
|
compiledClassHash: string;
|
|
1115
1116
|
senderAddress: string;
|
|
1116
|
-
chainId:
|
|
1117
|
+
chainId: _StarknetChainId;
|
|
1117
1118
|
version: `${ETransactionVersion3$1}`;
|
|
1118
1119
|
};
|
|
1119
1120
|
type DeployAccountSignerDetails = V2DeployAccountSignerDetails | V3DeployAccountSignerDetails;
|
|
1120
1121
|
type V2DeployAccountSignerDetails = Required<DeployAccountContractPayload> & Required<InvocationsDetails> & {
|
|
1121
1122
|
contractAddress: BigNumberish;
|
|
1122
|
-
chainId:
|
|
1123
|
+
chainId: _StarknetChainId;
|
|
1123
1124
|
version: `${ETransactionVersion2$1}`;
|
|
1124
1125
|
};
|
|
1125
1126
|
type V3DeployAccountSignerDetails = Required<DeployAccountContractPayload> & V3TransactionDetails & {
|
|
1126
1127
|
contractAddress: BigNumberish;
|
|
1127
|
-
chainId:
|
|
1128
|
+
chainId: _StarknetChainId;
|
|
1128
1129
|
version: `${ETransactionVersion3$1}`;
|
|
1129
1130
|
};
|
|
1130
1131
|
type LedgerPathCalculation = (accountId: number, applicationName: string) => Uint8Array;
|
|
@@ -1283,7 +1284,6 @@ type index$3_OutsideExecutionOptions = OutsideExecutionOptions;
|
|
|
1283
1284
|
declare const index$3_OutsideExecutionTypesV1: typeof OutsideExecutionTypesV1;
|
|
1284
1285
|
declare const index$3_OutsideExecutionTypesV2: typeof OutsideExecutionTypesV2;
|
|
1285
1286
|
type index$3_OutsideExecutionVersion = OutsideExecutionVersion;
|
|
1286
|
-
declare const index$3_OutsideExecutionVersion: typeof OutsideExecutionVersion;
|
|
1287
1287
|
type index$3_OutsideTransaction = OutsideTransaction;
|
|
1288
1288
|
type index$3_PENDING_DECLARE_TXN_RECEIPT = PENDING_DECLARE_TXN_RECEIPT;
|
|
1289
1289
|
type index$3_PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT = PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT;
|
|
@@ -1380,7 +1380,7 @@ declare const index$3_isRPC08_FeeEstimate: typeof isRPC08_FeeEstimate;
|
|
|
1380
1380
|
declare const index$3_isRPC08_ResourceBounds: typeof isRPC08_ResourceBounds;
|
|
1381
1381
|
type index$3_waitForTransactionOptions = waitForTransactionOptions;
|
|
1382
1382
|
declare namespace index$3 {
|
|
1383
|
-
export { type index$3_Abi as Abi, type index$3_AbiEntry as AbiEntry, type index$3_AbiEnum as AbiEnum, type index$3_AbiEnums as AbiEnums, type index$3_AbiEvent as AbiEvent, type index$3_AbiEvents as AbiEvents, type index$3_AbiInterfaces as AbiInterfaces, type index$3_AbiStruct as AbiStruct, type index$3_AbiStructs as AbiStructs, type index$3_AccountInvocationItem as AccountInvocationItem, type index$3_AccountInvocations as AccountInvocations, type index$3_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$3_AllowArray as AllowArray, type index$3_Args as Args, type index$3_ArgsOrCalldata as ArgsOrCalldata, type index$3_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$3_ArraySignatureType as ArraySignatureType, type index$3_AsyncContractFunction as AsyncContractFunction, type index$3_BLOCK_HASH as BLOCK_HASH, type index$3_BLOCK_NUMBER as BLOCK_NUMBER, type index$3_BigNumberish as BigNumberish, type Block$1 as Block, type index$3_BlockIdentifier as BlockIdentifier, type index$3_BlockNumber as BlockNumber, type index$3_BlockStatus as BlockStatus, type index$3_BlockTag as BlockTag, type index$3_BlockWithTxHashes as BlockWithTxHashes, type index$3_Builtins as Builtins, type index$3_ByteArray as ByteArray, type index$3_ByteCode as ByteCode, type index$3_CairoAssembly as CairoAssembly, type index$3_CairoContract as CairoContract, type index$3_CairoEnum as CairoEnum, type index$3_CairoEvent as CairoEvent, type index$3_CairoEventDefinition as CairoEventDefinition, type index$3_CairoEventVariant as CairoEventVariant, type index$3_CairoVersion as CairoVersion, type index$3_Call as Call, type index$3_CallContractResponse as CallContractResponse, type index$3_CallDetails as CallDetails, type index$3_CallOptions as CallOptions, type index$3_Calldata as Calldata, type index$3_CompiledContract as CompiledContract, type index$3_CompiledSierra as CompiledSierra, type index$3_CompiledSierraCasm as CompiledSierraCasm, type index$3_CompilerVersion as CompilerVersion, type index$3_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$3_CompressedProgram as CompressedProgram, type index$3_ContractClass as ContractClass, type index$3_ContractClassIdentifier as ContractClassIdentifier, type index$3_ContractClassPayload as ContractClassPayload, type index$3_ContractClassResponse as ContractClassResponse, type index$3_ContractEntryPointFields as ContractEntryPointFields, type index$3_ContractFunction as ContractFunction, type index$3_ContractOptions as ContractOptions, type index$3_ContractVersion as ContractVersion, type index$3_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$3_DeclareContractPayload as DeclareContractPayload, type index$3_DeclareContractResponse as DeclareContractResponse, type index$3_DeclareContractTransaction as DeclareContractTransaction, type index$3_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$3_DeclareSignerDetails as DeclareSignerDetails, type index$3_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$3_DeclaredTransaction as DeclaredTransaction, type index$3_DeployAccountContractPayload as DeployAccountContractPayload, type index$3_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$3_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$3_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$3_DeployContractResponse as DeployContractResponse, type index$3_DeployContractUDCResponse as DeployContractUDCResponse, type index$3_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$3_DeployedAccountTransaction as DeployedAccountTransaction, type index$3_Details as Details, index$3_EDAMode as EDAMode, index$3_EDataAvailabilityMode as EDataAvailabilityMode, index$3_ETH_ADDRESS as ETH_ADDRESS, index$3_ETransactionExecutionStatus as ETransactionExecutionStatus, index$3_ETransactionStatus as ETransactionStatus, index$3_ETransactionVersion as ETransactionVersion, index$3_ETransactionVersion2 as ETransactionVersion2, index$3_ETransactionVersion3 as ETransactionVersion3, type index$3_EVENTS_CHUNK as EVENTS_CHUNK, type index$3_EmittedEvent as EmittedEvent, type index$3_EntryPointType as EntryPointType, type index$3_EntryPointsByType as EntryPointsByType, type index$3_EstimateFee as EstimateFee, type index$3_EstimateFeeAction as EstimateFeeAction, type index$3_EstimateFeeBulk as EstimateFeeBulk, type index$3_EstimateFeeDetails as EstimateFeeDetails, type index$3_EstimateFeeResponse as EstimateFeeResponse, type index$3_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type Event$1 as Event, type index$3_EventEntry as EventEntry, type index$3_EventFilter as EventFilter, type index$3_FEE_ESTIMATE as FEE_ESTIMATE, type index$3_FELT as FELT, type index$3_FeeEstimate as FeeEstimate, type index$3_FeeMarginPercentage as FeeMarginPercentage, type index$3_FunctionAbi as FunctionAbi, type index$3_GetBlockResponse as GetBlockResponse, type index$3_GetTransactionReceiptResponse as GetTransactionReceiptResponse, type index$3_GetTransactionResponse as GetTransactionResponse, type index$3_GetTxReceiptResponseWithoutHelper as GetTxReceiptResponseWithoutHelper, type index$3_HexCalldata as HexCalldata, type index$3_InterfaceAbi as InterfaceAbi, type index$3_Invocation as Invocation, type index$3_Invocations as Invocations, type index$3_InvocationsDetails as InvocationsDetails, type index$3_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$3_InvocationsSignerDetails as InvocationsSignerDetails, type index$3_InvokeFunctionResponse as InvokeFunctionResponse, type index$3_InvokeOptions as InvokeOptions, type index$3_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$3_InvokedTransaction as InvokedTransaction, type index$3_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$3_L1Message as L1Message, type index$3_L1_HANDLER_TXN as L1_HANDLER_TXN, type index$3_LedgerPathCalculation as LedgerPathCalculation, type index$3_LegacyCompiledContract as LegacyCompiledContract, type index$3_LegacyContractClass as LegacyContractClass, type index$3_LegacyEvent as LegacyEvent, type index$3_Literal as Literal, type index$3_Methods as Methods, type index$3_MultiDeployContractResponse as MultiDeployContractResponse, type index$3_MultiType as MultiType, index$3_NON_ZERO_PREFIX as NON_ZERO_PREFIX, type index$3_Nonce as Nonce, type index$3_OptionalPayload as OptionalPayload, type index$3_OutsideCall as OutsideCall, type index$3_OutsideExecution as OutsideExecution, type index$3_OutsideExecutionOptions as OutsideExecutionOptions, index$3_OutsideExecutionTypesV1 as OutsideExecutionTypesV1, index$3_OutsideExecutionTypesV2 as OutsideExecutionTypesV2, index$3_OutsideExecutionVersion as OutsideExecutionVersion, type index$3_OutsideTransaction as OutsideTransaction, type index$3_PENDING_DECLARE_TXN_RECEIPT as PENDING_DECLARE_TXN_RECEIPT, type index$3_PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT as PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, type index$3_PENDING_INVOKE_TXN_RECEIPT as PENDING_INVOKE_TXN_RECEIPT, type index$3_PENDING_L1_HANDLER_TXN_RECEIPT as PENDING_L1_HANDLER_TXN_RECEIPT, type index$3_PENDING_STATE_UPDATE as PENDING_STATE_UPDATE, type index$3_PRICE_UNIT as PRICE_UNIT, type index$3_ParsedEvent as ParsedEvent, type index$3_ParsedEvents as ParsedEvents, type index$3_ParsedStruct as ParsedStruct, type index$3_PendingBlock as PendingBlock, type index$3_PendingReceipt as PendingReceipt, type index$3_PendingStateUpdate as PendingStateUpdate, type index$3_Program as Program, type index$3_ProviderOptions as ProviderOptions, type index$3_PythonicHints as PythonicHints, type index$3_RESOURCE_PRICE as RESOURCE_PRICE, index$4 as RPC, type index$3_RPC_ERROR as RPC_ERROR, type index$3_RPC_ERROR_SET as RPC_ERROR_SET, type index$3_RawArgs as RawArgs, type index$3_RawArgsArray as RawArgsArray, type index$3_RawArgsObject as RawArgsObject, type index$3_RawCalldata as RawCalldata, type index$3_Receipt as Receipt, type index$3_RequiredKeysOf as RequiredKeysOf, type index$3_ResourceBounds as ResourceBounds, type index$3_ResourceBoundsOverhead as ResourceBoundsOverhead, type index$3_ResourceBoundsOverheadRPC07 as ResourceBoundsOverheadRPC07, type index$3_ResourceBoundsOverheadRPC08 as ResourceBoundsOverheadRPC08, type index$3_Result as Result, type index$3_RevertedTransactionReceiptResponse as RevertedTransactionReceiptResponse, type index$3_RpcProviderOptions as RpcProviderOptions, type index$3_SIMULATION_FLAG as SIMULATION_FLAG, type index$3_STATE_UPDATE as STATE_UPDATE, type index$3_SierraContractClass as SierraContractClass, type index$3_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$3_SierraEntryPointsByType as SierraEntryPointsByType, type index$3_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$3_Signature as Signature, type index$3_Simplify as Simplify, type index$3_SimulateTransaction as SimulateTransaction, type index$3_SimulateTransactionDetails as SimulateTransactionDetails, type index$3_SimulateTransactionResponse as SimulateTransactionResponse, type index$3_SimulatedTransaction as SimulatedTransaction, type index$3_SimulationFlags as SimulationFlags, type index$3_StarkProfile as StarkProfile, index$3_StarknetDomain as StarknetDomain, index$3_StarknetEnumType as StarknetEnumType, index$3_StarknetMerkleType as StarknetMerkleType, index$3_StarknetType as StarknetType, type index$3_StateUpdate as StateUpdate, type index$3_StateUpdateResponse as StateUpdateResponse, type index$3_Storage as Storage, type index$3_SubscriptionBlockIdentifier as SubscriptionBlockIdentifier, type index$3_SuccessfulTransactionReceiptResponse as SuccessfulTransactionReceiptResponse, type index$3_TRANSACTION_TRACE as TRANSACTION_TRACE, type index$3_TXN_EXECUTION_STATUS as TXN_EXECUTION_STATUS, type index$3_TXN_HASH as TXN_HASH, type index$3_TXN_STATUS as TXN_STATUS, type index$3_TransactionExecutionStatus as TransactionExecutionStatus, type index$3_TransactionFinalityStatus as TransactionFinalityStatus, type index$3_TransactionReceipt as TransactionReceipt, type index$3_TransactionReceiptCallbacks as TransactionReceiptCallbacks, type index$3_TransactionReceiptCallbacksDefault as TransactionReceiptCallbacksDefault, type index$3_TransactionReceiptCallbacksDefined as TransactionReceiptCallbacksDefined, type index$3_TransactionReceiptStatus as TransactionReceiptStatus, type index$3_TransactionReceiptValue as TransactionReceiptValue, type index$3_TransactionStatus as TransactionStatus, type index$3_TransactionStatusReceiptSets as TransactionStatusReceiptSets, type index$3_TransactionType as TransactionType, type index$3_TransactionWithHash as TransactionWithHash, type index$3_Tupled as Tupled, index$3_TypedData as TypedData, index$3_TypedDataRevision as TypedDataRevision, type index$3_Uint as Uint, type index$3_Uint256 as Uint256, type index$3_Uint512 as Uint512, type index$3_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$3_UniversalDetails as UniversalDetails, type index$3_UniversalSuggestedFee as UniversalSuggestedFee, type index$3_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$3_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$3_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$3_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$3_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$3_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$3_V3TransactionDetails as V3TransactionDetails, type index$3_ValidateType as ValidateType, type index$3_WeierstrassSignatureType as WeierstrassSignatureType, type index$3_getContractVersionOptions as getContractVersionOptions, type index$3_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$3_getSimulateTransactionOptions as getSimulateTransactionOptions, index$3_isRPC08_FeeEstimate as isRPC08_FeeEstimate, index$3_isRPC08_ResourceBounds as isRPC08_ResourceBounds, type index$3_waitForTransactionOptions as waitForTransactionOptions };
|
|
1383
|
+
export { type index$3_Abi as Abi, type index$3_AbiEntry as AbiEntry, type index$3_AbiEnum as AbiEnum, type index$3_AbiEnums as AbiEnums, type index$3_AbiEvent as AbiEvent, type index$3_AbiEvents as AbiEvents, type index$3_AbiInterfaces as AbiInterfaces, type index$3_AbiStruct as AbiStruct, type index$3_AbiStructs as AbiStructs, type index$3_AccountInvocationItem as AccountInvocationItem, type index$3_AccountInvocations as AccountInvocations, type index$3_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$3_AllowArray as AllowArray, type index$3_Args as Args, type index$3_ArgsOrCalldata as ArgsOrCalldata, type index$3_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$3_ArraySignatureType as ArraySignatureType, type index$3_AsyncContractFunction as AsyncContractFunction, type index$3_BLOCK_HASH as BLOCK_HASH, type index$3_BLOCK_NUMBER as BLOCK_NUMBER, type index$3_BigNumberish as BigNumberish, type Block$1 as Block, type index$3_BlockIdentifier as BlockIdentifier, type index$3_BlockNumber as BlockNumber, type index$3_BlockStatus as BlockStatus, type index$3_BlockTag as BlockTag, type index$3_BlockWithTxHashes as BlockWithTxHashes, type index$3_Builtins as Builtins, type index$3_ByteArray as ByteArray, type index$3_ByteCode as ByteCode, type index$3_CairoAssembly as CairoAssembly, type index$3_CairoContract as CairoContract, type index$3_CairoEnum as CairoEnum, type index$3_CairoEvent as CairoEvent, type index$3_CairoEventDefinition as CairoEventDefinition, type index$3_CairoEventVariant as CairoEventVariant, type index$3_CairoVersion as CairoVersion, type index$3_Call as Call, type index$3_CallContractResponse as CallContractResponse, type index$3_CallDetails as CallDetails, type index$3_CallOptions as CallOptions, type index$3_Calldata as Calldata, type index$3_CompiledContract as CompiledContract, type index$3_CompiledSierra as CompiledSierra, type index$3_CompiledSierraCasm as CompiledSierraCasm, type index$3_CompilerVersion as CompilerVersion, type index$3_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$3_CompressedProgram as CompressedProgram, type index$3_ContractClass as ContractClass, type index$3_ContractClassIdentifier as ContractClassIdentifier, type index$3_ContractClassPayload as ContractClassPayload, type index$3_ContractClassResponse as ContractClassResponse, type index$3_ContractEntryPointFields as ContractEntryPointFields, type index$3_ContractFunction as ContractFunction, type index$3_ContractOptions as ContractOptions, type index$3_ContractVersion as ContractVersion, type index$3_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$3_DeclareContractPayload as DeclareContractPayload, type index$3_DeclareContractResponse as DeclareContractResponse, type index$3_DeclareContractTransaction as DeclareContractTransaction, type index$3_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$3_DeclareSignerDetails as DeclareSignerDetails, type index$3_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$3_DeclaredTransaction as DeclaredTransaction, type index$3_DeployAccountContractPayload as DeployAccountContractPayload, type index$3_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$3_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$3_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$3_DeployContractResponse as DeployContractResponse, type index$3_DeployContractUDCResponse as DeployContractUDCResponse, type index$3_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$3_DeployedAccountTransaction as DeployedAccountTransaction, type index$3_Details as Details, index$3_EDAMode as EDAMode, index$3_EDataAvailabilityMode as EDataAvailabilityMode, index$3_ETH_ADDRESS as ETH_ADDRESS, index$3_ETransactionExecutionStatus as ETransactionExecutionStatus, index$3_ETransactionStatus as ETransactionStatus, index$3_ETransactionVersion as ETransactionVersion, index$3_ETransactionVersion2 as ETransactionVersion2, index$3_ETransactionVersion3 as ETransactionVersion3, type index$3_EVENTS_CHUNK as EVENTS_CHUNK, type index$3_EmittedEvent as EmittedEvent, type index$3_EntryPointType as EntryPointType, type index$3_EntryPointsByType as EntryPointsByType, type index$3_EstimateFee as EstimateFee, type index$3_EstimateFeeAction as EstimateFeeAction, type index$3_EstimateFeeBulk as EstimateFeeBulk, type index$3_EstimateFeeDetails as EstimateFeeDetails, type index$3_EstimateFeeResponse as EstimateFeeResponse, type index$3_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type Event$1 as Event, type index$3_EventEntry as EventEntry, type index$3_EventFilter as EventFilter, type index$3_FEE_ESTIMATE as FEE_ESTIMATE, type index$3_FELT as FELT, type index$3_FeeEstimate as FeeEstimate, type index$3_FeeMarginPercentage as FeeMarginPercentage, type index$3_FunctionAbi as FunctionAbi, type index$3_GetBlockResponse as GetBlockResponse, type index$3_GetTransactionReceiptResponse as GetTransactionReceiptResponse, type index$3_GetTransactionResponse as GetTransactionResponse, type index$3_GetTxReceiptResponseWithoutHelper as GetTxReceiptResponseWithoutHelper, type index$3_HexCalldata as HexCalldata, type index$3_InterfaceAbi as InterfaceAbi, type index$3_Invocation as Invocation, type index$3_Invocations as Invocations, type index$3_InvocationsDetails as InvocationsDetails, type index$3_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$3_InvocationsSignerDetails as InvocationsSignerDetails, type index$3_InvokeFunctionResponse as InvokeFunctionResponse, type index$3_InvokeOptions as InvokeOptions, type index$3_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$3_InvokedTransaction as InvokedTransaction, type index$3_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$3_L1Message as L1Message, type index$3_L1_HANDLER_TXN as L1_HANDLER_TXN, type index$3_LedgerPathCalculation as LedgerPathCalculation, type index$3_LegacyCompiledContract as LegacyCompiledContract, type index$3_LegacyContractClass as LegacyContractClass, type index$3_LegacyEvent as LegacyEvent, type index$3_Literal as Literal, type index$3_Methods as Methods, type index$3_MultiDeployContractResponse as MultiDeployContractResponse, type index$3_MultiType as MultiType, index$3_NON_ZERO_PREFIX as NON_ZERO_PREFIX, type index$3_Nonce as Nonce, type index$3_OptionalPayload as OptionalPayload, type index$3_OutsideCall as OutsideCall, type index$3_OutsideExecution as OutsideExecution, type index$3_OutsideExecutionOptions as OutsideExecutionOptions, index$3_OutsideExecutionTypesV1 as OutsideExecutionTypesV1, index$3_OutsideExecutionTypesV2 as OutsideExecutionTypesV2, type index$3_OutsideExecutionVersion as OutsideExecutionVersion, type index$3_OutsideTransaction as OutsideTransaction, type index$3_PENDING_DECLARE_TXN_RECEIPT as PENDING_DECLARE_TXN_RECEIPT, type index$3_PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT as PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, type index$3_PENDING_INVOKE_TXN_RECEIPT as PENDING_INVOKE_TXN_RECEIPT, type index$3_PENDING_L1_HANDLER_TXN_RECEIPT as PENDING_L1_HANDLER_TXN_RECEIPT, type index$3_PENDING_STATE_UPDATE as PENDING_STATE_UPDATE, type index$3_PRICE_UNIT as PRICE_UNIT, type index$3_ParsedEvent as ParsedEvent, type index$3_ParsedEvents as ParsedEvents, type index$3_ParsedStruct as ParsedStruct, type index$3_PendingBlock as PendingBlock, type index$3_PendingReceipt as PendingReceipt, type index$3_PendingStateUpdate as PendingStateUpdate, type index$3_Program as Program, type index$3_ProviderOptions as ProviderOptions, type index$3_PythonicHints as PythonicHints, type index$3_RESOURCE_PRICE as RESOURCE_PRICE, index$4 as RPC, type index$3_RPC_ERROR as RPC_ERROR, type index$3_RPC_ERROR_SET as RPC_ERROR_SET, type index$3_RawArgs as RawArgs, type index$3_RawArgsArray as RawArgsArray, type index$3_RawArgsObject as RawArgsObject, type index$3_RawCalldata as RawCalldata, type index$3_Receipt as Receipt, type index$3_RequiredKeysOf as RequiredKeysOf, type index$3_ResourceBounds as ResourceBounds, type index$3_ResourceBoundsOverhead as ResourceBoundsOverhead, type index$3_ResourceBoundsOverheadRPC07 as ResourceBoundsOverheadRPC07, type index$3_ResourceBoundsOverheadRPC08 as ResourceBoundsOverheadRPC08, type index$3_Result as Result, type index$3_RevertedTransactionReceiptResponse as RevertedTransactionReceiptResponse, type index$3_RpcProviderOptions as RpcProviderOptions, type index$3_SIMULATION_FLAG as SIMULATION_FLAG, type index$3_STATE_UPDATE as STATE_UPDATE, type index$3_SierraContractClass as SierraContractClass, type index$3_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$3_SierraEntryPointsByType as SierraEntryPointsByType, type index$3_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$3_Signature as Signature, type index$3_Simplify as Simplify, type index$3_SimulateTransaction as SimulateTransaction, type index$3_SimulateTransactionDetails as SimulateTransactionDetails, type index$3_SimulateTransactionResponse as SimulateTransactionResponse, type index$3_SimulatedTransaction as SimulatedTransaction, type index$3_SimulationFlags as SimulationFlags, type index$3_StarkProfile as StarkProfile, index$3_StarknetDomain as StarknetDomain, index$3_StarknetEnumType as StarknetEnumType, index$3_StarknetMerkleType as StarknetMerkleType, index$3_StarknetType as StarknetType, type index$3_StateUpdate as StateUpdate, type index$3_StateUpdateResponse as StateUpdateResponse, type index$3_Storage as Storage, type index$3_SubscriptionBlockIdentifier as SubscriptionBlockIdentifier, type index$3_SuccessfulTransactionReceiptResponse as SuccessfulTransactionReceiptResponse, type index$3_TRANSACTION_TRACE as TRANSACTION_TRACE, type index$3_TXN_EXECUTION_STATUS as TXN_EXECUTION_STATUS, type index$3_TXN_HASH as TXN_HASH, type index$3_TXN_STATUS as TXN_STATUS, type index$3_TransactionExecutionStatus as TransactionExecutionStatus, type index$3_TransactionFinalityStatus as TransactionFinalityStatus, type index$3_TransactionReceipt as TransactionReceipt, type index$3_TransactionReceiptCallbacks as TransactionReceiptCallbacks, type index$3_TransactionReceiptCallbacksDefault as TransactionReceiptCallbacksDefault, type index$3_TransactionReceiptCallbacksDefined as TransactionReceiptCallbacksDefined, type index$3_TransactionReceiptStatus as TransactionReceiptStatus, type index$3_TransactionReceiptValue as TransactionReceiptValue, type index$3_TransactionStatus as TransactionStatus, type index$3_TransactionStatusReceiptSets as TransactionStatusReceiptSets, type index$3_TransactionType as TransactionType, type index$3_TransactionWithHash as TransactionWithHash, type index$3_Tupled as Tupled, index$3_TypedData as TypedData, index$3_TypedDataRevision as TypedDataRevision, type index$3_Uint as Uint, type index$3_Uint256 as Uint256, type index$3_Uint512 as Uint512, type index$3_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$3_UniversalDetails as UniversalDetails, type index$3_UniversalSuggestedFee as UniversalSuggestedFee, type index$3_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$3_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$3_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$3_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$3_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$3_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$3_V3TransactionDetails as V3TransactionDetails, type index$3_ValidateType as ValidateType, type index$3_WeierstrassSignatureType as WeierstrassSignatureType, type index$3_getContractVersionOptions as getContractVersionOptions, type index$3_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$3_getSimulateTransactionOptions as getSimulateTransactionOptions, index$3_isRPC08_FeeEstimate as isRPC08_FeeEstimate, index$3_isRPC08_ResourceBounds as isRPC08_ResourceBounds, type index$3_waitForTransactionOptions as waitForTransactionOptions };
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
1386
|
declare const LogLevelIndex: {
|
|
@@ -1665,25 +1665,6 @@ declare const RANGE_U128: {
|
|
|
1665
1665
|
readonly min: bigint;
|
|
1666
1666
|
readonly max: bigint;
|
|
1667
1667
|
};
|
|
1668
|
-
declare enum BaseUrl {
|
|
1669
|
-
SN_MAIN = "https://alpha-mainnet.starknet.io",
|
|
1670
|
-
SN_SEPOLIA = "https://alpha-sepolia.starknet.io"
|
|
1671
|
-
}
|
|
1672
|
-
declare enum NetworkName {
|
|
1673
|
-
SN_MAIN = "SN_MAIN",
|
|
1674
|
-
SN_SEPOLIA = "SN_SEPOLIA"
|
|
1675
|
-
}
|
|
1676
|
-
declare enum StarknetChainId {
|
|
1677
|
-
SN_MAIN = "0x534e5f4d41494e",// encodeShortString('SN_MAIN'),
|
|
1678
|
-
SN_SEPOLIA = "0x534e5f5345504f4c4941"
|
|
1679
|
-
}
|
|
1680
|
-
declare enum TransactionHashPrefix {
|
|
1681
|
-
DECLARE = "0x6465636c617265",// encodeShortString('declare'),
|
|
1682
|
-
DEPLOY = "0x6465706c6f79",// encodeShortString('deploy'),
|
|
1683
|
-
DEPLOY_ACCOUNT = "0x6465706c6f795f6163636f756e74",// encodeShortString('deploy_account'),
|
|
1684
|
-
INVOKE = "0x696e766f6b65",// encodeShortString('invoke'),
|
|
1685
|
-
L1_HANDLER = "0x6c315f68616e646c6572"
|
|
1686
|
-
}
|
|
1687
1668
|
declare const UDC: {
|
|
1688
1669
|
readonly ADDRESS: "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf";
|
|
1689
1670
|
readonly ENTRYPOINT: "deployContract";
|
|
@@ -1693,19 +1674,49 @@ declare const SNIP9_V1_INTERFACE_ID = "0x68cfd18b92d1907b8ba3cc324900277f5a36220
|
|
|
1693
1674
|
declare const SNIP9_V2_INTERFACE_ID = "0x1d1144bb2138366ff28d8e9ab57456b1d332ac42196230c3a602003c89872";
|
|
1694
1675
|
declare const HARDENING_BYTE = 128;
|
|
1695
1676
|
declare const HARDENING_4BYTES = 2147483648n;
|
|
1677
|
+
declare const _BaseUrl: {
|
|
1678
|
+
readonly SN_MAIN: "https://alpha-mainnet.starknet.io";
|
|
1679
|
+
readonly SN_SEPOLIA: "https://alpha-sepolia.starknet.io";
|
|
1680
|
+
};
|
|
1681
|
+
type _BaseUrl = ValuesType<typeof _BaseUrl>;
|
|
1682
|
+
|
|
1683
|
+
declare const _NetworkName: {
|
|
1684
|
+
readonly SN_MAIN: "SN_MAIN";
|
|
1685
|
+
readonly SN_SEPOLIA: "SN_SEPOLIA";
|
|
1686
|
+
};
|
|
1687
|
+
type _NetworkName = ValuesType<typeof _NetworkName>;
|
|
1688
|
+
|
|
1689
|
+
declare const _StarknetChainId: {
|
|
1690
|
+
readonly SN_MAIN: "0x534e5f4d41494e";
|
|
1691
|
+
readonly SN_SEPOLIA: "0x534e5f5345504f4c4941";
|
|
1692
|
+
};
|
|
1693
|
+
type _StarknetChainId = ValuesType<typeof _StarknetChainId>;
|
|
1694
|
+
|
|
1695
|
+
declare const _TransactionHashPrefix: {
|
|
1696
|
+
readonly DECLARE: "0x6465636c617265";
|
|
1697
|
+
readonly DEPLOY: "0x6465706c6f79";
|
|
1698
|
+
readonly DEPLOY_ACCOUNT: "0x6465706c6f795f6163636f756e74";
|
|
1699
|
+
readonly INVOKE: "0x696e766f6b65";
|
|
1700
|
+
readonly L1_HANDLER: "0x6c315f68616e646c6572";
|
|
1701
|
+
};
|
|
1702
|
+
type _TransactionHashPrefix = ValuesType<typeof _TransactionHashPrefix>;
|
|
1703
|
+
|
|
1696
1704
|
/**
|
|
1697
|
-
* dot
|
|
1705
|
+
* dot format rpc versions
|
|
1698
1706
|
*/
|
|
1699
|
-
declare const
|
|
1707
|
+
declare const _SupportedRpcVersion: {
|
|
1700
1708
|
readonly 0.7: "0.7";
|
|
1701
1709
|
readonly 0.8: "0.8";
|
|
1710
|
+
readonly v07: "0.7";
|
|
1711
|
+
readonly v08: "0.8";
|
|
1702
1712
|
};
|
|
1703
|
-
type
|
|
1713
|
+
type _SupportedRpcVersion = ValuesType<typeof _SupportedRpcVersion>;
|
|
1714
|
+
|
|
1704
1715
|
type SupportedTransactionVersion = typeof ETransactionVersion$1.V2 | typeof ETransactionVersion$1.V3;
|
|
1705
1716
|
declare const DEFAULT_GLOBAL_CONFIG: {
|
|
1706
1717
|
legacyMode: boolean;
|
|
1707
1718
|
logLevel: LogLevel;
|
|
1708
|
-
rpcVersion:
|
|
1719
|
+
rpcVersion: _SupportedRpcVersion;
|
|
1709
1720
|
transactionVersion: SupportedTransactionVersion;
|
|
1710
1721
|
feeMarginPercentage: FeeMarginPercentage;
|
|
1711
1722
|
};
|
|
@@ -1721,8 +1732,6 @@ declare const SYSTEM_MESSAGES: {
|
|
|
1721
1732
|
|
|
1722
1733
|
declare const constants_ADDR_BOUND: typeof ADDR_BOUND;
|
|
1723
1734
|
declare const constants_API_VERSION: typeof API_VERSION;
|
|
1724
|
-
type constants_BaseUrl = BaseUrl;
|
|
1725
|
-
declare const constants_BaseUrl: typeof BaseUrl;
|
|
1726
1735
|
declare const constants_DEFAULT_GLOBAL_CONFIG: typeof DEFAULT_GLOBAL_CONFIG;
|
|
1727
1736
|
declare const constants_HARDENING_4BYTES: typeof HARDENING_4BYTES;
|
|
1728
1737
|
declare const constants_HARDENING_BYTE: typeof HARDENING_BYTE;
|
|
@@ -1730,8 +1739,6 @@ declare const constants_IS_BROWSER: typeof IS_BROWSER;
|
|
|
1730
1739
|
declare const constants_MASK_250: typeof MASK_250;
|
|
1731
1740
|
declare const constants_MASK_31: typeof MASK_31;
|
|
1732
1741
|
declare const constants_MAX_STORAGE_ITEM_SIZE: typeof MAX_STORAGE_ITEM_SIZE;
|
|
1733
|
-
type constants_NetworkName = NetworkName;
|
|
1734
|
-
declare const constants_NetworkName: typeof NetworkName;
|
|
1735
1742
|
declare const constants_OutsideExecutionCallerAny: typeof OutsideExecutionCallerAny;
|
|
1736
1743
|
declare const constants_PRIME: typeof PRIME;
|
|
1737
1744
|
declare const constants_RANGE_FELT: typeof RANGE_FELT;
|
|
@@ -1741,18 +1748,13 @@ declare const constants_RPC_DEFAULT_NODES: typeof RPC_DEFAULT_NODES;
|
|
|
1741
1748
|
declare const constants_SNIP9_V1_INTERFACE_ID: typeof SNIP9_V1_INTERFACE_ID;
|
|
1742
1749
|
declare const constants_SNIP9_V2_INTERFACE_ID: typeof SNIP9_V2_INTERFACE_ID;
|
|
1743
1750
|
declare const constants_SYSTEM_MESSAGES: typeof SYSTEM_MESSAGES;
|
|
1744
|
-
type constants_StarknetChainId = StarknetChainId;
|
|
1745
|
-
declare const constants_StarknetChainId: typeof StarknetChainId;
|
|
1746
|
-
type constants_SupportedRpcVersion = SupportedRpcVersion;
|
|
1747
1751
|
type constants_SupportedTransactionVersion = SupportedTransactionVersion;
|
|
1748
1752
|
declare const constants_TEXT_TO_FELT_MAX_LEN: typeof TEXT_TO_FELT_MAX_LEN;
|
|
1749
1753
|
declare const constants_TRANSACTION_VERSION: typeof TRANSACTION_VERSION;
|
|
1750
|
-
type constants_TransactionHashPrefix = TransactionHashPrefix;
|
|
1751
|
-
declare const constants_TransactionHashPrefix: typeof TransactionHashPrefix;
|
|
1752
1754
|
declare const constants_UDC: typeof UDC;
|
|
1753
1755
|
declare const constants_ZERO: typeof ZERO;
|
|
1754
1756
|
declare namespace constants {
|
|
1755
|
-
export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION,
|
|
1757
|
+
export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, _BaseUrl as BaseUrl, 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_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_PRIME as PRIME, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_U128 as RANGE_U128, 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_SYSTEM_MESSAGES as SYSTEM_MESSAGES, _StarknetChainId as StarknetChainId, _SupportedRpcVersion as SupportedRpcVersion, type constants_SupportedTransactionVersion as SupportedTransactionVersion, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, constants_TRANSACTION_VERSION as TRANSACTION_VERSION, _TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
|
|
1756
1758
|
}
|
|
1757
1759
|
|
|
1758
1760
|
declare class RpcChannel$1 {
|
|
@@ -1769,19 +1771,19 @@ declare class RpcChannel$1 {
|
|
|
1769
1771
|
private batchClient?;
|
|
1770
1772
|
private baseFetch;
|
|
1771
1773
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
1772
|
-
readSpecVersion():
|
|
1774
|
+
readSpecVersion(): "0.7" | "0.8" | undefined;
|
|
1773
1775
|
private get transactionRetryIntervalDefault();
|
|
1774
|
-
setChainId(chainId:
|
|
1776
|
+
setChainId(chainId: _StarknetChainId): void;
|
|
1775
1777
|
fetch(method: string, params?: object, id?: string | number): Promise<Response>;
|
|
1776
1778
|
protected errorHandler(method: string, params: any, rpcError?: Error$1, otherError?: any): void;
|
|
1777
1779
|
protected fetchEndpoint<T extends keyof RPCSPEC07.Methods>(method: T, params?: RPCSPEC07.Methods[T]['params']): Promise<RPCSPEC07.Methods[T]['result']>;
|
|
1778
|
-
getChainId(): Promise<
|
|
1780
|
+
getChainId(): Promise<"0x534e5f4d41494e" | "0x534e5f5345504f4c4941">;
|
|
1779
1781
|
/**
|
|
1780
1782
|
* fetch if undefined else just return this.specVersion
|
|
1781
1783
|
* return this.specVersion as 'M.m'
|
|
1782
1784
|
* @example this.specVersion = "0.8"
|
|
1783
1785
|
*/
|
|
1784
|
-
getSpecVersion(): Promise<
|
|
1786
|
+
getSpecVersion(): Promise<"0.7" | "0.8">;
|
|
1785
1787
|
/**
|
|
1786
1788
|
* fetch spec version in extended format "M.m.p-?"
|
|
1787
1789
|
*/
|
|
@@ -1865,13 +1867,13 @@ declare class RpcChannel {
|
|
|
1865
1867
|
private batchClient?;
|
|
1866
1868
|
private baseFetch;
|
|
1867
1869
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
1868
|
-
readSpecVersion():
|
|
1870
|
+
readSpecVersion(): "0.7" | "0.8" | undefined;
|
|
1869
1871
|
private get transactionRetryIntervalDefault();
|
|
1870
|
-
setChainId(chainId:
|
|
1872
|
+
setChainId(chainId: _StarknetChainId): void;
|
|
1871
1873
|
fetch(method: string, params?: object, id?: string | number): Promise<Response>;
|
|
1872
1874
|
protected errorHandler(method: string, params: any, rpcError?: Error$1, otherError?: any): void;
|
|
1873
1875
|
protected fetchEndpoint<T extends keyof RPCSPEC08.Methods>(method: T, params?: RPCSPEC08.Methods[T]['params']): Promise<RPCSPEC08.Methods[T]['result']>;
|
|
1874
|
-
getChainId(): Promise<
|
|
1876
|
+
getChainId(): Promise<"0x534e5f4d41494e" | "0x534e5f5345504f4c4941">;
|
|
1875
1877
|
/**
|
|
1876
1878
|
* 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
|
|
1877
1879
|
*/
|
|
@@ -1884,7 +1886,7 @@ declare class RpcChannel {
|
|
|
1884
1886
|
* return this.specVersion as 'M.m'
|
|
1885
1887
|
* @example this.specVersion = "0.8"
|
|
1886
1888
|
*/
|
|
1887
|
-
getSpecVersion(): Promise<
|
|
1889
|
+
getSpecVersion(): Promise<"0.7" | "0.8">;
|
|
1888
1890
|
/**
|
|
1889
1891
|
* fetch spec version in extended format "M.m.p-?"
|
|
1890
1892
|
*/
|
|
@@ -2092,7 +2094,7 @@ declare class WebSocketChannel {
|
|
|
2092
2094
|
/**
|
|
2093
2095
|
* Assign implementation to this method to listen unsubscription
|
|
2094
2096
|
*/
|
|
2095
|
-
onUnsubscribe: (this: WebSocketChannel, _subscriptionId:
|
|
2097
|
+
onUnsubscribe: (this: WebSocketChannel, _subscriptionId: SUBSCRIPTION_ID) => any;
|
|
2096
2098
|
private onUnsubscribeLocal;
|
|
2097
2099
|
/**
|
|
2098
2100
|
* JSON RPC latest sent message id
|
|
@@ -2103,7 +2105,7 @@ declare class WebSocketChannel {
|
|
|
2103
2105
|
* subscriptions ids
|
|
2104
2106
|
* mapped by keys WSSubscriptions
|
|
2105
2107
|
*/
|
|
2106
|
-
readonly subscriptions: Map<string,
|
|
2108
|
+
readonly subscriptions: Map<string, SUBSCRIPTION_ID>;
|
|
2107
2109
|
/**
|
|
2108
2110
|
* Construct class and event listeners
|
|
2109
2111
|
* @param options WebSocketOptions
|
|
@@ -2164,7 +2166,7 @@ declare class WebSocketChannel {
|
|
|
2164
2166
|
* @param subscriptionId
|
|
2165
2167
|
* @param ref internal usage, only for managed subscriptions
|
|
2166
2168
|
*/
|
|
2167
|
-
unsubscribe(subscriptionId:
|
|
2169
|
+
unsubscribe(subscriptionId: SUBSCRIPTION_ID, ref?: string): Promise<boolean>;
|
|
2168
2170
|
/**
|
|
2169
2171
|
* await while subscription is unsubscribed
|
|
2170
2172
|
* @param forSubscriptionId if defined trigger on subscriptionId else trigger on any
|
|
@@ -2174,7 +2176,7 @@ declare class WebSocketChannel {
|
|
|
2174
2176
|
* const subscriptionId = await webSocketChannel.waitForUnsubscription();
|
|
2175
2177
|
* ```
|
|
2176
2178
|
*/
|
|
2177
|
-
waitForUnsubscription(forSubscriptionId?:
|
|
2179
|
+
waitForUnsubscription(forSubscriptionId?: SUBSCRIPTION_ID): Promise<unknown>;
|
|
2178
2180
|
/**
|
|
2179
2181
|
* Reconnect re-create this.websocket instance
|
|
2180
2182
|
*/
|
|
@@ -2190,7 +2192,7 @@ declare class WebSocketChannel {
|
|
|
2190
2192
|
/**
|
|
2191
2193
|
* subscribe to new block heads
|
|
2192
2194
|
*/
|
|
2193
|
-
subscribeNewHeads(blockIdentifier?: SubscriptionBlockIdentifier): Promise<
|
|
2195
|
+
subscribeNewHeads(blockIdentifier?: SubscriptionBlockIdentifier): Promise<string | false>;
|
|
2194
2196
|
/**
|
|
2195
2197
|
* Unsubscribe newHeads subscription
|
|
2196
2198
|
*/
|
|
@@ -2203,7 +2205,7 @@ declare class WebSocketChannel {
|
|
|
2203
2205
|
/**
|
|
2204
2206
|
* subscribe to 'starknet events'
|
|
2205
2207
|
*/
|
|
2206
|
-
subscribeEvents(fromAddress?: BigNumberish, keys?: string[][], blockIdentifier?: SubscriptionBlockIdentifier): Promise<
|
|
2208
|
+
subscribeEvents(fromAddress?: BigNumberish, keys?: string[][], blockIdentifier?: SubscriptionBlockIdentifier): Promise<string | false>;
|
|
2207
2209
|
/**
|
|
2208
2210
|
* Unsubscribe 'starknet events' subscription
|
|
2209
2211
|
*/
|
|
@@ -2216,7 +2218,7 @@ declare class WebSocketChannel {
|
|
|
2216
2218
|
/**
|
|
2217
2219
|
* subscribe to transaction status
|
|
2218
2220
|
*/
|
|
2219
|
-
subscribeTransactionStatus(transactionHash: BigNumberish): Promise<
|
|
2221
|
+
subscribeTransactionStatus(transactionHash: BigNumberish): Promise<string | false>;
|
|
2220
2222
|
/**
|
|
2221
2223
|
* unsubscribe 'transaction status' subscription
|
|
2222
2224
|
*/
|
|
@@ -2229,7 +2231,7 @@ declare class WebSocketChannel {
|
|
|
2229
2231
|
/**
|
|
2230
2232
|
* subscribe to pending transactions (mempool)
|
|
2231
2233
|
*/
|
|
2232
|
-
subscribePendingTransaction(transactionDetails?: boolean, senderAddress?: BigNumberish[]): Promise<
|
|
2234
|
+
subscribePendingTransaction(transactionDetails?: boolean, senderAddress?: BigNumberish[]): Promise<string | false>;
|
|
2233
2235
|
/**
|
|
2234
2236
|
* unsubscribe 'pending transaction' subscription
|
|
2235
2237
|
*/
|
|
@@ -2274,7 +2276,7 @@ declare abstract class ProviderInterface {
|
|
|
2274
2276
|
*
|
|
2275
2277
|
* @returns the chain Id
|
|
2276
2278
|
*/
|
|
2277
|
-
abstract getChainId(): Promise<
|
|
2279
|
+
abstract getChainId(): Promise<_StarknetChainId>;
|
|
2278
2280
|
/**
|
|
2279
2281
|
* Calls a function on the Starknet contract.
|
|
2280
2282
|
*
|
|
@@ -2515,13 +2517,15 @@ declare class RpcProvider$1 implements ProviderInterface {
|
|
|
2515
2517
|
* auto configure channel based on provided node
|
|
2516
2518
|
* leave space for other async before constructor
|
|
2517
2519
|
*/
|
|
2518
|
-
static create
|
|
2520
|
+
static create<T extends RpcProvider$1>(this: {
|
|
2521
|
+
new (...args: ConstructorParameters<typeof RpcProvider$1>): T;
|
|
2522
|
+
}, optionsOrProvider?: RpcProviderOptions): Promise<T>;
|
|
2519
2523
|
fetch(method: string, params?: object, id?: string | number): Promise<Response>;
|
|
2520
|
-
getChainId(): Promise<
|
|
2524
|
+
getChainId(): Promise<"0x534e5f4d41494e" | "0x534e5f5345504f4c4941">;
|
|
2521
2525
|
/**
|
|
2522
2526
|
* return spec version in format "M.m"
|
|
2523
2527
|
*/
|
|
2524
|
-
getSpecVersion(): Promise<
|
|
2528
|
+
getSpecVersion(): Promise<"0.7" | "0.8">;
|
|
2525
2529
|
/**
|
|
2526
2530
|
* @returns return spec version in format 'M.m.p-rc'
|
|
2527
2531
|
*/
|
|
@@ -3560,6 +3564,8 @@ declare class Account extends RpcProvider implements AccountInterface {
|
|
|
3560
3564
|
cairoVersion: CairoVersion;
|
|
3561
3565
|
readonly transactionVersion: typeof ETransactionVersion.V2 | typeof ETransactionVersion.V3;
|
|
3562
3566
|
constructor(providerOrOptions: ProviderOptions | ProviderInterface, address: string, pkOrSigner: Uint8Array | string | SignerInterface, cairoVersion?: CairoVersion, transactionVersion?: SupportedTransactionVersion);
|
|
3567
|
+
/** @deprecated @hidden */
|
|
3568
|
+
static create(): Promise<never>;
|
|
3563
3569
|
protected getPreferredVersion(type12: ETransactionVersion, type3: ETransactionVersion): RPCSPEC08.ETransactionVersion;
|
|
3564
3570
|
getNonce(blockIdentifier?: BlockIdentifier): Promise<Nonce>;
|
|
3565
3571
|
protected getNonceSafe(nonce?: BigNumberish): Promise<bigint>;
|
|
@@ -3697,7 +3703,7 @@ declare class WalletAccount extends Account implements AccountInterface {
|
|
|
3697
3703
|
*/
|
|
3698
3704
|
requestAccounts(silentMode?: boolean): Promise<string[]>;
|
|
3699
3705
|
getPermissions(): Promise<"accounts"[]>;
|
|
3700
|
-
switchStarknetChain(chainId:
|
|
3706
|
+
switchStarknetChain(chainId: _StarknetChainId): Promise<boolean>;
|
|
3701
3707
|
watchAsset(asset: WatchAssetParameters): Promise<boolean>;
|
|
3702
3708
|
addStarknetChain(chain: AddStarknetChainParameters): Promise<boolean>;
|
|
3703
3709
|
/**
|
|
@@ -4047,24 +4053,24 @@ declare function computeHashOnElements$1(data: BigNumberish[]): string;
|
|
|
4047
4053
|
* Following implementation is based on this python [implementation #](https://github.com/starkware-libs/cairo-lang/blob/b614d1867c64f3fb2cf4a4879348cfcf87c3a5a7/src/starkware/starknet/core/os/transaction_hash/transaction_hash.py)
|
|
4048
4054
|
* @returns format: hex-string
|
|
4049
4055
|
*/
|
|
4050
|
-
declare function calculateTransactionHashCommon$1(txHashPrefix:
|
|
4056
|
+
declare function calculateTransactionHashCommon$1(txHashPrefix: _TransactionHashPrefix, version: BigNumberish, contractAddress: BigNumberish, entryPointSelector: BigNumberish, calldata: RawCalldata, maxFee: BigNumberish, chainId: _StarknetChainId, additionalData?: BigNumberish[]): string;
|
|
4051
4057
|
/**
|
|
4052
4058
|
* Calculate declare transaction hash
|
|
4053
4059
|
* @param classHash hex-string
|
|
4054
4060
|
* @param compiledClassHash hex-string
|
|
4055
4061
|
* @returns format: hex-string
|
|
4056
4062
|
*/
|
|
4057
|
-
declare function calculateDeclareTransactionHash$2(classHash: string, senderAddress: BigNumberish, version: BigNumberish, maxFee: BigNumberish, chainId:
|
|
4063
|
+
declare function calculateDeclareTransactionHash$2(classHash: string, senderAddress: BigNumberish, version: BigNumberish, maxFee: BigNumberish, chainId: _StarknetChainId, nonce: BigNumberish, compiledClassHash?: string): string;
|
|
4058
4064
|
/**
|
|
4059
4065
|
* Calculate deploy_account transaction hash
|
|
4060
4066
|
* @returns format: hex-string
|
|
4061
4067
|
*/
|
|
4062
|
-
declare function calculateDeployAccountTransactionHash$2(contractAddress: BigNumberish, classHash: BigNumberish, constructorCalldata: RawCalldata, salt: BigNumberish, version: BigNumberish, maxFee: BigNumberish, chainId:
|
|
4068
|
+
declare function calculateDeployAccountTransactionHash$2(contractAddress: BigNumberish, classHash: BigNumberish, constructorCalldata: RawCalldata, salt: BigNumberish, version: BigNumberish, maxFee: BigNumberish, chainId: _StarknetChainId, nonce: BigNumberish): string;
|
|
4063
4069
|
/**
|
|
4064
4070
|
* Calculate invoke transaction hash
|
|
4065
4071
|
* @returns format: hex-string
|
|
4066
4072
|
*/
|
|
4067
|
-
declare function calculateTransactionHash(contractAddress: BigNumberish, version: BigNumberish, calldata: RawCalldata, maxFee: BigNumberish, chainId:
|
|
4073
|
+
declare function calculateTransactionHash(contractAddress: BigNumberish, version: BigNumberish, calldata: RawCalldata, maxFee: BigNumberish, chainId: _StarknetChainId, nonce: BigNumberish): string;
|
|
4068
4074
|
/**
|
|
4069
4075
|
* Calculate the L2 transaction hash generated by a message L1->L2
|
|
4070
4076
|
* @param {BigNumberish} l1FromAddress L1 account address that paid the message.
|
|
@@ -4091,7 +4097,7 @@ declare function calculateTransactionHash(contractAddress: BigNumberish, version
|
|
|
4091
4097
|
* // result = "0x67d959200d65d4ad293aa4b0da21bb050a1f669bce37d215c6edbf041269c07"
|
|
4092
4098
|
* ```
|
|
4093
4099
|
*/
|
|
4094
|
-
declare function calculateL2MessageTxHash(l1FromAddress: BigNumberish, l2ToAddress: BigNumberish, l2Selector: string | BigNumberish, l2Calldata: RawCalldata, l2ChainId:
|
|
4100
|
+
declare function calculateL2MessageTxHash(l1FromAddress: BigNumberish, l2ToAddress: BigNumberish, l2Selector: string | BigNumberish, l2Calldata: RawCalldata, l2ChainId: _StarknetChainId, l1Nonce: BigNumberish): string;
|
|
4095
4101
|
|
|
4096
4102
|
declare const v2_calculateL2MessageTxHash: typeof calculateL2MessageTxHash;
|
|
4097
4103
|
declare const v2_calculateTransactionHash: typeof calculateTransactionHash;
|
|
@@ -4108,14 +4114,14 @@ type CalcV2InvokeTxHashArgs = {
|
|
|
4108
4114
|
version: `${ETransactionVersion2$1}`;
|
|
4109
4115
|
compiledCalldata: Calldata;
|
|
4110
4116
|
maxFee: BigNumberish;
|
|
4111
|
-
chainId:
|
|
4117
|
+
chainId: _StarknetChainId;
|
|
4112
4118
|
nonce: BigNumberish;
|
|
4113
4119
|
};
|
|
4114
4120
|
type CalcV3InvokeTxHashArgs = {
|
|
4115
4121
|
senderAddress: BigNumberish;
|
|
4116
4122
|
version: `${ETransactionVersion3$1}`;
|
|
4117
4123
|
compiledCalldata: Calldata;
|
|
4118
|
-
chainId:
|
|
4124
|
+
chainId: _StarknetChainId;
|
|
4119
4125
|
nonce: BigNumberish;
|
|
4120
4126
|
accountDeploymentData: BigNumberish[];
|
|
4121
4127
|
nonceDataAvailabilityMode: EDAMode$1;
|
|
@@ -4131,7 +4137,7 @@ type CalcV2DeclareTxHashArgs = {
|
|
|
4131
4137
|
senderAddress: BigNumberish;
|
|
4132
4138
|
version: `${ETransactionVersion2$1}`;
|
|
4133
4139
|
maxFee: BigNumberish;
|
|
4134
|
-
chainId:
|
|
4140
|
+
chainId: _StarknetChainId;
|
|
4135
4141
|
nonce: BigNumberish;
|
|
4136
4142
|
compiledClassHash?: string;
|
|
4137
4143
|
};
|
|
@@ -4140,7 +4146,7 @@ type CalcV3DeclareTxHashArgs = {
|
|
|
4140
4146
|
compiledClassHash: string;
|
|
4141
4147
|
senderAddress: BigNumberish;
|
|
4142
4148
|
version: `${ETransactionVersion3$1}`;
|
|
4143
|
-
chainId:
|
|
4149
|
+
chainId: _StarknetChainId;
|
|
4144
4150
|
nonce: BigNumberish;
|
|
4145
4151
|
accountDeploymentData: BigNumberish[];
|
|
4146
4152
|
nonceDataAvailabilityMode: EDAMode$1;
|
|
@@ -4158,7 +4164,7 @@ type CalcV2DeployAccountTxHashArgs = {
|
|
|
4158
4164
|
salt: BigNumberish;
|
|
4159
4165
|
version: `${ETransactionVersion2$1}`;
|
|
4160
4166
|
maxFee: BigNumberish;
|
|
4161
|
-
chainId:
|
|
4167
|
+
chainId: _StarknetChainId;
|
|
4162
4168
|
nonce: BigNumberish;
|
|
4163
4169
|
};
|
|
4164
4170
|
type CalcV3DeployAccountTxHashArgs = {
|
|
@@ -4167,7 +4173,7 @@ type CalcV3DeployAccountTxHashArgs = {
|
|
|
4167
4173
|
compiledConstructorCalldata: Calldata;
|
|
4168
4174
|
salt: BigNumberish;
|
|
4169
4175
|
version: `${ETransactionVersion3$1}`;
|
|
4170
|
-
chainId:
|
|
4176
|
+
chainId: _StarknetChainId;
|
|
4171
4177
|
nonce: BigNumberish;
|
|
4172
4178
|
nonceDataAvailabilityMode: EDAMode$1;
|
|
4173
4179
|
feeDataAvailabilityMode: EDAMode$1;
|
|
@@ -4357,22 +4363,22 @@ declare function hashFeeField(tip: BigNumberish, bounds: RPCSPEC07.ResourceBound
|
|
|
4357
4363
|
* hash tip and resource bounds (3 bounds params) V3 RPC 0.8
|
|
4358
4364
|
*/
|
|
4359
4365
|
declare function hashFeeFieldV3B3(tip: BigNumberish, bounds: RPCSPEC08.ResourceBounds): bigint;
|
|
4360
|
-
declare function calculateTransactionHashCommon(txHashPrefix:
|
|
4366
|
+
declare function calculateTransactionHashCommon(txHashPrefix: _TransactionHashPrefix, version: BigNumberish, senderAddress: BigNumberish, chainId: _StarknetChainId, nonce: BigNumberish, tip: BigNumberish, paymasterData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds, additionalData?: BigNumberish[]): string;
|
|
4361
4367
|
/**
|
|
4362
4368
|
* Calculate v3 deploy_account transaction hash
|
|
4363
4369
|
* @returns format: hex-string
|
|
4364
4370
|
*/
|
|
4365
|
-
declare function calculateDeployAccountTransactionHash(contractAddress: BigNumberish, classHash: BigNumberish, compiledConstructorCalldata: Calldata, salt: BigNumberish, version: BigNumberish, chainId:
|
|
4371
|
+
declare function calculateDeployAccountTransactionHash(contractAddress: BigNumberish, classHash: BigNumberish, compiledConstructorCalldata: Calldata, salt: BigNumberish, version: BigNumberish, chainId: _StarknetChainId, nonce: BigNumberish, nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
4366
4372
|
/**
|
|
4367
4373
|
* Calculate v3 declare transaction hash
|
|
4368
4374
|
* @returns format: hex-string
|
|
4369
4375
|
*/
|
|
4370
|
-
declare function calculateDeclareTransactionHash(classHash: string, compiledClassHash: string, senderAddress: BigNumberish, version: BigNumberish, chainId:
|
|
4376
|
+
declare function calculateDeclareTransactionHash(classHash: string, compiledClassHash: string, senderAddress: BigNumberish, version: BigNumberish, chainId: _StarknetChainId, nonce: BigNumberish, accountDeploymentData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
4371
4377
|
/**
|
|
4372
4378
|
* Calculate v3 invoke transaction hash
|
|
4373
4379
|
* @returns format: hex-string
|
|
4374
4380
|
*/
|
|
4375
|
-
declare function calculateInvokeTransactionHash(senderAddress: BigNumberish, version: BigNumberish, compiledCalldata: Calldata, chainId:
|
|
4381
|
+
declare function calculateInvokeTransactionHash(senderAddress: BigNumberish, version: BigNumberish, compiledCalldata: Calldata, chainId: _StarknetChainId, nonce: BigNumberish, accountDeploymentData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
4376
4382
|
|
|
4377
4383
|
declare const v3_calculateDeclareTransactionHash: typeof calculateDeclareTransactionHash;
|
|
4378
4384
|
declare const v3_calculateDeployAccountTransactionHash: typeof calculateDeployAccountTransactionHash;
|
|
@@ -5131,7 +5137,7 @@ declare function toFeeVersion(providedVersion?: BigNumberish): ETransactionVersi
|
|
|
5131
5137
|
* // }
|
|
5132
5138
|
* ```
|
|
5133
5139
|
*/
|
|
5134
|
-
declare function v3Details(details: UniversalDetails, specVersion?:
|
|
5140
|
+
declare function v3Details(details: UniversalDetails, specVersion?: _SupportedRpcVersion): V3Details;
|
|
5135
5141
|
/**
|
|
5136
5142
|
* It will reduce V2 to V1, else (V3) stay the same
|
|
5137
5143
|
* F2 -> F1
|
|
@@ -5756,7 +5762,7 @@ declare const StarknetIdContract: {
|
|
|
5756
5762
|
* // result = "0x154bc2e1af9260b9e66af0e9c46fc757ff893b3ff6a85718a810baf1474"
|
|
5757
5763
|
* ```
|
|
5758
5764
|
*/
|
|
5759
|
-
declare function getStarknetIdContract(chainId:
|
|
5765
|
+
declare function getStarknetIdContract(chainId: _StarknetChainId): string;
|
|
5760
5766
|
declare const StarknetIdIdentityContract: {
|
|
5761
5767
|
readonly MAINNET: "0x05dbdedc203e92749e2e746e2d40a768d966bd243df04a6b712e222bc040a9af";
|
|
5762
5768
|
readonly TESTNET_SEPOLIA: "0x3697660a0981d734780731949ecb2b4a38d6a58fc41629ed611e8defda";
|
|
@@ -5775,7 +5781,7 @@ declare const StarknetIdIdentityContract: {
|
|
|
5775
5781
|
* // result = "0x3697660a0981d734780731949ecb2b4a38d6a58fc41629ed611e8defda"
|
|
5776
5782
|
* ```
|
|
5777
5783
|
*/
|
|
5778
|
-
declare function getStarknetIdIdentityContract(chainId:
|
|
5784
|
+
declare function getStarknetIdIdentityContract(chainId: _StarknetChainId): string;
|
|
5779
5785
|
declare const StarknetIdMulticallContract = "0x034ffb8f4452df7a613a0210824d6414dbadcddce6c6e19bf4ddc9e22ce5f970";
|
|
5780
5786
|
/**
|
|
5781
5787
|
* Returns the Starknet.id multicall contract address based on the provided chainId.
|
|
@@ -5789,7 +5795,7 @@ declare const StarknetIdMulticallContract = "0x034ffb8f4452df7a613a0210824d6414d
|
|
|
5789
5795
|
* // result = "0x034ffb8f4452df7a613a0210824d6414dbadcddce6c6e19bf4ddc9e22ce5f970"
|
|
5790
5796
|
* ```
|
|
5791
5797
|
*/
|
|
5792
|
-
declare function getStarknetIdMulticallContract(chainId:
|
|
5798
|
+
declare function getStarknetIdMulticallContract(chainId: _StarknetChainId): string;
|
|
5793
5799
|
declare const StarknetIdVerifierContract: {
|
|
5794
5800
|
readonly MAINNET: "0x07d14dfd8ee95b41fce179170d88ba1f0d5a512e13aeb232f19cfeec0a88f8bf";
|
|
5795
5801
|
readonly TESTNET_SEPOLIA: "0x60B94fEDe525f815AE5E8377A463e121C787cCCf3a36358Aa9B18c12c4D566";
|
|
@@ -5806,7 +5812,7 @@ declare const StarknetIdVerifierContract: {
|
|
|
5806
5812
|
* // result = "0x60B94fEDe525f815AE5E8377A463e121C787cCCf3a36358Aa9B18c12c4D566"
|
|
5807
5813
|
* ```
|
|
5808
5814
|
*/
|
|
5809
|
-
declare function getStarknetIdVerifierContract(chainId:
|
|
5815
|
+
declare function getStarknetIdVerifierContract(chainId: _StarknetChainId): string;
|
|
5810
5816
|
declare const StarknetIdPfpContract: {
|
|
5811
5817
|
readonly MAINNET: "0x070aaa20ec4a46da57c932d9fd89ca5e6bb9ca3188d3df361a32306aff7d59c7";
|
|
5812
5818
|
readonly TESTNET_SEPOLIA: "0x9e7bdb8dabd02ea8cfc23b1d1c5278e46490f193f87516ed5ff2dfec02";
|
|
@@ -5823,7 +5829,7 @@ declare const StarknetIdPfpContract: {
|
|
|
5823
5829
|
* // result = "0x9e7bdb8dabd02ea8cfc23b1d1c5278e46490f193f87516ed5ff2dfec02"
|
|
5824
5830
|
* ```
|
|
5825
5831
|
*/
|
|
5826
|
-
declare function getStarknetIdPfpContract(chainId:
|
|
5832
|
+
declare function getStarknetIdPfpContract(chainId: _StarknetChainId): string;
|
|
5827
5833
|
declare const StarknetIdPopContract: {
|
|
5828
5834
|
readonly MAINNET: "0x0293eb2ba9862f762bd3036586d5755a782bd22e6f5028320f1d0405fd47bff4";
|
|
5829
5835
|
readonly TESTNET_SEPOLIA: "0x15ae88ae054caa74090b89025c1595683f12edf7a4ed2ad0274de3e1d4a";
|
|
@@ -5840,7 +5846,7 @@ declare const StarknetIdPopContract: {
|
|
|
5840
5846
|
* // result = "0x15ae88ae054caa74090b89025c1595683f12edf7a4ed2ad0274de3e1d4a"
|
|
5841
5847
|
* ```
|
|
5842
5848
|
*/
|
|
5843
|
-
declare function getStarknetIdPopContract(chainId:
|
|
5849
|
+
declare function getStarknetIdPopContract(chainId: _StarknetChainId): string;
|
|
5844
5850
|
/**
|
|
5845
5851
|
* Returns a CairoCustomEnum object.
|
|
5846
5852
|
*
|
|
@@ -6004,11 +6010,11 @@ declare function parseContract(contract: CompiledContract | string): ContractCla
|
|
|
6004
6010
|
* // result = "https://starknet-mainnet.public.blastapi.io/rpc/v0_7"
|
|
6005
6011
|
* ```
|
|
6006
6012
|
*/
|
|
6007
|
-
declare const getDefaultNodeUrl: (networkName?:
|
|
6013
|
+
declare const getDefaultNodeUrl: (networkName?: _NetworkName, mute?: boolean, rpcVersion?: _SupportedRpcVersion) => string;
|
|
6008
6014
|
/**
|
|
6009
6015
|
* return Defaults RPC Nodes endpoints
|
|
6010
6016
|
*/
|
|
6011
|
-
declare function getDefaultNodes(rpcVersion:
|
|
6017
|
+
declare function getDefaultNodes(rpcVersion: _SupportedRpcVersion): any;
|
|
6012
6018
|
declare const validBlockTags: ("pending" | "latest")[];
|
|
6013
6019
|
/**
|
|
6014
6020
|
* This class is formatting the identifier of a block.
|
|
@@ -6114,8 +6120,8 @@ declare function isV3Tx(details: InvocationsDetailsWithNonce): details is V3Tran
|
|
|
6114
6120
|
* // result = false
|
|
6115
6121
|
* ```
|
|
6116
6122
|
*/
|
|
6117
|
-
declare function isVersion(version:
|
|
6118
|
-
declare function stringToSpecVersion(version: string):
|
|
6123
|
+
declare function isVersion(version: _SupportedRpcVersion, response: string): boolean;
|
|
6124
|
+
declare function stringToSpecVersion(version: string): _SupportedRpcVersion;
|
|
6119
6125
|
/**
|
|
6120
6126
|
* Guard Pending Block
|
|
6121
6127
|
* @param {GetBlockResponse} response answer of myProvider.getBlock()
|