@msaki/eth-rpc 0.1.1 → 0.2.1

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.
Files changed (58) hide show
  1. package/README.md +14 -0
  2. package/dist/beacon-api.d.ts +2 -0
  3. package/dist/beacon-api.d.ts.map +1 -0
  4. package/dist/beacon-api.js +1 -0
  5. package/dist/beacon-api.js.map +1 -0
  6. package/dist/debug-api.d.ts +10 -0
  7. package/dist/debug-api.d.ts.map +1 -0
  8. package/dist/debug-api.js +28 -0
  9. package/dist/debug-api.js.map +1 -0
  10. package/dist/engine-api.d.ts +61 -0
  11. package/dist/engine-api.d.ts.map +1 -0
  12. package/dist/engine-api.js +163 -0
  13. package/dist/engine-api.js.map +1 -0
  14. package/dist/eth-api.d.ts +45 -0
  15. package/dist/eth-api.d.ts.map +1 -0
  16. package/dist/eth-api.js +183 -0
  17. package/dist/eth-api.js.map +1 -0
  18. package/dist/index.d.ts +3 -3
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +3 -3
  21. package/dist/index.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/debug-api.ts +30 -0
  24. package/src/engine-api.ts +254 -0
  25. package/src/eth-api.ts +254 -0
  26. package/src/index.ts +3 -3
  27. package/src/types/base.d.ts +23 -0
  28. package/src/types/block.d.ts +46 -0
  29. package/src/types/client.d.ts +11 -0
  30. package/src/types/debug/methods.d.ts +11 -0
  31. package/src/types/engine/blob.d.ts +12 -0
  32. package/src/types/engine/forkchoice.d.ts +32 -0
  33. package/src/types/engine/methods.d.ts +42 -0
  34. package/src/types/engine/payload.d.ts +121 -0
  35. package/src/types/engine/transition-configuration.d.ts +10 -0
  36. package/src/types/eth/methods.d.ts +55 -0
  37. package/src/types/execute.d.ts +85 -0
  38. package/src/types/feeHistory.d.ts +18 -0
  39. package/src/types/filter.d.ts +20 -0
  40. package/src/types/receit.d.ts +36 -0
  41. package/src/types/state.d.ts +19 -0
  42. package/src/types/transaction.d.ts +149 -0
  43. package/src/types/withdraw.d.ts +11 -0
  44. package/dist/beacon-methods.d.ts +0 -2
  45. package/dist/beacon-methods.d.ts.map +0 -1
  46. package/dist/beacon-methods.js +0 -1
  47. package/dist/beacon-methods.js.map +0 -1
  48. package/dist/eth-methods.d.ts +0 -47
  49. package/dist/eth-methods.d.ts.map +0 -1
  50. package/dist/eth-methods.js +0 -116
  51. package/dist/eth-methods.js.map +0 -1
  52. package/dist/types.d.ts +0 -338
  53. package/dist/types.d.ts.map +0 -1
  54. package/dist/types.js +0 -1
  55. package/dist/types.js.map +0 -1
  56. package/src/eth-methods.ts +0 -161
  57. package/src/types.ts +0 -368
  58. /package/src/{beacon-methods.ts → beacon-api.ts} +0 -0
