@apibara/starknet 0.3.1 → 0.5.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.
@@ -2106,6 +2106,9 @@ export namespace apibara {
2106
2106
 
2107
2107
  /** Block l2ToL1Messages */
2108
2108
  l2ToL1Messages?: (apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction[]|null);
2109
+
2110
+ /** Block empty */
2111
+ empty?: (boolean|null);
2109
2112
  }
2110
2113
 
2111
2114
  /** Represents a Block. */
@@ -2135,6 +2138,9 @@ export namespace apibara {
2135
2138
  /** Block l2ToL1Messages. */
2136
2139
  public l2ToL1Messages: apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction[];
2137
2140
 
2141
+ /** Block empty. */
2142
+ public empty: boolean;
2143
+
2138
2144
  /**
2139
2145
  * Creates a new Block instance using the specified properties.
2140
2146
  * @param [properties] Properties to set
@@ -2233,6 +2239,18 @@ export namespace apibara {
2233
2239
 
2234
2240
  /** BlockHeader timestamp */
2235
2241
  timestamp?: (google.protobuf.ITimestamp|null);
2242
+
2243
+ /** BlockHeader starknetVersion */
2244
+ starknetVersion?: (string|null);
2245
+
2246
+ /** BlockHeader l1GasPrice */
2247
+ l1GasPrice?: (apibara.starknet.v1alpha2.IResourcePrice|null);
2248
+
2249
+ /** BlockHeader l1DataGasPrice */
2250
+ l1DataGasPrice?: (apibara.starknet.v1alpha2.IResourcePrice|null);
2251
+
2252
+ /** BlockHeader l1DataAvailabilityMode */
2253
+ l1DataAvailabilityMode?: (apibara.starknet.v1alpha2.L1DataAvailabilityMode|null);
2236
2254
  }
2237
2255
 
2238
2256
  /** Represents a BlockHeader. */
@@ -2262,6 +2280,18 @@ export namespace apibara {
2262
2280
  /** BlockHeader timestamp. */
2263
2281
  public timestamp?: (google.protobuf.ITimestamp|null);
2264
2282
 
2283
+ /** BlockHeader starknetVersion. */
2284
+ public starknetVersion: string;
2285
+
2286
+ /** BlockHeader l1GasPrice. */
2287
+ public l1GasPrice?: (apibara.starknet.v1alpha2.IResourcePrice|null);
2288
+
2289
+ /** BlockHeader l1DataGasPrice. */
2290
+ public l1DataGasPrice?: (apibara.starknet.v1alpha2.IResourcePrice|null);
2291
+
2292
+ /** BlockHeader l1DataAvailabilityMode. */
2293
+ public l1DataAvailabilityMode: apibara.starknet.v1alpha2.L1DataAvailabilityMode;
2294
+
2265
2295
  /**
2266
2296
  * Creates a new BlockHeader instance using the specified properties.
2267
2297
  * @param [properties] Properties to set
@@ -2340,6 +2370,13 @@ export namespace apibara {
2340
2370
  public static getTypeUrl(typeUrlPrefix?: string): string;
2341
2371
  }
2342
2372
 
2373
+ /** L1DataAvailabilityMode enum. */
2374
+ enum L1DataAvailabilityMode {
2375
+ L1_DATA_AVAILABILITY_MODE_UNSPECIFIED = 0,
2376
+ L1_DATA_AVAILABILITY_MODE_BLOB = 1,
2377
+ L1_DATA_AVAILABILITY_MODE_CALLDATA = 2
2378
+ }
2379
+
2343
2380
  /** BlockStatus enum. */
2344
2381
  enum BlockStatus {
2345
2382
  BLOCK_STATUS_UNSPECIFIED = 0,
@@ -2475,6 +2512,15 @@ export namespace apibara {
2475
2512
 
2476
2513
  /** Transaction deployAccount */
2477
2514
  deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransaction|null);
2515
+
2516
+ /** Transaction deployAccountV3 */
2517
+ deployAccountV3?: (apibara.starknet.v1alpha2.IDeployAccountTransactionV3|null);
2518
+
2519
+ /** Transaction invokeV3 */
2520
+ invokeV3?: (apibara.starknet.v1alpha2.IInvokeTransactionV3|null);
2521
+
2522
+ /** Transaction declareV3 */
2523
+ declareV3?: (apibara.starknet.v1alpha2.IDeclareTransactionV3|null);
2478
2524
  }
2479
2525
 
2480
2526
  /** Represents a Transaction. */
@@ -2507,8 +2553,17 @@ export namespace apibara {
2507
2553
  /** Transaction deployAccount. */
2508
2554
  public deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransaction|null);
2509
2555
 
2556
+ /** Transaction deployAccountV3. */
2557
+ public deployAccountV3?: (apibara.starknet.v1alpha2.IDeployAccountTransactionV3|null);
2558
+
2559
+ /** Transaction invokeV3. */
2560
+ public invokeV3?: (apibara.starknet.v1alpha2.IInvokeTransactionV3|null);
2561
+
2562
+ /** Transaction declareV3. */
2563
+ public declareV3?: (apibara.starknet.v1alpha2.IDeclareTransactionV3|null);
2564
+
2510
2565
  /** Transaction transaction. */
2511
- public transaction?: ("invokeV0"|"invokeV1"|"deploy"|"declare"|"l1Handler"|"deployAccount");
2566
+ public transaction?: ("invokeV0"|"invokeV1"|"deploy"|"declare"|"l1Handler"|"deployAccount"|"deployAccountV3"|"invokeV3"|"declareV3");
2512
2567
 
2513
2568
  /**
2514
2569
  * Creates a new Transaction instance using the specified properties.
@@ -2605,6 +2660,24 @@ export namespace apibara {
2605
2660
 
2606
2661
  /** TransactionMeta version */
2607
2662
  version?: (number|Long|null);
2663
+
2664
+ /** TransactionMeta resourceBounds */
2665
+ resourceBounds?: (apibara.starknet.v1alpha2.IResourceBoundsMapping|null);
2666
+
2667
+ /** TransactionMeta tip */
2668
+ tip?: (number|Long|null);
2669
+
2670
+ /** TransactionMeta paymasterData */
2671
+ paymasterData?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
2672
+
2673
+ /** TransactionMeta nonceDataAvailabilityMode */
2674
+ nonceDataAvailabilityMode?: (apibara.starknet.v1alpha2.DataAvailabilityMode|null);
2675
+
2676
+ /** TransactionMeta feeDataAvailabilityMode */
2677
+ feeDataAvailabilityMode?: (apibara.starknet.v1alpha2.DataAvailabilityMode|null);
2678
+
2679
+ /** TransactionMeta transactionIndex */
2680
+ transactionIndex?: (number|Long|null);
2608
2681
  }
2609
2682
 
2610
2683
  /** Represents a TransactionMeta. */
