@apibara/starknet 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/filter.d.ts +1 -1
- package/dist/filter.js +16 -0
- package/dist/filter.js.map +1 -1
- package/dist/proto/generated.d.ts +960 -1
- package/dist/proto/generated.js +3104 -562
- package/dist/proto/generated.js.map +1 -1
- package/dist/proto/starknet.proto +132 -3
- package/package.json +1 -1
- package/src/proto/generated.d.ts +960 -1
- package/src/proto/generated.js +4555 -1868
- package/src/proto/starknet.proto +132 -3
|
@@ -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,12 @@ 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);
|
|
2236
2248
|
}
|
|
2237
2249
|
|
|
2238
2250
|
/** Represents a BlockHeader. */
|
|
@@ -2262,6 +2274,12 @@ export namespace apibara {
|
|
|
2262
2274
|
/** BlockHeader timestamp. */
|
|
2263
2275
|
public timestamp?: (google.protobuf.ITimestamp|null);
|
|
2264
2276
|
|
|
2277
|
+
/** BlockHeader starknetVersion. */
|
|
2278
|
+
public starknetVersion: string;
|
|
2279
|
+
|
|
2280
|
+
/** BlockHeader l1GasPrice. */
|
|
2281
|
+
public l1GasPrice?: (apibara.starknet.v1alpha2.IResourcePrice|null);
|
|
2282
|
+
|
|
2265
2283
|
/**
|
|
2266
2284
|
* Creates a new BlockHeader instance using the specified properties.
|
|
2267
2285
|
* @param [properties] Properties to set
|
|
@@ -2475,6 +2493,15 @@ export namespace apibara {
|
|
|
2475
2493
|
|
|
2476
2494
|
/** Transaction deployAccount */
|
|
2477
2495
|
deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransaction|null);
|
|
2496
|
+
|
|
2497
|
+
/** Transaction deployAccountV3 */
|
|
2498
|
+
deployAccountV3?: (apibara.starknet.v1alpha2.IDeployAccountTransactionV3|null);
|
|
2499
|
+
|
|
2500
|
+
/** Transaction invokeV3 */
|
|
2501
|
+
invokeV3?: (apibara.starknet.v1alpha2.IInvokeTransactionV3|null);
|
|
2502
|
+
|
|
2503
|
+
/** Transaction declareV3 */
|
|
2504
|
+
declareV3?: (apibara.starknet.v1alpha2.IDeclareTransactionV3|null);
|
|
2478
2505
|
}
|
|
2479
2506
|
|
|
2480
2507
|
/** Represents a Transaction. */
|
|
@@ -2507,8 +2534,17 @@ export namespace apibara {
|
|
|
2507
2534
|
/** Transaction deployAccount. */
|
|
2508
2535
|
public deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransaction|null);
|
|
2509
2536
|
|
|
2537
|
+
/** Transaction deployAccountV3. */
|
|
2538
|
+
public deployAccountV3?: (apibara.starknet.v1alpha2.IDeployAccountTransactionV3|null);
|
|
2539
|
+
|
|
2540
|
+
/** Transaction invokeV3. */
|
|
2541
|
+
public invokeV3?: (apibara.starknet.v1alpha2.IInvokeTransactionV3|null);
|
|
2542
|
+
|
|
2543
|
+
/** Transaction declareV3. */
|
|
2544
|
+
public declareV3?: (apibara.starknet.v1alpha2.IDeclareTransactionV3|null);
|
|
2545
|
+
|
|
2510
2546
|
/** Transaction transaction. */
|
|
2511
|
-
public transaction?: ("invokeV0"|"invokeV1"|"deploy"|"declare"|"l1Handler"|"deployAccount");
|
|
2547
|
+
public transaction?: ("invokeV0"|"invokeV1"|"deploy"|"declare"|"l1Handler"|"deployAccount"|"deployAccountV3"|"invokeV3"|"declareV3");
|
|
2512
2548
|
|
|
2513
2549
|
/**
|
|
2514
2550
|
* Creates a new Transaction instance using the specified properties.
|
|
@@ -2605,6 +2641,24 @@ export namespace apibara {
|
|
|
2605
2641
|
|
|
2606
2642
|
/** TransactionMeta version */
|
|
2607
2643
|
version?: (number|Long|null);
|
|
2644
|
+
|
|
2645
|
+
/** TransactionMeta resourceBounds */
|
|
2646
|
+
resourceBounds?: (apibara.starknet.v1alpha2.IResourceBoundsMapping|null);
|
|
2647
|
+
|
|
2648
|
+
/** TransactionMeta tip */
|
|
2649
|
+
tip?: (number|Long|null);
|
|
2650
|
+
|
|
2651
|
+
/** TransactionMeta paymasterData */
|
|
2652
|
+
paymasterData?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
2653
|
+
|
|
2654
|
+
/** TransactionMeta nonceDataAvailabilityMode */
|
|
2655
|
+
nonceDataAvailabilityMode?: (apibara.starknet.v1alpha2.DataAvailabilityMode|null);
|
|
2656
|
+
|
|
2657
|
+
/** TransactionMeta feeDataAvailabilityMode */
|
|
2658
|
+
feeDataAvailabilityMode?: (apibara.starknet.v1alpha2.DataAvailabilityMode|null);
|
|
2659
|
+
|
|
2660
|
+
/** TransactionMeta transactionIndex */
|
|
2661
|
+
transactionIndex?: (number|Long|null);
|
|
2608
2662
|
}
|
|
2609
2663
|
|
|
2610
2664
|
/** Represents a TransactionMeta. */
|
|
@@ -2631,6 +2685,24 @@ export namespace apibara {
|
|
|
2631
2685
|
/** TransactionMeta version. */
|
|
2632
2686
|
public version: (number|Long);
|
|
2633
2687
|
|
|
2688
|
+
/** TransactionMeta resourceBounds. */
|
|
2689
|
+
public resourceBounds?: (apibara.starknet.v1alpha2.IResourceBoundsMapping|null);
|
|
2690
|
+
|
|
2691
|
+
/** TransactionMeta tip. */
|
|
2692
|
+
public tip: (number|Long);
|
|
2693
|
+
|
|
2694
|
+
/** TransactionMeta paymasterData. */
|
|
2695
|
+
public paymasterData: apibara.starknet.v1alpha2.IFieldElement[];
|
|
2696
|
+
|
|
2697
|
+
/** TransactionMeta nonceDataAvailabilityMode. */
|
|
2698
|
+
public nonceDataAvailabilityMode: apibara.starknet.v1alpha2.DataAvailabilityMode;
|
|
2699
|
+
|
|
2700
|
+
/** TransactionMeta feeDataAvailabilityMode. */
|
|
2701
|
+
public feeDataAvailabilityMode: apibara.starknet.v1alpha2.DataAvailabilityMode;
|
|
2702
|
+
|
|
2703
|
+
/** TransactionMeta transactionIndex. */
|
|
2704
|
+
public transactionIndex: (number|Long);
|
|
2705
|
+
|
|
2634
2706
|
/**
|
|
2635
2707
|
* Creates a new TransactionMeta instance using the specified properties.
|
|
2636
2708
|
* @param [properties] Properties to set
|
|
@@ -2921,6 +2993,115 @@ export namespace apibara {
|
|
|
2921
2993
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2922
2994
|
}
|
|
2923
2995
|
|
|
2996
|
+
/** Properties of an InvokeTransactionV3. */
|
|
2997
|
+
interface IInvokeTransactionV3 {
|
|
2998
|
+
|
|
2999
|
+
/** InvokeTransactionV3 senderAddress */
|
|
3000
|
+
senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3001
|
+
|
|
3002
|
+
/** InvokeTransactionV3 calldata */
|
|
3003
|
+
calldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
3004
|
+
|
|
3005
|
+
/** InvokeTransactionV3 accountDeploymentData */
|
|
3006
|
+
accountDeploymentData?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
/** Represents an InvokeTransactionV3. */
|
|
3010
|
+
class InvokeTransactionV3 implements IInvokeTransactionV3 {
|
|
3011
|
+
|
|
3012
|
+
/**
|
|
3013
|
+
* Constructs a new InvokeTransactionV3.
|
|
3014
|
+
* @param [properties] Properties to set
|
|
3015
|
+
*/
|
|
3016
|
+
constructor(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV3);
|
|
3017
|
+
|
|
3018
|
+
/** InvokeTransactionV3 senderAddress. */
|
|
3019
|
+
public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3020
|
+
|
|
3021
|
+
/** InvokeTransactionV3 calldata. */
|
|
3022
|
+
public calldata: apibara.starknet.v1alpha2.IFieldElement[];
|
|
3023
|
+
|
|
3024
|
+
/** InvokeTransactionV3 accountDeploymentData. */
|
|
3025
|
+
public accountDeploymentData: apibara.starknet.v1alpha2.IFieldElement[];
|
|
3026
|
+
|
|
3027
|
+
/**
|
|
3028
|
+
* Creates a new InvokeTransactionV3 instance using the specified properties.
|
|
3029
|
+
* @param [properties] Properties to set
|
|
3030
|
+
* @returns InvokeTransactionV3 instance
|
|
3031
|
+
*/
|
|
3032
|
+
public static create(properties?: apibara.starknet.v1alpha2.IInvokeTransactionV3): apibara.starknet.v1alpha2.InvokeTransactionV3;
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* Encodes the specified InvokeTransactionV3 message. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV3.verify|verify} messages.
|
|
3036
|
+
* @param message InvokeTransactionV3 message or plain object to encode
|
|
3037
|
+
* @param [writer] Writer to encode to
|
|
3038
|
+
* @returns Writer
|
|
3039
|
+
*/
|
|
3040
|
+
public static encode(message: apibara.starknet.v1alpha2.IInvokeTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3041
|
+
|
|
3042
|
+
/**
|
|
3043
|
+
* Encodes the specified InvokeTransactionV3 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.InvokeTransactionV3.verify|verify} messages.
|
|
3044
|
+
* @param message InvokeTransactionV3 message or plain object to encode
|
|
3045
|
+
* @param [writer] Writer to encode to
|
|
3046
|
+
* @returns Writer
|
|
3047
|
+
*/
|
|
3048
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IInvokeTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3049
|
+
|
|
3050
|
+
/**
|
|
3051
|
+
* Decodes an InvokeTransactionV3 message from the specified reader or buffer.
|
|
3052
|
+
* @param reader Reader or buffer to decode from
|
|
3053
|
+
* @param [length] Message length if known beforehand
|
|
3054
|
+
* @returns InvokeTransactionV3
|
|
3055
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3056
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3057
|
+
*/
|
|
3058
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.InvokeTransactionV3;
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* Decodes an InvokeTransactionV3 message from the specified reader or buffer, length delimited.
|
|
3062
|
+
* @param reader Reader or buffer to decode from
|
|
3063
|
+
* @returns InvokeTransactionV3
|
|
3064
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3065
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3066
|
+
*/
|
|
3067
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.InvokeTransactionV3;
|
|
3068
|
+
|
|
3069
|
+
/**
|
|
3070
|
+
* Verifies an InvokeTransactionV3 message.
|
|
3071
|
+
* @param message Plain object to verify
|
|
3072
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3073
|
+
*/
|
|
3074
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* Creates an InvokeTransactionV3 message from a plain object. Also converts values to their respective internal types.
|
|
3078
|
+
* @param object Plain object
|
|
3079
|
+
* @returns InvokeTransactionV3
|
|
3080
|
+
*/
|
|
3081
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.InvokeTransactionV3;
|
|
3082
|
+
|
|
3083
|
+
/**
|
|
3084
|
+
* Creates a plain object from an InvokeTransactionV3 message. Also converts values to other types if specified.
|
|
3085
|
+
* @param message InvokeTransactionV3
|
|
3086
|
+
* @param [options] Conversion options
|
|
3087
|
+
* @returns Plain object
|
|
3088
|
+
*/
|
|
3089
|
+
public static toObject(message: apibara.starknet.v1alpha2.InvokeTransactionV3, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3090
|
+
|
|
3091
|
+
/**
|
|
3092
|
+
* Converts this InvokeTransactionV3 to JSON.
|
|
3093
|
+
* @returns JSON object
|
|
3094
|
+
*/
|
|
3095
|
+
public toJSON(): { [k: string]: any };
|
|
3096
|
+
|
|
3097
|
+
/**
|
|
3098
|
+
* Gets the default type url for InvokeTransactionV3
|
|
3099
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3100
|
+
* @returns The default type url
|
|
3101
|
+
*/
|
|
3102
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
2924
3105
|
/** Properties of a DeployTransaction. */
|
|
2925
3106
|
interface IDeployTransaction {
|
|
2926
3107
|
|
|
@@ -3139,6 +3320,121 @@ export namespace apibara {
|
|
|
3139
3320
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3140
3321
|
}
|
|
3141
3322
|
|
|
3323
|
+
/** Properties of a DeclareTransactionV3. */
|
|
3324
|
+
interface IDeclareTransactionV3 {
|
|
3325
|
+
|
|
3326
|
+
/** DeclareTransactionV3 classHash */
|
|
3327
|
+
classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3328
|
+
|
|
3329
|
+
/** DeclareTransactionV3 senderAddress */
|
|
3330
|
+
senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3331
|
+
|
|
3332
|
+
/** DeclareTransactionV3 compiledClassHash */
|
|
3333
|
+
compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3334
|
+
|
|
3335
|
+
/** DeclareTransactionV3 accountDeploymentData */
|
|
3336
|
+
accountDeploymentData?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
/** Represents a DeclareTransactionV3. */
|
|
3340
|
+
class DeclareTransactionV3 implements IDeclareTransactionV3 {
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* Constructs a new DeclareTransactionV3.
|
|
3344
|
+
* @param [properties] Properties to set
|
|
3345
|
+
*/
|
|
3346
|
+
constructor(properties?: apibara.starknet.v1alpha2.IDeclareTransactionV3);
|
|
3347
|
+
|
|
3348
|
+
/** DeclareTransactionV3 classHash. */
|
|
3349
|
+
public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3350
|
+
|
|
3351
|
+
/** DeclareTransactionV3 senderAddress. */
|
|
3352
|
+
public senderAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3353
|
+
|
|
3354
|
+
/** DeclareTransactionV3 compiledClassHash. */
|
|
3355
|
+
public compiledClassHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3356
|
+
|
|
3357
|
+
/** DeclareTransactionV3 accountDeploymentData. */
|
|
3358
|
+
public accountDeploymentData: apibara.starknet.v1alpha2.IFieldElement[];
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* Creates a new DeclareTransactionV3 instance using the specified properties.
|
|
3362
|
+
* @param [properties] Properties to set
|
|
3363
|
+
* @returns DeclareTransactionV3 instance
|
|
3364
|
+
*/
|
|
3365
|
+
public static create(properties?: apibara.starknet.v1alpha2.IDeclareTransactionV3): apibara.starknet.v1alpha2.DeclareTransactionV3;
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* Encodes the specified DeclareTransactionV3 message. Does not implicitly {@link apibara.starknet.v1alpha2.DeclareTransactionV3.verify|verify} messages.
|
|
3369
|
+
* @param message DeclareTransactionV3 message or plain object to encode
|
|
3370
|
+
* @param [writer] Writer to encode to
|
|
3371
|
+
* @returns Writer
|
|
3372
|
+
*/
|
|
3373
|
+
public static encode(message: apibara.starknet.v1alpha2.IDeclareTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3374
|
+
|
|
3375
|
+
/**
|
|
3376
|
+
* Encodes the specified DeclareTransactionV3 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeclareTransactionV3.verify|verify} messages.
|
|
3377
|
+
* @param message DeclareTransactionV3 message or plain object to encode
|
|
3378
|
+
* @param [writer] Writer to encode to
|
|
3379
|
+
* @returns Writer
|
|
3380
|
+
*/
|
|
3381
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeclareTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3382
|
+
|
|
3383
|
+
/**
|
|
3384
|
+
* Decodes a DeclareTransactionV3 message from the specified reader or buffer.
|
|
3385
|
+
* @param reader Reader or buffer to decode from
|
|
3386
|
+
* @param [length] Message length if known beforehand
|
|
3387
|
+
* @returns DeclareTransactionV3
|
|
3388
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3389
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3390
|
+
*/
|
|
3391
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeclareTransactionV3;
|
|
3392
|
+
|
|
3393
|
+
/**
|
|
3394
|
+
* Decodes a DeclareTransactionV3 message from the specified reader or buffer, length delimited.
|
|
3395
|
+
* @param reader Reader or buffer to decode from
|
|
3396
|
+
* @returns DeclareTransactionV3
|
|
3397
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3398
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3399
|
+
*/
|
|
3400
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeclareTransactionV3;
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* Verifies a DeclareTransactionV3 message.
|
|
3404
|
+
* @param message Plain object to verify
|
|
3405
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3406
|
+
*/
|
|
3407
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3408
|
+
|
|
3409
|
+
/**
|
|
3410
|
+
* Creates a DeclareTransactionV3 message from a plain object. Also converts values to their respective internal types.
|
|
3411
|
+
* @param object Plain object
|
|
3412
|
+
* @returns DeclareTransactionV3
|
|
3413
|
+
*/
|
|
3414
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeclareTransactionV3;
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Creates a plain object from a DeclareTransactionV3 message. Also converts values to other types if specified.
|
|
3418
|
+
* @param message DeclareTransactionV3
|
|
3419
|
+
* @param [options] Conversion options
|
|
3420
|
+
* @returns Plain object
|
|
3421
|
+
*/
|
|
3422
|
+
public static toObject(message: apibara.starknet.v1alpha2.DeclareTransactionV3, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3423
|
+
|
|
3424
|
+
/**
|
|
3425
|
+
* Converts this DeclareTransactionV3 to JSON.
|
|
3426
|
+
* @returns JSON object
|
|
3427
|
+
*/
|
|
3428
|
+
public toJSON(): { [k: string]: any };
|
|
3429
|
+
|
|
3430
|
+
/**
|
|
3431
|
+
* Gets the default type url for DeclareTransactionV3
|
|
3432
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3433
|
+
* @returns The default type url
|
|
3434
|
+
*/
|
|
3435
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3436
|
+
}
|
|
3437
|
+
|
|
3142
3438
|
/** Properties of a L1HandlerTransaction. */
|
|
3143
3439
|
interface IL1HandlerTransaction {
|
|
3144
3440
|
|
|
@@ -3357,6 +3653,122 @@ export namespace apibara {
|
|
|
3357
3653
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3358
3654
|
}
|
|
3359
3655
|
|
|
3656
|
+
/** Properties of a DeployAccountTransactionV3. */
|
|
3657
|
+
interface IDeployAccountTransactionV3 {
|
|
3658
|
+
|
|
3659
|
+
/** DeployAccountTransactionV3 constructorCalldata */
|
|
3660
|
+
constructorCalldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
3661
|
+
|
|
3662
|
+
/** DeployAccountTransactionV3 contractAddressSalt */
|
|
3663
|
+
contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3664
|
+
|
|
3665
|
+
/** DeployAccountTransactionV3 classHash */
|
|
3666
|
+
classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
/** Represents a DeployAccountTransactionV3. */
|
|
3670
|
+
class DeployAccountTransactionV3 implements IDeployAccountTransactionV3 {
|
|
3671
|
+
|
|
3672
|
+
/**
|
|
3673
|
+
* Constructs a new DeployAccountTransactionV3.
|
|
3674
|
+
* @param [properties] Properties to set
|
|
3675
|
+
*/
|
|
3676
|
+
constructor(properties?: apibara.starknet.v1alpha2.IDeployAccountTransactionV3);
|
|
3677
|
+
|
|
3678
|
+
/** DeployAccountTransactionV3 constructorCalldata. */
|
|
3679
|
+
public constructorCalldata: apibara.starknet.v1alpha2.IFieldElement[];
|
|
3680
|
+
|
|
3681
|
+
/** DeployAccountTransactionV3 contractAddressSalt. */
|
|
3682
|
+
public contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3683
|
+
|
|
3684
|
+
/** DeployAccountTransactionV3 classHash. */
|
|
3685
|
+
public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3686
|
+
|
|
3687
|
+
/**
|
|
3688
|
+
* Creates a new DeployAccountTransactionV3 instance using the specified properties.
|
|
3689
|
+
* @param [properties] Properties to set
|
|
3690
|
+
* @returns DeployAccountTransactionV3 instance
|
|
3691
|
+
*/
|
|
3692
|
+
public static create(properties?: apibara.starknet.v1alpha2.IDeployAccountTransactionV3): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
|
|
3693
|
+
|
|
3694
|
+
/**
|
|
3695
|
+
* Encodes the specified DeployAccountTransactionV3 message. Does not implicitly {@link apibara.starknet.v1alpha2.DeployAccountTransactionV3.verify|verify} messages.
|
|
3696
|
+
* @param message DeployAccountTransactionV3 message or plain object to encode
|
|
3697
|
+
* @param [writer] Writer to encode to
|
|
3698
|
+
* @returns Writer
|
|
3699
|
+
*/
|
|
3700
|
+
public static encode(message: apibara.starknet.v1alpha2.IDeployAccountTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3701
|
+
|
|
3702
|
+
/**
|
|
3703
|
+
* Encodes the specified DeployAccountTransactionV3 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.DeployAccountTransactionV3.verify|verify} messages.
|
|
3704
|
+
* @param message DeployAccountTransactionV3 message or plain object to encode
|
|
3705
|
+
* @param [writer] Writer to encode to
|
|
3706
|
+
* @returns Writer
|
|
3707
|
+
*/
|
|
3708
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployAccountTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* Decodes a DeployAccountTransactionV3 message from the specified reader or buffer.
|
|
3712
|
+
* @param reader Reader or buffer to decode from
|
|
3713
|
+
* @param [length] Message length if known beforehand
|
|
3714
|
+
* @returns DeployAccountTransactionV3
|
|
3715
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3716
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3717
|
+
*/
|
|
3718
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
|
|
3719
|
+
|
|
3720
|
+
/**
|
|
3721
|
+
* Decodes a DeployAccountTransactionV3 message from the specified reader or buffer, length delimited.
|
|
3722
|
+
* @param reader Reader or buffer to decode from
|
|
3723
|
+
* @returns DeployAccountTransactionV3
|
|
3724
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3725
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3726
|
+
*/
|
|
3727
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
|
|
3728
|
+
|
|
3729
|
+
/**
|
|
3730
|
+
* Verifies a DeployAccountTransactionV3 message.
|
|
3731
|
+
* @param message Plain object to verify
|
|
3732
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3733
|
+
*/
|
|
3734
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3735
|
+
|
|
3736
|
+
/**
|
|
3737
|
+
* Creates a DeployAccountTransactionV3 message from a plain object. Also converts values to their respective internal types.
|
|
3738
|
+
* @param object Plain object
|
|
3739
|
+
* @returns DeployAccountTransactionV3
|
|
3740
|
+
*/
|
|
3741
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
|
|
3742
|
+
|
|
3743
|
+
/**
|
|
3744
|
+
* Creates a plain object from a DeployAccountTransactionV3 message. Also converts values to other types if specified.
|
|
3745
|
+
* @param message DeployAccountTransactionV3
|
|
3746
|
+
* @param [options] Conversion options
|
|
3747
|
+
* @returns Plain object
|
|
3748
|
+
*/
|
|
3749
|
+
public static toObject(message: apibara.starknet.v1alpha2.DeployAccountTransactionV3, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3750
|
+
|
|
3751
|
+
/**
|
|
3752
|
+
* Converts this DeployAccountTransactionV3 to JSON.
|
|
3753
|
+
* @returns JSON object
|
|
3754
|
+
*/
|
|
3755
|
+
public toJSON(): { [k: string]: any };
|
|
3756
|
+
|
|
3757
|
+
/**
|
|
3758
|
+
* Gets the default type url for DeployAccountTransactionV3
|
|
3759
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3760
|
+
* @returns The default type url
|
|
3761
|
+
*/
|
|
3762
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
/** ExecutionStatus enum. */
|
|
3766
|
+
enum ExecutionStatus {
|
|
3767
|
+
EXECUTION_STATUS_UNSPECIFIED = 0,
|
|
3768
|
+
EXECUTION_STATUS_SUCCEEDED = 1,
|
|
3769
|
+
EXECUTION_STATUS_REVERTED = 2
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3360
3772
|
/** Properties of a TransactionReceipt. */
|
|
3361
3773
|
interface ITransactionReceipt {
|
|
3362
3774
|
|
|
@@ -3377,6 +3789,15 @@ export namespace apibara {
|
|
|
3377
3789
|
|
|
3378
3790
|
/** TransactionReceipt contractAddress */
|
|
3379
3791
|
contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3792
|
+
|
|
3793
|
+
/** TransactionReceipt executionStatus */
|
|
3794
|
+
executionStatus?: (apibara.starknet.v1alpha2.ExecutionStatus|null);
|
|
3795
|
+
|
|
3796
|
+
/** TransactionReceipt revertReason */
|
|
3797
|
+
revertReason?: (string|null);
|
|
3798
|
+
|
|
3799
|
+
/** TransactionReceipt actualFeePaid */
|
|
3800
|
+
actualFeePaid?: (apibara.starknet.v1alpha2.IFeePayment|null);
|
|
3380
3801
|
}
|
|
3381
3802
|
|
|
3382
3803
|
/** Represents a TransactionReceipt. */
|
|
@@ -3406,6 +3827,15 @@ export namespace apibara {
|
|
|
3406
3827
|
/** TransactionReceipt contractAddress. */
|
|
3407
3828
|
public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3408
3829
|
|
|
3830
|
+
/** TransactionReceipt executionStatus. */
|
|
3831
|
+
public executionStatus: apibara.starknet.v1alpha2.ExecutionStatus;
|
|
3832
|
+
|
|
3833
|
+
/** TransactionReceipt revertReason. */
|
|
3834
|
+
public revertReason: string;
|
|
3835
|
+
|
|
3836
|
+
/** TransactionReceipt actualFeePaid. */
|
|
3837
|
+
public actualFeePaid?: (apibara.starknet.v1alpha2.IFeePayment|null);
|
|
3838
|
+
|
|
3409
3839
|
/**
|
|
3410
3840
|
* Creates a new TransactionReceipt instance using the specified properties.
|
|
3411
3841
|
* @param [properties] Properties to set
|
|
@@ -4882,6 +5312,535 @@ export namespace apibara {
|
|
|
4882
5312
|
*/
|
|
4883
5313
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4884
5314
|
}
|
|
5315
|
+
|
|
5316
|
+
/** Properties of a ResourcePrice. */
|
|
5317
|
+
interface IResourcePrice {
|
|
5318
|
+
|
|
5319
|
+
/** ResourcePrice priceInFri */
|
|
5320
|
+
priceInFri?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
5321
|
+
|
|
5322
|
+
/** ResourcePrice priceInWei */
|
|
5323
|
+
priceInWei?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
5324
|
+
}
|
|
5325
|
+
|
|
5326
|
+
/** Represents a ResourcePrice. */
|
|
5327
|
+
class ResourcePrice implements IResourcePrice {
|
|
5328
|
+
|
|
5329
|
+
/**
|
|
5330
|
+
* Constructs a new ResourcePrice.
|
|
5331
|
+
* @param [properties] Properties to set
|
|
5332
|
+
*/
|
|
5333
|
+
constructor(properties?: apibara.starknet.v1alpha2.IResourcePrice);
|
|
5334
|
+
|
|
5335
|
+
/** ResourcePrice priceInFri. */
|
|
5336
|
+
public priceInFri?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
5337
|
+
|
|
5338
|
+
/** ResourcePrice priceInWei. */
|
|
5339
|
+
public priceInWei?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
5340
|
+
|
|
5341
|
+
/**
|
|
5342
|
+
* Creates a new ResourcePrice instance using the specified properties.
|
|
5343
|
+
* @param [properties] Properties to set
|
|
5344
|
+
* @returns ResourcePrice instance
|
|
5345
|
+
*/
|
|
5346
|
+
public static create(properties?: apibara.starknet.v1alpha2.IResourcePrice): apibara.starknet.v1alpha2.ResourcePrice;
|
|
5347
|
+
|
|
5348
|
+
/**
|
|
5349
|
+
* Encodes the specified ResourcePrice message. Does not implicitly {@link apibara.starknet.v1alpha2.ResourcePrice.verify|verify} messages.
|
|
5350
|
+
* @param message ResourcePrice message or plain object to encode
|
|
5351
|
+
* @param [writer] Writer to encode to
|
|
5352
|
+
* @returns Writer
|
|
5353
|
+
*/
|
|
5354
|
+
public static encode(message: apibara.starknet.v1alpha2.IResourcePrice, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5355
|
+
|
|
5356
|
+
/**
|
|
5357
|
+
* Encodes the specified ResourcePrice message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ResourcePrice.verify|verify} messages.
|
|
5358
|
+
* @param message ResourcePrice message or plain object to encode
|
|
5359
|
+
* @param [writer] Writer to encode to
|
|
5360
|
+
* @returns Writer
|
|
5361
|
+
*/
|
|
5362
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IResourcePrice, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5363
|
+
|
|
5364
|
+
/**
|
|
5365
|
+
* Decodes a ResourcePrice message from the specified reader or buffer.
|
|
5366
|
+
* @param reader Reader or buffer to decode from
|
|
5367
|
+
* @param [length] Message length if known beforehand
|
|
5368
|
+
* @returns ResourcePrice
|
|
5369
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5370
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5371
|
+
*/
|
|
5372
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ResourcePrice;
|
|
5373
|
+
|
|
5374
|
+
/**
|
|
5375
|
+
* Decodes a ResourcePrice message from the specified reader or buffer, length delimited.
|
|
5376
|
+
* @param reader Reader or buffer to decode from
|
|
5377
|
+
* @returns ResourcePrice
|
|
5378
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5379
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5380
|
+
*/
|
|
5381
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ResourcePrice;
|
|
5382
|
+
|
|
5383
|
+
/**
|
|
5384
|
+
* Verifies a ResourcePrice message.
|
|
5385
|
+
* @param message Plain object to verify
|
|
5386
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5387
|
+
*/
|
|
5388
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5389
|
+
|
|
5390
|
+
/**
|
|
5391
|
+
* Creates a ResourcePrice message from a plain object. Also converts values to their respective internal types.
|
|
5392
|
+
* @param object Plain object
|
|
5393
|
+
* @returns ResourcePrice
|
|
5394
|
+
*/
|
|
5395
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ResourcePrice;
|
|
5396
|
+
|
|
5397
|
+
/**
|
|
5398
|
+
* Creates a plain object from a ResourcePrice message. Also converts values to other types if specified.
|
|
5399
|
+
* @param message ResourcePrice
|
|
5400
|
+
* @param [options] Conversion options
|
|
5401
|
+
* @returns Plain object
|
|
5402
|
+
*/
|
|
5403
|
+
public static toObject(message: apibara.starknet.v1alpha2.ResourcePrice, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5404
|
+
|
|
5405
|
+
/**
|
|
5406
|
+
* Converts this ResourcePrice to JSON.
|
|
5407
|
+
* @returns JSON object
|
|
5408
|
+
*/
|
|
5409
|
+
public toJSON(): { [k: string]: any };
|
|
5410
|
+
|
|
5411
|
+
/**
|
|
5412
|
+
* Gets the default type url for ResourcePrice
|
|
5413
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5414
|
+
* @returns The default type url
|
|
5415
|
+
*/
|
|
5416
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5417
|
+
}
|
|
5418
|
+
|
|
5419
|
+
/** Properties of a FeePayment. */
|
|
5420
|
+
interface IFeePayment {
|
|
5421
|
+
|
|
5422
|
+
/** FeePayment amount */
|
|
5423
|
+
amount?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
5424
|
+
|
|
5425
|
+
/** FeePayment unit */
|
|
5426
|
+
unit?: (apibara.starknet.v1alpha2.PriceUnit|null);
|
|
5427
|
+
}
|
|
5428
|
+
|
|
5429
|
+
/** Represents a FeePayment. */
|
|
5430
|
+
class FeePayment implements IFeePayment {
|
|
5431
|
+
|
|
5432
|
+
/**
|
|
5433
|
+
* Constructs a new FeePayment.
|
|
5434
|
+
* @param [properties] Properties to set
|
|
5435
|
+
*/
|
|
5436
|
+
constructor(properties?: apibara.starknet.v1alpha2.IFeePayment);
|
|
5437
|
+
|
|
5438
|
+
/** FeePayment amount. */
|
|
5439
|
+
public amount?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
5440
|
+
|
|
5441
|
+
/** FeePayment unit. */
|
|
5442
|
+
public unit: apibara.starknet.v1alpha2.PriceUnit;
|
|
5443
|
+
|
|
5444
|
+
/**
|
|
5445
|
+
* Creates a new FeePayment instance using the specified properties.
|
|
5446
|
+
* @param [properties] Properties to set
|
|
5447
|
+
* @returns FeePayment instance
|
|
5448
|
+
*/
|
|
5449
|
+
public static create(properties?: apibara.starknet.v1alpha2.IFeePayment): apibara.starknet.v1alpha2.FeePayment;
|
|
5450
|
+
|
|
5451
|
+
/**
|
|
5452
|
+
* Encodes the specified FeePayment message. Does not implicitly {@link apibara.starknet.v1alpha2.FeePayment.verify|verify} messages.
|
|
5453
|
+
* @param message FeePayment message or plain object to encode
|
|
5454
|
+
* @param [writer] Writer to encode to
|
|
5455
|
+
* @returns Writer
|
|
5456
|
+
*/
|
|
5457
|
+
public static encode(message: apibara.starknet.v1alpha2.IFeePayment, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5458
|
+
|
|
5459
|
+
/**
|
|
5460
|
+
* Encodes the specified FeePayment message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.FeePayment.verify|verify} messages.
|
|
5461
|
+
* @param message FeePayment message or plain object to encode
|
|
5462
|
+
* @param [writer] Writer to encode to
|
|
5463
|
+
* @returns Writer
|
|
5464
|
+
*/
|
|
5465
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IFeePayment, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5466
|
+
|
|
5467
|
+
/**
|
|
5468
|
+
* Decodes a FeePayment message from the specified reader or buffer.
|
|
5469
|
+
* @param reader Reader or buffer to decode from
|
|
5470
|
+
* @param [length] Message length if known beforehand
|
|
5471
|
+
* @returns FeePayment
|
|
5472
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5473
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5474
|
+
*/
|
|
5475
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.FeePayment;
|
|
5476
|
+
|
|
5477
|
+
/**
|
|
5478
|
+
* Decodes a FeePayment message from the specified reader or buffer, length delimited.
|
|
5479
|
+
* @param reader Reader or buffer to decode from
|
|
5480
|
+
* @returns FeePayment
|
|
5481
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5482
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5483
|
+
*/
|
|
5484
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.FeePayment;
|
|
5485
|
+
|
|
5486
|
+
/**
|
|
5487
|
+
* Verifies a FeePayment message.
|
|
5488
|
+
* @param message Plain object to verify
|
|
5489
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5490
|
+
*/
|
|
5491
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5492
|
+
|
|
5493
|
+
/**
|
|
5494
|
+
* Creates a FeePayment message from a plain object. Also converts values to their respective internal types.
|
|
5495
|
+
* @param object Plain object
|
|
5496
|
+
* @returns FeePayment
|
|
5497
|
+
*/
|
|
5498
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.FeePayment;
|
|
5499
|
+
|
|
5500
|
+
/**
|
|
5501
|
+
* Creates a plain object from a FeePayment message. Also converts values to other types if specified.
|
|
5502
|
+
* @param message FeePayment
|
|
5503
|
+
* @param [options] Conversion options
|
|
5504
|
+
* @returns Plain object
|
|
5505
|
+
*/
|
|
5506
|
+
public static toObject(message: apibara.starknet.v1alpha2.FeePayment, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5507
|
+
|
|
5508
|
+
/**
|
|
5509
|
+
* Converts this FeePayment to JSON.
|
|
5510
|
+
* @returns JSON object
|
|
5511
|
+
*/
|
|
5512
|
+
public toJSON(): { [k: string]: any };
|
|
5513
|
+
|
|
5514
|
+
/**
|
|
5515
|
+
* Gets the default type url for FeePayment
|
|
5516
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5517
|
+
* @returns The default type url
|
|
5518
|
+
*/
|
|
5519
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5520
|
+
}
|
|
5521
|
+
|
|
5522
|
+
/** PriceUnit enum. */
|
|
5523
|
+
enum PriceUnit {
|
|
5524
|
+
PRICE_UNIT_UNSPECIFIED = 0,
|
|
5525
|
+
PRICE_UNIT_WEI = 1,
|
|
5526
|
+
PRICE_UNIT_FRI = 2
|
|
5527
|
+
}
|
|
5528
|
+
|
|
5529
|
+
/** Properties of a ResourceBoundsMapping. */
|
|
5530
|
+
interface IResourceBoundsMapping {
|
|
5531
|
+
|
|
5532
|
+
/** ResourceBoundsMapping l1Gas */
|
|
5533
|
+
l1Gas?: (apibara.starknet.v1alpha2.IResourceBounds|null);
|
|
5534
|
+
|
|
5535
|
+
/** ResourceBoundsMapping l2Gas */
|
|
5536
|
+
l2Gas?: (apibara.starknet.v1alpha2.IResourceBounds|null);
|
|
5537
|
+
}
|
|
5538
|
+
|
|
5539
|
+
/** Represents a ResourceBoundsMapping. */
|
|
5540
|
+
class ResourceBoundsMapping implements IResourceBoundsMapping {
|
|
5541
|
+
|
|
5542
|
+
/**
|
|
5543
|
+
* Constructs a new ResourceBoundsMapping.
|
|
5544
|
+
* @param [properties] Properties to set
|
|
5545
|
+
*/
|
|
5546
|
+
constructor(properties?: apibara.starknet.v1alpha2.IResourceBoundsMapping);
|
|
5547
|
+
|
|
5548
|
+
/** ResourceBoundsMapping l1Gas. */
|
|
5549
|
+
public l1Gas?: (apibara.starknet.v1alpha2.IResourceBounds|null);
|
|
5550
|
+
|
|
5551
|
+
/** ResourceBoundsMapping l2Gas. */
|
|
5552
|
+
public l2Gas?: (apibara.starknet.v1alpha2.IResourceBounds|null);
|
|
5553
|
+
|
|
5554
|
+
/**
|
|
5555
|
+
* Creates a new ResourceBoundsMapping instance using the specified properties.
|
|
5556
|
+
* @param [properties] Properties to set
|
|
5557
|
+
* @returns ResourceBoundsMapping instance
|
|
5558
|
+
*/
|
|
5559
|
+
public static create(properties?: apibara.starknet.v1alpha2.IResourceBoundsMapping): apibara.starknet.v1alpha2.ResourceBoundsMapping;
|
|
5560
|
+
|
|
5561
|
+
/**
|
|
5562
|
+
* Encodes the specified ResourceBoundsMapping message. Does not implicitly {@link apibara.starknet.v1alpha2.ResourceBoundsMapping.verify|verify} messages.
|
|
5563
|
+
* @param message ResourceBoundsMapping message or plain object to encode
|
|
5564
|
+
* @param [writer] Writer to encode to
|
|
5565
|
+
* @returns Writer
|
|
5566
|
+
*/
|
|
5567
|
+
public static encode(message: apibara.starknet.v1alpha2.IResourceBoundsMapping, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5568
|
+
|
|
5569
|
+
/**
|
|
5570
|
+
* Encodes the specified ResourceBoundsMapping message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ResourceBoundsMapping.verify|verify} messages.
|
|
5571
|
+
* @param message ResourceBoundsMapping message or plain object to encode
|
|
5572
|
+
* @param [writer] Writer to encode to
|
|
5573
|
+
* @returns Writer
|
|
5574
|
+
*/
|
|
5575
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IResourceBoundsMapping, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5576
|
+
|
|
5577
|
+
/**
|
|
5578
|
+
* Decodes a ResourceBoundsMapping message from the specified reader or buffer.
|
|
5579
|
+
* @param reader Reader or buffer to decode from
|
|
5580
|
+
* @param [length] Message length if known beforehand
|
|
5581
|
+
* @returns ResourceBoundsMapping
|
|
5582
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5583
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5584
|
+
*/
|
|
5585
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ResourceBoundsMapping;
|
|
5586
|
+
|
|
5587
|
+
/**
|
|
5588
|
+
* Decodes a ResourceBoundsMapping message from the specified reader or buffer, length delimited.
|
|
5589
|
+
* @param reader Reader or buffer to decode from
|
|
5590
|
+
* @returns ResourceBoundsMapping
|
|
5591
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5592
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5593
|
+
*/
|
|
5594
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ResourceBoundsMapping;
|
|
5595
|
+
|
|
5596
|
+
/**
|
|
5597
|
+
* Verifies a ResourceBoundsMapping message.
|
|
5598
|
+
* @param message Plain object to verify
|
|
5599
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5600
|
+
*/
|
|
5601
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5602
|
+
|
|
5603
|
+
/**
|
|
5604
|
+
* Creates a ResourceBoundsMapping message from a plain object. Also converts values to their respective internal types.
|
|
5605
|
+
* @param object Plain object
|
|
5606
|
+
* @returns ResourceBoundsMapping
|
|
5607
|
+
*/
|
|
5608
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ResourceBoundsMapping;
|
|
5609
|
+
|
|
5610
|
+
/**
|
|
5611
|
+
* Creates a plain object from a ResourceBoundsMapping message. Also converts values to other types if specified.
|
|
5612
|
+
* @param message ResourceBoundsMapping
|
|
5613
|
+
* @param [options] Conversion options
|
|
5614
|
+
* @returns Plain object
|
|
5615
|
+
*/
|
|
5616
|
+
public static toObject(message: apibara.starknet.v1alpha2.ResourceBoundsMapping, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5617
|
+
|
|
5618
|
+
/**
|
|
5619
|
+
* Converts this ResourceBoundsMapping to JSON.
|
|
5620
|
+
* @returns JSON object
|
|
5621
|
+
*/
|
|
5622
|
+
public toJSON(): { [k: string]: any };
|
|
5623
|
+
|
|
5624
|
+
/**
|
|
5625
|
+
* Gets the default type url for ResourceBoundsMapping
|
|
5626
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5627
|
+
* @returns The default type url
|
|
5628
|
+
*/
|
|
5629
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5630
|
+
}
|
|
5631
|
+
|
|
5632
|
+
/** Properties of a ResourceBounds. */
|
|
5633
|
+
interface IResourceBounds {
|
|
5634
|
+
|
|
5635
|
+
/** ResourceBounds maxAmount */
|
|
5636
|
+
maxAmount?: (number|Long|null);
|
|
5637
|
+
|
|
5638
|
+
/** The max price per unit of resource. */
|
|
5639
|
+
maxPricePerUnit?: (apibara.starknet.v1alpha2.IUint128|null);
|
|
5640
|
+
}
|
|
5641
|
+
|
|
5642
|
+
/** Represents a ResourceBounds. */
|
|
5643
|
+
class ResourceBounds implements IResourceBounds {
|
|
5644
|
+
|
|
5645
|
+
/**
|
|
5646
|
+
* Constructs a new ResourceBounds.
|
|
5647
|
+
* @param [properties] Properties to set
|
|
5648
|
+
*/
|
|
5649
|
+
constructor(properties?: apibara.starknet.v1alpha2.IResourceBounds);
|
|
5650
|
+
|
|
5651
|
+
/** ResourceBounds maxAmount. */
|
|
5652
|
+
public maxAmount: (number|Long);
|
|
5653
|
+
|
|
5654
|
+
/** The max price per unit of resource. */
|
|
5655
|
+
public maxPricePerUnit?: (apibara.starknet.v1alpha2.IUint128|null);
|
|
5656
|
+
|
|
5657
|
+
/**
|
|
5658
|
+
* Creates a new ResourceBounds instance using the specified properties.
|
|
5659
|
+
* @param [properties] Properties to set
|
|
5660
|
+
* @returns ResourceBounds instance
|
|
5661
|
+
*/
|
|
5662
|
+
public static create(properties?: apibara.starknet.v1alpha2.IResourceBounds): apibara.starknet.v1alpha2.ResourceBounds;
|
|
5663
|
+
|
|
5664
|
+
/**
|
|
5665
|
+
* Encodes the specified ResourceBounds message. Does not implicitly {@link apibara.starknet.v1alpha2.ResourceBounds.verify|verify} messages.
|
|
5666
|
+
* @param message ResourceBounds message or plain object to encode
|
|
5667
|
+
* @param [writer] Writer to encode to
|
|
5668
|
+
* @returns Writer
|
|
5669
|
+
*/
|
|
5670
|
+
public static encode(message: apibara.starknet.v1alpha2.IResourceBounds, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5671
|
+
|
|
5672
|
+
/**
|
|
5673
|
+
* Encodes the specified ResourceBounds message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.ResourceBounds.verify|verify} messages.
|
|
5674
|
+
* @param message ResourceBounds message or plain object to encode
|
|
5675
|
+
* @param [writer] Writer to encode to
|
|
5676
|
+
* @returns Writer
|
|
5677
|
+
*/
|
|
5678
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IResourceBounds, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5679
|
+
|
|
5680
|
+
/**
|
|
5681
|
+
* Decodes a ResourceBounds message from the specified reader or buffer.
|
|
5682
|
+
* @param reader Reader or buffer to decode from
|
|
5683
|
+
* @param [length] Message length if known beforehand
|
|
5684
|
+
* @returns ResourceBounds
|
|
5685
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5686
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5687
|
+
*/
|
|
5688
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.ResourceBounds;
|
|
5689
|
+
|
|
5690
|
+
/**
|
|
5691
|
+
* Decodes a ResourceBounds message from the specified reader or buffer, length delimited.
|
|
5692
|
+
* @param reader Reader or buffer to decode from
|
|
5693
|
+
* @returns ResourceBounds
|
|
5694
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5695
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5696
|
+
*/
|
|
5697
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.ResourceBounds;
|
|
5698
|
+
|
|
5699
|
+
/**
|
|
5700
|
+
* Verifies a ResourceBounds message.
|
|
5701
|
+
* @param message Plain object to verify
|
|
5702
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5703
|
+
*/
|
|
5704
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5705
|
+
|
|
5706
|
+
/**
|
|
5707
|
+
* Creates a ResourceBounds message from a plain object. Also converts values to their respective internal types.
|
|
5708
|
+
* @param object Plain object
|
|
5709
|
+
* @returns ResourceBounds
|
|
5710
|
+
*/
|
|
5711
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.ResourceBounds;
|
|
5712
|
+
|
|
5713
|
+
/**
|
|
5714
|
+
* Creates a plain object from a ResourceBounds message. Also converts values to other types if specified.
|
|
5715
|
+
* @param message ResourceBounds
|
|
5716
|
+
* @param [options] Conversion options
|
|
5717
|
+
* @returns Plain object
|
|
5718
|
+
*/
|
|
5719
|
+
public static toObject(message: apibara.starknet.v1alpha2.ResourceBounds, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5720
|
+
|
|
5721
|
+
/**
|
|
5722
|
+
* Converts this ResourceBounds to JSON.
|
|
5723
|
+
* @returns JSON object
|
|
5724
|
+
*/
|
|
5725
|
+
public toJSON(): { [k: string]: any };
|
|
5726
|
+
|
|
5727
|
+
/**
|
|
5728
|
+
* Gets the default type url for ResourceBounds
|
|
5729
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5730
|
+
* @returns The default type url
|
|
5731
|
+
*/
|
|
5732
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
/** Properties of an Uint128. */
|
|
5736
|
+
interface IUint128 {
|
|
5737
|
+
|
|
5738
|
+
/** Uint128 low */
|
|
5739
|
+
low?: (number|Long|null);
|
|
5740
|
+
|
|
5741
|
+
/** Uint128 high */
|
|
5742
|
+
high?: (number|Long|null);
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5745
|
+
/** Represents an Uint128. */
|
|
5746
|
+
class Uint128 implements IUint128 {
|
|
5747
|
+
|
|
5748
|
+
/**
|
|
5749
|
+
* Constructs a new Uint128.
|
|
5750
|
+
* @param [properties] Properties to set
|
|
5751
|
+
*/
|
|
5752
|
+
constructor(properties?: apibara.starknet.v1alpha2.IUint128);
|
|
5753
|
+
|
|
5754
|
+
/** Uint128 low. */
|
|
5755
|
+
public low: (number|Long);
|
|
5756
|
+
|
|
5757
|
+
/** Uint128 high. */
|
|
5758
|
+
public high: (number|Long);
|
|
5759
|
+
|
|
5760
|
+
/**
|
|
5761
|
+
* Creates a new Uint128 instance using the specified properties.
|
|
5762
|
+
* @param [properties] Properties to set
|
|
5763
|
+
* @returns Uint128 instance
|
|
5764
|
+
*/
|
|
5765
|
+
public static create(properties?: apibara.starknet.v1alpha2.IUint128): apibara.starknet.v1alpha2.Uint128;
|
|
5766
|
+
|
|
5767
|
+
/**
|
|
5768
|
+
* Encodes the specified Uint128 message. Does not implicitly {@link apibara.starknet.v1alpha2.Uint128.verify|verify} messages.
|
|
5769
|
+
* @param message Uint128 message or plain object to encode
|
|
5770
|
+
* @param [writer] Writer to encode to
|
|
5771
|
+
* @returns Writer
|
|
5772
|
+
*/
|
|
5773
|
+
public static encode(message: apibara.starknet.v1alpha2.IUint128, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5774
|
+
|
|
5775
|
+
/**
|
|
5776
|
+
* Encodes the specified Uint128 message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.Uint128.verify|verify} messages.
|
|
5777
|
+
* @param message Uint128 message or plain object to encode
|
|
5778
|
+
* @param [writer] Writer to encode to
|
|
5779
|
+
* @returns Writer
|
|
5780
|
+
*/
|
|
5781
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IUint128, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5782
|
+
|
|
5783
|
+
/**
|
|
5784
|
+
* Decodes an Uint128 message from the specified reader or buffer.
|
|
5785
|
+
* @param reader Reader or buffer to decode from
|
|
5786
|
+
* @param [length] Message length if known beforehand
|
|
5787
|
+
* @returns Uint128
|
|
5788
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5789
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5790
|
+
*/
|
|
5791
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.Uint128;
|
|
5792
|
+
|
|
5793
|
+
/**
|
|
5794
|
+
* Decodes an Uint128 message from the specified reader or buffer, length delimited.
|
|
5795
|
+
* @param reader Reader or buffer to decode from
|
|
5796
|
+
* @returns Uint128
|
|
5797
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5798
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5799
|
+
*/
|
|
5800
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.Uint128;
|
|
5801
|
+
|
|
5802
|
+
/**
|
|
5803
|
+
* Verifies an Uint128 message.
|
|
5804
|
+
* @param message Plain object to verify
|
|
5805
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5806
|
+
*/
|
|
5807
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5808
|
+
|
|
5809
|
+
/**
|
|
5810
|
+
* Creates an Uint128 message from a plain object. Also converts values to their respective internal types.
|
|
5811
|
+
* @param object Plain object
|
|
5812
|
+
* @returns Uint128
|
|
5813
|
+
*/
|
|
5814
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.Uint128;
|
|
5815
|
+
|
|
5816
|
+
/**
|
|
5817
|
+
* Creates a plain object from an Uint128 message. Also converts values to other types if specified.
|
|
5818
|
+
* @param message Uint128
|
|
5819
|
+
* @param [options] Conversion options
|
|
5820
|
+
* @returns Plain object
|
|
5821
|
+
*/
|
|
5822
|
+
public static toObject(message: apibara.starknet.v1alpha2.Uint128, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
* Converts this Uint128 to JSON.
|
|
5826
|
+
* @returns JSON object
|
|
5827
|
+
*/
|
|
5828
|
+
public toJSON(): { [k: string]: any };
|
|
5829
|
+
|
|
5830
|
+
/**
|
|
5831
|
+
* Gets the default type url for Uint128
|
|
5832
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5833
|
+
* @returns The default type url
|
|
5834
|
+
*/
|
|
5835
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5836
|
+
}
|
|
5837
|
+
|
|
5838
|
+
/** DataAvailabilityMode enum. */
|
|
5839
|
+
enum DataAvailabilityMode {
|
|
5840
|
+
DATA_AVAILABILITY_MODE_UNSPECIFIED = 0,
|
|
5841
|
+
DATA_AVAILABILITY_MODE_L1 = 1,
|
|
5842
|
+
DATA_AVAILABILITY_MODE_L2 = 2
|
|
5843
|
+
}
|
|
4885
5844
|
}
|
|
4886
5845
|
}
|
|
4887
5846
|
}
|