@msaki/eth-rpc 0.1.0 → 0.2.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/engine/index.d.ts +2 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +1 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/eth-methods.d.ts +62 -22
- package/dist/eth-methods.d.ts.map +1 -1
- package/dist/eth-methods.js +141 -8
- package/dist/eth-methods.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +36 -35
- package/src/engine/index.ts +0 -0
- package/src/eth-methods.ts +286 -193
- package/src/index.ts +1 -2
- package/src/types/base.d.ts +23 -0
- package/src/types/block.d.ts +46 -0
- package/src/types/client.d.ts +11 -0
- package/src/types/engine.d.ts +127 -0
- package/src/types/execute.d.ts +85 -0
- package/src/types/feeHistory.d.ts +18 -0
- package/src/types/filter.d.ts +20 -0
- package/src/types/forkchoice.d.ts +40 -0
- package/src/types/receit.d.ts +36 -0
- package/src/types/state.d.ts +19 -0
- package/src/types/transaction.d.ts +149 -0
- package/src/types/withdraw.d.ts +11 -0
- package/dist/types.d.ts +0 -338
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -1
- package/dist/types.js.map +0 -1
- package/src/types.ts +0 -360
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// engine types
|
|
3
|
+
export interface TransitionConfigurationV1 {
|
|
4
|
+
terminalTotalDifficulty: Uint256;
|
|
5
|
+
terminalBlockHash: Hash32;
|
|
6
|
+
terminalBlockNumber: Uint64;
|
|
7
|
+
}
|
|
8
|
+
export enum PAYLOAD_STATUS {
|
|
9
|
+
VALID = "VALID",
|
|
10
|
+
INVALID = "INVALID",
|
|
11
|
+
SYNCING = "SYNCING",
|
|
12
|
+
ACCEPTED = "ACCEPTED",
|
|
13
|
+
INVALID_BLOCK_HASH = "INVALID_BLOCK_HASH",
|
|
14
|
+
}
|
|
15
|
+
export interface PayloadStatusV1 {
|
|
16
|
+
status: PAYLOAD_STATUS;
|
|
17
|
+
latestValidHash?: Hash32;
|
|
18
|
+
validationError?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface RestrictedPayloadStatusV1 {
|
|
21
|
+
status:
|
|
22
|
+
| PAYLOAD_STATUS.VALID
|
|
23
|
+
| PAYLOAD_STATUS.INVALID
|
|
24
|
+
| PAYLOAD_STATUS.SYNCING;
|
|
25
|
+
latestValidHash: Hash32;
|
|
26
|
+
validationError: string;
|
|
27
|
+
}
|
|
28
|
+
export interface PayloadStatusNoInvalidBlockHash {
|
|
29
|
+
status: Exclude<PAYLOAD_STATUS, PAYLOAD_STATUS.INVALID_BLOCK_HASH>;
|
|
30
|
+
latestValidHash: Hash32;
|
|
31
|
+
validationError: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ExecutionPayloadV1 {
|
|
34
|
+
parentHash: Hash32;
|
|
35
|
+
feeRecipient: Address;
|
|
36
|
+
stateRoot: Hash32;
|
|
37
|
+
receiptsRoot: Hash32;
|
|
38
|
+
logsBloom: Bytes256;
|
|
39
|
+
prevRandao: Bytes32;
|
|
40
|
+
blockNumber: Uint64;
|
|
41
|
+
gasLimit: Uint64;
|
|
42
|
+
gasUsed: Uint64;
|
|
43
|
+
timestamp: Uint64;
|
|
44
|
+
extraData: Bytes32;
|
|
45
|
+
baseFeePerGas: Uint64;
|
|
46
|
+
blockHash: Hash32;
|
|
47
|
+
transactions: Bytes[];
|
|
48
|
+
}
|
|
49
|
+
export interface WithdrawalV1 {
|
|
50
|
+
index: Uint64;
|
|
51
|
+
validatorIndex: Uint64;
|
|
52
|
+
address: Address;
|
|
53
|
+
amount: Uint64;
|
|
54
|
+
}
|
|
55
|
+
export interface ExecutionPayloadV2 {
|
|
56
|
+
parentHash: Hash32;
|
|
57
|
+
feeRecipient: Address;
|
|
58
|
+
stateRoot: Hash32;
|
|
59
|
+
receiptsRoot: Hash32;
|
|
60
|
+
logsBloom: Bytes256;
|
|
61
|
+
prevRandao: Bytes32;
|
|
62
|
+
blockNumber: Uint64;
|
|
63
|
+
gasLimit: Uint64;
|
|
64
|
+
gasUsed: Uint64;
|
|
65
|
+
timestamp: Uint64;
|
|
66
|
+
extraData: Bytes32;
|
|
67
|
+
baseFeePerGas: Uint64;
|
|
68
|
+
blockHash: Hash32;
|
|
69
|
+
transactions: Bytes[];
|
|
70
|
+
withdrawals: WithdrawalV1[];
|
|
71
|
+
}
|
|
72
|
+
export interface ExecutionPayloadV3 {
|
|
73
|
+
parentHash: Hash32;
|
|
74
|
+
feeRecipient: Address;
|
|
75
|
+
stateRoot: Hash32;
|
|
76
|
+
receiptsRoot: Hash32;
|
|
77
|
+
logsBloom: Bytes256;
|
|
78
|
+
prevRandao: Bytes32;
|
|
79
|
+
blockNumber: Uint64;
|
|
80
|
+
gasLimit: Uint64;
|
|
81
|
+
gasUsed: Uint64;
|
|
82
|
+
timestamp: Uint64;
|
|
83
|
+
extraData: Bytes32;
|
|
84
|
+
baseFeePerGas: Uint64;
|
|
85
|
+
blockHash: Hash32;
|
|
86
|
+
transactions: Bytes[];
|
|
87
|
+
withdrawals: WithdrawalV1[];
|
|
88
|
+
blobGasUsed: Uint64;
|
|
89
|
+
excessBlobGas: Uint64;
|
|
90
|
+
}
|
|
91
|
+
export interface ExecutionPayloadV4 {
|
|
92
|
+
parentHash: Hash32;
|
|
93
|
+
feeRecipient: Address;
|
|
94
|
+
stateRoot: Hash32;
|
|
95
|
+
receiptsRoot: Hash32;
|
|
96
|
+
logsBloom: Bytes256;
|
|
97
|
+
prevRandao: Bytes32;
|
|
98
|
+
blockNumber: Uint64;
|
|
99
|
+
gasLimit: Uint64;
|
|
100
|
+
gasUsed: Uint64;
|
|
101
|
+
timestamp: Uint64;
|
|
102
|
+
extraData: Bytes32;
|
|
103
|
+
baseFeePerGas: Uint64;
|
|
104
|
+
blockHash: Hash32;
|
|
105
|
+
transactions: Bytes[];
|
|
106
|
+
withdrawals: WithdrawalV1[];
|
|
107
|
+
blobGasUsed: Uint64;
|
|
108
|
+
excessBlobGas: Uint64;
|
|
109
|
+
blockAccessList: Bytes;
|
|
110
|
+
}
|
|
111
|
+
export interface ExecutionPayloadBodyV1 {
|
|
112
|
+
transactions: Bytes[];
|
|
113
|
+
withdrawals?: WithdrawalV1[];
|
|
114
|
+
}
|
|
115
|
+
export interface BlobsBundleV1 {
|
|
116
|
+
commitments: Bytes48[];
|
|
117
|
+
proofs: Bytes48[];
|
|
118
|
+
blobs: Bytes[];
|
|
119
|
+
}
|
|
120
|
+
export interface BlobsBundleV2 {
|
|
121
|
+
commitments: Bytes48[];
|
|
122
|
+
proofs: Bytes48[];
|
|
123
|
+
blobs: Bytes[];
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// execute.yaml
|
|
3
|
+
export interface EthSimulatePayload {
|
|
4
|
+
blockStateCalls: BlockStateCall[];
|
|
5
|
+
traceTransfers?: boolean;
|
|
6
|
+
validation?: boolean;
|
|
7
|
+
returnFullTransactions?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface BlockStateCall {
|
|
10
|
+
blockOverrides?: BlockOverrides;
|
|
11
|
+
stateOverrides?: StateOverrides;
|
|
12
|
+
calls?: GenericCallTransaction[];
|
|
13
|
+
}
|
|
14
|
+
export interface BlockOverrides {
|
|
15
|
+
number?: Uint64;
|
|
16
|
+
prevRandao?: Uint256;
|
|
17
|
+
time?: Uint64;
|
|
18
|
+
gasLimit?: Uint64;
|
|
19
|
+
feeRecipient?: Address;
|
|
20
|
+
baseFeePerGas?: Uint256;
|
|
21
|
+
withdrawals?: Withdrawal[];
|
|
22
|
+
blobBaseFee?: Uint64;
|
|
23
|
+
}
|
|
24
|
+
export type StateOverrides = Record<Address, AccountOverride>;
|
|
25
|
+
export interface GenericCallTransaction {
|
|
26
|
+
type?: "0x0" | "0x1" | "0x2" | "0x3";
|
|
27
|
+
to?: Address | null;
|
|
28
|
+
from?: Address;
|
|
29
|
+
value?: Uint;
|
|
30
|
+
nonce?: Uint;
|
|
31
|
+
gas?: Uint;
|
|
32
|
+
input?: Bytes;
|
|
33
|
+
gasPrice?: Uint;
|
|
34
|
+
maxPriorityFeePerGas?: Uint;
|
|
35
|
+
maxFeePerGas?: Uint;
|
|
36
|
+
maxFeePerBlobGas?: Uint;
|
|
37
|
+
accessList?: AccessListEntry[];
|
|
38
|
+
blobVersionedHashes?: Hash32[];
|
|
39
|
+
authorizationList?: AuthorizationList;
|
|
40
|
+
}
|
|
41
|
+
export type AccountOverride = AccountOverrideState | AccountOverrideStateDiff;
|
|
42
|
+
export interface AccountOverrideState {
|
|
43
|
+
state: AccountStorage;
|
|
44
|
+
nonce?: Uint64;
|
|
45
|
+
balance?: Uint256;
|
|
46
|
+
code?: Bytes;
|
|
47
|
+
movePrecompileToAddress?: Address;
|
|
48
|
+
}
|
|
49
|
+
export interface AccountOverrideStateDiff {
|
|
50
|
+
stateDiff: AccountStorage;
|
|
51
|
+
nonce?: Uint64;
|
|
52
|
+
balance?: Uint256;
|
|
53
|
+
code?: Bytes;
|
|
54
|
+
movePrecompileToAddress?: Address;
|
|
55
|
+
}
|
|
56
|
+
export type AccountStorage = Record<Bytes32, Hash32>;
|
|
57
|
+
export type EthSimulateResult = EthSimulateBlockResultSingleSuccess[];
|
|
58
|
+
|
|
59
|
+
export type EthSimulateBlockResultSingleSuccess = {
|
|
60
|
+
calls: CallResults;
|
|
61
|
+
} & Block;
|
|
62
|
+
export type CallResults = CallResultFailure | CallResultSuccess;
|
|
63
|
+
export interface CallResultFailure {
|
|
64
|
+
status: "0x0";
|
|
65
|
+
returnData: Bytes;
|
|
66
|
+
gasUsed: Uint64;
|
|
67
|
+
error: EXECUTION_REVERTED_ERROR | VM_EXECUTION_ERROR;
|
|
68
|
+
}
|
|
69
|
+
export type EXECUTION_REVERTED_ERROR = {
|
|
70
|
+
code: -32000;
|
|
71
|
+
message: "execution reverted.";
|
|
72
|
+
};
|
|
73
|
+
export type VM_EXECUTION_ERROR = {
|
|
74
|
+
code: -32015;
|
|
75
|
+
message: "vm execution error.";
|
|
76
|
+
};
|
|
77
|
+
export interface CallResultSuccess {
|
|
78
|
+
status: "0x1";
|
|
79
|
+
returnData: Bytes;
|
|
80
|
+
gasUsed: Uint64;
|
|
81
|
+
logs: Log[];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// misc
|
|
3
|
+
export interface FeeHistoryResults {
|
|
4
|
+
oldestBlock: Uint;
|
|
5
|
+
baseFeePerGas: Uint[];
|
|
6
|
+
baseFeePerBlobGas?: Uint[];
|
|
7
|
+
gasUsedRatio: Ratio[];
|
|
8
|
+
blobGasUsedRatio?: Ratio[];
|
|
9
|
+
reward?: Uint[][];
|
|
10
|
+
}
|
|
11
|
+
export interface AccessListResult {
|
|
12
|
+
accessList?: AccessListEntry[];
|
|
13
|
+
error?: string;
|
|
14
|
+
gasUsed?: Uint;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// filter.yaml
|
|
3
|
+
export type FilterResults = Hash32[] | Log[];
|
|
4
|
+
export type FilterTopic = Bytes32 | Bytes32[];
|
|
5
|
+
export type FilterTopics = FilterTopic | null;
|
|
6
|
+
export type Filter = FilterByBlockRange | FilterByBlockHash;
|
|
7
|
+
export interface FilterByBlockRange {
|
|
8
|
+
fromBlock?: Uint;
|
|
9
|
+
toBlock?: Uint;
|
|
10
|
+
address?: null | Address | Addresses;
|
|
11
|
+
topics?: FilterTopics;
|
|
12
|
+
}
|
|
13
|
+
export interface FilterByBlockHash {
|
|
14
|
+
blockHash: Hash32;
|
|
15
|
+
address?: Address | Addresses | null;
|
|
16
|
+
topics?: FilterTopics;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// forkchoice
|
|
3
|
+
export interface ForkchoiceStateV1 {
|
|
4
|
+
headBlockHash: Hash32;
|
|
5
|
+
safeBlockHash: Hash32;
|
|
6
|
+
finalizedBlockHash: Hash32;
|
|
7
|
+
}
|
|
8
|
+
export interface ForkchoiceUpdatedResponseV1 {
|
|
9
|
+
payloadStatus: RestrictedPayloadStatusV1;
|
|
10
|
+
payloadId?: Bytes8;
|
|
11
|
+
}
|
|
12
|
+
export interface PayloadAttributesV1 {
|
|
13
|
+
timestamp: Uint64;
|
|
14
|
+
prevRandao: Bytes32;
|
|
15
|
+
suggestedFeeRecipient: Address;
|
|
16
|
+
}
|
|
17
|
+
export interface PayloadAttributesV2 {
|
|
18
|
+
timestamp: Uint64;
|
|
19
|
+
prevRandao: Bytes32;
|
|
20
|
+
suggestedFeeRecipient: Address;
|
|
21
|
+
withdrawals: WithdrawalV1[];
|
|
22
|
+
}
|
|
23
|
+
export interface PayloadAttributesV3 {
|
|
24
|
+
timestamp: Uint64;
|
|
25
|
+
prevRandao: Bytes32;
|
|
26
|
+
suggestedFeeRecipient: Address;
|
|
27
|
+
withdrawals: WithdrawalV1[];
|
|
28
|
+
parentBeaconBlockRoot: Hash32;
|
|
29
|
+
}
|
|
30
|
+
export interface BlobAndProofV1 {
|
|
31
|
+
blob: Bytes;
|
|
32
|
+
proof: Bytes48;
|
|
33
|
+
}
|
|
34
|
+
export interface BlobAndProofV2 {
|
|
35
|
+
blob: Bytes;
|
|
36
|
+
proofs: Bytes48[];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// receipt.yaml
|
|
3
|
+
export interface Log {
|
|
4
|
+
transactionHash: Hash32;
|
|
5
|
+
removed?: boolean;
|
|
6
|
+
logIndex?: Uint;
|
|
7
|
+
transactionIndex?: Uint;
|
|
8
|
+
blockHash?: Hash32;
|
|
9
|
+
blockNumber?: Uint;
|
|
10
|
+
blockTimestamp?: Uint;
|
|
11
|
+
address?: Address;
|
|
12
|
+
data?: Bytes;
|
|
13
|
+
topics?: Bytes32[];
|
|
14
|
+
}
|
|
15
|
+
export interface ReceiptInfo {
|
|
16
|
+
type?: Byte;
|
|
17
|
+
transactionHash: Hash32;
|
|
18
|
+
transactionIndex: Uint;
|
|
19
|
+
blockHash: Byte;
|
|
20
|
+
blockNumber: Uint;
|
|
21
|
+
from: Address;
|
|
22
|
+
to?: Address | null;
|
|
23
|
+
cumulativeGasUsed: Uint;
|
|
24
|
+
gasUsed: Uint;
|
|
25
|
+
blobGasUsed?: Uint;
|
|
26
|
+
contractAddress?: Address | null;
|
|
27
|
+
logs: Log[];
|
|
28
|
+
logsBloom: Bytes256;
|
|
29
|
+
root?: Hash32;
|
|
30
|
+
status?: Uint;
|
|
31
|
+
effectiveGasPrice: Uint;
|
|
32
|
+
blobGasPrice?: Uint;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// state.yaml
|
|
3
|
+
export interface AccountProof {
|
|
4
|
+
address: Address;
|
|
5
|
+
accountProof: Bytes;
|
|
6
|
+
balance: Uint256;
|
|
7
|
+
codeHash: Hash32;
|
|
8
|
+
nonce: Uint64;
|
|
9
|
+
storageHash: Hash32;
|
|
10
|
+
storageProof: StorageProof;
|
|
11
|
+
}
|
|
12
|
+
export interface StorageProof {
|
|
13
|
+
key: Bytes32;
|
|
14
|
+
value: Uint256;
|
|
15
|
+
proof: Bytes;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// transaction.yaml
|
|
3
|
+
export interface AccessListEntry {
|
|
4
|
+
address: Address;
|
|
5
|
+
storageKeys: Hash32[];
|
|
6
|
+
}
|
|
7
|
+
export type TransactionUnsigned =
|
|
8
|
+
| TransactionLegacyUnsigned
|
|
9
|
+
| Transaction2930Unsigned
|
|
10
|
+
| Transaction1559Unsigned
|
|
11
|
+
| Transaction4844Unsigned
|
|
12
|
+
| Transaction7702Unsigned;
|
|
13
|
+
|
|
14
|
+
export interface TransactionLegacyUnsigned {
|
|
15
|
+
type: "0x0";
|
|
16
|
+
nonce: Uint;
|
|
17
|
+
to?: Address | null;
|
|
18
|
+
gas: Uint;
|
|
19
|
+
value: Uint;
|
|
20
|
+
input: Bytes;
|
|
21
|
+
gasPrice: Uint;
|
|
22
|
+
chainId?: Uint;
|
|
23
|
+
}
|
|
24
|
+
export interface Transaction2930Unsigned {
|
|
25
|
+
type: "0x1";
|
|
26
|
+
nonce: Uint;
|
|
27
|
+
to?: Address | null;
|
|
28
|
+
gas: Uint;
|
|
29
|
+
value: Uint;
|
|
30
|
+
input: Bytes;
|
|
31
|
+
gasPrice: Uint;
|
|
32
|
+
chainId: Uint;
|
|
33
|
+
accessList: AccessListEntry[];
|
|
34
|
+
}
|
|
35
|
+
export interface Transaction1559Unsigned {
|
|
36
|
+
type: "0x2";
|
|
37
|
+
nonce: Uint;
|
|
38
|
+
to?: Address | null;
|
|
39
|
+
gas: Uint;
|
|
40
|
+
value: Uint;
|
|
41
|
+
input: Bytes;
|
|
42
|
+
gasPrice: Uint;
|
|
43
|
+
maxFeePerGas: Uint;
|
|
44
|
+
maxPriorityFeePerGas: Uint;
|
|
45
|
+
accessList: AccessListEntry[];
|
|
46
|
+
chainId: Uint;
|
|
47
|
+
}
|
|
48
|
+
export interface Transaction4844Unsigned {
|
|
49
|
+
type: "0x3";
|
|
50
|
+
nonce: Uint;
|
|
51
|
+
to: Address;
|
|
52
|
+
gas: Uint;
|
|
53
|
+
value: Uint;
|
|
54
|
+
input: Bytes;
|
|
55
|
+
gasPrice?: Uint;
|
|
56
|
+
maxFeePerGas: Uint;
|
|
57
|
+
maxPriorityFeePerGas: Uint;
|
|
58
|
+
maxFeePerBlobGas: Uint;
|
|
59
|
+
accessList: AccessListEntry[];
|
|
60
|
+
blobVersionedHashes: Hash32[];
|
|
61
|
+
chainId: Uint;
|
|
62
|
+
}
|
|
63
|
+
export interface Transaction7702Unsigned {
|
|
64
|
+
type: "0x4";
|
|
65
|
+
nonce: Uint;
|
|
66
|
+
to: Address;
|
|
67
|
+
gas: Uint;
|
|
68
|
+
value: Uint;
|
|
69
|
+
input: Bytes;
|
|
70
|
+
maxPriorityFeePerGas: Uint;
|
|
71
|
+
maxFeePerGas: Uint;
|
|
72
|
+
gasPrice?: Uint;
|
|
73
|
+
accessList: AccessListEntry[];
|
|
74
|
+
chainId: Uint;
|
|
75
|
+
authorizationList: AuthorizationList;
|
|
76
|
+
}
|
|
77
|
+
export interface AuthorizationListEntry {
|
|
78
|
+
chainId: Uint;
|
|
79
|
+
nonce: Uint;
|
|
80
|
+
address: Address;
|
|
81
|
+
yParity: Byte;
|
|
82
|
+
r: Uint256;
|
|
83
|
+
s: Uint256;
|
|
84
|
+
}
|
|
85
|
+
export type AuthorizationList = AuthorizationListEntry[];
|
|
86
|
+
|
|
87
|
+
export type TransactionLegacySigned = {
|
|
88
|
+
v: Byte;
|
|
89
|
+
r: Uint;
|
|
90
|
+
s: Uint;
|
|
91
|
+
} & TransactionLegacyUnsigned;
|
|
92
|
+
export type Transaction2930Signed = {
|
|
93
|
+
yParity: Bytes;
|
|
94
|
+
r: Uint;
|
|
95
|
+
s: Uint;
|
|
96
|
+
v?: Byte;
|
|
97
|
+
} & Transaction2930Unsigned;
|
|
98
|
+
export type Transaction1559Signed = {
|
|
99
|
+
yParity: Bytes;
|
|
100
|
+
r: Uint;
|
|
101
|
+
s: Uint;
|
|
102
|
+
v?: Byte;
|
|
103
|
+
} & Transaction1559Unsigned;
|
|
104
|
+
export type Transaction4844Signed = {
|
|
105
|
+
yParity: Byte;
|
|
106
|
+
r: Uint;
|
|
107
|
+
s: Uint;
|
|
108
|
+
v?: Byte;
|
|
109
|
+
} & Transaction4844Unsigned;
|
|
110
|
+
export type Transaction7702Signed = {
|
|
111
|
+
yParity: Byte;
|
|
112
|
+
r: Uint;
|
|
113
|
+
s: Uint;
|
|
114
|
+
v?: Byte;
|
|
115
|
+
} & Transaction7702Unsigned;
|
|
116
|
+
export type TransactionSigned =
|
|
117
|
+
| TransactionLegacySigned
|
|
118
|
+
| Transaction2930Signed
|
|
119
|
+
| Transaction1559Signed
|
|
120
|
+
| Transaction4844Signed
|
|
121
|
+
| Transaction7702Signed;
|
|
122
|
+
export type TransactionInfo = {
|
|
123
|
+
blockHash: Hash32;
|
|
124
|
+
blockNumber: Uint;
|
|
125
|
+
from: Address;
|
|
126
|
+
hash: Hash32;
|
|
127
|
+
transactionIndex: Uint;
|
|
128
|
+
} & TransactionSigned;
|
|
129
|
+
export interface GenericTransaction {
|
|
130
|
+
type?: "0x0" | "0x1" | "0x2" | "0x3";
|
|
131
|
+
to?: Address | null;
|
|
132
|
+
from?: Address;
|
|
133
|
+
value?: Uint;
|
|
134
|
+
nonce?: Uint;
|
|
135
|
+
gas?: Uint;
|
|
136
|
+
input?: Bytes;
|
|
137
|
+
gasPrice?: Uint;
|
|
138
|
+
maxPriorityFeePerGas?: Uint;
|
|
139
|
+
maxFeePerGas?: Uint;
|
|
140
|
+
maxFeePerBlobGas?: Uint;
|
|
141
|
+
accessList?: AccessListEntry[];
|
|
142
|
+
blobVersionedHashes?: Hash32[];
|
|
143
|
+
blobs?: Bytes[];
|
|
144
|
+
chainId?: Uint;
|
|
145
|
+
authorizationList?: AuthorizationList;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export { };
|