starknet 7.3.0 → 7.4.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 +14 -0
- package/dist/index.d.ts +204 -24
- package/dist/index.global.js +148 -37
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +148 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +148 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [7.4.0](https://github.com/starknet-io/starknet.js/compare/v7.3.0...v7.4.0) (2025-05-27)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- add max_fee warning to v3 tx, remove discontinued nethermind fre… ([#1402](https://github.com/starknet-io/starknet.js/issues/1402)) ([2c6f3e3](https://github.com/starknet-io/starknet.js/commit/2c6f3e3fd347636f2b5930b62d9e526c332d753e))
|
|
6
|
+
- isSuccess, isError, isReverted type predicate of ReceiptTx, GetTransactionReceiptResponse ([#1392](https://github.com/starknet-io/starknet.js/issues/1392)) ([8bc65a0](https://github.com/starknet-io/starknet.js/commit/8bc65a0b543d1673df29b8d7a1d50f49c5a930e1))
|
|
7
|
+
- legacy Program interface with missing properties ([#1378](https://github.com/starknet-io/starknet.js/issues/1378)) ([de3e336](https://github.com/starknet-io/starknet.js/commit/de3e336b299f49f9cad31aec1e08ded7850888e2))
|
|
8
|
+
- parseEvents should not modify ref event object ([#1399](https://github.com/starknet-io/starknet.js/issues/1399)) ([5091541](https://github.com/starknet-io/starknet.js/commit/509154148d52b4746258729c3bf2c9ef2d17c148))
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
- getL1MessageHash() ([#1401](https://github.com/starknet-io/starknet.js/issues/1401)) ([7ba427e](https://github.com/starknet-io/starknet.js/commit/7ba427ef6acf1038cddf173831d9c215e65dee30))
|
|
13
|
+
- snip29 safety checks ([#1403](https://github.com/starknet-io/starknet.js/issues/1403)) ([d348f74](https://github.com/starknet-io/starknet.js/commit/d348f740e905e7cdb3af5b4411a9e2f166f0ba42))
|
|
14
|
+
|
|
1
15
|
# [7.3.0](https://github.com/starknet-io/starknet.js/compare/v7.2.0...v7.3.0) (2025-05-20)
|
|
2
16
|
|
|
3
17
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as RPCSPEC07 from 'starknet-types-07';
|
|
|
2
2
|
import { STRUCT_EVENT, EVENT_FIELD, ENUM_EVENT, BlockHash, TransactionHash, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision, StarknetWindowObject, Address, Permission, WatchAssetParameters as WatchAssetParameters$1, AddStarknetChainParameters as AddStarknetChainParameters$1, ChainId, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, Signature as Signature$2, SpecVersion, AccountChangeEventHandler as AccountChangeEventHandler$1, NetworkChangeEventHandler as NetworkChangeEventHandler$1 } from 'starknet-types-07';
|
|
3
3
|
export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from 'starknet-types-07';
|
|
4
4
|
import * as RPCSPEC08 from 'starknet-types-08';
|
|
5
|
-
import { PAYMASTER_API, EDataAvailabilityMode as EDataAvailabilityMode$1, SUBSCRIPTION_BLOCK_TAG, BLOCK_WITH_TX_HASHES, PENDING_BLOCK_WITH_TX_HASHES, BlockWithTxHashes as BlockWithTxHashes$1, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, IsType, OutsideExecutionTypedData, ETransactionVersion as ETransactionVersion$1, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, SubscriptionReorgResponse, SubscriptionNewHeadsResponse, SubscriptionEventsResponse, SubscriptionTransactionsStatusResponse, SubscriptionPendingTransactionsResponse, SUBSCRIPTION_ID, WebSocketMethods, BLOCK_STATUS, BLOCK_HEADER, BLOCK_BODY_WITH_RECEIPTS, PENDING_BLOCK_HEADER, BlockTransactionsTraces, L1L2MessagesStatus, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, PRICE_UNIT as PRICE_UNIT$1, EmittedEvent as EmittedEvent$1, Methods as Methods$1 } from 'starknet-types-08';
|
|
5
|
+
import { PAYMASTER_API, EDataAvailabilityMode as EDataAvailabilityMode$1, SUBSCRIPTION_BLOCK_TAG, BLOCK_WITH_TX_HASHES, PENDING_BLOCK_WITH_TX_HASHES, BlockWithTxHashes as BlockWithTxHashes$1, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, IsType, OutsideExecutionTypedData, ETransactionVersion as ETransactionVersion$1, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, SubscriptionReorgResponse, SubscriptionNewHeadsResponse, SubscriptionEventsResponse, SubscriptionTransactionsStatusResponse, SubscriptionPendingTransactionsResponse, SUBSCRIPTION_ID, WebSocketMethods, BLOCK_STATUS, BLOCK_HEADER, BLOCK_BODY_WITH_RECEIPTS, PENDING_BLOCK_HEADER, BlockTransactionsTraces, L1L2MessagesStatus, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, PRICE_UNIT as PRICE_UNIT$1, OutsideCallV1, OutsideCallV2, EmittedEvent as EmittedEvent$1, Methods as Methods$1 } from 'starknet-types-08';
|
|
6
6
|
import * as weierstrass from '@noble/curves/abstract/weierstrass';
|
|
7
7
|
import { RecoveredSignatureType } from '@noble/curves/abstract/weierstrass';
|
|
8
8
|
import { Abi as Abi$1, TypedContract } from 'abi-wan-kanabi';
|
|
@@ -275,6 +275,7 @@ type LegacyCompiledContract = Omit<LegacyContractClass, 'program'> & {
|
|
|
275
275
|
/** SUBTYPES */
|
|
276
276
|
type Builtins = string[];
|
|
277
277
|
type CompressedProgram = string;
|
|
278
|
+
type Hint = Record<string, unknown>;
|
|
278
279
|
type EntryPointsByType = {
|
|
279
280
|
CONSTRUCTOR: ContractEntryPointFields[];
|
|
280
281
|
EXTERNAL: ContractEntryPointFields[];
|
|
@@ -285,9 +286,95 @@ type ContractEntryPointFields = {
|
|
|
285
286
|
offset: string | number;
|
|
286
287
|
builtins?: Builtins;
|
|
287
288
|
};
|
|
288
|
-
interface Program
|
|
289
|
+
interface Program {
|
|
289
290
|
builtins: string[];
|
|
290
291
|
data: string[];
|
|
292
|
+
hints: Record<string, Hint[]>;
|
|
293
|
+
prime: string;
|
|
294
|
+
attributes?: Array<{
|
|
295
|
+
accessible_scopes?: string[];
|
|
296
|
+
end_pc?: number;
|
|
297
|
+
flow_tracking_data?: {
|
|
298
|
+
ap_tracking?: {
|
|
299
|
+
group?: number;
|
|
300
|
+
offset?: number;
|
|
301
|
+
};
|
|
302
|
+
reference_ids?: Record<string, number>;
|
|
303
|
+
};
|
|
304
|
+
name?: string;
|
|
305
|
+
start_pc?: number;
|
|
306
|
+
value?: string | number;
|
|
307
|
+
}>;
|
|
308
|
+
compiler_version?: string;
|
|
309
|
+
main_scope?: string;
|
|
310
|
+
identifiers?: Record<string, {
|
|
311
|
+
destination: string;
|
|
312
|
+
type: 'alias';
|
|
313
|
+
} | {
|
|
314
|
+
decorators: string[];
|
|
315
|
+
pc: number;
|
|
316
|
+
type: 'function';
|
|
317
|
+
implicit_args?: {
|
|
318
|
+
full_name: string;
|
|
319
|
+
members: Record<string, {
|
|
320
|
+
cairo_type: string;
|
|
321
|
+
offset: number;
|
|
322
|
+
}>;
|
|
323
|
+
size: number;
|
|
324
|
+
type: 'struct';
|
|
325
|
+
};
|
|
326
|
+
explicit_args?: {
|
|
327
|
+
full_name: string;
|
|
328
|
+
members: Record<string, {
|
|
329
|
+
cairo_type: string;
|
|
330
|
+
offset: number;
|
|
331
|
+
}>;
|
|
332
|
+
size: number;
|
|
333
|
+
type: 'struct';
|
|
334
|
+
};
|
|
335
|
+
return_type?: {
|
|
336
|
+
cairo_type: string;
|
|
337
|
+
type: 'type_definition';
|
|
338
|
+
};
|
|
339
|
+
} | {
|
|
340
|
+
full_name: string;
|
|
341
|
+
members: Record<string, {
|
|
342
|
+
cairo_type: string;
|
|
343
|
+
offset: number;
|
|
344
|
+
}> | Record<string, never>;
|
|
345
|
+
size: number;
|
|
346
|
+
type: 'struct';
|
|
347
|
+
} | {
|
|
348
|
+
cairo_type: string;
|
|
349
|
+
type: 'type_definition';
|
|
350
|
+
} | {
|
|
351
|
+
type: 'namespace';
|
|
352
|
+
} | {
|
|
353
|
+
type: 'const';
|
|
354
|
+
value: string | number;
|
|
355
|
+
} | {
|
|
356
|
+
pc: number;
|
|
357
|
+
type: 'label';
|
|
358
|
+
} | {
|
|
359
|
+
cairo_type: string;
|
|
360
|
+
full_name: string;
|
|
361
|
+
references: Array<{
|
|
362
|
+
ap_tracking_data: {
|
|
363
|
+
group: number;
|
|
364
|
+
offset: number;
|
|
365
|
+
};
|
|
366
|
+
pc: number;
|
|
367
|
+
value: string;
|
|
368
|
+
}>;
|
|
369
|
+
type: 'reference';
|
|
370
|
+
}>;
|
|
371
|
+
reference_manager?: Record<string, {
|
|
372
|
+
references: unknown[];
|
|
373
|
+
}>;
|
|
374
|
+
debug_info?: Record<string, {
|
|
375
|
+
file_contents?: Record<string, string>;
|
|
376
|
+
instruction_locations?: Record<string, unknown[]>;
|
|
377
|
+
}>;
|
|
291
378
|
}
|
|
292
379
|
|
|
293
380
|
/** SYSTEM TYPES */
|
|
@@ -1261,12 +1348,13 @@ type TransactionReceiptCallbacksDefault = Partial<TransactionReceiptCallbacksDef
|
|
|
1261
1348
|
_: () => void;
|
|
1262
1349
|
};
|
|
1263
1350
|
type TransactionReceiptCallbacks = TransactionReceiptCallbacksDefined | TransactionReceiptCallbacksDefault;
|
|
1264
|
-
type
|
|
1265
|
-
|
|
1266
|
-
readonly
|
|
1351
|
+
type TransactionReceiptStatusFromMethod<T extends `is${Capitalize<TransactionReceiptStatus>}`> = T extends `is${infer R}` ? Uncapitalize<R> : never;
|
|
1352
|
+
type GetTransactionReceiptResponse<T extends TransactionReceiptStatus = TransactionReceiptStatus> = {
|
|
1353
|
+
readonly statusReceipt: T;
|
|
1354
|
+
readonly value: TransactionStatusReceiptSets[T];
|
|
1267
1355
|
match(callbacks: TransactionReceiptCallbacks): void;
|
|
1268
1356
|
} & {
|
|
1269
|
-
[key in `is${Capitalize<TransactionReceiptStatus>}`]: () =>
|
|
1357
|
+
[key in `is${Capitalize<TransactionReceiptStatus>}`]: () => this is GetTransactionReceiptResponse<TransactionReceiptStatusFromMethod<key>>;
|
|
1270
1358
|
};
|
|
1271
1359
|
|
|
1272
1360
|
type index$3_Abi = Abi;
|
|
@@ -1376,10 +1464,11 @@ type index$3_FeeMarginPercentage = FeeMarginPercentage;
|
|
|
1376
1464
|
type index$3_FeeMode = FeeMode;
|
|
1377
1465
|
type index$3_FunctionAbi = FunctionAbi;
|
|
1378
1466
|
type index$3_GetBlockResponse = GetBlockResponse;
|
|
1379
|
-
type index$3_GetTransactionReceiptResponse = GetTransactionReceiptResponse
|
|
1467
|
+
type index$3_GetTransactionReceiptResponse<T extends TransactionReceiptStatus = TransactionReceiptStatus> = GetTransactionReceiptResponse<T>;
|
|
1380
1468
|
type index$3_GetTransactionResponse = GetTransactionResponse;
|
|
1381
1469
|
type index$3_GetTxReceiptResponseWithoutHelper = GetTxReceiptResponseWithoutHelper;
|
|
1382
1470
|
type index$3_HexCalldata = HexCalldata;
|
|
1471
|
+
type index$3_Hint = Hint;
|
|
1383
1472
|
type index$3_InterfaceAbi = InterfaceAbi;
|
|
1384
1473
|
type index$3_Invocation = Invocation;
|
|
1385
1474
|
type index$3_Invocations = Invocations;
|
|
@@ -1519,7 +1608,7 @@ declare const index$3_isRPC08_FeeEstimate: typeof isRPC08_FeeEstimate;
|
|
|
1519
1608
|
declare const index$3_isRPC08_ResourceBounds: typeof isRPC08_ResourceBounds;
|
|
1520
1609
|
type index$3_waitForTransactionOptions = waitForTransactionOptions;
|
|
1521
1610
|
declare namespace index$3 {
|
|
1522
|
-
export { type index$3_Abi as Abi, type index$3_AbiEntry as AbiEntry, type index$3_AbiEnum as AbiEnum, type index$3_AbiEnums as AbiEnums, type index$3_AbiEvent as AbiEvent, type index$3_AbiEvents as AbiEvents, type index$3_AbiInterfaces as AbiInterfaces, type index$3_AbiStruct as AbiStruct, type index$3_AbiStructs as AbiStructs, type index$3_AccountInvocationItem as AccountInvocationItem, type index$3_AccountInvocations as AccountInvocations, type index$3_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$3_AllowArray as AllowArray, type index$3_Args as Args, type index$3_ArgsOrCalldata as ArgsOrCalldata, type index$3_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$3_ArraySignatureType as ArraySignatureType, type index$3_AsyncContractFunction as AsyncContractFunction, type index$3_BLOCK_HASH as BLOCK_HASH, type index$3_BLOCK_NUMBER as BLOCK_NUMBER, type index$3_BigNumberish as BigNumberish, type Block$1 as Block, type index$3_BlockIdentifier as BlockIdentifier, type index$3_BlockNumber as BlockNumber, type index$3_BlockStatus as BlockStatus, type index$3_BlockTag as BlockTag, type index$3_BlockWithTxHashes as BlockWithTxHashes, type index$3_Builtins as Builtins, type index$3_ByteArray as ByteArray, type index$3_ByteCode as ByteCode, type index$3_CairoAssembly as CairoAssembly, type index$3_CairoContract as CairoContract, type index$3_CairoEnum as CairoEnum, type index$3_CairoEvent as CairoEvent, type index$3_CairoEventDefinition as CairoEventDefinition, type index$3_CairoEventVariant as CairoEventVariant, type index$3_CairoVersion as CairoVersion, type index$3_Call as Call, type index$3_CallContractResponse as CallContractResponse, type index$3_CallDetails as CallDetails, type index$3_CallOptions as CallOptions, type index$3_Calldata as Calldata, type index$3_CompiledContract as CompiledContract, type index$3_CompiledSierra as CompiledSierra, type index$3_CompiledSierraCasm as CompiledSierraCasm, type index$3_CompilerVersion as CompilerVersion, type index$3_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$3_CompressedProgram as CompressedProgram, type index$3_ContractClass as ContractClass, type index$3_ContractClassIdentifier as ContractClassIdentifier, type index$3_ContractClassPayload as ContractClassPayload, type index$3_ContractClassResponse as ContractClassResponse, type index$3_ContractEntryPointFields as ContractEntryPointFields, type index$3_ContractFunction as ContractFunction, type index$3_ContractOptions as ContractOptions, type index$3_ContractVersion as ContractVersion, type index$3_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$3_DeclareContractPayload as DeclareContractPayload, type index$3_DeclareContractResponse as DeclareContractResponse, type index$3_DeclareContractTransaction as DeclareContractTransaction, type index$3_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$3_DeclareSignerDetails as DeclareSignerDetails, type index$3_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$3_DeclaredTransaction as DeclaredTransaction, type index$3_DeployAccountContractPayload as DeployAccountContractPayload, type index$3_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$3_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$3_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$3_DeployAndInvokeTransaction as DeployAndInvokeTransaction, type index$3_DeployContractResponse as DeployContractResponse, type index$3_DeployContractUDCResponse as DeployContractUDCResponse, type index$3_DeployTransaction as DeployTransaction, type index$3_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$3_DeployedAccountTransaction as DeployedAccountTransaction, type index$3_Details as Details, index$3_EDAMode as EDAMode, index$3_EDataAvailabilityMode as EDataAvailabilityMode, index$3_ETH_ADDRESS as ETH_ADDRESS, index$3_ETransactionExecutionStatus as ETransactionExecutionStatus, index$3_ETransactionStatus as ETransactionStatus, index$3_ETransactionVersion as ETransactionVersion, index$3_ETransactionVersion2 as ETransactionVersion2, index$3_ETransactionVersion3 as ETransactionVersion3, type index$3_EVENTS_CHUNK as EVENTS_CHUNK, type index$3_EmittedEvent as EmittedEvent, type index$3_EntryPointType as EntryPointType, type index$3_EntryPointsByType as EntryPointsByType, type index$3_EstimateFee as EstimateFee, type index$3_EstimateFeeAction as EstimateFeeAction, type index$3_EstimateFeeBulk as EstimateFeeBulk, type index$3_EstimateFeeDetails as EstimateFeeDetails, type index$3_EstimateFeeResponse as EstimateFeeResponse, type index$3_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type Event$1 as Event, type index$3_EventEntry as EventEntry, type index$3_EventFilter as EventFilter, type index$3_ExecutableDeployAndInvokeTransaction as ExecutableDeployAndInvokeTransaction, type index$3_ExecutableDeployTransaction as ExecutableDeployTransaction, type index$3_ExecutableInvokeTransaction as ExecutableInvokeTransaction, type index$3_ExecutableUserInvoke as ExecutableUserInvoke, type index$3_ExecutableUserTransaction as ExecutableUserTransaction, type index$3_ExecutionParameters as ExecutionParameters, type index$3_FEE_ESTIMATE as FEE_ESTIMATE, type index$3_FELT as FELT, type index$3_FeeEstimate as FeeEstimate, type index$3_FeeMarginPercentage as FeeMarginPercentage, type index$3_FeeMode as FeeMode, type index$3_FunctionAbi as FunctionAbi, type index$3_GetBlockResponse as GetBlockResponse, type index$3_GetTransactionReceiptResponse as GetTransactionReceiptResponse, type index$3_GetTransactionResponse as GetTransactionResponse, type index$3_GetTxReceiptResponseWithoutHelper as GetTxReceiptResponseWithoutHelper, type index$3_HexCalldata as HexCalldata, type index$3_InterfaceAbi as InterfaceAbi, type index$3_Invocation as Invocation, type index$3_Invocations as Invocations, type index$3_InvocationsDetails as InvocationsDetails, type index$3_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$3_InvocationsSignerDetails as InvocationsSignerDetails, type index$3_InvokeFunctionResponse as InvokeFunctionResponse, type index$3_InvokeOptions as InvokeOptions, type index$3_InvokeTransaction as InvokeTransaction, type index$3_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$3_InvokedTransaction as InvokedTransaction, type index$3_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$3_L1Message as L1Message, type index$3_L1_HANDLER_TXN as L1_HANDLER_TXN, type index$3_LedgerPathCalculation as LedgerPathCalculation, type index$3_LegacyCompiledContract as LegacyCompiledContract, type index$3_LegacyContractClass as LegacyContractClass, type index$3_LegacyEvent as LegacyEvent, type index$3_Literal as Literal, type index$3_Methods as Methods, type index$3_MultiDeployContractResponse as MultiDeployContractResponse, type index$3_MultiType as MultiType, index$3_NON_ZERO_PREFIX as NON_ZERO_PREFIX, type index$3_Nonce as Nonce, type index$3_OptionalPayload as OptionalPayload, type index$3_OutsideCall as OutsideCall, type index$3_OutsideExecution as OutsideExecution, type index$3_OutsideExecutionOptions as OutsideExecutionOptions, index$3_OutsideExecutionTypesV1 as OutsideExecutionTypesV1, index$3_OutsideExecutionTypesV2 as OutsideExecutionTypesV2, type index$3_OutsideExecutionVersion as OutsideExecutionVersion, type index$3_OutsideTransaction as OutsideTransaction, type index$3_PENDING_DECLARE_TXN_RECEIPT as PENDING_DECLARE_TXN_RECEIPT, type index$3_PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT as PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, type index$3_PENDING_INVOKE_TXN_RECEIPT as PENDING_INVOKE_TXN_RECEIPT, type index$3_PENDING_L1_HANDLER_TXN_RECEIPT as PENDING_L1_HANDLER_TXN_RECEIPT, type index$3_PENDING_STATE_UPDATE as PENDING_STATE_UPDATE, type index$3_PRICE_UNIT as PRICE_UNIT, type index$3_ParsedEvent as ParsedEvent, type index$3_ParsedEvents as ParsedEvents, type index$3_ParsedStruct as ParsedStruct, type index$3_PaymasterDetails as PaymasterDetails, type index$3_PaymasterFeeEstimate as PaymasterFeeEstimate, type index$3_PaymasterOptions as PaymasterOptions, type index$3_PaymasterRpcOptions as PaymasterRpcOptions, type index$3_PaymasterTimeBounds as PaymasterTimeBounds, type index$3_PendingBlock as PendingBlock, type index$3_PendingReceipt as PendingReceipt, type index$3_PendingStateUpdate as PendingStateUpdate, type index$3_PreparedDeployAndInvokeTransaction as PreparedDeployAndInvokeTransaction, type index$3_PreparedDeployTransaction as PreparedDeployTransaction, type index$3_PreparedInvokeTransaction as PreparedInvokeTransaction, type index$3_PreparedTransaction as PreparedTransaction, type index$3_Program as Program, type index$3_ProviderOptions as ProviderOptions, type index$3_PythonicHints as PythonicHints, type index$3_RESOURCE_PRICE as RESOURCE_PRICE, index$4 as RPC, type index$3_RPC_ERROR as RPC_ERROR, type index$3_RPC_ERROR_SET as RPC_ERROR_SET, type index$3_RawArgs as RawArgs, type index$3_RawArgsArray as RawArgsArray, type index$3_RawArgsObject as RawArgsObject, type index$3_RawCalldata as RawCalldata, type index$3_Receipt as Receipt, type index$3_RequiredKeysOf as RequiredKeysOf, type index$3_ResourceBounds as ResourceBounds, type index$3_ResourceBoundsOverhead as ResourceBoundsOverhead, type index$3_ResourceBoundsOverheadRPC07 as ResourceBoundsOverheadRPC07, type index$3_ResourceBoundsOverheadRPC08 as ResourceBoundsOverheadRPC08, type index$3_Result as Result, type index$3_RevertedTransactionReceiptResponse as RevertedTransactionReceiptResponse, type index$3_RpcProviderOptions as RpcProviderOptions, type index$3_SIMULATION_FLAG as SIMULATION_FLAG, type index$3_STATE_UPDATE as STATE_UPDATE, type index$3_SierraContractClass as SierraContractClass, type index$3_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$3_SierraEntryPointsByType as SierraEntryPointsByType, type index$3_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$3_Signature as Signature, type index$3_Simplify as Simplify, type index$3_SimulateTransaction as SimulateTransaction, type index$3_SimulateTransactionDetails as SimulateTransactionDetails, type index$3_SimulateTransactionResponse as SimulateTransactionResponse, type index$3_SimulatedTransaction as SimulatedTransaction, type index$3_SimulationFlags as SimulationFlags, type index$3_StarkProfile as StarkProfile, index$3_StarknetDomain as StarknetDomain, index$3_StarknetEnumType as StarknetEnumType, index$3_StarknetMerkleType as StarknetMerkleType, index$3_StarknetType as StarknetType, type index$3_StateUpdate as StateUpdate, type index$3_StateUpdateResponse as StateUpdateResponse, type index$3_Storage as Storage, type index$3_SubscriptionBlockIdentifier as SubscriptionBlockIdentifier, type index$3_SuccessfulTransactionReceiptResponse as SuccessfulTransactionReceiptResponse, type index$3_TRANSACTION_TRACE as TRANSACTION_TRACE, type index$3_TXN_EXECUTION_STATUS as TXN_EXECUTION_STATUS, type index$3_TXN_HASH as TXN_HASH, type index$3_TXN_STATUS as TXN_STATUS, type index$3_TokenData as TokenData, type index$3_TransactionExecutionStatus as TransactionExecutionStatus, type index$3_TransactionFinalityStatus as TransactionFinalityStatus, type index$3_TransactionReceipt as TransactionReceipt, type index$3_TransactionReceiptCallbacks as TransactionReceiptCallbacks, type index$3_TransactionReceiptCallbacksDefault as TransactionReceiptCallbacksDefault, type index$3_TransactionReceiptCallbacksDefined as TransactionReceiptCallbacksDefined, type index$3_TransactionReceiptStatus as TransactionReceiptStatus, type index$3_TransactionReceiptValue as TransactionReceiptValue, type index$3_TransactionStatus as TransactionStatus, type index$3_TransactionStatusReceiptSets as TransactionStatusReceiptSets, type index$3_TransactionType as TransactionType, type index$3_TransactionWithHash as TransactionWithHash, type index$3_Tupled as Tupled, index$3_TypedData as TypedData, index$3_TypedDataRevision as TypedDataRevision, type index$3_Uint as Uint, type index$3_Uint256 as Uint256, type index$3_Uint512 as Uint512, type index$3_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$3_UniversalDetails as UniversalDetails, type index$3_UniversalSuggestedFee as UniversalSuggestedFee, type index$3_UserInvoke as UserInvoke, type index$3_UserTransaction as UserTransaction, type index$3_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$3_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$3_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$3_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$3_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$3_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$3_V3TransactionDetails as V3TransactionDetails, type index$3_ValidateType as ValidateType, type index$3_WeierstrassSignatureType as WeierstrassSignatureType, type index$3_getContractVersionOptions as getContractVersionOptions, type index$3_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$3_getSimulateTransactionOptions as getSimulateTransactionOptions, index$3_isRPC08_FeeEstimate as isRPC08_FeeEstimate, index$3_isRPC08_ResourceBounds as isRPC08_ResourceBounds, type index$3_waitForTransactionOptions as waitForTransactionOptions };
|
|
1611
|
+
export { type index$3_Abi as Abi, type index$3_AbiEntry as AbiEntry, type index$3_AbiEnum as AbiEnum, type index$3_AbiEnums as AbiEnums, type index$3_AbiEvent as AbiEvent, type index$3_AbiEvents as AbiEvents, type index$3_AbiInterfaces as AbiInterfaces, type index$3_AbiStruct as AbiStruct, type index$3_AbiStructs as AbiStructs, type index$3_AccountInvocationItem as AccountInvocationItem, type index$3_AccountInvocations as AccountInvocations, type index$3_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$3_AllowArray as AllowArray, type index$3_Args as Args, type index$3_ArgsOrCalldata as ArgsOrCalldata, type index$3_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$3_ArraySignatureType as ArraySignatureType, type index$3_AsyncContractFunction as AsyncContractFunction, type index$3_BLOCK_HASH as BLOCK_HASH, type index$3_BLOCK_NUMBER as BLOCK_NUMBER, type index$3_BigNumberish as BigNumberish, type Block$1 as Block, type index$3_BlockIdentifier as BlockIdentifier, type index$3_BlockNumber as BlockNumber, type index$3_BlockStatus as BlockStatus, type index$3_BlockTag as BlockTag, type index$3_BlockWithTxHashes as BlockWithTxHashes, type index$3_Builtins as Builtins, type index$3_ByteArray as ByteArray, type index$3_ByteCode as ByteCode, type index$3_CairoAssembly as CairoAssembly, type index$3_CairoContract as CairoContract, type index$3_CairoEnum as CairoEnum, type index$3_CairoEvent as CairoEvent, type index$3_CairoEventDefinition as CairoEventDefinition, type index$3_CairoEventVariant as CairoEventVariant, type index$3_CairoVersion as CairoVersion, type index$3_Call as Call, type index$3_CallContractResponse as CallContractResponse, type index$3_CallDetails as CallDetails, type index$3_CallOptions as CallOptions, type index$3_Calldata as Calldata, type index$3_CompiledContract as CompiledContract, type index$3_CompiledSierra as CompiledSierra, type index$3_CompiledSierraCasm as CompiledSierraCasm, type index$3_CompilerVersion as CompilerVersion, type index$3_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$3_CompressedProgram as CompressedProgram, type index$3_ContractClass as ContractClass, type index$3_ContractClassIdentifier as ContractClassIdentifier, type index$3_ContractClassPayload as ContractClassPayload, type index$3_ContractClassResponse as ContractClassResponse, type index$3_ContractEntryPointFields as ContractEntryPointFields, type index$3_ContractFunction as ContractFunction, type index$3_ContractOptions as ContractOptions, type index$3_ContractVersion as ContractVersion, type index$3_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$3_DeclareContractPayload as DeclareContractPayload, type index$3_DeclareContractResponse as DeclareContractResponse, type index$3_DeclareContractTransaction as DeclareContractTransaction, type index$3_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$3_DeclareSignerDetails as DeclareSignerDetails, type index$3_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$3_DeclaredTransaction as DeclaredTransaction, type index$3_DeployAccountContractPayload as DeployAccountContractPayload, type index$3_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$3_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$3_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$3_DeployAndInvokeTransaction as DeployAndInvokeTransaction, type index$3_DeployContractResponse as DeployContractResponse, type index$3_DeployContractUDCResponse as DeployContractUDCResponse, type index$3_DeployTransaction as DeployTransaction, type index$3_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$3_DeployedAccountTransaction as DeployedAccountTransaction, type index$3_Details as Details, index$3_EDAMode as EDAMode, index$3_EDataAvailabilityMode as EDataAvailabilityMode, index$3_ETH_ADDRESS as ETH_ADDRESS, index$3_ETransactionExecutionStatus as ETransactionExecutionStatus, index$3_ETransactionStatus as ETransactionStatus, index$3_ETransactionVersion as ETransactionVersion, index$3_ETransactionVersion2 as ETransactionVersion2, index$3_ETransactionVersion3 as ETransactionVersion3, type index$3_EVENTS_CHUNK as EVENTS_CHUNK, type index$3_EmittedEvent as EmittedEvent, type index$3_EntryPointType as EntryPointType, type index$3_EntryPointsByType as EntryPointsByType, type index$3_EstimateFee as EstimateFee, type index$3_EstimateFeeAction as EstimateFeeAction, type index$3_EstimateFeeBulk as EstimateFeeBulk, type index$3_EstimateFeeDetails as EstimateFeeDetails, type index$3_EstimateFeeResponse as EstimateFeeResponse, type index$3_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type Event$1 as Event, type index$3_EventEntry as EventEntry, type index$3_EventFilter as EventFilter, type index$3_ExecutableDeployAndInvokeTransaction as ExecutableDeployAndInvokeTransaction, type index$3_ExecutableDeployTransaction as ExecutableDeployTransaction, type index$3_ExecutableInvokeTransaction as ExecutableInvokeTransaction, type index$3_ExecutableUserInvoke as ExecutableUserInvoke, type index$3_ExecutableUserTransaction as ExecutableUserTransaction, type index$3_ExecutionParameters as ExecutionParameters, type index$3_FEE_ESTIMATE as FEE_ESTIMATE, type index$3_FELT as FELT, type index$3_FeeEstimate as FeeEstimate, type index$3_FeeMarginPercentage as FeeMarginPercentage, type index$3_FeeMode as FeeMode, type index$3_FunctionAbi as FunctionAbi, type index$3_GetBlockResponse as GetBlockResponse, type index$3_GetTransactionReceiptResponse as GetTransactionReceiptResponse, type index$3_GetTransactionResponse as GetTransactionResponse, type index$3_GetTxReceiptResponseWithoutHelper as GetTxReceiptResponseWithoutHelper, type index$3_HexCalldata as HexCalldata, type index$3_Hint as Hint, type index$3_InterfaceAbi as InterfaceAbi, type index$3_Invocation as Invocation, type index$3_Invocations as Invocations, type index$3_InvocationsDetails as InvocationsDetails, type index$3_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$3_InvocationsSignerDetails as InvocationsSignerDetails, type index$3_InvokeFunctionResponse as InvokeFunctionResponse, type index$3_InvokeOptions as InvokeOptions, type index$3_InvokeTransaction as InvokeTransaction, type index$3_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$3_InvokedTransaction as InvokedTransaction, type index$3_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$3_L1Message as L1Message, type index$3_L1_HANDLER_TXN as L1_HANDLER_TXN, type index$3_LedgerPathCalculation as LedgerPathCalculation, type index$3_LegacyCompiledContract as LegacyCompiledContract, type index$3_LegacyContractClass as LegacyContractClass, type index$3_LegacyEvent as LegacyEvent, type index$3_Literal as Literal, type index$3_Methods as Methods, type index$3_MultiDeployContractResponse as MultiDeployContractResponse, type index$3_MultiType as MultiType, index$3_NON_ZERO_PREFIX as NON_ZERO_PREFIX, type index$3_Nonce as Nonce, type index$3_OptionalPayload as OptionalPayload, type index$3_OutsideCall as OutsideCall, type index$3_OutsideExecution as OutsideExecution, type index$3_OutsideExecutionOptions as OutsideExecutionOptions, index$3_OutsideExecutionTypesV1 as OutsideExecutionTypesV1, index$3_OutsideExecutionTypesV2 as OutsideExecutionTypesV2, type index$3_OutsideExecutionVersion as OutsideExecutionVersion, type index$3_OutsideTransaction as OutsideTransaction, type index$3_PENDING_DECLARE_TXN_RECEIPT as PENDING_DECLARE_TXN_RECEIPT, type index$3_PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT as PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, type index$3_PENDING_INVOKE_TXN_RECEIPT as PENDING_INVOKE_TXN_RECEIPT, type index$3_PENDING_L1_HANDLER_TXN_RECEIPT as PENDING_L1_HANDLER_TXN_RECEIPT, type index$3_PENDING_STATE_UPDATE as PENDING_STATE_UPDATE, type index$3_PRICE_UNIT as PRICE_UNIT, type index$3_ParsedEvent as ParsedEvent, type index$3_ParsedEvents as ParsedEvents, type index$3_ParsedStruct as ParsedStruct, type index$3_PaymasterDetails as PaymasterDetails, type index$3_PaymasterFeeEstimate as PaymasterFeeEstimate, type index$3_PaymasterOptions as PaymasterOptions, type index$3_PaymasterRpcOptions as PaymasterRpcOptions, type index$3_PaymasterTimeBounds as PaymasterTimeBounds, type index$3_PendingBlock as PendingBlock, type index$3_PendingReceipt as PendingReceipt, type index$3_PendingStateUpdate as PendingStateUpdate, type index$3_PreparedDeployAndInvokeTransaction as PreparedDeployAndInvokeTransaction, type index$3_PreparedDeployTransaction as PreparedDeployTransaction, type index$3_PreparedInvokeTransaction as PreparedInvokeTransaction, type index$3_PreparedTransaction as PreparedTransaction, type index$3_Program as Program, type index$3_ProviderOptions as ProviderOptions, type index$3_PythonicHints as PythonicHints, type index$3_RESOURCE_PRICE as RESOURCE_PRICE, index$4 as RPC, type index$3_RPC_ERROR as RPC_ERROR, type index$3_RPC_ERROR_SET as RPC_ERROR_SET, type index$3_RawArgs as RawArgs, type index$3_RawArgsArray as RawArgsArray, type index$3_RawArgsObject as RawArgsObject, type index$3_RawCalldata as RawCalldata, type index$3_Receipt as Receipt, type index$3_RequiredKeysOf as RequiredKeysOf, type index$3_ResourceBounds as ResourceBounds, type index$3_ResourceBoundsOverhead as ResourceBoundsOverhead, type index$3_ResourceBoundsOverheadRPC07 as ResourceBoundsOverheadRPC07, type index$3_ResourceBoundsOverheadRPC08 as ResourceBoundsOverheadRPC08, type index$3_Result as Result, type index$3_RevertedTransactionReceiptResponse as RevertedTransactionReceiptResponse, type index$3_RpcProviderOptions as RpcProviderOptions, type index$3_SIMULATION_FLAG as SIMULATION_FLAG, type index$3_STATE_UPDATE as STATE_UPDATE, type index$3_SierraContractClass as SierraContractClass, type index$3_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$3_SierraEntryPointsByType as SierraEntryPointsByType, type index$3_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$3_Signature as Signature, type index$3_Simplify as Simplify, type index$3_SimulateTransaction as SimulateTransaction, type index$3_SimulateTransactionDetails as SimulateTransactionDetails, type index$3_SimulateTransactionResponse as SimulateTransactionResponse, type index$3_SimulatedTransaction as SimulatedTransaction, type index$3_SimulationFlags as SimulationFlags, type index$3_StarkProfile as StarkProfile, index$3_StarknetDomain as StarknetDomain, index$3_StarknetEnumType as StarknetEnumType, index$3_StarknetMerkleType as StarknetMerkleType, index$3_StarknetType as StarknetType, type index$3_StateUpdate as StateUpdate, type index$3_StateUpdateResponse as StateUpdateResponse, type index$3_Storage as Storage, type index$3_SubscriptionBlockIdentifier as SubscriptionBlockIdentifier, type index$3_SuccessfulTransactionReceiptResponse as SuccessfulTransactionReceiptResponse, type index$3_TRANSACTION_TRACE as TRANSACTION_TRACE, type index$3_TXN_EXECUTION_STATUS as TXN_EXECUTION_STATUS, type index$3_TXN_HASH as TXN_HASH, type index$3_TXN_STATUS as TXN_STATUS, type index$3_TokenData as TokenData, type index$3_TransactionExecutionStatus as TransactionExecutionStatus, type index$3_TransactionFinalityStatus as TransactionFinalityStatus, type index$3_TransactionReceipt as TransactionReceipt, type index$3_TransactionReceiptCallbacks as TransactionReceiptCallbacks, type index$3_TransactionReceiptCallbacksDefault as TransactionReceiptCallbacksDefault, type index$3_TransactionReceiptCallbacksDefined as TransactionReceiptCallbacksDefined, type index$3_TransactionReceiptStatus as TransactionReceiptStatus, type index$3_TransactionReceiptValue as TransactionReceiptValue, type index$3_TransactionStatus as TransactionStatus, type index$3_TransactionStatusReceiptSets as TransactionStatusReceiptSets, type index$3_TransactionType as TransactionType, type index$3_TransactionWithHash as TransactionWithHash, type index$3_Tupled as Tupled, index$3_TypedData as TypedData, index$3_TypedDataRevision as TypedDataRevision, type index$3_Uint as Uint, type index$3_Uint256 as Uint256, type index$3_Uint512 as Uint512, type index$3_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$3_UniversalDetails as UniversalDetails, type index$3_UniversalSuggestedFee as UniversalSuggestedFee, type index$3_UserInvoke as UserInvoke, type index$3_UserTransaction as UserTransaction, type index$3_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$3_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$3_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$3_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$3_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$3_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$3_V3TransactionDetails as V3TransactionDetails, type index$3_ValidateType as ValidateType, type index$3_WeierstrassSignatureType as WeierstrassSignatureType, type index$3_getContractVersionOptions as getContractVersionOptions, type index$3_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$3_getSimulateTransactionOptions as getSimulateTransactionOptions, index$3_isRPC08_FeeEstimate as isRPC08_FeeEstimate, index$3_isRPC08_ResourceBounds as isRPC08_ResourceBounds, type index$3_waitForTransactionOptions as waitForTransactionOptions };
|
|
1523
1612
|
}
|
|
1524
1613
|
|
|
1525
1614
|
declare const LogLevelIndex: {
|
|
@@ -1862,8 +1951,8 @@ declare const DEFAULT_GLOBAL_CONFIG: {
|
|
|
1862
1951
|
websocket: any;
|
|
1863
1952
|
};
|
|
1864
1953
|
declare const RPC_DEFAULT_NODES: {
|
|
1865
|
-
readonly SN_MAIN: readonly ["https://starknet-mainnet.public.blastapi.io/rpc/"
|
|
1866
|
-
readonly SN_SEPOLIA: readonly ["https://starknet-sepolia.public.blastapi.io/rpc/"
|
|
1954
|
+
readonly SN_MAIN: readonly ["https://starknet-mainnet.public.blastapi.io/rpc/"];
|
|
1955
|
+
readonly SN_SEPOLIA: readonly ["https://starknet-sepolia.public.blastapi.io/rpc/"];
|
|
1867
1956
|
};
|
|
1868
1957
|
declare const PAYMASTER_RPC_NODES: {
|
|
1869
1958
|
readonly SN_MAIN: readonly ["https://starknet.paymaster.avnu.fi"];
|
|
@@ -1875,6 +1964,7 @@ declare const SYSTEM_MESSAGES: {
|
|
|
1875
1964
|
SWOldV3: string;
|
|
1876
1965
|
channelVersionMismatch: string;
|
|
1877
1966
|
unsupportedSpecVersion: string;
|
|
1967
|
+
maxFeeInV3: string;
|
|
1878
1968
|
};
|
|
1879
1969
|
|
|
1880
1970
|
declare const constants_ADDR_BOUND: typeof ADDR_BOUND;
|
|
@@ -3764,6 +3854,61 @@ declare abstract class AccountInterface extends ProviderInterface {
|
|
|
3764
3854
|
* @returns response from addTransaction
|
|
3765
3855
|
*/
|
|
3766
3856
|
abstract execute(transactions: AllowArray<Call>, transactionsDetail?: InvocationsDetails): Promise<InvokeFunctionResponse>;
|
|
3857
|
+
/**
|
|
3858
|
+
* Estimate Fee for executing a paymaster transaction on starknet
|
|
3859
|
+
*
|
|
3860
|
+
* @param calls the invocation object containing:
|
|
3861
|
+
* - contractAddress - the address of the contract
|
|
3862
|
+
* - entrypoint - the entrypoint of the contract
|
|
3863
|
+
* - calldata - (defaults to []) the calldata
|
|
3864
|
+
*
|
|
3865
|
+
* @param paymasterDetails the paymaster details containing:
|
|
3866
|
+
* - feeMode - the fee mode
|
|
3867
|
+
* - deploymentData - the deployment data (optional)
|
|
3868
|
+
* - timeBounds - the time bounds (optional)
|
|
3869
|
+
*
|
|
3870
|
+
* @returns response extracting fee from buildPaymasterTransaction
|
|
3871
|
+
*/
|
|
3872
|
+
abstract estimatePaymasterTransactionFee(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PaymasterFeeEstimate>;
|
|
3873
|
+
/**
|
|
3874
|
+
* Build a paymaster transaction
|
|
3875
|
+
*
|
|
3876
|
+
* @param calls the invocation object containing:
|
|
3877
|
+
* - contractAddress - the address of the contract
|
|
3878
|
+
* - entrypoint - the entrypoint of the contract
|
|
3879
|
+
* - calldata - (defaults to []) the calldata
|
|
3880
|
+
*
|
|
3881
|
+
* @param paymasterDetails the paymaster details containing:
|
|
3882
|
+
* - feeMode - the fee mode
|
|
3883
|
+
* - deploymentData - the deployment data (optional)
|
|
3884
|
+
* - timeBounds - the time bounds (optional)
|
|
3885
|
+
*
|
|
3886
|
+
* @returns the prepared transaction
|
|
3887
|
+
*/
|
|
3888
|
+
abstract buildPaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PreparedTransaction>;
|
|
3889
|
+
/**
|
|
3890
|
+
* Execute a paymaster transaction
|
|
3891
|
+
*
|
|
3892
|
+
* Assert that the gas token value is equal to the provided gas fees
|
|
3893
|
+
* Assert that the calls are strictly equal to the returned calls.
|
|
3894
|
+
* Assert that the gas token (in gas token) price is not too high, if provided.
|
|
3895
|
+
* Assert that typedData to signed is strictly equal to the provided typedData.
|
|
3896
|
+
*
|
|
3897
|
+
* @param calls the invocation object containing:
|
|
3898
|
+
* - contractAddress - the address of the contract
|
|
3899
|
+
* - entrypoint - the entrypoint of the contract
|
|
3900
|
+
* - calldata - (defaults to []) the calldata
|
|
3901
|
+
*
|
|
3902
|
+
* @param paymasterDetails the paymaster details containing:
|
|
3903
|
+
* - feeMode - the fee mode
|
|
3904
|
+
* - deploymentData - the deployment data (optional)
|
|
3905
|
+
* - timeBounds - the time bounds (optional)
|
|
3906
|
+
*
|
|
3907
|
+
* @param maxFeeInGasToken - the max fee acceptable to pay in gas token (optional)
|
|
3908
|
+
*
|
|
3909
|
+
* @returns the tarnsaction hash if successful, otherwise an error is thrown
|
|
3910
|
+
*/
|
|
3911
|
+
abstract executePaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<InvokeFunctionResponse>;
|
|
3767
3912
|
/**
|
|
3768
3913
|
* Declares a given compiled contract (json) to starknet
|
|
3769
3914
|
*
|
|
@@ -3963,9 +4108,10 @@ declare class Account extends RpcProvider implements AccountInterface {
|
|
|
3963
4108
|
estimateFeeBulk(invocations: Invocations, details?: UniversalDetails): Promise<EstimateFeeBulk>;
|
|
3964
4109
|
simulateTransaction(invocations: Invocations, details?: SimulateTransactionDetails): Promise<SimulateTransactionResponse>;
|
|
3965
4110
|
execute(transactions: AllowArray<Call>, transactionsDetail?: UniversalDetails): Promise<InvokeFunctionResponse>;
|
|
3966
|
-
|
|
4111
|
+
buildPaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PreparedTransaction>;
|
|
3967
4112
|
estimatePaymasterTransactionFee(calls: Call[], paymasterDetails: PaymasterDetails): Promise<PaymasterFeeEstimate>;
|
|
3968
|
-
|
|
4113
|
+
private preparePaymasterTransaction;
|
|
4114
|
+
executePaymasterTransaction(calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish): Promise<InvokeFunctionResponse>;
|
|
3969
4115
|
/**
|
|
3970
4116
|
* First check if contract is already declared, if not declare it
|
|
3971
4117
|
* If contract already declared returned transaction_hash is ''.
|
|
@@ -4093,9 +4239,7 @@ declare class WalletAccount extends Account implements AccountInterface {
|
|
|
4093
4239
|
/**
|
|
4094
4240
|
* ACCOUNT METHODS
|
|
4095
4241
|
*/
|
|
4096
|
-
execute(calls: AllowArray<Call
|
|
4097
|
-
transaction_hash: string;
|
|
4098
|
-
}>;
|
|
4242
|
+
execute(calls: AllowArray<Call>): Promise<RPCSPEC07.AddInvokeTransactionResult>;
|
|
4099
4243
|
declare(payload: DeclareContractPayload): Promise<RPCSPEC07.AddDeclareTransactionResult>;
|
|
4100
4244
|
deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[]): Promise<MultiDeployContractResponse>;
|
|
4101
4245
|
signMessage(typedData: TypedData): Promise<Signature$1>;
|
|
@@ -4388,7 +4532,7 @@ declare function getSelector(value: string | BigNumberish): string;
|
|
|
4388
4532
|
*/
|
|
4389
4533
|
declare function solidityUint256PackedKeccak256(params: BigNumberish[]): string;
|
|
4390
4534
|
/**
|
|
4391
|
-
* Calculate the
|
|
4535
|
+
* Calculate the message hash related by a message L1->L2
|
|
4392
4536
|
* @param {BigNumberish} l1FromAddress L1 account address that paid the message.
|
|
4393
4537
|
* @param {BigNumberish} l2ToAddress L2 contract address to execute.
|
|
4394
4538
|
* @param {string | BigNumberish} l2Selector can be a function name ("bridge_withdraw") or a number (BigNumberish).
|
|
@@ -4413,7 +4557,30 @@ declare function solidityUint256PackedKeccak256(params: BigNumberish[]): string;
|
|
|
4413
4557
|
* ```
|
|
4414
4558
|
*/
|
|
4415
4559
|
declare function getL2MessageHash(l1FromAddress: BigNumberish, l2ToAddress: BigNumberish, l2Selector: string | BigNumberish, l2Calldata: BigNumberish[], l1Nonce: BigNumberish): string;
|
|
4560
|
+
/**
|
|
4561
|
+
* Calculate the message hash related by a message L2->L1.
|
|
4562
|
+
* @param {BigNumberish} fromL2Address L2 contract address that send the message.
|
|
4563
|
+
* @param {BigNumberish} toL1Address Recipient L1 account address.
|
|
4564
|
+
* @param {BigNumberish[]} payload an array of BigNumberish of the raw parameters passed to the message.
|
|
4565
|
+
* @returns {string} hex-string of the message hash.
|
|
4566
|
+
* @example
|
|
4567
|
+
* ```typescript
|
|
4568
|
+
* const fromL2Address = '0x04c5772d1914fe6ce891b64eb35bf3522aeae1315647314aac58b01137607f3f';
|
|
4569
|
+
* const toL1Address = '0x8453fc6cd1bcfe8d4dfc069c400b433054d47bdc';
|
|
4570
|
+
* const payload = [
|
|
4571
|
+
* 0n,
|
|
4572
|
+
* 1270393329865452722422775477982592488490549769359n,
|
|
4573
|
+
* 4543560n,
|
|
4574
|
+
* 200000000000000,
|
|
4575
|
+
* 0n,
|
|
4576
|
+
* ];
|
|
4577
|
+
* const result = hash.getL1MessageHash(fromL2Address, toL1Address, payload);
|
|
4578
|
+
* // result = "0x2eace1d0ab5dbe354a93fb0a59c6b98f26e6a0fe7c33f87329f8fc9829058b8b"
|
|
4579
|
+
* ```
|
|
4580
|
+
*/
|
|
4581
|
+
declare function getL1MessageHash(fromL2Address: BigNumberish, toL1Address: BigNumberish, payload: BigNumberish[]): string;
|
|
4416
4582
|
|
|
4583
|
+
declare const selector_getL1MessageHash: typeof getL1MessageHash;
|
|
4417
4584
|
declare const selector_getL2MessageHash: typeof getL2MessageHash;
|
|
4418
4585
|
declare const selector_getSelector: typeof getSelector;
|
|
4419
4586
|
declare const selector_getSelectorFromName: typeof getSelectorFromName;
|
|
@@ -4421,7 +4588,7 @@ declare const selector_keccakBn: typeof keccakBn;
|
|
|
4421
4588
|
declare const selector_solidityUint256PackedKeccak256: typeof solidityUint256PackedKeccak256;
|
|
4422
4589
|
declare const selector_starknetKeccak: typeof starknetKeccak;
|
|
4423
4590
|
declare namespace selector {
|
|
4424
|
-
export { selector_getL2MessageHash as getL2MessageHash, selector_getSelector as getSelector, selector_getSelectorFromName as getSelectorFromName, selector_keccakBn as keccakBn, selector_solidityUint256PackedKeccak256 as solidityUint256PackedKeccak256, selector_starknetKeccak as starknetKeccak };
|
|
4591
|
+
export { selector_getL1MessageHash as getL1MessageHash, selector_getL2MessageHash as getL2MessageHash, selector_getSelector as getSelector, selector_getSelectorFromName as getSelectorFromName, selector_keccakBn as keccakBn, selector_solidityUint256PackedKeccak256 as solidityUint256PackedKeccak256, selector_starknetKeccak as starknetKeccak };
|
|
4425
4592
|
}
|
|
4426
4593
|
|
|
4427
4594
|
/**
|
|
@@ -4708,6 +4875,7 @@ declare const index$2_computePoseidonHash: typeof computePoseidonHash;
|
|
|
4708
4875
|
declare const index$2_computePoseidonHashOnElements: typeof computePoseidonHashOnElements;
|
|
4709
4876
|
declare const index$2_computeSierraContractClassHash: typeof computeSierraContractClassHash;
|
|
4710
4877
|
declare const index$2_formatSpaces: typeof formatSpaces;
|
|
4878
|
+
declare const index$2_getL1MessageHash: typeof getL1MessageHash;
|
|
4711
4879
|
declare const index$2_getL2MessageHash: typeof getL2MessageHash;
|
|
4712
4880
|
declare const index$2_getSelector: typeof getSelector;
|
|
4713
4881
|
declare const index$2_getSelectorFromName: typeof getSelectorFromName;
|
|
@@ -4717,7 +4885,7 @@ declare const index$2_poseidon: typeof poseidon;
|
|
|
4717
4885
|
declare const index$2_solidityUint256PackedKeccak256: typeof solidityUint256PackedKeccak256;
|
|
4718
4886
|
declare const index$2_starknetKeccak: typeof starknetKeccak;
|
|
4719
4887
|
declare namespace index$2 {
|
|
4720
|
-
export { index$2_calculateContractAddressFromHash as calculateContractAddressFromHash, calculateDeclareTransactionHash$1 as calculateDeclareTransactionHash, calculateDeployAccountTransactionHash$1 as calculateDeployAccountTransactionHash, calculateInvokeTransactionHash$1 as calculateInvokeTransactionHash, index$2_calculateL2MessageTxHash as calculateL2MessageTxHash, index$2_computeCompiledClassHash as computeCompiledClassHash, index$2_computeContractClassHash as computeContractClassHash, index$2_computeHashOnElements as computeHashOnElements, index$2_computeHintedClassHash as computeHintedClassHash, index$2_computeLegacyContractClassHash as computeLegacyContractClassHash, index$2_computePedersenHash as computePedersenHash, index$2_computePedersenHashOnElements as computePedersenHashOnElements, index$2_computePoseidonHash as computePoseidonHash, index$2_computePoseidonHashOnElements as computePoseidonHashOnElements, index$2_computeSierraContractClassHash as computeSierraContractClassHash, index$2_formatSpaces as formatSpaces, index$2_getL2MessageHash as getL2MessageHash, index$2_getSelector as getSelector, index$2_getSelectorFromName as getSelectorFromName, index$2_hashByteCodeSegments as hashByteCodeSegments, index$2_keccakBn as keccakBn, index$2_poseidon as poseidon, index$2_solidityUint256PackedKeccak256 as solidityUint256PackedKeccak256, index$2_starknetKeccak as starknetKeccak };
|
|
4888
|
+
export { index$2_calculateContractAddressFromHash as calculateContractAddressFromHash, calculateDeclareTransactionHash$1 as calculateDeclareTransactionHash, calculateDeployAccountTransactionHash$1 as calculateDeployAccountTransactionHash, calculateInvokeTransactionHash$1 as calculateInvokeTransactionHash, index$2_calculateL2MessageTxHash as calculateL2MessageTxHash, index$2_computeCompiledClassHash as computeCompiledClassHash, index$2_computeContractClassHash as computeContractClassHash, index$2_computeHashOnElements as computeHashOnElements, index$2_computeHintedClassHash as computeHintedClassHash, index$2_computeLegacyContractClassHash as computeLegacyContractClassHash, index$2_computePedersenHash as computePedersenHash, index$2_computePedersenHashOnElements as computePedersenHashOnElements, index$2_computePoseidonHash as computePoseidonHash, index$2_computePoseidonHashOnElements as computePoseidonHashOnElements, index$2_computeSierraContractClassHash as computeSierraContractClassHash, index$2_formatSpaces as formatSpaces, index$2_getL1MessageHash as getL1MessageHash, index$2_getL2MessageHash as getL2MessageHash, index$2_getSelector as getSelector, index$2_getSelectorFromName as getSelectorFromName, index$2_hashByteCodeSegments as hashByteCodeSegments, index$2_keccakBn as keccakBn, index$2_poseidon as poseidon, index$2_solidityUint256PackedKeccak256 as solidityUint256PackedKeccak256, index$2_starknetKeccak as starknetKeccak };
|
|
4721
4889
|
}
|
|
4722
4890
|
|
|
4723
4891
|
/**
|
|
@@ -6333,10 +6501,20 @@ declare namespace starknetId {
|
|
|
6333
6501
|
* @returns {string} default node url
|
|
6334
6502
|
*/
|
|
6335
6503
|
declare const getDefaultPaymasterNodeUrl: (networkName?: _NetworkName, mute?: boolean) => string;
|
|
6504
|
+
/**
|
|
6505
|
+
* Asserts that the given calls are strictly equal, otherwise throws an error.
|
|
6506
|
+
* @param {Call[]} originalCalls - The original calls.
|
|
6507
|
+
* @param {Call[]} unsafeCalls - The unsafe calls.
|
|
6508
|
+
* @throws {Error} Throws an error if the calls are not strictly equal.
|
|
6509
|
+
*/
|
|
6510
|
+
declare function assertCallsAreStrictlyEqual(originalCalls: Call[], unsafeCalls: (OutsideCallV1 | OutsideCallV2)[]): void;
|
|
6511
|
+
declare const assertPaymasterTransactionSafety: (preparedTransaction: PreparedTransaction, calls: Call[], paymasterDetails: PaymasterDetails, maxFeeInGasToken?: BigNumberish) => void;
|
|
6336
6512
|
|
|
6513
|
+
declare const paymaster_assertCallsAreStrictlyEqual: typeof assertCallsAreStrictlyEqual;
|
|
6514
|
+
declare const paymaster_assertPaymasterTransactionSafety: typeof assertPaymasterTransactionSafety;
|
|
6337
6515
|
declare const paymaster_getDefaultPaymasterNodeUrl: typeof getDefaultPaymasterNodeUrl;
|
|
6338
6516
|
declare namespace paymaster {
|
|
6339
|
-
export { paymaster_getDefaultPaymasterNodeUrl as getDefaultPaymasterNodeUrl };
|
|
6517
|
+
export { paymaster_assertCallsAreStrictlyEqual as assertCallsAreStrictlyEqual, paymaster_assertPaymasterTransactionSafety as assertPaymasterTransactionSafety, paymaster_getDefaultPaymasterNodeUrl as getDefaultPaymasterNodeUrl };
|
|
6340
6518
|
}
|
|
6341
6519
|
|
|
6342
6520
|
/**
|
|
@@ -6569,6 +6747,7 @@ declare namespace index {
|
|
|
6569
6747
|
export { index_getAbiEvents as getAbiEvents, index_isAbiEvent as isAbiEvent, index_parseEvents as parseEvents, index_parseUDCEvent as parseUDCEvent };
|
|
6570
6748
|
}
|
|
6571
6749
|
|
|
6750
|
+
declare function toOutsideCallV2(call: OutsideCallV1 | OutsideCallV2): OutsideCallV2;
|
|
6572
6751
|
/**
|
|
6573
6752
|
* Converts a Call object to an OutsideCall object that can be used for an Outside Execution.
|
|
6574
6753
|
* @param {Call} call transaction to proceed.
|
|
@@ -6680,8 +6859,9 @@ declare const outsideExecution_buildExecuteFromOutsideCall: typeof buildExecuteF
|
|
|
6680
6859
|
declare const outsideExecution_buildExecuteFromOutsideCallData: typeof buildExecuteFromOutsideCallData;
|
|
6681
6860
|
declare const outsideExecution_getOutsideCall: typeof getOutsideCall;
|
|
6682
6861
|
declare const outsideExecution_getTypedData: typeof getTypedData;
|
|
6862
|
+
declare const outsideExecution_toOutsideCallV2: typeof toOutsideCallV2;
|
|
6683
6863
|
declare namespace outsideExecution {
|
|
6684
|
-
export { outsideExecution_buildExecuteFromOutsideCall as buildExecuteFromOutsideCall, outsideExecution_buildExecuteFromOutsideCallData as buildExecuteFromOutsideCallData, outsideExecution_getOutsideCall as getOutsideCall, outsideExecution_getTypedData as getTypedData };
|
|
6864
|
+
export { outsideExecution_buildExecuteFromOutsideCall as buildExecuteFromOutsideCall, outsideExecution_buildExecuteFromOutsideCallData as buildExecuteFromOutsideCallData, outsideExecution_getOutsideCall as getOutsideCall, outsideExecution_getTypedData as getTypedData, outsideExecution_toOutsideCallV2 as toOutsideCallV2 };
|
|
6685
6865
|
}
|
|
6686
6866
|
|
|
6687
6867
|
/**
|
|
@@ -7626,9 +7806,9 @@ declare class ReceiptTx implements GetTransactionReceiptResponse {
|
|
|
7626
7806
|
readonly value: TransactionReceiptValue;
|
|
7627
7807
|
constructor(receipt: GetTxReceiptResponseWithoutHelper);
|
|
7628
7808
|
match(callbacks: TransactionReceiptCallbacks): void;
|
|
7629
|
-
isSuccess(): this is
|
|
7630
|
-
isReverted(): this is
|
|
7631
|
-
isError():
|
|
7809
|
+
isSuccess(): this is GetTransactionReceiptResponse<'success'>;
|
|
7810
|
+
isReverted(): this is GetTransactionReceiptResponse<'reverted'>;
|
|
7811
|
+
isError(): this is GetTransactionReceiptResponse<'error'>;
|
|
7632
7812
|
static isSuccess(transactionReceipt: GetTxReceiptResponseWithoutHelper): transactionReceipt is SuccessfulTransactionReceiptResponse;
|
|
7633
7813
|
static isReverted(transactionReceipt: GetTxReceiptResponseWithoutHelper): transactionReceipt is RevertedTransactionReceiptResponse;
|
|
7634
7814
|
}
|
|
@@ -7829,4 +8009,4 @@ declare class Logger {
|
|
|
7829
8009
|
*/
|
|
7830
8010
|
declare const logger: Logger;
|
|
7831
8011
|
|
|
7832
|
-
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 BLOCK_HASH, type BLOCK_NUMBER, 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, CairoFixedArray, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint256, CairoUint512, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, 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 DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, type Details, EDAMode, EDataAvailabilityMode, ETH_ADDRESS, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FeeEstimate, type FeeMarginPercentage, type FeeMode, 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 InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1Message, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PENDING_DECLARE_TXN_RECEIPT, type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, type PENDING_INVOKE_TXN_RECEIPT, type PENDING_L1_HANDLER_TXN_RECEIPT, type PENDING_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PendingBlock, type PendingReceipt, type PendingStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_7_1 as RPC07, rpc_0_8_1 as RPC08, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsOverhead, type ResourceBoundsOverheadRPC07, type ResourceBoundsOverheadRPC08, ResponseParser, type Result, type RevertedTransactionReceiptResponse, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionResponse, type SimulatedTransaction, type SimulationFlags, type StarkProfile, type StateUpdate, type StateUpdateResponse, type Storage, type SubscriptionBlockIdentifier, type SuccessfulTransactionReceiptResponse, type TRANSACTION_TRACE, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UniversalSuggestedFee, type UserInvoke, type UserTransaction, type V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WSSubscriptions, WalletAccount, WebSocketChannel, type WebSocketOptions, type WeierstrassSignatureType, addAddressPadding, byteArray, cairo, config, constants, contractClassResponseToLegacyCompiledContract, defaultPaymaster, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, index$2 as hash, isPendingBlock, isPendingStateUpdate, isPendingTransaction, isRPC08_FeeEstimate, isRPC08_ResourceBounds, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, toAnyPatchVersion, transaction, typedData, index$3 as types, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, type waitForTransactionOptions, connect as wallet };
|
|
8012
|
+
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 BLOCK_HASH, type BLOCK_NUMBER, 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, CairoFixedArray, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint256, CairoUint512, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, 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 DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, type Details, EDAMode, EDataAvailabilityMode, ETH_ADDRESS, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FeeEstimate, type FeeMarginPercentage, type FeeMode, type FunctionAbi, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeOptions, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1Message, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PENDING_DECLARE_TXN_RECEIPT, type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, type PENDING_INVOKE_TXN_RECEIPT, type PENDING_L1_HANDLER_TXN_RECEIPT, type PENDING_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PendingBlock, type PendingReceipt, type PendingStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_7_1 as RPC07, rpc_0_8_1 as RPC08, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsOverhead, type ResourceBoundsOverheadRPC07, type ResourceBoundsOverheadRPC08, ResponseParser, type Result, type RevertedTransactionReceiptResponse, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionResponse, type SimulatedTransaction, type SimulationFlags, type StarkProfile, type StateUpdate, type StateUpdateResponse, type Storage, type SubscriptionBlockIdentifier, type SuccessfulTransactionReceiptResponse, type TRANSACTION_TRACE, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UniversalSuggestedFee, type UserInvoke, type UserTransaction, type V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WSSubscriptions, WalletAccount, WebSocketChannel, type WebSocketOptions, type WeierstrassSignatureType, addAddressPadding, byteArray, cairo, config, constants, contractClassResponseToLegacyCompiledContract, defaultPaymaster, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, index$2 as hash, isPendingBlock, isPendingStateUpdate, isPendingTransaction, isRPC08_FeeEstimate, isRPC08_ResourceBounds, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, toAnyPatchVersion, transaction, typedData, index$3 as types, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, type waitForTransactionOptions, connect as wallet };
|