Commit 6c47804
authored
refactor(tx-cache): rename types for clarity (#194)
* refactor(tx-cache): rename types for clarity
Rename tx-cache types to remove redundant TxCache prefix and improve naming:
- TxCacheBundle → CachedBundle
- TxCacheBundlesResponse → BundleList
- TxCacheSendBundleResponse → BundleReceipt
- TxCacheTransactionsResponse → TransactionList
- TxCacheSendTransactionResponse → TransactionReceipt
- TxCacheOrdersResponse → OrderList
- TxCacheSendOrderResponse → OrderReceipt
Deleted TxCacheBundleResponse as it was just a wrapper around CachedBundle.
All old type names are preserved as deprecated type aliases for
backwards compatibility.
Closes ENG-1569
* fix: correct deprecated since version to 0.16.0
Addresses review feedback from @prestwich - the deprecated type alias
annotations incorrectly used 0.2.0 instead of the current workspace version.
* refactor(tx-cache): rename Receipt to Response
Address PR #194 review feedback from Evalir: rename all *Receipt types
to *Response to avoid confusion with Ethereum's transaction receipt concept.
Changes:
- BundleReceipt → BundleResponse
- TransactionReceipt → TransactionResponse
- OrderReceipt → OrderResponse
Deprecated type aliases are added for backwards compatibility, pointing
old names (including the old TxCacheSend* types and *Receipt types) to
the new *Response types.1 parent 3abfad5 commit 6c47804
File tree
3 files changed
+152
-157
lines changed- crates
- orders/src/impls
- tx-cache/src
3 files changed
+152
-157
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 156 | + | |
160 | 157 | | |
161 | 158 | | |
162 | 159 | | |
| |||
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
175 | | - | |
| 172 | + | |
176 | 173 | | |
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
180 | 177 | | |
181 | 178 | | |
182 | 179 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 180 | + | |
187 | 181 | | |
188 | 182 | | |
189 | 183 | | |
| |||
219 | 213 | | |
220 | 214 | | |
221 | 215 | | |
222 | | - | |
| 216 | + | |
223 | 217 | | |
224 | 218 | | |
225 | 219 | | |
| |||
230 | 224 | | |
231 | 225 | | |
232 | 226 | | |
233 | | - | |
| 227 | + | |
234 | 228 | | |
235 | 229 | | |
236 | 230 | | |
| |||
248 | 242 | | |
249 | 243 | | |
250 | 244 | | |
251 | | - | |
| 245 | + | |
252 | 246 | | |
253 | 247 | | |
254 | 248 | | |
255 | 249 | | |
256 | 250 | | |
257 | 251 | | |
258 | 252 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 253 | + | |
263 | 254 | | |
264 | 255 | | |
265 | 256 | | |
0 commit comments