@apibara/starknet 2.1.0-beta.45 → 2.1.0-beta.47
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 +19 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +285 -263
- package/dist/index.d.mts +285 -263
- package/dist/index.d.ts +285 -263
- package/dist/index.mjs +19 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/block.ts +2 -0
- package/src/proto/data.ts +23 -1
package/dist/index.mjs
CHANGED
|
@@ -659,7 +659,8 @@ function createBaseBlockHeader() {
|
|
|
659
659
|
starknetVersion: "",
|
|
660
660
|
l1GasPrice: void 0,
|
|
661
661
|
l1DataGasPrice: void 0,
|
|
662
|
-
l1DataAvailabilityMode: 0
|
|
662
|
+
l1DataAvailabilityMode: 0,
|
|
663
|
+
l2GasPrice: void 0
|
|
663
664
|
};
|
|
664
665
|
}
|
|
665
666
|
const BlockHeader$1 = {
|
|
@@ -697,6 +698,9 @@ const BlockHeader$1 = {
|
|
|
697
698
|
if (message.l1DataAvailabilityMode !== void 0 && message.l1DataAvailabilityMode !== 0) {
|
|
698
699
|
writer.uint32(80).int32(message.l1DataAvailabilityMode);
|
|
699
700
|
}
|
|
701
|
+
if (message.l2GasPrice !== void 0) {
|
|
702
|
+
ResourcePrice$1.encode(message.l2GasPrice, writer.uint32(90).fork()).ldelim();
|
|
703
|
+
}
|
|
700
704
|
return writer;
|
|
701
705
|
},
|
|
702
706
|
decode(input, length) {
|
|
@@ -766,6 +770,12 @@ const BlockHeader$1 = {
|
|
|
766
770
|
}
|
|
767
771
|
message.l1DataAvailabilityMode = reader.int32();
|
|
768
772
|
continue;
|
|
773
|
+
case 11:
|
|
774
|
+
if (tag !== 90) {
|
|
775
|
+
break;
|
|
776
|
+
}
|
|
777
|
+
message.l2GasPrice = ResourcePrice$1.decode(reader, reader.uint32());
|
|
778
|
+
continue;
|
|
769
779
|
}
|
|
770
780
|
if ((tag & 7) === 4 || tag === 0) {
|
|
771
781
|
break;
|
|
@@ -785,7 +795,8 @@ const BlockHeader$1 = {
|
|
|
785
795
|
starknetVersion: isSet$1(object.starknetVersion) ? globalThis.String(object.starknetVersion) : "",
|
|
786
796
|
l1GasPrice: isSet$1(object.l1GasPrice) ? ResourcePrice$1.fromJSON(object.l1GasPrice) : void 0,
|
|
787
797
|
l1DataGasPrice: isSet$1(object.l1DataGasPrice) ? ResourcePrice$1.fromJSON(object.l1DataGasPrice) : void 0,
|
|
788
|
-
l1DataAvailabilityMode: isSet$1(object.l1DataAvailabilityMode) ? l1DataAvailabilityModeFromJSON(object.l1DataAvailabilityMode) : 0
|
|
798
|
+
l1DataAvailabilityMode: isSet$1(object.l1DataAvailabilityMode) ? l1DataAvailabilityModeFromJSON(object.l1DataAvailabilityMode) : 0,
|
|
799
|
+
l2GasPrice: isSet$1(object.l2GasPrice) ? ResourcePrice$1.fromJSON(object.l2GasPrice) : void 0
|
|
789
800
|
};
|
|
790
801
|
},
|
|
791
802
|
toJSON(message) {
|
|
@@ -820,6 +831,9 @@ const BlockHeader$1 = {
|
|
|
820
831
|
if (message.l1DataAvailabilityMode !== void 0 && message.l1DataAvailabilityMode !== 0) {
|
|
821
832
|
obj.l1DataAvailabilityMode = l1DataAvailabilityModeToJSON(message.l1DataAvailabilityMode);
|
|
822
833
|
}
|
|
834
|
+
if (message.l2GasPrice !== void 0) {
|
|
835
|
+
obj.l2GasPrice = ResourcePrice$1.toJSON(message.l2GasPrice);
|
|
836
|
+
}
|
|
823
837
|
return obj;
|
|
824
838
|
},
|
|
825
839
|
create(base) {
|
|
@@ -837,6 +851,7 @@ const BlockHeader$1 = {
|
|
|
837
851
|
message.l1GasPrice = object.l1GasPrice !== void 0 && object.l1GasPrice !== null ? ResourcePrice$1.fromPartial(object.l1GasPrice) : void 0;
|
|
838
852
|
message.l1DataGasPrice = object.l1DataGasPrice !== void 0 && object.l1DataGasPrice !== null ? ResourcePrice$1.fromPartial(object.l1DataGasPrice) : void 0;
|
|
839
853
|
message.l1DataAvailabilityMode = object.l1DataAvailabilityMode ?? 0;
|
|
854
|
+
message.l2GasPrice = object.l2GasPrice !== void 0 && object.l2GasPrice !== null ? ResourcePrice$1.fromPartial(object.l2GasPrice) : void 0;
|
|
840
855
|
return message;
|
|
841
856
|
}
|
|
842
857
|
};
|
|
@@ -7717,7 +7732,8 @@ const BlockHeader = MessageCodec({
|
|
|
7717
7732
|
starknetVersion: RequiredCodec(StringCodec),
|
|
7718
7733
|
l1GasPrice: RequiredCodec(ResourcePrice),
|
|
7719
7734
|
l1DataGasPrice: RequiredCodec(ResourcePrice),
|
|
7720
|
-
l1DataAvailabilityMode: RequiredCodec(L1DataAvailabilityMode)
|
|
7735
|
+
l1DataAvailabilityMode: RequiredCodec(L1DataAvailabilityMode),
|
|
7736
|
+
l2GasPrice: OptionalCodec(ResourcePrice)
|
|
7721
7737
|
});
|
|
7722
7738
|
const TransactionMeta = MessageCodec({
|
|
7723
7739
|
transactionIndex: RequiredCodec(NumberCodec),
|