@apibara/starknet 0.3.0 → 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/cursor.d.ts +2 -2
- package/dist/cursor.js +1 -1
- package/dist/cursor.js.map +1 -1
- package/dist/felt.d.ts +1 -1
- package/dist/felt.js +5 -5
- package/dist/felt.js.map +1 -1
- package/dist/felt.test.js +9 -9
- package/dist/felt.test.js.map +1 -1
- package/dist/filter.d.ts +14 -2
- package/dist/filter.js +38 -1
- package/dist/filter.js.map +1 -1
- package/dist/filter.test.js +46 -40
- package/dist/filter.test.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/dist/proto/filter.proto +6 -0
- package/dist/proto/generated.d.ts +1053 -67
- package/dist/proto/generated.js +3194 -541
- package/dist/proto/generated.js.map +1 -1
- package/dist/proto/index.d.ts +1 -1
- package/dist/proto/index.js.map +1 -1
- package/dist/proto/starknet.proto +132 -3
- package/package.json +4 -8
- package/src/cursor.ts +14 -8
- package/src/felt.test.ts +21 -19
- package/src/felt.ts +22 -22
- package/src/filter.test.ts +129 -107
- package/src/filter.ts +251 -174
- package/src/index.ts +4 -4
- package/src/proto/filter.proto +6 -0
- package/src/proto/generated.d.ts +1053 -67
- package/src/proto/generated.js +3311 -506
- package/src/proto/index.ts +2 -2
- package/src/proto/starknet.proto +132 -3
|
@@ -1113,6 +1113,15 @@ export namespace apibara {
|
|
|
1113
1113
|
|
|
1114
1114
|
/** EventFilter data */
|
|
1115
1115
|
data?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
1116
|
+
|
|
1117
|
+
/** EventFilter includeReverted */
|
|
1118
|
+
includeReverted?: (boolean|null);
|
|
1119
|
+
|
|
1120
|
+
/** EventFilter includeTransaction */
|
|
1121
|
+
includeTransaction?: (boolean|null);
|
|
1122
|
+
|
|
1123
|
+
/** EventFilter includeReceipt */
|
|
1124
|
+
includeReceipt?: (boolean|null);
|
|
1116
1125
|
}
|
|
1117
1126
|
|
|
1118
1127
|
/** Represents an EventFilter. */
|
|
@@ -1133,6 +1142,24 @@ export namespace apibara {
|
|
|
1133
1142
|
/** EventFilter data. */
|
|
1134
1143
|
public data: apibara.starknet.v1alpha2.IFieldElement[];
|
|
1135
1144
|
|
|
1145
|
+
/** EventFilter includeReverted. */
|
|
1146
|
+
public includeReverted?: (boolean|null);
|
|
1147
|
+
|
|
1148
|
+
/** EventFilter includeTransaction. */
|
|
1149
|
+
public includeTransaction?: (boolean|null);
|
|
1150
|
+
|
|
1151
|
+
/** EventFilter includeReceipt. */
|
|
1152
|
+
public includeReceipt?: (boolean|null);
|
|
1153
|
+
|
|
1154
|
+
/** EventFilter _includeReverted. */
|
|
1155
|
+
public _includeReverted?: "includeReverted";
|
|
1156
|
+
|
|
1157
|
+
/** EventFilter _includeTransaction. */
|
|
1158
|
+
public _includeTransaction?: "includeTransaction";
|
|
1159
|
+
|
|
1160
|
+
/** EventFilter _includeReceipt. */
|
|
1161
|
+
public _includeReceipt?: "includeReceipt";
|
|
1162
|
+
|
|
1136
1163
|
/**
|
|
1137
1164
|
* Creates a new EventFilter instance using the specified properties.
|
|
1138
1165
|
* @param [properties] Properties to set
|
|
@@ -2079,6 +2106,9 @@ export namespace apibara {
|
|
|
2079
2106
|
|
|
2080
2107
|
/** Block l2ToL1Messages */
|
|
2081
2108
|
l2ToL1Messages?: (apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction[]|null);
|
|
2109
|
+
|
|
2110
|
+
/** Block empty */
|
|
2111
|
+
empty?: (boolean|null);
|
|
2082
2112
|
}
|
|
2083
2113
|
|
|
2084
2114
|
/** Represents a Block. */
|
|
@@ -2108,6 +2138,9 @@ export namespace apibara {
|
|
|
2108
2138
|
/** Block l2ToL1Messages. */
|
|
2109
2139
|
public l2ToL1Messages: apibara.starknet.v1alpha2.IL2ToL1MessageWithTransaction[];
|
|
2110
2140
|
|
|
2141
|
+
/** Block empty. */
|
|
2142
|
+
public empty: boolean;
|
|
2143
|
+
|
|
2111
2144
|
/**
|
|
2112
2145
|
* Creates a new Block instance using the specified properties.
|
|
2113
2146
|
* @param [properties] Properties to set
|
|
@@ -2206,6 +2239,12 @@ export namespace apibara {
|
|
|
2206
2239
|
|
|
2207
2240
|
/** BlockHeader timestamp */
|
|
2208
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);
|
|
2209
2248
|
}
|
|
2210
2249
|
|
|
2211
2250
|
/** Represents a BlockHeader. */
|
|
@@ -2235,6 +2274,12 @@ export namespace apibara {
|
|
|
2235
2274
|
/** BlockHeader timestamp. */
|
|
2236
2275
|
public timestamp?: (google.protobuf.ITimestamp|null);
|
|
2237
2276
|
|
|
2277
|
+
/** BlockHeader starknetVersion. */
|
|
2278
|
+
public starknetVersion: string;
|
|
2279
|
+
|
|
2280
|
+
/** BlockHeader l1GasPrice. */
|
|
2281
|
+
public l1GasPrice?: (apibara.starknet.v1alpha2.IResourcePrice|null);
|
|
2282
|
+
|
|
2238
2283
|
/**
|
|
2239
2284
|
* Creates a new BlockHeader instance using the specified properties.
|
|
2240
2285
|
* @param [properties] Properties to set
|
|
@@ -2448,6 +2493,15 @@ export namespace apibara {
|
|
|
2448
2493
|
|
|
2449
2494
|
/** Transaction deployAccount */
|
|
2450
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);
|
|
2451
2505
|
}
|
|
2452
2506
|
|
|
2453
2507
|
/** Represents a Transaction. */
|
|
@@ -2480,8 +2534,17 @@ export namespace apibara {
|
|
|
2480
2534
|
/** Transaction deployAccount. */
|
|
2481
2535
|
public deployAccount?: (apibara.starknet.v1alpha2.IDeployAccountTransaction|null);
|
|
2482
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
|
+
|
|
2483
2546
|
/** Transaction transaction. */
|
|
2484
|
-
public transaction?: ("invokeV0"|"invokeV1"|"deploy"|"declare"|"l1Handler"|"deployAccount");
|
|
2547
|
+
public transaction?: ("invokeV0"|"invokeV1"|"deploy"|"declare"|"l1Handler"|"deployAccount"|"deployAccountV3"|"invokeV3"|"declareV3");
|
|
2485
2548
|
|
|
2486
2549
|
/**
|
|
2487
2550
|
* Creates a new Transaction instance using the specified properties.
|
|
@@ -2578,6 +2641,24 @@ export namespace apibara {
|
|
|
2578
2641
|
|
|
2579
2642
|
/** TransactionMeta version */
|
|
2580
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);
|
|
2581
2662
|
}
|
|
2582
2663
|
|
|
2583
2664
|
/** Represents a TransactionMeta. */
|
|
@@ -2604,6 +2685,24 @@ export namespace apibara {
|
|
|
2604
2685
|
/** TransactionMeta version. */
|
|
2605
2686
|
public version: (number|Long);
|
|
2606
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
|
+
|
|
2607
2706
|
/**
|
|
2608
2707
|
* Creates a new TransactionMeta instance using the specified properties.
|
|
2609
2708
|
* @param [properties] Properties to set
|
|
@@ -2894,6 +2993,115 @@ export namespace apibara {
|
|
|
2894
2993
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2895
2994
|
}
|
|
2896
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
|
+
|
|
2897
3105
|
/** Properties of a DeployTransaction. */
|
|
2898
3106
|
interface IDeployTransaction {
|
|
2899
3107
|
|
|
@@ -3112,6 +3320,121 @@ export namespace apibara {
|
|
|
3112
3320
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3113
3321
|
}
|
|
3114
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
|
+
|
|
3115
3438
|
/** Properties of a L1HandlerTransaction. */
|
|
3116
3439
|
interface IL1HandlerTransaction {
|
|
3117
3440
|
|
|
@@ -3330,141 +3653,275 @@ export namespace apibara {
|
|
|
3330
3653
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3331
3654
|
}
|
|
3332
3655
|
|
|
3333
|
-
/** Properties of a
|
|
3334
|
-
interface
|
|
3335
|
-
|
|
3336
|
-
/** TransactionReceipt transactionHash */
|
|
3337
|
-
transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3338
|
-
|
|
3339
|
-
/** TransactionReceipt transactionIndex */
|
|
3340
|
-
transactionIndex?: (number|Long|null);
|
|
3341
|
-
|
|
3342
|
-
/** TransactionReceipt actualFee */
|
|
3343
|
-
actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3656
|
+
/** Properties of a DeployAccountTransactionV3. */
|
|
3657
|
+
interface IDeployAccountTransactionV3 {
|
|
3344
3658
|
|
|
3345
|
-
/**
|
|
3346
|
-
|
|
3659
|
+
/** DeployAccountTransactionV3 constructorCalldata */
|
|
3660
|
+
constructorCalldata?: (apibara.starknet.v1alpha2.IFieldElement[]|null);
|
|
3347
3661
|
|
|
3348
|
-
/**
|
|
3349
|
-
|
|
3662
|
+
/** DeployAccountTransactionV3 contractAddressSalt */
|
|
3663
|
+
contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3350
3664
|
|
|
3351
|
-
/**
|
|
3352
|
-
|
|
3665
|
+
/** DeployAccountTransactionV3 classHash */
|
|
3666
|
+
classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3353
3667
|
}
|
|
3354
3668
|
|
|
3355
|
-
/** Represents a
|
|
3356
|
-
class
|
|
3669
|
+
/** Represents a DeployAccountTransactionV3. */
|
|
3670
|
+
class DeployAccountTransactionV3 implements IDeployAccountTransactionV3 {
|
|
3357
3671
|
|
|
3358
3672
|
/**
|
|
3359
|
-
* Constructs a new
|
|
3673
|
+
* Constructs a new DeployAccountTransactionV3.
|
|
3360
3674
|
* @param [properties] Properties to set
|
|
3361
3675
|
*/
|
|
3362
|
-
constructor(properties?: apibara.starknet.v1alpha2.
|
|
3363
|
-
|
|
3364
|
-
/** TransactionReceipt transactionHash. */
|
|
3365
|
-
public transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3676
|
+
constructor(properties?: apibara.starknet.v1alpha2.IDeployAccountTransactionV3);
|
|
3366
3677
|
|
|
3367
|
-
/**
|
|
3368
|
-
public
|
|
3369
|
-
|
|
3370
|
-
/** TransactionReceipt actualFee. */
|
|
3371
|
-
public actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3372
|
-
|
|
3373
|
-
/** TransactionReceipt l2ToL1Messages. */
|
|
3374
|
-
public l2ToL1Messages: apibara.starknet.v1alpha2.IL2ToL1Message[];
|
|
3678
|
+
/** DeployAccountTransactionV3 constructorCalldata. */
|
|
3679
|
+
public constructorCalldata: apibara.starknet.v1alpha2.IFieldElement[];
|
|
3375
3680
|
|
|
3376
|
-
/**
|
|
3377
|
-
public
|
|
3681
|
+
/** DeployAccountTransactionV3 contractAddressSalt. */
|
|
3682
|
+
public contractAddressSalt?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3378
3683
|
|
|
3379
|
-
/**
|
|
3380
|
-
public
|
|
3684
|
+
/** DeployAccountTransactionV3 classHash. */
|
|
3685
|
+
public classHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3381
3686
|
|
|
3382
3687
|
/**
|
|
3383
|
-
* Creates a new
|
|
3688
|
+
* Creates a new DeployAccountTransactionV3 instance using the specified properties.
|
|
3384
3689
|
* @param [properties] Properties to set
|
|
3385
|
-
* @returns
|
|
3690
|
+
* @returns DeployAccountTransactionV3 instance
|
|
3386
3691
|
*/
|
|
3387
|
-
public static create(properties?: apibara.starknet.v1alpha2.
|
|
3692
|
+
public static create(properties?: apibara.starknet.v1alpha2.IDeployAccountTransactionV3): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
|
|
3388
3693
|
|
|
3389
3694
|
/**
|
|
3390
|
-
* Encodes the specified
|
|
3391
|
-
* @param message
|
|
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
|
|
3392
3697
|
* @param [writer] Writer to encode to
|
|
3393
3698
|
* @returns Writer
|
|
3394
3699
|
*/
|
|
3395
|
-
public static encode(message: apibara.starknet.v1alpha2.
|
|
3700
|
+
public static encode(message: apibara.starknet.v1alpha2.IDeployAccountTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3396
3701
|
|
|
3397
3702
|
/**
|
|
3398
|
-
* Encodes the specified
|
|
3399
|
-
* @param message
|
|
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
|
|
3400
3705
|
* @param [writer] Writer to encode to
|
|
3401
3706
|
* @returns Writer
|
|
3402
3707
|
*/
|
|
3403
|
-
public static encodeDelimited(message: apibara.starknet.v1alpha2.
|
|
3708
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.IDeployAccountTransactionV3, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3404
3709
|
|
|
3405
3710
|
/**
|
|
3406
|
-
* Decodes a
|
|
3711
|
+
* Decodes a DeployAccountTransactionV3 message from the specified reader or buffer.
|
|
3407
3712
|
* @param reader Reader or buffer to decode from
|
|
3408
3713
|
* @param [length] Message length if known beforehand
|
|
3409
|
-
* @returns
|
|
3714
|
+
* @returns DeployAccountTransactionV3
|
|
3410
3715
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3411
3716
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3412
3717
|
*/
|
|
3413
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.
|
|
3718
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
|
|
3414
3719
|
|
|
3415
3720
|
/**
|
|
3416
|
-
* Decodes a
|
|
3721
|
+
* Decodes a DeployAccountTransactionV3 message from the specified reader or buffer, length delimited.
|
|
3417
3722
|
* @param reader Reader or buffer to decode from
|
|
3418
|
-
* @returns
|
|
3723
|
+
* @returns DeployAccountTransactionV3
|
|
3419
3724
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3420
3725
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3421
3726
|
*/
|
|
3422
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.
|
|
3727
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
|
|
3423
3728
|
|
|
3424
3729
|
/**
|
|
3425
|
-
* Verifies a
|
|
3730
|
+
* Verifies a DeployAccountTransactionV3 message.
|
|
3426
3731
|
* @param message Plain object to verify
|
|
3427
3732
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
3428
3733
|
*/
|
|
3429
3734
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
3430
3735
|
|
|
3431
3736
|
/**
|
|
3432
|
-
* Creates a
|
|
3737
|
+
* Creates a DeployAccountTransactionV3 message from a plain object. Also converts values to their respective internal types.
|
|
3433
3738
|
* @param object Plain object
|
|
3434
|
-
* @returns
|
|
3739
|
+
* @returns DeployAccountTransactionV3
|
|
3435
3740
|
*/
|
|
3436
|
-
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.
|
|
3741
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.DeployAccountTransactionV3;
|
|
3437
3742
|
|
|
3438
3743
|
/**
|
|
3439
|
-
* Creates a plain object from a
|
|
3440
|
-
* @param message
|
|
3744
|
+
* Creates a plain object from a DeployAccountTransactionV3 message. Also converts values to other types if specified.
|
|
3745
|
+
* @param message DeployAccountTransactionV3
|
|
3441
3746
|
* @param [options] Conversion options
|
|
3442
3747
|
* @returns Plain object
|
|
3443
3748
|
*/
|
|
3444
|
-
public static toObject(message: apibara.starknet.v1alpha2.
|
|
3749
|
+
public static toObject(message: apibara.starknet.v1alpha2.DeployAccountTransactionV3, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3445
3750
|
|
|
3446
3751
|
/**
|
|
3447
|
-
* Converts this
|
|
3752
|
+
* Converts this DeployAccountTransactionV3 to JSON.
|
|
3448
3753
|
* @returns JSON object
|
|
3449
3754
|
*/
|
|
3450
3755
|
public toJSON(): { [k: string]: any };
|
|
3451
3756
|
|
|
3452
3757
|
/**
|
|
3453
|
-
* Gets the default type url for
|
|
3758
|
+
* Gets the default type url for DeployAccountTransactionV3
|
|
3454
3759
|
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3455
3760
|
* @returns The default type url
|
|
3456
3761
|
*/
|
|
3457
3762
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3458
3763
|
}
|
|
3459
3764
|
|
|
3460
|
-
/**
|
|
3461
|
-
|
|
3765
|
+
/** ExecutionStatus enum. */
|
|
3766
|
+
enum ExecutionStatus {
|
|
3767
|
+
EXECUTION_STATUS_UNSPECIFIED = 0,
|
|
3768
|
+
EXECUTION_STATUS_SUCCEEDED = 1,
|
|
3769
|
+
EXECUTION_STATUS_REVERTED = 2
|
|
3770
|
+
}
|
|
3462
3771
|
|
|
3463
|
-
|
|
3464
|
-
|
|
3772
|
+
/** Properties of a TransactionReceipt. */
|
|
3773
|
+
interface ITransactionReceipt {
|
|
3465
3774
|
|
|
3466
|
-
/**
|
|
3467
|
-
|
|
3775
|
+
/** TransactionReceipt transactionHash */
|
|
3776
|
+
transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3777
|
+
|
|
3778
|
+
/** TransactionReceipt transactionIndex */
|
|
3779
|
+
transactionIndex?: (number|Long|null);
|
|
3780
|
+
|
|
3781
|
+
/** TransactionReceipt actualFee */
|
|
3782
|
+
actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3783
|
+
|
|
3784
|
+
/** TransactionReceipt l2ToL1Messages */
|
|
3785
|
+
l2ToL1Messages?: (apibara.starknet.v1alpha2.IL2ToL1Message[]|null);
|
|
3786
|
+
|
|
3787
|
+
/** TransactionReceipt events */
|
|
3788
|
+
events?: (apibara.starknet.v1alpha2.IEvent[]|null);
|
|
3789
|
+
|
|
3790
|
+
/** TransactionReceipt contractAddress */
|
|
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);
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
/** Represents a TransactionReceipt. */
|
|
3804
|
+
class TransactionReceipt implements ITransactionReceipt {
|
|
3805
|
+
|
|
3806
|
+
/**
|
|
3807
|
+
* Constructs a new TransactionReceipt.
|
|
3808
|
+
* @param [properties] Properties to set
|
|
3809
|
+
*/
|
|
3810
|
+
constructor(properties?: apibara.starknet.v1alpha2.ITransactionReceipt);
|
|
3811
|
+
|
|
3812
|
+
/** TransactionReceipt transactionHash. */
|
|
3813
|
+
public transactionHash?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3814
|
+
|
|
3815
|
+
/** TransactionReceipt transactionIndex. */
|
|
3816
|
+
public transactionIndex: (number|Long);
|
|
3817
|
+
|
|
3818
|
+
/** TransactionReceipt actualFee. */
|
|
3819
|
+
public actualFee?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
3820
|
+
|
|
3821
|
+
/** TransactionReceipt l2ToL1Messages. */
|
|
3822
|
+
public l2ToL1Messages: apibara.starknet.v1alpha2.IL2ToL1Message[];
|
|
3823
|
+
|
|
3824
|
+
/** TransactionReceipt events. */
|
|
3825
|
+
public events: apibara.starknet.v1alpha2.IEvent[];
|
|
3826
|
+
|
|
3827
|
+
/** TransactionReceipt contractAddress. */
|
|
3828
|
+
public contractAddress?: (apibara.starknet.v1alpha2.IFieldElement|null);
|
|
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
|
+
|
|
3839
|
+
/**
|
|
3840
|
+
* Creates a new TransactionReceipt instance using the specified properties.
|
|
3841
|
+
* @param [properties] Properties to set
|
|
3842
|
+
* @returns TransactionReceipt instance
|
|
3843
|
+
*/
|
|
3844
|
+
public static create(properties?: apibara.starknet.v1alpha2.ITransactionReceipt): apibara.starknet.v1alpha2.TransactionReceipt;
|
|
3845
|
+
|
|
3846
|
+
/**
|
|
3847
|
+
* Encodes the specified TransactionReceipt message. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionReceipt.verify|verify} messages.
|
|
3848
|
+
* @param message TransactionReceipt message or plain object to encode
|
|
3849
|
+
* @param [writer] Writer to encode to
|
|
3850
|
+
* @returns Writer
|
|
3851
|
+
*/
|
|
3852
|
+
public static encode(message: apibara.starknet.v1alpha2.ITransactionReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3853
|
+
|
|
3854
|
+
/**
|
|
3855
|
+
* Encodes the specified TransactionReceipt message, length delimited. Does not implicitly {@link apibara.starknet.v1alpha2.TransactionReceipt.verify|verify} messages.
|
|
3856
|
+
* @param message TransactionReceipt message or plain object to encode
|
|
3857
|
+
* @param [writer] Writer to encode to
|
|
3858
|
+
* @returns Writer
|
|
3859
|
+
*/
|
|
3860
|
+
public static encodeDelimited(message: apibara.starknet.v1alpha2.ITransactionReceipt, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3861
|
+
|
|
3862
|
+
/**
|
|
3863
|
+
* Decodes a TransactionReceipt message from the specified reader or buffer.
|
|
3864
|
+
* @param reader Reader or buffer to decode from
|
|
3865
|
+
* @param [length] Message length if known beforehand
|
|
3866
|
+
* @returns TransactionReceipt
|
|
3867
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3868
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3869
|
+
*/
|
|
3870
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): apibara.starknet.v1alpha2.TransactionReceipt;
|
|
3871
|
+
|
|
3872
|
+
/**
|
|
3873
|
+
* Decodes a TransactionReceipt message from the specified reader or buffer, length delimited.
|
|
3874
|
+
* @param reader Reader or buffer to decode from
|
|
3875
|
+
* @returns TransactionReceipt
|
|
3876
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3877
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3878
|
+
*/
|
|
3879
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): apibara.starknet.v1alpha2.TransactionReceipt;
|
|
3880
|
+
|
|
3881
|
+
/**
|
|
3882
|
+
* Verifies a TransactionReceipt message.
|
|
3883
|
+
* @param message Plain object to verify
|
|
3884
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3885
|
+
*/
|
|
3886
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3887
|
+
|
|
3888
|
+
/**
|
|
3889
|
+
* Creates a TransactionReceipt message from a plain object. Also converts values to their respective internal types.
|
|
3890
|
+
* @param object Plain object
|
|
3891
|
+
* @returns TransactionReceipt
|
|
3892
|
+
*/
|
|
3893
|
+
public static fromObject(object: { [k: string]: any }): apibara.starknet.v1alpha2.TransactionReceipt;
|
|
3894
|
+
|
|
3895
|
+
/**
|
|
3896
|
+
* Creates a plain object from a TransactionReceipt message. Also converts values to other types if specified.
|
|
3897
|
+
* @param message TransactionReceipt
|
|
3898
|
+
* @param [options] Conversion options
|
|
3899
|
+
* @returns Plain object
|
|
3900
|
+
*/
|
|
3901
|
+
public static toObject(message: apibara.starknet.v1alpha2.TransactionReceipt, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3902
|
+
|
|
3903
|
+
/**
|
|
3904
|
+
* Converts this TransactionReceipt to JSON.
|
|
3905
|
+
* @returns JSON object
|
|
3906
|
+
*/
|
|
3907
|
+
public toJSON(): { [k: string]: any };
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* Gets the default type url for TransactionReceipt
|
|
3911
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3912
|
+
* @returns The default type url
|
|
3913
|
+
*/
|
|
3914
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
/** Properties of a L2ToL1MessageWithTransaction. */
|
|
3918
|
+
interface IL2ToL1MessageWithTransaction {
|
|
3919
|
+
|
|
3920
|
+
/** L2ToL1MessageWithTransaction transaction */
|
|
3921
|
+
transaction?: (apibara.starknet.v1alpha2.ITransaction|null);
|
|
3922
|
+
|
|
3923
|
+
/** L2ToL1MessageWithTransaction receipt */
|
|
3924
|
+
receipt?: (apibara.starknet.v1alpha2.ITransactionReceipt|null);
|
|
3468
3925
|
|
|
3469
3926
|
/** L2ToL1MessageWithTransaction message */
|
|
3470
3927
|
message?: (apibara.starknet.v1alpha2.IL2ToL1Message|null);
|
|
@@ -4855,6 +5312,535 @@ export namespace apibara {
|
|
|
4855
5312
|
*/
|
|
4856
5313
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4857
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
|
+
}
|
|
4858
5844
|
}
|
|
4859
5845
|
}
|
|
4860
5846
|
}
|