starknet 6.18.0 → 6.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/index.d.ts +419 -17
- package/dist/index.global.js +661 -44
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +667 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +662 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [6.19.0](https://github.com/starknet-io/starknet.js/compare/v6.18.1...v6.19.0) (2024-11-26)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- Ledger signer 221 ([#1246](https://github.com/starknet-io/starknet.js/issues/1246)) ([03e2d50](https://github.com/starknet-io/starknet.js/commit/03e2d50edee7e2e9e8efb678a97effaf09adee70))
|
|
6
|
+
|
|
7
|
+
## [6.18.1](https://github.com/starknet-io/starknet.js/compare/v6.18.0...v6.18.1) (2024-11-25)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- expose BatchClient class ([8d3a0de](https://github.com/starknet-io/starknet.js/commit/8d3a0de85230e6f08edebf67b6581d6e79ea191a))
|
|
12
|
+
|
|
1
13
|
# [6.18.0](https://github.com/starknet-io/starknet.js/compare/v6.17.0...v6.18.0) (2024-11-18)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Play with [Code Examples](https://github.com/PhilippeR26/starknet.js-workshop-ty
|
|
|
59
59
|
|
|
60
60
|
If you consider to contribute to this project please read [CONTRIBUTING.md](https://github.com/starknet-io/starknet.js/blob/main/CONTRIBUTING.md) first.
|
|
61
61
|
|
|
62
|
-
You can also join our dedicated channel for [Starknet.js](https://discord.com/channels/793094838509764618/
|
|
62
|
+
You can also join our dedicated channel for [Starknet.js](https://discord.com/channels/793094838509764618/1270119831559078061) on the [Starknet Discord](https://discord.com/invite/Ft6Xtzdg)
|
|
63
63
|
|
|
64
64
|
## ❤️ Special Thanks
|
|
65
65
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as RPCSPEC07 from 'starknet-types-07';
|
|
2
|
-
import { ETransactionVersion as ETransactionVersion$1, STRUCT_EVENT as STRUCT_EVENT$1, ENUM_EVENT as ENUM_EVENT$1, EVENT_FIELD as EVENT_FIELD$1, ResourceBounds as ResourceBounds$2, EDataAvailabilityMode as EDataAvailabilityMode$1, Errors, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision, BlockWithTxReceipts, InvokedTransaction as InvokedTransaction$2, DeclaredTransaction as DeclaredTransaction$2, DeployedAccountTransaction as DeployedAccountTransaction$1, L1Message as L1Message$1, EventFilter as EventFilter$1, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, Event as Event$1, Address, Permission, ChainId as ChainId$1, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, SpecVersion } from 'starknet-types-07';
|
|
2
|
+
import { ETransactionVersion as ETransactionVersion$1, STRUCT_EVENT as STRUCT_EVENT$1, ENUM_EVENT as ENUM_EVENT$1, EVENT_FIELD as EVENT_FIELD$1, ResourceBounds as ResourceBounds$2, EDataAvailabilityMode as EDataAvailabilityMode$1, Errors, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision, BlockWithTxReceipts, InvokedTransaction as InvokedTransaction$2, DeclaredTransaction as DeclaredTransaction$2, DeployedAccountTransaction as DeployedAccountTransaction$1, L1Message as L1Message$1, EventFilter as EventFilter$1, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, Event as Event$1, Methods as Methods$1, Address, Permission, ChainId as ChainId$1, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, SpecVersion } from 'starknet-types-07';
|
|
3
3
|
export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from 'starknet-types-07';
|
|
4
4
|
import * as weierstrass from '@noble/curves/abstract/weierstrass';
|
|
5
5
|
import { RecoveredSignatureType } from '@noble/curves/abstract/weierstrass';
|
|
@@ -1652,6 +1652,8 @@ declare const RPC_NODES: {
|
|
|
1652
1652
|
declare const OutsideExecutionCallerAny = "0x414e595f43414c4c4552";
|
|
1653
1653
|
declare const SNIP9_V1_INTERFACE_ID = "0x68cfd18b92d1907b8ba3cc324900277f5a3622099431ea85dd8089255e4181";
|
|
1654
1654
|
declare const SNIP9_V2_INTERFACE_ID = "0x1d1144bb2138366ff28d8e9ab57456b1d332ac42196230c3a602003c89872";
|
|
1655
|
+
declare const HARDENING_BYTE = 128;
|
|
1656
|
+
declare const HARDENING_4BYTES = 2147483648n;
|
|
1655
1657
|
|
|
1656
1658
|
declare const constants_ADDR_BOUND: typeof ADDR_BOUND;
|
|
1657
1659
|
declare const constants_API_VERSION: typeof API_VERSION;
|
|
@@ -1659,6 +1661,8 @@ type constants_BaseUrl = BaseUrl;
|
|
|
1659
1661
|
declare const constants_BaseUrl: typeof BaseUrl;
|
|
1660
1662
|
type constants_FeeMarginPercentage = FeeMarginPercentage;
|
|
1661
1663
|
declare const constants_FeeMarginPercentage: typeof FeeMarginPercentage;
|
|
1664
|
+
declare const constants_HARDENING_4BYTES: typeof HARDENING_4BYTES;
|
|
1665
|
+
declare const constants_HARDENING_BYTE: typeof HARDENING_BYTE;
|
|
1662
1666
|
declare const constants_IS_BROWSER: typeof IS_BROWSER;
|
|
1663
1667
|
declare const constants_MASK_250: typeof MASK_250;
|
|
1664
1668
|
declare const constants_MASK_31: typeof MASK_31;
|
|
@@ -1682,7 +1686,7 @@ declare const constants_TransactionHashPrefix: typeof TransactionHashPrefix;
|
|
|
1682
1686
|
declare const constants_UDC: typeof UDC;
|
|
1683
1687
|
declare const constants_ZERO: typeof ZERO;
|
|
1684
1688
|
declare namespace constants {
|
|
1685
|
-
export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, constants_BaseUrl as BaseUrl, constants_FeeMarginPercentage as FeeMarginPercentage, 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, constants_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_VERSION as RPC_DEFAULT_VERSION, constants_RPC_NODES as RPC_NODES, constants_SNIP9_V1_INTERFACE_ID as SNIP9_V1_INTERFACE_ID, constants_SNIP9_V2_INTERFACE_ID as SNIP9_V2_INTERFACE_ID, constants_StarknetChainId as StarknetChainId, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, ETransactionVersion$1 as TRANSACTION_VERSION, constants_TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
|
|
1689
|
+
export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, constants_BaseUrl as BaseUrl, constants_FeeMarginPercentage as FeeMarginPercentage, 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, constants_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_VERSION as RPC_DEFAULT_VERSION, constants_RPC_NODES as RPC_NODES, constants_SNIP9_V1_INTERFACE_ID as SNIP9_V1_INTERFACE_ID, constants_SNIP9_V2_INTERFACE_ID as SNIP9_V2_INTERFACE_ID, constants_StarknetChainId as StarknetChainId, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, ETransactionVersion$1 as TRANSACTION_VERSION, constants_TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO };
|
|
1686
1690
|
}
|
|
1687
1691
|
|
|
1688
1692
|
declare const ec_weierstrass: typeof weierstrass;
|
|
@@ -2666,6 +2670,7 @@ type V3DeployAccountSignerDetails = Required<DeployAccountContractPayload> & V3T
|
|
|
2666
2670
|
chainId: StarknetChainId;
|
|
2667
2671
|
version: `${ETransactionVersion3$1}`;
|
|
2668
2672
|
};
|
|
2673
|
+
type LedgerPathCalculation = (accountId: number, applicationName: string) => Uint8Array;
|
|
2669
2674
|
|
|
2670
2675
|
type TransactionStatusReceiptSets = {
|
|
2671
2676
|
success: SuccessfulTransactionReceiptResponse;
|
|
@@ -2785,6 +2790,7 @@ type index$2_InvokeFunctionResponse = InvokeFunctionResponse;
|
|
|
2785
2790
|
type index$2_InvokeOptions = InvokeOptions;
|
|
2786
2791
|
type index$2_InvokeTransactionReceiptResponse = InvokeTransactionReceiptResponse;
|
|
2787
2792
|
type index$2_L1HandlerTransactionReceiptResponse = L1HandlerTransactionReceiptResponse;
|
|
2793
|
+
type index$2_LedgerPathCalculation = LedgerPathCalculation;
|
|
2788
2794
|
type index$2_LegacyCompiledContract = LegacyCompiledContract;
|
|
2789
2795
|
type index$2_LegacyContractClass = LegacyContractClass;
|
|
2790
2796
|
type index$2_LegacyEvent = LegacyEvent;
|
|
@@ -2875,7 +2881,7 @@ type index$2_getEstimateFeeBulkOptions = getEstimateFeeBulkOptions;
|
|
|
2875
2881
|
type index$2_getSimulateTransactionOptions = getSimulateTransactionOptions;
|
|
2876
2882
|
type index$2_waitForTransactionOptions = waitForTransactionOptions;
|
|
2877
2883
|
declare namespace index$2 {
|
|
2878
|
-
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, index$2_ETH_ADDRESS as ETH_ADDRESS, 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, index$2_NON_ZERO_PREFIX as NON_ZERO_PREFIX, 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_RPC_ERROR as RPC_ERROR, type index$2_RPC_ERROR_SET as RPC_ERROR_SET, 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_UniversalSuggestedFee as UniversalSuggestedFee, 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 };
|
|
2884
|
+
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, index$2_ETH_ADDRESS as ETH_ADDRESS, 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_LedgerPathCalculation as LedgerPathCalculation, 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, index$2_NON_ZERO_PREFIX as NON_ZERO_PREFIX, 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_RPC_ERROR as RPC_ERROR, type index$2_RPC_ERROR_SET as RPC_ERROR_SET, 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_UniversalSuggestedFee as UniversalSuggestedFee, 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 };
|
|
2879
2885
|
}
|
|
2880
2886
|
|
|
2881
2887
|
declare class RpcChannel$1 {
|
|
@@ -3708,16 +3714,19 @@ declare class EthSigner implements SignerInterface {
|
|
|
3708
3714
|
protected formatEthSignature(ethSignature: RecoveredSignatureType): ArraySignatureType;
|
|
3709
3715
|
}
|
|
3710
3716
|
|
|
3717
|
+
type _Transport = any;
|
|
3711
3718
|
/**
|
|
3712
|
-
* Signer for accounts using a Ledger Nano S+/X signature
|
|
3719
|
+
* Signer for accounts using a Ledger Nano S+/X signature (Starknet Ledger APP version 1.1.1)
|
|
3720
|
+
*
|
|
3721
|
+
* The Ledger has to be connected, unlocked and the Starknet APP has to be selected prior of use of this class.
|
|
3713
3722
|
*/
|
|
3714
|
-
declare class
|
|
3723
|
+
declare class LedgerSigner111<Transport extends Record<any, any> = any> implements SignerInterface {
|
|
3715
3724
|
readonly transporter: Transport;
|
|
3716
|
-
|
|
3725
|
+
protected _transporter: _Transport;
|
|
3717
3726
|
readonly accountID: number;
|
|
3718
3727
|
readonly eip2645applicationName: string;
|
|
3719
3728
|
readonly pathBuffer: Uint8Array;
|
|
3720
|
-
|
|
3729
|
+
protected appVersion: string;
|
|
3721
3730
|
protected pubKey: string;
|
|
3722
3731
|
protected fullPubKey: string;
|
|
3723
3732
|
/**
|
|
@@ -3725,24 +3734,37 @@ declare class LedgerSigner<Transport extends Record<any, any> = any> implements
|
|
|
3725
3734
|
* @param {Transport} transport 5 transports are available to handle USB, bluetooth, Node, Web, Mobile.
|
|
3726
3735
|
* See Guides for more details.
|
|
3727
3736
|
* @param {number} accountID ID of Ledger Nano (can handle 2**31 accounts).
|
|
3728
|
-
* @param {string} [eip2645application='LedgerW'] A wallet is defined by an ERC2645 derivation path (6 items)
|
|
3729
|
-
*
|
|
3737
|
+
* @param {string} [eip2645application='LedgerW'] A wallet is defined by an ERC2645 derivation path (6 items),
|
|
3738
|
+
* and one item is the `application` and can be customized.
|
|
3739
|
+
* Default value is `LedgerW`.
|
|
3740
|
+
* @param {LedgerPathCalculation} [pathFunction=getLedgerPathBuffer111]
|
|
3741
|
+
* defines the function that will calculate the path. By default `getLedgerPathBuffer111` is selected.
|
|
3730
3742
|
* @example
|
|
3731
3743
|
* ```typescript
|
|
3732
3744
|
* import TransportNodeHid from "@ledgerhq/hw-transport-node-hid";
|
|
3733
3745
|
* const myNodeTransport = await TransportNodeHid.create();
|
|
3734
|
-
* const myLedgerSigner = new
|
|
3746
|
+
* const myLedgerSigner = new LedgerSigner111(myNodeTransport, 0);
|
|
3735
3747
|
* ```
|
|
3736
3748
|
*/
|
|
3737
|
-
constructor(transport: Transport, accountID: number, eip2645application?: string);
|
|
3749
|
+
constructor(transport: Transport, accountID: number, eip2645application?: string, pathFunction?: LedgerPathCalculation);
|
|
3738
3750
|
/**
|
|
3739
3751
|
* provides the Starknet public key
|
|
3740
3752
|
* @returns an hex string : 64 characters are Point X coordinate.
|
|
3753
|
+
* @example
|
|
3754
|
+
* ```typescript
|
|
3755
|
+
* const result = await myLedgerSigner.getPubKey();
|
|
3756
|
+
* // result= "0x03681417ba3e1f050dd3ccdceb8d22b5e44fa70ee7844d472c6a768bded5174e"
|
|
3757
|
+
* ```
|
|
3741
3758
|
*/
|
|
3742
3759
|
getPubKey(): Promise<string>;
|
|
3743
3760
|
/**
|
|
3744
3761
|
* provides the full public key (with parity prefix)
|
|
3745
3762
|
* @returns an hex string : 2 first characters are the parity, the 64 following characters are Point X coordinate. 64 last characters are Point Y coordinate.
|
|
3763
|
+
* @example
|
|
3764
|
+
* ```typescript
|
|
3765
|
+
* const result = await myLedgerSigner.getFullPubKey();
|
|
3766
|
+
* // result= "0x0403681417ba3e1f050dd3ccdceb8d22b5e44fa70ee7844d472c6a768bded5174e03cbc86f805dcfcb0c1922dd4daf181afa289d86223a18bc856276615bcc7787"
|
|
3767
|
+
* ```
|
|
3746
3768
|
*/
|
|
3747
3769
|
getFullPubKey(): Promise<string>;
|
|
3748
3770
|
/**
|
|
@@ -3755,21 +3777,352 @@ declare class LedgerSigner<Transport extends Record<any, any> = any> implements
|
|
|
3755
3777
|
* ```
|
|
3756
3778
|
*/
|
|
3757
3779
|
getAppVersion(): Promise<string>;
|
|
3780
|
+
/**
|
|
3781
|
+
* Sign a TypedData message (SNIP-12) in a Ledger.
|
|
3782
|
+
* @param {typedDataToHash} typedDataToHash A TypedData message compatible with SNIP-12.
|
|
3783
|
+
* @param {string} accountAddress Signer account address (Hex or num string)
|
|
3784
|
+
* @returns {Signature} The signed message.
|
|
3785
|
+
* @example
|
|
3786
|
+
* ```typescript
|
|
3787
|
+
* const result = myLedgerSigner.signMessage(snip12Message, account0.address);
|
|
3788
|
+
* // result = Signature { r: 611475243393396148729326917410546146405234155928298353899191529090923298688n,
|
|
3789
|
+
* // s: 798839819213540985856952481651392652149797817551686626114697493101433761982n,
|
|
3790
|
+
* // recovery: 0}
|
|
3791
|
+
* ```
|
|
3792
|
+
*/
|
|
3758
3793
|
signMessage(typedDataToHash: TypedData, accountAddress: string): Promise<Signature>;
|
|
3794
|
+
/**
|
|
3795
|
+
* Sign in a Ledger a V1 or a V3 transaction. This is a blind sign on the Ledger screen.
|
|
3796
|
+
* @param {Call1[]} transactions An array of `Call` transactions (generated for example by `myContract.populate()`).
|
|
3797
|
+
* @param {InvocationsSignerDetails} transactionsDetail An object that includes all the necessary inputs to hash the transaction. Can be `V2InvocationsSignerDetails` or `V3InvocationsSignerDetails` type.
|
|
3798
|
+
* @returns {Signature} The signed transaction.
|
|
3799
|
+
* @example
|
|
3800
|
+
* ```typescript
|
|
3801
|
+
* const txDetailsV3: V3InvocationsSignerDetails = {
|
|
3802
|
+
* chainId: constants.StarknetChainId.SN_MAIN,
|
|
3803
|
+
* nonce: "28",
|
|
3804
|
+
* accountDeploymentData: [],
|
|
3805
|
+
* paymasterData: [],
|
|
3806
|
+
* cairoVersion: "1",
|
|
3807
|
+
* feeDataAvailabilityMode: "L1",
|
|
3808
|
+
* nonceDataAvailabilityMode: "L1",
|
|
3809
|
+
* resourceBounds: {
|
|
3810
|
+
* l1_gas: {
|
|
3811
|
+
* max_amount: "0x2a00",
|
|
3812
|
+
* max_price_per_unit: "0x5c00000"
|
|
3813
|
+
* },
|
|
3814
|
+
* l2_gas: {
|
|
3815
|
+
* max_amount: "0x00",
|
|
3816
|
+
* max_price_per_unit: "0x00"
|
|
3817
|
+
* },
|
|
3818
|
+
* },
|
|
3819
|
+
* tip: 0,
|
|
3820
|
+
* version: "0x3",
|
|
3821
|
+
* walletAddress: account0.address
|
|
3822
|
+
* }
|
|
3823
|
+
* const result = myLedgerSigner.signTransaction([call0, call1], txDetailsV3);
|
|
3824
|
+
* // result = Signature { r: 611475243393396148729326917410546146405234155928298353899191529090923298688n,
|
|
3825
|
+
* // s: 798839819213540985856952481651392652149797817551686626114697493101433761982n,
|
|
3826
|
+
* // recovery: 0}
|
|
3827
|
+
* ```
|
|
3828
|
+
*/
|
|
3759
3829
|
signTransaction(transactions: Call[], transactionsDetail: InvocationsSignerDetails): Promise<Signature>;
|
|
3830
|
+
/**
|
|
3831
|
+
* Sign in a Ledger the deployment of a new account. This is a blind sign on the Ledger screen.
|
|
3832
|
+
* @param {DeployAccountSignerDetails} details An object that includes all necessary data to calculate the Hash. It can be `V2DeployAccountSignerDetails` or `V3DeployAccountSignerDetails` types.
|
|
3833
|
+
* @returns {Signature} The deploy account signature.
|
|
3834
|
+
* @example
|
|
3835
|
+
* ```typescript
|
|
3836
|
+
* const result = myLedgerSigner.signDeployAccountTransaction(details);
|
|
3837
|
+
* // result = Signature { r: 611475243393396148729326917410546146405234155928298353899191529090923298688n,
|
|
3838
|
+
* // s: 798839819213540985856952481651392652149797817551686626114697493101433761982n,
|
|
3839
|
+
* // recovery: 0}
|
|
3840
|
+
* ```
|
|
3841
|
+
*/
|
|
3760
3842
|
signDeployAccountTransaction(details: DeployAccountSignerDetails): Promise<Signature>;
|
|
3843
|
+
/**
|
|
3844
|
+
* Sign in a Ledger the declaration of a new class. This is a blind sign on the Ledger screen.
|
|
3845
|
+
* @param {DeclareSignerDetails} details An object that includes all necessary data to calculate the Hash. It can be `V3DeclareSignerDetails` or `V2DeclareSignerDetails` types.
|
|
3846
|
+
* @returns {Signature} The declare Signature.
|
|
3847
|
+
* @example
|
|
3848
|
+
* ```typescript
|
|
3849
|
+
* const result = myLedgerSigner.signDeclareTransaction(details);
|
|
3850
|
+
* // result = Signature { r: 611475243393396148729326917410546146405234155928298353899191529090923298688n,
|
|
3851
|
+
* // s: 798839819213540985856952481651392652149797817551686626114697493101433761982n,
|
|
3852
|
+
* // recovery: 0}
|
|
3853
|
+
* ```
|
|
3854
|
+
*/
|
|
3761
3855
|
signDeclareTransaction(details: DeclareSignerDetails): Promise<Signature>;
|
|
3762
|
-
|
|
3763
|
-
|
|
3856
|
+
/**
|
|
3857
|
+
* Internal function to sign a hash in a Ledger Nano.
|
|
3858
|
+
* This is a blind sign in the Ledger ; no display of what you are signing.
|
|
3859
|
+
*/
|
|
3860
|
+
protected signRaw(msgHash: string): Promise<Signature>;
|
|
3861
|
+
/** internal function to get both the Starknet public key and the full public key */
|
|
3862
|
+
protected getPublicKeys(): Promise<void>;
|
|
3863
|
+
}
|
|
3864
|
+
/**
|
|
3865
|
+
* Format the Ledger wallet path to an Uint8Array
|
|
3866
|
+
* for a Ledger Starknet DAPP v1.1.1.
|
|
3867
|
+
*
|
|
3868
|
+
* EIP2645 path = 2645'/starknet/application/0/accountId/0
|
|
3869
|
+
* @param {number} accountId Id of account. < 2**31.
|
|
3870
|
+
* @param {string} [applicationName='LedgerW'] utf8 string of application name.
|
|
3871
|
+
* @returns an Uint8array of 24 bytes.
|
|
3872
|
+
* @example
|
|
3873
|
+
* ```typescript
|
|
3874
|
+
* const result = getLedgerPathBuffer111(0);
|
|
3875
|
+
* // result = Uint8Array(24) [
|
|
3876
|
+
* 128, 0, 10, 85, 71, 65, 233, 201,
|
|
3877
|
+
* 43, 206, 231, 219, 0, 0, 0, 0,
|
|
3878
|
+
* 0, 0, 0, 0, 0, 0, 0, 0
|
|
3879
|
+
* ]
|
|
3880
|
+
* ```
|
|
3881
|
+
*/
|
|
3882
|
+
declare function getLedgerPathBuffer111(accountId: number, applicationName?: string): Uint8Array;
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* Signer for accounts using a Ledger Nano S+/X signature (Starknet Ledger APP version 2.2.1).
|
|
3886
|
+
*
|
|
3887
|
+
* The Ledger has to be connected, unlocked and the Starknet APP has to be selected prior of use of this class.
|
|
3888
|
+
*/
|
|
3889
|
+
declare class LedgerSigner221<Transport extends Record<any, any> = any> extends LedgerSigner111 implements SignerInterface {
|
|
3890
|
+
/**
|
|
3891
|
+
* constructor of the LedgerSigner class.
|
|
3892
|
+
* @param {Transport} transport 5 transports are available to handle USB, bluetooth, Node, Web, Mobile.
|
|
3893
|
+
* See Guides for more details.
|
|
3894
|
+
* @param {number} accountID ID of Ledger Nano (can handle 2**31 accounts).
|
|
3895
|
+
* @param {string} [eip2645application='LedgerW'] A wallet is defined by an ERC2645 derivation path (6 items).
|
|
3896
|
+
* One item is called `application` and can be customized.
|
|
3897
|
+
* Default value is `LedgerW`.
|
|
3898
|
+
* @param {LedgerPathCalculation} [pathFunction=getLedgerPathBuffer221]
|
|
3899
|
+
* defines the function that will calculate the path. By default `getLedgerPathBuffer221` is selected.
|
|
3900
|
+
*
|
|
3901
|
+
* If you are using APP v2.2.1 with an account created with the v1.1.1, you need to use :
|
|
3902
|
+
* ```typescript
|
|
3903
|
+
* const myLedgerSigner = new LedgerSigner211(myNodeTransport, 0, undefined, getLedgerPathBuffer111);
|
|
3904
|
+
* ```
|
|
3905
|
+
* @example
|
|
3906
|
+
* ```typescript
|
|
3907
|
+
* import TransportNodeHid from "@ledgerhq/hw-transport-node-hid";
|
|
3908
|
+
* const myNodeTransport = await TransportNodeHid.create();
|
|
3909
|
+
* const myLedgerSigner = new LedgerSigner211(myNodeTransport, 0);
|
|
3910
|
+
* ```
|
|
3911
|
+
*/
|
|
3912
|
+
constructor(transport: Transport, accountID: number, eip2645application?: string, pathFunction?: LedgerPathCalculation);
|
|
3913
|
+
/**
|
|
3914
|
+
* Sign in a Ledger a V1 or a V3 transaction. The details are displayed on the Ledger screen.
|
|
3915
|
+
* @param {Call[]} transactions An array of `Call` transactions (generated for example by `myContract.populate()`).
|
|
3916
|
+
* @param {InvocationsSignerDetails} transactionsDetail An object that includes all the necessary inputs to hash the transaction. Can be `V2InvocationsSignerDetails` or `V3InvocationsSignerDetails` type.
|
|
3917
|
+
* @returns {Signature} The signed transaction.
|
|
3918
|
+
* @example
|
|
3919
|
+
* ```typescript
|
|
3920
|
+
* const txDetailsV3: V3InvocationsSignerDetails = {
|
|
3921
|
+
* chainId: constants.StarknetChainId.SN_MAIN,
|
|
3922
|
+
* nonce: "28",
|
|
3923
|
+
* accountDeploymentData: [],
|
|
3924
|
+
* paymasterData: [],
|
|
3925
|
+
* cairoVersion: "1",
|
|
3926
|
+
* feeDataAvailabilityMode: "L1",
|
|
3927
|
+
* nonceDataAvailabilityMode: "L1",
|
|
3928
|
+
* resourceBounds: {
|
|
3929
|
+
* l1_gas: {
|
|
3930
|
+
* max_amount: "0x2a00",
|
|
3931
|
+
* max_price_per_unit: "0x5c00000"
|
|
3932
|
+
* },
|
|
3933
|
+
* l2_gas: {
|
|
3934
|
+
* max_amount: "0x00",
|
|
3935
|
+
* max_price_per_unit: "0x00"
|
|
3936
|
+
* },
|
|
3937
|
+
* },
|
|
3938
|
+
* tip: 0,
|
|
3939
|
+
* version: "0x3",
|
|
3940
|
+
* walletAddress: account0.address
|
|
3941
|
+
* }
|
|
3942
|
+
* const result = myLedgerSigner.signTransaction([call0, call1], txDetailsV3);
|
|
3943
|
+
* // result = Signature { r: 611475243393396148729326917410546146405234155928298353899191529090923298688n,
|
|
3944
|
+
* // s: 798839819213540985856952481651392652149797817551686626114697493101433761982n,
|
|
3945
|
+
* // recovery: 0}
|
|
3946
|
+
* ```
|
|
3947
|
+
*/
|
|
3948
|
+
signTransaction(transactions: Call[], transactionsDetail: InvocationsSignerDetails): Promise<Signature>;
|
|
3949
|
+
/**
|
|
3950
|
+
* Sign in a Ledger the deployment of a new account. The details are displayed on the Ledger screen.
|
|
3951
|
+
* @param {DeployAccountSignerDetails} details An object that includes all necessary data to calculate the Hash. It can be `V2DeployAccountSignerDetails` or `V3DeployAccountSignerDetails` types.
|
|
3952
|
+
* @returns {Signature} The deploy account signature.
|
|
3953
|
+
* @example
|
|
3954
|
+
* ```typescript
|
|
3955
|
+
* const result = myLedgerSigner.signDeployAccountTransaction(details);
|
|
3956
|
+
* // result = Signature { r: 611475243393396148729326917410546146405234155928298353899191529090923298688n,
|
|
3957
|
+
* // s: 798839819213540985856952481651392652149797817551686626114697493101433761982n,
|
|
3958
|
+
* // recovery: 0}
|
|
3959
|
+
* ```
|
|
3960
|
+
*/
|
|
3961
|
+
signDeployAccountTransaction(details: DeployAccountSignerDetails): Promise<Signature>;
|
|
3962
|
+
/**
|
|
3963
|
+
* Internal function to convert a bigNumberish to an Uint8array of 256 bits
|
|
3964
|
+
* @param {BigNumberish} input input value
|
|
3965
|
+
* @returns {Uint8Array} a Uint8Array containing 32 bytes.
|
|
3966
|
+
*/
|
|
3967
|
+
protected convertBnToLedger(input: BigNumberish): Uint8Array;
|
|
3968
|
+
/**
|
|
3969
|
+
* Internal function to decode the response of the Ledger signature
|
|
3970
|
+
* @param {Uint8Array} respSign the Buffer response of the Ledger
|
|
3971
|
+
* @returns { hash: bigint; signature: Signature } transaction hash & signature
|
|
3972
|
+
*/
|
|
3973
|
+
protected decodeSignatureLedger(respSign: Uint8Array): {
|
|
3974
|
+
hash: bigint;
|
|
3975
|
+
signature: Signature;
|
|
3976
|
+
};
|
|
3977
|
+
/** Internal function to convert a Call to an array of Uint8Array.
|
|
3978
|
+
* @param {Call} call A Call to convert.
|
|
3979
|
+
* @return {Uint8Array[]} Call encoded in an array of Uint8Array (each containing 7 u256).
|
|
3980
|
+
*/
|
|
3981
|
+
protected encodeCall(call: Call): Uint8Array[];
|
|
3982
|
+
/**
|
|
3983
|
+
* Ask the Ledger Nano to display and sign a Starknet V1 transaction.
|
|
3984
|
+
* @param {V2InvocationsSignerDetails} txDetails All the details needed for a txV1.
|
|
3985
|
+
* @param {Call[]} calls array of Starknet invocations
|
|
3986
|
+
* @returns an object including the transaction Hash and the signature
|
|
3987
|
+
* @example
|
|
3988
|
+
* ```typescript
|
|
3989
|
+
* const calls: Call[] = [{contractAddress: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
|
|
3990
|
+
* entrypoint: "transfer",
|
|
3991
|
+
* calldata:["0x11f5fc2a92ac03434a7937fe982f5e5293b65ad438a989c5b78fb8f04a12016",
|
|
3992
|
+
* "0x9184e72a000", "0x0"]}];
|
|
3993
|
+
* const txDet: V2InvocationsSignerDetails = {
|
|
3994
|
+
* walletAddress: txDetails.accountAddress,
|
|
3995
|
+
* chainId: constants.StarknetChainId.SN_MAIN,
|
|
3996
|
+
* cairoVersion: "1", maxFee: txDetails.max_fee,
|
|
3997
|
+
* nonce: txDetails.nonce, version: "0x1"
|
|
3998
|
+
* };
|
|
3999
|
+
* const res = await myLedgerSigner.signTxV1(txDet, calls);
|
|
4000
|
+
* // res = {hash:
|
|
4001
|
+
* // signature:
|
|
4002
|
+
* // }
|
|
4003
|
+
* ```
|
|
4004
|
+
*/
|
|
4005
|
+
signTxV1(txDetails: V2InvocationsSignerDetails, calls: Call[]): Promise<{
|
|
4006
|
+
hash: bigint;
|
|
4007
|
+
signature: Signature;
|
|
4008
|
+
}>;
|
|
4009
|
+
/**
|
|
4010
|
+
* Ask to the Ledger Nano to display and sign a Starknet V3 transaction.
|
|
4011
|
+
* @param {V3InvocationsSignerDetails} txDetails All the details needed for a txV3.
|
|
4012
|
+
* @param {Call[]} calls array of Starknet invocations
|
|
4013
|
+
* @returns an object including the transaction Hash and the signature
|
|
4014
|
+
* @example
|
|
4015
|
+
* ```typescript
|
|
4016
|
+
* const calls: Call[] = [{contractAddress: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
|
|
4017
|
+
* entrypoint: "transfer",
|
|
4018
|
+
* calldata:["0x11f5fc2a92ac03434a7937fe982f5e5293b65ad438a989c5b78fb8f04a12016",
|
|
4019
|
+
* "0x9184e72a000", "0x0"]}];
|
|
4020
|
+
* const txDetailsV3: V3InvocationsSignerDetails = {
|
|
4021
|
+
* chainId: constants.StarknetChainId.SN_MAIN,
|
|
4022
|
+
* nonce: "28", accountDeploymentData: [],
|
|
4023
|
+
* paymasterData: [], cairoVersion: "1",
|
|
4024
|
+
* feeDataAvailabilityMode: "L1", nonceDataAvailabilityMode: "L1",
|
|
4025
|
+
* resourceBounds: {
|
|
4026
|
+
* l1_gas: { max_amount: "0x2a00", max_price_per_unit: "0x5c00000"
|
|
4027
|
+
* },
|
|
4028
|
+
* l2_gas: { max_amount: "0x00", max_price_per_unit: "0x00"},
|
|
4029
|
+
* }, tip: 0, version: "0x3", walletAddress: account0.address
|
|
4030
|
+
* };
|
|
4031
|
+
* const res = await myLedgerSigner.signTxV3(txDetailsV3, calls);
|
|
4032
|
+
* // res = {hash:
|
|
4033
|
+
* // signature:
|
|
4034
|
+
* // }
|
|
4035
|
+
* ```
|
|
4036
|
+
*/
|
|
4037
|
+
signTxV3(txDetails: V3InvocationsSignerDetails, calls: Call[]): Promise<{
|
|
4038
|
+
hash: bigint;
|
|
4039
|
+
signature: Signature;
|
|
4040
|
+
}>;
|
|
4041
|
+
/**
|
|
4042
|
+
* Ask the Ledger Nano to display and sign a Starknet V1 account deployment.
|
|
4043
|
+
* @param {V2DeployAccountSignerDetails} deployAccountDetail All the details needed for a V1 deploy account.
|
|
4044
|
+
* @returns an object including the transaction Hash and the signature
|
|
4045
|
+
* @example
|
|
4046
|
+
* ```typescript
|
|
4047
|
+
* const deployData: V2DeployAccountSignerDetails =
|
|
4048
|
+
* {
|
|
4049
|
+
* tip: 0, paymasterData: [], accountDeploymentData: [],
|
|
4050
|
+
* nonceDataAvailabilityMode: 'L1', feeDataAvailabilityMode: 'L1',
|
|
4051
|
+
* resourceBounds: {
|
|
4052
|
+
* l2_gas: { max_amount: '0x0', max_price_per_unit: '0x0' },
|
|
4053
|
+
* l1_gas: { max_amount: '0x0', max_price_per_unit: '0x0' }
|
|
4054
|
+
* },
|
|
4055
|
+
* classHash: '0x540d7f5ec7ecf317e68d48564934cb99259781b1ee3cedbbc37ec5337f8e688',
|
|
4056
|
+
* constructorCalldata: [
|
|
4057
|
+
* '89832696000889662999767022750851886674077821293893187900664573372145410755'
|
|
4058
|
+
* ],
|
|
4059
|
+
* contractAddress: '0x32c60fba64eb96831d064bbb2319375b7b7381543abe66da872e4344bcd72a0',
|
|
4060
|
+
* addressSalt: '0x0032d7efe2a9232f9b463e7206c68fdea4aeb13fec0cb308c6ba1d197d5922c3',
|
|
4061
|
+
* chainId: '0x534e5f5345504f4c4941', maxFee: 55050000000000n,
|
|
4062
|
+
* version: '0x1', nonce: 0n
|
|
4063
|
+
*}
|
|
4064
|
+
* const res = await myLedgerSigner.signDeployAccountV1(deployData);
|
|
4065
|
+
* // res = {hash:
|
|
4066
|
+
* // signature:
|
|
4067
|
+
* // }
|
|
4068
|
+
* ```
|
|
4069
|
+
*/
|
|
4070
|
+
signDeployAccountV1(deployAccountDetail: V2DeployAccountSignerDetails): Promise<{
|
|
4071
|
+
hash: bigint;
|
|
4072
|
+
signature: Signature;
|
|
4073
|
+
}>;
|
|
4074
|
+
/**
|
|
4075
|
+
*Ask the Ledger Nano to display and sign a Starknet V3 account deployment.
|
|
4076
|
+
* @param {V3DeployAccountSignerDetails} deployAccountDetail All the details needed for a V3 deploy account.
|
|
4077
|
+
* @returns an object including the transaction Hash and the signature
|
|
4078
|
+
* @example
|
|
4079
|
+
* ```typescript
|
|
4080
|
+
* const deployData: V3DeployAccountSignerDetails =
|
|
4081
|
+
* {
|
|
4082
|
+
* tip: 0, paymasterData: [], accountDeploymentData: [],
|
|
4083
|
+
* nonceDataAvailabilityMode: 'L1', feeDataAvailabilityMode: 'L1',
|
|
4084
|
+
* resourceBounds: {
|
|
4085
|
+
* l2_gas: { max_amount: '0x0', max_price_per_unit: '0x0' },
|
|
4086
|
+
* l1_gas: { max_amount: '0x226', max_price_per_unit: '0x22ecb25c00' }
|
|
4087
|
+
* },
|
|
4088
|
+
* classHash: '0x540d7f5ec7ecf317e68d48564934cb99259781b1ee3cedbbc37ec5337f8e688',
|
|
4089
|
+
* constructorCalldata: [
|
|
4090
|
+
* '3571125127744830445572285574469842579401255431821644822726857471463672199621'
|
|
4091
|
+
* ],
|
|
4092
|
+
* contractAddress: '0x4ca062add1cf12a107be1107af17981cf6e544a24d987693230ea481d3d5e34',
|
|
4093
|
+
* addressSalt: '0x07e52f68e3160e1ef698211cdf6d3792368fe347e7e2d4a8ace14d9b248f39c5',
|
|
4094
|
+
* chainId: '0x534e5f5345504f4c4941', maxFee: 0,
|
|
4095
|
+
* version: '0x3', nonce: 0n
|
|
4096
|
+
*}
|
|
4097
|
+
* const res = await myLedgerSigner.signDeployAccountV3(deployData);
|
|
4098
|
+
* // res = {hash:
|
|
4099
|
+
* // signature:
|
|
4100
|
+
* // }
|
|
4101
|
+
* ```
|
|
4102
|
+
*/
|
|
4103
|
+
signDeployAccountV3(deployAccountDetail: V3DeployAccountSignerDetails): Promise<{
|
|
4104
|
+
hash: bigint;
|
|
4105
|
+
signature: Signature;
|
|
4106
|
+
}>;
|
|
3764
4107
|
}
|
|
3765
4108
|
/**
|
|
3766
|
-
*
|
|
4109
|
+
* Format the Ledger wallet path to an Uint8Array.
|
|
4110
|
+
* for a Ledger Starknet DAPP v2.2.0
|
|
3767
4111
|
* EIP2645 path = 2645'/starknet'/application'/0'/accountId'/0
|
|
3768
4112
|
* @param {number} accountId Id of account. < 2**31.
|
|
3769
4113
|
* @param {string} [applicationName='LedgerW'] utf8 string of application name.
|
|
3770
4114
|
* @returns an Uint8array of 24 bytes.
|
|
4115
|
+
* @example
|
|
4116
|
+
* ```typescript
|
|
4117
|
+
* const result = getLedgerPathBuffer211(0);
|
|
4118
|
+
* // result = Uint8Array(24) [
|
|
4119
|
+
* 128, 0, 10, 85, 199, 65, 233, 201,
|
|
4120
|
+
* 171, 206, 231, 219, 128, 0, 0, 0,
|
|
4121
|
+
* 128, 0, 0, 0, 0, 0, 0, 0
|
|
4122
|
+
* ]
|
|
4123
|
+
* ```
|
|
3771
4124
|
*/
|
|
3772
|
-
declare function
|
|
4125
|
+
declare function getLedgerPathBuffer221(accountId: number, applicationName?: string): Uint8Array;
|
|
3773
4126
|
|
|
3774
4127
|
declare abstract class AccountInterface extends ProviderInterface {
|
|
3775
4128
|
abstract address: string;
|
|
@@ -4855,6 +5208,21 @@ declare namespace index$1 {
|
|
|
4855
5208
|
*/
|
|
4856
5209
|
|
|
4857
5210
|
declare function hashDAMode(nonceDAMode: BigNumberish, feeDAMode: BigNumberish): bigint;
|
|
5211
|
+
/**
|
|
5212
|
+
* Encode the L1&L2 gas limits of a V3 transaction
|
|
5213
|
+
* @param {ResourceBounds} bounds object including the limits for L1 & L2 gas
|
|
5214
|
+
* @returns {bigint} encoded data
|
|
5215
|
+
*/
|
|
5216
|
+
declare function encodeResourceBoundsL1(bounds: ResourceBounds$2): bigint;
|
|
5217
|
+
/**
|
|
5218
|
+
* Encode the L2 bound of a V3 transaction
|
|
5219
|
+
* @param {ResourceBounds} bounds
|
|
5220
|
+
* {l1_gas: {max_amount: u64, max_price_per_unit: u128},
|
|
5221
|
+
* l2_gas: {max_amount: u64, max_price_per_unit: u128}}
|
|
5222
|
+
}
|
|
5223
|
+
* @returns {bigint} encoded data
|
|
5224
|
+
*/
|
|
5225
|
+
declare function encodeResourceBoundsL2(bounds: ResourceBounds$2): bigint;
|
|
4858
5226
|
declare function hashFeeField(tip: BigNumberish, bounds: ResourceBounds$2): bigint;
|
|
4859
5227
|
declare function calculateTransactionHashCommon(txHashPrefix: TransactionHashPrefix, version: BigNumberish, senderAddress: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, tip: BigNumberish, paymasterData: BigNumberish[], nonceDataAvailabilityMode: EDAMode$1, feeDataAvailabilityMode: EDAMode$1, resourceBounds: ResourceBounds$2, additionalData?: BigNumberish[]): string;
|
|
4860
5228
|
/**
|
|
@@ -4877,10 +5245,12 @@ declare const v3_calculateDeclareTransactionHash: typeof calculateDeclareTransac
|
|
|
4877
5245
|
declare const v3_calculateDeployAccountTransactionHash: typeof calculateDeployAccountTransactionHash;
|
|
4878
5246
|
declare const v3_calculateInvokeTransactionHash: typeof calculateInvokeTransactionHash;
|
|
4879
5247
|
declare const v3_calculateTransactionHashCommon: typeof calculateTransactionHashCommon;
|
|
5248
|
+
declare const v3_encodeResourceBoundsL1: typeof encodeResourceBoundsL1;
|
|
5249
|
+
declare const v3_encodeResourceBoundsL2: typeof encodeResourceBoundsL2;
|
|
4880
5250
|
declare const v3_hashDAMode: typeof hashDAMode;
|
|
4881
5251
|
declare const v3_hashFeeField: typeof hashFeeField;
|
|
4882
5252
|
declare namespace v3 {
|
|
4883
|
-
export { v3_calculateDeclareTransactionHash as calculateDeclareTransactionHash, v3_calculateDeployAccountTransactionHash as calculateDeployAccountTransactionHash, v3_calculateInvokeTransactionHash as calculateInvokeTransactionHash, v3_calculateTransactionHashCommon as calculateTransactionHashCommon, v3_hashDAMode as hashDAMode, v3_hashFeeField as hashFeeField };
|
|
5253
|
+
export { v3_calculateDeclareTransactionHash as calculateDeclareTransactionHash, v3_calculateDeployAccountTransactionHash as calculateDeployAccountTransactionHash, v3_calculateInvokeTransactionHash as calculateInvokeTransactionHash, v3_calculateTransactionHashCommon as calculateTransactionHashCommon, v3_encodeResourceBoundsL1 as encodeResourceBoundsL1, v3_encodeResourceBoundsL2 as encodeResourceBoundsL2, v3_hashDAMode as hashDAMode, v3_hashFeeField as hashFeeField };
|
|
4884
5254
|
}
|
|
4885
5255
|
|
|
4886
5256
|
/**
|
|
@@ -6919,6 +7289,38 @@ declare namespace src5 {
|
|
|
6919
7289
|
export { src5_supportsInterface as supportsInterface };
|
|
6920
7290
|
}
|
|
6921
7291
|
|
|
7292
|
+
type BatchClientOptions = {
|
|
7293
|
+
nodeUrl: string;
|
|
7294
|
+
headers: object;
|
|
7295
|
+
interval: number;
|
|
7296
|
+
};
|
|
7297
|
+
declare class BatchClient {
|
|
7298
|
+
nodeUrl: string;
|
|
7299
|
+
headers: object;
|
|
7300
|
+
interval: number;
|
|
7301
|
+
requestId: number;
|
|
7302
|
+
private pendingRequests;
|
|
7303
|
+
private batchPromises;
|
|
7304
|
+
private delayTimer?;
|
|
7305
|
+
private delayPromise?;
|
|
7306
|
+
private delayPromiseResolve?;
|
|
7307
|
+
constructor(options: BatchClientOptions);
|
|
7308
|
+
private wait;
|
|
7309
|
+
private addPendingRequest;
|
|
7310
|
+
private sendBatch;
|
|
7311
|
+
/**
|
|
7312
|
+
* Automatically batches and fetches JSON-RPC calls in a single request.
|
|
7313
|
+
* @param method Method to call
|
|
7314
|
+
* @param params Method parameters
|
|
7315
|
+
* @param id JSON-RPC Request ID
|
|
7316
|
+
* @returns JSON-RPC Response
|
|
7317
|
+
*/
|
|
7318
|
+
fetch<T extends keyof Methods$1, TResponse extends ResponseBody & {
|
|
7319
|
+
result?: Methods$1[T]['result'];
|
|
7320
|
+
error?: Error$1;
|
|
7321
|
+
}>(method: T, params?: Methods$1[T]['params'], id?: string | number): Promise<TResponse>;
|
|
7322
|
+
}
|
|
7323
|
+
|
|
6922
7324
|
/**
|
|
6923
7325
|
* Singular class handling cairo u512 data type
|
|
6924
7326
|
*/
|
|
@@ -7624,4 +8026,4 @@ declare namespace connect {
|
|
|
7624
8026
|
/** @deprecated prefer the 'num' naming */
|
|
7625
8027
|
declare const number: typeof num;
|
|
7626
8028
|
|
|
7627
|
-
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, ETH_ADDRESS, EntryPointType, type EntryPointsByType, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type EventEntry, type FeeEstimate, type FunctionAbi, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, 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, NON_ZERO_PREFIX, 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 RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, ReceiptTx, type RejectedTransactionReceiptResponse, ResponseParser, type Result, type RevertedTransactionReceiptResponse, RpcChannel, RpcError, 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 UniversalSuggestedFee, type V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, type WeierstrassSignatureType, addAddressPadding, 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, 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 };
|
|
8029
|
+
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, BatchClient, type BatchClientOptions, 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, ETH_ADDRESS, EntryPointType, type EntryPointsByType, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type EventEntry, type FeeEstimate, type FunctionAbi, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeOptions, type InvokeTransactionReceiptResponse, type L1HandlerTransactionReceiptResponse, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type MessageToL1, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, 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 RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, ReceiptTx, type RejectedTransactionReceiptResponse, ResponseParser, type Result, type RevertedTransactionReceiptResponse, RpcChannel, RpcError, 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 UniversalSuggestedFee, type V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, type WeierstrassSignatureType, addAddressPadding, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, index$1 as hash, isSierra, 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 };
|