@apibara/starknet 2.1.0-beta.13 → 2.1.0-beta.15
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/dist/index.d.cts +43 -0
- package/dist/index.d.mts +43 -0
- package/dist/index.d.ts +43 -0
- package/package.json +2 -2
- package/src/block.ts +62 -0
- package/src/filter.ts +28 -0
package/dist/index.d.cts
CHANGED
|
@@ -1391,46 +1391,57 @@ declare const InvokeTransactionV0Filter: Schema.Struct<{
|
|
|
1391
1391
|
_tag: Schema.PropertySignature<":", "invokeV0", "$case", ":", "invokeV0", false, never>;
|
|
1392
1392
|
invokeV0: Schema.Struct<{}>;
|
|
1393
1393
|
}>;
|
|
1394
|
+
type InvokeTransactionV0Filter = typeof InvokeTransactionV0Filter.Type;
|
|
1394
1395
|
declare const InvokeTransactionV1Filter: Schema.Struct<{
|
|
1395
1396
|
_tag: Schema.PropertySignature<":", "invokeV1", "$case", ":", "invokeV1", false, never>;
|
|
1396
1397
|
invokeV1: Schema.Struct<{}>;
|
|
1397
1398
|
}>;
|
|
1399
|
+
type InvokeTransactionV1Filter = typeof InvokeTransactionV1Filter.Type;
|
|
1398
1400
|
declare const InvokeTransactionV3Filter: Schema.Struct<{
|
|
1399
1401
|
_tag: Schema.PropertySignature<":", "invokeV3", "$case", ":", "invokeV3", false, never>;
|
|
1400
1402
|
invokeV3: Schema.Struct<{}>;
|
|
1401
1403
|
}>;
|
|
1404
|
+
type InvokeTransactionV3Filter = typeof InvokeTransactionV3Filter.Type;
|
|
1402
1405
|
declare const DeployTransactionFilter: Schema.Struct<{
|
|
1403
1406
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
1404
1407
|
deploy: Schema.Struct<{}>;
|
|
1405
1408
|
}>;
|
|
1409
|
+
type DeployTransactionFilter = typeof DeployTransactionFilter.Type;
|
|
1406
1410
|
declare const DeclareV0TransactionFilter: Schema.Struct<{
|
|
1407
1411
|
_tag: Schema.PropertySignature<":", "declareV0", "$case", ":", "declareV0", false, never>;
|
|
1408
1412
|
declareV0: Schema.Struct<{}>;
|
|
1409
1413
|
}>;
|
|
1414
|
+
type DeclareV0TransactionFilter = typeof DeclareV0TransactionFilter.Type;
|
|
1410
1415
|
declare const DeclareV1TransactionFilter: Schema.Struct<{
|
|
1411
1416
|
_tag: Schema.PropertySignature<":", "declareV1", "$case", ":", "declareV1", false, never>;
|
|
1412
1417
|
declareV1: Schema.Struct<{}>;
|
|
1413
1418
|
}>;
|
|
1419
|
+
type DeclareV1TransactionFilter = typeof DeclareV1TransactionFilter.Type;
|
|
1414
1420
|
declare const DeclareV2TransactionFilter: Schema.Struct<{
|
|
1415
1421
|
_tag: Schema.PropertySignature<":", "declareV2", "$case", ":", "declareV2", false, never>;
|
|
1416
1422
|
declareV2: Schema.Struct<{}>;
|
|
1417
1423
|
}>;
|
|
1424
|
+
type DeclareV2TransactionFilter = typeof DeclareV2TransactionFilter.Type;
|
|
1418
1425
|
declare const DeclareV3TransactionFilter: Schema.Struct<{
|
|
1419
1426
|
_tag: Schema.PropertySignature<":", "declareV3", "$case", ":", "declareV3", false, never>;
|
|
1420
1427
|
declareV3: Schema.Struct<{}>;
|
|
1421
1428
|
}>;
|
|
1429
|
+
type DeclareV3TransactionFilter = typeof DeclareV3TransactionFilter.Type;
|
|
1422
1430
|
declare const L1HandlerTransactionFilter: Schema.Struct<{
|
|
1423
1431
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
1424
1432
|
l1Handler: Schema.Struct<{}>;
|
|
1425
1433
|
}>;
|
|
1434
|
+
type L1HandlerTransactionFilter = typeof L1HandlerTransactionFilter.Type;
|
|
1426
1435
|
declare const DeployAccountV1TransactionFilter: Schema.Struct<{
|
|
1427
1436
|
_tag: Schema.PropertySignature<":", "deployAccountV1", "$case", ":", "deployAccountV1", false, never>;
|
|
1428
1437
|
deployAccountV1: Schema.Struct<{}>;
|
|
1429
1438
|
}>;
|
|
1439
|
+
type DeployAccountV1TransactionFilter = typeof DeployAccountV1TransactionFilter.Type;
|
|
1430
1440
|
declare const DeployAccountV3TransactionFilter: Schema.Struct<{
|
|
1431
1441
|
_tag: Schema.PropertySignature<":", "deployAccountV3", "$case", ":", "deployAccountV3", false, never>;
|
|
1432
1442
|
deployAccountV3: Schema.Struct<{}>;
|
|
1433
1443
|
}>;
|
|
1444
|
+
type DeployAccountV3TransactionFilter = typeof DeployAccountV3TransactionFilter.Type;
|
|
1434
1445
|
/** Filter transactions.
|
|
1435
1446
|
*
|
|
1436
1447
|
* @prop transactionStatus Filter based on the transaction status.
|
|
@@ -1527,6 +1538,7 @@ declare const ContractChangeFilter: Schema.Struct<{
|
|
|
1527
1538
|
deployedContract: Schema.Struct<{}>;
|
|
1528
1539
|
}>]>>;
|
|
1529
1540
|
}>;
|
|
1541
|
+
type ContractChangeFilter = typeof ContractChangeFilter.Type;
|
|
1530
1542
|
/** Filter updates to nonces.
|
|
1531
1543
|
*
|
|
1532
1544
|
* @prop contractAddress Filter by contract address.
|
|
@@ -1540,6 +1552,7 @@ declare const NonceUpdateFilter: Schema.Struct<{
|
|
|
1540
1552
|
x3: typeof Schema.BigIntFromSelf;
|
|
1541
1553
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1542
1554
|
}>;
|
|
1555
|
+
type NonceUpdateFilter = typeof NonceUpdateFilter.Type;
|
|
1543
1556
|
declare const Filter: Schema.Struct<{
|
|
1544
1557
|
header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
|
|
1545
1558
|
transactions: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
@@ -2384,14 +2397,17 @@ declare const ResourcePrice: Schema.Struct<{
|
|
|
2384
2397
|
x3: typeof Schema.BigIntFromSelf;
|
|
2385
2398
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2386
2399
|
}>;
|
|
2400
|
+
type ResourcePrice = typeof ResourcePrice.Type;
|
|
2387
2401
|
/** How data is posted to L1. */
|
|
2388
2402
|
declare const L1DataAvailabilityMode: Schema.transform<Schema.Enums<typeof L1DataAvailabilityMode$1>, Schema.Literal<["blob", "calldata", "unknown"]>>;
|
|
2403
|
+
type L1DataAvailabilityMode = typeof L1DataAvailabilityMode.Type;
|
|
2389
2404
|
declare const TransactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
|
|
2390
2405
|
type TransactionStatus = typeof TransactionStatus.Type;
|
|
2391
2406
|
declare const U128: Schema.transform<Schema.Struct<{
|
|
2392
2407
|
x0: typeof Schema.BigIntFromSelf;
|
|
2393
2408
|
x1: typeof Schema.BigIntFromSelf;
|
|
2394
2409
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2410
|
+
type U128 = typeof U128.Type;
|
|
2395
2411
|
declare const ResourceBounds: Schema.Struct<{
|
|
2396
2412
|
maxAmount: typeof Schema.BigIntFromSelf;
|
|
2397
2413
|
maxPricePerUnit: Schema.transform<Schema.Struct<{
|
|
@@ -2399,6 +2415,7 @@ declare const ResourceBounds: Schema.Struct<{
|
|
|
2399
2415
|
x1: typeof Schema.BigIntFromSelf;
|
|
2400
2416
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2401
2417
|
}>;
|
|
2418
|
+
type ResourceBounds = typeof ResourceBounds.Type;
|
|
2402
2419
|
declare const ResourceBoundsMapping: Schema.Struct<{
|
|
2403
2420
|
l1Gas: Schema.Struct<{
|
|
2404
2421
|
maxAmount: typeof Schema.BigIntFromSelf;
|
|
@@ -2415,7 +2432,9 @@ declare const ResourceBoundsMapping: Schema.Struct<{
|
|
|
2415
2432
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2416
2433
|
}>;
|
|
2417
2434
|
}>;
|
|
2435
|
+
type ResourceBoundsMapping = typeof ResourceBoundsMapping.Type;
|
|
2418
2436
|
declare const DataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2437
|
+
type DataAvailabilityMode = typeof DataAvailabilityMode.Type;
|
|
2419
2438
|
/** Starknet block header.
|
|
2420
2439
|
*
|
|
2421
2440
|
* @prop blockHash The hash of the block.
|
|
@@ -2542,6 +2561,7 @@ declare const InvokeTransactionV0: Schema.Struct<{
|
|
|
2542
2561
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2543
2562
|
}>;
|
|
2544
2563
|
}>;
|
|
2564
|
+
type InvokeTransactionV0 = typeof InvokeTransactionV0.Type;
|
|
2545
2565
|
declare const InvokeTransactionV1: Schema.Struct<{
|
|
2546
2566
|
_tag: Schema.PropertySignature<":", "invokeV1", "$case", ":", "invokeV1", false, never>;
|
|
2547
2567
|
invokeV1: Schema.Struct<{
|
|
@@ -2577,6 +2597,7 @@ declare const InvokeTransactionV1: Schema.Struct<{
|
|
|
2577
2597
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2578
2598
|
}>;
|
|
2579
2599
|
}>;
|
|
2600
|
+
type InvokeTransactionV1 = typeof InvokeTransactionV1.Type;
|
|
2580
2601
|
declare const InvokeTransactionV3: Schema.Struct<{
|
|
2581
2602
|
_tag: Schema.PropertySignature<":", "invokeV3", "$case", ":", "invokeV3", false, never>;
|
|
2582
2603
|
invokeV3: Schema.Struct<{
|
|
@@ -2637,6 +2658,7 @@ declare const InvokeTransactionV3: Schema.Struct<{
|
|
|
2637
2658
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2638
2659
|
}>;
|
|
2639
2660
|
}>;
|
|
2661
|
+
type InvokeTransactionV3 = typeof InvokeTransactionV3.Type;
|
|
2640
2662
|
declare const L1HandlerTransaction: Schema.Struct<{
|
|
2641
2663
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
2642
2664
|
l1Handler: Schema.Struct<{
|
|
@@ -2661,6 +2683,7 @@ declare const L1HandlerTransaction: Schema.Struct<{
|
|
|
2661
2683
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2662
2684
|
}>;
|
|
2663
2685
|
}>;
|
|
2686
|
+
type L1HandlerTransaction = typeof L1HandlerTransaction.Type;
|
|
2664
2687
|
declare const DeployTransaction: Schema.Struct<{
|
|
2665
2688
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
2666
2689
|
deploy: Schema.Struct<{
|
|
@@ -2684,6 +2707,7 @@ declare const DeployTransaction: Schema.Struct<{
|
|
|
2684
2707
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2685
2708
|
}>;
|
|
2686
2709
|
}>;
|
|
2710
|
+
type DeployTransaction = typeof DeployTransaction.Type;
|
|
2687
2711
|
declare const DeclareTransactionV0: Schema.Struct<{
|
|
2688
2712
|
_tag: Schema.PropertySignature<":", "declareV0", "$case", ":", "declareV0", false, never>;
|
|
2689
2713
|
declareV0: Schema.Struct<{
|
|
@@ -2713,6 +2737,7 @@ declare const DeclareTransactionV0: Schema.Struct<{
|
|
|
2713
2737
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2714
2738
|
}>;
|
|
2715
2739
|
}>;
|
|
2740
|
+
type DeclareTransactionV0 = typeof DeclareTransactionV0.Type;
|
|
2716
2741
|
declare const DeclareTransactionV1: Schema.Struct<{
|
|
2717
2742
|
_tag: Schema.PropertySignature<":", "declareV1", "$case", ":", "declareV1", false, never>;
|
|
2718
2743
|
declareV1: Schema.Struct<{
|
|
@@ -2748,6 +2773,7 @@ declare const DeclareTransactionV1: Schema.Struct<{
|
|
|
2748
2773
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2749
2774
|
}>;
|
|
2750
2775
|
}>;
|
|
2776
|
+
type DeclareTransactionV1 = typeof DeclareTransactionV1.Type;
|
|
2751
2777
|
declare const DeclareTransactionV2: Schema.Struct<{
|
|
2752
2778
|
_tag: Schema.PropertySignature<":", "declareV2", "$case", ":", "declareV2", false, never>;
|
|
2753
2779
|
declareV2: Schema.Struct<{
|
|
@@ -2789,6 +2815,7 @@ declare const DeclareTransactionV2: Schema.Struct<{
|
|
|
2789
2815
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2790
2816
|
}>;
|
|
2791
2817
|
}>;
|
|
2818
|
+
type DeclareTransactionV2 = typeof DeclareTransactionV2.Type;
|
|
2792
2819
|
declare const DeclareTransactionV3: Schema.Struct<{
|
|
2793
2820
|
_tag: Schema.PropertySignature<":", "declareV3", "$case", ":", "declareV3", false, never>;
|
|
2794
2821
|
declareV3: Schema.Struct<{
|
|
@@ -2855,6 +2882,7 @@ declare const DeclareTransactionV3: Schema.Struct<{
|
|
|
2855
2882
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2856
2883
|
}>;
|
|
2857
2884
|
}>;
|
|
2885
|
+
type DeclareTransactionV3 = typeof DeclareTransactionV3.Type;
|
|
2858
2886
|
declare const DeployAccountTransactionV1: Schema.Struct<{
|
|
2859
2887
|
_tag: Schema.PropertySignature<":", "deployAccountV1", "$case", ":", "deployAccountV1", false, never>;
|
|
2860
2888
|
deployAccountV1: Schema.Struct<{
|
|
@@ -2896,6 +2924,7 @@ declare const DeployAccountTransactionV1: Schema.Struct<{
|
|
|
2896
2924
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2897
2925
|
}>;
|
|
2898
2926
|
}>;
|
|
2927
|
+
type DeployAccountTransactionV1 = typeof DeployAccountTransactionV1.Type;
|
|
2899
2928
|
declare const DeployAccountTransactionV3: Schema.Struct<{
|
|
2900
2929
|
_tag: Schema.PropertySignature<":", "deployAccountV3", "$case", ":", "deployAccountV3", false, never>;
|
|
2901
2930
|
deployAccountV3: Schema.Struct<{
|
|
@@ -2956,6 +2985,7 @@ declare const DeployAccountTransactionV3: Schema.Struct<{
|
|
|
2956
2985
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2957
2986
|
}>;
|
|
2958
2987
|
}>;
|
|
2988
|
+
type DeployAccountTransactionV3 = typeof DeployAccountTransactionV3.Type;
|
|
2959
2989
|
/** A transaction.
|
|
2960
2990
|
*
|
|
2961
2991
|
* @prop meta Transaction metadata.
|
|
@@ -3414,6 +3444,7 @@ declare const Transaction: Schema.Struct<{
|
|
|
3414
3444
|
}>;
|
|
3415
3445
|
type Transaction = typeof Transaction.Type;
|
|
3416
3446
|
declare const PriceUnit: Schema.transform<Schema.Enums<typeof PriceUnit$1>, Schema.Literal<["wei", "fri", "unknown"]>>;
|
|
3447
|
+
type PriceUnit = typeof PriceUnit.Type;
|
|
3417
3448
|
declare const FeePayment: Schema.Struct<{
|
|
3418
3449
|
amount: Schema.transform<Schema.Struct<{
|
|
3419
3450
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -3423,6 +3454,7 @@ declare const FeePayment: Schema.Struct<{
|
|
|
3423
3454
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3424
3455
|
unit: Schema.transform<Schema.Enums<typeof PriceUnit$1>, Schema.Literal<["wei", "fri", "unknown"]>>;
|
|
3425
3456
|
}>;
|
|
3457
|
+
type FeePayment = typeof FeePayment.Type;
|
|
3426
3458
|
declare const ComputationResources: Schema.Struct<{
|
|
3427
3459
|
steps: typeof Schema.BigIntFromSelf;
|
|
3428
3460
|
memoryHoles: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
@@ -3435,10 +3467,12 @@ declare const ComputationResources: Schema.Struct<{
|
|
|
3435
3467
|
keccakBuiltinApplications: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
3436
3468
|
segmentArenaBuiltin: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
3437
3469
|
}>;
|
|
3470
|
+
type ComputationResources = typeof ComputationResources.Type;
|
|
3438
3471
|
declare const DataAvailabilityResources: Schema.Struct<{
|
|
3439
3472
|
l1Gas: typeof Schema.BigIntFromSelf;
|
|
3440
3473
|
l1DataGas: typeof Schema.BigIntFromSelf;
|
|
3441
3474
|
}>;
|
|
3475
|
+
type DataAvailabilityResources = typeof DataAvailabilityResources.Type;
|
|
3442
3476
|
declare const ExecutionResources: Schema.Struct<{
|
|
3443
3477
|
computation: Schema.Struct<{
|
|
3444
3478
|
steps: typeof Schema.BigIntFromSelf;
|
|
@@ -3457,16 +3491,19 @@ declare const ExecutionResources: Schema.Struct<{
|
|
|
3457
3491
|
l1DataGas: typeof Schema.BigIntFromSelf;
|
|
3458
3492
|
}>;
|
|
3459
3493
|
}>;
|
|
3494
|
+
type ExecutionResources = typeof ExecutionResources.Type;
|
|
3460
3495
|
declare const ExecutionSucceeded: Schema.Struct<{
|
|
3461
3496
|
_tag: Schema.PropertySignature<":", "succeeded", "$case", ":", "succeeded", false, never>;
|
|
3462
3497
|
succeeded: Schema.Struct<{}>;
|
|
3463
3498
|
}>;
|
|
3499
|
+
type ExecutionSucceeded = typeof ExecutionSucceeded.Type;
|
|
3464
3500
|
declare const ExecutionReverted: Schema.Struct<{
|
|
3465
3501
|
_tag: Schema.PropertySignature<":", "reverted", "$case", ":", "reverted", false, never>;
|
|
3466
3502
|
reverted: Schema.Struct<{
|
|
3467
3503
|
reason: Schema.optional<typeof Schema.String>;
|
|
3468
3504
|
}>;
|
|
3469
3505
|
}>;
|
|
3506
|
+
type ExecutionReverted = typeof ExecutionReverted.Type;
|
|
3470
3507
|
/** Common fields for all transaction receipts. */
|
|
3471
3508
|
declare const TransactionReceiptMeta: Schema.Struct<{
|
|
3472
3509
|
transactionIndex: typeof Schema.Number;
|
|
@@ -3513,20 +3550,24 @@ declare const TransactionReceiptMeta: Schema.Struct<{
|
|
|
3513
3550
|
}>;
|
|
3514
3551
|
}>]>;
|
|
3515
3552
|
}>;
|
|
3553
|
+
type TransactionReceiptMeta = typeof TransactionReceiptMeta.Type;
|
|
3516
3554
|
declare const InvokeTransactionReceipt: Schema.Struct<{
|
|
3517
3555
|
_tag: Schema.PropertySignature<":", "invoke", "$case", ":", "invoke", false, never>;
|
|
3518
3556
|
invoke: Schema.Struct<{}>;
|
|
3519
3557
|
}>;
|
|
3558
|
+
type InvokeTransactionReceipt = typeof InvokeTransactionReceipt.Type;
|
|
3520
3559
|
declare const L1HandlerTransactionReceipt: Schema.Struct<{
|
|
3521
3560
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
3522
3561
|
l1Handler: Schema.Struct<{
|
|
3523
3562
|
messageHash: Schema.Schema<Uint8Array, Uint8Array, never>;
|
|
3524
3563
|
}>;
|
|
3525
3564
|
}>;
|
|
3565
|
+
type L1HandlerTransactionReceipt = typeof L1HandlerTransactionReceipt.Type;
|
|
3526
3566
|
declare const DeclareTransactionReceipt: Schema.Struct<{
|
|
3527
3567
|
_tag: Schema.PropertySignature<":", "declare", "$case", ":", "declare", false, never>;
|
|
3528
3568
|
declare: Schema.Struct<{}>;
|
|
3529
3569
|
}>;
|
|
3570
|
+
type DeclareTransactionReceipt = typeof DeclareTransactionReceipt.Type;
|
|
3530
3571
|
declare const DeployTransactionReceipt: Schema.Struct<{
|
|
3531
3572
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
3532
3573
|
deploy: Schema.Struct<{
|
|
@@ -3538,6 +3579,7 @@ declare const DeployTransactionReceipt: Schema.Struct<{
|
|
|
3538
3579
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3539
3580
|
}>;
|
|
3540
3581
|
}>;
|
|
3582
|
+
type DeployTransactionReceipt = typeof DeployTransactionReceipt.Type;
|
|
3541
3583
|
declare const DeployAccountTransactionReceipt: Schema.Struct<{
|
|
3542
3584
|
_tag: Schema.PropertySignature<":", "deployAccount", "$case", ":", "deployAccount", false, never>;
|
|
3543
3585
|
deployAccount: Schema.Struct<{
|
|
@@ -3549,6 +3591,7 @@ declare const DeployAccountTransactionReceipt: Schema.Struct<{
|
|
|
3549
3591
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3550
3592
|
}>;
|
|
3551
3593
|
}>;
|
|
3594
|
+
type DeployAccountTransactionReceipt = typeof DeployAccountTransactionReceipt.Type;
|
|
3552
3595
|
/** A transaction receipt.
|
|
3553
3596
|
*
|
|
3554
3597
|
* @prop meta Transaction receipt metadata.
|
package/dist/index.d.mts
CHANGED
|
@@ -1391,46 +1391,57 @@ declare const InvokeTransactionV0Filter: Schema.Struct<{
|
|
|
1391
1391
|
_tag: Schema.PropertySignature<":", "invokeV0", "$case", ":", "invokeV0", false, never>;
|
|
1392
1392
|
invokeV0: Schema.Struct<{}>;
|
|
1393
1393
|
}>;
|
|
1394
|
+
type InvokeTransactionV0Filter = typeof InvokeTransactionV0Filter.Type;
|
|
1394
1395
|
declare const InvokeTransactionV1Filter: Schema.Struct<{
|
|
1395
1396
|
_tag: Schema.PropertySignature<":", "invokeV1", "$case", ":", "invokeV1", false, never>;
|
|
1396
1397
|
invokeV1: Schema.Struct<{}>;
|
|
1397
1398
|
}>;
|
|
1399
|
+
type InvokeTransactionV1Filter = typeof InvokeTransactionV1Filter.Type;
|
|
1398
1400
|
declare const InvokeTransactionV3Filter: Schema.Struct<{
|
|
1399
1401
|
_tag: Schema.PropertySignature<":", "invokeV3", "$case", ":", "invokeV3", false, never>;
|
|
1400
1402
|
invokeV3: Schema.Struct<{}>;
|
|
1401
1403
|
}>;
|
|
1404
|
+
type InvokeTransactionV3Filter = typeof InvokeTransactionV3Filter.Type;
|
|
1402
1405
|
declare const DeployTransactionFilter: Schema.Struct<{
|
|
1403
1406
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
1404
1407
|
deploy: Schema.Struct<{}>;
|
|
1405
1408
|
}>;
|
|
1409
|
+
type DeployTransactionFilter = typeof DeployTransactionFilter.Type;
|
|
1406
1410
|
declare const DeclareV0TransactionFilter: Schema.Struct<{
|
|
1407
1411
|
_tag: Schema.PropertySignature<":", "declareV0", "$case", ":", "declareV0", false, never>;
|
|
1408
1412
|
declareV0: Schema.Struct<{}>;
|
|
1409
1413
|
}>;
|
|
1414
|
+
type DeclareV0TransactionFilter = typeof DeclareV0TransactionFilter.Type;
|
|
1410
1415
|
declare const DeclareV1TransactionFilter: Schema.Struct<{
|
|
1411
1416
|
_tag: Schema.PropertySignature<":", "declareV1", "$case", ":", "declareV1", false, never>;
|
|
1412
1417
|
declareV1: Schema.Struct<{}>;
|
|
1413
1418
|
}>;
|
|
1419
|
+
type DeclareV1TransactionFilter = typeof DeclareV1TransactionFilter.Type;
|
|
1414
1420
|
declare const DeclareV2TransactionFilter: Schema.Struct<{
|
|
1415
1421
|
_tag: Schema.PropertySignature<":", "declareV2", "$case", ":", "declareV2", false, never>;
|
|
1416
1422
|
declareV2: Schema.Struct<{}>;
|
|
1417
1423
|
}>;
|
|
1424
|
+
type DeclareV2TransactionFilter = typeof DeclareV2TransactionFilter.Type;
|
|
1418
1425
|
declare const DeclareV3TransactionFilter: Schema.Struct<{
|
|
1419
1426
|
_tag: Schema.PropertySignature<":", "declareV3", "$case", ":", "declareV3", false, never>;
|
|
1420
1427
|
declareV3: Schema.Struct<{}>;
|
|
1421
1428
|
}>;
|
|
1429
|
+
type DeclareV3TransactionFilter = typeof DeclareV3TransactionFilter.Type;
|
|
1422
1430
|
declare const L1HandlerTransactionFilter: Schema.Struct<{
|
|
1423
1431
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
1424
1432
|
l1Handler: Schema.Struct<{}>;
|
|
1425
1433
|
}>;
|
|
1434
|
+
type L1HandlerTransactionFilter = typeof L1HandlerTransactionFilter.Type;
|
|
1426
1435
|
declare const DeployAccountV1TransactionFilter: Schema.Struct<{
|
|
1427
1436
|
_tag: Schema.PropertySignature<":", "deployAccountV1", "$case", ":", "deployAccountV1", false, never>;
|
|
1428
1437
|
deployAccountV1: Schema.Struct<{}>;
|
|
1429
1438
|
}>;
|
|
1439
|
+
type DeployAccountV1TransactionFilter = typeof DeployAccountV1TransactionFilter.Type;
|
|
1430
1440
|
declare const DeployAccountV3TransactionFilter: Schema.Struct<{
|
|
1431
1441
|
_tag: Schema.PropertySignature<":", "deployAccountV3", "$case", ":", "deployAccountV3", false, never>;
|
|
1432
1442
|
deployAccountV3: Schema.Struct<{}>;
|
|
1433
1443
|
}>;
|
|
1444
|
+
type DeployAccountV3TransactionFilter = typeof DeployAccountV3TransactionFilter.Type;
|
|
1434
1445
|
/** Filter transactions.
|
|
1435
1446
|
*
|
|
1436
1447
|
* @prop transactionStatus Filter based on the transaction status.
|
|
@@ -1527,6 +1538,7 @@ declare const ContractChangeFilter: Schema.Struct<{
|
|
|
1527
1538
|
deployedContract: Schema.Struct<{}>;
|
|
1528
1539
|
}>]>>;
|
|
1529
1540
|
}>;
|
|
1541
|
+
type ContractChangeFilter = typeof ContractChangeFilter.Type;
|
|
1530
1542
|
/** Filter updates to nonces.
|
|
1531
1543
|
*
|
|
1532
1544
|
* @prop contractAddress Filter by contract address.
|
|
@@ -1540,6 +1552,7 @@ declare const NonceUpdateFilter: Schema.Struct<{
|
|
|
1540
1552
|
x3: typeof Schema.BigIntFromSelf;
|
|
1541
1553
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1542
1554
|
}>;
|
|
1555
|
+
type NonceUpdateFilter = typeof NonceUpdateFilter.Type;
|
|
1543
1556
|
declare const Filter: Schema.Struct<{
|
|
1544
1557
|
header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
|
|
1545
1558
|
transactions: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
@@ -2384,14 +2397,17 @@ declare const ResourcePrice: Schema.Struct<{
|
|
|
2384
2397
|
x3: typeof Schema.BigIntFromSelf;
|
|
2385
2398
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2386
2399
|
}>;
|
|
2400
|
+
type ResourcePrice = typeof ResourcePrice.Type;
|
|
2387
2401
|
/** How data is posted to L1. */
|
|
2388
2402
|
declare const L1DataAvailabilityMode: Schema.transform<Schema.Enums<typeof L1DataAvailabilityMode$1>, Schema.Literal<["blob", "calldata", "unknown"]>>;
|
|
2403
|
+
type L1DataAvailabilityMode = typeof L1DataAvailabilityMode.Type;
|
|
2389
2404
|
declare const TransactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
|
|
2390
2405
|
type TransactionStatus = typeof TransactionStatus.Type;
|
|
2391
2406
|
declare const U128: Schema.transform<Schema.Struct<{
|
|
2392
2407
|
x0: typeof Schema.BigIntFromSelf;
|
|
2393
2408
|
x1: typeof Schema.BigIntFromSelf;
|
|
2394
2409
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2410
|
+
type U128 = typeof U128.Type;
|
|
2395
2411
|
declare const ResourceBounds: Schema.Struct<{
|
|
2396
2412
|
maxAmount: typeof Schema.BigIntFromSelf;
|
|
2397
2413
|
maxPricePerUnit: Schema.transform<Schema.Struct<{
|
|
@@ -2399,6 +2415,7 @@ declare const ResourceBounds: Schema.Struct<{
|
|
|
2399
2415
|
x1: typeof Schema.BigIntFromSelf;
|
|
2400
2416
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2401
2417
|
}>;
|
|
2418
|
+
type ResourceBounds = typeof ResourceBounds.Type;
|
|
2402
2419
|
declare const ResourceBoundsMapping: Schema.Struct<{
|
|
2403
2420
|
l1Gas: Schema.Struct<{
|
|
2404
2421
|
maxAmount: typeof Schema.BigIntFromSelf;
|
|
@@ -2415,7 +2432,9 @@ declare const ResourceBoundsMapping: Schema.Struct<{
|
|
|
2415
2432
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2416
2433
|
}>;
|
|
2417
2434
|
}>;
|
|
2435
|
+
type ResourceBoundsMapping = typeof ResourceBoundsMapping.Type;
|
|
2418
2436
|
declare const DataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2437
|
+
type DataAvailabilityMode = typeof DataAvailabilityMode.Type;
|
|
2419
2438
|
/** Starknet block header.
|
|
2420
2439
|
*
|
|
2421
2440
|
* @prop blockHash The hash of the block.
|
|
@@ -2542,6 +2561,7 @@ declare const InvokeTransactionV0: Schema.Struct<{
|
|
|
2542
2561
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2543
2562
|
}>;
|
|
2544
2563
|
}>;
|
|
2564
|
+
type InvokeTransactionV0 = typeof InvokeTransactionV0.Type;
|
|
2545
2565
|
declare const InvokeTransactionV1: Schema.Struct<{
|
|
2546
2566
|
_tag: Schema.PropertySignature<":", "invokeV1", "$case", ":", "invokeV1", false, never>;
|
|
2547
2567
|
invokeV1: Schema.Struct<{
|
|
@@ -2577,6 +2597,7 @@ declare const InvokeTransactionV1: Schema.Struct<{
|
|
|
2577
2597
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2578
2598
|
}>;
|
|
2579
2599
|
}>;
|
|
2600
|
+
type InvokeTransactionV1 = typeof InvokeTransactionV1.Type;
|
|
2580
2601
|
declare const InvokeTransactionV3: Schema.Struct<{
|
|
2581
2602
|
_tag: Schema.PropertySignature<":", "invokeV3", "$case", ":", "invokeV3", false, never>;
|
|
2582
2603
|
invokeV3: Schema.Struct<{
|
|
@@ -2637,6 +2658,7 @@ declare const InvokeTransactionV3: Schema.Struct<{
|
|
|
2637
2658
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2638
2659
|
}>;
|
|
2639
2660
|
}>;
|
|
2661
|
+
type InvokeTransactionV3 = typeof InvokeTransactionV3.Type;
|
|
2640
2662
|
declare const L1HandlerTransaction: Schema.Struct<{
|
|
2641
2663
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
2642
2664
|
l1Handler: Schema.Struct<{
|
|
@@ -2661,6 +2683,7 @@ declare const L1HandlerTransaction: Schema.Struct<{
|
|
|
2661
2683
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2662
2684
|
}>;
|
|
2663
2685
|
}>;
|
|
2686
|
+
type L1HandlerTransaction = typeof L1HandlerTransaction.Type;
|
|
2664
2687
|
declare const DeployTransaction: Schema.Struct<{
|
|
2665
2688
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
2666
2689
|
deploy: Schema.Struct<{
|
|
@@ -2684,6 +2707,7 @@ declare const DeployTransaction: Schema.Struct<{
|
|
|
2684
2707
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2685
2708
|
}>;
|
|
2686
2709
|
}>;
|
|
2710
|
+
type DeployTransaction = typeof DeployTransaction.Type;
|
|
2687
2711
|
declare const DeclareTransactionV0: Schema.Struct<{
|
|
2688
2712
|
_tag: Schema.PropertySignature<":", "declareV0", "$case", ":", "declareV0", false, never>;
|
|
2689
2713
|
declareV0: Schema.Struct<{
|
|
@@ -2713,6 +2737,7 @@ declare const DeclareTransactionV0: Schema.Struct<{
|
|
|
2713
2737
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2714
2738
|
}>;
|
|
2715
2739
|
}>;
|
|
2740
|
+
type DeclareTransactionV0 = typeof DeclareTransactionV0.Type;
|
|
2716
2741
|
declare const DeclareTransactionV1: Schema.Struct<{
|
|
2717
2742
|
_tag: Schema.PropertySignature<":", "declareV1", "$case", ":", "declareV1", false, never>;
|
|
2718
2743
|
declareV1: Schema.Struct<{
|
|
@@ -2748,6 +2773,7 @@ declare const DeclareTransactionV1: Schema.Struct<{
|
|
|
2748
2773
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2749
2774
|
}>;
|
|
2750
2775
|
}>;
|
|
2776
|
+
type DeclareTransactionV1 = typeof DeclareTransactionV1.Type;
|
|
2751
2777
|
declare const DeclareTransactionV2: Schema.Struct<{
|
|
2752
2778
|
_tag: Schema.PropertySignature<":", "declareV2", "$case", ":", "declareV2", false, never>;
|
|
2753
2779
|
declareV2: Schema.Struct<{
|
|
@@ -2789,6 +2815,7 @@ declare const DeclareTransactionV2: Schema.Struct<{
|
|
|
2789
2815
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2790
2816
|
}>;
|
|
2791
2817
|
}>;
|
|
2818
|
+
type DeclareTransactionV2 = typeof DeclareTransactionV2.Type;
|
|
2792
2819
|
declare const DeclareTransactionV3: Schema.Struct<{
|
|
2793
2820
|
_tag: Schema.PropertySignature<":", "declareV3", "$case", ":", "declareV3", false, never>;
|
|
2794
2821
|
declareV3: Schema.Struct<{
|
|
@@ -2855,6 +2882,7 @@ declare const DeclareTransactionV3: Schema.Struct<{
|
|
|
2855
2882
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2856
2883
|
}>;
|
|
2857
2884
|
}>;
|
|
2885
|
+
type DeclareTransactionV3 = typeof DeclareTransactionV3.Type;
|
|
2858
2886
|
declare const DeployAccountTransactionV1: Schema.Struct<{
|
|
2859
2887
|
_tag: Schema.PropertySignature<":", "deployAccountV1", "$case", ":", "deployAccountV1", false, never>;
|
|
2860
2888
|
deployAccountV1: Schema.Struct<{
|
|
@@ -2896,6 +2924,7 @@ declare const DeployAccountTransactionV1: Schema.Struct<{
|
|
|
2896
2924
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2897
2925
|
}>;
|
|
2898
2926
|
}>;
|
|
2927
|
+
type DeployAccountTransactionV1 = typeof DeployAccountTransactionV1.Type;
|
|
2899
2928
|
declare const DeployAccountTransactionV3: Schema.Struct<{
|
|
2900
2929
|
_tag: Schema.PropertySignature<":", "deployAccountV3", "$case", ":", "deployAccountV3", false, never>;
|
|
2901
2930
|
deployAccountV3: Schema.Struct<{
|
|
@@ -2956,6 +2985,7 @@ declare const DeployAccountTransactionV3: Schema.Struct<{
|
|
|
2956
2985
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2957
2986
|
}>;
|
|
2958
2987
|
}>;
|
|
2988
|
+
type DeployAccountTransactionV3 = typeof DeployAccountTransactionV3.Type;
|
|
2959
2989
|
/** A transaction.
|
|
2960
2990
|
*
|
|
2961
2991
|
* @prop meta Transaction metadata.
|
|
@@ -3414,6 +3444,7 @@ declare const Transaction: Schema.Struct<{
|
|
|
3414
3444
|
}>;
|
|
3415
3445
|
type Transaction = typeof Transaction.Type;
|
|
3416
3446
|
declare const PriceUnit: Schema.transform<Schema.Enums<typeof PriceUnit$1>, Schema.Literal<["wei", "fri", "unknown"]>>;
|
|
3447
|
+
type PriceUnit = typeof PriceUnit.Type;
|
|
3417
3448
|
declare const FeePayment: Schema.Struct<{
|
|
3418
3449
|
amount: Schema.transform<Schema.Struct<{
|
|
3419
3450
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -3423,6 +3454,7 @@ declare const FeePayment: Schema.Struct<{
|
|
|
3423
3454
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3424
3455
|
unit: Schema.transform<Schema.Enums<typeof PriceUnit$1>, Schema.Literal<["wei", "fri", "unknown"]>>;
|
|
3425
3456
|
}>;
|
|
3457
|
+
type FeePayment = typeof FeePayment.Type;
|
|
3426
3458
|
declare const ComputationResources: Schema.Struct<{
|
|
3427
3459
|
steps: typeof Schema.BigIntFromSelf;
|
|
3428
3460
|
memoryHoles: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
@@ -3435,10 +3467,12 @@ declare const ComputationResources: Schema.Struct<{
|
|
|
3435
3467
|
keccakBuiltinApplications: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
3436
3468
|
segmentArenaBuiltin: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
3437
3469
|
}>;
|
|
3470
|
+
type ComputationResources = typeof ComputationResources.Type;
|
|
3438
3471
|
declare const DataAvailabilityResources: Schema.Struct<{
|
|
3439
3472
|
l1Gas: typeof Schema.BigIntFromSelf;
|
|
3440
3473
|
l1DataGas: typeof Schema.BigIntFromSelf;
|
|
3441
3474
|
}>;
|
|
3475
|
+
type DataAvailabilityResources = typeof DataAvailabilityResources.Type;
|
|
3442
3476
|
declare const ExecutionResources: Schema.Struct<{
|
|
3443
3477
|
computation: Schema.Struct<{
|
|
3444
3478
|
steps: typeof Schema.BigIntFromSelf;
|
|
@@ -3457,16 +3491,19 @@ declare const ExecutionResources: Schema.Struct<{
|
|
|
3457
3491
|
l1DataGas: typeof Schema.BigIntFromSelf;
|
|
3458
3492
|
}>;
|
|
3459
3493
|
}>;
|
|
3494
|
+
type ExecutionResources = typeof ExecutionResources.Type;
|
|
3460
3495
|
declare const ExecutionSucceeded: Schema.Struct<{
|
|
3461
3496
|
_tag: Schema.PropertySignature<":", "succeeded", "$case", ":", "succeeded", false, never>;
|
|
3462
3497
|
succeeded: Schema.Struct<{}>;
|
|
3463
3498
|
}>;
|
|
3499
|
+
type ExecutionSucceeded = typeof ExecutionSucceeded.Type;
|
|
3464
3500
|
declare const ExecutionReverted: Schema.Struct<{
|
|
3465
3501
|
_tag: Schema.PropertySignature<":", "reverted", "$case", ":", "reverted", false, never>;
|
|
3466
3502
|
reverted: Schema.Struct<{
|
|
3467
3503
|
reason: Schema.optional<typeof Schema.String>;
|
|
3468
3504
|
}>;
|
|
3469
3505
|
}>;
|
|
3506
|
+
type ExecutionReverted = typeof ExecutionReverted.Type;
|
|
3470
3507
|
/** Common fields for all transaction receipts. */
|
|
3471
3508
|
declare const TransactionReceiptMeta: Schema.Struct<{
|
|
3472
3509
|
transactionIndex: typeof Schema.Number;
|
|
@@ -3513,20 +3550,24 @@ declare const TransactionReceiptMeta: Schema.Struct<{
|
|
|
3513
3550
|
}>;
|
|
3514
3551
|
}>]>;
|
|
3515
3552
|
}>;
|
|
3553
|
+
type TransactionReceiptMeta = typeof TransactionReceiptMeta.Type;
|
|
3516
3554
|
declare const InvokeTransactionReceipt: Schema.Struct<{
|
|
3517
3555
|
_tag: Schema.PropertySignature<":", "invoke", "$case", ":", "invoke", false, never>;
|
|
3518
3556
|
invoke: Schema.Struct<{}>;
|
|
3519
3557
|
}>;
|
|
3558
|
+
type InvokeTransactionReceipt = typeof InvokeTransactionReceipt.Type;
|
|
3520
3559
|
declare const L1HandlerTransactionReceipt: Schema.Struct<{
|
|
3521
3560
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
3522
3561
|
l1Handler: Schema.Struct<{
|
|
3523
3562
|
messageHash: Schema.Schema<Uint8Array, Uint8Array, never>;
|
|
3524
3563
|
}>;
|
|
3525
3564
|
}>;
|
|
3565
|
+
type L1HandlerTransactionReceipt = typeof L1HandlerTransactionReceipt.Type;
|
|
3526
3566
|
declare const DeclareTransactionReceipt: Schema.Struct<{
|
|
3527
3567
|
_tag: Schema.PropertySignature<":", "declare", "$case", ":", "declare", false, never>;
|
|
3528
3568
|
declare: Schema.Struct<{}>;
|
|
3529
3569
|
}>;
|
|
3570
|
+
type DeclareTransactionReceipt = typeof DeclareTransactionReceipt.Type;
|
|
3530
3571
|
declare const DeployTransactionReceipt: Schema.Struct<{
|
|
3531
3572
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
3532
3573
|
deploy: Schema.Struct<{
|
|
@@ -3538,6 +3579,7 @@ declare const DeployTransactionReceipt: Schema.Struct<{
|
|
|
3538
3579
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3539
3580
|
}>;
|
|
3540
3581
|
}>;
|
|
3582
|
+
type DeployTransactionReceipt = typeof DeployTransactionReceipt.Type;
|
|
3541
3583
|
declare const DeployAccountTransactionReceipt: Schema.Struct<{
|
|
3542
3584
|
_tag: Schema.PropertySignature<":", "deployAccount", "$case", ":", "deployAccount", false, never>;
|
|
3543
3585
|
deployAccount: Schema.Struct<{
|
|
@@ -3549,6 +3591,7 @@ declare const DeployAccountTransactionReceipt: Schema.Struct<{
|
|
|
3549
3591
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3550
3592
|
}>;
|
|
3551
3593
|
}>;
|
|
3594
|
+
type DeployAccountTransactionReceipt = typeof DeployAccountTransactionReceipt.Type;
|
|
3552
3595
|
/** A transaction receipt.
|
|
3553
3596
|
*
|
|
3554
3597
|
* @prop meta Transaction receipt metadata.
|
package/dist/index.d.ts
CHANGED
|
@@ -1391,46 +1391,57 @@ declare const InvokeTransactionV0Filter: Schema.Struct<{
|
|
|
1391
1391
|
_tag: Schema.PropertySignature<":", "invokeV0", "$case", ":", "invokeV0", false, never>;
|
|
1392
1392
|
invokeV0: Schema.Struct<{}>;
|
|
1393
1393
|
}>;
|
|
1394
|
+
type InvokeTransactionV0Filter = typeof InvokeTransactionV0Filter.Type;
|
|
1394
1395
|
declare const InvokeTransactionV1Filter: Schema.Struct<{
|
|
1395
1396
|
_tag: Schema.PropertySignature<":", "invokeV1", "$case", ":", "invokeV1", false, never>;
|
|
1396
1397
|
invokeV1: Schema.Struct<{}>;
|
|
1397
1398
|
}>;
|
|
1399
|
+
type InvokeTransactionV1Filter = typeof InvokeTransactionV1Filter.Type;
|
|
1398
1400
|
declare const InvokeTransactionV3Filter: Schema.Struct<{
|
|
1399
1401
|
_tag: Schema.PropertySignature<":", "invokeV3", "$case", ":", "invokeV3", false, never>;
|
|
1400
1402
|
invokeV3: Schema.Struct<{}>;
|
|
1401
1403
|
}>;
|
|
1404
|
+
type InvokeTransactionV3Filter = typeof InvokeTransactionV3Filter.Type;
|
|
1402
1405
|
declare const DeployTransactionFilter: Schema.Struct<{
|
|
1403
1406
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
1404
1407
|
deploy: Schema.Struct<{}>;
|
|
1405
1408
|
}>;
|
|
1409
|
+
type DeployTransactionFilter = typeof DeployTransactionFilter.Type;
|
|
1406
1410
|
declare const DeclareV0TransactionFilter: Schema.Struct<{
|
|
1407
1411
|
_tag: Schema.PropertySignature<":", "declareV0", "$case", ":", "declareV0", false, never>;
|
|
1408
1412
|
declareV0: Schema.Struct<{}>;
|
|
1409
1413
|
}>;
|
|
1414
|
+
type DeclareV0TransactionFilter = typeof DeclareV0TransactionFilter.Type;
|
|
1410
1415
|
declare const DeclareV1TransactionFilter: Schema.Struct<{
|
|
1411
1416
|
_tag: Schema.PropertySignature<":", "declareV1", "$case", ":", "declareV1", false, never>;
|
|
1412
1417
|
declareV1: Schema.Struct<{}>;
|
|
1413
1418
|
}>;
|
|
1419
|
+
type DeclareV1TransactionFilter = typeof DeclareV1TransactionFilter.Type;
|
|
1414
1420
|
declare const DeclareV2TransactionFilter: Schema.Struct<{
|
|
1415
1421
|
_tag: Schema.PropertySignature<":", "declareV2", "$case", ":", "declareV2", false, never>;
|
|
1416
1422
|
declareV2: Schema.Struct<{}>;
|
|
1417
1423
|
}>;
|
|
1424
|
+
type DeclareV2TransactionFilter = typeof DeclareV2TransactionFilter.Type;
|
|
1418
1425
|
declare const DeclareV3TransactionFilter: Schema.Struct<{
|
|
1419
1426
|
_tag: Schema.PropertySignature<":", "declareV3", "$case", ":", "declareV3", false, never>;
|
|
1420
1427
|
declareV3: Schema.Struct<{}>;
|
|
1421
1428
|
}>;
|
|
1429
|
+
type DeclareV3TransactionFilter = typeof DeclareV3TransactionFilter.Type;
|
|
1422
1430
|
declare const L1HandlerTransactionFilter: Schema.Struct<{
|
|
1423
1431
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
1424
1432
|
l1Handler: Schema.Struct<{}>;
|
|
1425
1433
|
}>;
|
|
1434
|
+
type L1HandlerTransactionFilter = typeof L1HandlerTransactionFilter.Type;
|
|
1426
1435
|
declare const DeployAccountV1TransactionFilter: Schema.Struct<{
|
|
1427
1436
|
_tag: Schema.PropertySignature<":", "deployAccountV1", "$case", ":", "deployAccountV1", false, never>;
|
|
1428
1437
|
deployAccountV1: Schema.Struct<{}>;
|
|
1429
1438
|
}>;
|
|
1439
|
+
type DeployAccountV1TransactionFilter = typeof DeployAccountV1TransactionFilter.Type;
|
|
1430
1440
|
declare const DeployAccountV3TransactionFilter: Schema.Struct<{
|
|
1431
1441
|
_tag: Schema.PropertySignature<":", "deployAccountV3", "$case", ":", "deployAccountV3", false, never>;
|
|
1432
1442
|
deployAccountV3: Schema.Struct<{}>;
|
|
1433
1443
|
}>;
|
|
1444
|
+
type DeployAccountV3TransactionFilter = typeof DeployAccountV3TransactionFilter.Type;
|
|
1434
1445
|
/** Filter transactions.
|
|
1435
1446
|
*
|
|
1436
1447
|
* @prop transactionStatus Filter based on the transaction status.
|
|
@@ -1527,6 +1538,7 @@ declare const ContractChangeFilter: Schema.Struct<{
|
|
|
1527
1538
|
deployedContract: Schema.Struct<{}>;
|
|
1528
1539
|
}>]>>;
|
|
1529
1540
|
}>;
|
|
1541
|
+
type ContractChangeFilter = typeof ContractChangeFilter.Type;
|
|
1530
1542
|
/** Filter updates to nonces.
|
|
1531
1543
|
*
|
|
1532
1544
|
* @prop contractAddress Filter by contract address.
|
|
@@ -1540,6 +1552,7 @@ declare const NonceUpdateFilter: Schema.Struct<{
|
|
|
1540
1552
|
x3: typeof Schema.BigIntFromSelf;
|
|
1541
1553
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1542
1554
|
}>;
|
|
1555
|
+
type NonceUpdateFilter = typeof NonceUpdateFilter.Type;
|
|
1543
1556
|
declare const Filter: Schema.Struct<{
|
|
1544
1557
|
header: Schema.optional<Schema.transform<Schema.Enums<typeof HeaderFilter$1>, Schema.Literal<["always", "on_data", "on_data_or_on_new_block", "unknown"]>>>;
|
|
1545
1558
|
transactions: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
@@ -2384,14 +2397,17 @@ declare const ResourcePrice: Schema.Struct<{
|
|
|
2384
2397
|
x3: typeof Schema.BigIntFromSelf;
|
|
2385
2398
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2386
2399
|
}>;
|
|
2400
|
+
type ResourcePrice = typeof ResourcePrice.Type;
|
|
2387
2401
|
/** How data is posted to L1. */
|
|
2388
2402
|
declare const L1DataAvailabilityMode: Schema.transform<Schema.Enums<typeof L1DataAvailabilityMode$1>, Schema.Literal<["blob", "calldata", "unknown"]>>;
|
|
2403
|
+
type L1DataAvailabilityMode = typeof L1DataAvailabilityMode.Type;
|
|
2389
2404
|
declare const TransactionStatus: Schema.transform<Schema.Enums<typeof TransactionStatus$1>, Schema.Literal<["unknown", "succeeded", "reverted"]>>;
|
|
2390
2405
|
type TransactionStatus = typeof TransactionStatus.Type;
|
|
2391
2406
|
declare const U128: Schema.transform<Schema.Struct<{
|
|
2392
2407
|
x0: typeof Schema.BigIntFromSelf;
|
|
2393
2408
|
x1: typeof Schema.BigIntFromSelf;
|
|
2394
2409
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2410
|
+
type U128 = typeof U128.Type;
|
|
2395
2411
|
declare const ResourceBounds: Schema.Struct<{
|
|
2396
2412
|
maxAmount: typeof Schema.BigIntFromSelf;
|
|
2397
2413
|
maxPricePerUnit: Schema.transform<Schema.Struct<{
|
|
@@ -2399,6 +2415,7 @@ declare const ResourceBounds: Schema.Struct<{
|
|
|
2399
2415
|
x1: typeof Schema.BigIntFromSelf;
|
|
2400
2416
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2401
2417
|
}>;
|
|
2418
|
+
type ResourceBounds = typeof ResourceBounds.Type;
|
|
2402
2419
|
declare const ResourceBoundsMapping: Schema.Struct<{
|
|
2403
2420
|
l1Gas: Schema.Struct<{
|
|
2404
2421
|
maxAmount: typeof Schema.BigIntFromSelf;
|
|
@@ -2415,7 +2432,9 @@ declare const ResourceBoundsMapping: Schema.Struct<{
|
|
|
2415
2432
|
}>, typeof Schema.BigIntFromSelf>;
|
|
2416
2433
|
}>;
|
|
2417
2434
|
}>;
|
|
2435
|
+
type ResourceBoundsMapping = typeof ResourceBoundsMapping.Type;
|
|
2418
2436
|
declare const DataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2437
|
+
type DataAvailabilityMode = typeof DataAvailabilityMode.Type;
|
|
2419
2438
|
/** Starknet block header.
|
|
2420
2439
|
*
|
|
2421
2440
|
* @prop blockHash The hash of the block.
|
|
@@ -2542,6 +2561,7 @@ declare const InvokeTransactionV0: Schema.Struct<{
|
|
|
2542
2561
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2543
2562
|
}>;
|
|
2544
2563
|
}>;
|
|
2564
|
+
type InvokeTransactionV0 = typeof InvokeTransactionV0.Type;
|
|
2545
2565
|
declare const InvokeTransactionV1: Schema.Struct<{
|
|
2546
2566
|
_tag: Schema.PropertySignature<":", "invokeV1", "$case", ":", "invokeV1", false, never>;
|
|
2547
2567
|
invokeV1: Schema.Struct<{
|
|
@@ -2577,6 +2597,7 @@ declare const InvokeTransactionV1: Schema.Struct<{
|
|
|
2577
2597
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2578
2598
|
}>;
|
|
2579
2599
|
}>;
|
|
2600
|
+
type InvokeTransactionV1 = typeof InvokeTransactionV1.Type;
|
|
2580
2601
|
declare const InvokeTransactionV3: Schema.Struct<{
|
|
2581
2602
|
_tag: Schema.PropertySignature<":", "invokeV3", "$case", ":", "invokeV3", false, never>;
|
|
2582
2603
|
invokeV3: Schema.Struct<{
|
|
@@ -2637,6 +2658,7 @@ declare const InvokeTransactionV3: Schema.Struct<{
|
|
|
2637
2658
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2638
2659
|
}>;
|
|
2639
2660
|
}>;
|
|
2661
|
+
type InvokeTransactionV3 = typeof InvokeTransactionV3.Type;
|
|
2640
2662
|
declare const L1HandlerTransaction: Schema.Struct<{
|
|
2641
2663
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
2642
2664
|
l1Handler: Schema.Struct<{
|
|
@@ -2661,6 +2683,7 @@ declare const L1HandlerTransaction: Schema.Struct<{
|
|
|
2661
2683
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
2662
2684
|
}>;
|
|
2663
2685
|
}>;
|
|
2686
|
+
type L1HandlerTransaction = typeof L1HandlerTransaction.Type;
|
|
2664
2687
|
declare const DeployTransaction: Schema.Struct<{
|
|
2665
2688
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
2666
2689
|
deploy: Schema.Struct<{
|
|
@@ -2684,6 +2707,7 @@ declare const DeployTransaction: Schema.Struct<{
|
|
|
2684
2707
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2685
2708
|
}>;
|
|
2686
2709
|
}>;
|
|
2710
|
+
type DeployTransaction = typeof DeployTransaction.Type;
|
|
2687
2711
|
declare const DeclareTransactionV0: Schema.Struct<{
|
|
2688
2712
|
_tag: Schema.PropertySignature<":", "declareV0", "$case", ":", "declareV0", false, never>;
|
|
2689
2713
|
declareV0: Schema.Struct<{
|
|
@@ -2713,6 +2737,7 @@ declare const DeclareTransactionV0: Schema.Struct<{
|
|
|
2713
2737
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2714
2738
|
}>;
|
|
2715
2739
|
}>;
|
|
2740
|
+
type DeclareTransactionV0 = typeof DeclareTransactionV0.Type;
|
|
2716
2741
|
declare const DeclareTransactionV1: Schema.Struct<{
|
|
2717
2742
|
_tag: Schema.PropertySignature<":", "declareV1", "$case", ":", "declareV1", false, never>;
|
|
2718
2743
|
declareV1: Schema.Struct<{
|
|
@@ -2748,6 +2773,7 @@ declare const DeclareTransactionV1: Schema.Struct<{
|
|
|
2748
2773
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2749
2774
|
}>;
|
|
2750
2775
|
}>;
|
|
2776
|
+
type DeclareTransactionV1 = typeof DeclareTransactionV1.Type;
|
|
2751
2777
|
declare const DeclareTransactionV2: Schema.Struct<{
|
|
2752
2778
|
_tag: Schema.PropertySignature<":", "declareV2", "$case", ":", "declareV2", false, never>;
|
|
2753
2779
|
declareV2: Schema.Struct<{
|
|
@@ -2789,6 +2815,7 @@ declare const DeclareTransactionV2: Schema.Struct<{
|
|
|
2789
2815
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2790
2816
|
}>;
|
|
2791
2817
|
}>;
|
|
2818
|
+
type DeclareTransactionV2 = typeof DeclareTransactionV2.Type;
|
|
2792
2819
|
declare const DeclareTransactionV3: Schema.Struct<{
|
|
2793
2820
|
_tag: Schema.PropertySignature<":", "declareV3", "$case", ":", "declareV3", false, never>;
|
|
2794
2821
|
declareV3: Schema.Struct<{
|
|
@@ -2855,6 +2882,7 @@ declare const DeclareTransactionV3: Schema.Struct<{
|
|
|
2855
2882
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2856
2883
|
}>;
|
|
2857
2884
|
}>;
|
|
2885
|
+
type DeclareTransactionV3 = typeof DeclareTransactionV3.Type;
|
|
2858
2886
|
declare const DeployAccountTransactionV1: Schema.Struct<{
|
|
2859
2887
|
_tag: Schema.PropertySignature<":", "deployAccountV1", "$case", ":", "deployAccountV1", false, never>;
|
|
2860
2888
|
deployAccountV1: Schema.Struct<{
|
|
@@ -2896,6 +2924,7 @@ declare const DeployAccountTransactionV1: Schema.Struct<{
|
|
|
2896
2924
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
2897
2925
|
}>;
|
|
2898
2926
|
}>;
|
|
2927
|
+
type DeployAccountTransactionV1 = typeof DeployAccountTransactionV1.Type;
|
|
2899
2928
|
declare const DeployAccountTransactionV3: Schema.Struct<{
|
|
2900
2929
|
_tag: Schema.PropertySignature<":", "deployAccountV3", "$case", ":", "deployAccountV3", false, never>;
|
|
2901
2930
|
deployAccountV3: Schema.Struct<{
|
|
@@ -2956,6 +2985,7 @@ declare const DeployAccountTransactionV3: Schema.Struct<{
|
|
|
2956
2985
|
feeDataAvailabilityMode: Schema.transform<Schema.Enums<typeof DataAvailabilityMode$1>, Schema.Literal<["l1", "l2", "unknown"]>>;
|
|
2957
2986
|
}>;
|
|
2958
2987
|
}>;
|
|
2988
|
+
type DeployAccountTransactionV3 = typeof DeployAccountTransactionV3.Type;
|
|
2959
2989
|
/** A transaction.
|
|
2960
2990
|
*
|
|
2961
2991
|
* @prop meta Transaction metadata.
|
|
@@ -3414,6 +3444,7 @@ declare const Transaction: Schema.Struct<{
|
|
|
3414
3444
|
}>;
|
|
3415
3445
|
type Transaction = typeof Transaction.Type;
|
|
3416
3446
|
declare const PriceUnit: Schema.transform<Schema.Enums<typeof PriceUnit$1>, Schema.Literal<["wei", "fri", "unknown"]>>;
|
|
3447
|
+
type PriceUnit = typeof PriceUnit.Type;
|
|
3417
3448
|
declare const FeePayment: Schema.Struct<{
|
|
3418
3449
|
amount: Schema.transform<Schema.Struct<{
|
|
3419
3450
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -3423,6 +3454,7 @@ declare const FeePayment: Schema.Struct<{
|
|
|
3423
3454
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3424
3455
|
unit: Schema.transform<Schema.Enums<typeof PriceUnit$1>, Schema.Literal<["wei", "fri", "unknown"]>>;
|
|
3425
3456
|
}>;
|
|
3457
|
+
type FeePayment = typeof FeePayment.Type;
|
|
3426
3458
|
declare const ComputationResources: Schema.Struct<{
|
|
3427
3459
|
steps: typeof Schema.BigIntFromSelf;
|
|
3428
3460
|
memoryHoles: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
@@ -3435,10 +3467,12 @@ declare const ComputationResources: Schema.Struct<{
|
|
|
3435
3467
|
keccakBuiltinApplications: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
3436
3468
|
segmentArenaBuiltin: Schema.optional<typeof Schema.BigIntFromSelf>;
|
|
3437
3469
|
}>;
|
|
3470
|
+
type ComputationResources = typeof ComputationResources.Type;
|
|
3438
3471
|
declare const DataAvailabilityResources: Schema.Struct<{
|
|
3439
3472
|
l1Gas: typeof Schema.BigIntFromSelf;
|
|
3440
3473
|
l1DataGas: typeof Schema.BigIntFromSelf;
|
|
3441
3474
|
}>;
|
|
3475
|
+
type DataAvailabilityResources = typeof DataAvailabilityResources.Type;
|
|
3442
3476
|
declare const ExecutionResources: Schema.Struct<{
|
|
3443
3477
|
computation: Schema.Struct<{
|
|
3444
3478
|
steps: typeof Schema.BigIntFromSelf;
|
|
@@ -3457,16 +3491,19 @@ declare const ExecutionResources: Schema.Struct<{
|
|
|
3457
3491
|
l1DataGas: typeof Schema.BigIntFromSelf;
|
|
3458
3492
|
}>;
|
|
3459
3493
|
}>;
|
|
3494
|
+
type ExecutionResources = typeof ExecutionResources.Type;
|
|
3460
3495
|
declare const ExecutionSucceeded: Schema.Struct<{
|
|
3461
3496
|
_tag: Schema.PropertySignature<":", "succeeded", "$case", ":", "succeeded", false, never>;
|
|
3462
3497
|
succeeded: Schema.Struct<{}>;
|
|
3463
3498
|
}>;
|
|
3499
|
+
type ExecutionSucceeded = typeof ExecutionSucceeded.Type;
|
|
3464
3500
|
declare const ExecutionReverted: Schema.Struct<{
|
|
3465
3501
|
_tag: Schema.PropertySignature<":", "reverted", "$case", ":", "reverted", false, never>;
|
|
3466
3502
|
reverted: Schema.Struct<{
|
|
3467
3503
|
reason: Schema.optional<typeof Schema.String>;
|
|
3468
3504
|
}>;
|
|
3469
3505
|
}>;
|
|
3506
|
+
type ExecutionReverted = typeof ExecutionReverted.Type;
|
|
3470
3507
|
/** Common fields for all transaction receipts. */
|
|
3471
3508
|
declare const TransactionReceiptMeta: Schema.Struct<{
|
|
3472
3509
|
transactionIndex: typeof Schema.Number;
|
|
@@ -3513,20 +3550,24 @@ declare const TransactionReceiptMeta: Schema.Struct<{
|
|
|
3513
3550
|
}>;
|
|
3514
3551
|
}>]>;
|
|
3515
3552
|
}>;
|
|
3553
|
+
type TransactionReceiptMeta = typeof TransactionReceiptMeta.Type;
|
|
3516
3554
|
declare const InvokeTransactionReceipt: Schema.Struct<{
|
|
3517
3555
|
_tag: Schema.PropertySignature<":", "invoke", "$case", ":", "invoke", false, never>;
|
|
3518
3556
|
invoke: Schema.Struct<{}>;
|
|
3519
3557
|
}>;
|
|
3558
|
+
type InvokeTransactionReceipt = typeof InvokeTransactionReceipt.Type;
|
|
3520
3559
|
declare const L1HandlerTransactionReceipt: Schema.Struct<{
|
|
3521
3560
|
_tag: Schema.PropertySignature<":", "l1Handler", "$case", ":", "l1Handler", false, never>;
|
|
3522
3561
|
l1Handler: Schema.Struct<{
|
|
3523
3562
|
messageHash: Schema.Schema<Uint8Array, Uint8Array, never>;
|
|
3524
3563
|
}>;
|
|
3525
3564
|
}>;
|
|
3565
|
+
type L1HandlerTransactionReceipt = typeof L1HandlerTransactionReceipt.Type;
|
|
3526
3566
|
declare const DeclareTransactionReceipt: Schema.Struct<{
|
|
3527
3567
|
_tag: Schema.PropertySignature<":", "declare", "$case", ":", "declare", false, never>;
|
|
3528
3568
|
declare: Schema.Struct<{}>;
|
|
3529
3569
|
}>;
|
|
3570
|
+
type DeclareTransactionReceipt = typeof DeclareTransactionReceipt.Type;
|
|
3530
3571
|
declare const DeployTransactionReceipt: Schema.Struct<{
|
|
3531
3572
|
_tag: Schema.PropertySignature<":", "deploy", "$case", ":", "deploy", false, never>;
|
|
3532
3573
|
deploy: Schema.Struct<{
|
|
@@ -3538,6 +3579,7 @@ declare const DeployTransactionReceipt: Schema.Struct<{
|
|
|
3538
3579
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3539
3580
|
}>;
|
|
3540
3581
|
}>;
|
|
3582
|
+
type DeployTransactionReceipt = typeof DeployTransactionReceipt.Type;
|
|
3541
3583
|
declare const DeployAccountTransactionReceipt: Schema.Struct<{
|
|
3542
3584
|
_tag: Schema.PropertySignature<":", "deployAccount", "$case", ":", "deployAccount", false, never>;
|
|
3543
3585
|
deployAccount: Schema.Struct<{
|
|
@@ -3549,6 +3591,7 @@ declare const DeployAccountTransactionReceipt: Schema.Struct<{
|
|
|
3549
3591
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>;
|
|
3550
3592
|
}>;
|
|
3551
3593
|
}>;
|
|
3594
|
+
type DeployAccountTransactionReceipt = typeof DeployAccountTransactionReceipt.Type;
|
|
3552
3595
|
/** A transaction receipt.
|
|
3553
3596
|
*
|
|
3554
3597
|
* @prop meta Transaction receipt metadata.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apibara/starknet",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"vitest": "^1.6.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@apibara/protocol": "2.1.0-beta.
|
|
45
|
+
"@apibara/protocol": "2.1.0-beta.15",
|
|
46
46
|
"@effect/schema": "^0.67.15",
|
|
47
47
|
"@scure/starknet": "^1.1.0",
|
|
48
48
|
"abi-wan-kanabi": "^2.2.4",
|
package/src/block.ts
CHANGED
|
@@ -14,6 +14,8 @@ export const ResourcePrice = Schema.Struct({
|
|
|
14
14
|
priceInWei: Schema.optional(FieldElement),
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
+
export type ResourcePrice = typeof ResourcePrice.Type;
|
|
18
|
+
|
|
17
19
|
/** How data is posted to L1. */
|
|
18
20
|
export const L1DataAvailabilityMode = Schema.transform(
|
|
19
21
|
Schema.Enums(proto.data.L1DataAvailabilityMode),
|
|
@@ -35,6 +37,8 @@ export const L1DataAvailabilityMode = Schema.transform(
|
|
|
35
37
|
},
|
|
36
38
|
);
|
|
37
39
|
|
|
40
|
+
export type L1DataAvailabilityMode = typeof L1DataAvailabilityMode.Type;
|
|
41
|
+
|
|
38
42
|
export const TransactionStatus = Schema.transform(
|
|
39
43
|
Schema.Enums(proto.data.TransactionStatus),
|
|
40
44
|
Schema.Literal("unknown", "succeeded", "reverted"),
|
|
@@ -75,16 +79,22 @@ export const U128 = Schema.transform(
|
|
|
75
79
|
},
|
|
76
80
|
);
|
|
77
81
|
|
|
82
|
+
export type U128 = typeof U128.Type;
|
|
83
|
+
|
|
78
84
|
export const ResourceBounds = Schema.Struct({
|
|
79
85
|
maxAmount: Schema.BigIntFromSelf,
|
|
80
86
|
maxPricePerUnit: U128,
|
|
81
87
|
});
|
|
82
88
|
|
|
89
|
+
export type ResourceBounds = typeof ResourceBounds.Type;
|
|
90
|
+
|
|
83
91
|
export const ResourceBoundsMapping = Schema.Struct({
|
|
84
92
|
l1Gas: ResourceBounds,
|
|
85
93
|
l2Gas: ResourceBounds,
|
|
86
94
|
});
|
|
87
95
|
|
|
96
|
+
export type ResourceBoundsMapping = typeof ResourceBoundsMapping.Type;
|
|
97
|
+
|
|
88
98
|
export const DataAvailabilityMode = Schema.transform(
|
|
89
99
|
Schema.Enums(proto.data.DataAvailabilityMode),
|
|
90
100
|
Schema.Literal("l1", "l2", "unknown"),
|
|
@@ -105,6 +115,8 @@ export const DataAvailabilityMode = Schema.transform(
|
|
|
105
115
|
},
|
|
106
116
|
);
|
|
107
117
|
|
|
118
|
+
export type DataAvailabilityMode = typeof DataAvailabilityMode.Type;
|
|
119
|
+
|
|
108
120
|
/** Starknet block header.
|
|
109
121
|
*
|
|
110
122
|
* @prop blockHash The hash of the block.
|
|
@@ -160,6 +172,8 @@ export const InvokeTransactionV0 = Schema.Struct({
|
|
|
160
172
|
}),
|
|
161
173
|
});
|
|
162
174
|
|
|
175
|
+
export type InvokeTransactionV0 = typeof InvokeTransactionV0.Type;
|
|
176
|
+
|
|
163
177
|
export const InvokeTransactionV1 = Schema.Struct({
|
|
164
178
|
_tag: tag("invokeV1"),
|
|
165
179
|
invokeV1: Schema.Struct({
|
|
@@ -171,6 +185,8 @@ export const InvokeTransactionV1 = Schema.Struct({
|
|
|
171
185
|
}),
|
|
172
186
|
});
|
|
173
187
|
|
|
188
|
+
export type InvokeTransactionV1 = typeof InvokeTransactionV1.Type;
|
|
189
|
+
|
|
174
190
|
export const InvokeTransactionV3 = Schema.Struct({
|
|
175
191
|
_tag: tag("invokeV3"),
|
|
176
192
|
invokeV3: Schema.Struct({
|
|
@@ -187,6 +203,8 @@ export const InvokeTransactionV3 = Schema.Struct({
|
|
|
187
203
|
}),
|
|
188
204
|
});
|
|
189
205
|
|
|
206
|
+
export type InvokeTransactionV3 = typeof InvokeTransactionV3.Type;
|
|
207
|
+
|
|
190
208
|
export const L1HandlerTransaction = Schema.Struct({
|
|
191
209
|
_tag: tag("l1Handler"),
|
|
192
210
|
l1Handler: Schema.Struct({
|
|
@@ -197,6 +215,8 @@ export const L1HandlerTransaction = Schema.Struct({
|
|
|
197
215
|
}),
|
|
198
216
|
});
|
|
199
217
|
|
|
218
|
+
export type L1HandlerTransaction = typeof L1HandlerTransaction.Type;
|
|
219
|
+
|
|
200
220
|
export const DeployTransaction = Schema.Struct({
|
|
201
221
|
_tag: tag("deploy"),
|
|
202
222
|
deploy: Schema.Struct({
|
|
@@ -206,6 +226,8 @@ export const DeployTransaction = Schema.Struct({
|
|
|
206
226
|
}),
|
|
207
227
|
});
|
|
208
228
|
|
|
229
|
+
export type DeployTransaction = typeof DeployTransaction.Type;
|
|
230
|
+
|
|
209
231
|
export const DeclareTransactionV0 = Schema.Struct({
|
|
210
232
|
_tag: tag("declareV0"),
|
|
211
233
|
declareV0: Schema.Struct({
|
|
@@ -216,6 +238,8 @@ export const DeclareTransactionV0 = Schema.Struct({
|
|
|
216
238
|
}),
|
|
217
239
|
});
|
|
218
240
|
|
|
241
|
+
export type DeclareTransactionV0 = typeof DeclareTransactionV0.Type;
|
|
242
|
+
|
|
219
243
|
export const DeclareTransactionV1 = Schema.Struct({
|
|
220
244
|
_tag: tag("declareV1"),
|
|
221
245
|
declareV1: Schema.Struct({
|
|
@@ -227,6 +251,8 @@ export const DeclareTransactionV1 = Schema.Struct({
|
|
|
227
251
|
}),
|
|
228
252
|
});
|
|
229
253
|
|
|
254
|
+
export type DeclareTransactionV1 = typeof DeclareTransactionV1.Type;
|
|
255
|
+
|
|
230
256
|
export const DeclareTransactionV2 = Schema.Struct({
|
|
231
257
|
_tag: tag("declareV2"),
|
|
232
258
|
declareV2: Schema.Struct({
|
|
@@ -239,6 +265,8 @@ export const DeclareTransactionV2 = Schema.Struct({
|
|
|
239
265
|
}),
|
|
240
266
|
});
|
|
241
267
|
|
|
268
|
+
export type DeclareTransactionV2 = typeof DeclareTransactionV2.Type;
|
|
269
|
+
|
|
242
270
|
export const DeclareTransactionV3 = Schema.Struct({
|
|
243
271
|
_tag: tag("declareV3"),
|
|
244
272
|
declareV3: Schema.Struct({
|
|
@@ -256,6 +284,8 @@ export const DeclareTransactionV3 = Schema.Struct({
|
|
|
256
284
|
}),
|
|
257
285
|
});
|
|
258
286
|
|
|
287
|
+
export type DeclareTransactionV3 = typeof DeclareTransactionV3.Type;
|
|
288
|
+
|
|
259
289
|
export const DeployAccountTransactionV1 = Schema.Struct({
|
|
260
290
|
_tag: tag("deployAccountV1"),
|
|
261
291
|
deployAccountV1: Schema.Struct({
|
|
@@ -268,6 +298,8 @@ export const DeployAccountTransactionV1 = Schema.Struct({
|
|
|
268
298
|
}),
|
|
269
299
|
});
|
|
270
300
|
|
|
301
|
+
export type DeployAccountTransactionV1 = typeof DeployAccountTransactionV1.Type;
|
|
302
|
+
|
|
271
303
|
export const DeployAccountTransactionV3 = Schema.Struct({
|
|
272
304
|
_tag: tag("deployAccountV3"),
|
|
273
305
|
deployAccountV3: Schema.Struct({
|
|
@@ -284,6 +316,8 @@ export const DeployAccountTransactionV3 = Schema.Struct({
|
|
|
284
316
|
}),
|
|
285
317
|
});
|
|
286
318
|
|
|
319
|
+
export type DeployAccountTransactionV3 = typeof DeployAccountTransactionV3.Type;
|
|
320
|
+
|
|
287
321
|
/** A transaction.
|
|
288
322
|
*
|
|
289
323
|
* @prop meta Transaction metadata.
|
|
@@ -328,11 +362,15 @@ export const PriceUnit = Schema.transform(
|
|
|
328
362
|
},
|
|
329
363
|
);
|
|
330
364
|
|
|
365
|
+
export type PriceUnit = typeof PriceUnit.Type;
|
|
366
|
+
|
|
331
367
|
export const FeePayment = Schema.Struct({
|
|
332
368
|
amount: FieldElement,
|
|
333
369
|
unit: PriceUnit,
|
|
334
370
|
});
|
|
335
371
|
|
|
372
|
+
export type FeePayment = typeof FeePayment.Type;
|
|
373
|
+
|
|
336
374
|
export const ComputationResources = Schema.Struct({
|
|
337
375
|
steps: Schema.BigIntFromSelf,
|
|
338
376
|
memoryHoles: Schema.optional(Schema.BigIntFromSelf),
|
|
@@ -346,21 +384,29 @@ export const ComputationResources = Schema.Struct({
|
|
|
346
384
|
segmentArenaBuiltin: Schema.optional(Schema.BigIntFromSelf),
|
|
347
385
|
});
|
|
348
386
|
|
|
387
|
+
export type ComputationResources = typeof ComputationResources.Type;
|
|
388
|
+
|
|
349
389
|
export const DataAvailabilityResources = Schema.Struct({
|
|
350
390
|
l1Gas: Schema.BigIntFromSelf,
|
|
351
391
|
l1DataGas: Schema.BigIntFromSelf,
|
|
352
392
|
});
|
|
353
393
|
|
|
394
|
+
export type DataAvailabilityResources = typeof DataAvailabilityResources.Type;
|
|
395
|
+
|
|
354
396
|
export const ExecutionResources = Schema.Struct({
|
|
355
397
|
computation: ComputationResources,
|
|
356
398
|
dataAvailability: DataAvailabilityResources,
|
|
357
399
|
});
|
|
358
400
|
|
|
401
|
+
export type ExecutionResources = typeof ExecutionResources.Type;
|
|
402
|
+
|
|
359
403
|
export const ExecutionSucceeded = Schema.Struct({
|
|
360
404
|
_tag: tag("succeeded"),
|
|
361
405
|
succeeded: Schema.Struct({}),
|
|
362
406
|
});
|
|
363
407
|
|
|
408
|
+
export type ExecutionSucceeded = typeof ExecutionSucceeded.Type;
|
|
409
|
+
|
|
364
410
|
export const ExecutionReverted = Schema.Struct({
|
|
365
411
|
_tag: tag("reverted"),
|
|
366
412
|
reverted: Schema.Struct({
|
|
@@ -368,6 +414,8 @@ export const ExecutionReverted = Schema.Struct({
|
|
|
368
414
|
}),
|
|
369
415
|
});
|
|
370
416
|
|
|
417
|
+
export type ExecutionReverted = typeof ExecutionReverted.Type;
|
|
418
|
+
|
|
371
419
|
/** Common fields for all transaction receipts. */
|
|
372
420
|
export const TransactionReceiptMeta = Schema.Struct({
|
|
373
421
|
transactionIndex: Schema.Number,
|
|
@@ -377,11 +425,15 @@ export const TransactionReceiptMeta = Schema.Struct({
|
|
|
377
425
|
executionResult: Schema.Union(ExecutionSucceeded, ExecutionReverted),
|
|
378
426
|
});
|
|
379
427
|
|
|
428
|
+
export type TransactionReceiptMeta = typeof TransactionReceiptMeta.Type;
|
|
429
|
+
|
|
380
430
|
export const InvokeTransactionReceipt = Schema.Struct({
|
|
381
431
|
_tag: tag("invoke"),
|
|
382
432
|
invoke: Schema.Struct({}),
|
|
383
433
|
});
|
|
384
434
|
|
|
435
|
+
export type InvokeTransactionReceipt = typeof InvokeTransactionReceipt.Type;
|
|
436
|
+
|
|
385
437
|
export const L1HandlerTransactionReceipt = Schema.Struct({
|
|
386
438
|
_tag: tag("l1Handler"),
|
|
387
439
|
l1Handler: Schema.Struct({
|
|
@@ -389,11 +441,16 @@ export const L1HandlerTransactionReceipt = Schema.Struct({
|
|
|
389
441
|
}),
|
|
390
442
|
});
|
|
391
443
|
|
|
444
|
+
export type L1HandlerTransactionReceipt =
|
|
445
|
+
typeof L1HandlerTransactionReceipt.Type;
|
|
446
|
+
|
|
392
447
|
export const DeclareTransactionReceipt = Schema.Struct({
|
|
393
448
|
_tag: tag("declare"),
|
|
394
449
|
declare: Schema.Struct({}),
|
|
395
450
|
});
|
|
396
451
|
|
|
452
|
+
export type DeclareTransactionReceipt = typeof DeclareTransactionReceipt.Type;
|
|
453
|
+
|
|
397
454
|
export const DeployTransactionReceipt = Schema.Struct({
|
|
398
455
|
_tag: tag("deploy"),
|
|
399
456
|
deploy: Schema.Struct({
|
|
@@ -401,6 +458,8 @@ export const DeployTransactionReceipt = Schema.Struct({
|
|
|
401
458
|
}),
|
|
402
459
|
});
|
|
403
460
|
|
|
461
|
+
export type DeployTransactionReceipt = typeof DeployTransactionReceipt.Type;
|
|
462
|
+
|
|
404
463
|
export const DeployAccountTransactionReceipt = Schema.Struct({
|
|
405
464
|
_tag: tag("deployAccount"),
|
|
406
465
|
deployAccount: Schema.Struct({
|
|
@@ -408,6 +467,9 @@ export const DeployAccountTransactionReceipt = Schema.Struct({
|
|
|
408
467
|
}),
|
|
409
468
|
});
|
|
410
469
|
|
|
470
|
+
export type DeployAccountTransactionReceipt =
|
|
471
|
+
typeof DeployAccountTransactionReceipt.Type;
|
|
472
|
+
|
|
411
473
|
/** A transaction receipt.
|
|
412
474
|
*
|
|
413
475
|
* @prop meta Transaction receipt metadata.
|
package/src/filter.ts
CHANGED
|
@@ -147,56 +147,80 @@ export const InvokeTransactionV0Filter = Schema.Struct({
|
|
|
147
147
|
invokeV0: Schema.Struct({}),
|
|
148
148
|
});
|
|
149
149
|
|
|
150
|
+
export type InvokeTransactionV0Filter = typeof InvokeTransactionV0Filter.Type;
|
|
151
|
+
|
|
150
152
|
export const InvokeTransactionV1Filter = Schema.Struct({
|
|
151
153
|
_tag: tag("invokeV1"),
|
|
152
154
|
invokeV1: Schema.Struct({}),
|
|
153
155
|
});
|
|
154
156
|
|
|
157
|
+
export type InvokeTransactionV1Filter = typeof InvokeTransactionV1Filter.Type;
|
|
158
|
+
|
|
155
159
|
export const InvokeTransactionV3Filter = Schema.Struct({
|
|
156
160
|
_tag: tag("invokeV3"),
|
|
157
161
|
invokeV3: Schema.Struct({}),
|
|
158
162
|
});
|
|
159
163
|
|
|
164
|
+
export type InvokeTransactionV3Filter = typeof InvokeTransactionV3Filter.Type;
|
|
165
|
+
|
|
160
166
|
export const DeployTransactionFilter = Schema.Struct({
|
|
161
167
|
_tag: tag("deploy"),
|
|
162
168
|
deploy: Schema.Struct({}),
|
|
163
169
|
});
|
|
164
170
|
|
|
171
|
+
export type DeployTransactionFilter = typeof DeployTransactionFilter.Type;
|
|
172
|
+
|
|
165
173
|
export const DeclareV0TransactionFilter = Schema.Struct({
|
|
166
174
|
_tag: tag("declareV0"),
|
|
167
175
|
declareV0: Schema.Struct({}),
|
|
168
176
|
});
|
|
169
177
|
|
|
178
|
+
export type DeclareV0TransactionFilter = typeof DeclareV0TransactionFilter.Type;
|
|
179
|
+
|
|
170
180
|
export const DeclareV1TransactionFilter = Schema.Struct({
|
|
171
181
|
_tag: tag("declareV1"),
|
|
172
182
|
declareV1: Schema.Struct({}),
|
|
173
183
|
});
|
|
174
184
|
|
|
185
|
+
export type DeclareV1TransactionFilter = typeof DeclareV1TransactionFilter.Type;
|
|
186
|
+
|
|
175
187
|
export const DeclareV2TransactionFilter = Schema.Struct({
|
|
176
188
|
_tag: tag("declareV2"),
|
|
177
189
|
declareV2: Schema.Struct({}),
|
|
178
190
|
});
|
|
179
191
|
|
|
192
|
+
export type DeclareV2TransactionFilter = typeof DeclareV2TransactionFilter.Type;
|
|
193
|
+
|
|
180
194
|
export const DeclareV3TransactionFilter = Schema.Struct({
|
|
181
195
|
_tag: tag("declareV3"),
|
|
182
196
|
declareV3: Schema.Struct({}),
|
|
183
197
|
});
|
|
184
198
|
|
|
199
|
+
export type DeclareV3TransactionFilter = typeof DeclareV3TransactionFilter.Type;
|
|
200
|
+
|
|
185
201
|
export const L1HandlerTransactionFilter = Schema.Struct({
|
|
186
202
|
_tag: tag("l1Handler"),
|
|
187
203
|
l1Handler: Schema.Struct({}),
|
|
188
204
|
});
|
|
189
205
|
|
|
206
|
+
export type L1HandlerTransactionFilter = typeof L1HandlerTransactionFilter.Type;
|
|
207
|
+
|
|
190
208
|
export const DeployAccountV1TransactionFilter = Schema.Struct({
|
|
191
209
|
_tag: tag("deployAccountV1"),
|
|
192
210
|
deployAccountV1: Schema.Struct({}),
|
|
193
211
|
});
|
|
194
212
|
|
|
213
|
+
export type DeployAccountV1TransactionFilter =
|
|
214
|
+
typeof DeployAccountV1TransactionFilter.Type;
|
|
215
|
+
|
|
195
216
|
export const DeployAccountV3TransactionFilter = Schema.Struct({
|
|
196
217
|
_tag: tag("deployAccountV3"),
|
|
197
218
|
deployAccountV3: Schema.Struct({}),
|
|
198
219
|
});
|
|
199
220
|
|
|
221
|
+
export type DeployAccountV3TransactionFilter =
|
|
222
|
+
typeof DeployAccountV3TransactionFilter.Type;
|
|
223
|
+
|
|
200
224
|
/** Filter transactions.
|
|
201
225
|
*
|
|
202
226
|
* @prop transactionStatus Filter based on the transaction status.
|
|
@@ -275,6 +299,8 @@ export const ContractChangeFilter = Schema.Struct({
|
|
|
275
299
|
),
|
|
276
300
|
});
|
|
277
301
|
|
|
302
|
+
export type ContractChangeFilter = typeof ContractChangeFilter.Type;
|
|
303
|
+
|
|
278
304
|
/** Filter updates to nonces.
|
|
279
305
|
*
|
|
280
306
|
* @prop contractAddress Filter by contract address.
|
|
@@ -284,6 +310,8 @@ export const NonceUpdateFilter = Schema.Struct({
|
|
|
284
310
|
contractAddress: Schema.optional(FieldElement),
|
|
285
311
|
});
|
|
286
312
|
|
|
313
|
+
export type NonceUpdateFilter = typeof NonceUpdateFilter.Type;
|
|
314
|
+
|
|
287
315
|
export const Filter = Schema.Struct({
|
|
288
316
|
header: Schema.optional(HeaderFilter),
|
|
289
317
|
transactions: Schema.optional(Schema.Array(TransactionFilter)),
|