@inco/js 0.2.17 → 0.3.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/cjs/attestedcompute/attested-compute.d.ts +38 -0
- package/dist/cjs/attestedcompute/attested-compute.js +98 -0
- package/dist/cjs/attestedcompute/types.d.ts +34 -0
- package/dist/cjs/attestedcompute/types.js +46 -0
- package/dist/cjs/attesteddecrypt/attested-decrypt.d.ts +6 -0
- package/dist/cjs/attesteddecrypt/attested-decrypt.js +3 -1
- package/dist/cjs/attesteddecrypt/types.d.ts +6 -4
- package/dist/cjs/chain.d.ts +3 -0
- package/dist/cjs/chain.js +5 -2
- package/dist/cjs/generated/abis/lightning.d.ts +4 -0
- package/dist/cjs/generated/abis/lightning.js +5 -2
- package/dist/cjs/generated/es/cosmos/msg/v1/msg_pb.d.ts +1 -1
- package/dist/cjs/generated/es/cosmos/msg/v1/msg_pb.js +5 -5
- package/dist/cjs/generated/es/cosmos_proto/cosmos_pb.d.ts +1 -1
- package/dist/cjs/generated/es/cosmos_proto/cosmos_pb.js +15 -15
- package/dist/cjs/generated/es/google/api/annotations_pb.d.ts +1 -1
- package/dist/cjs/generated/es/google/api/annotations_pb.js +3 -3
- package/dist/cjs/generated/es/google/api/http_pb.d.ts +1 -1
- package/dist/cjs/generated/es/google/api/http_pb.js +5 -5
- package/dist/cjs/generated/es/inco/fhe/v1/events_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/fhe/v1/events_pb.js +5 -5
- package/dist/cjs/generated/es/inco/fhe/v1/genesis_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/fhe/v1/genesis_pb.js +10 -10
- package/dist/cjs/generated/es/inco/fhe/v1/query_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/fhe/v1/query_pb.js +22 -22
- package/dist/cjs/generated/es/inco/fhe/v1/tx_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/fhe/v1/tx_pb.js +22 -22
- package/dist/cjs/generated/es/inco/fhe/v1/types_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/fhe/v1/types_pb.js +16 -16
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +194 -1
- package/dist/cjs/generated/es/inco/kms/lite/v1/kms_service_pb.js +114 -14
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/kms/lite/v1/types_pb.js +10 -10
- package/dist/cjs/generated/es/inco/preflight/v1/genesis_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/preflight/v1/genesis_pb.js +5 -5
- package/dist/cjs/generated/es/inco/preflight/v1/query_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/preflight/v1/query_pb.js +8 -8
- package/dist/cjs/generated/es/inco/preflight/v1/tx_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/preflight/v1/tx_pb.js +10 -10
- package/dist/cjs/generated/es/inco/preflight/v1/types_pb.d.ts +1 -1
- package/dist/cjs/generated/es/inco/preflight/v1/types_pb.js +8 -8
- package/dist/cjs/generated/lightning.d.ts +42 -0
- package/dist/cjs/generated/lightning.js +45 -1
- package/dist/cjs/generated/local-node.d.ts +13 -2
- package/dist/cjs/generated/local-node.js +14 -3
- package/dist/cjs/generated/ts/amino/amino.js +1 -1
- package/dist/cjs/generated/ts/cometbft/abci/v1/types.js +49 -49
- package/dist/cjs/generated/ts/cometbft/crypto/v1/keys.js +3 -3
- package/dist/cjs/generated/ts/cometbft/crypto/v1/proof.js +7 -7
- package/dist/cjs/generated/ts/cometbft/types/v1/params.js +11 -11
- package/dist/cjs/generated/ts/cometbft/types/v1/validator.js +5 -5
- package/dist/cjs/generated/ts/cosmos/app/v1alpha1/module.js +5 -5
- package/dist/cjs/generated/ts/cosmos/msg/v1/msg.js +1 -1
- package/dist/cjs/generated/ts/cosmos_proto/cosmos.js +4 -4
- package/dist/cjs/generated/ts/gogoproto/gogo.js +1 -1
- package/dist/cjs/generated/ts/google/api/annotations.js +1 -1
- package/dist/cjs/generated/ts/google/api/http.js +5 -5
- package/dist/cjs/generated/ts/google/protobuf/descriptor.js +35 -35
- package/dist/cjs/generated/ts/google/protobuf/duration.js +3 -3
- package/dist/cjs/generated/ts/google/protobuf/timestamp.js +3 -3
- package/dist/cjs/generated/ts/google/protobuf/wrappers.js +11 -11
- package/dist/cjs/generated/ts/inco/abci/v1/types.js +3 -3
- package/dist/cjs/generated/ts/inco/fhe/module/v1/module.js +3 -3
- package/dist/cjs/generated/ts/inco/fhe/v1/events.js +4 -4
- package/dist/cjs/generated/ts/inco/fhe/v1/genesis.js +9 -9
- package/dist/cjs/generated/ts/inco/fhe/v1/query.d.ts +19 -19
- package/dist/cjs/generated/ts/inco/fhe/v1/query.js +20 -20
- package/dist/cjs/generated/ts/inco/fhe/v1/tx.d.ts +19 -19
- package/dist/cjs/generated/ts/inco/fhe/v1/tx.js +20 -20
- package/dist/cjs/generated/ts/inco/fhe/v1/types.js +14 -14
- package/dist/cjs/generated/ts/inco/originchain/module/v1/module.js +3 -3
- package/dist/cjs/generated/ts/inco/originchain/v1/abci.js +6 -6
- package/dist/cjs/generated/ts/inco/originchain/v1/events.js +4 -4
- package/dist/cjs/generated/ts/inco/originchain/v1/genesis.js +3 -3
- package/dist/cjs/generated/ts/inco/originchain/v1/query.d.ts +5 -5
- package/dist/cjs/generated/ts/inco/originchain/v1/query.js +6 -6
- package/dist/cjs/generated/ts/inco/originchain/v1/tx.d.ts +3 -3
- package/dist/cjs/generated/ts/inco/originchain/v1/tx.js +4 -4
- package/dist/cjs/generated/ts/inco/originchain/v1/types.js +4 -4
- package/dist/cjs/generated/ts/inco/preflight/module/v1/module.js +3 -3
- package/dist/cjs/generated/ts/inco/preflight/v1/genesis.js +4 -4
- package/dist/cjs/generated/ts/inco/preflight/v1/query.d.ts +5 -5
- package/dist/cjs/generated/ts/inco/preflight/v1/query.js +6 -6
- package/dist/cjs/generated/ts/inco/preflight/v1/tx.d.ts +7 -7
- package/dist/cjs/generated/ts/inco/preflight/v1/tx.js +8 -8
- package/dist/cjs/generated/ts/inco/preflight/v1/types.js +7 -7
- package/dist/cjs/lite/attested-compute.d.ts +4 -0
- package/dist/cjs/lite/attested-compute.js +6 -0
- package/dist/cjs/lite/ecies.js +2 -2
- package/dist/cjs/lite/lightning.d.ts +10 -2
- package/dist/cjs/lite/lightning.js +16 -3
- package/dist/cjs/local/local-node.d.ts +4 -1
- package/dist/cjs/local/local-node.js +9 -4
- package/dist/cjs/reencryption/eip712.js +5 -3
- package/dist/cjs/viem.d.ts +362 -0
- package/dist/cjs/viem.js +2 -2
- package/dist/esm/attestedcompute/attested-compute.d.ts +38 -0
- package/dist/esm/attestedcompute/attested-compute.js +95 -0
- package/dist/esm/attestedcompute/types.d.ts +34 -0
- package/dist/esm/attestedcompute/types.js +42 -0
- package/dist/esm/attesteddecrypt/attested-decrypt.d.ts +6 -0
- package/dist/esm/attesteddecrypt/attested-decrypt.js +4 -3
- package/dist/esm/attesteddecrypt/types.d.ts +6 -4
- package/dist/esm/chain.d.ts +3 -0
- package/dist/esm/chain.js +5 -2
- package/dist/esm/generated/abis/lightning.d.ts +4 -0
- package/dist/esm/generated/abis/lightning.js +5 -2
- package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.d.ts +1 -1
- package/dist/esm/generated/es/cosmos/msg/v1/msg_pb.js +2 -2
- package/dist/esm/generated/es/cosmos_proto/cosmos_pb.d.ts +1 -1
- package/dist/esm/generated/es/cosmos_proto/cosmos_pb.js +2 -2
- package/dist/esm/generated/es/google/api/annotations_pb.d.ts +1 -1
- package/dist/esm/generated/es/google/api/annotations_pb.js +1 -1
- package/dist/esm/generated/es/google/api/http_pb.d.ts +1 -1
- package/dist/esm/generated/es/google/api/http_pb.js +1 -1
- package/dist/esm/generated/es/inco/fhe/v1/events_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/fhe/v1/events_pb.js +2 -2
- package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/fhe/v1/genesis_pb.js +2 -2
- package/dist/esm/generated/es/inco/fhe/v1/query_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/fhe/v1/query_pb.js +2 -2
- package/dist/esm/generated/es/inco/fhe/v1/tx_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/fhe/v1/tx_pb.js +2 -2
- package/dist/esm/generated/es/inco/fhe/v1/types_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/fhe/v1/types_pb.js +2 -2
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +194 -1
- package/dist/esm/generated/es/inco/kms/lite/v1/kms_service_pb.js +106 -6
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/kms/lite/v1/types_pb.js +2 -2
- package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/preflight/v1/genesis_pb.js +2 -2
- package/dist/esm/generated/es/inco/preflight/v1/query_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/preflight/v1/query_pb.js +2 -2
- package/dist/esm/generated/es/inco/preflight/v1/tx_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/preflight/v1/tx_pb.js +2 -2
- package/dist/esm/generated/es/inco/preflight/v1/types_pb.d.ts +1 -1
- package/dist/esm/generated/es/inco/preflight/v1/types_pb.js +2 -2
- package/dist/esm/generated/lightning.d.ts +42 -0
- package/dist/esm/generated/lightning.js +45 -1
- package/dist/esm/generated/local-node.d.ts +13 -2
- package/dist/esm/generated/local-node.js +14 -3
- package/dist/esm/generated/ts/amino/amino.js +1 -1
- package/dist/esm/generated/ts/cometbft/abci/v1/types.js +49 -49
- package/dist/esm/generated/ts/cometbft/crypto/v1/keys.js +3 -3
- package/dist/esm/generated/ts/cometbft/crypto/v1/proof.js +7 -7
- package/dist/esm/generated/ts/cometbft/types/v1/params.js +11 -11
- package/dist/esm/generated/ts/cometbft/types/v1/validator.js +5 -5
- package/dist/esm/generated/ts/cosmos/app/v1alpha1/module.js +5 -5
- package/dist/esm/generated/ts/cosmos/msg/v1/msg.js +1 -1
- package/dist/esm/generated/ts/cosmos_proto/cosmos.js +4 -4
- package/dist/esm/generated/ts/gogoproto/gogo.js +1 -1
- package/dist/esm/generated/ts/google/api/annotations.js +1 -1
- package/dist/esm/generated/ts/google/api/http.js +5 -5
- package/dist/esm/generated/ts/google/protobuf/descriptor.js +35 -35
- package/dist/esm/generated/ts/google/protobuf/duration.js +3 -3
- package/dist/esm/generated/ts/google/protobuf/timestamp.js +3 -3
- package/dist/esm/generated/ts/google/protobuf/wrappers.js +11 -11
- package/dist/esm/generated/ts/inco/abci/v1/types.js +3 -3
- package/dist/esm/generated/ts/inco/fhe/module/v1/module.js +3 -3
- package/dist/esm/generated/ts/inco/fhe/v1/events.js +4 -4
- package/dist/esm/generated/ts/inco/fhe/v1/genesis.js +9 -9
- package/dist/esm/generated/ts/inco/fhe/v1/query.d.ts +19 -19
- package/dist/esm/generated/ts/inco/fhe/v1/query.js +20 -20
- package/dist/esm/generated/ts/inco/fhe/v1/tx.d.ts +19 -19
- package/dist/esm/generated/ts/inco/fhe/v1/tx.js +20 -20
- package/dist/esm/generated/ts/inco/fhe/v1/types.js +14 -14
- package/dist/esm/generated/ts/inco/originchain/module/v1/module.js +3 -3
- package/dist/esm/generated/ts/inco/originchain/v1/abci.js +6 -6
- package/dist/esm/generated/ts/inco/originchain/v1/events.js +4 -4
- package/dist/esm/generated/ts/inco/originchain/v1/genesis.js +3 -3
- package/dist/esm/generated/ts/inco/originchain/v1/query.d.ts +5 -5
- package/dist/esm/generated/ts/inco/originchain/v1/query.js +6 -6
- package/dist/esm/generated/ts/inco/originchain/v1/tx.d.ts +3 -3
- package/dist/esm/generated/ts/inco/originchain/v1/tx.js +4 -4
- package/dist/esm/generated/ts/inco/originchain/v1/types.js +4 -4
- package/dist/esm/generated/ts/inco/preflight/module/v1/module.js +3 -3
- package/dist/esm/generated/ts/inco/preflight/v1/genesis.js +4 -4
- package/dist/esm/generated/ts/inco/preflight/v1/query.d.ts +5 -5
- package/dist/esm/generated/ts/inco/preflight/v1/query.js +6 -6
- package/dist/esm/generated/ts/inco/preflight/v1/tx.d.ts +7 -7
- package/dist/esm/generated/ts/inco/preflight/v1/tx.js +8 -8
- package/dist/esm/generated/ts/inco/preflight/v1/types.js +7 -7
- package/dist/esm/lite/attested-compute.d.ts +4 -0
- package/dist/esm/lite/attested-compute.js +3 -0
- package/dist/esm/lite/ecies.js +2 -2
- package/dist/esm/lite/lightning.d.ts +10 -2
- package/dist/esm/lite/lightning.js +16 -3
- package/dist/esm/local/local-node.d.ts +4 -1
- package/dist/esm/local/local-node.js +9 -4
- package/dist/esm/reencryption/eip712.js +5 -3
- package/dist/esm/viem.d.ts +362 -0
- package/dist/esm/viem.js +3 -3
- package/dist/types/attestedcompute/attested-compute.d.ts +38 -0
- package/dist/types/attestedcompute/types.d.ts +34 -0
- package/dist/types/attesteddecrypt/attested-decrypt.d.ts +6 -0
- package/dist/types/attesteddecrypt/types.d.ts +6 -4
- package/dist/types/chain.d.ts +3 -0
- package/dist/types/generated/abis/lightning.d.ts +4 -0
- package/dist/types/generated/es/cosmos/msg/v1/msg_pb.d.ts +1 -1
- package/dist/types/generated/es/cosmos_proto/cosmos_pb.d.ts +1 -1
- package/dist/types/generated/es/google/api/annotations_pb.d.ts +1 -1
- package/dist/types/generated/es/google/api/http_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/fhe/v1/events_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/fhe/v1/genesis_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/fhe/v1/query_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/fhe/v1/tx_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/fhe/v1/types_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/kms/lite/v1/kms_service_pb.d.ts +194 -1
- package/dist/types/generated/es/inco/kms/lite/v1/types_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/preflight/v1/genesis_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/preflight/v1/query_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/preflight/v1/tx_pb.d.ts +1 -1
- package/dist/types/generated/es/inco/preflight/v1/types_pb.d.ts +1 -1
- package/dist/types/generated/lightning.d.ts +42 -0
- package/dist/types/generated/local-node.d.ts +13 -2
- package/dist/types/generated/ts/inco/fhe/v1/query.d.ts +19 -19
- package/dist/types/generated/ts/inco/fhe/v1/tx.d.ts +19 -19
- package/dist/types/generated/ts/inco/originchain/v1/query.d.ts +5 -5
- package/dist/types/generated/ts/inco/originchain/v1/tx.d.ts +3 -3
- package/dist/types/generated/ts/inco/preflight/v1/query.d.ts +5 -5
- package/dist/types/generated/ts/inco/preflight/v1/tx.d.ts +7 -7
- package/dist/types/lite/attested-compute.d.ts +4 -0
- package/dist/types/lite/lightning.d.ts +10 -2
- package/dist/types/local/local-node.d.ts +4 -1
- package/dist/types/viem.d.ts +362 -0
- package/package.json +4 -1
- package/dist/cjs/generated/abis/index.d.ts +0 -2
- package/dist/cjs/generated/abis/index.js +0 -19
- package/dist/cjs/generated/es/cosmos/ics23/v1/proofs_pb.d.ts +0 -593
- package/dist/cjs/generated/es/cosmos/ics23/v1/proofs_pb.js +0 -201
- package/dist/cjs/generated/es/kms/base_pb.d.ts +0 -765
- package/dist/cjs/generated/es/kms/base_pb.js +0 -241
- package/dist/cjs/generated/es/sf/ethereum/type/v2/type_pb.d.ts +0 -1736
- package/dist/cjs/generated/es/sf/ethereum/type/v2/type_pb.js +0 -574
- package/dist/esm/generated/abis/index.d.ts +0 -2
- package/dist/esm/generated/abis/index.js +0 -3
- package/dist/esm/generated/es/cosmos/ics23/v1/proofs_pb.d.ts +0 -593
- package/dist/esm/generated/es/cosmos/ics23/v1/proofs_pb.js +0 -198
- package/dist/esm/generated/es/kms/base_pb.d.ts +0 -765
- package/dist/esm/generated/es/kms/base_pb.js +0 -238
- package/dist/esm/generated/es/sf/ethereum/type/v2/type_pb.d.ts +0 -1736
- package/dist/esm/generated/es/sf/ethereum/type/v2/type_pb.js +0 -571
- package/dist/types/generated/abis/index.d.ts +0 -2
- package/dist/types/generated/es/cosmos/ics23/v1/proofs_pb.d.ts +0 -593
- package/dist/types/generated/es/kms/base_pb.d.ts +0 -765
- package/dist/types/generated/es/sf/ethereum/type/v2/type_pb.d.ts +0 -1736
@@ -1,1736 +0,0 @@
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
2
|
-
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
3
|
-
import type { Message } from "@bufbuild/protobuf";
|
4
|
-
/**
|
5
|
-
* Describes the file sf/ethereum/type/v2/type.proto.
|
6
|
-
*/
|
7
|
-
export declare const file_sf_ethereum_type_v2_type: GenFile;
|
8
|
-
/**
|
9
|
-
* Block is the representation of the tracing of a block in the Ethereum
|
10
|
-
* blockchain. A block is a collection of [TransactionTrace] that are grouped
|
11
|
-
* together and processed as an atomic unit. Each [TransactionTrace] is composed
|
12
|
-
* of a series of [Call] (a.k.a internal transactions) and there is also at
|
13
|
-
* least one call per transaction a.k.a the root call which essentially has the
|
14
|
-
* same parameters as the transaction itself (e.g. `from`, `to`, `gas`, `value`,
|
15
|
-
* etc.).
|
16
|
-
*
|
17
|
-
* The exact tracing method used to build the block must be checked against
|
18
|
-
* [DetailLevel] field. There is two levels of details available, `BASE` and
|
19
|
-
* `EXTENDED`. The `BASE` level has been extracted using archive node RPC calls
|
20
|
-
* and will contain only the block header, transaction receipts and event logs.
|
21
|
-
* Refers to the Firehose service provider to know which blocks are offered on
|
22
|
-
* each network.
|
23
|
-
*
|
24
|
-
* The `EXTENDED` level has been extracted using the Firehose tracer and all
|
25
|
-
* fields are available in this Protobuf.
|
26
|
-
*
|
27
|
-
* The Ethereum block model is used across many chains which means that it
|
28
|
-
* happen that certain fields are not available in one chain but are available
|
29
|
-
* in another. Each field should be documented when necesssary if it's available
|
30
|
-
* on a subset of chains.
|
31
|
-
*
|
32
|
-
* One major concept to get about the Block is the concept of 'ordinal'. The
|
33
|
-
* ordinal is a number that is used to globally order every element of execution
|
34
|
-
* that happened throughout the processing of the block like
|
35
|
-
* [TransactionTracer], [Call], [Log], [BalanceChange], [StateChange], etc.
|
36
|
-
* Element that have a start and end interval, [Transaction] and [Call], will
|
37
|
-
* have two ordinals: `begin_ordinal` and `end_ordinal`. Element that are
|
38
|
-
* executed as "point in time" [Log], [BalanceChange], [StateChange], etc. will
|
39
|
-
* have only one ordinal named `ordinal`. If you take all of the message in the
|
40
|
-
* Block that have an 'ordinal' field in an array and you sort each element
|
41
|
-
* against the `ordinal` field, you will get the exact order of execution of
|
42
|
-
* each element in the block.
|
43
|
-
*
|
44
|
-
* All the 'ordinal' fields in a block are globally unique for the given block,
|
45
|
-
* it is **not** a chain-wide global ordering. Furthermore, caution must be take
|
46
|
-
* with reverted elements due to execution failure. For anything attached to a
|
47
|
-
* [Call] that has a `state_reverted` field set to `true`, the `ordinal` field
|
48
|
-
* is not reliable and should not be used to order the element against other
|
49
|
-
* elements in the block as those element might have 0 as the ordinal. Only
|
50
|
-
* successful calls have a reliable `ordinal` field.
|
51
|
-
*
|
52
|
-
* @generated from message sf.ethereum.type.v2.Block
|
53
|
-
*/
|
54
|
-
export type Block = Message<"sf.ethereum.type.v2.Block"> & {
|
55
|
-
/**
|
56
|
-
* Hash is the block's hash.
|
57
|
-
*
|
58
|
-
* @generated from field: bytes hash = 2;
|
59
|
-
*/
|
60
|
-
hash: Uint8Array;
|
61
|
-
/**
|
62
|
-
* Number is the block's height at which this block was mined.
|
63
|
-
*
|
64
|
-
* @generated from field: uint64 number = 3;
|
65
|
-
*/
|
66
|
-
number: bigint;
|
67
|
-
/**
|
68
|
-
* Size is the size in bytes of the RLP encoding of the block according to Ethereum
|
69
|
-
* rules.
|
70
|
-
*
|
71
|
-
* @generated from field: uint64 size = 4;
|
72
|
-
*/
|
73
|
-
size: bigint;
|
74
|
-
/**
|
75
|
-
* Header contain's the block's header information like its parent hash, the merkel root hash
|
76
|
-
* and all other information the form a block.
|
77
|
-
*
|
78
|
-
* @generated from field: sf.ethereum.type.v2.BlockHeader header = 5;
|
79
|
-
*/
|
80
|
-
header?: BlockHeader;
|
81
|
-
/**
|
82
|
-
* Uncles represents block produced with a valid solution but were not actually choosen
|
83
|
-
* as the canonical block for the given height so they are mostly "forked" blocks.
|
84
|
-
*
|
85
|
-
* If the Block has been produced using the Proof of Stake consensus algorithm, this
|
86
|
-
* field will actually be always empty.
|
87
|
-
*
|
88
|
-
* @generated from field: repeated sf.ethereum.type.v2.BlockHeader uncles = 6;
|
89
|
-
*/
|
90
|
-
uncles: BlockHeader[];
|
91
|
-
/**
|
92
|
-
* TransactionTraces hold the execute trace of all the transactions that were executed
|
93
|
-
* in this block. In in there that you will find most of the Ethereum data model.
|
94
|
-
*
|
95
|
-
* They are ordered by the order of execution of the transaction in the block.
|
96
|
-
*
|
97
|
-
* @generated from field: repeated sf.ethereum.type.v2.TransactionTrace transaction_traces = 10;
|
98
|
-
*/
|
99
|
-
transactionTraces: TransactionTrace[];
|
100
|
-
/**
|
101
|
-
* BalanceChanges here is the array of ETH transfer that happened at the block level
|
102
|
-
* outside of the normal transaction flow of a block. The best example of this is mining
|
103
|
-
* reward for the block mined, the transfer of ETH to the miner happens outside the normal
|
104
|
-
* transaction flow of the chain and is recorded as a `BalanceChange` here since we cannot
|
105
|
-
* attached it to any transaction.
|
106
|
-
*
|
107
|
-
* Only available in DetailLevel: EXTENDED
|
108
|
-
*
|
109
|
-
* @generated from field: repeated sf.ethereum.type.v2.BalanceChange balance_changes = 11;
|
110
|
-
*/
|
111
|
-
balanceChanges: BalanceChange[];
|
112
|
-
/**
|
113
|
-
* DetailLevel affects the data available in this block.
|
114
|
-
*
|
115
|
-
* ## DetailLevel_EXTENDED
|
116
|
-
*
|
117
|
-
* Describes the most complete block, with traces, balance changes, storage
|
118
|
-
* changes. It is extracted during the execution of the block.
|
119
|
-
*
|
120
|
-
* ## DetailLevel_BASE
|
121
|
-
*
|
122
|
-
* Describes a block that contains only the block header, transaction receipts
|
123
|
-
* and event logs: everything that can be extracted using the base JSON-RPC
|
124
|
-
* interface
|
125
|
-
* (https://ethereum.org/en/developers/docs/apis/json-rpc/#json-rpc-methods)
|
126
|
-
* Furthermore, the eth_getTransactionReceipt call has been avoided because it
|
127
|
-
* brings only minimal improvements at the cost of requiring an archive node
|
128
|
-
* or a full node with complete transaction index.
|
129
|
-
*
|
130
|
-
* @generated from field: sf.ethereum.type.v2.Block.DetailLevel detail_level = 12;
|
131
|
-
*/
|
132
|
-
detailLevel: Block_DetailLevel;
|
133
|
-
/**
|
134
|
-
* CodeChanges here is the array of smart code change that happened that happened at the block level
|
135
|
-
* outside of the normal transaction flow of a block. Some Ethereum's fork like BSC and Polygon
|
136
|
-
* has some capabilities to upgrade internal smart contracts used usually to track the validator
|
137
|
-
* list.
|
138
|
-
*
|
139
|
-
* On hard fork, some procedure runs to upgrade the smart contract code to a new version. In those
|
140
|
-
* network, a `CodeChange` for each modified smart contract on upgrade would be present here. Note
|
141
|
-
* that this happen rarely, so the vast majority of block will have an empty list here.
|
142
|
-
*
|
143
|
-
* Only available in DetailLevel: EXTENDED
|
144
|
-
*
|
145
|
-
* @generated from field: repeated sf.ethereum.type.v2.CodeChange code_changes = 20;
|
146
|
-
*/
|
147
|
-
codeChanges: CodeChange[];
|
148
|
-
/**
|
149
|
-
* System calls are introduced in Cancun, along with blobs. They are executed outside of transactions but affect the state.
|
150
|
-
*
|
151
|
-
* Only available in DetailLevel: EXTENDED
|
152
|
-
*
|
153
|
-
* @generated from field: repeated sf.ethereum.type.v2.Call system_calls = 21;
|
154
|
-
*/
|
155
|
-
systemCalls: Call[];
|
156
|
-
/**
|
157
|
-
* Ver represents that data model version of the block, it is used internally by Firehose on Ethereum
|
158
|
-
* as a validation that we are reading the correct version.
|
159
|
-
*
|
160
|
-
* @generated from field: int32 ver = 1;
|
161
|
-
*/
|
162
|
-
ver: number;
|
163
|
-
};
|
164
|
-
/**
|
165
|
-
* Describes the message sf.ethereum.type.v2.Block.
|
166
|
-
* Use `create(BlockSchema)` to create a new message.
|
167
|
-
*/
|
168
|
-
export declare const BlockSchema: GenMessage<Block>;
|
169
|
-
/**
|
170
|
-
* @generated from enum sf.ethereum.type.v2.Block.DetailLevel
|
171
|
-
*/
|
172
|
-
export declare enum Block_DetailLevel {
|
173
|
-
/**
|
174
|
-
* @generated from enum value: DETAILLEVEL_EXTENDED = 0;
|
175
|
-
*/
|
176
|
-
DETAILLEVEL_EXTENDED = 0,
|
177
|
-
/**
|
178
|
-
* DETAILLEVEL_TRACE = 1; // TBD
|
179
|
-
*
|
180
|
-
* @generated from enum value: DETAILLEVEL_BASE = 2;
|
181
|
-
*/
|
182
|
-
DETAILLEVEL_BASE = 2
|
183
|
-
}
|
184
|
-
/**
|
185
|
-
* Describes the enum sf.ethereum.type.v2.Block.DetailLevel.
|
186
|
-
*/
|
187
|
-
export declare const Block_DetailLevelSchema: GenEnum<Block_DetailLevel>;
|
188
|
-
/**
|
189
|
-
* @generated from message sf.ethereum.type.v2.BlockHeader
|
190
|
-
*/
|
191
|
-
export type BlockHeader = Message<"sf.ethereum.type.v2.BlockHeader"> & {
|
192
|
-
/**
|
193
|
-
* @generated from field: bytes parent_hash = 1;
|
194
|
-
*/
|
195
|
-
parentHash: Uint8Array;
|
196
|
-
/**
|
197
|
-
* Uncle hash of the block, some reference it as `sha3Uncles`, but `sha3`` is badly worded, so we prefer `uncle_hash`, also
|
198
|
-
* referred as `ommers` in EIP specification.
|
199
|
-
*
|
200
|
-
* If the Block containing this `BlockHeader` has been produced using the Proof of Stake
|
201
|
-
* consensus algorithm, this field will actually be constant and set to `0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347`.
|
202
|
-
*
|
203
|
-
* @generated from field: bytes uncle_hash = 2;
|
204
|
-
*/
|
205
|
-
uncleHash: Uint8Array;
|
206
|
-
/**
|
207
|
-
* @generated from field: bytes coinbase = 3;
|
208
|
-
*/
|
209
|
-
coinbase: Uint8Array;
|
210
|
-
/**
|
211
|
-
* @generated from field: bytes state_root = 4;
|
212
|
-
*/
|
213
|
-
stateRoot: Uint8Array;
|
214
|
-
/**
|
215
|
-
* @generated from field: bytes transactions_root = 5;
|
216
|
-
*/
|
217
|
-
transactionsRoot: Uint8Array;
|
218
|
-
/**
|
219
|
-
* @generated from field: bytes receipt_root = 6;
|
220
|
-
*/
|
221
|
-
receiptRoot: Uint8Array;
|
222
|
-
/**
|
223
|
-
* @generated from field: bytes logs_bloom = 7;
|
224
|
-
*/
|
225
|
-
logsBloom: Uint8Array;
|
226
|
-
/**
|
227
|
-
* Difficulty is the difficulty of the Proof of Work algorithm that was required to compute a solution.
|
228
|
-
*
|
229
|
-
* If the Block containing this `BlockHeader` has been produced using the Proof of Stake
|
230
|
-
* consensus algorithm, this field will actually be constant and set to `0x00`.
|
231
|
-
*
|
232
|
-
* @generated from field: sf.ethereum.type.v2.BigInt difficulty = 8;
|
233
|
-
*/
|
234
|
-
difficulty?: BigInt;
|
235
|
-
/**
|
236
|
-
* TotalDifficulty is the sum of all previous blocks difficulty including this block difficulty.
|
237
|
-
*
|
238
|
-
* If the Block containing this `BlockHeader` has been produced using the Proof of Stake
|
239
|
-
* consensus algorithm, this field will actually be constant and set to the terminal total difficulty
|
240
|
-
* that was required to transition to Proof of Stake algorithm, which varies per network. It is set to
|
241
|
-
* 58 750 000 000 000 000 000 000 on Ethereum Mainnet and to 10 790 000 on Ethereum Testnet Goerli.
|
242
|
-
*
|
243
|
-
* @generated from field: sf.ethereum.type.v2.BigInt total_difficulty = 17;
|
244
|
-
*/
|
245
|
-
totalDifficulty?: BigInt;
|
246
|
-
/**
|
247
|
-
* @generated from field: uint64 number = 9;
|
248
|
-
*/
|
249
|
-
number: bigint;
|
250
|
-
/**
|
251
|
-
* @generated from field: uint64 gas_limit = 10;
|
252
|
-
*/
|
253
|
-
gasLimit: bigint;
|
254
|
-
/**
|
255
|
-
* @generated from field: uint64 gas_used = 11;
|
256
|
-
*/
|
257
|
-
gasUsed: bigint;
|
258
|
-
/**
|
259
|
-
* @generated from field: google.protobuf.Timestamp timestamp = 12;
|
260
|
-
*/
|
261
|
-
timestamp?: Timestamp;
|
262
|
-
/**
|
263
|
-
* ExtraData is free-form bytes included in the block by the "miner". While on Yellow paper of
|
264
|
-
* Ethereum this value is maxed to 32 bytes, other consensus algorithm like Clique and some other
|
265
|
-
* forks are using bigger values to carry special consensus data.
|
266
|
-
*
|
267
|
-
* If the Block containing this `BlockHeader` has been produced using the Proof of Stake
|
268
|
-
* consensus algorithm, this field is strictly enforced to be <= 32 bytes.
|
269
|
-
*
|
270
|
-
* @generated from field: bytes extra_data = 13;
|
271
|
-
*/
|
272
|
-
extraData: Uint8Array;
|
273
|
-
/**
|
274
|
-
* MixHash is used to prove, when combined with the `nonce` that sufficient amount of computation has been
|
275
|
-
* achieved and that the solution found is valid.
|
276
|
-
*
|
277
|
-
* @generated from field: bytes mix_hash = 14;
|
278
|
-
*/
|
279
|
-
mixHash: Uint8Array;
|
280
|
-
/**
|
281
|
-
* Nonce is used to prove, when combined with the `mix_hash` that sufficient amount of computation has been
|
282
|
-
* achieved and that the solution found is valid.
|
283
|
-
*
|
284
|
-
* If the Block containing this `BlockHeader` has been produced using the Proof of Stake
|
285
|
-
* consensus algorithm, this field will actually be constant and set to `0`.
|
286
|
-
*
|
287
|
-
* @generated from field: uint64 nonce = 15;
|
288
|
-
*/
|
289
|
-
nonce: bigint;
|
290
|
-
/**
|
291
|
-
* Hash is the hash of the block which is actually the computation:
|
292
|
-
*
|
293
|
-
* Keccak256(rlp([
|
294
|
-
* parent_hash,
|
295
|
-
* uncle_hash,
|
296
|
-
* coinbase,
|
297
|
-
* state_root,
|
298
|
-
* transactions_root,
|
299
|
-
* receipt_root,
|
300
|
-
* logs_bloom,
|
301
|
-
* difficulty,
|
302
|
-
* number,
|
303
|
-
* gas_limit,
|
304
|
-
* gas_used,
|
305
|
-
* timestamp,
|
306
|
-
* extra_data,
|
307
|
-
* mix_hash,
|
308
|
-
* nonce,
|
309
|
-
* base_fee_per_gas (to be included only if London fork is active)
|
310
|
-
* withdrawals_root (to be included only if Shangai fork is active)
|
311
|
-
* blob_gas_used (to be included only if Cancun fork is active)
|
312
|
-
* excess_blob_gas (to be included only if Cancun fork is active)
|
313
|
-
* parent_beacon_root (to be included only if Cancun fork is active)
|
314
|
-
* ]))
|
315
|
-
*
|
316
|
-
*
|
317
|
-
* @generated from field: bytes hash = 16;
|
318
|
-
*/
|
319
|
-
hash: Uint8Array;
|
320
|
-
/**
|
321
|
-
* Base fee per gas according to EIP-1559 (e.g. London Fork) rules, only set if London is present/active on the chain.
|
322
|
-
*
|
323
|
-
* @generated from field: sf.ethereum.type.v2.BigInt base_fee_per_gas = 18;
|
324
|
-
*/
|
325
|
-
baseFeePerGas?: BigInt;
|
326
|
-
/**
|
327
|
-
* Withdrawals root hash according to EIP-4895 (e.g. Shangai Fork) rules, only set if Shangai is present/active on the chain.
|
328
|
-
*
|
329
|
-
* Only available in DetailLevel: EXTENDED
|
330
|
-
*
|
331
|
-
* @generated from field: bytes withdrawals_root = 19;
|
332
|
-
*/
|
333
|
-
withdrawalsRoot: Uint8Array;
|
334
|
-
/**
|
335
|
-
* TxDependency is list of transaction indexes that are dependent on each other in the block
|
336
|
-
* header. This is metadata only that was used by the internal Polygon parallel execution engine.
|
337
|
-
*
|
338
|
-
* This field was available in a few versions on Polygon Mainnet and Polygon Mumbai chains. It was actually
|
339
|
-
* removed and is not populated anymore. It's now embeded in the `extraData` field, refer to Polygon source
|
340
|
-
* code to determine how to extract it if you need it.
|
341
|
-
*
|
342
|
-
* Only available in DetailLevel: EXTENDED
|
343
|
-
*
|
344
|
-
* @generated from field: sf.ethereum.type.v2.Uint64NestedArray tx_dependency = 20;
|
345
|
-
*/
|
346
|
-
txDependency?: Uint64NestedArray;
|
347
|
-
/**
|
348
|
-
* BlobGasUsed was added by EIP-4844 and is ignored in legacy headers.
|
349
|
-
*
|
350
|
-
* @generated from field: optional uint64 blob_gas_used = 22;
|
351
|
-
*/
|
352
|
-
blobGasUsed?: bigint;
|
353
|
-
/**
|
354
|
-
* ExcessBlobGas was added by EIP-4844 and is ignored in legacy headers.
|
355
|
-
*
|
356
|
-
* @generated from field: optional uint64 excess_blob_gas = 23;
|
357
|
-
*/
|
358
|
-
excessBlobGas?: bigint;
|
359
|
-
/**
|
360
|
-
* ParentBeaconRoot was added by EIP-4788 and is ignored in legacy headers.
|
361
|
-
*
|
362
|
-
* @generated from field: bytes parent_beacon_root = 24;
|
363
|
-
*/
|
364
|
-
parentBeaconRoot: Uint8Array;
|
365
|
-
/**
|
366
|
-
* RequestsHash was added by EIP-7685 and is ignored in legacy headers.
|
367
|
-
*
|
368
|
-
* @generated from field: bytes requests_hash = 25;
|
369
|
-
*/
|
370
|
-
requestsHash: Uint8Array;
|
371
|
-
};
|
372
|
-
/**
|
373
|
-
* Describes the message sf.ethereum.type.v2.BlockHeader.
|
374
|
-
* Use `create(BlockHeaderSchema)` to create a new message.
|
375
|
-
*/
|
376
|
-
export declare const BlockHeaderSchema: GenMessage<BlockHeader>;
|
377
|
-
/**
|
378
|
-
* @generated from message sf.ethereum.type.v2.Uint64NestedArray
|
379
|
-
*/
|
380
|
-
export type Uint64NestedArray = Message<"sf.ethereum.type.v2.Uint64NestedArray"> & {
|
381
|
-
/**
|
382
|
-
* @generated from field: repeated sf.ethereum.type.v2.Uint64Array val = 1;
|
383
|
-
*/
|
384
|
-
val: Uint64Array[];
|
385
|
-
};
|
386
|
-
/**
|
387
|
-
* Describes the message sf.ethereum.type.v2.Uint64NestedArray.
|
388
|
-
* Use `create(Uint64NestedArraySchema)` to create a new message.
|
389
|
-
*/
|
390
|
-
export declare const Uint64NestedArraySchema: GenMessage<Uint64NestedArray>;
|
391
|
-
/**
|
392
|
-
* @generated from message sf.ethereum.type.v2.Uint64Array
|
393
|
-
*/
|
394
|
-
export type Uint64Array = Message<"sf.ethereum.type.v2.Uint64Array"> & {
|
395
|
-
/**
|
396
|
-
* @generated from field: repeated uint64 val = 1;
|
397
|
-
*/
|
398
|
-
val: bigint[];
|
399
|
-
};
|
400
|
-
/**
|
401
|
-
* Describes the message sf.ethereum.type.v2.Uint64Array.
|
402
|
-
* Use `create(Uint64ArraySchema)` to create a new message.
|
403
|
-
*/
|
404
|
-
export declare const Uint64ArraySchema: GenMessage<Uint64Array>;
|
405
|
-
/**
|
406
|
-
* @generated from message sf.ethereum.type.v2.BigInt
|
407
|
-
*/
|
408
|
-
export type BigInt = Message<"sf.ethereum.type.v2.BigInt"> & {
|
409
|
-
/**
|
410
|
-
* @generated from field: bytes bytes = 1;
|
411
|
-
*/
|
412
|
-
bytes: Uint8Array;
|
413
|
-
};
|
414
|
-
/**
|
415
|
-
* Describes the message sf.ethereum.type.v2.BigInt.
|
416
|
-
* Use `create(BigIntSchema)` to create a new message.
|
417
|
-
*/
|
418
|
-
export declare const BigIntSchema: GenMessage<BigInt>;
|
419
|
-
/**
|
420
|
-
* TransactionTrace is full trace of execution of the transaction when the
|
421
|
-
* it actually executed on chain.
|
422
|
-
*
|
423
|
-
* It contains all the transaction details like `from`, `to`, `gas`, etc.
|
424
|
-
* as well as all the internal calls that were made during the transaction.
|
425
|
-
*
|
426
|
-
* The `calls` vector contains Call objects which have balance changes, events
|
427
|
-
* storage changes, etc.
|
428
|
-
*
|
429
|
-
* If ordering is important between elements, almost each message like `Log`,
|
430
|
-
* `Call`, `StorageChange`, etc. have an ordinal field that is represents "execution"
|
431
|
-
* order of the said element against all other elements in this block.
|
432
|
-
*
|
433
|
-
* Due to how the call tree works doing "naively", looping through all calls then
|
434
|
-
* through a Call's element like `logs` while not yielding the elements in the order
|
435
|
-
* they were executed on chain. A log in call could have been done before or after
|
436
|
-
* another in another call depending on the actual call tree.
|
437
|
-
*
|
438
|
-
* The `calls` are ordered by creation order and the call tree can be re-computing
|
439
|
-
* using fields found in `Call` object (parent/child relationship).
|
440
|
-
*
|
441
|
-
* Another important thing to note is that even if a transaction succeed, some calls
|
442
|
-
* within it could have been reverted internally, if this is important to you, you must
|
443
|
-
* check the field `state_reverted` on the `Call` to determine if it was fully committed
|
444
|
-
* to the chain or not.
|
445
|
-
*
|
446
|
-
* @generated from message sf.ethereum.type.v2.TransactionTrace
|
447
|
-
*/
|
448
|
-
export type TransactionTrace = Message<"sf.ethereum.type.v2.TransactionTrace"> & {
|
449
|
-
/**
|
450
|
-
* consensus
|
451
|
-
*
|
452
|
-
* @generated from field: bytes to = 1;
|
453
|
-
*/
|
454
|
-
to: Uint8Array;
|
455
|
-
/**
|
456
|
-
* @generated from field: uint64 nonce = 2;
|
457
|
-
*/
|
458
|
-
nonce: bigint;
|
459
|
-
/**
|
460
|
-
* GasPrice represents the effective price that has been paid for each gas unit of this transaction. Over time, the
|
461
|
-
* Ethereum rules changes regarding GasPrice field here. Before London fork, the GasPrice was always set to the
|
462
|
-
* fixed gas price. After London fork, this value has different meaning depending on the transaction type (see `Type` field).
|
463
|
-
*
|
464
|
-
* In cases where `TransactionTrace.Type == TRX_TYPE_LEGACY || TRX_TYPE_ACCESS_LIST`, then GasPrice has the same meaning
|
465
|
-
* as before the London fork.
|
466
|
-
*
|
467
|
-
* In cases where `TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE`, then GasPrice is the effective gas price paid
|
468
|
-
* for the transaction which is equals to `BlockHeader.BaseFeePerGas + TransactionTrace.`
|
469
|
-
*
|
470
|
-
* @generated from field: sf.ethereum.type.v2.BigInt gas_price = 3;
|
471
|
-
*/
|
472
|
-
gasPrice?: BigInt;
|
473
|
-
/**
|
474
|
-
* GasLimit is the maximum of gas unit the sender of the transaction is willing to consume when perform the EVM
|
475
|
-
* execution of the whole transaction
|
476
|
-
*
|
477
|
-
* @generated from field: uint64 gas_limit = 4;
|
478
|
-
*/
|
479
|
-
gasLimit: bigint;
|
480
|
-
/**
|
481
|
-
* Value is the amount of Ether transferred as part of this transaction.
|
482
|
-
*
|
483
|
-
* @generated from field: sf.ethereum.type.v2.BigInt value = 5;
|
484
|
-
*/
|
485
|
-
value?: BigInt;
|
486
|
-
/**
|
487
|
-
* Input data the transaction will receive for execution of EVM.
|
488
|
-
*
|
489
|
-
* @generated from field: bytes input = 6;
|
490
|
-
*/
|
491
|
-
input: Uint8Array;
|
492
|
-
/**
|
493
|
-
* V is the recovery ID value for the signature Y point.
|
494
|
-
*
|
495
|
-
* @generated from field: bytes v = 7;
|
496
|
-
*/
|
497
|
-
v: Uint8Array;
|
498
|
-
/**
|
499
|
-
* R is the signature's X point on the elliptic curve (32 bytes).
|
500
|
-
*
|
501
|
-
* @generated from field: bytes r = 8;
|
502
|
-
*/
|
503
|
-
r: Uint8Array;
|
504
|
-
/**
|
505
|
-
* S is the signature's Y point on the elliptic curve (32 bytes).
|
506
|
-
*
|
507
|
-
* @generated from field: bytes s = 9;
|
508
|
-
*/
|
509
|
-
s: Uint8Array;
|
510
|
-
/**
|
511
|
-
* GasUsed is the total amount of gas unit used for the whole execution of the transaction.
|
512
|
-
*
|
513
|
-
* @generated from field: uint64 gas_used = 10;
|
514
|
-
*/
|
515
|
-
gasUsed: bigint;
|
516
|
-
/**
|
517
|
-
* Type represents the Ethereum transaction type, available only since EIP-2718 & EIP-2930 activation which happened on Berlin fork.
|
518
|
-
* The value is always set even for transaction before Berlin fork because those before the fork are still legacy transactions.
|
519
|
-
*
|
520
|
-
* @generated from field: sf.ethereum.type.v2.TransactionTrace.Type type = 12;
|
521
|
-
*/
|
522
|
-
type: TransactionTrace_Type;
|
523
|
-
/**
|
524
|
-
* AcccessList represents the storage access this transaction has agreed to do in which case those storage
|
525
|
-
* access cost less gas unit per access.
|
526
|
-
*
|
527
|
-
* This will is populated only if `TransactionTrace.Type == TRX_TYPE_ACCESS_LIST || TRX_TYPE_DYNAMIC_FEE` which
|
528
|
-
* is possible only if Berlin (TRX_TYPE_ACCESS_LIST) nor London (TRX_TYPE_DYNAMIC_FEE) fork are active on the chain.
|
529
|
-
*
|
530
|
-
* @generated from field: repeated sf.ethereum.type.v2.AccessTuple access_list = 14;
|
531
|
-
*/
|
532
|
-
accessList: AccessTuple[];
|
533
|
-
/**
|
534
|
-
* MaxFeePerGas is the maximum fee per gas the user is willing to pay for the transaction gas used.
|
535
|
-
*
|
536
|
-
* This will is populated only if `TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE` which is possible only
|
537
|
-
* if Londong fork is active on the chain.
|
538
|
-
*
|
539
|
-
* Only available in DetailLevel: EXTENDED
|
540
|
-
*
|
541
|
-
* @generated from field: sf.ethereum.type.v2.BigInt max_fee_per_gas = 11;
|
542
|
-
*/
|
543
|
-
maxFeePerGas?: BigInt;
|
544
|
-
/**
|
545
|
-
* MaxPriorityFeePerGas is priority fee per gas the user to pay in extra to the miner on top of the block's
|
546
|
-
* base fee.
|
547
|
-
*
|
548
|
-
* This will is populated only if `TransactionTrace.Type == TRX_TYPE_DYNAMIC_FEE` which is possible only
|
549
|
-
* if London fork is active on the chain.
|
550
|
-
*
|
551
|
-
* Only available in DetailLevel: EXTENDED
|
552
|
-
*
|
553
|
-
* @generated from field: sf.ethereum.type.v2.BigInt max_priority_fee_per_gas = 13;
|
554
|
-
*/
|
555
|
-
maxPriorityFeePerGas?: BigInt;
|
556
|
-
/**
|
557
|
-
* meta
|
558
|
-
*
|
559
|
-
* @generated from field: uint32 index = 20;
|
560
|
-
*/
|
561
|
-
index: number;
|
562
|
-
/**
|
563
|
-
* @generated from field: bytes hash = 21;
|
564
|
-
*/
|
565
|
-
hash: Uint8Array;
|
566
|
-
/**
|
567
|
-
* @generated from field: bytes from = 22;
|
568
|
-
*/
|
569
|
-
from: Uint8Array;
|
570
|
-
/**
|
571
|
-
* Only available in DetailLevel: EXTENDED
|
572
|
-
*
|
573
|
-
* @generated from field: bytes return_data = 23;
|
574
|
-
*/
|
575
|
-
returnData: Uint8Array;
|
576
|
-
/**
|
577
|
-
* Only available in DetailLevel: EXTENDED
|
578
|
-
*
|
579
|
-
* @generated from field: bytes public_key = 24;
|
580
|
-
*/
|
581
|
-
publicKey: Uint8Array;
|
582
|
-
/**
|
583
|
-
* The block's global ordinal when the transaction started executing, refer to
|
584
|
-
* [Block] documentation for further information about ordinals and total ordering.
|
585
|
-
*
|
586
|
-
* @generated from field: uint64 begin_ordinal = 25;
|
587
|
-
*/
|
588
|
-
beginOrdinal: bigint;
|
589
|
-
/**
|
590
|
-
* The block's global ordinal when the transaction finished executing, refer to
|
591
|
-
* [Block] documentation for further information about ordinals and total ordering.
|
592
|
-
*
|
593
|
-
* @generated from field: uint64 end_ordinal = 26;
|
594
|
-
*/
|
595
|
-
endOrdinal: bigint;
|
596
|
-
/**
|
597
|
-
* TransactionTraceStatus is the status of the transaction execution and will let you know if the transaction
|
598
|
-
* was successful or not.
|
599
|
-
*
|
600
|
-
* ## Explanation relevant only for blocks with `DetailLevel: EXTENDED`
|
601
|
-
*
|
602
|
-
* A successful transaction has been recorded to the blockchain's state for calls in it that were successful.
|
603
|
-
* This means it's possible only a subset of the calls were properly recorded, refer to [calls[].state_reverted] field
|
604
|
-
* to determine which calls were reverted.
|
605
|
-
*
|
606
|
-
* A quirks of the Ethereum protocol is that a transaction `FAILED` or `REVERTED` still affects the blockchain's
|
607
|
-
* state for **some** of the state changes. Indeed, in those cases, the transactions fees are still paid to the miner
|
608
|
-
* which means there is a balance change for the transaction's emitter (e.g. `from`) to pay the gas fees, an optional
|
609
|
-
* balance change for gas refunded to the transaction's emitter (e.g. `from`) and a balance change for the miner who
|
610
|
-
* received the transaction fees. There is also a nonce change for the transaction's emitter (e.g. `from`).
|
611
|
-
*
|
612
|
-
* This means that to properly record the state changes for a transaction, you need to conditionally procees the
|
613
|
-
* transaction's status.
|
614
|
-
*
|
615
|
-
* For a `SUCCEEDED` transaction, you iterate over the `calls` array and record the state changes for each call for
|
616
|
-
* which `state_reverted == false` (if a transaction succeeded, the call at #0 will always `state_reverted == false`
|
617
|
-
* because it aligns with the transaction).
|
618
|
-
*
|
619
|
-
* For a `FAILED` or `REVERTED` transaction, you iterate over the root call (e.g. at #0, will always exist) for
|
620
|
-
* balance changes you process those where `reason` is either `REASON_GAS_BUY`, `REASON_GAS_REFUND` or
|
621
|
-
* `REASON_REWARD_TRANSACTION_FEE` and for nonce change, still on the root call, you pick the nonce change which the
|
622
|
-
* smallest ordinal (if more than one).
|
623
|
-
*
|
624
|
-
* @generated from field: sf.ethereum.type.v2.TransactionTraceStatus status = 30;
|
625
|
-
*/
|
626
|
-
status: TransactionTraceStatus;
|
627
|
-
/**
|
628
|
-
* @generated from field: sf.ethereum.type.v2.TransactionReceipt receipt = 31;
|
629
|
-
*/
|
630
|
-
receipt?: TransactionReceipt;
|
631
|
-
/**
|
632
|
-
* Only available in DetailLevel: EXTENDED
|
633
|
-
*
|
634
|
-
* @generated from field: repeated sf.ethereum.type.v2.Call calls = 32;
|
635
|
-
*/
|
636
|
-
calls: Call[];
|
637
|
-
/**
|
638
|
-
* BlobGas is the amount of gas the transaction is going to pay for the blobs, this is a computed value
|
639
|
-
* equivalent to `self.blob_gas_fee_cap * len(self.blob_hashes)` and provided in the model for convenience.
|
640
|
-
*
|
641
|
-
* This is specified by https://eips.ethereum.org/EIPS/eip-4844
|
642
|
-
*
|
643
|
-
* This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
|
644
|
-
* if Cancun fork is active on the chain.
|
645
|
-
*
|
646
|
-
* @generated from field: optional uint64 blob_gas = 33;
|
647
|
-
*/
|
648
|
-
blobGas?: bigint;
|
649
|
-
/**
|
650
|
-
* BlobGasFeeCap is the maximum fee per data gas the user is willing to pay for the data gas used.
|
651
|
-
*
|
652
|
-
* This is specified by https://eips.ethereum.org/EIPS/eip-4844
|
653
|
-
*
|
654
|
-
* This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
|
655
|
-
* if Cancun fork is active on the chain.
|
656
|
-
*
|
657
|
-
* @generated from field: optional sf.ethereum.type.v2.BigInt blob_gas_fee_cap = 34;
|
658
|
-
*/
|
659
|
-
blobGasFeeCap?: BigInt;
|
660
|
-
/**
|
661
|
-
* BlobHashes field represents a list of hash outputs from 'kzg_to_versioned_hash' which
|
662
|
-
* essentially is a version byte + the sha256 hash of the blob commitment (e.g.
|
663
|
-
* `BLOB_COMMITMENT_VERSION_KZG + sha256(commitment)[1:]`.
|
664
|
-
*
|
665
|
-
* This is specified by https://eips.ethereum.org/EIPS/eip-4844
|
666
|
-
*
|
667
|
-
* This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
|
668
|
-
* if Cancun fork is active on the chain.
|
669
|
-
*
|
670
|
-
* @generated from field: repeated bytes blob_hashes = 35;
|
671
|
-
*/
|
672
|
-
blobHashes: Uint8Array[];
|
673
|
-
};
|
674
|
-
/**
|
675
|
-
* Describes the message sf.ethereum.type.v2.TransactionTrace.
|
676
|
-
* Use `create(TransactionTraceSchema)` to create a new message.
|
677
|
-
*/
|
678
|
-
export declare const TransactionTraceSchema: GenMessage<TransactionTrace>;
|
679
|
-
/**
|
680
|
-
* @generated from enum sf.ethereum.type.v2.TransactionTrace.Type
|
681
|
-
*/
|
682
|
-
export declare enum TransactionTrace_Type {
|
683
|
-
/**
|
684
|
-
* All transactions that ever existed prior Berlin fork before EIP-2718 was implemented.
|
685
|
-
*
|
686
|
-
* @generated from enum value: TRX_TYPE_LEGACY = 0;
|
687
|
-
*/
|
688
|
-
TRX_TYPE_LEGACY = 0,
|
689
|
-
/**
|
690
|
-
* Transaction that specicy an access list of contract/storage_keys that is going to be used
|
691
|
-
* in this transaction.
|
692
|
-
*
|
693
|
-
* Added in Berlin fork (EIP-2930).
|
694
|
-
*
|
695
|
-
* @generated from enum value: TRX_TYPE_ACCESS_LIST = 1;
|
696
|
-
*/
|
697
|
-
TRX_TYPE_ACCESS_LIST = 1,
|
698
|
-
/**
|
699
|
-
* Transaction that specifis an access list just like TRX_TYPE_ACCESS_LIST but in addition defines the
|
700
|
-
* max base gas gee and max priority gas fee to pay for this transaction. Transaction's of those type are
|
701
|
-
* executed against EIP-1559 rules which dictates a dynamic gas cost based on the congestion of the network.
|
702
|
-
*
|
703
|
-
* @generated from enum value: TRX_TYPE_DYNAMIC_FEE = 2;
|
704
|
-
*/
|
705
|
-
TRX_TYPE_DYNAMIC_FEE = 2,
|
706
|
-
/**
|
707
|
-
* Transaction which contain a large amount of data that cannot be accessed by EVM execution, but whose commitment
|
708
|
-
* can be accessed. The format is intended to be fully compatible with the format that will be used in full sharding.
|
709
|
-
*
|
710
|
-
* Transaction that defines specifis an access list just like TRX_TYPE_ACCESS_LIST and enables dynamic fee just like
|
711
|
-
* TRX_TYPE_DYNAMIC_FEE but in addition defines the fields 'max_fee_per_data_gas' of type 'uint256' and the fields
|
712
|
-
* 'blob_versioned_hashes' field represents a list of hash outputs from 'kzg_to_versioned_hash'.
|
713
|
-
*
|
714
|
-
* Activated in Dencun
|
715
|
-
*
|
716
|
-
* @generated from enum value: TRX_TYPE_BLOB = 3;
|
717
|
-
*/
|
718
|
-
TRX_TYPE_BLOB = 3,
|
719
|
-
/**
|
720
|
-
* Arbitrum-specific transactions
|
721
|
-
*
|
722
|
-
* @generated from enum value: TRX_TYPE_ARBITRUM_DEPOSIT = 100;
|
723
|
-
*/
|
724
|
-
TRX_TYPE_ARBITRUM_DEPOSIT = 100,
|
725
|
-
/**
|
726
|
-
* @generated from enum value: TRX_TYPE_ARBITRUM_UNSIGNED = 101;
|
727
|
-
*/
|
728
|
-
TRX_TYPE_ARBITRUM_UNSIGNED = 101,
|
729
|
-
/**
|
730
|
-
* @generated from enum value: TRX_TYPE_ARBITRUM_CONTRACT = 102;
|
731
|
-
*/
|
732
|
-
TRX_TYPE_ARBITRUM_CONTRACT = 102,
|
733
|
-
/**
|
734
|
-
* @generated from enum value: TRX_TYPE_ARBITRUM_RETRY = 104;
|
735
|
-
*/
|
736
|
-
TRX_TYPE_ARBITRUM_RETRY = 104,
|
737
|
-
/**
|
738
|
-
* @generated from enum value: TRX_TYPE_ARBITRUM_SUBMIT_RETRYABLE = 105;
|
739
|
-
*/
|
740
|
-
TRX_TYPE_ARBITRUM_SUBMIT_RETRYABLE = 105,
|
741
|
-
/**
|
742
|
-
* @generated from enum value: TRX_TYPE_ARBITRUM_INTERNAL = 106;
|
743
|
-
*/
|
744
|
-
TRX_TYPE_ARBITRUM_INTERNAL = 106,
|
745
|
-
/**
|
746
|
-
* @generated from enum value: TRX_TYPE_ARBITRUM_LEGACY = 120;
|
747
|
-
*/
|
748
|
-
TRX_TYPE_ARBITRUM_LEGACY = 120,
|
749
|
-
/**
|
750
|
-
* OPTIMISM-specific transactions
|
751
|
-
*
|
752
|
-
* @generated from enum value: TRX_TYPE_OPTIMISM_DEPOSIT = 126;
|
753
|
-
*/
|
754
|
-
TRX_TYPE_OPTIMISM_DEPOSIT = 126
|
755
|
-
}
|
756
|
-
/**
|
757
|
-
* Describes the enum sf.ethereum.type.v2.TransactionTrace.Type.
|
758
|
-
*/
|
759
|
-
export declare const TransactionTrace_TypeSchema: GenEnum<TransactionTrace_Type>;
|
760
|
-
/**
|
761
|
-
* AccessTuple represents a list of storage keys for a given contract's address and is used
|
762
|
-
* for AccessList construction.
|
763
|
-
*
|
764
|
-
* @generated from message sf.ethereum.type.v2.AccessTuple
|
765
|
-
*/
|
766
|
-
export type AccessTuple = Message<"sf.ethereum.type.v2.AccessTuple"> & {
|
767
|
-
/**
|
768
|
-
* @generated from field: bytes address = 1;
|
769
|
-
*/
|
770
|
-
address: Uint8Array;
|
771
|
-
/**
|
772
|
-
* @generated from field: repeated bytes storage_keys = 2;
|
773
|
-
*/
|
774
|
-
storageKeys: Uint8Array[];
|
775
|
-
};
|
776
|
-
/**
|
777
|
-
* Describes the message sf.ethereum.type.v2.AccessTuple.
|
778
|
-
* Use `create(AccessTupleSchema)` to create a new message.
|
779
|
-
*/
|
780
|
-
export declare const AccessTupleSchema: GenMessage<AccessTuple>;
|
781
|
-
/**
|
782
|
-
* @generated from message sf.ethereum.type.v2.TransactionReceipt
|
783
|
-
*/
|
784
|
-
export type TransactionReceipt = Message<"sf.ethereum.type.v2.TransactionReceipt"> & {
|
785
|
-
/**
|
786
|
-
* State root is an intermediate state_root hash, computed in-between transactions to make
|
787
|
-
* **sure** you could build a proof and point to state in the middle of a block. Geth client
|
788
|
-
* uses `PostState + root + PostStateOrStatus`` while Parity used `status_code, root...`` this piles
|
789
|
-
* hardforks, see (read the EIPs first):
|
790
|
-
* - https://github.com/ethereum/EIPs/blob/master/EIPS/eip-658.md
|
791
|
-
*
|
792
|
-
* Moreover, the notion of `Outcome`` in parity, which segregates the two concepts, which are
|
793
|
-
* stored in the same field `status_code`` can be computed based on such a hack of the `state_root`
|
794
|
-
* field, following `EIP-658`.
|
795
|
-
*
|
796
|
-
* Before Byzantinium hard fork, this field is always empty.
|
797
|
-
*
|
798
|
-
* @generated from field: bytes state_root = 1;
|
799
|
-
*/
|
800
|
-
stateRoot: Uint8Array;
|
801
|
-
/**
|
802
|
-
* @generated from field: uint64 cumulative_gas_used = 2;
|
803
|
-
*/
|
804
|
-
cumulativeGasUsed: bigint;
|
805
|
-
/**
|
806
|
-
* @generated from field: bytes logs_bloom = 3;
|
807
|
-
*/
|
808
|
-
logsBloom: Uint8Array;
|
809
|
-
/**
|
810
|
-
* @generated from field: repeated sf.ethereum.type.v2.Log logs = 4;
|
811
|
-
*/
|
812
|
-
logs: Log[];
|
813
|
-
/**
|
814
|
-
* BlobGasUsed is the amount of blob gas that has been used within this transaction. At time
|
815
|
-
* of writing, this is equal to `self.blob_gas_fee_cap * len(self.blob_hashes)`.
|
816
|
-
*
|
817
|
-
* This is specified by https://eips.ethereum.org/EIPS/eip-4844
|
818
|
-
*
|
819
|
-
* This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
|
820
|
-
* if Cancun fork is active on the chain.
|
821
|
-
*
|
822
|
-
* @generated from field: optional uint64 blob_gas_used = 5;
|
823
|
-
*/
|
824
|
-
blobGasUsed?: bigint;
|
825
|
-
/**
|
826
|
-
* BlobGasPrice is the amount to pay per blob item in the transaction.
|
827
|
-
*
|
828
|
-
* This is specified by https://eips.ethereum.org/EIPS/eip-4844
|
829
|
-
*
|
830
|
-
* This will is populated only if `TransactionTrace.Type == TRX_TYPE_BLOB` which is possible only
|
831
|
-
* if Cancun fork is active on the chain.
|
832
|
-
*
|
833
|
-
* @generated from field: optional sf.ethereum.type.v2.BigInt blob_gas_price = 6;
|
834
|
-
*/
|
835
|
-
blobGasPrice?: BigInt;
|
836
|
-
};
|
837
|
-
/**
|
838
|
-
* Describes the message sf.ethereum.type.v2.TransactionReceipt.
|
839
|
-
* Use `create(TransactionReceiptSchema)` to create a new message.
|
840
|
-
*/
|
841
|
-
export declare const TransactionReceiptSchema: GenMessage<TransactionReceipt>;
|
842
|
-
/**
|
843
|
-
* @generated from message sf.ethereum.type.v2.Log
|
844
|
-
*/
|
845
|
-
export type Log = Message<"sf.ethereum.type.v2.Log"> & {
|
846
|
-
/**
|
847
|
-
* @generated from field: bytes address = 1;
|
848
|
-
*/
|
849
|
-
address: Uint8Array;
|
850
|
-
/**
|
851
|
-
* @generated from field: repeated bytes topics = 2;
|
852
|
-
*/
|
853
|
-
topics: Uint8Array[];
|
854
|
-
/**
|
855
|
-
* @generated from field: bytes data = 3;
|
856
|
-
*/
|
857
|
-
data: Uint8Array;
|
858
|
-
/**
|
859
|
-
* Index is the index of the log relative to the transaction. This index
|
860
|
-
* is always populated regardless of the state revertion of the the call
|
861
|
-
* that emitted this log.
|
862
|
-
*
|
863
|
-
* Only available in DetailLevel: EXTENDED
|
864
|
-
*
|
865
|
-
* @generated from field: uint32 index = 4;
|
866
|
-
*/
|
867
|
-
index: number;
|
868
|
-
/**
|
869
|
-
* BlockIndex represents the index of the log relative to the Block.
|
870
|
-
*
|
871
|
-
* An **important** notice is that this field will be 0 when the call
|
872
|
-
* that emitted the log has been reverted by the chain.
|
873
|
-
*
|
874
|
-
* Currently, there is two locations where a Log can be obtained:
|
875
|
-
* - block.transaction_traces[].receipt.logs[]
|
876
|
-
* - block.transaction_traces[].calls[].logs[]
|
877
|
-
*
|
878
|
-
* In the `receipt` case, the logs will be populated only when the call
|
879
|
-
* that emitted them has not been reverted by the chain and when in this
|
880
|
-
* position, the `blockIndex` is always populated correctly.
|
881
|
-
*
|
882
|
-
* In the case of `calls` case, for `call` where `stateReverted == true`,
|
883
|
-
* the `blockIndex` value will always be 0.
|
884
|
-
*
|
885
|
-
* @generated from field: uint32 blockIndex = 6;
|
886
|
-
*/
|
887
|
-
blockIndex: number;
|
888
|
-
/**
|
889
|
-
* The block's global ordinal when the log was recorded, refer to [Block]
|
890
|
-
* documentation for further information about ordinals and total ordering.
|
891
|
-
*
|
892
|
-
* @generated from field: uint64 ordinal = 7;
|
893
|
-
*/
|
894
|
-
ordinal: bigint;
|
895
|
-
};
|
896
|
-
/**
|
897
|
-
* Describes the message sf.ethereum.type.v2.Log.
|
898
|
-
* Use `create(LogSchema)` to create a new message.
|
899
|
-
*/
|
900
|
-
export declare const LogSchema: GenMessage<Log>;
|
901
|
-
/**
|
902
|
-
* @generated from message sf.ethereum.type.v2.Call
|
903
|
-
*/
|
904
|
-
export type Call = Message<"sf.ethereum.type.v2.Call"> & {
|
905
|
-
/**
|
906
|
-
* @generated from field: uint32 index = 1;
|
907
|
-
*/
|
908
|
-
index: number;
|
909
|
-
/**
|
910
|
-
* @generated from field: uint32 parent_index = 2;
|
911
|
-
*/
|
912
|
-
parentIndex: number;
|
913
|
-
/**
|
914
|
-
* @generated from field: uint32 depth = 3;
|
915
|
-
*/
|
916
|
-
depth: number;
|
917
|
-
/**
|
918
|
-
* @generated from field: sf.ethereum.type.v2.CallType call_type = 4;
|
919
|
-
*/
|
920
|
-
callType: CallType;
|
921
|
-
/**
|
922
|
-
* @generated from field: bytes caller = 5;
|
923
|
-
*/
|
924
|
-
caller: Uint8Array;
|
925
|
-
/**
|
926
|
-
* @generated from field: bytes address = 6;
|
927
|
-
*/
|
928
|
-
address: Uint8Array;
|
929
|
-
/**
|
930
|
-
* @generated from field: sf.ethereum.type.v2.BigInt value = 7;
|
931
|
-
*/
|
932
|
-
value?: BigInt;
|
933
|
-
/**
|
934
|
-
* @generated from field: uint64 gas_limit = 8;
|
935
|
-
*/
|
936
|
-
gasLimit: bigint;
|
937
|
-
/**
|
938
|
-
* @generated from field: uint64 gas_consumed = 9;
|
939
|
-
*/
|
940
|
-
gasConsumed: bigint;
|
941
|
-
/**
|
942
|
-
* @generated from field: bytes return_data = 13;
|
943
|
-
*/
|
944
|
-
returnData: Uint8Array;
|
945
|
-
/**
|
946
|
-
* @generated from field: bytes input = 14;
|
947
|
-
*/
|
948
|
-
input: Uint8Array;
|
949
|
-
/**
|
950
|
-
* @generated from field: bool executed_code = 15;
|
951
|
-
*/
|
952
|
-
executedCode: boolean;
|
953
|
-
/**
|
954
|
-
* @generated from field: bool suicide = 16;
|
955
|
-
*/
|
956
|
-
suicide: boolean;
|
957
|
-
/**
|
958
|
-
* hex representation of the hash -> preimage
|
959
|
-
*
|
960
|
-
* @generated from field: map<string, string> keccak_preimages = 20;
|
961
|
-
*/
|
962
|
-
keccakPreimages: {
|
963
|
-
[key: string]: string;
|
964
|
-
};
|
965
|
-
/**
|
966
|
-
* @generated from field: repeated sf.ethereum.type.v2.StorageChange storage_changes = 21;
|
967
|
-
*/
|
968
|
-
storageChanges: StorageChange[];
|
969
|
-
/**
|
970
|
-
* @generated from field: repeated sf.ethereum.type.v2.BalanceChange balance_changes = 22;
|
971
|
-
*/
|
972
|
-
balanceChanges: BalanceChange[];
|
973
|
-
/**
|
974
|
-
* @generated from field: repeated sf.ethereum.type.v2.NonceChange nonce_changes = 24;
|
975
|
-
*/
|
976
|
-
nonceChanges: NonceChange[];
|
977
|
-
/**
|
978
|
-
* @generated from field: repeated sf.ethereum.type.v2.Log logs = 25;
|
979
|
-
*/
|
980
|
-
logs: Log[];
|
981
|
-
/**
|
982
|
-
* @generated from field: repeated sf.ethereum.type.v2.CodeChange code_changes = 26;
|
983
|
-
*/
|
984
|
-
codeChanges: CodeChange[];
|
985
|
-
/**
|
986
|
-
* @generated from field: repeated sf.ethereum.type.v2.GasChange gas_changes = 28;
|
987
|
-
*/
|
988
|
-
gasChanges: GasChange[];
|
989
|
-
/**
|
990
|
-
* In Ethereum, a call can be either:
|
991
|
-
* - Successfull, execution passes without any problem encountered
|
992
|
-
* - Failed, execution failed, and remaining gas should be consumed
|
993
|
-
* - Reverted, execution failed, but only gas consumed so far is billed, remaining gas is refunded
|
994
|
-
*
|
995
|
-
* When a call is either `failed` or `reverted`, the `status_failed` field
|
996
|
-
* below is set to `true`. If the status is `reverted`, then both `status_failed`
|
997
|
-
* and `status_reverted` are going to be set to `true`.
|
998
|
-
*
|
999
|
-
* @generated from field: bool status_failed = 10;
|
1000
|
-
*/
|
1001
|
-
statusFailed: boolean;
|
1002
|
-
/**
|
1003
|
-
* @generated from field: bool status_reverted = 12;
|
1004
|
-
*/
|
1005
|
-
statusReverted: boolean;
|
1006
|
-
/**
|
1007
|
-
* Populated when a call either failed or reverted, so when `status_failed == true`,
|
1008
|
-
* see above for details about those flags.
|
1009
|
-
*
|
1010
|
-
* @generated from field: string failure_reason = 11;
|
1011
|
-
*/
|
1012
|
-
failureReason: string;
|
1013
|
-
/**
|
1014
|
-
* This field represents wheter or not the state changes performed
|
1015
|
-
* by this call were correctly recorded by the blockchain.
|
1016
|
-
*
|
1017
|
-
* On Ethereum, a transaction can record state changes even if some
|
1018
|
-
* of its inner nested calls failed. This is problematic however since
|
1019
|
-
* a call will invalidate all its state changes as well as all state
|
1020
|
-
* changes performed by its child call. This means that even if a call
|
1021
|
-
* has a status of `SUCCESS`, the chain might have reverted all the state
|
1022
|
-
* changes it performed.
|
1023
|
-
*
|
1024
|
-
* ```text
|
1025
|
-
* Trx 1
|
1026
|
-
* Call #1 <Failed>
|
1027
|
-
* Call #2 <Execution Success>
|
1028
|
-
* Call #3 <Execution Success>
|
1029
|
-
* |--- Failure here
|
1030
|
-
* Call #4
|
1031
|
-
* ```
|
1032
|
-
*
|
1033
|
-
* In the transaction above, while Call #2 and Call #3 would have the
|
1034
|
-
* status `EXECUTED`.
|
1035
|
-
*
|
1036
|
-
* If you check all calls and check only `state_reverted` flag, you might be missing
|
1037
|
-
* some balance changes and nonce changes. This is because when a full transaction fails
|
1038
|
-
* in ethereum (e.g. `calls.all(x.state_reverted == true)`), there is still the transaction
|
1039
|
-
* fee that are recorded to the chain.
|
1040
|
-
*
|
1041
|
-
* Refer to [TransactionTrace#status] field for more details about the handling you must
|
1042
|
-
* perform.
|
1043
|
-
*
|
1044
|
-
* @generated from field: bool state_reverted = 30;
|
1045
|
-
*/
|
1046
|
-
stateReverted: boolean;
|
1047
|
-
/**
|
1048
|
-
* The block's global ordinal when the call started executing, refer to
|
1049
|
-
* [Block] documentation for further information about ordinals and total ordering.
|
1050
|
-
*
|
1051
|
-
* @generated from field: uint64 begin_ordinal = 31;
|
1052
|
-
*/
|
1053
|
-
beginOrdinal: bigint;
|
1054
|
-
/**
|
1055
|
-
* The block's global ordinal when the call finished executing, refer to
|
1056
|
-
* [Block] documentation for further information about ordinals and total ordering.
|
1057
|
-
*
|
1058
|
-
* @generated from field: uint64 end_ordinal = 32;
|
1059
|
-
*/
|
1060
|
-
endOrdinal: bigint;
|
1061
|
-
/**
|
1062
|
-
* @generated from field: repeated sf.ethereum.type.v2.AccountCreation account_creations = 33;
|
1063
|
-
*/
|
1064
|
-
accountCreations: AccountCreation[];
|
1065
|
-
};
|
1066
|
-
/**
|
1067
|
-
* Describes the message sf.ethereum.type.v2.Call.
|
1068
|
-
* Use `create(CallSchema)` to create a new message.
|
1069
|
-
*/
|
1070
|
-
export declare const CallSchema: GenMessage<Call>;
|
1071
|
-
/**
|
1072
|
-
* @generated from message sf.ethereum.type.v2.StorageChange
|
1073
|
-
*/
|
1074
|
-
export type StorageChange = Message<"sf.ethereum.type.v2.StorageChange"> & {
|
1075
|
-
/**
|
1076
|
-
* @generated from field: bytes address = 1;
|
1077
|
-
*/
|
1078
|
-
address: Uint8Array;
|
1079
|
-
/**
|
1080
|
-
* @generated from field: bytes key = 2;
|
1081
|
-
*/
|
1082
|
-
key: Uint8Array;
|
1083
|
-
/**
|
1084
|
-
* @generated from field: bytes old_value = 3;
|
1085
|
-
*/
|
1086
|
-
oldValue: Uint8Array;
|
1087
|
-
/**
|
1088
|
-
* @generated from field: bytes new_value = 4;
|
1089
|
-
*/
|
1090
|
-
newValue: Uint8Array;
|
1091
|
-
/**
|
1092
|
-
* The block's global ordinal when the storage change was recorded, refer to [Block]
|
1093
|
-
* documentation for further information about ordinals and total ordering.
|
1094
|
-
*
|
1095
|
-
* @generated from field: uint64 ordinal = 5;
|
1096
|
-
*/
|
1097
|
-
ordinal: bigint;
|
1098
|
-
};
|
1099
|
-
/**
|
1100
|
-
* Describes the message sf.ethereum.type.v2.StorageChange.
|
1101
|
-
* Use `create(StorageChangeSchema)` to create a new message.
|
1102
|
-
*/
|
1103
|
-
export declare const StorageChangeSchema: GenMessage<StorageChange>;
|
1104
|
-
/**
|
1105
|
-
* @generated from message sf.ethereum.type.v2.BalanceChange
|
1106
|
-
*/
|
1107
|
-
export type BalanceChange = Message<"sf.ethereum.type.v2.BalanceChange"> & {
|
1108
|
-
/**
|
1109
|
-
* Address is the address of the account that has changed balance.
|
1110
|
-
*
|
1111
|
-
* @generated from field: bytes address = 1;
|
1112
|
-
*/
|
1113
|
-
address: Uint8Array;
|
1114
|
-
/**
|
1115
|
-
* OldValue is the balance of the address before the change. This value
|
1116
|
-
* can be **nil/null/None** if there was no previous balance for the address.
|
1117
|
-
* It is safe in those case(s) to consider the balance as being 0.
|
1118
|
-
*
|
1119
|
-
* If you consume this from a Substreams, you can safely use:
|
1120
|
-
*
|
1121
|
-
* ```ignore
|
1122
|
-
* let old_value = old_value.unwrap_or_default();
|
1123
|
-
* ```
|
1124
|
-
*
|
1125
|
-
* @generated from field: sf.ethereum.type.v2.BigInt old_value = 2;
|
1126
|
-
*/
|
1127
|
-
oldValue?: BigInt;
|
1128
|
-
/**
|
1129
|
-
* NewValue is the balance of the address after the change. This value
|
1130
|
-
* can be **nil/null/None** if there was no previous balance for the address
|
1131
|
-
* after the change. It is safe in those case(s) to consider the balance as being
|
1132
|
-
* 0.
|
1133
|
-
*
|
1134
|
-
* If you consume this from a Substreams, you can safely use:
|
1135
|
-
*
|
1136
|
-
* ```ignore
|
1137
|
-
* let new_value = new_value.unwrap_or_default();
|
1138
|
-
* ```
|
1139
|
-
*
|
1140
|
-
* @generated from field: sf.ethereum.type.v2.BigInt new_value = 3;
|
1141
|
-
*/
|
1142
|
-
newValue?: BigInt;
|
1143
|
-
/**
|
1144
|
-
* Reason is the reason why the balance has changed. This is useful to determine
|
1145
|
-
* why the balance has changed and what is the context of the change.
|
1146
|
-
*
|
1147
|
-
* @generated from field: sf.ethereum.type.v2.BalanceChange.Reason reason = 4;
|
1148
|
-
*/
|
1149
|
-
reason: BalanceChange_Reason;
|
1150
|
-
/**
|
1151
|
-
* The block's global ordinal when the balance change was recorded, refer to [Block]
|
1152
|
-
* documentation for further information about ordinals and total ordering.
|
1153
|
-
*
|
1154
|
-
* @generated from field: uint64 ordinal = 5;
|
1155
|
-
*/
|
1156
|
-
ordinal: bigint;
|
1157
|
-
};
|
1158
|
-
/**
|
1159
|
-
* Describes the message sf.ethereum.type.v2.BalanceChange.
|
1160
|
-
* Use `create(BalanceChangeSchema)` to create a new message.
|
1161
|
-
*/
|
1162
|
-
export declare const BalanceChangeSchema: GenMessage<BalanceChange>;
|
1163
|
-
/**
|
1164
|
-
* Obtain all balanche change reasons under deep mind repository:
|
1165
|
-
*
|
1166
|
-
* ```shell
|
1167
|
-
* ack -ho 'BalanceChangeReason\(".*"\)' | grep -Eo '".*"' | sort | uniq
|
1168
|
-
* ```
|
1169
|
-
*
|
1170
|
-
* @generated from enum sf.ethereum.type.v2.BalanceChange.Reason
|
1171
|
-
*/
|
1172
|
-
export declare enum BalanceChange_Reason {
|
1173
|
-
/**
|
1174
|
-
* @generated from enum value: REASON_UNKNOWN = 0;
|
1175
|
-
*/
|
1176
|
-
UNKNOWN = 0,
|
1177
|
-
/**
|
1178
|
-
* @generated from enum value: REASON_REWARD_MINE_UNCLE = 1;
|
1179
|
-
*/
|
1180
|
-
REWARD_MINE_UNCLE = 1,
|
1181
|
-
/**
|
1182
|
-
* @generated from enum value: REASON_REWARD_MINE_BLOCK = 2;
|
1183
|
-
*/
|
1184
|
-
REWARD_MINE_BLOCK = 2,
|
1185
|
-
/**
|
1186
|
-
* @generated from enum value: REASON_DAO_REFUND_CONTRACT = 3;
|
1187
|
-
*/
|
1188
|
-
DAO_REFUND_CONTRACT = 3,
|
1189
|
-
/**
|
1190
|
-
* @generated from enum value: REASON_DAO_ADJUST_BALANCE = 4;
|
1191
|
-
*/
|
1192
|
-
DAO_ADJUST_BALANCE = 4,
|
1193
|
-
/**
|
1194
|
-
* @generated from enum value: REASON_TRANSFER = 5;
|
1195
|
-
*/
|
1196
|
-
TRANSFER = 5,
|
1197
|
-
/**
|
1198
|
-
* @generated from enum value: REASON_GENESIS_BALANCE = 6;
|
1199
|
-
*/
|
1200
|
-
GENESIS_BALANCE = 6,
|
1201
|
-
/**
|
1202
|
-
* @generated from enum value: REASON_GAS_BUY = 7;
|
1203
|
-
*/
|
1204
|
-
GAS_BUY = 7,
|
1205
|
-
/**
|
1206
|
-
* @generated from enum value: REASON_REWARD_TRANSACTION_FEE = 8;
|
1207
|
-
*/
|
1208
|
-
REWARD_TRANSACTION_FEE = 8,
|
1209
|
-
/**
|
1210
|
-
* @generated from enum value: REASON_REWARD_FEE_RESET = 14;
|
1211
|
-
*/
|
1212
|
-
REWARD_FEE_RESET = 14,
|
1213
|
-
/**
|
1214
|
-
* @generated from enum value: REASON_GAS_REFUND = 9;
|
1215
|
-
*/
|
1216
|
-
GAS_REFUND = 9,
|
1217
|
-
/**
|
1218
|
-
* @generated from enum value: REASON_TOUCH_ACCOUNT = 10;
|
1219
|
-
*/
|
1220
|
-
TOUCH_ACCOUNT = 10,
|
1221
|
-
/**
|
1222
|
-
* @generated from enum value: REASON_SUICIDE_REFUND = 11;
|
1223
|
-
*/
|
1224
|
-
SUICIDE_REFUND = 11,
|
1225
|
-
/**
|
1226
|
-
* @generated from enum value: REASON_SUICIDE_WITHDRAW = 13;
|
1227
|
-
*/
|
1228
|
-
SUICIDE_WITHDRAW = 13,
|
1229
|
-
/**
|
1230
|
-
* @generated from enum value: REASON_CALL_BALANCE_OVERRIDE = 12;
|
1231
|
-
*/
|
1232
|
-
CALL_BALANCE_OVERRIDE = 12,
|
1233
|
-
/**
|
1234
|
-
* Used on chain(s) where some Ether burning happens
|
1235
|
-
*
|
1236
|
-
* @generated from enum value: REASON_BURN = 15;
|
1237
|
-
*/
|
1238
|
-
BURN = 15,
|
1239
|
-
/**
|
1240
|
-
* @generated from enum value: REASON_WITHDRAWAL = 16;
|
1241
|
-
*/
|
1242
|
-
WITHDRAWAL = 16,
|
1243
|
-
/**
|
1244
|
-
* Rewards for Blob processing on BNB chain added in Tycho hard-fork, refers
|
1245
|
-
* to BNB documentation to check the timestamp at which it was activated.
|
1246
|
-
*
|
1247
|
-
* @generated from enum value: REASON_REWARD_BLOB_FEE = 17;
|
1248
|
-
*/
|
1249
|
-
REWARD_BLOB_FEE = 17,
|
1250
|
-
/**
|
1251
|
-
* USE on optimism chan
|
1252
|
-
*
|
1253
|
-
* @generated from enum value: REASON_INCREASE_MINT = 18;
|
1254
|
-
*/
|
1255
|
-
INCREASE_MINT = 18
|
1256
|
-
}
|
1257
|
-
/**
|
1258
|
-
* Describes the enum sf.ethereum.type.v2.BalanceChange.Reason.
|
1259
|
-
*/
|
1260
|
-
export declare const BalanceChange_ReasonSchema: GenEnum<BalanceChange_Reason>;
|
1261
|
-
/**
|
1262
|
-
* @generated from message sf.ethereum.type.v2.NonceChange
|
1263
|
-
*/
|
1264
|
-
export type NonceChange = Message<"sf.ethereum.type.v2.NonceChange"> & {
|
1265
|
-
/**
|
1266
|
-
* @generated from field: bytes address = 1;
|
1267
|
-
*/
|
1268
|
-
address: Uint8Array;
|
1269
|
-
/**
|
1270
|
-
* @generated from field: uint64 old_value = 2;
|
1271
|
-
*/
|
1272
|
-
oldValue: bigint;
|
1273
|
-
/**
|
1274
|
-
* @generated from field: uint64 new_value = 3;
|
1275
|
-
*/
|
1276
|
-
newValue: bigint;
|
1277
|
-
/**
|
1278
|
-
* The block's global ordinal when the nonce change was recorded, refer to [Block]
|
1279
|
-
* documentation for further information about ordinals and total ordering.
|
1280
|
-
*
|
1281
|
-
* @generated from field: uint64 ordinal = 4;
|
1282
|
-
*/
|
1283
|
-
ordinal: bigint;
|
1284
|
-
};
|
1285
|
-
/**
|
1286
|
-
* Describes the message sf.ethereum.type.v2.NonceChange.
|
1287
|
-
* Use `create(NonceChangeSchema)` to create a new message.
|
1288
|
-
*/
|
1289
|
-
export declare const NonceChangeSchema: GenMessage<NonceChange>;
|
1290
|
-
/**
|
1291
|
-
* @generated from message sf.ethereum.type.v2.AccountCreation
|
1292
|
-
*/
|
1293
|
-
export type AccountCreation = Message<"sf.ethereum.type.v2.AccountCreation"> & {
|
1294
|
-
/**
|
1295
|
-
* @generated from field: bytes account = 1;
|
1296
|
-
*/
|
1297
|
-
account: Uint8Array;
|
1298
|
-
/**
|
1299
|
-
* The block's global ordinal when the account creation was recorded, refer to [Block]
|
1300
|
-
* documentation for further information about ordinals and total ordering.
|
1301
|
-
*
|
1302
|
-
* @generated from field: uint64 ordinal = 2;
|
1303
|
-
*/
|
1304
|
-
ordinal: bigint;
|
1305
|
-
};
|
1306
|
-
/**
|
1307
|
-
* Describes the message sf.ethereum.type.v2.AccountCreation.
|
1308
|
-
* Use `create(AccountCreationSchema)` to create a new message.
|
1309
|
-
*/
|
1310
|
-
export declare const AccountCreationSchema: GenMessage<AccountCreation>;
|
1311
|
-
/**
|
1312
|
-
* @generated from message sf.ethereum.type.v2.CodeChange
|
1313
|
-
*/
|
1314
|
-
export type CodeChange = Message<"sf.ethereum.type.v2.CodeChange"> & {
|
1315
|
-
/**
|
1316
|
-
* @generated from field: bytes address = 1;
|
1317
|
-
*/
|
1318
|
-
address: Uint8Array;
|
1319
|
-
/**
|
1320
|
-
* @generated from field: bytes old_hash = 2;
|
1321
|
-
*/
|
1322
|
-
oldHash: Uint8Array;
|
1323
|
-
/**
|
1324
|
-
* @generated from field: bytes old_code = 3;
|
1325
|
-
*/
|
1326
|
-
oldCode: Uint8Array;
|
1327
|
-
/**
|
1328
|
-
* @generated from field: bytes new_hash = 4;
|
1329
|
-
*/
|
1330
|
-
newHash: Uint8Array;
|
1331
|
-
/**
|
1332
|
-
* @generated from field: bytes new_code = 5;
|
1333
|
-
*/
|
1334
|
-
newCode: Uint8Array;
|
1335
|
-
/**
|
1336
|
-
* The block's global ordinal when the code change was recorded, refer to [Block]
|
1337
|
-
* documentation for further information about ordinals and total ordering.
|
1338
|
-
*
|
1339
|
-
* @generated from field: uint64 ordinal = 6;
|
1340
|
-
*/
|
1341
|
-
ordinal: bigint;
|
1342
|
-
};
|
1343
|
-
/**
|
1344
|
-
* Describes the message sf.ethereum.type.v2.CodeChange.
|
1345
|
-
* Use `create(CodeChangeSchema)` to create a new message.
|
1346
|
-
*/
|
1347
|
-
export declare const CodeChangeSchema: GenMessage<CodeChange>;
|
1348
|
-
/**
|
1349
|
-
* The gas change model represents the reason why some gas cost has occurred.
|
1350
|
-
* The gas is computed per actual op codes. Doing them completely might prove
|
1351
|
-
* overwhelming in most cases.
|
1352
|
-
*
|
1353
|
-
* Hence, we only index some of them, those that are costy like all the calls
|
1354
|
-
* one, log events, return data, etc.
|
1355
|
-
*
|
1356
|
-
* @generated from message sf.ethereum.type.v2.GasChange
|
1357
|
-
*/
|
1358
|
-
export type GasChange = Message<"sf.ethereum.type.v2.GasChange"> & {
|
1359
|
-
/**
|
1360
|
-
* @generated from field: uint64 old_value = 1;
|
1361
|
-
*/
|
1362
|
-
oldValue: bigint;
|
1363
|
-
/**
|
1364
|
-
* @generated from field: uint64 new_value = 2;
|
1365
|
-
*/
|
1366
|
-
newValue: bigint;
|
1367
|
-
/**
|
1368
|
-
* @generated from field: sf.ethereum.type.v2.GasChange.Reason reason = 3;
|
1369
|
-
*/
|
1370
|
-
reason: GasChange_Reason;
|
1371
|
-
/**
|
1372
|
-
* The block's global ordinal when the gas change was recorded, refer to [Block]
|
1373
|
-
* documentation for further information about ordinals and total ordering.
|
1374
|
-
*
|
1375
|
-
* @generated from field: uint64 ordinal = 4;
|
1376
|
-
*/
|
1377
|
-
ordinal: bigint;
|
1378
|
-
};
|
1379
|
-
/**
|
1380
|
-
* Describes the message sf.ethereum.type.v2.GasChange.
|
1381
|
-
* Use `create(GasChangeSchema)` to create a new message.
|
1382
|
-
*/
|
1383
|
-
export declare const GasChangeSchema: GenMessage<GasChange>;
|
1384
|
-
/**
|
1385
|
-
* Obtain all gas change reasons under deep mind repository:
|
1386
|
-
*
|
1387
|
-
* ```shell
|
1388
|
-
* ack -ho 'GasChangeReason\(".*"\)' | grep -Eo '".*"' | sort | uniq
|
1389
|
-
* ```
|
1390
|
-
*
|
1391
|
-
* @generated from enum sf.ethereum.type.v2.GasChange.Reason
|
1392
|
-
*/
|
1393
|
-
export declare enum GasChange_Reason {
|
1394
|
-
/**
|
1395
|
-
* @generated from enum value: REASON_UNKNOWN = 0;
|
1396
|
-
*/
|
1397
|
-
UNKNOWN = 0,
|
1398
|
-
/**
|
1399
|
-
* REASON_CALL is the amount of gas that will be charged for a 'CALL' opcode executed by the EVM
|
1400
|
-
*
|
1401
|
-
* @generated from enum value: REASON_CALL = 1;
|
1402
|
-
*/
|
1403
|
-
CALL = 1,
|
1404
|
-
/**
|
1405
|
-
* REASON_CALL_CODE is the amount of gas that will be charged for a 'CALLCODE' opcode executed by the EVM
|
1406
|
-
*
|
1407
|
-
* @generated from enum value: REASON_CALL_CODE = 2;
|
1408
|
-
*/
|
1409
|
-
CALL_CODE = 2,
|
1410
|
-
/**
|
1411
|
-
* REASON_CALL_DATA_COPY is the amount of gas that will be charged for a 'CALLDATACOPY' opcode executed by the EVM
|
1412
|
-
*
|
1413
|
-
* @generated from enum value: REASON_CALL_DATA_COPY = 3;
|
1414
|
-
*/
|
1415
|
-
CALL_DATA_COPY = 3,
|
1416
|
-
/**
|
1417
|
-
* REASON_CODE_COPY is the amount of gas that will be charged for a 'CALLDATACOPY' opcode executed by the EVM
|
1418
|
-
*
|
1419
|
-
* @generated from enum value: REASON_CODE_COPY = 4;
|
1420
|
-
*/
|
1421
|
-
CODE_COPY = 4,
|
1422
|
-
/**
|
1423
|
-
* REASON_CODE_STORAGE is the amount of gas that will be charged for code storage
|
1424
|
-
*
|
1425
|
-
* @generated from enum value: REASON_CODE_STORAGE = 5;
|
1426
|
-
*/
|
1427
|
-
CODE_STORAGE = 5,
|
1428
|
-
/**
|
1429
|
-
* REASON_CONTRACT_CREATION is the amount of gas that will be charged for a 'CREATE' opcode executed by the EVM and for the gas
|
1430
|
-
* burned for a CREATE, today controlled by EIP150 rules
|
1431
|
-
*
|
1432
|
-
* @generated from enum value: REASON_CONTRACT_CREATION = 6;
|
1433
|
-
*/
|
1434
|
-
CONTRACT_CREATION = 6,
|
1435
|
-
/**
|
1436
|
-
* REASON_CONTRACT_CREATION2 is the amount of gas that will be charged for a 'CREATE2' opcode executed by the EVM and for the gas
|
1437
|
-
* burned for a CREATE2, today controlled by EIP150 rules
|
1438
|
-
*
|
1439
|
-
* @generated from enum value: REASON_CONTRACT_CREATION2 = 7;
|
1440
|
-
*/
|
1441
|
-
CONTRACT_CREATION2 = 7,
|
1442
|
-
/**
|
1443
|
-
* REASON_DELEGATE_CALL is the amount of gas that will be charged for a 'DELEGATECALL' opcode executed by the EVM
|
1444
|
-
*
|
1445
|
-
* @generated from enum value: REASON_DELEGATE_CALL = 8;
|
1446
|
-
*/
|
1447
|
-
DELEGATE_CALL = 8,
|
1448
|
-
/**
|
1449
|
-
* REASON_EVENT_LOG is the amount of gas that will be charged for a 'LOG<N>' opcode executed by the EVM
|
1450
|
-
*
|
1451
|
-
* @generated from enum value: REASON_EVENT_LOG = 9;
|
1452
|
-
*/
|
1453
|
-
EVENT_LOG = 9,
|
1454
|
-
/**
|
1455
|
-
* REASON_EXT_CODE_COPY is the amount of gas that will be charged for a 'LOG<N>' opcode executed by the EVM
|
1456
|
-
*
|
1457
|
-
* @generated from enum value: REASON_EXT_CODE_COPY = 10;
|
1458
|
-
*/
|
1459
|
-
EXT_CODE_COPY = 10,
|
1460
|
-
/**
|
1461
|
-
* REASON_FAILED_EXECUTION is the burning of the remaining gas when the execution failed without a revert
|
1462
|
-
*
|
1463
|
-
* @generated from enum value: REASON_FAILED_EXECUTION = 11;
|
1464
|
-
*/
|
1465
|
-
FAILED_EXECUTION = 11,
|
1466
|
-
/**
|
1467
|
-
* REASON_INTRINSIC_GAS is the amount of gas that will be charged for the intrinsic cost of the transaction, there is
|
1468
|
-
* always exactly one of those per transaction
|
1469
|
-
*
|
1470
|
-
* @generated from enum value: REASON_INTRINSIC_GAS = 12;
|
1471
|
-
*/
|
1472
|
-
INTRINSIC_GAS = 12,
|
1473
|
-
/**
|
1474
|
-
* GasChangePrecompiledContract is the amount of gas that will be charged for a precompiled contract execution
|
1475
|
-
*
|
1476
|
-
* @generated from enum value: REASON_PRECOMPILED_CONTRACT = 13;
|
1477
|
-
*/
|
1478
|
-
PRECOMPILED_CONTRACT = 13,
|
1479
|
-
/**
|
1480
|
-
* REASON_REFUND_AFTER_EXECUTION is the amount of gas that will be refunded to the caller after the execution of the call,
|
1481
|
-
* if there is left over at the end of execution
|
1482
|
-
*
|
1483
|
-
* @generated from enum value: REASON_REFUND_AFTER_EXECUTION = 14;
|
1484
|
-
*/
|
1485
|
-
REFUND_AFTER_EXECUTION = 14,
|
1486
|
-
/**
|
1487
|
-
* REASON_RETURN is the amount of gas that will be charged for a 'RETURN' opcode executed by the EVM
|
1488
|
-
*
|
1489
|
-
* @generated from enum value: REASON_RETURN = 15;
|
1490
|
-
*/
|
1491
|
-
RETURN = 15,
|
1492
|
-
/**
|
1493
|
-
* REASON_RETURN_DATA_COPY is the amount of gas that will be charged for a 'RETURNDATACOPY' opcode executed by the EVM
|
1494
|
-
*
|
1495
|
-
* @generated from enum value: REASON_RETURN_DATA_COPY = 16;
|
1496
|
-
*/
|
1497
|
-
RETURN_DATA_COPY = 16,
|
1498
|
-
/**
|
1499
|
-
* REASON_REVERT is the amount of gas that will be charged for a 'REVERT' opcode executed by the EVM
|
1500
|
-
*
|
1501
|
-
* @generated from enum value: REASON_REVERT = 17;
|
1502
|
-
*/
|
1503
|
-
REVERT = 17,
|
1504
|
-
/**
|
1505
|
-
* REASON_SELF_DESTRUCT is the amount of gas that will be charged for a 'SELFDESTRUCT' opcode executed by the EVM
|
1506
|
-
*
|
1507
|
-
* @generated from enum value: REASON_SELF_DESTRUCT = 18;
|
1508
|
-
*/
|
1509
|
-
SELF_DESTRUCT = 18,
|
1510
|
-
/**
|
1511
|
-
* REASON_STATIC_CALL is the amount of gas that will be charged for a 'STATICALL' opcode executed by the EVM
|
1512
|
-
*
|
1513
|
-
* @generated from enum value: REASON_STATIC_CALL = 19;
|
1514
|
-
*/
|
1515
|
-
STATIC_CALL = 19,
|
1516
|
-
/**
|
1517
|
-
* REASON_STATE_COLD_ACCESS is the amount of gas that will be charged for a cold storage access as controlled by EIP2929 rules
|
1518
|
-
*
|
1519
|
-
* Added in Berlin fork (Geth 1.10+)
|
1520
|
-
*
|
1521
|
-
* @generated from enum value: REASON_STATE_COLD_ACCESS = 20;
|
1522
|
-
*/
|
1523
|
-
STATE_COLD_ACCESS = 20,
|
1524
|
-
/**
|
1525
|
-
* REASON_TX_INITIAL_BALANCE is the initial balance for the call which will be equal to the gasLimit of the call
|
1526
|
-
*
|
1527
|
-
* Added as new tracing reason in Geth, available only on some chains
|
1528
|
-
*
|
1529
|
-
* @generated from enum value: REASON_TX_INITIAL_BALANCE = 21;
|
1530
|
-
*/
|
1531
|
-
TX_INITIAL_BALANCE = 21,
|
1532
|
-
/**
|
1533
|
-
* REASON_TX_REFUNDS is the sum of all refunds which happened during the tx execution (e.g. storage slot being cleared)
|
1534
|
-
* this generates an increase in gas. There is only one such gas change per transaction.
|
1535
|
-
*
|
1536
|
-
* Added as new tracing reason in Geth, available only on some chains
|
1537
|
-
*
|
1538
|
-
* @generated from enum value: REASON_TX_REFUNDS = 22;
|
1539
|
-
*/
|
1540
|
-
TX_REFUNDS = 22,
|
1541
|
-
/**
|
1542
|
-
* REASON_TX_LEFT_OVER_RETURNED is the amount of gas left over at the end of transaction's execution that will be returned
|
1543
|
-
* to the chain. This change will always be a negative change as we "drain" left over gas towards 0. If there was no gas
|
1544
|
-
* left at the end of execution, no such even will be emitted. The returned gas's value in Wei is returned to caller.
|
1545
|
-
* There is at most one of such gas change per transaction.
|
1546
|
-
*
|
1547
|
-
* Added as new tracing reason in Geth, available only on some chains
|
1548
|
-
*
|
1549
|
-
* @generated from enum value: REASON_TX_LEFT_OVER_RETURNED = 23;
|
1550
|
-
*/
|
1551
|
-
TX_LEFT_OVER_RETURNED = 23,
|
1552
|
-
/**
|
1553
|
-
* REASON_CALL_INITIAL_BALANCE is the initial balance for the call which will be equal to the gasLimit of the call. There is only
|
1554
|
-
* one such gas change per call.
|
1555
|
-
*
|
1556
|
-
* Added as new tracing reason in Geth, available only on some chains
|
1557
|
-
*
|
1558
|
-
* @generated from enum value: REASON_CALL_INITIAL_BALANCE = 24;
|
1559
|
-
*/
|
1560
|
-
CALL_INITIAL_BALANCE = 24,
|
1561
|
-
/**
|
1562
|
-
* REASON_CALL_LEFT_OVER_RETURNED is the amount of gas left over that will be returned to the caller, this change will always
|
1563
|
-
* be a negative change as we "drain" left over gas towards 0. If there was no gas left at the end of execution, no such even
|
1564
|
-
* will be emitted.
|
1565
|
-
*
|
1566
|
-
* @generated from enum value: REASON_CALL_LEFT_OVER_RETURNED = 25;
|
1567
|
-
*/
|
1568
|
-
CALL_LEFT_OVER_RETURNED = 25
|
1569
|
-
}
|
1570
|
-
/**
|
1571
|
-
* Describes the enum sf.ethereum.type.v2.GasChange.Reason.
|
1572
|
-
*/
|
1573
|
-
export declare const GasChange_ReasonSchema: GenEnum<GasChange_Reason>;
|
1574
|
-
/**
|
1575
|
-
* HeaderOnlyBlock is used to optimally unpack the [Block] structure (note the
|
1576
|
-
* corresponding message number for the `header` field) while consuming less
|
1577
|
-
* memory, when only the `header` is desired.
|
1578
|
-
*
|
1579
|
-
* WARN: this is a client-side optimization pattern and should be moved in the
|
1580
|
-
* consuming code.
|
1581
|
-
*
|
1582
|
-
* @generated from message sf.ethereum.type.v2.HeaderOnlyBlock
|
1583
|
-
*/
|
1584
|
-
export type HeaderOnlyBlock = Message<"sf.ethereum.type.v2.HeaderOnlyBlock"> & {
|
1585
|
-
/**
|
1586
|
-
* @generated from field: sf.ethereum.type.v2.BlockHeader header = 5;
|
1587
|
-
*/
|
1588
|
-
header?: BlockHeader;
|
1589
|
-
};
|
1590
|
-
/**
|
1591
|
-
* Describes the message sf.ethereum.type.v2.HeaderOnlyBlock.
|
1592
|
-
* Use `create(HeaderOnlyBlockSchema)` to create a new message.
|
1593
|
-
*/
|
1594
|
-
export declare const HeaderOnlyBlockSchema: GenMessage<HeaderOnlyBlock>;
|
1595
|
-
/**
|
1596
|
-
* BlockWithRefs is a lightweight block, with traces and transactions
|
1597
|
-
* purged from the `block` within, and only. It is used in transports
|
1598
|
-
* to pass block data around.
|
1599
|
-
*
|
1600
|
-
* @generated from message sf.ethereum.type.v2.BlockWithRefs
|
1601
|
-
*/
|
1602
|
-
export type BlockWithRefs = Message<"sf.ethereum.type.v2.BlockWithRefs"> & {
|
1603
|
-
/**
|
1604
|
-
* @generated from field: string id = 1;
|
1605
|
-
*/
|
1606
|
-
id: string;
|
1607
|
-
/**
|
1608
|
-
* @generated from field: sf.ethereum.type.v2.Block block = 2;
|
1609
|
-
*/
|
1610
|
-
block?: Block;
|
1611
|
-
/**
|
1612
|
-
* @generated from field: sf.ethereum.type.v2.TransactionRefs transaction_trace_refs = 3;
|
1613
|
-
*/
|
1614
|
-
transactionTraceRefs?: TransactionRefs;
|
1615
|
-
/**
|
1616
|
-
* @generated from field: bool irreversible = 4;
|
1617
|
-
*/
|
1618
|
-
irreversible: boolean;
|
1619
|
-
};
|
1620
|
-
/**
|
1621
|
-
* Describes the message sf.ethereum.type.v2.BlockWithRefs.
|
1622
|
-
* Use `create(BlockWithRefsSchema)` to create a new message.
|
1623
|
-
*/
|
1624
|
-
export declare const BlockWithRefsSchema: GenMessage<BlockWithRefs>;
|
1625
|
-
/**
|
1626
|
-
* @generated from message sf.ethereum.type.v2.TransactionTraceWithBlockRef
|
1627
|
-
*/
|
1628
|
-
export type TransactionTraceWithBlockRef = Message<"sf.ethereum.type.v2.TransactionTraceWithBlockRef"> & {
|
1629
|
-
/**
|
1630
|
-
* @generated from field: sf.ethereum.type.v2.TransactionTrace trace = 1;
|
1631
|
-
*/
|
1632
|
-
trace?: TransactionTrace;
|
1633
|
-
/**
|
1634
|
-
* @generated from field: sf.ethereum.type.v2.BlockRef block_ref = 2;
|
1635
|
-
*/
|
1636
|
-
blockRef?: BlockRef;
|
1637
|
-
};
|
1638
|
-
/**
|
1639
|
-
* Describes the message sf.ethereum.type.v2.TransactionTraceWithBlockRef.
|
1640
|
-
* Use `create(TransactionTraceWithBlockRefSchema)` to create a new message.
|
1641
|
-
*/
|
1642
|
-
export declare const TransactionTraceWithBlockRefSchema: GenMessage<TransactionTraceWithBlockRef>;
|
1643
|
-
/**
|
1644
|
-
* @generated from message sf.ethereum.type.v2.TransactionRefs
|
1645
|
-
*/
|
1646
|
-
export type TransactionRefs = Message<"sf.ethereum.type.v2.TransactionRefs"> & {
|
1647
|
-
/**
|
1648
|
-
* @generated from field: repeated bytes hashes = 1;
|
1649
|
-
*/
|
1650
|
-
hashes: Uint8Array[];
|
1651
|
-
};
|
1652
|
-
/**
|
1653
|
-
* Describes the message sf.ethereum.type.v2.TransactionRefs.
|
1654
|
-
* Use `create(TransactionRefsSchema)` to create a new message.
|
1655
|
-
*/
|
1656
|
-
export declare const TransactionRefsSchema: GenMessage<TransactionRefs>;
|
1657
|
-
/**
|
1658
|
-
* @generated from message sf.ethereum.type.v2.BlockRef
|
1659
|
-
*/
|
1660
|
-
export type BlockRef = Message<"sf.ethereum.type.v2.BlockRef"> & {
|
1661
|
-
/**
|
1662
|
-
* @generated from field: bytes hash = 1;
|
1663
|
-
*/
|
1664
|
-
hash: Uint8Array;
|
1665
|
-
/**
|
1666
|
-
* @generated from field: uint64 number = 2;
|
1667
|
-
*/
|
1668
|
-
number: bigint;
|
1669
|
-
};
|
1670
|
-
/**
|
1671
|
-
* Describes the message sf.ethereum.type.v2.BlockRef.
|
1672
|
-
* Use `create(BlockRefSchema)` to create a new message.
|
1673
|
-
*/
|
1674
|
-
export declare const BlockRefSchema: GenMessage<BlockRef>;
|
1675
|
-
/**
|
1676
|
-
* @generated from enum sf.ethereum.type.v2.TransactionTraceStatus
|
1677
|
-
*/
|
1678
|
-
export declare enum TransactionTraceStatus {
|
1679
|
-
/**
|
1680
|
-
* @generated from enum value: UNKNOWN = 0;
|
1681
|
-
*/
|
1682
|
-
UNKNOWN = 0,
|
1683
|
-
/**
|
1684
|
-
* @generated from enum value: SUCCEEDED = 1;
|
1685
|
-
*/
|
1686
|
-
SUCCEEDED = 1,
|
1687
|
-
/**
|
1688
|
-
* @generated from enum value: FAILED = 2;
|
1689
|
-
*/
|
1690
|
-
FAILED = 2,
|
1691
|
-
/**
|
1692
|
-
* @generated from enum value: REVERTED = 3;
|
1693
|
-
*/
|
1694
|
-
REVERTED = 3
|
1695
|
-
}
|
1696
|
-
/**
|
1697
|
-
* Describes the enum sf.ethereum.type.v2.TransactionTraceStatus.
|
1698
|
-
*/
|
1699
|
-
export declare const TransactionTraceStatusSchema: GenEnum<TransactionTraceStatus>;
|
1700
|
-
/**
|
1701
|
-
* @generated from enum sf.ethereum.type.v2.CallType
|
1702
|
-
*/
|
1703
|
-
export declare enum CallType {
|
1704
|
-
/**
|
1705
|
-
* @generated from enum value: UNSPECIFIED = 0;
|
1706
|
-
*/
|
1707
|
-
UNSPECIFIED = 0,
|
1708
|
-
/**
|
1709
|
-
* direct? what's the name for `Call` alone?
|
1710
|
-
*
|
1711
|
-
* @generated from enum value: CALL = 1;
|
1712
|
-
*/
|
1713
|
-
CALL = 1,
|
1714
|
-
/**
|
1715
|
-
* @generated from enum value: CALLCODE = 2;
|
1716
|
-
*/
|
1717
|
-
CALLCODE = 2,
|
1718
|
-
/**
|
1719
|
-
* @generated from enum value: DELEGATE = 3;
|
1720
|
-
*/
|
1721
|
-
DELEGATE = 3,
|
1722
|
-
/**
|
1723
|
-
* @generated from enum value: STATIC = 4;
|
1724
|
-
*/
|
1725
|
-
STATIC = 4,
|
1726
|
-
/**
|
1727
|
-
* create2 ? any other form of calls?
|
1728
|
-
*
|
1729
|
-
* @generated from enum value: CREATE = 5;
|
1730
|
-
*/
|
1731
|
-
CREATE = 5
|
1732
|
-
}
|
1733
|
-
/**
|
1734
|
-
* Describes the enum sf.ethereum.type.v2.CallType.
|
1735
|
-
*/
|
1736
|
-
export declare const CallTypeSchema: GenEnum<CallType>;
|