@apibara/starknet 2.0.0-beta.34 → 2.0.0-beta.36
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 +149 -157
- package/dist/index.d.cts +1140 -1140
- package/dist/index.d.mts +1140 -1140
- package/dist/index.d.ts +1140 -1140
- package/dist/index.mjs +149 -157
- package/package.json +2 -2
- package/src/block.ts +149 -157
package/dist/index.cjs
CHANGED
|
@@ -6811,12 +6811,12 @@ const U128 = schema.Schema.transform(
|
|
|
6811
6811
|
}
|
|
6812
6812
|
);
|
|
6813
6813
|
const ResourceBounds = schema.Schema.Struct({
|
|
6814
|
-
maxAmount: schema.Schema.
|
|
6815
|
-
maxPricePerUnit:
|
|
6814
|
+
maxAmount: schema.Schema.BigIntFromSelf,
|
|
6815
|
+
maxPricePerUnit: U128
|
|
6816
6816
|
});
|
|
6817
6817
|
const ResourceBoundsMapping = schema.Schema.Struct({
|
|
6818
|
-
l1Gas:
|
|
6819
|
-
l2Gas:
|
|
6818
|
+
l1Gas: ResourceBounds,
|
|
6819
|
+
l2Gas: ResourceBounds
|
|
6820
6820
|
});
|
|
6821
6821
|
const DataAvailabilityMode = schema.Schema.transform(
|
|
6822
6822
|
schema.Schema.Enums(DataAvailabilityMode$1),
|
|
@@ -6838,162 +6838,160 @@ const DataAvailabilityMode = schema.Schema.transform(
|
|
|
6838
6838
|
);
|
|
6839
6839
|
const BlockHeader = schema.Schema.Struct({
|
|
6840
6840
|
blockHash: schema.Schema.optional(FieldElement$1),
|
|
6841
|
-
parentBlockHash:
|
|
6841
|
+
parentBlockHash: FieldElement$1,
|
|
6842
6842
|
blockNumber: schema.Schema.BigIntFromSelf,
|
|
6843
|
-
sequencerAddress:
|
|
6843
|
+
sequencerAddress: FieldElement$1,
|
|
6844
6844
|
newRoot: schema.Schema.optional(FieldElement$1),
|
|
6845
|
-
timestamp: schema.Schema.
|
|
6846
|
-
starknetVersion: schema.Schema.
|
|
6847
|
-
l1GasPrice:
|
|
6848
|
-
l1DataGasPrice:
|
|
6849
|
-
l1DataAvailabilityMode:
|
|
6845
|
+
timestamp: schema.Schema.DateFromSelf,
|
|
6846
|
+
starknetVersion: schema.Schema.String,
|
|
6847
|
+
l1GasPrice: ResourcePrice,
|
|
6848
|
+
l1DataGasPrice: ResourcePrice,
|
|
6849
|
+
l1DataAvailabilityMode: L1DataAvailabilityMode
|
|
6850
6850
|
});
|
|
6851
6851
|
const TransactionMeta = schema.Schema.Struct({
|
|
6852
|
-
transactionIndex: schema.Schema.
|
|
6853
|
-
transactionHash:
|
|
6854
|
-
transactionStatus:
|
|
6852
|
+
transactionIndex: schema.Schema.Number,
|
|
6853
|
+
transactionHash: FieldElement$1,
|
|
6854
|
+
transactionStatus: TransactionStatus
|
|
6855
6855
|
});
|
|
6856
6856
|
const InvokeTransactionV0 = schema.Schema.Struct({
|
|
6857
6857
|
_tag: tag("invokeV0"),
|
|
6858
6858
|
invokeV0: schema.Schema.Struct({
|
|
6859
|
-
maxFee:
|
|
6860
|
-
signature: schema.Schema.
|
|
6861
|
-
contractAddress:
|
|
6862
|
-
entryPointSelector:
|
|
6863
|
-
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)
|
|
6864
6864
|
})
|
|
6865
6865
|
});
|
|
6866
6866
|
const InvokeTransactionV1 = schema.Schema.Struct({
|
|
6867
6867
|
_tag: tag("invokeV1"),
|
|
6868
6868
|
invokeV1: schema.Schema.Struct({
|
|
6869
|
-
senderAddress:
|
|
6870
|
-
calldata: schema.Schema.
|
|
6871
|
-
maxFee:
|
|
6872
|
-
signature: schema.Schema.
|
|
6873
|
-
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
|
|
6874
6874
|
})
|
|
6875
6875
|
});
|
|
6876
6876
|
const InvokeTransactionV3 = schema.Schema.Struct({
|
|
6877
6877
|
_tag: tag("invokeV3"),
|
|
6878
6878
|
invokeV3: schema.Schema.Struct({
|
|
6879
|
-
senderAddress:
|
|
6880
|
-
calldata: schema.Schema.
|
|
6881
|
-
signature: schema.Schema.
|
|
6882
|
-
nonce:
|
|
6883
|
-
resourceBounds:
|
|
6884
|
-
tip: schema.Schema.
|
|
6885
|
-
paymasterData: schema.Schema.
|
|
6886
|
-
accountDeploymentData: schema.Schema.
|
|
6887
|
-
nonceDataAvailabilityMode:
|
|
6888
|
-
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
|
|
6889
6889
|
})
|
|
6890
6890
|
});
|
|
6891
6891
|
const L1HandlerTransaction = schema.Schema.Struct({
|
|
6892
6892
|
_tag: tag("l1Handler"),
|
|
6893
6893
|
l1Handler: schema.Schema.Struct({
|
|
6894
|
-
nonce: schema.Schema.
|
|
6895
|
-
contractAddress:
|
|
6896
|
-
entryPointSelector:
|
|
6897
|
-
calldata: schema.Schema.
|
|
6894
|
+
nonce: schema.Schema.BigIntFromSelf,
|
|
6895
|
+
contractAddress: FieldElement$1,
|
|
6896
|
+
entryPointSelector: FieldElement$1,
|
|
6897
|
+
calldata: schema.Schema.Array(FieldElement$1)
|
|
6898
6898
|
})
|
|
6899
6899
|
});
|
|
6900
6900
|
const DeployTransaction = schema.Schema.Struct({
|
|
6901
6901
|
_tag: tag("deploy"),
|
|
6902
6902
|
deploy: schema.Schema.Struct({
|
|
6903
|
-
contractAddressSalt:
|
|
6904
|
-
constructorCalldata: schema.Schema.
|
|
6905
|
-
classHash:
|
|
6903
|
+
contractAddressSalt: FieldElement$1,
|
|
6904
|
+
constructorCalldata: schema.Schema.Array(FieldElement$1),
|
|
6905
|
+
classHash: FieldElement$1
|
|
6906
6906
|
})
|
|
6907
6907
|
});
|
|
6908
6908
|
const DeclareTransactionV0 = schema.Schema.Struct({
|
|
6909
6909
|
_tag: tag("declareV0"),
|
|
6910
6910
|
declareV0: schema.Schema.Struct({
|
|
6911
|
-
senderAddress:
|
|
6912
|
-
maxFee:
|
|
6913
|
-
signature: schema.Schema.
|
|
6914
|
-
classHash:
|
|
6911
|
+
senderAddress: FieldElement$1,
|
|
6912
|
+
maxFee: FieldElement$1,
|
|
6913
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6914
|
+
classHash: FieldElement$1
|
|
6915
6915
|
})
|
|
6916
6916
|
});
|
|
6917
6917
|
const DeclareTransactionV1 = schema.Schema.Struct({
|
|
6918
6918
|
_tag: tag("declareV1"),
|
|
6919
6919
|
declareV1: schema.Schema.Struct({
|
|
6920
|
-
senderAddress:
|
|
6921
|
-
maxFee:
|
|
6922
|
-
signature: schema.Schema.
|
|
6923
|
-
nonce:
|
|
6924
|
-
classHash:
|
|
6920
|
+
senderAddress: FieldElement$1,
|
|
6921
|
+
maxFee: FieldElement$1,
|
|
6922
|
+
signature: schema.Schema.Array(FieldElement$1),
|
|
6923
|
+
nonce: FieldElement$1,
|
|
6924
|
+
classHash: FieldElement$1
|
|
6925
6925
|
})
|
|
6926
6926
|
});
|
|
6927
6927
|
const DeclareTransactionV2 = schema.Schema.Struct({
|
|
6928
6928
|
_tag: tag("declareV2"),
|
|
6929
6929
|
declareV2: schema.Schema.Struct({
|
|
6930
|
-
senderAddress:
|
|
6931
|
-
compiledClassHash:
|
|
6932
|
-
maxFee:
|
|
6933
|
-
signature: schema.Schema.
|
|
6934
|
-
nonce:
|
|
6935
|
-
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
|
|
6936
6936
|
})
|
|
6937
6937
|
});
|
|
6938
6938
|
const DeclareTransactionV3 = schema.Schema.Struct({
|
|
6939
6939
|
_tag: tag("declareV3"),
|
|
6940
6940
|
declareV3: schema.Schema.Struct({
|
|
6941
|
-
senderAddress:
|
|
6942
|
-
compiledClassHash:
|
|
6943
|
-
signature: schema.Schema.
|
|
6944
|
-
nonce:
|
|
6945
|
-
classHash:
|
|
6946
|
-
resourceBounds:
|
|
6947
|
-
tip: schema.Schema.
|
|
6948
|
-
paymasterData: schema.Schema.
|
|
6949
|
-
accountDeploymentData: schema.Schema.
|
|
6950
|
-
nonceDataAvailabilityMode:
|
|
6951
|
-
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
|
|
6952
6952
|
})
|
|
6953
6953
|
});
|
|
6954
6954
|
const DeployAccountTransactionV1 = schema.Schema.Struct({
|
|
6955
6955
|
_tag: tag("deployAccountV1"),
|
|
6956
6956
|
deployAccountV1: schema.Schema.Struct({
|
|
6957
|
-
maxFee:
|
|
6958
|
-
signature: schema.Schema.
|
|
6959
|
-
nonce:
|
|
6960
|
-
contractAddressSalt:
|
|
6961
|
-
constructorCalldata: schema.Schema.
|
|
6962
|
-
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
|
|
6963
6963
|
})
|
|
6964
6964
|
});
|
|
6965
6965
|
const DeployAccountTransactionV3 = schema.Schema.Struct({
|
|
6966
6966
|
_tag: tag("deployAccountV3"),
|
|
6967
6967
|
deployAccountV3: schema.Schema.Struct({
|
|
6968
|
-
signature: schema.Schema.
|
|
6969
|
-
nonce:
|
|
6970
|
-
contractAddressSalt:
|
|
6971
|
-
constructorCalldata: schema.Schema.
|
|
6972
|
-
classHash:
|
|
6973
|
-
resourceBounds:
|
|
6974
|
-
tip: schema.Schema.
|
|
6975
|
-
paymasterData: schema.Schema.
|
|
6976
|
-
nonceDataAvailabilityMode:
|
|
6977
|
-
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
|
|
6978
6978
|
})
|
|
6979
6979
|
});
|
|
6980
6980
|
const Transaction = schema.Schema.Struct({
|
|
6981
|
-
filterIds: schema.Schema.
|
|
6982
|
-
meta:
|
|
6983
|
-
transaction: schema.Schema.
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
DeployAccountTransactionV3
|
|
6996
|
-
)
|
|
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
|
|
6997
6995
|
)
|
|
6998
6996
|
});
|
|
6999
6997
|
const PriceUnit = schema.Schema.transform(
|
|
@@ -7015,11 +7013,11 @@ const PriceUnit = schema.Schema.transform(
|
|
|
7015
7013
|
}
|
|
7016
7014
|
);
|
|
7017
7015
|
const FeePayment = schema.Schema.Struct({
|
|
7018
|
-
amount:
|
|
7019
|
-
unit:
|
|
7016
|
+
amount: FieldElement$1,
|
|
7017
|
+
unit: PriceUnit
|
|
7020
7018
|
});
|
|
7021
7019
|
const ComputationResources = schema.Schema.Struct({
|
|
7022
|
-
steps: schema.Schema.
|
|
7020
|
+
steps: schema.Schema.BigIntFromSelf,
|
|
7023
7021
|
memoryHoles: schema.Schema.optional(schema.Schema.BigIntFromSelf),
|
|
7024
7022
|
rangeCheckBuiltinApplications: schema.Schema.optional(schema.Schema.BigIntFromSelf),
|
|
7025
7023
|
pedersenBuiltinApplications: schema.Schema.optional(schema.Schema.BigIntFromSelf),
|
|
@@ -7031,12 +7029,12 @@ const ComputationResources = schema.Schema.Struct({
|
|
|
7031
7029
|
segmentArenaBuiltin: schema.Schema.optional(schema.Schema.BigIntFromSelf)
|
|
7032
7030
|
});
|
|
7033
7031
|
const DataAvailabilityResources = schema.Schema.Struct({
|
|
7034
|
-
l1Gas: schema.Schema.
|
|
7035
|
-
l1DataGas: schema.Schema.
|
|
7032
|
+
l1Gas: schema.Schema.BigIntFromSelf,
|
|
7033
|
+
l1DataGas: schema.Schema.BigIntFromSelf
|
|
7036
7034
|
});
|
|
7037
7035
|
const ExecutionResources = schema.Schema.Struct({
|
|
7038
|
-
computation:
|
|
7039
|
-
dataAvailability:
|
|
7036
|
+
computation: ComputationResources,
|
|
7037
|
+
dataAvailability: DataAvailabilityResources
|
|
7040
7038
|
});
|
|
7041
7039
|
const ExecutionSucceeded = schema.Schema.Struct({
|
|
7042
7040
|
_tag: tag("succeeded"),
|
|
@@ -7049,13 +7047,11 @@ const ExecutionReverted = schema.Schema.Struct({
|
|
|
7049
7047
|
})
|
|
7050
7048
|
});
|
|
7051
7049
|
const TransactionReceiptMeta = schema.Schema.Struct({
|
|
7052
|
-
transactionIndex: schema.Schema.
|
|
7053
|
-
transactionHash:
|
|
7054
|
-
actualFee:
|
|
7055
|
-
executionResources:
|
|
7056
|
-
executionResult: schema.Schema.
|
|
7057
|
-
schema.Schema.Union(ExecutionSucceeded, ExecutionReverted)
|
|
7058
|
-
)
|
|
7050
|
+
transactionIndex: schema.Schema.Number,
|
|
7051
|
+
transactionHash: FieldElement$1,
|
|
7052
|
+
actualFee: FeePayment,
|
|
7053
|
+
executionResources: ExecutionResources,
|
|
7054
|
+
executionResult: schema.Schema.Union(ExecutionSucceeded, ExecutionReverted)
|
|
7059
7055
|
});
|
|
7060
7056
|
const InvokeTransactionReceipt = schema.Schema.Struct({
|
|
7061
7057
|
_tag: tag("invoke"),
|
|
@@ -7064,7 +7060,7 @@ const InvokeTransactionReceipt = schema.Schema.Struct({
|
|
|
7064
7060
|
const L1HandlerTransactionReceipt = schema.Schema.Struct({
|
|
7065
7061
|
_tag: tag("l1Handler"),
|
|
7066
7062
|
l1Handler: schema.Schema.Struct({
|
|
7067
|
-
messageHash: schema.Schema.
|
|
7063
|
+
messageHash: schema.Schema.Uint8ArrayFromSelf
|
|
7068
7064
|
})
|
|
7069
7065
|
});
|
|
7070
7066
|
const DeclareTransactionReceipt = schema.Schema.Struct({
|
|
@@ -7074,58 +7070,56 @@ const DeclareTransactionReceipt = schema.Schema.Struct({
|
|
|
7074
7070
|
const DeployTransactionReceipt = schema.Schema.Struct({
|
|
7075
7071
|
_tag: tag("deploy"),
|
|
7076
7072
|
deploy: schema.Schema.Struct({
|
|
7077
|
-
contractAddress:
|
|
7073
|
+
contractAddress: FieldElement$1
|
|
7078
7074
|
})
|
|
7079
7075
|
});
|
|
7080
7076
|
const DeployAccountTransactionReceipt = schema.Schema.Struct({
|
|
7081
7077
|
_tag: tag("deployAccount"),
|
|
7082
7078
|
deployAccount: schema.Schema.Struct({
|
|
7083
|
-
contractAddress:
|
|
7079
|
+
contractAddress: FieldElement$1
|
|
7084
7080
|
})
|
|
7085
7081
|
});
|
|
7086
7082
|
const TransactionReceipt = schema.Schema.Struct({
|
|
7087
|
-
filterIds: schema.Schema.
|
|
7088
|
-
meta:
|
|
7089
|
-
receipt: schema.Schema.
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
DeployAccountTransactionReceipt
|
|
7096
|
-
)
|
|
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
|
|
7097
7091
|
)
|
|
7098
7092
|
});
|
|
7099
7093
|
const Event = schema.Schema.Struct({
|
|
7100
|
-
filterIds: schema.Schema.
|
|
7101
|
-
address:
|
|
7102
|
-
keys: schema.Schema.
|
|
7103
|
-
data: schema.Schema.
|
|
7104
|
-
eventIndex: schema.Schema.
|
|
7105
|
-
transactionIndex: schema.Schema.
|
|
7106
|
-
transactionHash:
|
|
7107
|
-
transactionStatus:
|
|
7108
|
-
eventIndexInTransaction: schema.Schema.
|
|
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
|
|
7109
7103
|
});
|
|
7110
7104
|
const MessageToL1 = schema.Schema.Struct({
|
|
7111
|
-
filterIds: schema.Schema.
|
|
7112
|
-
fromAddress:
|
|
7113
|
-
toAddress:
|
|
7114
|
-
payload: schema.Schema.
|
|
7115
|
-
messageIndex: schema.Schema.
|
|
7116
|
-
transactionIndex: schema.Schema.
|
|
7117
|
-
transactionHash:
|
|
7118
|
-
transactionStatus:
|
|
7119
|
-
messageIndexInTransaction: schema.Schema.
|
|
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
|
|
7120
7114
|
});
|
|
7121
7115
|
const StorageEntry = schema.Schema.Struct({
|
|
7122
|
-
key:
|
|
7123
|
-
value:
|
|
7116
|
+
key: FieldElement$1,
|
|
7117
|
+
value: FieldElement$1
|
|
7124
7118
|
});
|
|
7125
7119
|
const StorageDiff = schema.Schema.Struct({
|
|
7126
|
-
filterIds: schema.Schema.
|
|
7127
|
-
contractAddress:
|
|
7128
|
-
storageEntries: schema.Schema.
|
|
7120
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7121
|
+
contractAddress: FieldElement$1,
|
|
7122
|
+
storageEntries: schema.Schema.Array(StorageEntry)
|
|
7129
7123
|
});
|
|
7130
7124
|
const DeclaredClass = schema.Schema.Struct({
|
|
7131
7125
|
_tag: tag("declaredClass"),
|
|
@@ -7149,18 +7143,16 @@ const DeployedContract = schema.Schema.Struct({
|
|
|
7149
7143
|
})
|
|
7150
7144
|
});
|
|
7151
7145
|
const ContractChange = schema.Schema.Struct({
|
|
7152
|
-
filterIds: schema.Schema.
|
|
7153
|
-
change: schema.Schema.
|
|
7154
|
-
schema.Schema.Union(DeclaredClass, ReplacedClass, DeployedContract)
|
|
7155
|
-
)
|
|
7146
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7147
|
+
change: schema.Schema.Union(DeclaredClass, ReplacedClass, DeployedContract)
|
|
7156
7148
|
});
|
|
7157
7149
|
const NonceUpdate = schema.Schema.Struct({
|
|
7158
|
-
filterIds: schema.Schema.
|
|
7159
|
-
contractAddress:
|
|
7160
|
-
nonce:
|
|
7150
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
7151
|
+
contractAddress: FieldElement$1,
|
|
7152
|
+
nonce: FieldElement$1
|
|
7161
7153
|
});
|
|
7162
7154
|
const Block = schema.Schema.Struct({
|
|
7163
|
-
header:
|
|
7155
|
+
header: BlockHeader,
|
|
7164
7156
|
transactions: schema.Schema.Array(Transaction),
|
|
7165
7157
|
receipts: schema.Schema.Array(TransactionReceipt),
|
|
7166
7158
|
events: schema.Schema.Array(Event),
|