starknet 6.13.1 → 6.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +23 -2
- package/dist/index.global.js +125 -75
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +125 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +125 -75
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# [6.14.0](https://github.com/starknet-io/starknet.js/compare/v6.13.1...v6.14.0) (2024-09-04)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- isClassDeclared prepareInvocations, fix cairo0 test ([#1211](https://github.com/starknet-io/starknet.js/issues/1211)) ([9fdf54f](https://github.com/starknet-io/starknet.js/commit/9fdf54f9a4547ba4072cb26c9a544c6df9e05853))
|
|
6
|
+
|
|
1
7
|
## [6.13.1](https://github.com/starknet-io/starknet.js/compare/v6.13.0...v6.13.1) (2024-09-03)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -2055,6 +2055,12 @@ type DeclareContractPayload = {
|
|
|
2055
2055
|
casm?: CompiledSierraCasm;
|
|
2056
2056
|
compiledClassHash?: string;
|
|
2057
2057
|
};
|
|
2058
|
+
/**
|
|
2059
|
+
* DeclareContractPayload with classHash or contract defined
|
|
2060
|
+
*/
|
|
2061
|
+
type ContractClassIdentifier = DeclareContractPayload | {
|
|
2062
|
+
classHash: string;
|
|
2063
|
+
};
|
|
2058
2064
|
type CompleteDeclareContractPayload = {
|
|
2059
2065
|
contract: CompiledContract | string;
|
|
2060
2066
|
classHash: string;
|
|
@@ -2698,6 +2704,7 @@ type index$2_CompilerVersion = CompilerVersion;
|
|
|
2698
2704
|
type index$2_CompleteDeclareContractPayload = CompleteDeclareContractPayload;
|
|
2699
2705
|
type index$2_CompressedProgram = CompressedProgram;
|
|
2700
2706
|
type index$2_ContractClass = ContractClass;
|
|
2707
|
+
type index$2_ContractClassIdentifier = ContractClassIdentifier;
|
|
2701
2708
|
type index$2_ContractClassPayload = ContractClassPayload;
|
|
2702
2709
|
type index$2_ContractClassResponse = ContractClassResponse;
|
|
2703
2710
|
type index$2_ContractEntryPointFields = ContractEntryPointFields;
|
|
@@ -2830,7 +2837,7 @@ type index$2_getEstimateFeeBulkOptions = getEstimateFeeBulkOptions;
|
|
|
2830
2837
|
type index$2_getSimulateTransactionOptions = getSimulateTransactionOptions;
|
|
2831
2838
|
type index$2_waitForTransactionOptions = waitForTransactionOptions;
|
|
2832
2839
|
declare namespace index$2 {
|
|
2833
|
-
export { type index$2_Abi as Abi, type index$2_AbiEntry as AbiEntry, type index$2_AbiEnum as AbiEnum, type index$2_AbiEnums as AbiEnums, type index$2_AbiEvent as AbiEvent, type index$2_AbiEvents as AbiEvents, type index$2_AbiInterfaces as AbiInterfaces, type index$2_AbiStruct as AbiStruct, type index$2_AbiStructs as AbiStructs, type index$2_AccountInvocationItem as AccountInvocationItem, type index$2_AccountInvocations as AccountInvocations, type index$2_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$2_AllowArray as AllowArray, type index$2_Args as Args, type index$2_ArgsOrCalldata as ArgsOrCalldata, type index$2_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$2_ArraySignatureType as ArraySignatureType, type index$2_AsyncContractFunction as AsyncContractFunction, type index$2_BigNumberish as BigNumberish, type Block$1 as Block, type index$2_BlockIdentifier as BlockIdentifier, type index$2_BlockNumber as BlockNumber, type index$2_BlockStatus as BlockStatus, type index$2_BlockTag as BlockTag, type index$2_BlockWithTxHashes as BlockWithTxHashes, type index$2_Builtins as Builtins, type index$2_ByteArray as ByteArray, type index$2_ByteCode as ByteCode, type index$2_CairoAssembly as CairoAssembly, type index$2_CairoContract as CairoContract, type index$2_CairoEnum as CairoEnum, type index$2_CairoEvent as CairoEvent, type index$2_CairoEventDefinition as CairoEventDefinition, type index$2_CairoEventVariant as CairoEventVariant, type index$2_CairoVersion as CairoVersion, type index$2_Call as Call, type index$2_CallContractResponse as CallContractResponse, type index$2_CallDetails as CallDetails, type index$2_CallOptions as CallOptions, type index$2_CallStruct as CallStruct, type index$2_Calldata as Calldata, type index$2_CompiledContract as CompiledContract, type index$2_CompiledSierra as CompiledSierra, type index$2_CompiledSierraCasm as CompiledSierraCasm, type index$2_CompilerVersion as CompilerVersion, type index$2_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$2_CompressedProgram as CompressedProgram, type index$2_ContractClass as ContractClass, type index$2_ContractClassPayload as ContractClassPayload, type index$2_ContractClassResponse as ContractClassResponse, type index$2_ContractEntryPointFields as ContractEntryPointFields, type index$2_ContractFunction as ContractFunction, type index$2_ContractOptions as ContractOptions, type index$2_ContractVersion as ContractVersion, type index$2_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$2_DeclareContractPayload as DeclareContractPayload, type index$2_DeclareContractResponse as DeclareContractResponse, type index$2_DeclareContractTransaction as DeclareContractTransaction, type index$2_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$2_DeclareSignerDetails as DeclareSignerDetails, type index$2_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$2_DeployAccountContractPayload as DeployAccountContractPayload, type index$2_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$2_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$2_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$2_DeployContractResponse as DeployContractResponse, type index$2_DeployContractUDCResponse as DeployContractUDCResponse, type index$2_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$2_Details as Details, type index$2_EntryPointType as EntryPointType, type index$2_EntryPointsByType as EntryPointsByType, type index$2_EstimateFee as EstimateFee, type index$2_EstimateFeeAction as EstimateFeeAction, type index$2_EstimateFeeBulk as EstimateFeeBulk, type index$2_EstimateFeeDetails as EstimateFeeDetails, type index$2_EstimateFeeResponse as EstimateFeeResponse, type index$2_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type index$2_EventEntry as EventEntry, type index$2_FeeEstimate as FeeEstimate, type index$2_FunctionAbi as FunctionAbi, type index$2_GetBlockResponse as GetBlockResponse, type index$2_GetTransactionResponse as GetTransactionResponse, type index$2_GetTxReceiptResponseWithoutHelper as GetTxReceiptResponseWithoutHelper, type index$2_HexCalldata as HexCalldata, type index$2_InterfaceAbi as InterfaceAbi, type index$2_Invocation as Invocation, type index$2_Invocations as Invocations, type index$2_InvocationsDetails as InvocationsDetails, type index$2_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$2_InvocationsSignerDetails as InvocationsSignerDetails, type index$2_InvokeFunctionResponse as InvokeFunctionResponse, type index$2_InvokeOptions as InvokeOptions, type index$2_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$2_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$2_LegacyCompiledContract as LegacyCompiledContract, type index$2_LegacyContractClass as LegacyContractClass, type index$2_LegacyEvent as LegacyEvent, type index$2_Literal as Literal, type index$2_MessageToL1 as MessageToL1, type index$2_MultiDeployContractResponse as MultiDeployContractResponse, type index$2_MultiType as MultiType, type index$2_Nonce as Nonce, type index$2_OptionalPayload as OptionalPayload, type index$2_OutsideCall as OutsideCall, type index$2_OutsideExecution as OutsideExecution, type index$2_OutsideExecutionOptions as OutsideExecutionOptions, index$2_OutsideExecutionTypesV1 as OutsideExecutionTypesV1, index$2_OutsideExecutionTypesV2 as OutsideExecutionTypesV2, index$2_OutsideExecutionVersion as OutsideExecutionVersion, type index$2_OutsideTransaction as OutsideTransaction, type index$2_ParsedEvent as ParsedEvent, type index$2_ParsedEvents as ParsedEvents, type index$2_ParsedStruct as ParsedStruct, type index$2_PendingBlock as PendingBlock, type index$2_PendingStateUpdate as PendingStateUpdate, type index$2_Program as Program, type index$2_ProviderOptions as ProviderOptions, type index$2_PythonicHints as PythonicHints, index$3 as RPC, type index$2_RawArgs as RawArgs, type index$2_RawArgsArray as RawArgsArray, type index$2_RawArgsObject as RawArgsObject, type index$2_RawCalldata as RawCalldata, type index$2_RejectedTransactionReceiptResponse as RejectedTransactionReceiptResponse, type index$2_Result as Result, type index$2_RevertedTransactionReceiptResponse as RevertedTransactionReceiptResponse, type index$2_RpcProviderOptions as RpcProviderOptions, type index$2_SIMULATION_FLAG as SIMULATION_FLAG, type index$2_SierraContractClass as SierraContractClass, type index$2_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$2_SierraEntryPointsByType as SierraEntryPointsByType, type index$2_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$2_Signature as Signature, type index$2_SimulateTransactionDetails as SimulateTransactionDetails, type index$2_SimulateTransactionResponse as SimulateTransactionResponse, type index$2_SimulatedTransaction as SimulatedTransaction, type index$2_SimulationFlags as SimulationFlags, type index$2_StarkProfile as StarkProfile, index$2_StarknetDomain as StarknetDomain, index$2_StarknetEnumType as StarknetEnumType, index$2_StarknetMerkleType as StarknetMerkleType, index$2_StarknetType as StarknetType, type index$2_StateUpdate as StateUpdate, type index$2_StateUpdateResponse as StateUpdateResponse, type index$2_Storage as Storage, type index$2_SuccessfulTransactionReceiptResponse as SuccessfulTransactionReceiptResponse, type index$2_TransactionExecutionStatus as TransactionExecutionStatus, type index$2_TransactionFinalityStatus as TransactionFinalityStatus, type index$2_TransactionReceipt as TransactionReceipt, type index$2_TransactionReceiptCallbacks as TransactionReceiptCallbacks, type index$2_TransactionReceiptCallbacksDefault as TransactionReceiptCallbacksDefault, type index$2_TransactionReceiptCallbacksDefined as TransactionReceiptCallbacksDefined, type index$2_TransactionReceiptStatus as TransactionReceiptStatus, type index$2_TransactionReceiptUtilityInterface as TransactionReceiptUtilityInterface, type index$2_TransactionReceiptValue as TransactionReceiptValue, type index$2_TransactionStatus as TransactionStatus, type index$2_TransactionStatusReceiptSets as TransactionStatusReceiptSets, type index$2_TransactionType as TransactionType, type index$2_Tupled as Tupled, index$2_TypedData as TypedData, index$2_TypedDataRevision as TypedDataRevision, type index$2_Uint as Uint, type index$2_Uint256 as Uint256, type index$2_Uint512 as Uint512, type index$2_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$2_UniversalDetails as UniversalDetails, type index$2_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$2_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$2_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$2_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$2_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$2_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$2_V3TransactionDetails as V3TransactionDetails, type index$2_ValidateType as ValidateType, type index$2_WeierstrassSignatureType as WeierstrassSignatureType, type index$2_getContractVersionOptions as getContractVersionOptions, type index$2_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$2_getSimulateTransactionOptions as getSimulateTransactionOptions, type index$2_waitForTransactionOptions as waitForTransactionOptions };
|
|
2840
|
+
export { type index$2_Abi as Abi, type index$2_AbiEntry as AbiEntry, type index$2_AbiEnum as AbiEnum, type index$2_AbiEnums as AbiEnums, type index$2_AbiEvent as AbiEvent, type index$2_AbiEvents as AbiEvents, type index$2_AbiInterfaces as AbiInterfaces, type index$2_AbiStruct as AbiStruct, type index$2_AbiStructs as AbiStructs, type index$2_AccountInvocationItem as AccountInvocationItem, type index$2_AccountInvocations as AccountInvocations, type index$2_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$2_AllowArray as AllowArray, type index$2_Args as Args, type index$2_ArgsOrCalldata as ArgsOrCalldata, type index$2_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$2_ArraySignatureType as ArraySignatureType, type index$2_AsyncContractFunction as AsyncContractFunction, type index$2_BigNumberish as BigNumberish, type Block$1 as Block, type index$2_BlockIdentifier as BlockIdentifier, type index$2_BlockNumber as BlockNumber, type index$2_BlockStatus as BlockStatus, type index$2_BlockTag as BlockTag, type index$2_BlockWithTxHashes as BlockWithTxHashes, type index$2_Builtins as Builtins, type index$2_ByteArray as ByteArray, type index$2_ByteCode as ByteCode, type index$2_CairoAssembly as CairoAssembly, type index$2_CairoContract as CairoContract, type index$2_CairoEnum as CairoEnum, type index$2_CairoEvent as CairoEvent, type index$2_CairoEventDefinition as CairoEventDefinition, type index$2_CairoEventVariant as CairoEventVariant, type index$2_CairoVersion as CairoVersion, type index$2_Call as Call, type index$2_CallContractResponse as CallContractResponse, type index$2_CallDetails as CallDetails, type index$2_CallOptions as CallOptions, type index$2_CallStruct as CallStruct, type index$2_Calldata as Calldata, type index$2_CompiledContract as CompiledContract, type index$2_CompiledSierra as CompiledSierra, type index$2_CompiledSierraCasm as CompiledSierraCasm, type index$2_CompilerVersion as CompilerVersion, type index$2_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$2_CompressedProgram as CompressedProgram, type index$2_ContractClass as ContractClass, type index$2_ContractClassIdentifier as ContractClassIdentifier, type index$2_ContractClassPayload as ContractClassPayload, type index$2_ContractClassResponse as ContractClassResponse, type index$2_ContractEntryPointFields as ContractEntryPointFields, type index$2_ContractFunction as ContractFunction, type index$2_ContractOptions as ContractOptions, type index$2_ContractVersion as ContractVersion, type index$2_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$2_DeclareContractPayload as DeclareContractPayload, type index$2_DeclareContractResponse as DeclareContractResponse, type index$2_DeclareContractTransaction as DeclareContractTransaction, type index$2_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$2_DeclareSignerDetails as DeclareSignerDetails, type index$2_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$2_DeployAccountContractPayload as DeployAccountContractPayload, type index$2_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$2_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$2_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$2_DeployContractResponse as DeployContractResponse, type index$2_DeployContractUDCResponse as DeployContractUDCResponse, type index$2_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$2_Details as Details, type index$2_EntryPointType as EntryPointType, type index$2_EntryPointsByType as EntryPointsByType, type index$2_EstimateFee as EstimateFee, type index$2_EstimateFeeAction as EstimateFeeAction, type index$2_EstimateFeeBulk as EstimateFeeBulk, type index$2_EstimateFeeDetails as EstimateFeeDetails, type index$2_EstimateFeeResponse as EstimateFeeResponse, type index$2_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type index$2_EventEntry as EventEntry, type index$2_FeeEstimate as FeeEstimate, type index$2_FunctionAbi as FunctionAbi, type index$2_GetBlockResponse as GetBlockResponse, type index$2_GetTransactionResponse as GetTransactionResponse, type index$2_GetTxReceiptResponseWithoutHelper as GetTxReceiptResponseWithoutHelper, type index$2_HexCalldata as HexCalldata, type index$2_InterfaceAbi as InterfaceAbi, type index$2_Invocation as Invocation, type index$2_Invocations as Invocations, type index$2_InvocationsDetails as InvocationsDetails, type index$2_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$2_InvocationsSignerDetails as InvocationsSignerDetails, type index$2_InvokeFunctionResponse as InvokeFunctionResponse, type index$2_InvokeOptions as InvokeOptions, type index$2_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$2_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$2_LegacyCompiledContract as LegacyCompiledContract, type index$2_LegacyContractClass as LegacyContractClass, type index$2_LegacyEvent as LegacyEvent, type index$2_Literal as Literal, type index$2_MessageToL1 as MessageToL1, type index$2_MultiDeployContractResponse as MultiDeployContractResponse, type index$2_MultiType as MultiType, type index$2_Nonce as Nonce, type index$2_OptionalPayload as OptionalPayload, type index$2_OutsideCall as OutsideCall, type index$2_OutsideExecution as OutsideExecution, type index$2_OutsideExecutionOptions as OutsideExecutionOptions, index$2_OutsideExecutionTypesV1 as OutsideExecutionTypesV1, index$2_OutsideExecutionTypesV2 as OutsideExecutionTypesV2, index$2_OutsideExecutionVersion as OutsideExecutionVersion, type index$2_OutsideTransaction as OutsideTransaction, type index$2_ParsedEvent as ParsedEvent, type index$2_ParsedEvents as ParsedEvents, type index$2_ParsedStruct as ParsedStruct, type index$2_PendingBlock as PendingBlock, type index$2_PendingStateUpdate as PendingStateUpdate, type index$2_Program as Program, type index$2_ProviderOptions as ProviderOptions, type index$2_PythonicHints as PythonicHints, index$3 as RPC, type index$2_RawArgs as RawArgs, type index$2_RawArgsArray as RawArgsArray, type index$2_RawArgsObject as RawArgsObject, type index$2_RawCalldata as RawCalldata, type index$2_RejectedTransactionReceiptResponse as RejectedTransactionReceiptResponse, type index$2_Result as Result, type index$2_RevertedTransactionReceiptResponse as RevertedTransactionReceiptResponse, type index$2_RpcProviderOptions as RpcProviderOptions, type index$2_SIMULATION_FLAG as SIMULATION_FLAG, type index$2_SierraContractClass as SierraContractClass, type index$2_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$2_SierraEntryPointsByType as SierraEntryPointsByType, type index$2_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$2_Signature as Signature, type index$2_SimulateTransactionDetails as SimulateTransactionDetails, type index$2_SimulateTransactionResponse as SimulateTransactionResponse, type index$2_SimulatedTransaction as SimulatedTransaction, type index$2_SimulationFlags as SimulationFlags, type index$2_StarkProfile as StarkProfile, index$2_StarknetDomain as StarknetDomain, index$2_StarknetEnumType as StarknetEnumType, index$2_StarknetMerkleType as StarknetMerkleType, index$2_StarknetType as StarknetType, type index$2_StateUpdate as StateUpdate, type index$2_StateUpdateResponse as StateUpdateResponse, type index$2_Storage as Storage, type index$2_SuccessfulTransactionReceiptResponse as SuccessfulTransactionReceiptResponse, type index$2_TransactionExecutionStatus as TransactionExecutionStatus, type index$2_TransactionFinalityStatus as TransactionFinalityStatus, type index$2_TransactionReceipt as TransactionReceipt, type index$2_TransactionReceiptCallbacks as TransactionReceiptCallbacks, type index$2_TransactionReceiptCallbacksDefault as TransactionReceiptCallbacksDefault, type index$2_TransactionReceiptCallbacksDefined as TransactionReceiptCallbacksDefined, type index$2_TransactionReceiptStatus as TransactionReceiptStatus, type index$2_TransactionReceiptUtilityInterface as TransactionReceiptUtilityInterface, type index$2_TransactionReceiptValue as TransactionReceiptValue, type index$2_TransactionStatus as TransactionStatus, type index$2_TransactionStatusReceiptSets as TransactionStatusReceiptSets, type index$2_TransactionType as TransactionType, type index$2_Tupled as Tupled, index$2_TypedData as TypedData, index$2_TypedDataRevision as TypedDataRevision, type index$2_Uint as Uint, type index$2_Uint256 as Uint256, type index$2_Uint512 as Uint512, type index$2_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$2_UniversalDetails as UniversalDetails, type index$2_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$2_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$2_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$2_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$2_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$2_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$2_V3TransactionDetails as V3TransactionDetails, type index$2_ValidateType as ValidateType, type index$2_WeierstrassSignatureType as WeierstrassSignatureType, type index$2_getContractVersionOptions as getContractVersionOptions, type index$2_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$2_getSimulateTransactionOptions as getSimulateTransactionOptions, type index$2_waitForTransactionOptions as waitForTransactionOptions };
|
|
2834
2841
|
}
|
|
2835
2842
|
|
|
2836
2843
|
declare class RpcChannel$1 {
|
|
@@ -3453,6 +3460,20 @@ declare class RpcProvider$1 implements ProviderInterface {
|
|
|
3453
3460
|
nokResponse: string[];
|
|
3454
3461
|
error: string[];
|
|
3455
3462
|
}): Promise<boolean>;
|
|
3463
|
+
/**
|
|
3464
|
+
* Test if class is already declared from ContractClassIdentifier
|
|
3465
|
+
* Helper method using getClass
|
|
3466
|
+
* @param ContractClassIdentifier
|
|
3467
|
+
* @param blockIdentifier
|
|
3468
|
+
*/
|
|
3469
|
+
isClassDeclared(contractClassIdentifier: ContractClassIdentifier, blockIdentifier?: BlockIdentifier): Promise<boolean>;
|
|
3470
|
+
/**
|
|
3471
|
+
* Build bulk invocations with auto-detect declared class
|
|
3472
|
+
* 1. Test if class is declared if not declare it preventing already declared class error and not declared class errors
|
|
3473
|
+
* 2. Order declarations first
|
|
3474
|
+
* @param invocations
|
|
3475
|
+
*/
|
|
3476
|
+
prepareInvocations(invocations: Invocations): Promise<Invocations>;
|
|
3456
3477
|
}
|
|
3457
3478
|
|
|
3458
3479
|
declare class StarknetId {
|
|
@@ -7602,4 +7623,4 @@ declare namespace connect {
|
|
|
7602
7623
|
/** @deprecated prefer the 'num' naming */
|
|
7603
7624
|
declare const number: typeof num;
|
|
7604
7625
|
|
|
7605
|
-
export { type Abi, type AbiEntry, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, type AbiStruct, type AbiStructs, Account, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AllowArray, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockWithTxHashes, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint256, CairoUint512, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallStruct, type Calldata, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, ContractFactory, type ContractFactoryParams, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, CustomError, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransactionReceiptResponse, type Details, EntryPointType, type EntryPointsByType, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type EventEntry, type FeeEstimate, type FunctionAbi, GatewayError, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, HttpError, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeOptions, type InvokeTransactionReceiptResponse, type L1HandlerTransactionReceiptResponse, LedgerSigner, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type MessageToL1, type MultiDeployContractResponse, type MultiType, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PendingBlock, type PendingStateUpdate, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type PythonicHints, index$3 as RPC, rpc_0_6 as RPC06, rpc_0_7 as RPC07, RPCResponseParser, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, ReceiptTx, type RejectedTransactionReceiptResponse, ResponseParser, type Result, type RevertedTransactionReceiptResponse, RpcChannel, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type SimulateTransactionDetails, type SimulateTransactionResponse, type SimulatedTransaction, type SimulationFlags, type StarkProfile, type StateUpdate, type StateUpdateResponse, type Storage, type SuccessfulTransactionReceiptResponse, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptUtilityInterface, type TransactionReceiptValue, TransactionStatus, type TransactionStatusReceiptSets, TransactionType, 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 V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, type WeierstrassSignatureType, addAddressPadding, buildUrl, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getLedgerPathBuffer, type getSimulateTransactionOptions, index$1 as hash, isSierra, isUrl, json, merkle, num, number, outsideExecution, parseCalldataField, provider, selector, shortString, splitArgsAndOptions, src5, stark, starknetId, transaction, typedData, index$2 as types, uint256$1 as uint256, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, type waitForTransactionOptions, connect as wallet };
|
|
7626
|
+
export { type Abi, type AbiEntry, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, type AbiStruct, type AbiStructs, Account, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AllowArray, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockWithTxHashes, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint256, CairoUint512, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallStruct, type Calldata, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, ContractFactory, type ContractFactoryParams, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, CustomError, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransactionReceiptResponse, type Details, EntryPointType, type EntryPointsByType, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type EventEntry, type FeeEstimate, type FunctionAbi, GatewayError, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, HttpError, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeOptions, type InvokeTransactionReceiptResponse, type L1HandlerTransactionReceiptResponse, LedgerSigner, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type MessageToL1, type MultiDeployContractResponse, type MultiType, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PendingBlock, type PendingStateUpdate, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type PythonicHints, index$3 as RPC, rpc_0_6 as RPC06, rpc_0_7 as RPC07, RPCResponseParser, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, ReceiptTx, type RejectedTransactionReceiptResponse, ResponseParser, type Result, type RevertedTransactionReceiptResponse, RpcChannel, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type SimulateTransactionDetails, type SimulateTransactionResponse, type SimulatedTransaction, type SimulationFlags, type StarkProfile, type StateUpdate, type StateUpdateResponse, type Storage, type SuccessfulTransactionReceiptResponse, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptUtilityInterface, type TransactionReceiptValue, TransactionStatus, type TransactionStatusReceiptSets, TransactionType, 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 V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, type WeierstrassSignatureType, addAddressPadding, buildUrl, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getLedgerPathBuffer, type getSimulateTransactionOptions, index$1 as hash, isSierra, isUrl, json, merkle, num, number, outsideExecution, parseCalldataField, provider, selector, shortString, splitArgsAndOptions, src5, stark, starknetId, transaction, typedData, index$2 as types, uint256$1 as uint256, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, type waitForTransactionOptions, connect as wallet };
|
package/dist/index.global.js
CHANGED
|
@@ -26123,6 +26123,54 @@ var starknet = (() => {
|
|
|
26123
26123
|
}
|
|
26124
26124
|
throw Error(`Signature verification Error: ${error2}`);
|
|
26125
26125
|
}
|
|
26126
|
+
/**
|
|
26127
|
+
* Test if class is already declared from ContractClassIdentifier
|
|
26128
|
+
* Helper method using getClass
|
|
26129
|
+
* @param ContractClassIdentifier
|
|
26130
|
+
* @param blockIdentifier
|
|
26131
|
+
*/
|
|
26132
|
+
async isClassDeclared(contractClassIdentifier, blockIdentifier) {
|
|
26133
|
+
let classHash;
|
|
26134
|
+
if (!contractClassIdentifier.classHash && "contract" in contractClassIdentifier) {
|
|
26135
|
+
const hashes = extractContractHashes(contractClassIdentifier);
|
|
26136
|
+
classHash = hashes.classHash;
|
|
26137
|
+
} else if (contractClassIdentifier.classHash) {
|
|
26138
|
+
classHash = contractClassIdentifier.classHash;
|
|
26139
|
+
} else {
|
|
26140
|
+
throw Error("contractClassIdentifier type not satisfied");
|
|
26141
|
+
}
|
|
26142
|
+
try {
|
|
26143
|
+
const result = await this.getClass(classHash, blockIdentifier);
|
|
26144
|
+
return result instanceof Object;
|
|
26145
|
+
} catch (error2) {
|
|
26146
|
+
if (error2 instanceof LibraryError) {
|
|
26147
|
+
return false;
|
|
26148
|
+
}
|
|
26149
|
+
throw error2;
|
|
26150
|
+
}
|
|
26151
|
+
}
|
|
26152
|
+
/**
|
|
26153
|
+
* Build bulk invocations with auto-detect declared class
|
|
26154
|
+
* 1. Test if class is declared if not declare it preventing already declared class error and not declared class errors
|
|
26155
|
+
* 2. Order declarations first
|
|
26156
|
+
* @param invocations
|
|
26157
|
+
*/
|
|
26158
|
+
async prepareInvocations(invocations) {
|
|
26159
|
+
const bulk = [];
|
|
26160
|
+
for (const invocation of invocations) {
|
|
26161
|
+
if (invocation.type === TransactionType.DECLARE) {
|
|
26162
|
+
const isDeclared = await this.isClassDeclared(
|
|
26163
|
+
"payload" in invocation ? invocation.payload : invocation
|
|
26164
|
+
);
|
|
26165
|
+
if (!isDeclared) {
|
|
26166
|
+
bulk.unshift(invocation);
|
|
26167
|
+
}
|
|
26168
|
+
} else {
|
|
26169
|
+
bulk.push(invocation);
|
|
26170
|
+
}
|
|
26171
|
+
}
|
|
26172
|
+
return bulk;
|
|
26173
|
+
}
|
|
26126
26174
|
};
|
|
26127
26175
|
|
|
26128
26176
|
// node_modules/ts-mixer/dist/esm/index.js
|
|
@@ -27213,81 +27261,6 @@ var starknet = (() => {
|
|
|
27213
27261
|
return pathBuff;
|
|
27214
27262
|
}
|
|
27215
27263
|
|
|
27216
|
-
// src/utils/outsideExecution.ts
|
|
27217
|
-
var outsideExecution_exports = {};
|
|
27218
|
-
__export(outsideExecution_exports, {
|
|
27219
|
-
buildExecuteFromOutsideCallData: () => buildExecuteFromOutsideCallData,
|
|
27220
|
-
getOutsideCall: () => getOutsideCall,
|
|
27221
|
-
getTypedData: () => getTypedData
|
|
27222
|
-
});
|
|
27223
|
-
function getOutsideCall(call) {
|
|
27224
|
-
const callData = call.calldata ?? [];
|
|
27225
|
-
const callDataCompiled = Array.isArray(callData) ? callData : CallData.compile(callData);
|
|
27226
|
-
return {
|
|
27227
|
-
to: call.contractAddress,
|
|
27228
|
-
selector: getSelectorFromName(call.entrypoint),
|
|
27229
|
-
calldata: callDataCompiled
|
|
27230
|
-
};
|
|
27231
|
-
}
|
|
27232
|
-
function callToTypedData(call, version) {
|
|
27233
|
-
const outsideCall = getOutsideCall(call);
|
|
27234
|
-
if (version === "1") {
|
|
27235
|
-
return {
|
|
27236
|
-
...outsideCall,
|
|
27237
|
-
calldata_len: outsideCall.calldata.length,
|
|
27238
|
-
calldata: outsideCall.calldata
|
|
27239
|
-
};
|
|
27240
|
-
}
|
|
27241
|
-
return {
|
|
27242
|
-
To: outsideCall.to,
|
|
27243
|
-
Selector: outsideCall.selector,
|
|
27244
|
-
Calldata: outsideCall.calldata
|
|
27245
|
-
};
|
|
27246
|
-
}
|
|
27247
|
-
function getDomain(chainId, version) {
|
|
27248
|
-
return {
|
|
27249
|
-
name: "Account.execute_from_outside",
|
|
27250
|
-
version,
|
|
27251
|
-
chainId,
|
|
27252
|
-
...version === "2" ? { revision: "1" } : {}
|
|
27253
|
-
};
|
|
27254
|
-
}
|
|
27255
|
-
function getTypedData(chainId, options, nonce, myCalls, version) {
|
|
27256
|
-
if (version === "1") {
|
|
27257
|
-
return {
|
|
27258
|
-
types: OutsideExecutionTypesV1,
|
|
27259
|
-
primaryType: "OutsideExecution",
|
|
27260
|
-
domain: getDomain(chainId, version),
|
|
27261
|
-
message: {
|
|
27262
|
-
...options,
|
|
27263
|
-
nonce,
|
|
27264
|
-
calls_len: myCalls.length,
|
|
27265
|
-
calls: myCalls.map((call) => callToTypedData(call, version))
|
|
27266
|
-
}
|
|
27267
|
-
};
|
|
27268
|
-
}
|
|
27269
|
-
return {
|
|
27270
|
-
types: OutsideExecutionTypesV2,
|
|
27271
|
-
primaryType: "OutsideExecution",
|
|
27272
|
-
domain: getDomain(chainId, version),
|
|
27273
|
-
message: {
|
|
27274
|
-
Caller: options.caller,
|
|
27275
|
-
Nonce: nonce,
|
|
27276
|
-
"Execute After": options.execute_after,
|
|
27277
|
-
"Execute Before": options.execute_before,
|
|
27278
|
-
Calls: myCalls.map((call) => callToTypedData(call, version))
|
|
27279
|
-
}
|
|
27280
|
-
};
|
|
27281
|
-
}
|
|
27282
|
-
function buildExecuteFromOutsideCallData(outsideTransaction) {
|
|
27283
|
-
const execution2 = outsideTransaction.outsideExecution;
|
|
27284
|
-
const formattedSignature = formatSignature(outsideTransaction.signature);
|
|
27285
|
-
return CallData.compile({
|
|
27286
|
-
outside_execution: execution2,
|
|
27287
|
-
signature: formattedSignature
|
|
27288
|
-
});
|
|
27289
|
-
}
|
|
27290
|
-
|
|
27291
27264
|
// src/utils/events/index.ts
|
|
27292
27265
|
var events_exports = {};
|
|
27293
27266
|
__export(events_exports, {
|
|
@@ -27427,6 +27400,81 @@ var starknet = (() => {
|
|
|
27427
27400
|
};
|
|
27428
27401
|
}
|
|
27429
27402
|
|
|
27403
|
+
// src/utils/outsideExecution.ts
|
|
27404
|
+
var outsideExecution_exports = {};
|
|
27405
|
+
__export(outsideExecution_exports, {
|
|
27406
|
+
buildExecuteFromOutsideCallData: () => buildExecuteFromOutsideCallData,
|
|
27407
|
+
getOutsideCall: () => getOutsideCall,
|
|
27408
|
+
getTypedData: () => getTypedData
|
|
27409
|
+
});
|
|
27410
|
+
function getOutsideCall(call) {
|
|
27411
|
+
const callData = call.calldata ?? [];
|
|
27412
|
+
const callDataCompiled = Array.isArray(callData) ? callData : CallData.compile(callData);
|
|
27413
|
+
return {
|
|
27414
|
+
to: call.contractAddress,
|
|
27415
|
+
selector: getSelectorFromName(call.entrypoint),
|
|
27416
|
+
calldata: callDataCompiled
|
|
27417
|
+
};
|
|
27418
|
+
}
|
|
27419
|
+
function callToTypedData(call, version) {
|
|
27420
|
+
const outsideCall = getOutsideCall(call);
|
|
27421
|
+
if (version === "1") {
|
|
27422
|
+
return {
|
|
27423
|
+
...outsideCall,
|
|
27424
|
+
calldata_len: outsideCall.calldata.length,
|
|
27425
|
+
calldata: outsideCall.calldata
|
|
27426
|
+
};
|
|
27427
|
+
}
|
|
27428
|
+
return {
|
|
27429
|
+
To: outsideCall.to,
|
|
27430
|
+
Selector: outsideCall.selector,
|
|
27431
|
+
Calldata: outsideCall.calldata
|
|
27432
|
+
};
|
|
27433
|
+
}
|
|
27434
|
+
function getDomain(chainId, version) {
|
|
27435
|
+
return {
|
|
27436
|
+
name: "Account.execute_from_outside",
|
|
27437
|
+
version,
|
|
27438
|
+
chainId,
|
|
27439
|
+
...version === "2" ? { revision: "1" } : {}
|
|
27440
|
+
};
|
|
27441
|
+
}
|
|
27442
|
+
function getTypedData(chainId, options, nonce, myCalls, version) {
|
|
27443
|
+
if (version === "1") {
|
|
27444
|
+
return {
|
|
27445
|
+
types: OutsideExecutionTypesV1,
|
|
27446
|
+
primaryType: "OutsideExecution",
|
|
27447
|
+
domain: getDomain(chainId, version),
|
|
27448
|
+
message: {
|
|
27449
|
+
...options,
|
|
27450
|
+
nonce,
|
|
27451
|
+
calls_len: myCalls.length,
|
|
27452
|
+
calls: myCalls.map((call) => callToTypedData(call, version))
|
|
27453
|
+
}
|
|
27454
|
+
};
|
|
27455
|
+
}
|
|
27456
|
+
return {
|
|
27457
|
+
types: OutsideExecutionTypesV2,
|
|
27458
|
+
primaryType: "OutsideExecution",
|
|
27459
|
+
domain: getDomain(chainId, version),
|
|
27460
|
+
message: {
|
|
27461
|
+
Caller: options.caller,
|
|
27462
|
+
Nonce: nonce,
|
|
27463
|
+
"Execute After": options.execute_after,
|
|
27464
|
+
"Execute Before": options.execute_before,
|
|
27465
|
+
Calls: myCalls.map((call) => callToTypedData(call, version))
|
|
27466
|
+
}
|
|
27467
|
+
};
|
|
27468
|
+
}
|
|
27469
|
+
function buildExecuteFromOutsideCallData(outsideTransaction) {
|
|
27470
|
+
const execution2 = outsideTransaction.outsideExecution;
|
|
27471
|
+
const formattedSignature = formatSignature(outsideTransaction.signature);
|
|
27472
|
+
return CallData.compile({
|
|
27473
|
+
outside_execution: execution2,
|
|
27474
|
+
signature: formattedSignature
|
|
27475
|
+
});
|
|
27476
|
+
}
|
|
27477
|
+
|
|
27430
27478
|
// src/utils/src5.ts
|
|
27431
27479
|
var src5_exports = {};
|
|
27432
27480
|
__export(src5_exports, {
|
|
@@ -27594,6 +27642,7 @@ var starknet = (() => {
|
|
|
27594
27642
|
return this.estimateInvokeFee(calls, details);
|
|
27595
27643
|
}
|
|
27596
27644
|
async estimateFeeBulk(invocations, details = {}) {
|
|
27645
|
+
if (!invocations.length) throw TypeError("Invocations should be non-empty array");
|
|
27597
27646
|
const { nonce, blockIdentifier, version, skipValidate } = details;
|
|
27598
27647
|
const accountInvocations = await this.accountInvocationsFactory(invocations, {
|
|
27599
27648
|
...v3Details(details),
|
|
@@ -27616,6 +27665,7 @@ var starknet = (() => {
|
|
|
27616
27665
|
});
|
|
27617
27666
|
}
|
|
27618
27667
|
async simulateTransaction(invocations, details = {}) {
|
|
27668
|
+
if (!invocations.length) throw TypeError("Invocations should be non-empty array");
|
|
27619
27669
|
const { nonce, blockIdentifier, skipValidate = true, skipExecute, version } = details;
|
|
27620
27670
|
const accountInvocations = await this.accountInvocationsFactory(invocations, {
|
|
27621
27671
|
...v3Details(details),
|