@apibara/evm 2.0.1-beta.26 → 2.0.1-beta.28
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 +42 -42
- package/dist/index.d.cts +265 -265
- package/dist/index.d.mts +265 -265
- package/dist/index.d.ts +265 -265
- package/dist/index.mjs +42 -42
- package/package.json +2 -2
- package/src/block.ts +42 -42
package/dist/index.cjs
CHANGED
|
@@ -3031,18 +3031,18 @@ const TransactionStatus = schema.Schema.transform(
|
|
|
3031
3031
|
);
|
|
3032
3032
|
const BlockHeader = schema.Schema.Struct({
|
|
3033
3033
|
blockNumber: schema.Schema.BigIntFromSelf,
|
|
3034
|
-
blockHash:
|
|
3035
|
-
parentBlockHash:
|
|
3036
|
-
unclesHash:
|
|
3037
|
-
miner:
|
|
3038
|
-
stateRoot:
|
|
3039
|
-
transactionsRoot:
|
|
3040
|
-
receiptsRoot:
|
|
3041
|
-
logsBloom:
|
|
3042
|
-
difficulty:
|
|
3043
|
-
gasLimit:
|
|
3044
|
-
gasUsed:
|
|
3045
|
-
timestamp: schema.Schema.
|
|
3034
|
+
blockHash: B256$1,
|
|
3035
|
+
parentBlockHash: B256$1,
|
|
3036
|
+
unclesHash: B256$1,
|
|
3037
|
+
miner: Address$1,
|
|
3038
|
+
stateRoot: B256$1,
|
|
3039
|
+
transactionsRoot: B256$1,
|
|
3040
|
+
receiptsRoot: B256$1,
|
|
3041
|
+
logsBloom: Bloom,
|
|
3042
|
+
difficulty: U256$1,
|
|
3043
|
+
gasLimit: U128$1,
|
|
3044
|
+
gasUsed: U128$1,
|
|
3045
|
+
timestamp: schema.Schema.DateFromSelf,
|
|
3046
3046
|
extraData: protocol.BytesFromUint8Array,
|
|
3047
3047
|
mixHash: schema.Schema.optional(B256$1),
|
|
3048
3048
|
nonce: schema.Schema.optional(schema.Schema.BigIntFromSelf),
|
|
@@ -3054,73 +3054,73 @@ const BlockHeader = schema.Schema.Struct({
|
|
|
3054
3054
|
parentBeaconBlockRoot: schema.Schema.optional(B256$1)
|
|
3055
3055
|
});
|
|
3056
3056
|
const Withdrawal = schema.Schema.Struct({
|
|
3057
|
-
filterIds: schema.Schema.
|
|
3057
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
3058
3058
|
withdrawalIndex: schema.Schema.Number,
|
|
3059
3059
|
index: schema.Schema.BigIntFromSelf,
|
|
3060
3060
|
validatorIndex: schema.Schema.Number,
|
|
3061
|
-
address:
|
|
3062
|
-
amount: schema.Schema.
|
|
3061
|
+
address: Address$1,
|
|
3062
|
+
amount: schema.Schema.BigIntFromSelf
|
|
3063
3063
|
});
|
|
3064
3064
|
const AccessListItem = schema.Schema.Struct({
|
|
3065
|
-
address:
|
|
3065
|
+
address: Address$1,
|
|
3066
3066
|
storageKeys: schema.Schema.Array(B256$1)
|
|
3067
3067
|
});
|
|
3068
3068
|
const Signature = schema.Schema.Struct({
|
|
3069
|
-
r:
|
|
3070
|
-
s:
|
|
3071
|
-
v:
|
|
3069
|
+
r: U256$1,
|
|
3070
|
+
s: U256$1,
|
|
3071
|
+
v: U256$1,
|
|
3072
3072
|
YParity: schema.Schema.optional(schema.Schema.Boolean)
|
|
3073
3073
|
});
|
|
3074
3074
|
const Transaction = schema.Schema.Struct({
|
|
3075
|
-
filterIds: schema.Schema.
|
|
3075
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
3076
3076
|
transactionIndex: schema.Schema.Number,
|
|
3077
|
-
transactionHash:
|
|
3078
|
-
nonce: schema.Schema.
|
|
3079
|
-
from:
|
|
3077
|
+
transactionHash: B256$1,
|
|
3078
|
+
nonce: schema.Schema.BigIntFromSelf,
|
|
3079
|
+
from: Address$1,
|
|
3080
3080
|
to: schema.Schema.optional(Address$1),
|
|
3081
|
-
value:
|
|
3081
|
+
value: U256$1,
|
|
3082
3082
|
gasPrice: schema.Schema.optional(U128$1),
|
|
3083
|
-
gas:
|
|
3083
|
+
gas: U128$1,
|
|
3084
3084
|
maxFeePerGas: schema.Schema.optional(U128$1),
|
|
3085
3085
|
maxPriorityFeePerGas: schema.Schema.optional(U128$1),
|
|
3086
3086
|
input: protocol.BytesFromUint8Array,
|
|
3087
3087
|
signature: schema.Schema.optional(Signature),
|
|
3088
3088
|
chainId: schema.Schema.optional(schema.Schema.BigIntFromSelf),
|
|
3089
3089
|
accessList: schema.Schema.Array(AccessListItem),
|
|
3090
|
-
transactionType: schema.Schema.
|
|
3090
|
+
transactionType: schema.Schema.BigIntFromSelf,
|
|
3091
3091
|
maxFeePerBlobGas: schema.Schema.optional(U128$1),
|
|
3092
3092
|
blobVersionedHashes: schema.Schema.Array(B256$1),
|
|
3093
|
-
transactionStatus:
|
|
3093
|
+
transactionStatus: TransactionStatus
|
|
3094
3094
|
});
|
|
3095
3095
|
const TransactionReceipt = schema.Schema.Struct({
|
|
3096
|
-
filterIds: schema.Schema.
|
|
3097
|
-
transactionIndex: schema.Schema.
|
|
3098
|
-
transactionHash:
|
|
3099
|
-
cumulativeGasUsed:
|
|
3100
|
-
gasUsed:
|
|
3101
|
-
effectiveGasPrice:
|
|
3102
|
-
from:
|
|
3096
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
3097
|
+
transactionIndex: schema.Schema.Number,
|
|
3098
|
+
transactionHash: B256$1,
|
|
3099
|
+
cumulativeGasUsed: U128$1,
|
|
3100
|
+
gasUsed: U128$1,
|
|
3101
|
+
effectiveGasPrice: U128$1,
|
|
3102
|
+
from: Address$1,
|
|
3103
3103
|
to: schema.Schema.optional(Address$1),
|
|
3104
3104
|
contractAddress: schema.Schema.optional(Address$1),
|
|
3105
|
-
logsBloom:
|
|
3106
|
-
transactionType: schema.Schema.
|
|
3105
|
+
logsBloom: Bloom,
|
|
3106
|
+
transactionType: schema.Schema.BigIntFromSelf,
|
|
3107
3107
|
blobGasUsed: schema.Schema.optional(U128$1),
|
|
3108
3108
|
blobGasPrice: schema.Schema.optional(U128$1),
|
|
3109
|
-
transactionStatus:
|
|
3109
|
+
transactionStatus: TransactionStatus
|
|
3110
3110
|
});
|
|
3111
3111
|
const Log = schema.Schema.Struct({
|
|
3112
|
-
filterIds: schema.Schema.
|
|
3113
|
-
address:
|
|
3112
|
+
filterIds: schema.Schema.Array(schema.Schema.Number),
|
|
3113
|
+
address: Address$1,
|
|
3114
3114
|
topics: schema.Schema.Array(B256$1),
|
|
3115
3115
|
data: protocol.BytesFromUint8Array,
|
|
3116
3116
|
logIndex: schema.Schema.Number,
|
|
3117
3117
|
logIndexInTransaction: schema.Schema.Number,
|
|
3118
3118
|
transactionIndex: schema.Schema.Number,
|
|
3119
|
-
transactionHash:
|
|
3120
|
-
transactionStatus:
|
|
3119
|
+
transactionHash: B256$1,
|
|
3120
|
+
transactionStatus: TransactionStatus
|
|
3121
3121
|
});
|
|
3122
3122
|
const Block = schema.Schema.Struct({
|
|
3123
|
-
header:
|
|
3123
|
+
header: BlockHeader,
|
|
3124
3124
|
withdrawals: schema.Schema.Array(Withdrawal),
|
|
3125
3125
|
transactions: schema.Schema.Array(Transaction),
|
|
3126
3126
|
receipts: schema.Schema.Array(TransactionReceipt),
|