@apibara/starknet 2.0.0-beta.33 → 2.0.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +183 -159
- package/dist/index.d.cts +1372 -1358
- package/dist/index.d.mts +1372 -1358
- package/dist/index.d.ts +1372 -1358
- package/dist/index.mjs +183 -159
- package/package.json +2 -2
- package/src/block.ts +151 -155
- package/src/proto/data.ts +46 -2
package/dist/index.cjs
CHANGED
|
@@ -3280,7 +3280,8 @@ function createBaseEvent() {
|
|
|
3280
3280
|
eventIndex: 0,
|
|
3281
3281
|
transactionIndex: 0,
|
|
3282
3282
|
transactionHash: void 0,
|
|
3283
|
-
transactionStatus: 0
|
|
3283
|
+
transactionStatus: 0,
|
|
3284
|
+
eventIndexInTransaction: 0
|
|
3284
3285
|
};
|
|
3285
3286
|
}
|
|
3286
3287
|
const Event$1 = {
|
|
@@ -3317,6 +3318,9 @@ const Event$1 = {
|
|
|
3317
3318
|
if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
|
|
3318
3319
|
writer.uint32(64).int32(message.transactionStatus);
|
|
3319
3320
|
}
|
|
3321
|
+
if (message.eventIndexInTransaction !== void 0 && message.eventIndexInTransaction !== 0) {
|
|
3322
|
+
writer.uint32(72).uint32(message.eventIndexInTransaction);
|
|
3323
|
+
}
|
|
3320
3324
|
return writer;
|
|
3321
3325
|
},
|
|
3322
3326
|
decode(input, length) {
|
|
@@ -3381,6 +3385,12 @@ const Event$1 = {
|
|
|
3381
3385
|
}
|
|
3382
3386
|
message.transactionStatus = reader.int32();
|
|
3383
3387
|
continue;
|
|
3388
|
+
case 9:
|
|
3389
|
+
if (tag !== 72) {
|
|
3390
|
+
break;
|
|
3391
|
+
}
|
|
3392
|
+
message.eventIndexInTransaction = reader.uint32();
|
|
3393
|
+
continue;
|
|
3384
3394
|
}
|
|
3385
3395
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3386
3396
|
break;
|
|
@@ -3398,7 +3408,8 @@ const Event$1 = {
|
|
|
3398
3408
|
eventIndex: isSet$1(object.eventIndex) ? globalThis.Number(object.eventIndex) : 0,
|
|
3399
3409
|
transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
|
|
3400
3410
|
transactionHash: isSet$1(object.transactionHash) ? FieldElement.fromJSON(object.transactionHash) : void 0,
|
|
3401
|
-
transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
|
|
3411
|
+
transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0,
|
|
3412
|
+
eventIndexInTransaction: isSet$1(object.eventIndexInTransaction) ? globalThis.Number(object.eventIndexInTransaction) : 0
|
|
3402
3413
|
};
|
|
3403
3414
|
},
|
|
3404
3415
|
toJSON(message) {
|
|
@@ -3427,6 +3438,9 @@ const Event$1 = {
|
|
|
3427
3438
|
if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
|
|
3428
3439
|
obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
|
|
3429
3440
|
}
|
|
3441
|
+
if (message.eventIndexInTransaction !== void 0 && message.eventIndexInTransaction !== 0) {
|
|
3442
|
+
obj.eventIndexInTransaction = Math.round(message.eventIndexInTransaction);
|
|
3443
|
+
}
|
|
3430
3444
|
return obj;
|
|
3431
3445
|
},
|
|
3432
3446
|
create(base) {
|
|
@@ -3442,6 +3456,7 @@ const Event$1 = {
|
|
|
3442
3456
|
message.transactionIndex = object.transactionIndex ?? 0;
|
|
3443
3457
|
message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? FieldElement.fromPartial(object.transactionHash) : void 0;
|
|
3444
3458
|
message.transactionStatus = object.transactionStatus ?? 0;
|
|
3459
|
+
message.eventIndexInTransaction = object.eventIndexInTransaction ?? 0;
|
|
3445
3460
|
return message;
|
|
3446
3461
|
}
|
|
3447
3462
|
};
|
|
@@ -3454,7 +3469,8 @@ function createBaseMessageToL1() {
|
|
|
3454
3469
|
messageIndex: 0,
|
|
3455
3470
|
transactionIndex: 0,
|
|
3456
3471
|
transactionHash: void 0,
|
|
3457
|
-
transactionStatus: 0
|
|
3472
|
+
transactionStatus: 0,
|
|
3473
|
+
messageIndexInTransaction: 0
|
|
3458
3474
|
};
|
|
3459
3475
|
}
|
|
3460
3476
|
const MessageToL1$1 = {
|
|
@@ -3489,6 +3505,9 @@ const MessageToL1$1 = {
|
|
|
3489
3505
|
if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
|
|
3490
3506
|
writer.uint32(64).int32(message.transactionStatus);
|
|
3491
3507
|
}
|
|
3508
|
+
if (message.messageIndexInTransaction !== void 0 && message.messageIndexInTransaction !== 0) {
|
|
3509
|
+
writer.uint32(72).uint32(message.messageIndexInTransaction);
|
|
3510
|
+
}
|
|
3492
3511
|
return writer;
|
|
3493
3512
|
},
|
|
3494
3513
|
decode(input, length) {
|
|
@@ -3553,6 +3572,12 @@ const MessageToL1$1 = {
|
|
|
3553
3572
|
}
|
|
3554
3573
|
message.transactionStatus = reader.int32();
|
|
3555
3574
|
continue;
|
|
3575
|
+
case 9:
|
|
3576
|
+
if (tag !== 72) {
|
|
3577
|
+
break;
|
|
3578
|
+
}
|
|
3579
|
+
message.messageIndexInTransaction = reader.uint32();
|
|
3580
|
+
continue;
|
|
3556
3581
|
}
|
|
3557
3582
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3558
3583
|
break;
|
|
@@ -3570,7 +3595,8 @@ const MessageToL1$1 = {
|
|
|
3570
3595
|
messageIndex: isSet$1(object.messageIndex) ? globalThis.Number(object.messageIndex) : 0,
|
|
3571
3596
|
transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
|
|
3572
3597
|
transactionHash: isSet$1(object.transactionHash) ? FieldElement.fromJSON(object.transactionHash) : void 0,
|
|
3573
|
-
transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
|
|
3598
|
+
transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0,
|
|
3599
|
+
messageIndexInTransaction: isSet$1(object.messageIndexInTransaction) ? globalThis.Number(object.messageIndexInTransaction) : 0
|
|
3574
3600
|
};
|
|
3575
3601
|
},
|
|
3576
3602
|
toJSON(message) {
|
|
@@ -3599,6 +3625,9 @@ const MessageToL1$1 = {
|
|
|
3599
3625
|
if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
|
|
3600
3626
|
obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
|
|
3601
3627
|
}
|
|
3628
|
+
if (message.messageIndexInTransaction !== void 0 && message.messageIndexInTransaction !== 0) {
|
|
3629
|
+
obj.messageIndexInTransaction = Math.round(message.messageIndexInTransaction);
|
|
3630
|
+
}
|
|
3602
3631
|
return obj;
|
|
3603
3632
|
},
|
|
3604
3633
|
create(base) {
|
|
@@ -3614,6 +3643,7 @@ const MessageToL1$1 = {
|
|
|
3614
3643
|
message.transactionIndex = object.transactionIndex ?? 0;
|
|
3615
3644
|
message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? FieldElement.fromPartial(object.transactionHash) : void 0;
|
|
3616
3645
|
message.transactionStatus = object.transactionStatus ?? 0;
|
|
3646
|
+
message.messageIndexInTransaction = object.messageIndexInTransaction ?? 0;
|
|
3617
3647
|
return message;
|
|
3618
3648
|
}
|
|
3619
3649
|
};
|
|
@@ -6781,12 +6811,12 @@ const U128 = schema.Schema.transform(
|
|
|
6781
6811
|
}
|
|
6782
6812
|
);
|
|
6783
6813
|
const ResourceBounds = schema.Schema.Struct({
|
|
6784
|
-
maxAmount: schema.Schema.
|
|
6785
|
-
maxPricePerUnit:
|
|
6814
|
+
maxAmount: schema.Schema.BigIntFromSelf,
|
|
6815
|
+
maxPricePerUnit: U128
|
|
6786
6816
|
});
|
|
6787
6817
|
const ResourceBoundsMapping = schema.Schema.Struct({
|
|
6788
|
-
l1Gas:
|
|
6789
|
-
l2Gas:
|
|
6818
|
+
l1Gas: ResourceBounds,
|
|
6819
|
+
l2Gas: ResourceBounds
|
|
6790
6820
|
});
|
|
6791
6821
|
const DataAvailabilityMode = schema.Schema.transform(
|
|
6792
6822
|
schema.Schema.Enums(DataAvailabilityMode$1),
|
|
@@ -6808,162 +6838,160 @@ const DataAvailabilityMode = schema.Schema.transform(
|
|
|
6808
6838
|
);
|
|
6809
6839
|
const BlockHeader = schema.Schema.Struct({
|
|
6810
6840
|
blockHash: schema.Schema.optional(FieldElement$1),
|
|
6811
|
-
parentBlockHash:
|
|
6841
|
+
parentBlockHash: FieldElement$1,
|
|
6812
6842
|
blockNumber: schema.Schema.BigIntFromSelf,
|
|
6813
|
-
sequencerAddress:
|
|
6843
|
+
sequencerAddress: FieldElement$1,
|
|
6814
6844
|
newRoot: schema.Schema.optional(FieldElement$1),
|
|
6815
|
-
timestamp: schema.Schema.
|
|
6816
|
-
starknetVersion: schema.Schema.
|
|
6817
|
-
l1GasPrice:
|
|
6818
|
-
l1DataGasPrice:
|
|
6819
|
-
l1DataAvailabilityMode:
|
|
6845
|
+
timestamp: schema.Schema.DateFromSelf,
|
|
6846
|
+
starknetVersion: schema.Schema.String,
|
|
6847
|
+
l1GasPrice: ResourcePrice,
|
|
6848
|
+
l1DataGasPrice: ResourcePrice,
|
|
6849
|
+
l1DataAvailabilityMode: L1DataAvailabilityMode
|
|
6820
6850
|
});
|
|
6821
6851
|
const TransactionMeta = schema.Schema.Struct({
|
|
6822
|
-
transactionIndex: schema.Schema.
|
|
6823
|
-
transactionHash:
|
|
6824
|
-
transactionStatus:
|
|
6852
|
+
transactionIndex: schema.Schema.Number,
|
|
6853
|
+
transactionHash: FieldElement$1,
|
|
6854
|
+
transactionStatus: TransactionStatus
|
|
6825
6855
|
});
|
|
6826
6856
|
const InvokeTransactionV0 = schema.Schema.Struct({
|
|
6827
6857
|
_tag: tag("invokeV0"),
|
|
6828
6858
|
invokeV0: schema.Schema.Struct({
|
|
6829
|
-
maxFee:
|
|
6830
|
-
signature: schema.Schema.
|
|
6831
|
-
contractAddress:
|
|
6832
|
-
entryPointSelector:
|
|
6833
|
-
calldata: schema.Schema.
|
|
6859
|
+
maxFee: FieldElement$1,
|
|
6860
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6861
|
+
contractAddress: FieldElement$1,
|
|
6862
|
+
entryPointSelector: FieldElement$1,
|
|
6863
|
+
calldata: schema.Schema.Array(FieldElement$1)
|
|
6834
6864
|
})
|
|
6835
6865
|
});
|
|
6836
6866
|
const InvokeTransactionV1 = schema.Schema.Struct({
|
|
6837
6867
|
_tag: tag("invokeV1"),
|
|
6838
6868
|
invokeV1: schema.Schema.Struct({
|
|
6839
|
-
senderAddress:
|
|
6840
|
-
calldata: schema.Schema.
|
|
6841
|
-
maxFee:
|
|
6842
|
-
signature: schema.Schema.
|
|
6843
|
-
nonce:
|
|
6869
|
+
senderAddress: FieldElement$1,
|
|
6870
|
+
calldata: schema.Schema.Array(FieldElement$1),
|
|
6871
|
+
maxFee: FieldElement$1,
|
|
6872
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6873
|
+
nonce: FieldElement$1
|
|
6844
6874
|
})
|
|
6845
6875
|
});
|
|
6846
6876
|
const InvokeTransactionV3 = schema.Schema.Struct({
|
|
6847
6877
|
_tag: tag("invokeV3"),
|
|
6848
6878
|
invokeV3: schema.Schema.Struct({
|
|
6849
|
-
senderAddress:
|
|
6850
|
-
calldata: schema.Schema.
|
|
6851
|
-
signature: schema.Schema.
|
|
6852
|
-
nonce:
|
|
6853
|
-
resourceBounds:
|
|
6854
|
-
tip: schema.Schema.
|
|
6855
|
-
paymasterData: schema.Schema.
|
|
6856
|
-
accountDeploymentData: schema.Schema.
|
|
6857
|
-
nonceDataAvailabilityMode:
|
|
6858
|
-
feeDataAvailabilityMode:
|
|
6879
|
+
senderAddress: FieldElement$1,
|
|
6880
|
+
calldata: schema.Schema.Array(FieldElement$1),
|
|
6881
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6882
|
+
nonce: FieldElement$1,
|
|
6883
|
+
resourceBounds: ResourceBoundsMapping,
|
|
6884
|
+
tip: schema.Schema.BigIntFromSelf,
|
|
6885
|
+
paymasterData: schema.Schema.Array(FieldElement$1),
|
|
6886
|
+
accountDeploymentData: schema.Schema.Array(FieldElement$1),
|
|
6887
|
+
nonceDataAvailabilityMode: DataAvailabilityMode,
|
|
6888
|
+
feeDataAvailabilityMode: DataAvailabilityMode
|
|
6859
6889
|
})
|
|
6860
6890
|
});
|
|
6861
6891
|
const L1HandlerTransaction = schema.Schema.Struct({
|
|
6862
6892
|
_tag: tag("l1Handler"),
|
|
6863
6893
|
l1Handler: schema.Schema.Struct({
|
|
6864
|
-
nonce: schema.Schema.
|
|
6865
|
-
contractAddress:
|
|
6866
|
-
entryPointSelector:
|
|
6867
|
-
calldata: schema.Schema.
|
|
6894
|
+
nonce: schema.Schema.BigIntFromSelf,
|
|
6895
|
+
contractAddress: FieldElement$1,
|
|
6896
|
+
entryPointSelector: FieldElement$1,
|
|
6897
|
+
calldata: schema.Schema.Array(FieldElement$1)
|
|
6868
6898
|
})
|
|
6869
6899
|
});
|
|
6870
6900
|
const DeployTransaction = schema.Schema.Struct({
|
|
6871
6901
|
_tag: tag("deploy"),
|
|
6872
6902
|
deploy: schema.Schema.Struct({
|
|
6873
|
-
contractAddressSalt:
|
|
6874
|
-
constructorCalldata: schema.Schema.
|
|
6875
|
-
classHash:
|
|
6903
|
+
contractAddressSalt: FieldElement$1,
|
|
6904
|
+
constructorCalldata: schema.Schema.Array(FieldElement$1),
|
|
6905
|
+
classHash: FieldElement$1
|
|
6876
6906
|
})
|
|
6877
6907
|
});
|
|
6878
6908
|
const DeclareTransactionV0 = schema.Schema.Struct({
|
|
6879
6909
|
_tag: tag("declareV0"),
|
|
6880
6910
|
declareV0: schema.Schema.Struct({
|
|
6881
|
-
senderAddress:
|
|
6882
|
-
maxFee:
|
|
6883
|
-
signature: schema.Schema.
|
|
6884
|
-
classHash:
|
|
6911
|
+
senderAddress: FieldElement$1,
|
|
6912
|
+
maxFee: FieldElement$1,
|
|
6913
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6914
|
+
classHash: FieldElement$1
|
|
6885
6915
|
})
|
|
6886
6916
|
});
|
|
6887
6917
|
const DeclareTransactionV1 = schema.Schema.Struct({
|
|
6888
6918
|
_tag: tag("declareV1"),
|
|
6889
6919
|
declareV1: schema.Schema.Struct({
|
|
6890
|
-
senderAddress:
|
|
6891
|
-
maxFee:
|
|
6892
|
-
signature: schema.Schema.
|
|
6893
|
-
nonce:
|
|
6894
|
-
classHash:
|
|
6920
|
+
senderAddress: FieldElement$1,
|
|
6921
|
+
maxFee: FieldElement$1,
|
|
6922
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6923
|
+
nonce: FieldElement$1,
|
|
6924
|
+
classHash: FieldElement$1
|
|
6895
6925
|
})
|
|
6896
6926
|
});
|
|
6897
6927
|
const DeclareTransactionV2 = schema.Schema.Struct({
|
|
6898
6928
|
_tag: tag("declareV2"),
|
|
6899
6929
|
declareV2: schema.Schema.Struct({
|
|
6900
|
-
senderAddress:
|
|
6901
|
-
compiledClassHash:
|
|
6902
|
-
maxFee:
|
|
6903
|
-
signature: schema.Schema.
|
|
6904
|
-
nonce:
|
|
6905
|
-
classHash:
|
|
6930
|
+
senderAddress: FieldElement$1,
|
|
6931
|
+
compiledClassHash: FieldElement$1,
|
|
6932
|
+
maxFee: FieldElement$1,
|
|
6933
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6934
|
+
nonce: FieldElement$1,
|
|
6935
|
+
classHash: FieldElement$1
|
|
6906
6936
|
})
|
|
6907
6937
|
});
|
|
6908
6938
|
const DeclareTransactionV3 = schema.Schema.Struct({
|
|
6909
6939
|
_tag: tag("declareV3"),
|
|
6910
6940
|
declareV3: schema.Schema.Struct({
|
|
6911
|
-
senderAddress:
|
|
6912
|
-
compiledClassHash:
|
|
6913
|
-
signature: schema.Schema.
|
|
6914
|
-
nonce:
|
|
6915
|
-
classHash:
|
|
6916
|
-
resourceBounds:
|
|
6917
|
-
tip: schema.Schema.
|
|
6918
|
-
paymasterData: schema.Schema.
|
|
6919
|
-
accountDeploymentData: schema.Schema.
|
|
6920
|
-
nonceDataAvailabilityMode:
|
|
6921
|
-
feeDataAvailabilityMode:
|
|
6941
|
+
senderAddress: FieldElement$1,
|
|
6942
|
+
compiledClassHash: FieldElement$1,
|
|
6943
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6944
|
+
nonce: FieldElement$1,
|
|
6945
|
+
classHash: FieldElement$1,
|
|
6946
|
+
resourceBounds: ResourceBoundsMapping,
|
|
6947
|
+
tip: schema.Schema.BigIntFromSelf,
|
|
6948
|
+
paymasterData: schema.Schema.Array(FieldElement$1),
|
|
6949
|
+
accountDeploymentData: schema.Schema.Array(FieldElement$1),
|
|
6950
|
+
nonceDataAvailabilityMode: DataAvailabilityMode,
|
|
6951
|
+
feeDataAvailabilityMode: DataAvailabilityMode
|
|
6922
6952
|
})
|
|
6923
6953
|
});
|
|
6924
6954
|
const DeployAccountTransactionV1 = schema.Schema.Struct({
|
|
6925
6955
|
_tag: tag("deployAccountV1"),
|
|
6926
6956
|
deployAccountV1: schema.Schema.Struct({
|
|
6927
|
-
maxFee:
|
|
6928
|
-
signature: schema.Schema.
|
|
6929
|
-
nonce:
|
|
6930
|
-
contractAddressSalt:
|
|
6931
|
-
constructorCalldata: schema.Schema.
|
|
6932
|
-
classHash:
|
|
6957
|
+
maxFee: FieldElement$1,
|
|
6958
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6959
|
+
nonce: FieldElement$1,
|
|
6960
|
+
contractAddressSalt: FieldElement$1,
|
|
6961
|
+
constructorCalldata: schema.Schema.Array(FieldElement$1),
|
|
6962
|
+
classHash: FieldElement$1
|
|
6933
6963
|
})
|
|
6934
6964
|
});
|
|
6935
6965
|
const DeployAccountTransactionV3 = schema.Schema.Struct({
|
|
6936
6966
|
_tag: tag("deployAccountV3"),
|
|
6937
6967
|
deployAccountV3: schema.Schema.Struct({
|
|
6938
|
-
signature: schema.Schema.
|
|
6939
|
-
nonce:
|
|
6940
|
-
contractAddressSalt:
|
|
6941
|
-
constructorCalldata: schema.Schema.
|
|
6942
|
-
classHash:
|
|
6943
|
-
resourceBounds:
|
|
6944
|
-
tip: schema.Schema.
|
|
6945
|
-
paymasterData: schema.Schema.
|
|
6946
|
-
nonceDataAvailabilityMode:
|
|
6947
|
-
feeDataAvailabilityMode:
|
|
6968
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6969
|
+
nonce: FieldElement$1,
|
|
6970
|
+
contractAddressSalt: FieldElement$1,
|
|
6971
|
+
constructorCalldata: schema.Schema.Array(FieldElement$1),
|
|
6972
|
+
classHash: FieldElement$1,
|
|
6973
|
+
resourceBounds: ResourceBoundsMapping,
|
|
6974
|
+
tip: schema.Schema.BigIntFromSelf,
|
|
6975
|
+
paymasterData: schema.Schema.Array(FieldElement$1),
|
|
6976
|
+
nonceDataAvailabilityMode: DataAvailabilityMode,
|
|
6977
|
+
feeDataAvailabilityMode: DataAvailabilityMode
|
|
6948
6978
|
})
|
|
6949
6979
|
});
|
|
6950
6980
|
const Transaction = schema.Schema.Struct({
|
|
6951
|
-
filterIds: schema.Schema.
|
|
6952
|
-
meta:
|
|
6953
|
-
transaction: schema.Schema.
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
DeployAccountTransactionV3
|
|
6966
|
-
)
|
|
6981
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
6982
|
+
meta: TransactionMeta,
|
|
6983
|
+
transaction: schema.Schema.Union(
|
|
6984
|
+
InvokeTransactionV0,
|
|
6985
|
+
InvokeTransactionV1,
|
|
6986
|
+
InvokeTransactionV3,
|
|
6987
|
+
L1HandlerTransaction,
|
|
6988
|
+
DeployTransaction,
|
|
6989
|
+
DeclareTransactionV0,
|
|
6990
|
+
DeclareTransactionV1,
|
|
6991
|
+
DeclareTransactionV2,
|
|
6992
|
+
DeclareTransactionV3,
|
|
6993
|
+
DeployAccountTransactionV1,
|
|
6994
|
+
DeployAccountTransactionV3
|
|
6967
6995
|
)
|
|
6968
6996
|
});
|
|
6969
6997
|
const PriceUnit = schema.Schema.transform(
|
|
@@ -6985,11 +7013,11 @@ const PriceUnit = schema.Schema.transform(
|
|
|
6985
7013
|
}
|
|
6986
7014
|
);
|
|
6987
7015
|
const FeePayment = schema.Schema.Struct({
|
|
6988
|
-
amount:
|
|
6989
|
-
unit:
|
|
7016
|
+
amount: FieldElement$1,
|
|
7017
|
+
unit: PriceUnit
|
|
6990
7018
|
});
|
|
6991
7019
|
const ComputationResources = schema.Schema.Struct({
|
|
6992
|
-
steps: schema.Schema.
|
|
7020
|
+
steps: schema.Schema.BigIntFromSelf,
|
|
6993
7021
|
memoryHoles: schema.Schema.optional(schema.Schema.BigIntFromSelf),
|
|
6994
7022
|
rangeCheckBuiltinApplications: schema.Schema.optional(schema.Schema.BigIntFromSelf),
|
|
6995
7023
|
pedersenBuiltinApplications: schema.Schema.optional(schema.Schema.BigIntFromSelf),
|
|
@@ -7001,12 +7029,12 @@ const ComputationResources = schema.Schema.Struct({
|
|
|
7001
7029
|
segmentArenaBuiltin: schema.Schema.optional(schema.Schema.BigIntFromSelf)
|
|
7002
7030
|
});
|
|
7003
7031
|
const DataAvailabilityResources = schema.Schema.Struct({
|
|
7004
|
-
l1Gas: schema.Schema.
|
|
7005
|
-
l1DataGas: schema.Schema.
|
|
7032
|
+
l1Gas: schema.Schema.BigIntFromSelf,
|
|
7033
|
+
l1DataGas: schema.Schema.BigIntFromSelf
|
|
7006
7034
|
});
|
|
7007
7035
|
const ExecutionResources = schema.Schema.Struct({
|
|
7008
|
-
computation:
|
|
7009
|
-
dataAvailability:
|
|
7036
|
+
computation: ComputationResources,
|
|
7037
|
+
dataAvailability: DataAvailabilityResources
|
|
7010
7038
|
});
|
|
7011
7039
|
const ExecutionSucceeded = schema.Schema.Struct({
|
|
7012
7040
|
_tag: tag("succeeded"),
|
|
@@ -7019,13 +7047,11 @@ const ExecutionReverted = schema.Schema.Struct({
|
|
|
7019
7047
|
})
|
|
7020
7048
|
});
|
|
7021
7049
|
const TransactionReceiptMeta = schema.Schema.Struct({
|
|
7022
|
-
transactionIndex: schema.Schema.
|
|
7023
|
-
transactionHash:
|
|
7024
|
-
actualFee:
|
|
7025
|
-
executionResources:
|
|
7026
|
-
executionResult: schema.Schema.
|
|
7027
|
-
schema.Schema.Union(ExecutionSucceeded, ExecutionReverted)
|
|
7028
|
-
)
|
|
7050
|
+
transactionIndex: schema.Schema.Number,
|
|
7051
|
+
transactionHash: FieldElement$1,
|
|
7052
|
+
actualFee: FeePayment,
|
|
7053
|
+
executionResources: ExecutionResources,
|
|
7054
|
+
executionResult: schema.Schema.Union(ExecutionSucceeded, ExecutionReverted)
|
|
7029
7055
|
});
|
|
7030
7056
|
const InvokeTransactionReceipt = schema.Schema.Struct({
|
|
7031
7057
|
_tag: tag("invoke"),
|
|
@@ -7034,7 +7060,7 @@ const InvokeTransactionReceipt = schema.Schema.Struct({
|
|
|
7034
7060
|
const L1HandlerTransactionReceipt = schema.Schema.Struct({
|
|
7035
7061
|
_tag: tag("l1Handler"),
|
|
7036
7062
|
l1Handler: schema.Schema.Struct({
|
|
7037
|
-
messageHash: schema.Schema.
|
|
7063
|
+
messageHash: schema.Schema.Uint8ArrayFromSelf
|
|
7038
7064
|
})
|
|
7039
7065
|
});
|
|
7040
7066
|
const DeclareTransactionReceipt = schema.Schema.Struct({
|
|
@@ -7044,56 +7070,56 @@ const DeclareTransactionReceipt = schema.Schema.Struct({
|
|
|
7044
7070
|
const DeployTransactionReceipt = schema.Schema.Struct({
|
|
7045
7071
|
_tag: tag("deploy"),
|
|
7046
7072
|
deploy: schema.Schema.Struct({
|
|
7047
|
-
contractAddress:
|
|
7073
|
+
contractAddress: FieldElement$1
|
|
7048
7074
|
})
|
|
7049
7075
|
});
|
|
7050
7076
|
const DeployAccountTransactionReceipt = schema.Schema.Struct({
|
|
7051
7077
|
_tag: tag("deployAccount"),
|
|
7052
7078
|
deployAccount: schema.Schema.Struct({
|
|
7053
|
-
contractAddress:
|
|
7079
|
+
contractAddress: FieldElement$1
|
|
7054
7080
|
})
|
|
7055
7081
|
});
|
|
7056
7082
|
const TransactionReceipt = schema.Schema.Struct({
|
|
7057
|
-
filterIds: schema.Schema.
|
|
7058
|
-
meta:
|
|
7059
|
-
receipt: schema.Schema.
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
DeployAccountTransactionReceipt
|
|
7066
|
-
)
|
|
7083
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7084
|
+
meta: TransactionReceiptMeta,
|
|
7085
|
+
receipt: schema.Schema.Union(
|
|
7086
|
+
InvokeTransactionReceipt,
|
|
7087
|
+
L1HandlerTransactionReceipt,
|
|
7088
|
+
DeclareTransactionReceipt,
|
|
7089
|
+
DeployTransactionReceipt,
|
|
7090
|
+
DeployAccountTransactionReceipt
|
|
7067
7091
|
)
|
|
7068
7092
|
});
|
|
7069
7093
|
const Event = schema.Schema.Struct({
|
|
7070
|
-
filterIds: schema.Schema.
|
|
7071
|
-
address:
|
|
7072
|
-
keys: schema.Schema.
|
|
7073
|
-
data: schema.Schema.
|
|
7074
|
-
eventIndex: schema.Schema.
|
|
7075
|
-
transactionIndex: schema.Schema.
|
|
7076
|
-
transactionHash:
|
|
7077
|
-
transactionStatus:
|
|
7094
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7095
|
+
address: FieldElement$1,
|
|
7096
|
+
keys: schema.Schema.Array(FieldElement$1),
|
|
7097
|
+
data: schema.Schema.Array(FieldElement$1),
|
|
7098
|
+
eventIndex: schema.Schema.Number,
|
|
7099
|
+
transactionIndex: schema.Schema.Number,
|
|
7100
|
+
transactionHash: FieldElement$1,
|
|
7101
|
+
transactionStatus: TransactionStatus,
|
|
7102
|
+
eventIndexInTransaction: schema.Schema.Number
|
|
7078
7103
|
});
|
|
7079
7104
|
const MessageToL1 = schema.Schema.Struct({
|
|
7080
|
-
filterIds: schema.Schema.
|
|
7081
|
-
fromAddress:
|
|
7082
|
-
toAddress:
|
|
7083
|
-
payload: schema.Schema.
|
|
7084
|
-
messageIndex: schema.Schema.
|
|
7085
|
-
transactionIndex: schema.Schema.
|
|
7086
|
-
transactionHash:
|
|
7087
|
-
transactionStatus:
|
|
7105
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7106
|
+
fromAddress: FieldElement$1,
|
|
7107
|
+
toAddress: FieldElement$1,
|
|
7108
|
+
payload: schema.Schema.Array(FieldElement$1),
|
|
7109
|
+
messageIndex: schema.Schema.Number,
|
|
7110
|
+
transactionIndex: schema.Schema.Number,
|
|
7111
|
+
transactionHash: FieldElement$1,
|
|
7112
|
+
transactionStatus: TransactionStatus,
|
|
7113
|
+
messageIndexInTransaction: schema.Schema.Number
|
|
7088
7114
|
});
|
|
7089
7115
|
const StorageEntry = schema.Schema.Struct({
|
|
7090
|
-
key:
|
|
7091
|
-
value:
|
|
7116
|
+
key: FieldElement$1,
|
|
7117
|
+
value: FieldElement$1
|
|
7092
7118
|
});
|
|
7093
7119
|
const StorageDiff = schema.Schema.Struct({
|
|
7094
|
-
filterIds: schema.Schema.
|
|
7095
|
-
contractAddress:
|
|
7096
|
-
storageEntries: schema.Schema.
|
|
7120
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7121
|
+
contractAddress: FieldElement$1,
|
|
7122
|
+
storageEntries: schema.Schema.Array(StorageEntry)
|
|
7097
7123
|
});
|
|
7098
7124
|
const DeclaredClass = schema.Schema.Struct({
|
|
7099
7125
|
_tag: tag("declaredClass"),
|
|
@@ -7117,18 +7143,16 @@ const DeployedContract = schema.Schema.Struct({
|
|
|
7117
7143
|
})
|
|
7118
7144
|
});
|
|
7119
7145
|
const ContractChange = schema.Schema.Struct({
|
|
7120
|
-
filterIds: schema.Schema.
|
|
7121
|
-
change: schema.Schema.
|
|
7122
|
-
schema.Schema.Union(DeclaredClass, ReplacedClass, DeployedContract)
|
|
7123
|
-
)
|
|
7146
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7147
|
+
change: schema.Schema.Union(DeclaredClass, ReplacedClass, DeployedContract)
|
|
7124
7148
|
});
|
|
7125
7149
|
const NonceUpdate = schema.Schema.Struct({
|
|
7126
|
-
filterIds: schema.Schema.
|
|
7127
|
-
contractAddress:
|
|
7128
|
-
nonce:
|
|
7150
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7151
|
+
contractAddress: FieldElement$1,
|
|
7152
|
+
nonce: FieldElement$1
|
|
7129
7153
|
});
|
|
7130
7154
|
const Block = schema.Schema.Struct({
|
|
7131
|
-
header:
|
|
7155
|
+
header: BlockHeader,
|
|
7132
7156
|
transactions: schema.Schema.Array(Transaction),
|
|
7133
7157
|
receipts: schema.Schema.Array(TransactionReceipt),
|
|
7134
7158
|
events: schema.Schema.Array(Event),
|