@asyncswap/eth-rpc 0.4.0 → 0.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @asyncswap/eth-rpc
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 2598f09: updates docs
8
+
9
+ ## 0.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - fd79ea3: updates api for eth-client and adds flasbots methods and headers
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [43de065]
18
+ - Updated dependencies [7e8300c]
19
+ - Updated dependencies [7126afa]
20
+ - @asyncswap/jsonrpc@0.5.0
21
+
3
22
  ## 0.3.0
4
23
 
5
24
  ### Minor Changes
package/README.md CHANGED
@@ -22,22 +22,82 @@ const balance = await eth.eth_getBalance(
22
22
  "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
23
23
  "latest"
24
24
  );
25
- console.log('Balance:', balance);
26
- ```
27
-
28
- ### Ethereum Engine Api
25
+ console.log("Balance:", balance);
26
+ eth.eth_getTransactionCount("0x34", "safe");
29
27
 
30
- ```ts
31
- import { EngineExecutionClient } from "@asyncswap/eth-rpc";
28
+ import { EngineExecutionClient } from '@asyncswap/eth-rpc';
32
29
 
33
- const engineUrl = "https://localhost:8551";
30
+ const engineUrl = 'https://localhost:8551';
34
31
  const engine = new EngineExecutionClient(engineUrl, process.env.JWT_TOKEN!);
35
32
  const payload = engine.engine_getPayloadV1("0x1");
36
33
 
37
34
  console.log(payload);
35
+
36
+ import { EthFlashbotsClient } from '@asyncswap/eth-rpc';
37
+
38
+ const rpc = 'https://relay.flashbots.net';
39
+ const client = new EthFlashbotsClient(rpc);
38
40
  ```
39
41
 
40
- ## Builtin flashbots MEV rpc methods
42
+ ### Client RPC Methods implemented
43
+
44
+ - [x] eth/transaction
45
+ - [x] eth_getTransactionByHash
46
+ - [x] eth_getTransactionByBlockHashAndIndex
47
+ - [x] eth_getTransactionReceipt
48
+ - [x] eth/submit
49
+ - [x] eth_sendTransaction
50
+ - [x] eth_sendRawTransaction
51
+ - [x] eth/state
52
+ - [x] eth_getBalance
53
+ - [x] eth_getStorageAt
54
+ - [x] eth_getTransactionCount
55
+ - [x] eth_getCode
56
+ - [x] eth_getProof
57
+ - [x] eth/sign
58
+ - [x] eth_sign
59
+ - [x] eth_signTransaction
60
+ - [x] eth/filter
61
+ - [x] eth_newFilter
62
+ - [x] eth_newBlockFilter
63
+ - [x] eth_newPendingTransactionFilter
64
+ - [x] eth_uninstallFilter
65
+ - [x] eth_getFilterChanges
66
+ - [x] eth_getFilterLogs
67
+ - [x] eth_getLogs
68
+ - [x] eth/feeMarket
69
+ - [x] eth_gasPrice
70
+ - [x] eth_blobBaseFee
71
+ - [x] eth_maxPriorityFeePerGas
72
+ - [x] eth_feeHistory
73
+ - [x] eth/execute
74
+ - [x] eth_call
75
+ - [x] eth_estimateGas
76
+ - [x] eth_createAccessList
77
+ - [x] eth_simulateV1
78
+ - [x] eth/client
79
+ - [x] eth_chainId
80
+ - [x] eth_syncing
81
+ - [x] eth_coinbase
82
+ - [x] eth_accounts
83
+ - [x] eth_blockNumber
84
+ - [x] net_version
85
+ - [x] eth/block
86
+ - [x] eth_getBlockByHash
87
+ - [x] eth_getBlockByNumber
88
+ - [x] eth_getBlockTransactionCountByHash
89
+ - [x] eth_getBlockTransactionCountByNumber
90
+ - [x] eth_getUncleCountByBlockHash
91
+ - [x] eth_getUncleCountByBlockNumber
92
+ - [x] eth_getBlockReceipts
93
+ - [x] debug
94
+ - [x] debug_getRawHeader = "debug_getRawHeader",
95
+ - [x] debug_getRawBlock = "debug_getRawBlock",
96
+ - [x] debug_getRawTransaction = "debug_getRawTransaction",
97
+ - [x] debug_getRawReceipts = "debug_getRawReceipts",
98
+ - [x] debug_getBadBlocks = "debug_getBadBlocks",
99
+
100
+ ### Builtin flashbots MEV rpc methods
41
101
 
42
102
  - [x] eth_sendBundle
43
103
  - [x] mev_sendBundle
@@ -56,3 +116,32 @@ console.log(payload);
56
116
  - [x] buildernet_getDelayedRefundTotalsByRecipient
57
117
  - [x] flashbots_getMevRefundTotalByRecipient
58
118
  - [x] flashbots_getMevRefundTotalBySender
119
+
120
+ ### Engine RPC Methods Implemented
121
+
122
+ - [x] engine/blob
123
+ - [x] engine_getBlobsV1
124
+ - [x] engine_getBlobsV2
125
+ - [x] engine_getBlobsV3
126
+ - [x] engine/capabilities
127
+ - [x] engine_exchangeCapabilities
128
+ - [x] engine/forkchoice
129
+ - [x] engine_forkchoiceUpdatedV1
130
+ - [x] engine_forkchoiceUpdatedV2
131
+ - [x] engine_forkchoiceUpdatedV3
132
+ - [x] engine/payload
133
+ - [x] engine_newPayloadV1
134
+ - [x] engine_newPayloadV2
135
+ - [x] engine_newPayloadV3
136
+ - [x] engine_newPayloadV4
137
+ - [x] engine_getPayloadV1
138
+ - [x] engine_getPayloadV2
139
+ - [x] engine_getPayloadV3
140
+ - [x] engine_getPayloadV4
141
+ - [x] engine_getPayloadV5
142
+ - [x] engine_getPayloadBodiesByHashV1
143
+ - [x] engine_getPayloadBodiesByRangeV1
144
+ - [x] engine_newPayloadV5
145
+ - [x] engine_getPayloadV6
146
+ - [x] engine/transition-configuration
147
+ - [x] engine_exchangeTransitionConfigurationV1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@asyncswap/eth-rpc",
3
3
  "description": "A library for ethereum execution clients apis.",
4
4
  "author": "Meek Msaki",
5
- "version": "0.4.0",
5
+ "version": "0.4.1",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
@@ -19,6 +19,7 @@ declare global {
19
19
  flashbots_getMevRefundTotalByRecipient = "flashbots_getMevRefundTotalByRecipient",
20
20
  flashbots_getMevRefundTotalBySender = "flashbots_getMevRefundTotalBySender",
21
21
  }
22
+
22
23
  export enum BuilderNetMethods {
23
24
  eth_sendBundle = "eth_sendBundle",
24
25
  eth_sendRawTransaction = "eth_sendRawTransaction",