@@ -0,0 +1,121 @@
1
+ declare global {
2
+ export enum PAYLOAD_STATUS {
3
+ VALID = "VALID",
4
+ INVALID = "INVALID",
5
+ SYNCING = "SYNCING",
6
+ ACCEPTED = "ACCEPTED",
7
+ INVALID_BLOCK_HASH = "INVALID_BLOCK_HASH",
8
+ }
9
+ export interface PayloadStatusV1 {
10
+ status: PAYLOAD_STATUS;
11
+ latestValidHash?: Hash32;
12
+ validationError?: string;
13
+ }
14
+ export interface RestrictedPayloadStatusV1 {
15
+ status:
16
+ | PAYLOAD_STATUS.VALID
17
+ | PAYLOAD_STATUS.INVALID
18
+ | PAYLOAD_STATUS.SYNCING;
19
+ latestValidHash: Hash32;
20
+ validationError: string;
21
+ }
22
+ export interface PayloadStatusNoInvalidBlockHash {
23
+ status: Exclude<PAYLOAD_STATUS, PAYLOAD_STATUS.INVALID_BLOCK_HASH>;
24
+ latestValidHash: Hash32;
25
+ validationError: string;
26
+ }
27
+ export interface ExecutionPayloadV1 {
28
+ parentHash: Hash32;
29
+ feeRecipient: Address;
30
+ stateRoot: Hash32;
31
+ receiptsRoot: Hash32;
32
+ logsBloom: Bytes256;
33
+ prevRandao: Bytes32;
34
+ blockNumber: Uint64;
35
+ gasLimit: Uint64;
36
+ gasUsed: Uint64;
37
+ timestamp: Uint64;
38
+ extraData: Bytes32;
39
+ baseFeePerGas: Uint64;
40
+ blockHash: Hash32;
41
+ transactions: Bytes[];
42
+ }
43
+ export interface WithdrawalV1 {
44
+ index: Uint64;
45
+ validatorIndex: Uint64;
46
+ address: Address;
47
+ amount: Uint64;
48
+ }
49
+ export interface ExecutionPayloadV2 {
50
+ parentHash: Hash32;
51
+ feeRecipient: Address;
52
+ stateRoot: Hash32;
53
+ receiptsRoot: Hash32;
54
+ logsBloom: Bytes256;
55
+ prevRandao: Bytes32;
56
+ blockNumber: Uint64;
57
+ gasLimit: Uint64;
58
+ gasUsed: Uint64;
59
+ timestamp: Uint64;
60
+ extraData: Bytes32;
61
+ baseFeePerGas: Uint64;
62
+ blockHash: Hash32;
63
+ transactions: Bytes[];
64
+ withdrawals: WithdrawalV1[];
65
+ }
66
+ export interface ExecutionPayloadV3 {
67
+ parentHash: Hash32;
68
+ feeRecipient: Address;
69
+ stateRoot: Hash32;
70
+ receiptsRoot: Hash32;
71
+ logsBloom: Bytes256;
72
+ prevRandao: Bytes32;
73
+ blockNumber: Uint64;
74
+ gasLimit: Uint64;
75
+ gasUsed: Uint64;
76
+ timestamp: Uint64;
77
+ extraData: Bytes32;
78
+ baseFeePerGas: Uint64;
79
+ blockHash: Hash32;
80
+ transactions: Bytes[];
81
+ withdrawals: WithdrawalV1[];
82
+ blobGasUsed: Uint64;
83
+ excessBlobGas: Uint64;
84
+ }
85
+ export interface ExecutionPayloadV4 {
86
+ parentHash: Hash32;
87
+ feeRecipient: Address;
88
+ stateRoot: Hash32;
89
+ receiptsRoot: Hash32;
90
+ logsBloom: Bytes256;
91
+ prevRandao: Bytes32;
92
+ blockNumber: Uint64;
93
+ gasLimit: Uint64;
94
+ gasUsed: Uint64;
95
+ timestamp: Uint64;
96
+ extraData: Bytes32;
97
+ baseFeePerGas: Uint64;
98
+ blockHash: Hash32;
99
+ transactions: Bytes[];
100
+ withdrawals: WithdrawalV1[];
101
+ blobGasUsed: Uint64;
102
+ excessBlobGas: Uint64;
103
+ blockAccessList: Bytes;
104
+ }
105
+ export interface ExecutionPayloadBodyV1 {
106
+ transactions: Bytes[];
107
+ withdrawals?: WithdrawalV1[];
108
+ }
109
+ export interface BlobsBundleV1 {
110
+ commitments: Bytes48[];
111
+ proofs: Bytes48[];
112
+ blobs: Bytes[];
113
+ }
114
+ export interface BlobsBundleV2 {
115
+ commitments: Bytes48[];
116
+ proofs: Bytes48[];
117
+ blobs: Bytes[];
118
+ }
119
+ }
120
+
121
+ export { };
@@ -0,0 +1,10 @@
1
+ declare global {
2
+ // engine types
3
+ export interface TransitionConfigurationV1 {
4
+ terminalTotalDifficulty: Uint256;
5
+ terminalBlockHash: Hash32;
6
+ terminalBlockNumber: Uint64;
7
+ }
8
+ }
9
+
10
+ export { };
@@ -0,0 +1,55 @@
1
+ declare global {
2
+ export enum EthMethods {
3
+ // eth/transaction
4
+ eth_getTransactionByHash = "eth_getTransactionByHash",
5
+ eth_getTransactionByBlockHashAndIndex = "eth_getTransactionByBlockHashAndIndex",
6
+ eth_getTransactionReceipt = "eth_getTransactionReceipt",
7
+ // eth/submit
8
+ eth_sendTransaction = "eth_sendTransaction",
9
+ eth_sendRawTransaction = "eth_sendRawTransaction",
10
+ // eth/state
11
+ eth_getBalance = "eth_getBalance",
12
+ eth_getStorageAt = "eth_getStorageAt",
13
+ eth_getTransactionCount = "eth_getTransactionCount",
14
+ eth_getCode = "eth_getCode",
15
+ eth_getProof = "eth_getProof",
16
+ // eth/sign
17
+ eth_sign = "eth_sign",
18
+ eth_signTransaction = "eth_signTransaction",
19
+ // eth/filter
20
+ eth_newFilter = "eth_newFilter",
21
+ eth_newBlockFilter = "eth_newBlockFilter",
22
+ eth_newPendingTransactionFilter = "eth_newPendingTransactionFilter",
23
+ eth_uninstallFilter = "eth_uninstallFilter",
24
+ eth_getFilterChanges = "eth_getFilterChanges",
25
+ eth_getFilterLogs = "eth_getFilterLogs",
26
+ eth_getLogs = "eth_getLogs",
27
+ // eth/feeMarket
28
+ eth_gasPrice = "eth_gasPrice",
29
+ eth_blobBaseFee = "eth_blobBaseFee",
30
+ eth_maxPriorityFeePerGas = "eth_maxPriorityFeePerGas",
31
+ eth_feeHistory = "eth_feeHistory",
32
+ // eth/execute
33
+ eth_call = "eth_call",
34
+ eth_estimateGas = "eth_estimateGas",
35
+ eth_createAccessList = "eth_createAccessList",
36
+ eth_simulateV1 = "eth_simulateV1",
37
+ // eth/client
38
+ eth_chainId = "eth_chainId",
39
+ eth_syncing = "eth_syncing",
40
+ eth_coinbase = "eth_coinbase",
41
+ eth_accounts = "eth_accounts",
42
+ eth_blockNumber = "eth_blockNumber",
43
+ net_version = "net_version",
44
+ // eth/block
45
+ eth_getBlockByHash = "eth_getBlockByHash",
46
+ eth_getBlockByNumber = "eth_getBlockByNumber",
47
+ eth_getBlockTransactionCountByHash = "eth_getBlockTransactionCountByHash",
48
+ eth_getBlockTransactionCountByNumber = "eth_getBlockTransactionCountByNumber",
49
+ eth_getUncleCountByBlockHash = "eth_getUncleCountByBlockHash",
50
+ eth_getUncleCountByBlockNumber = "eth_getUncleCountByBlockNumber",
51
+ eth_getBlockReceipts = "eth_getBlockReceipts",
52
+ }
53
+ }
54
+
55
+ 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,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 { };
@@ -0,0 +1,11 @@
1
+ declare global {
2
+ // withdrawal.yaml
3
+ export interface Withdrawal {
4
+ index: Uint64;
5
+ validatorIndex: Uint64;
6
+ address: Address;
7
+ amount: Uint256;
8
+ }
9
+ }
10
+
11
+ export { };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=beacon-methods.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beacon-methods.d.ts","sourceRoot":"","sources":["../src/beacon-methods.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=beacon-methods.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beacon-methods.js","sourceRoot":"","sources":["../src/beacon-methods.ts"],"names":[],"mappings":""}
@@ -1,47 +0,0 @@
1
- export type * as EthSchema from "./types";
2
- import type { EthSchema } from ".";
3
- export declare enum Methods {
4
- eth_getTransactionByHash = "eth_getTransactionByHash",
5
- eth_getTransactionByBlockHashAndIndex = "eth_getTransactionByBlockHashAndIndex",
6
- eth_getTransactionReceipt = "eth_getTransactionReceipt",
7
- eth_sendTransaction = "eth_sendTransaction",
8
- eth_sendRawTransaction = "eth_sendRawTransaction",
9
- eth_getBalance = "eth_getBalance",
10
- eth_getStorageAt = "eth_getStorageAt",
11
- eth_getTransactionCount = "eth_getTransactionCount",
12
- eth_getCode = "eth_getCode",
13
- eth_getProof = "eth_getProof",
14
- eth_sign = "eth_sign",
15
- eth_signTransaction = "eth_signTransaction",
16
- eth_newFilter = "eth_newFilter",
17
- eth_newBlockFilter = "eth_newBlockFilter",
18
- eth_newPendingTransactionFilter = "eth_newPendingTransactionFilter",
19
- eth_uninstallFilter = "eth_uninstallFilter",
20
- eth_getFilterChanges = "eth_getFilterChanges",
21
- eth_getFilterLogs = "eth_getFilterLogs",
22
- eth_getLogs = "eth_getLogs"
23
- }
24
- export declare class EthExecutionClient {
25
- private client;
26
- constructor(url: string);
27
- eth_getTransactionByHash(transactioHash: EthSchema.Hash32): Promise<EthSchema.NotFound | EthSchema.TransactionInfo>;
28
- eth_getTransactionByBlockHashAndIndex(blockHash: EthSchema.Hash32, transactionIndex: EthSchema.Uint): Promise<EthSchema.NotFound | EthSchema.TransactionInfo>;
29
- eth_getTransactionReceipt(transactionHash: EthSchema.Hash32): Promise<EthSchema.NotFound | EthSchema.ReceiptInfo>;
30
- eth_sendTransaction(transaction: EthSchema.GenericTransaction): Promise<EthSchema.Hash32>;
31
- eth_sendRawTransaction(transaction: EthSchema.Bytes): Promise<EthSchema.Hash32>;
32
- eth_getBalance(address: EthSchema.Address, block: EthSchema.BlockNumberOrTagOrHash): Promise<EthSchema.Uint>;
33
- eth_getStorageAt(address: EthSchema.Address, storageSlot: EthSchema.Bytes32, block: EthSchema.BlockNumberOrTagOrHash): Promise<EthSchema.Bytes>;
34
- eth_getTransactionCount(address: EthSchema.Address, block: EthSchema.BlockNumberOrTagOrHash): Promise<EthSchema.Uint>;
35
- eth_getCode(address: EthSchema.Address, block: EthSchema.BlockNumberOrTagOrHash): Promise<EthSchema.Bytes>;
36
- eth_getProof(address: EthSchema.Address, storageKeys: EthSchema.Bytes32[], block: EthSchema.BlockNumberOrTagOrHash): Promise<EthSchema.AccountProof>;
37
- eth_sign(address: EthSchema.Address, message: EthSchema.Bytes): Promise<EthSchema.Bytes65>;
38
- eth_signTransaction(transaction: EthSchema.GenericTransaction): Promise<EthSchema.Bytes>;
39
- eth_newFilter(filter: EthSchema.Filter): Promise<EthSchema.Uint>;
40
- eth_newBlockFilter(): Promise<EthSchema.Uint>;
41
- eth_newPendingTransactionFilter(): Promise<EthSchema.Uint>;
42
- eth_uninstallFilter(): Promise<EthSchema.Uint>;
43
- eth_getFilterChanges(): Promise<EthSchema.FilterResults>;
44
- eth_getFilterLogs(filterIdentifier: EthSchema.Uint): Promise<EthSchema.FilterResults>;
45
- eth_getLogs(filter: EthSchema.Filter): Promise<EthSchema.FilterResults>;
46
- }
47
- //# sourceMappingURL=eth-methods.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eth-methods.d.ts","sourceRoot":"","sources":["../src/eth-methods.ts"],"names":[],"mappings":"AACA,YAAY,KAAK,SAAS,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAEnC,oBAAY,OAAO;IAElB,wBAAwB,6BAA6B;IACrD,qCAAqC,0CAA0C;IAC/E,yBAAyB,8BAA8B;IAEvD,mBAAmB,wBAAwB;IAC3C,sBAAsB,2BAA2B;IAEjD,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,uBAAuB,4BAA4B;IACnD,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAE7B,QAAQ,aAAa;IACrB,mBAAmB,wBAAwB;IAE3C,aAAa,kBAAkB;IAC/B,kBAAkB,uBAAuB;IACzC,+BAA+B,oCAAoC;IACnE,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;CAC3B;AAED,qBAAa,kBAAkB;IAC9B,OAAO,CAAC,MAAM,CAAgB;gBAElB,GAAG,EAAE,MAAM;IAKjB,wBAAwB,CAC7B,cAAc,EAAE,SAAS,CAAC,MAAM,GAC9B,OAAO,CAAC,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,eAAe,CAAC;IAK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