@@ -2631,6 +2704,24 @@ export namespace apibara {
2631
2704
  /** TransactionMeta version. */
2632
2705
  public version: (number|Long);
2633
2706
 
2707
+ /** TransactionMeta resourceBounds. */
2708
+ public resourceBounds?: (apibara.starknet.v1alpha2.IResourceBoundsMapping|null);
2709
+
2710
+ /** TransactionMeta tip. */
2711
+ public tip: (number|Long);
2712
+
2713
+ /** TransactionMeta paymasterData. */
2714
+ public paymasterData: apibara.starknet.v1alpha2.IFieldElement[];
2715
+
2716
+ /** TransactionMeta nonceDataAvailabilityMode. */
2717
+ public nonceDataAvailabilityMode: apibara.starknet.v1alpha2.DataAvailabilityMode;
2718
+
2719
+ /** TransactionMeta feeDataAvailabilityMode. */
2720
+ public feeDataAvailabilityMode: apibara.starknet.v1alpha2.DataAvailabilityMode;
2721
+
2722
+ /** TransactionMeta transactionIndex. */
2723
+ public transactionIndex: (number|Long);
2724
+
2634
2725
  /**
2635
2726
  * Creates a new TransactionMeta instance using the specified properties.
2636
2727
  * @param [properties] Properties to set
@@ -2921,6 +3012,115 @@ export namespace apibara {
2921
3012
  public static getTypeUrl(typeUrlPrefix?: string): string;
2922
3013
  }
2923
3014
 
3015
+ /** Properties of an InvokeTransactionV3. */
3016
+ interface IInvokeTransactionV3 {
3017
+
3018
+ /** InvokeTransactionV3 senderAddress */
3019
+ senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3020
+
3021
+ /** InvokeTransactionV3 calldata */
3022
+ calldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
3023
+
3024
+ /** InvokeTransactionV3 accountDeploymentData */
3025
+ accountDeploymentData?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
3026
+ }
3027
+
3028
+ /** Represents an InvokeTransactionV3. */
3029
+ class InvokeTransactionV3 implements IInvokeTransactionV3 {
3030
+
3031
+ /**
3032
+ * Constructs a new InvokeTransactionV3.
3033
+ * @param [properties] Properties to set
3034
+ */
3035
+ constructor(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV3);
3036
+
3037
+ /** InvokeTransactionV3 senderAddress. */
3038
+ public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3039
+
3040
+ /** InvokeTransactionV3 calldata. */
3041
+ public calldata: apibara.starknet.v1alpha2.IFieldElement[];
3042
+
3043
+ /** InvokeTransactionV3 accountDeploymentData. */
3044
+ public accountDeploymentData: apibara.starknet.v1alpha2.IFieldElement[];
3045
+
3046
+ /**
3047
+ * Creates a new InvokeTransactionV3 instance using the specified properties.
3048
+ * @param [properties] Properties to set
3049
+ * @returns InvokeTransactionV3 instance
3050
+ */
3051
+ public static create(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV3): apibara.starknet.v1alpha2.InvokeTransactionV3;
3052
+
3053
+ /**
3054
+ * Encodes the specified InvokeTransactionV3 message. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV3.verify|verify} messages.
3055
+ * @param message InvokeTransactionV3 message or plain object to encode
3056
+ * @param [writer] Writer to encode to
3057
+ * @returns Writer
3058
+ */
3059
+ public static encode(message: apibara.starknet.v1alpha2.IInvokeTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
3060
+
3061
+ /**
3062
+ * Encodes the specified InvokeTransactionV3 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV3.verify|verify} messages.
3063
+ * @param message InvokeTransactionV3 message or plain object to encode
3064
+ * @param [writer] Writer to encode to
3065
+ * @returns Writer
3066
+ */
3067
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IInvokeTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
3068
+
3069
+ /**
3070
+ * Decodes an InvokeTransactionV3 message from the specified reader or buffer.
3071
+ * @param reader Reader or buffer to decode from
3072
+ * @param [length] Message length if known beforehand
3073
+ * @returns InvokeTransactionV3
3074
+ * @throws {Error} If the payload is not a reader or valid buffer
3075
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3076
+ */
3077
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.InvokeTransactionV3;
3078
+
3079
+ /**
3080
+ * Decodes an InvokeTransactionV3 message from the specified reader or buffer, length delimited.
3081
+ * @param reader Reader or buffer to decode from
3082
+ * @returns InvokeTransactionV3
3083
+ * @throws {Error} If the payload is not a reader or valid buffer
3084
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3085
+ */
3086
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.InvokeTransactionV3;
3087
+
3088
+ /**
3089
+ * Verifies an InvokeTransactionV3 message.
3090
+ * @param message Plain object to verify
3091
+ * @returns `null` if valid, otherwise the reason why it is not
3092
+ */
3093
+ public static verify(message: { [k: string]: any }): (string|null);
3094
+
3095
+ /**
3096
+ * Creates an InvokeTransactionV3 message from a plain object. Also converts values to their respective internal types.
3097
+ * @param object Plain object
3098
+ * @returns InvokeTransactionV3
3099
+ */
3100
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.InvokeTransactionV3;
3101
+
3102
+ /**
3103
+ * Creates a plain object from an InvokeTransactionV3 message. Also converts values to other types if specified.
3104
+ * @param message InvokeTransactionV3
3105
+ * @param [options] Conversion options
3106
+ * @returns Plain object
3107
+ */
3108
+ public static toObject(message: apibara.starknet.v1alpha2.InvokeTransactionV3, options?: $protobuf.IConversionOptions): { [k: string]: any };
3109
+
3110
+ /**
3111
+ * Converts this InvokeTransactionV3 to JSON.
3112
+ * @returns JSON object
3113
+ */
3114
+ public toJSON(): { [k: string]: any };
3115
+
3116
+ /**
3117
+ * Gets the default type url for InvokeTransactionV3
3118
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3119
+ * @returns The default type url
3120
+ */
3121
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3122
+ }
3123
+
2924
3124
  /** Properties of a DeployTransaction. */
2925
3125
  interface IDeployTransaction {
2926
3126
 
@@ -3139,6 +3339,121 @@ export namespace apibara {
3139
3339
  public static getTypeUrl(typeUrlPrefix?: string): string;
3140
3340
  }
3141
3341
 
3342
+ /** Properties of a DeclareTransactionV3. */
3343
+ interface IDeclareTransactionV3 {
3344
+
3345
+ /** DeclareTransactionV3 classHash */
3346
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3347
+
3348
+ /** DeclareTransactionV3 senderAddress */
3349
+ senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3350
+
3351
+ /** DeclareTransactionV3 compiledClassHash */
3352
+ compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3353
+
3354
+ /** DeclareTransactionV3 accountDeploymentData */
3355
+ accountDeploymentData?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
3356
+ }
3357
+
3358
+ /** Represents a DeclareTransactionV3. */
3359
+ class DeclareTransactionV3 implements IDeclareTransactionV3 {
3360
+
3361
+ /**
3362
+ * Constructs a new DeclareTransactionV3.
3363
+ * @param [properties] Properties to set
3364
+ */
3365
+ constructor(properties?: apibara.starknet.v1alpha2.IDeclareTransactionV3);
3366
+
3367
+ /** DeclareTransactionV3 classHash. */
3368
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3369
+
3370
+ /** DeclareTransactionV3 senderAddress. */
3371
+ public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3372
+
3373
+ /** DeclareTransactionV3 compiledClassHash. */
3374
+ public compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3375
+
3376
+ /** DeclareTransactionV3 accountDeploymentData. */
3377
+ public accountDeploymentData: apibara.starknet.v1alpha2.IFieldElement[];
3378
+
3379
+ /**
3380
+ * Creates a new DeclareTransactionV3 instance using the specified properties.
3381
+ * @param [properties] Properties to set
3382
+ * @returns DeclareTransactionV3 instance
3383
+ */
3384
+ public static create(properties?: apibara.starknet.v1alpha2.IDeclareTransactionV3): apibara.starknet.v1alpha2.DeclareTransactionV3;
3385
+
3386
+ /**
3387
+ * Encodes the specified DeclareTransactionV3 message. Does not implicitly {@link apibara.starknet.v1alpha2.DeclareTransactionV3.verify|verify} messages.
3388
+ * @param message DeclareTransactionV3 message or plain object to encode
3389
+ * @param [writer] Writer to encode to
3390
+ * @returns Writer
3391
+ */
3392
+ public static encode(message: apibara.starknet.v1alpha2.IDeclareTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
3393
+
3394
+ /**
3395
+ * Encodes the specified DeclareTransactionV3 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeclareTransactionV3.verify|verify} messages.
3396
+ * @param message DeclareTransactionV3 message or plain object to encode
3397
+ * @param [writer] Writer to encode to
3398
+ * @returns Writer
3399
+ */
3400
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeclareTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
3401
+
3402
+ /**
3403
+ * Decodes a DeclareTransactionV3 message from the specified reader or buffer.
3404
+ * @param reader Reader or buffer to decode from
3405
+ * @param [length] Message length if known beforehand
3406
+ * @returns DeclareTransactionV3
3407
+ * @throws {Error} If the payload is not a reader or valid buffer
3408
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3409
+ */
3410
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeclareTransactionV3;
3411
+
3412
+ /**
3413
+ * Decodes a DeclareTransactionV3 message from the specified reader or buffer, length delimited.
3414
+ * @param reader Reader or buffer to decode from
3415
+ * @returns DeclareTransactionV3
3416
+ * @throws {Error} If the payload is not a reader or valid buffer
3417
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3418
+ */
3419
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeclareTransactionV3;
3420
+
3421
+ /**
3422
+ * Verifies a DeclareTransactionV3 message.
3423
+ * @param message Plain object to verify
3424
+ * @returns `null` if valid, otherwise the reason why it is not
3425
+ */
3426
+ public static verify(message: { [k: string]: any }): (string|null);
3427
+
3428
+ /**
3429
+ * Creates a DeclareTransactionV3 message from a plain object. Also converts values to their respective internal types.
3430
+ * @param object Plain object
3431
+ * @returns DeclareTransactionV3
3432
+ */
3433
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeclareTransactionV3;
3434
+
3435
+ /**
3436
+ * Creates a plain object from a DeclareTransactionV3 message. Also converts values to other types if specified.
3437
+ * @param message DeclareTransactionV3
3438
+ * @param [options] Conversion options
3439
+ * @returns Plain object
3440
+ */
3441
+ public static toObject(message: apibara.starknet.v1alpha2.DeclareTransactionV3, options?: $protobuf.IConversionOptions): { [k: string]: any };
3442
+
3443
+ /**
3444
+ * Converts this DeclareTransactionV3 to JSON.
3445
+ * @returns JSON object
3446
+ */
3447
+ public toJSON(): { [k: string]: any };
3448
+
3449
+ /**
3450
+ * Gets the default type url for DeclareTransactionV3
3451
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3452
+ * @returns The default type url
3453
+ */
3454
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3455
+ }
3456
+
3142
3457
  /** Properties of a L1HandlerTransaction. */
3143
3458
  interface IL1HandlerTransaction {
3144
3459
 
@@ -3357,143 +3672,283 @@ export namespace apibara {
3357
3672
  public static getTypeUrl(typeUrlPrefix?: string): string;
3358
3673
  }
3359
3674
 
3360
- /** Properties of a TransactionReceipt. */
3361
- interface ITransactionReceipt {
3362
-
3363
- /** TransactionReceipt transactionHash */
3364
- transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3365
-
3366
- /** TransactionReceipt transactionIndex */
3367
- transactionIndex?: (number|Long|null);
3368
-
3369
- /** TransactionReceipt actualFee */
3370
- actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
3675
+ /** Properties of a DeployAccountTransactionV3. */
3676
+ interface IDeployAccountTransactionV3 {
3371
3677
 
3372
- /** TransactionReceipt l2ToL1Messages */
3373
- l2ToL1Messages?: (apibara.starknet.v1alpha2.IL2ToL1Message[]|null);
3678
+ /** DeployAccountTransactionV3 constructorCalldata */
3679
+ constructorCalldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
3374
3680
 
3375
- /** TransactionReceipt events */
3376
- events?: (apibara.starknet.v1alpha2.IEvent[]|null);
3681
+ /** DeployAccountTransactionV3 contractAddressSalt */
3682
+ contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
3377
3683
 
3378
- /** TransactionReceipt contractAddress */
3379
- contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3684
+ /** DeployAccountTransactionV3 classHash */
3685
+ classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3380
3686
  }
3381
3687
 
3382
- /** Represents a TransactionReceipt. */
3383
- class TransactionReceipt implements ITransactionReceipt {
3688
+ /** Represents a DeployAccountTransactionV3. */
3689
+ class DeployAccountTransactionV3 implements IDeployAccountTransactionV3 {
3384
3690
 
3385
3691
  /**
3386
- * Constructs a new TransactionReceipt.
3692
+ * Constructs a new DeployAccountTransactionV3.
3387
3693
  * @param [properties] Properties to set
3388
3694
  */
3389
- constructor(properties?: apibara.starknet.v1alpha2.ITransactionReceipt);
3390
-
3391
- /** TransactionReceipt transactionHash. */
3392
- public transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3393
-
3394
- /** TransactionReceipt transactionIndex. */
3395
- public transactionIndex: (number|Long);
3695
+ constructor(properties?: apibara.starknet.v1alpha2.IDeployAccountTransactionV3);
3396
3696
 
3397
- /** TransactionReceipt actualFee. */
3398
- public actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
3399
-
3400
- /** TransactionReceipt l2ToL1Messages. */
3401
- public l2ToL1Messages: apibara.starknet.v1alpha2.IL2ToL1Message[];
3697
+ /** DeployAccountTransactionV3 constructorCalldata. */
3698
+ public constructorCalldata: apibara.starknet.v1alpha2.IFieldElement[];
3402
3699
 
3403
- /** TransactionReceipt events. */
3404
- public events: apibara.starknet.v1alpha2.IEvent[];
3700
+ /** DeployAccountTransactionV3 contractAddressSalt. */
3701
+ public contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
3405
3702
 
3406
- /** TransactionReceipt contractAddress. */
3407
- public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3703
+ /** DeployAccountTransactionV3 classHash. */
3704
+ public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3408
3705
 
3409
3706
  /**
3410
- * Creates a new TransactionReceipt instance using the specified properties.
3707
+ * Creates a new DeployAccountTransactionV3 instance using the specified properties.
3411
3708
  * @param [properties] Properties to set
3412
- * @returns TransactionReceipt instance
3709
+ * @returns DeployAccountTransactionV3 instance
3413
3710
  */
3414
- public static create(properties?: apibara.starknet.v1alpha2.ITransactionReceipt): apibara.starknet.v1alpha2.TransactionReceipt;
3711
+ public static create(properties?: apibara.starknet.v1alpha2.IDeployAccountTransactionV3): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
3415
3712
 
3416
3713
  /**
3417
- * Encodes the specified TransactionReceipt message. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionReceipt.verify|verify} messages.
3418
- * @param message TransactionReceipt message or plain object to encode
3714
+ * Encodes the specified DeployAccountTransactionV3 message. Does not implicitly {@link apibara.starknet.v1alpha2.DeployAccountTransactionV3.verify|verify} messages.
3715
+ * @param message DeployAccountTransactionV3 message or plain object to encode
3419
3716
  * @param [writer] Writer to encode to
3420
3717
  * @returns Writer
3421
3718
  */
3422
- public static encode(message: apibara.starknet.v1alpha2.ITransactionReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
3719
+ public static encode(message: apibara.starknet.v1alpha2.IDeployAccountTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
3423
3720
 
3424
3721
  /**
3425
- * Encodes the specified TransactionReceipt message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionReceipt.verify|verify} messages.
3426
- * @param message TransactionReceipt message or plain object to encode
3722
+ * Encodes the specified DeployAccountTransactionV3 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeployAccountTransactionV3.verify|verify} messages.
3723
+ * @param message DeployAccountTransactionV3 message or plain object to encode
3427
3724
  * @param [writer] Writer to encode to
3428
3725
  * @returns Writer
3429
3726
  */
3430
- public static encodeDelimited(message: apibara.starknet.v1alpha2.ITransactionReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
3727
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployAccountTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
3431
3728
 
3432
3729
  /**
3433
- * Decodes a TransactionReceipt message from the specified reader or buffer.
3730
+ * Decodes a DeployAccountTransactionV3 message from the specified reader or buffer.
3434
3731
  * @param reader Reader or buffer to decode from
3435
3732
  * @param [length] Message length if known beforehand
3436
- * @returns TransactionReceipt
3733
+ * @returns DeployAccountTransactionV3
3437
3734
  * @throws {Error} If the payload is not a reader or valid buffer
3438
3735
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3439
3736
  */
3440
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.TransactionReceipt;
3737
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
3441
3738
 
3442
3739
  /**
3443
- * Decodes a TransactionReceipt message from the specified reader or buffer, length delimited.
3740
+ * Decodes a DeployAccountTransactionV3 message from the specified reader or buffer, length delimited.
3444
3741
  * @param reader Reader or buffer to decode from
3445
- * @returns TransactionReceipt
3742
+ * @returns DeployAccountTransactionV3
3446
3743
  * @throws {Error} If the payload is not a reader or valid buffer
3447
3744
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3448
3745
  */
3449
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.TransactionReceipt;
3746
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
3450
3747
 
3451
3748
  /**
3452
- * Verifies a TransactionReceipt message.
3749
+ * Verifies a DeployAccountTransactionV3 message.
3453
3750
  * @param message Plain object to verify
3454
3751
  * @returns `null` if valid, otherwise the reason why it is not
3455
3752
  */
3456
3753
  public static verify(message: { [k: string]: any }): (string|null);
3457
3754
 
3458
3755
  /**
3459
- * Creates a TransactionReceipt message from a plain object. Also converts values to their respective internal types.
3756
+ * Creates a DeployAccountTransactionV3 message from a plain object. Also converts values to their respective internal types.
3460
3757
  * @param object Plain object
3461
- * @returns TransactionReceipt
3758
+ * @returns DeployAccountTransactionV3
3462
3759
  */
3463
- public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.TransactionReceipt;
3760
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
3464
3761
 
3465
3762
  /**
3466
- * Creates a plain object from a TransactionReceipt message. Also converts values to other types if specified.
3467
- * @param message TransactionReceipt
3763
+ * Creates a plain object from a DeployAccountTransactionV3 message. Also converts values to other types if specified.
3764
+ * @param message DeployAccountTransactionV3
3468
3765
  * @param [options] Conversion options
3469
3766
  * @returns Plain object
3470
3767
  */
3471
- public static toObject(message: apibara.starknet.v1alpha2.TransactionReceipt, options?: $protobuf.IConversionOptions): { [k: string]: any };
3768
+ public static toObject(message: apibara.starknet.v1alpha2.DeployAccountTransactionV3, options?: $protobuf.IConversionOptions): { [k: string]: any };
3472
3769
 
3473
3770
  /**
3474
- * Converts this TransactionReceipt to JSON.
3771
+ * Converts this DeployAccountTransactionV3 to JSON.
3475
3772
  * @returns JSON object
3476
3773
  */
3477
3774
  public toJSON(): { [k: string]: any };
3478
3775
 
3479
3776
  /**
3480
- * Gets the default type url for TransactionReceipt
3777
+ * Gets the default type url for DeployAccountTransactionV3
3481
3778
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3482
3779
  * @returns The default type url
3483
3780
  */
3484
3781
  public static getTypeUrl(typeUrlPrefix?: string): string;
3485
3782
  }
3486
3783
 
3487
- /** Properties of a L2ToL1MessageWithTransaction. */
3488
- interface IL2ToL1MessageWithTransaction {
3784
+ /** ExecutionStatus enum. */
3785
+ enum ExecutionStatus {
3786
+ EXECUTION_STATUS_UNSPECIFIED = 0,
3787
+ EXECUTION_STATUS_SUCCEEDED = 1,
3788
+ EXECUTION_STATUS_REVERTED = 2
3789
+ }
3489
3790
 
3490
- /** L2ToL1MessageWithTransaction transaction */
3491
- transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
3791
+ /** Properties of a TransactionReceipt. */
3792
+ interface ITransactionReceipt {
3492
3793
 
3493
- /** L2ToL1MessageWithTransaction receipt */
3494
- receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
3794
+ /** TransactionReceipt transactionHash */
3795
+ transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3495
3796
 
3496
- /** L2ToL1MessageWithTransaction message */
3797
+ /** TransactionReceipt transactionIndex */
3798
+ transactionIndex?: (number|Long|null);
3799
+
3800
+ /** TransactionReceipt actualFee */
3801
+ actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
3802
+
3803
+ /** TransactionReceipt l2ToL1Messages */
3804
+ l2ToL1Messages?: (apibara.starknet.v1alpha2.IL2ToL1Message[]|null);
3805
+
3806
+ /** TransactionReceipt events */
3807
+ events?: (apibara.starknet.v1alpha2.IEvent[]|null);
3808
+
3809
+ /** TransactionReceipt contractAddress */
3810
+ contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3811
+
3812
+ /** TransactionReceipt executionStatus */
3813
+ executionStatus?: (apibara.starknet.v1alpha2.ExecutionStatus|null);
3814
+
3815
+ /** TransactionReceipt revertReason */
3816
+ revertReason?: (string|null);
3817
+
3818
+ /** TransactionReceipt actualFeePaid */
3819
+ actualFeePaid?: (apibara.starknet.v1alpha2.IFeePayment|null);
3820
+
3821
+ /** TransactionReceipt executionResources */
3822
+ executionResources?: (apibara.starknet.v1alpha2.IExecutionResources|null);
3823
+ }
3824
+
3825
+ /** Represents a TransactionReceipt. */
3826
+ class TransactionReceipt implements ITransactionReceipt {
3827
+
3828
+ /**
3829
+ * Constructs a new TransactionReceipt.
3830
+ * @param [properties] Properties to set
3831
+ */
3832
+ constructor(properties?: apibara.starknet.v1alpha2.ITransactionReceipt);
3833
+
3834
+ /** TransactionReceipt transactionHash. */
3835
+ public transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
3836
+
3837
+ /** TransactionReceipt transactionIndex. */
3838
+ public transactionIndex: (number|Long);
3839
+
3840
+ /** TransactionReceipt actualFee. */
3841
+ public actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
3842
+
3843
+ /** TransactionReceipt l2ToL1Messages. */
3844
+ public l2ToL1Messages: apibara.starknet.v1alpha2.IL2ToL1Message[];
3845
+
3846
+ /** TransactionReceipt events. */
3847
+ public events: apibara.starknet.v1alpha2.IEvent[];
3848
+
3849
+ /** TransactionReceipt contractAddress. */
3850
+ public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
3851
+
3852
+ /** TransactionReceipt executionStatus. */
3853
+ public executionStatus: apibara.starknet.v1alpha2.ExecutionStatus;
3854
+
3855
+ /** TransactionReceipt revertReason. */
3856
+ public revertReason: string;
3857
+
3858
+ /** TransactionReceipt actualFeePaid. */
3859
+ public actualFeePaid?: (apibara.starknet.v1alpha2.IFeePayment|null);
3860
+
3861
+ /** TransactionReceipt executionResources. */
3862
+ public executionResources?: (apibara.starknet.v1alpha2.IExecutionResources|null);
3863
+
3864
+ /**
3865
+ * Creates a new TransactionReceipt instance using the specified properties.
3866
+ * @param [properties] Properties to set
3867
+ * @returns TransactionReceipt instance
3868
+ */
3869
+ public static create(properties?: apibara.starknet.v1alpha2.ITransactionReceipt): apibara.starknet.v1alpha2.TransactionReceipt;
3870
+
3871
+ /**
3872
+ * Encodes the specified TransactionReceipt message. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionReceipt.verify|verify} messages.
3873
+ * @param message TransactionReceipt message or plain object to encode
3874
+ * @param [writer] Writer to encode to
3875
+ * @returns Writer
3876
+ */
3877
+ public static encode(message: apibara.starknet.v1alpha2.ITransactionReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
3878
+
3879
+ /**
3880
+ * Encodes the specified TransactionReceipt message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionReceipt.verify|verify} messages.
3881
+ * @param message TransactionReceipt message or plain object to encode
3882
+ * @param [writer] Writer to encode to
3883
+ * @returns Writer
3884
+ */
3885
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.ITransactionReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
3886
+
3887
+ /**
3888
+ * Decodes a TransactionReceipt message from the specified reader or buffer.
3889
+ * @param reader Reader or buffer to decode from
3890
+ * @param [length] Message length if known beforehand
3891
+ * @returns TransactionReceipt
3892
+ * @throws {Error} If the payload is not a reader or valid buffer
3893
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3894
+ */
3895
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.TransactionReceipt;
3896
+
3897
+ /**
3898
+ * Decodes a TransactionReceipt message from the specified reader or buffer, length delimited.
3899
+ * @param reader Reader or buffer to decode from
3900
+ * @returns TransactionReceipt
3901
+ * @throws {Error} If the payload is not a reader or valid buffer
3902
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3903
+ */
3904
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.TransactionReceipt;
3905
+
3906
+ /**
3907
+ * Verifies a TransactionReceipt message.
3908
+ * @param message Plain object to verify
3909
+ * @returns `null` if valid, otherwise the reason why it is not
3910
+ */
3911
+ public static verify(message: { [k: string]: any }): (string|null);
3912
+
3913
+ /**
3914
+ * Creates a TransactionReceipt message from a plain object. Also converts values to their respective internal types.
3915
+ * @param object Plain object
3916
+ * @returns TransactionReceipt
3917
+ */
3918
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.TransactionReceipt;
3919
+
3920
+ /**
3921
+ * Creates a plain object from a TransactionReceipt message. Also converts values to other types if specified.
3922
+ * @param message TransactionReceipt
3923
+ * @param [options] Conversion options
3924
+ * @returns Plain object
3925
+ */
3926
+ public static toObject(message: apibara.starknet.v1alpha2.TransactionReceipt, options?: $protobuf.IConversionOptions): { [k: string]: any };
3927
+
3928
+ /**
3929
+ * Converts this TransactionReceipt to JSON.
3930
+ * @returns JSON object
3931
+ */
3932
+ public toJSON(): { [k: string]: any };
3933
+
3934
+ /**
3935
+ * Gets the default type url for TransactionReceipt
3936
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
3937
+ * @returns The default type url
3938
+ */
3939
+ public static getTypeUrl(typeUrlPrefix?: string): string;
3940
+ }
3941
+
3942
+ /** Properties of a L2ToL1MessageWithTransaction. */
3943
+ interface IL2ToL1MessageWithTransaction {
3944
+
3945
+ /** L2ToL1MessageWithTransaction transaction */
3946
+ transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
3947
+
3948
+ /** L2ToL1MessageWithTransaction receipt */
3949
+ receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
3950
+
3951
+ /** L2ToL1MessageWithTransaction message */
3497
3952
  message?: (apibara.starknet.v1alpha2.IL2ToL1Message|null);
3498
3953
  }
3499
3954
 
@@ -4882,6 +5337,892 @@ export namespace apibara {
4882
5337
  */
4883
5338
  public static getTypeUrl(typeUrlPrefix?: string): string;
4884
5339
  }
5340
+
5341
+ /** Properties of a ResourcePrice. */
5342
+ interface IResourcePrice {
5343
+
5344
+ /** ResourcePrice priceInFri */
5345
+ priceInFri?: (apibara.starknet.v1alpha2.IFieldElement|null);
5346
+
5347
+ /** ResourcePrice priceInWei */
5348
+ priceInWei?: (apibara.starknet.v1alpha2.IFieldElement|null);
5349
+ }
5350
+
5351
+ /** Represents a ResourcePrice. */
5352
+ class ResourcePrice implements IResourcePrice {
5353
+
5354
+ /**
5355
+ * Constructs a new ResourcePrice.
5356
+ * @param [properties] Properties to set
5357
+ */
5358
+ constructor(properties?: apibara.starknet.v1alpha2.IResourcePrice);
5359
+
5360
+ /** ResourcePrice priceInFri. */
5361
+ public priceInFri?: (apibara.starknet.v1alpha2.IFieldElement|null);
5362
+
5363
+ /** ResourcePrice priceInWei. */
5364
+ public priceInWei?: (apibara.starknet.v1alpha2.IFieldElement|null);
5365
+
5366
+ /**
5367
+ * Creates a new ResourcePrice instance using the specified properties.
5368
+ * @param [properties] Properties to set
5369
+ * @returns ResourcePrice instance
5370
+ */
5371
+ public static create(properties?: apibara.starknet.v1alpha2.IResourcePrice): apibara.starknet.v1alpha2.ResourcePrice;
5372
+
5373
+ /**
5374
+ * Encodes the specified ResourcePrice message. Does not implicitly {@link apibara.starknet.v1alpha2.ResourcePrice.verify|verify} messages.
5375
+ * @param message ResourcePrice message or plain object to encode
5376
+ * @param [writer] Writer to encode to
5377
+ * @returns Writer
5378
+ */
5379
+ public static encode(message: apibara.starknet.v1alpha2.IResourcePrice, writer?: $protobuf.Writer): $protobuf.Writer;
5380
+
5381
+ /**
5382
+ * Encodes the specified ResourcePrice message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ResourcePrice.verify|verify} messages.
5383
+ * @param message ResourcePrice message or plain object to encode
5384
+ * @param [writer] Writer to encode to
5385
+ * @returns Writer
5386
+ */
5387
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IResourcePrice, writer?: $protobuf.Writer): $protobuf.Writer;
5388
+
5389
+ /**
5390
+ * Decodes a ResourcePrice message from the specified reader or buffer.
5391
+ * @param reader Reader or buffer to decode from
5392
+ * @param [length] Message length if known beforehand
5393
+ * @returns ResourcePrice
5394
+ * @throws {Error} If the payload is not a reader or valid buffer
5395
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5396
+ */
5397
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ResourcePrice;
5398
+
5399
+ /**
5400
+ * Decodes a ResourcePrice message from the specified reader or buffer, length delimited.
5401
+ * @param reader Reader or buffer to decode from
5402
+ * @returns ResourcePrice
5403
+ * @throws {Error} If the payload is not a reader or valid buffer
5404
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5405
+ */
5406
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ResourcePrice;
5407
+
5408
+ /**
5409
+ * Verifies a ResourcePrice message.
5410
+ * @param message Plain object to verify
5411
+ * @returns `null` if valid, otherwise the reason why it is not
5412
+ */
5413
+ public static verify(message: { [k: string]: any }): (string|null);
5414
+
5415
+ /**
5416
+ * Creates a ResourcePrice message from a plain object. Also converts values to their respective internal types.
5417
+ * @param object Plain object
5418
+ * @returns ResourcePrice
5419
+ */
5420
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ResourcePrice;
5421
+
5422
+ /**
5423
+ * Creates a plain object from a ResourcePrice message. Also converts values to other types if specified.
5424
+ * @param message ResourcePrice
5425
+ * @param [options] Conversion options
5426
+ * @returns Plain object
5427
+ */
5428
+ public static toObject(message: apibara.starknet.v1alpha2.ResourcePrice, options?: $protobuf.IConversionOptions): { [k: string]: any };
5429
+
5430
+ /**
5431
+ * Converts this ResourcePrice to JSON.
5432
+ * @returns JSON object
5433
+ */
5434
+ public toJSON(): { [k: string]: any };
5435
+
5436
+ /**
5437
+ * Gets the default type url for ResourcePrice
5438
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5439
+ * @returns The default type url
5440
+ */
5441
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5442
+ }
5443
+
5444
+ /** Properties of a FeePayment. */
5445
+ interface IFeePayment {
5446
+
5447
+ /** FeePayment amount */
5448
+ amount?: (apibara.starknet.v1alpha2.IFieldElement|null);
5449
+
5450
+ /** FeePayment unit */
5451
+ unit?: (apibara.starknet.v1alpha2.PriceUnit|null);
5452
+ }
5453
+
5454
+ /** Represents a FeePayment. */
5455
+ class FeePayment implements IFeePayment {
5456
+
5457
+ /**
5458
+ * Constructs a new FeePayment.
5459
+ * @param [properties] Properties to set
5460
+ */
5461
+ constructor(properties?: apibara.starknet.v1alpha2.IFeePayment);
5462
+
5463
+ /** FeePayment amount. */
5464
+ public amount?: (apibara.starknet.v1alpha2.IFieldElement|null);
5465
+
5466
+ /** FeePayment unit. */
5467
+ public unit: apibara.starknet.v1alpha2.PriceUnit;
5468
+
5469
+ /**
5470
+ * Creates a new FeePayment instance using the specified properties.
5471
+ * @param [properties] Properties to set
5472
+ * @returns FeePayment instance
5473
+ */
5474
+ public static create(properties?: apibara.starknet.v1alpha2.IFeePayment): apibara.starknet.v1alpha2.FeePayment;
5475
+
5476
+ /**
5477
+ * Encodes the specified FeePayment message. Does not implicitly {@link apibara.starknet.v1alpha2.FeePayment.verify|verify} messages.
5478
+ * @param message FeePayment message or plain object to encode
5479
+ * @param [writer] Writer to encode to
5480
+ * @returns Writer
5481
+ */
5482
+ public static encode(message: apibara.starknet.v1alpha2.IFeePayment, writer?: $protobuf.Writer): $protobuf.Writer;
5483
+
5484
+ /**
5485
+ * Encodes the specified FeePayment message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.FeePayment.verify|verify} messages.
5486
+ * @param message FeePayment message or plain object to encode
5487
+ * @param [writer] Writer to encode to
5488
+ * @returns Writer
5489
+ */
5490
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IFeePayment, writer?: $protobuf.Writer): $protobuf.Writer;
5491
+
5492
+ /**
5493
+ * Decodes a FeePayment message from the specified reader or buffer.
5494
+ * @param reader Reader or buffer to decode from
5495
+ * @param [length] Message length if known beforehand
5496
+ * @returns FeePayment
5497
+ * @throws {Error} If the payload is not a reader or valid buffer
5498
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5499
+ */
5500
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.FeePayment;
5501
+
5502
+ /**
5503
+ * Decodes a FeePayment message from the specified reader or buffer, length delimited.
5504
+ * @param reader Reader or buffer to decode from
5505
+ * @returns FeePayment
5506
+ * @throws {Error} If the payload is not a reader or valid buffer
5507
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5508
+ */
5509
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.FeePayment;
5510
+
5511
+ /**
5512
+ * Verifies a FeePayment message.
5513
+ * @param message Plain object to verify
5514
+ * @returns `null` if valid, otherwise the reason why it is not
5515
+ */
5516
+ public static verify(message: { [k: string]: any }): (string|null);
5517
+
5518
+ /**
5519
+ * Creates a FeePayment message from a plain object. Also converts values to their respective internal types.
5520
+ * @param object Plain object
5521
+ * @returns FeePayment
5522
+ */
5523
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.FeePayment;
5524
+
5525
+ /**
5526
+ * Creates a plain object from a FeePayment message. Also converts values to other types if specified.
5527
+ * @param message FeePayment
5528
+ * @param [options] Conversion options
5529
+ * @returns Plain object
5530
+ */
5531
+ public static toObject(message: apibara.starknet.v1alpha2.FeePayment, options?: $protobuf.IConversionOptions): { [k: string]: any };
5532
+
5533
+ /**
5534
+ * Converts this FeePayment to JSON.
5535
+ * @returns JSON object
5536
+ */
5537
+ public toJSON(): { [k: string]: any };
5538
+
5539
+ /**
5540
+ * Gets the default type url for FeePayment
5541
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5542
+ * @returns The default type url
5543
+ */
5544
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5545
+ }
5546
+
5547
+ /** PriceUnit enum. */
5548
+ enum PriceUnit {
5549
+ PRICE_UNIT_UNSPECIFIED = 0,
5550
+ PRICE_UNIT_WEI = 1,
5551
+ PRICE_UNIT_FRI = 2
5552
+ }
5553
+
5554
+ /** Properties of an ExecutionResources. */
5555
+ interface IExecutionResources {
5556
+
5557
+ /** ExecutionResources computation */
5558
+ computation?: (apibara.starknet.v1alpha2.IComputationResources|null);
5559
+
5560
+ /** ExecutionResources dataAvailability */
5561
+ dataAvailability?: (apibara.starknet.v1alpha2.IDataAvailabilityResources|null);
5562
+ }
5563
+
5564
+ /** Represents an ExecutionResources. */
5565
+ class ExecutionResources implements IExecutionResources {
5566
+
5567
+ /**
5568
+ * Constructs a new ExecutionResources.
5569
+ * @param [properties] Properties to set
5570
+ */
5571
+ constructor(properties?: apibara.starknet.v1alpha2.IExecutionResources);
5572
+
5573
+ /** ExecutionResources computation. */
5574
+ public computation?: (apibara.starknet.v1alpha2.IComputationResources|null);
5575
+
5576
+ /** ExecutionResources dataAvailability. */
5577
+ public dataAvailability?: (apibara.starknet.v1alpha2.IDataAvailabilityResources|null);
5578
+
5579
+ /**
5580
+ * Creates a new ExecutionResources instance using the specified properties.
5581
+ * @param [properties] Properties to set
5582
+ * @returns ExecutionResources instance
5583
+ */
5584
+ public static create(properties?: apibara.starknet.v1alpha2.IExecutionResources): apibara.starknet.v1alpha2.ExecutionResources;
5585
+
5586
+ /**
5587
+ * Encodes the specified ExecutionResources message. Does not implicitly {@link apibara.starknet.v1alpha2.ExecutionResources.verify|verify} messages.
5588
+ * @param message ExecutionResources message or plain object to encode
5589
+ * @param [writer] Writer to encode to
5590
+ * @returns Writer
5591
+ */
5592
+ public static encode(message: apibara.starknet.v1alpha2.IExecutionResources, writer?: $protobuf.Writer): $protobuf.Writer;
5593
+
5594
+ /**
5595
+ * Encodes the specified ExecutionResources message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ExecutionResources.verify|verify} messages.
5596
+ * @param message ExecutionResources message or plain object to encode
5597
+ * @param [writer] Writer to encode to
5598
+ * @returns Writer
5599
+ */
5600
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IExecutionResources, writer?: $protobuf.Writer): $protobuf.Writer;
5601
+
5602
+ /**
5603
+ * Decodes an ExecutionResources message from the specified reader or buffer.
5604
+ * @param reader Reader or buffer to decode from
5605
+ * @param [length] Message length if known beforehand
5606
+ * @returns ExecutionResources
5607
+ * @throws {Error} If the payload is not a reader or valid buffer
5608
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5609
+ */
5610
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ExecutionResources;
5611
+
5612
+ /**
5613
+ * Decodes an ExecutionResources message from the specified reader or buffer, length delimited.
5614
+ * @param reader Reader or buffer to decode from
5615
+ * @returns ExecutionResources
5616
+ * @throws {Error} If the payload is not a reader or valid buffer
5617
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5618
+ */
5619
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ExecutionResources;
5620
+
5621
+ /**
5622
+ * Verifies an ExecutionResources message.
5623
+ * @param message Plain object to verify
5624
+ * @returns `null` if valid, otherwise the reason why it is not
5625
+ */
5626
+ public static verify(message: { [k: string]: any }): (string|null);
5627
+
5628
+ /**
5629
+ * Creates an ExecutionResources message from a plain object. Also converts values to their respective internal types.
5630
+ * @param object Plain object
5631
+ * @returns ExecutionResources
5632
+ */
5633
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ExecutionResources;
5634
+
5635
+ /**
5636
+ * Creates a plain object from an ExecutionResources message. Also converts values to other types if specified.
5637
+ * @param message ExecutionResources
5638
+ * @param [options] Conversion options
5639
+ * @returns Plain object
5640
+ */
5641
+ public static toObject(message: apibara.starknet.v1alpha2.ExecutionResources, options?: $protobuf.IConversionOptions): { [k: string]: any };
5642
+
5643
+ /**
5644
+ * Converts this ExecutionResources to JSON.
5645
+ * @returns JSON object
5646
+ */
5647
+ public toJSON(): { [k: string]: any };
5648
+
5649
+ /**
5650
+ * Gets the default type url for ExecutionResources
5651
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5652
+ * @returns The default type url
5653
+ */
5654
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5655
+ }
5656
+
5657
+ /** Properties of a ComputationResources. */
5658
+ interface IComputationResources {
5659
+
5660
+ /** ComputationResources steps */
5661
+ steps?: (number|Long|null);
5662
+
5663
+ /** ComputationResources memoryHoles */
5664
+ memoryHoles?: (number|Long|null);
5665
+
5666
+ /** ComputationResources rangeCheckBuiltinApplications */
5667
+ rangeCheckBuiltinApplications?: (number|Long|null);
5668
+
5669
+ /** ComputationResources pedersenBuiltinApplications */
5670
+ pedersenBuiltinApplications?: (number|Long|null);
5671
+
5672
+ /** ComputationResources poseidonBuiltinApplications */
5673
+ poseidonBuiltinApplications?: (number|Long|null);
5674
+
5675
+ /** ComputationResources ecOpBuiltinApplications */
5676
+ ecOpBuiltinApplications?: (number|Long|null);
5677
+
5678
+ /** ComputationResources ecdsaBuiltinApplications */
5679
+ ecdsaBuiltinApplications?: (number|Long|null);
5680
+
5681
+ /** ComputationResources bitwiseBuiltinApplications */
5682
+ bitwiseBuiltinApplications?: (number|Long|null);
5683
+
5684
+ /** ComputationResources keccakBuiltinApplications */
5685
+ keccakBuiltinApplications?: (number|Long|null);
5686
+
5687
+ /** ComputationResources segmentArenaBuiltin */
5688
+ segmentArenaBuiltin?: (number|Long|null);
5689
+ }
5690
+
5691
+ /** Represents a ComputationResources. */
5692
+ class ComputationResources implements IComputationResources {
5693
+
5694
+ /**
5695
+ * Constructs a new ComputationResources.
5696
+ * @param [properties] Properties to set
5697
+ */
5698
+ constructor(properties?: apibara.starknet.v1alpha2.IComputationResources);
5699
+
5700
+ /** ComputationResources steps. */
5701
+ public steps: (number|Long);
5702
+
5703
+ /** ComputationResources memoryHoles. */
5704
+ public memoryHoles: (number|Long);
5705
+
5706
+ /** ComputationResources rangeCheckBuiltinApplications. */
5707
+ public rangeCheckBuiltinApplications: (number|Long);
5708
+
5709
+ /** ComputationResources pedersenBuiltinApplications. */
5710
+ public pedersenBuiltinApplications: (number|Long);
5711
+
5712
+ /** ComputationResources poseidonBuiltinApplications. */
5713
+ public poseidonBuiltinApplications: (number|Long);
5714
+
5715
+ /** ComputationResources ecOpBuiltinApplications. */
5716
+ public ecOpBuiltinApplications: (number|Long);
5717
+
5718
+ /** ComputationResources ecdsaBuiltinApplications. */
5719
+ public ecdsaBuiltinApplications: (number|Long);
5720
+
5721
+ /** ComputationResources bitwiseBuiltinApplications. */
5722
+ public bitwiseBuiltinApplications: (number|Long);
5723
+
5724
+ /** ComputationResources keccakBuiltinApplications. */
5725
+ public keccakBuiltinApplications: (number|Long);
5726
+
5727
+ /** ComputationResources segmentArenaBuiltin. */
5728
+ public segmentArenaBuiltin: (number|Long);
5729
+
5730
+ /**
5731
+ * Creates a new ComputationResources instance using the specified properties.
5732
+ * @param [properties] Properties to set
5733
+ * @returns ComputationResources instance
5734
+ */
5735
+ public static create(properties?: apibara.starknet.v1alpha2.IComputationResources): apibara.starknet.v1alpha2.ComputationResources;
5736
+
5737
+ /**
5738
+ * Encodes the specified ComputationResources message. Does not implicitly {@link apibara.starknet.v1alpha2.ComputationResources.verify|verify} messages.
5739
+ * @param message ComputationResources message or plain object to encode
5740
+ * @param [writer] Writer to encode to
5741
+ * @returns Writer
5742
+ */
5743
+ public static encode(message: apibara.starknet.v1alpha2.IComputationResources, writer?: $protobuf.Writer): $protobuf.Writer;
5744
+
5745
+ /**
5746
+ * Encodes the specified ComputationResources message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ComputationResources.verify|verify} messages.
5747
+ * @param message ComputationResources message or plain object to encode
5748
+ * @param [writer] Writer to encode to
5749
+ * @returns Writer
5750
+ */
5751
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IComputationResources, writer?: $protobuf.Writer): $protobuf.Writer;
5752
+
5753
+ /**
5754
+ * Decodes a ComputationResources message from the specified reader or buffer.
5755
+ * @param reader Reader or buffer to decode from
5756
+ * @param [length] Message length if known beforehand
5757
+ * @returns ComputationResources
5758
+ * @throws {Error} If the payload is not a reader or valid buffer
5759
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5760
+ */
5761
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ComputationResources;
5762
+
5763
+ /**
5764
+ * Decodes a ComputationResources message from the specified reader or buffer, length delimited.
5765
+ * @param reader Reader or buffer to decode from
5766
+ * @returns ComputationResources
5767
+ * @throws {Error} If the payload is not a reader or valid buffer
5768
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5769
+ */
5770
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ComputationResources;
5771
+
5772
+ /**
5773
+ * Verifies a ComputationResources message.
5774
+ * @param message Plain object to verify
5775
+ * @returns `null` if valid, otherwise the reason why it is not
5776
+ */
5777
+ public static verify(message: { [k: string]: any }): (string|null);
5778
+
5779
+ /**
5780
+ * Creates a ComputationResources message from a plain object. Also converts values to their respective internal types.
5781
+ * @param object Plain object
5782
+ * @returns ComputationResources
5783
+ */
5784
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ComputationResources;
5785
+
5786
+ /**
5787
+ * Creates a plain object from a ComputationResources message. Also converts values to other types if specified.
5788
+ * @param message ComputationResources
5789
+ * @param [options] Conversion options
5790
+ * @returns Plain object
5791
+ */
5792
+ public static toObject(message: apibara.starknet.v1alpha2.ComputationResources, options?: $protobuf.IConversionOptions): { [k: string]: any };
5793
+
5794
+ /**
5795
+ * Converts this ComputationResources to JSON.
5796
+ * @returns JSON object
5797
+ */
5798
+ public toJSON(): { [k: string]: any };
5799
+
5800
+ /**
5801
+ * Gets the default type url for ComputationResources
5802
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5803
+ * @returns The default type url
5804
+ */
5805
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5806
+ }
5807
+
5808
+ /** Properties of a DataAvailabilityResources. */
5809
+ interface IDataAvailabilityResources {
5810
+
5811
+ /** DataAvailabilityResources l1Gas */
5812
+ l1Gas?: (number|Long|null);
5813
+
5814
+ /** DataAvailabilityResources l1DataGas */
5815
+ l1DataGas?: (number|Long|null);
5816
+ }
5817
+
5818
+ /** Represents a DataAvailabilityResources. */
5819
+ class DataAvailabilityResources implements IDataAvailabilityResources {
5820
+
5821
+ /**
5822
+ * Constructs a new DataAvailabilityResources.
5823
+ * @param [properties] Properties to set
5824
+ */
5825
+ constructor(properties?: apibara.starknet.v1alpha2.IDataAvailabilityResources);
5826
+
5827
+ /** DataAvailabilityResources l1Gas. */
5828
+ public l1Gas: (number|Long);
5829
+
5830
+ /** DataAvailabilityResources l1DataGas. */
5831
+ public l1DataGas: (number|Long);
5832
+
5833
+ /**
5834
+ * Creates a new DataAvailabilityResources instance using the specified properties.
5835
+ * @param [properties] Properties to set
5836
+ * @returns DataAvailabilityResources instance
5837
+ */
5838
+ public static create(properties?: apibara.starknet.v1alpha2.IDataAvailabilityResources): apibara.starknet.v1alpha2.DataAvailabilityResources;
5839
+
5840
+ /**
5841
+ * Encodes the specified DataAvailabilityResources message. Does not implicitly {@link apibara.starknet.v1alpha2.DataAvailabilityResources.verify|verify} messages.
5842
+ * @param message DataAvailabilityResources message or plain object to encode
5843
+ * @param [writer] Writer to encode to
5844
+ * @returns Writer
5845
+ */
5846
+ public static encode(message: apibara.starknet.v1alpha2.IDataAvailabilityResources, writer?: $protobuf.Writer): $protobuf.Writer;
5847
+
5848
+ /**
5849
+ * Encodes the specified DataAvailabilityResources message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DataAvailabilityResources.verify|verify} messages.
5850
+ * @param message DataAvailabilityResources message or plain object to encode
5851
+ * @param [writer] Writer to encode to
5852
+ * @returns Writer
5853
+ */
5854
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IDataAvailabilityResources, writer?: $protobuf.Writer): $protobuf.Writer;
5855
+
5856
+ /**
5857
+ * Decodes a DataAvailabilityResources message from the specified reader or buffer.
5858
+ * @param reader Reader or buffer to decode from
5859
+ * @param [length] Message length if known beforehand
5860
+ * @returns DataAvailabilityResources
5861
+ * @throws {Error} If the payload is not a reader or valid buffer
5862
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5863
+ */
5864
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DataAvailabilityResources;
5865
+
5866
+ /**
5867
+ * Decodes a DataAvailabilityResources message from the specified reader or buffer, length delimited.
5868
+ * @param reader Reader or buffer to decode from
5869
+ * @returns DataAvailabilityResources
5870
+ * @throws {Error} If the payload is not a reader or valid buffer
5871
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5872
+ */
5873
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DataAvailabilityResources;
5874
+
5875
+ /**
5876
+ * Verifies a DataAvailabilityResources message.
5877
+ * @param message Plain object to verify
5878
+ * @returns `null` if valid, otherwise the reason why it is not
5879
+ */
5880
+ public static verify(message: { [k: string]: any }): (string|null);
5881
+
5882
+ /**
5883
+ * Creates a DataAvailabilityResources message from a plain object. Also converts values to their respective internal types.
5884
+ * @param object Plain object
5885
+ * @returns DataAvailabilityResources
5886
+ */
5887
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DataAvailabilityResources;
5888
+
5889
+ /**
5890
+ * Creates a plain object from a DataAvailabilityResources message. Also converts values to other types if specified.
5891
+ * @param message DataAvailabilityResources
5892
+ * @param [options] Conversion options
5893
+ * @returns Plain object
5894
+ */
5895
+ public static toObject(message: apibara.starknet.v1alpha2.DataAvailabilityResources, options?: $protobuf.IConversionOptions): { [k: string]: any };
5896
+
5897
+ /**
5898
+ * Converts this DataAvailabilityResources to JSON.
5899
+ * @returns JSON object
5900
+ */
5901
+ public toJSON(): { [k: string]: any };
5902
+
5903
+ /**
5904
+ * Gets the default type url for DataAvailabilityResources
5905
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5906
+ * @returns The default type url
5907
+ */
5908
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5909
+ }
5910
+
5911
+ /** Properties of a ResourceBoundsMapping. */
5912
+ interface IResourceBoundsMapping {
5913
+
5914
+ /** ResourceBoundsMapping l1Gas */
5915
+ l1Gas?: (apibara.starknet.v1alpha2.IResourceBounds|null);
5916
+
5917
+ /** ResourceBoundsMapping l2Gas */
5918
+ l2Gas?: (apibara.starknet.v1alpha2.IResourceBounds|null);
5919
+ }
5920
+
5921
+ /** Represents a ResourceBoundsMapping. */
5922
+ class ResourceBoundsMapping implements IResourceBoundsMapping {
5923
+
5924
+ /**
5925
+ * Constructs a new ResourceBoundsMapping.
5926
+ * @param [properties] Properties to set
5927
+ */
5928
+ constructor(properties?: apibara.starknet.v1alpha2.IResourceBoundsMapping);
5929
+
5930
+ /** ResourceBoundsMapping l1Gas. */
5931
+ public l1Gas?: (apibara.starknet.v1alpha2.IResourceBounds|null);
5932
+
5933
+ /** ResourceBoundsMapping l2Gas. */
5934
+ public l2Gas?: (apibara.starknet.v1alpha2.IResourceBounds|null);
5935
+
5936
+ /**
5937
+ * Creates a new ResourceBoundsMapping instance using the specified properties.
5938
+ * @param [properties] Properties to set
5939
+ * @returns ResourceBoundsMapping instance
5940
+ */
5941
+ public static create(properties?: apibara.starknet.v1alpha2.IResourceBoundsMapping): apibara.starknet.v1alpha2.ResourceBoundsMapping;
5942
+
5943
+ /**
5944
+ * Encodes the specified ResourceBoundsMapping message. Does not implicitly {@link apibara.starknet.v1alpha2.ResourceBoundsMapping.verify|verify} messages.
5945
+ * @param message ResourceBoundsMapping message or plain object to encode
5946
+ * @param [writer] Writer to encode to
5947
+ * @returns Writer
5948
+ */
5949
+ public static encode(message: apibara.starknet.v1alpha2.IResourceBoundsMapping, writer?: $protobuf.Writer): $protobuf.Writer;
5950
+
5951
+ /**
5952
+ * Encodes the specified ResourceBoundsMapping message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ResourceBoundsMapping.verify|verify} messages.
5953
+ * @param message ResourceBoundsMapping message or plain object to encode
5954
+ * @param [writer] Writer to encode to
5955
+ * @returns Writer
5956
+ */
5957
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IResourceBoundsMapping, writer?: $protobuf.Writer): $protobuf.Writer;
5958
+
5959
+ /**
5960
+ * Decodes a ResourceBoundsMapping message from the specified reader or buffer.
5961
+ * @param reader Reader or buffer to decode from
5962
+ * @param [length] Message length if known beforehand
5963
+ * @returns ResourceBoundsMapping
5964
+ * @throws {Error} If the payload is not a reader or valid buffer
5965
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5966
+ */
5967
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ResourceBoundsMapping;
5968
+
5969
+ /**
5970
+ * Decodes a ResourceBoundsMapping message from the specified reader or buffer, length delimited.
5971
+ * @param reader Reader or buffer to decode from
5972
+ * @returns ResourceBoundsMapping
5973
+ * @throws {Error} If the payload is not a reader or valid buffer
5974
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5975
+ */
5976
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ResourceBoundsMapping;
5977
+
5978
+ /**
5979
+ * Verifies a ResourceBoundsMapping message.
5980
+ * @param message Plain object to verify
5981
+ * @returns `null` if valid, otherwise the reason why it is not
5982
+ */
5983
+ public static verify(message: { [k: string]: any }): (string|null);
5984
+
5985
+ /**
5986
+ * Creates a ResourceBoundsMapping message from a plain object. Also converts values to their respective internal types.
5987
+ * @param object Plain object
5988
+ * @returns ResourceBoundsMapping
5989
+ */
5990
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ResourceBoundsMapping;
5991
+
5992
+ /**
5993
+ * Creates a plain object from a ResourceBoundsMapping message. Also converts values to other types if specified.
5994
+ * @param message ResourceBoundsMapping
5995
+ * @param [options] Conversion options
5996
+ * @returns Plain object
5997
+ */
5998
+ public static toObject(message: apibara.starknet.v1alpha2.ResourceBoundsMapping, options?: $protobuf.IConversionOptions): { [k: string]: any };
5999
+
6000
+ /**
6001
+ * Converts this ResourceBoundsMapping to JSON.
6002
+ * @returns JSON object
6003
+ */
6004
+ public toJSON(): { [k: string]: any };
6005
+
6006
+ /**
6007
+ * Gets the default type url for ResourceBoundsMapping
6008
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6009
+ * @returns The default type url
6010
+ */
6011
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6012
+ }
6013
+
6014
+ /** Properties of a ResourceBounds. */
6015
+ interface IResourceBounds {
6016
+
6017
+ /** ResourceBounds maxAmount */
6018
+ maxAmount?: (number|Long|null);
6019
+
6020
+ /** The max price per unit of resource. */
6021
+ maxPricePerUnit?: (apibara.starknet.v1alpha2.IUint128|null);
6022
+ }
6023
+
6024
+ /** Represents a ResourceBounds. */
6025
+ class ResourceBounds implements IResourceBounds {
6026
+
6027
+ /**
6028
+ * Constructs a new ResourceBounds.
6029
+ * @param [properties] Properties to set
6030
+ */
6031
+ constructor(properties?: apibara.starknet.v1alpha2.IResourceBounds);
6032
+
6033
+ /** ResourceBounds maxAmount. */
6034
+ public maxAmount: (number|Long);
6035
+
6036
+ /** The max price per unit of resource. */
6037
+ public maxPricePerUnit?: (apibara.starknet.v1alpha2.IUint128|null);
6038
+
6039
+ /**
6040
+ * Creates a new ResourceBounds instance using the specified properties.
6041
+ * @param [properties] Properties to set
6042
+ * @returns ResourceBounds instance
6043
+ */
6044
+ public static create(properties?: apibara.starknet.v1alpha2.IResourceBounds): apibara.starknet.v1alpha2.ResourceBounds;
6045
+
6046
+ /**
6047
+ * Encodes the specified ResourceBounds message. Does not implicitly {@link apibara.starknet.v1alpha2.ResourceBounds.verify|verify} messages.
6048
+ * @param message ResourceBounds message or plain object to encode
6049
+ * @param [writer] Writer to encode to
6050
+ * @returns Writer
6051
+ */
6052
+ public static encode(message: apibara.starknet.v1alpha2.IResourceBounds, writer?: $protobuf.Writer): $protobuf.Writer;
6053
+
6054
+ /**
6055
+ * Encodes the specified ResourceBounds message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ResourceBounds.verify|verify} messages.
6056
+ * @param message ResourceBounds message or plain object to encode
6057
+ * @param [writer] Writer to encode to
6058
+ * @returns Writer
6059
+ */
6060
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IResourceBounds, writer?: $protobuf.Writer): $protobuf.Writer;
6061
+
6062
+ /**
6063
+ * Decodes a ResourceBounds message from the specified reader or buffer.
6064
+ * @param reader Reader or buffer to decode from
6065
+ * @param [length] Message length if known beforehand
6066
+ * @returns ResourceBounds
6067
+ * @throws {Error} If the payload is not a reader or valid buffer
6068
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6069
+ */
6070
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ResourceBounds;
6071
+
6072
+ /**
6073
+ * Decodes a ResourceBounds message from the specified reader or buffer, length delimited.
6074
+ * @param reader Reader or buffer to decode from
6075
+ * @returns ResourceBounds
6076
+ * @throws {Error} If the payload is not a reader or valid buffer
6077
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6078
+ */
6079
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ResourceBounds;
6080
+
6081
+ /**
6082
+ * Verifies a ResourceBounds message.
6083
+ * @param message Plain object to verify
6084
+ * @returns `null` if valid, otherwise the reason why it is not
6085
+ */
6086
+ public static verify(message: { [k: string]: any }): (string|null);
6087
+
6088
+ /**
6089
+ * Creates a ResourceBounds message from a plain object. Also converts values to their respective internal types.
6090
+ * @param object Plain object
6091
+ * @returns ResourceBounds
6092
+ */
6093
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ResourceBounds;
6094
+
6095
+ /**
6096
+ * Creates a plain object from a ResourceBounds message. Also converts values to other types if specified.
6097
+ * @param message ResourceBounds
6098
+ * @param [options] Conversion options
6099
+ * @returns Plain object
6100
+ */
6101
+ public static toObject(message: apibara.starknet.v1alpha2.ResourceBounds, options?: $protobuf.IConversionOptions): { [k: string]: any };
6102
+
6103
+ /**
6104
+ * Converts this ResourceBounds to JSON.
6105
+ * @returns JSON object
6106
+ */
6107
+ public toJSON(): { [k: string]: any };
6108
+
6109
+ /**
6110
+ * Gets the default type url for ResourceBounds
6111
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6112
+ * @returns The default type url
6113
+ */
6114
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6115
+ }
6116
+
6117
+ /** Properties of an Uint128. */
6118
+ interface IUint128 {
6119
+
6120
+ /** Uint128 low */
6121
+ low?: (number|Long|null);
6122
+
6123
+ /** Uint128 high */
6124
+ high?: (number|Long|null);
6125
+ }
6126
+
6127
+ /** Represents an Uint128. */
6128
+ class Uint128 implements IUint128 {
6129
+
6130
+ /**
6131
+ * Constructs a new Uint128.
6132
+ * @param [properties] Properties to set
6133
+ */
6134
+ constructor(properties?: apibara.starknet.v1alpha2.IUint128);
6135
+
6136
+ /** Uint128 low. */
6137
+ public low: (number|Long);
6138
+
6139
+ /** Uint128 high. */
6140
+ public high: (number|Long);
6141
+
6142
+ /**
6143
+ * Creates a new Uint128 instance using the specified properties.
6144
+ * @param [properties] Properties to set
6145
+ * @returns Uint128 instance
6146
+ */
6147
+ public static create(properties?: apibara.starknet.v1alpha2.IUint128): apibara.starknet.v1alpha2.Uint128;
6148
+
6149
+ /**
6150
+ * Encodes the specified Uint128 message. Does not implicitly {@link apibara.starknet.v1alpha2.Uint128.verify|verify} messages.
6151
+ * @param message Uint128 message or plain object to encode
6152
+ * @param [writer] Writer to encode to
6153
+ * @returns Writer
6154
+ */
6155
+ public static encode(message: apibara.starknet.v1alpha2.IUint128, writer?: $protobuf.Writer): $protobuf.Writer;
6156
+
6157
+ /**
6158
+ * Encodes the specified Uint128 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.Uint128.verify|verify} messages.
6159
+ * @param message Uint128 message or plain object to encode
6160
+ * @param [writer] Writer to encode to
6161
+ * @returns Writer
6162
+ */
6163
+ public static encodeDelimited(message: apibara.starknet.v1alpha2.IUint128, writer?: $protobuf.Writer): $protobuf.Writer;
6164
+
6165
+ /**
6166
+ * Decodes an Uint128 message from the specified reader or buffer.
6167
+ * @param reader Reader or buffer to decode from
6168
+ * @param [length] Message length if known beforehand
6169
+ * @returns Uint128
6170
+ * @throws {Error} If the payload is not a reader or valid buffer
6171
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6172
+ */
6173
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.Uint128;
6174
+
6175
+ /**
6176
+ * Decodes an Uint128 message from the specified reader or buffer, length delimited.
6177
+ * @param reader Reader or buffer to decode from
6178
+ * @returns Uint128
6179
+ * @throws {Error} If the payload is not a reader or valid buffer
6180
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6181
+ */
6182
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.Uint128;
6183
+
6184
+ /**
6185
+ * Verifies an Uint128 message.
6186
+ * @param message Plain object to verify
6187
+ * @returns `null` if valid, otherwise the reason why it is not
6188
+ */
6189
+ public static verify(message: { [k: string]: any }): (string|null);
6190
+
6191
+ /**
6192
+ * Creates an Uint128 message from a plain object. Also converts values to their respective internal types.
6193
+ * @param object Plain object
6194
+ * @returns Uint128
6195
+ */
6196
+ public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.Uint128;
6197
+
6198
+ /**
6199
+ * Creates a plain object from an Uint128 message. Also converts values to other types if specified.
6200
+ * @param message Uint128
6201
+ * @param [options] Conversion options
6202
+ * @returns Plain object
6203
+ */
6204
+ public static toObject(message: apibara.starknet.v1alpha2.Uint128, options?: $protobuf.IConversionOptions): { [k: string]: any };
6205
+
6206
+ /**
6207
+ * Converts this Uint128 to JSON.
6208
+ * @returns JSON object
6209
+ */
6210
+ public toJSON(): { [k: string]: any };
6211
+
6212
+ /**
6213
+ * Gets the default type url for Uint128
6214
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6215
+ * @returns The default type url
6216
+ */
6217
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6218
+ }
6219
+
6220
+ /** DataAvailabilityMode enum. */
6221
+ enum DataAvailabilityMode {
6222
+ DATA_AVAILABILITY_MODE_UNSPECIFIED = 0,
6223
+ DATA_AVAILABILITY_MODE_L1 = 1,
6224
+ DATA_AVAILABILITY_MODE_L2 = 2
6225
+ }
4885
6226
  }
4886
6227
  }
4887
6228
  }