tempo.ts 0.5.4 → 0.6.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 (43) hide show
  1. package/CHANGELOG.md +427 -0
  2. package/dist/ox/Transaction.d.ts +0 -2
  3. package/dist/ox/Transaction.d.ts.map +1 -1
  4. package/dist/ox/Transaction.js +0 -8
  5. package/dist/ox/Transaction.js.map +1 -1
  6. package/dist/ox/TransactionReceipt.d.ts +155 -0
  7. package/dist/ox/TransactionReceipt.d.ts.map +1 -0
  8. package/dist/ox/TransactionReceipt.js +136 -0
  9. package/dist/ox/TransactionReceipt.js.map +1 -0
  10. package/dist/prool/Instance.d.ts +2 -2
  11. package/dist/prool/Instance.d.ts.map +1 -1
  12. package/dist/prool/Instance.js +2 -2
  13. package/dist/prool/Instance.js.map +1 -1
  14. package/dist/viem/Chain.d.ts +25 -6
  15. package/dist/viem/Chain.d.ts.map +1 -1
  16. package/dist/viem/Chain.js +4 -1
  17. package/dist/viem/Chain.js.map +1 -1
  18. package/dist/viem/Formatters.d.ts +4 -3
  19. package/dist/viem/Formatters.d.ts.map +1 -1
  20. package/dist/viem/Formatters.js +8 -5
  21. package/dist/viem/Formatters.js.map +1 -1
  22. package/dist/viem/Transaction.d.ts +7 -2
  23. package/dist/viem/Transaction.d.ts.map +1 -1
  24. package/dist/viem/Transaction.js.map +1 -1
  25. package/dist/viem/internal/account.d.ts.map +1 -1
  26. package/dist/viem/internal/account.js +0 -8
  27. package/dist/viem/internal/account.js.map +1 -1
  28. package/dist/wagmi/Connector.d.ts +6 -0
  29. package/dist/wagmi/Connector.d.ts.map +1 -1
  30. package/dist/wagmi/Connector.js +26 -2
  31. package/dist/wagmi/Connector.js.map +1 -1
  32. package/package.json +3 -2
  33. package/src/ox/Transaction.test.ts +0 -3
  34. package/src/ox/Transaction.ts +0 -14
  35. package/src/ox/TransactionReceipt.ts +190 -0
  36. package/src/ox/e2e.test.ts +145 -106
  37. package/src/prool/Instance.ts +4 -4
  38. package/src/viem/Chain.ts +4 -0
  39. package/src/viem/Formatters.ts +13 -4
  40. package/src/viem/Transaction.ts +19 -1
  41. package/src/viem/e2e.test.ts +4 -16
  42. package/src/viem/internal/account.ts +0 -12
  43. package/src/wagmi/Connector.ts +29 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,427 @@
1
+ # tempo.ts
2
+
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`82d51eb`](https://github.com/tempoxyz/tempo-ts/commit/82d51eb5dfa872b0a6b2dfdb6da78660ebb07c4e) Thanks [@jxom](https://github.com/jxom)! - Published CHANGELOG.md
8
+
9
+ ## 0.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#71](https://github.com/tempoxyz/tempo-ts/pull/71) [`95d4649`](https://github.com/tempoxyz/tempo-ts/commit/95d464995bc13d5ba46a91f9e2a6f7b1c14675e0) Thanks [@gorried](https://github.com/gorried)! - Renamed `Instance#faucet.address` to `faucet.addresses` in order to support multiple tokens.
14
+
15
+ - [#78](https://github.com/tempoxyz/tempo-ts/pull/78) [`6c20dc0`](https://github.com/tempoxyz/tempo-ts/commit/6c20dc090b21a092e90855c7244d9c9d5d22930d) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed `feePayer` from `Transaction`. Extract the `feePayer` from `TransactionReceipt` instead.
16
+
17
+ ### Patch Changes
18
+
19
+ - [`57ee208`](https://github.com/tempoxyz/tempo-ts/commit/57ee2084c40929dba587ccd5b4ed1aac4cb327b9) Thanks [@jxom](https://github.com/jxom)! - Removed sig envelope assertions on account signing.
20
+
21
+ - [#74](https://github.com/tempoxyz/tempo-ts/pull/74) [`b604600`](https://github.com/tempoxyz/tempo-ts/commit/b604600fd2c0202807175d4f669db648cb5dae95) Thanks [@gorried](https://github.com/gorried)! - Fixed formatting of `addresses` when starting prool `Instance`
22
+
23
+ - [`e82713f`](https://github.com/tempoxyz/tempo-ts/commit/e82713f192206e94a63e425307cb1566ce800092) Thanks [@jxom](https://github.com/jxom)! - Normalized `credential` before storing.
24
+
25
+ ## 0.5.4
26
+
27
+ ### Patch Changes
28
+
29
+ - [`3961295`](https://github.com/tempoxyz/tempo-ts/commit/3961295ef1079deb6b5031114614216aa69bbd57) Thanks [@jxom](https://github.com/jxom)! - Added `timeout` property to `faucet.fundSync`.
30
+
31
+ ## 0.5.3
32
+
33
+ ### Patch Changes
34
+
35
+ - [`dd6275a`](https://github.com/tempoxyz/tempo-ts/commit/dd6275a11642d2c02c1616c7360fb91aff5bfc85) Thanks [@jxom](https://github.com/jxom)! - Added `fundSync` action and `useFundSync` hook in `tempo.ts/wagmi`.
36
+
37
+ - [`fa39d52`](https://github.com/tempoxyz/tempo-ts/commit/fa39d52fd7f4d164ab7a89a6281c7b95db139fd3) Thanks [@jxom](https://github.com/jxom)! - Fixed fee token preferences when a `feePayer` is supplied to transactions.
38
+
39
+ ## 0.5.2
40
+
41
+ ### Patch Changes
42
+
43
+ - [`6b0e328`](https://github.com/tempoxyz/tempo-ts/commit/6b0e328e4bff2c6e4a701487c4b41e3780396c57) Thanks [@jxom](https://github.com/jxom)! - Added `walletNamespaceCompat` transport to `tempo.ts/viem` so local accounts can leverage `wallet_` RPC actions (`sendCalls`, etc).
44
+
45
+ - [#64](https://github.com/tempoxyz/tempo-ts/pull/64) [`3aa7cb7`](https://github.com/tempoxyz/tempo-ts/commit/3aa7cb7d4fd8a7505d0752372c229ce818c47af8) Thanks [@tmm](https://github.com/tmm)! - Added Wagmi Policy Actions/Hooks
46
+
47
+ ## 0.5.1
48
+
49
+ ### Patch Changes
50
+
51
+ - [`640df1c`](https://github.com/tempoxyz/tempo-ts/commit/640df1cd37820bf6605724d98adb520d2b8e5a33) Thanks [@jxom](https://github.com/jxom)! - Added support for \`eth_fillTransaction\`
52
+
53
+ ## 0.5.0
54
+
55
+ ### Minor Changes
56
+
57
+ - [`8bb03a5`](https://github.com/tempoxyz/tempo-ts/commit/8bb03a594238897c6aa68d87ff93442069a017cc) Thanks [@jxom](https://github.com/jxom)! - **Breaking(`tempo.ts/prool`):** Migrated to support Tempo Docker container from using a standalone Tempo binary.
58
+
59
+ ### Patch Changes
60
+
61
+ - [`8bb03a5`](https://github.com/tempoxyz/tempo-ts/commit/8bb03a594238897c6aa68d87ff93442069a017cc) Thanks [@jxom](https://github.com/jxom)! - Added `tempoTestnet` chain.
62
+
63
+ - [`8bb03a5`](https://github.com/tempoxyz/tempo-ts/commit/8bb03a594238897c6aa68d87ff93442069a017cc) Thanks [@jxom](https://github.com/jxom)! - Updated `tempoDev` chain ID.
64
+
65
+ ## 0.4.4
66
+
67
+ ### Patch Changes
68
+
69
+ - [`fd95d62`](https://github.com/tempoxyz/tempo-ts/commit/fd95d62381006f9e7bdaaee3f362977563852868) Thanks [@tmm](https://github.com/tmm)! - Fixed TSDoc using incorrect role
70
+
71
+ - [`cd5e46b`](https://github.com/tempoxyz/tempo-ts/commit/cd5e46b47d44110c7e32357b94b934f8b390cf70) Thanks [@jxom](https://github.com/jxom)! - Added ERC-5792 compatibility to Wagmi connectors.
72
+
73
+ ## 0.4.3
74
+
75
+ ### Patch Changes
76
+
77
+ - [`9b2ad01`](https://github.com/tempoxyz/tempo-ts/commit/9b2ad016687b06dbadd6bad2e90dfa1b2722c913) Thanks [@jxom](https://github.com/jxom)! - Fixed `feeToken` hoisting.
78
+
79
+ - [`626134c`](https://github.com/tempoxyz/tempo-ts/commit/626134c7a144af051daadc175c80f3727c4d445c) Thanks [@jxom](https://github.com/jxom)! - Enhanced wallet compatibility.
80
+
81
+ ## 0.4.2
82
+
83
+ ### Patch Changes
84
+
85
+ - [`e6af89f`](https://github.com/tempoxyz/tempo-ts/commit/e6af89f725633da4320d618e58d13952e758f66e) Thanks [@jxom](https://github.com/jxom)! - Tweaked Wagmi types for `feeToken`.
86
+
87
+ ## 0.4.1
88
+
89
+ ### Patch Changes
90
+
91
+ - [`b3aa00d`](https://github.com/tempoxyz/tempo-ts/commit/b3aa00dfa60ecf60b888104616002239d2b54323) Thanks [@jxom](https://github.com/jxom)! - Added `rpId` parameter to `webAuthn` connector.
92
+
93
+ ## 0.4.0
94
+
95
+ ### Minor Changes
96
+
97
+ - [#49](https://github.com/tempoxyz/tempo-ts/pull/49) [`28f1853`](https://github.com/tempoxyz/tempo-ts/commit/28f18537eda6c0e93badf0175154cc452cbd96ab) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Renamed `dex.getPriceLevel` to `dex.getTickLevel`.
98
+
99
+ ## 0.3.0
100
+
101
+ ### Minor Changes
102
+
103
+ - [`6230a60`](https://github.com/tempoxyz/tempo-ts/commit/6230a60f3bd55f6d98b682ea2b6bc34629c5386d) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Modified `fee.getUserToken` to return `null` when no user token is set.
104
+
105
+ ### Patch Changes
106
+
107
+ - [#46](https://github.com/tempoxyz/tempo-ts/pull/46) [`4bcade6`](https://github.com/tempoxyz/tempo-ts/commit/4bcade6c284cbe6ec5fa245dcc0dd3d705ed7aae) Thanks [@jxom](https://github.com/jxom)! - Pruned `package.json` before publish of unneeded properties.
108
+
109
+ - [`3ecd488`](https://github.com/tempoxyz/tempo-ts/commit/3ecd488c8c3dfe70f6c979d353df959f0081390e) Thanks [@jxom](https://github.com/jxom)! - Added `const` to `Chain.define`
110
+
111
+ - [`5aeecc2`](https://github.com/tempoxyz/tempo-ts/commit/5aeecc2512d5dbd5c06ac5067fbe11113c1103fd) Thanks [@jxom](https://github.com/jxom)! - Fixed \`Chain.define\` type.
112
+
113
+ ## 0.2.1
114
+
115
+ ### Patch Changes
116
+
117
+ - [`db8cfa1`](https://github.com/tempoxyz/tempo-ts/commit/db8cfa1ccf2fdfcd1ec329662bddebffa998e16d) Thanks [@jxom](https://github.com/jxom)! - Added `getOptions.getPublicKey` and `createOptions.getChallenge` to `webAuthn` connector.
118
+
119
+ - [`fec93f9`](https://github.com/tempoxyz/tempo-ts/commit/fec93f903a8ecbf8d196604d91a300b51a569424) Thanks [@jxom](https://github.com/jxom)! - Added `faucet.fund` action.
120
+
121
+ - [#44](https://github.com/tempoxyz/tempo-ts/pull/44) [`58a6a11`](https://github.com/tempoxyz/tempo-ts/commit/58a6a113b10412bde1ef69531153e400e0a95a94) Thanks [@jxom](https://github.com/jxom)! - Added `mintWithValidatorToken` support to `amm.mint` action.
122
+
123
+ ## 0.2.0
124
+
125
+ ### Minor Changes
126
+
127
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `reward` Actions on `tempo.ts/viem`.
128
+
129
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `dex.getOrderbook` action.
130
+
131
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added support for Native "Account Abstraction" accounts.
132
+
133
+ New account types supported:
134
+
135
+ ### WebAuthn (P256)
136
+
137
+ ```ts
138
+ import { Account, WebAuthnP256 } from "tempo.ts/viem";
139
+
140
+ const credential = await WebAuthnP256.createCredential({
141
+ name: "Example",
142
+ });
143
+ const account = Account.fromWebAuthnP256(credential);
144
+ ```
145
+
146
+ ### WebCrypto (P256)
147
+
148
+ ```ts
149
+ import { Account, WebCryptoP256 } from "tempo.ts/viem";
150
+
151
+ const keyPair = await WebCryptoP256.createKeyPair();
152
+ const account = Account.fromWebCryptoP256(keyPair);
153
+ ```
154
+
155
+ ### P256
156
+
157
+ ```ts
158
+ import { Account, P256 } from "tempo.ts/viem";
159
+
160
+ const privateKey = P256.randomPrivateKey();
161
+ const account = Account.fromP256(privateKey);
162
+ ```
163
+
164
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `dangerous_secp256k1` connector.
165
+
166
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed `amm.getPoolId`. Use `PoolId.from` from `tempo.ts/ox` instead.
167
+
168
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added Wagmi Actions & Hooks for `fee` and `token`.
169
+
170
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `WebAuthnP256`, `P256`, `WebCryptoP256` modules.
171
+
172
+ - [#43](https://github.com/tempoxyz/tempo-ts/pull/43) [`e932099`](https://github.com/tempoxyz/tempo-ts/commit/e9320992d29e26d59646251a3bccc099a002e7a2) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed `Addresses.defaultFeeToken` and `Addresses.defaultQuoteToken`.
173
+
174
+ - [`899c120`](https://github.com/tempoxyz/tempo-ts/commit/899c1201a563121bd08f08b012d84439e9d1b816) Thanks [@jxom](https://github.com/jxom)! - **Breaking:**
175
+ - Renamed `updateQuoteToken` to `prepareUpdateQuoteToken`.
176
+ - Renamed `finalizeUpdateQuoteToken` to `updateQuoteToken`.
177
+
178
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added support for WebAuthn & P256 accounts with the `Account` module.
179
+
180
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `dex.getOrders`.
181
+
182
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed `amm.getTotalSupply`. Use `amm.getPool` instead.
183
+
184
+ - [#43](https://github.com/tempoxyz/tempo-ts/pull/43) [`e932099`](https://github.com/tempoxyz/tempo-ts/commit/e9320992d29e26d59646251a3bccc099a002e7a2) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed `createTempoClient`. Construct your Client with `viem` primitives:
185
+
186
+ ```diff
187
+ -import { createTempoClient } from 'tempo.ts/viem'
188
+ +import { createClient, http } from 'viem'
189
+ +import { tempo } from 'tempo.ts/chains'
190
+
191
+ -const client = createTempoClient()
192
+ +const client = createClient({
193
+ + chain: tempo({
194
+ + feeToken: '0x20c0000000000000000000000000000000000001'
195
+ + }),
196
+ + transport: http(),
197
+ +})
198
+ ```
199
+
200
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `tempoDevnet` chain.
201
+
202
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `reward` actions + hooks to `tempo.ts/wagmi`
203
+
204
+ - [`210b95c`](https://github.com/tempoxyz/tempo-ts/commit/210b95c6ca7a043a7684b7ff869cdf32c7afa0ee) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed `permit` from `Actions.token`
205
+
206
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `tempo.ts/wagmi` entrypoint and `webAuthn` connector.
207
+
208
+ - [#43](https://github.com/tempoxyz/tempo-ts/pull/43) [`e932099`](https://github.com/tempoxyz/tempo-ts/commit/e9320992d29e26d59646251a3bccc099a002e7a2) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** `feeToken` is now required on all transaction actions. You must either pass `feeToken` explicitly, or hoist a
209
+ `feeToken` on the Client:
210
+
211
+ ### Non-hoisted Fee Token
212
+
213
+ `feeToken` will need to be set per-action.
214
+
215
+ ```ts
216
+ // fee token NOT set on client
217
+ const client2 = createClient({
218
+ chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
219
+ transport: http(),
220
+ });
221
+
222
+ // ⚠️ `feeToken` needs to be set per-action
223
+ await sendTransaction(client2, {
224
+ feeToken: "0x20c...0001",
225
+ to: "0x0000000000000000000000000000000000000000",
226
+ });
227
+ ```
228
+
229
+ ### Hoisted Fee Token
230
+
231
+ Pass `feeToken` to the Client to apply it to all transactions.
232
+
233
+ ```ts
234
+ const client1 = createClient({
235
+ chain: tempo({ feeToken: "0x20c...001" }), // note: pass `null` to opt-in to protocol preferences.
236
+ transport: http(),
237
+ });
238
+
239
+ // ✅ no fee token needed, hoisted on client
240
+ await sendTransaction(client1, {
241
+ to: "0x0000000000000000000000000000000000000000",
242
+ });
243
+ ```
244
+
245
+ ### Patch Changes
246
+
247
+ - [#40](https://github.com/tempoxyz/tempo-ts/pull/40) [`619b943`](https://github.com/tempoxyz/tempo-ts/commit/619b9437bc78a7ef7c7b2344fcc5f0e827a6238d) Thanks [@gorried](https://github.com/gorried)! - **Breaking:** Updated latest chain to Andantino.
248
+
249
+ - [`a90d48c`](https://github.com/tempoxyz/tempo-ts/commit/a90d48c049c48601ae4aca78334b13b3ebb2ea85) Thanks [@jxom](https://github.com/jxom)! - Added `token.getRoleAdmin`
250
+
251
+ - [#42](https://github.com/tempoxyz/tempo-ts/pull/42) [`74ed4a7`](https://github.com/tempoxyz/tempo-ts/commit/74ed4a74cc43febca597f681d0b595b242f8d619) Thanks [@gorried](https://github.com/gorried)! - Updated `chain.id` for Andantino.
252
+
253
+ ## 0.1.5
254
+
255
+ ### Patch Changes
256
+
257
+ - [`09eb31f`](https://github.com/tempoxyz/tempo-ts/commit/09eb31fa3050bff0f9dc9b459656c2ce4b2297f9) Thanks [@jxom](https://github.com/jxom)! - Added `log` option to `tempo` instance.
258
+
259
+ ## 0.1.4
260
+
261
+ ### Patch Changes
262
+
263
+ - [`c278bf5`](https://github.com/tempoxyz/tempo-ts/commit/c278bf521ffb9e07661f30fe0d2f0bc05a033091) Thanks [@tmm](https://github.com/tmm)! - Exported decorator type
264
+
265
+ ## 0.1.3
266
+
267
+ ### Patch Changes
268
+
269
+ - [`92312c6`](https://github.com/tempoxyz/tempo-ts/commit/92312c6a4961596de107bf75c7525e8b6c4f781f) Thanks [@jxom](https://github.com/jxom)! - Fixed dist output.
270
+
271
+ ## 0.1.2
272
+
273
+ ### Patch Changes
274
+
275
+ - [`287924c`](https://github.com/tempoxyz/tempo-ts/commit/287924c21ae250be0fe3d73e5f928e0f9cb1cd5b) Thanks [@jxom](https://github.com/jxom)! - Fixed `token.getMetadata` against the quote token.
276
+
277
+ - [`5c47beb`](https://github.com/tempoxyz/tempo-ts/commit/5c47bebebbc2efddb0c8cf0702afcba450c7fc80) Thanks [@jxom](https://github.com/jxom)! - `tempo.ts/prool`: Fixed `blockTime` parameter type.
278
+
279
+ - [`287924c`](https://github.com/tempoxyz/tempo-ts/commit/287924c21ae250be0fe3d73e5f928e0f9cb1cd5b) Thanks [@jxom](https://github.com/jxom)! - Added `TokenId.from` to instantiate a token id from an address or number.
280
+
281
+ ## 0.1.1
282
+
283
+ ### Patch Changes
284
+
285
+ - [`dd4cd43`](https://github.com/tempoxyz/tempo-ts/commit/dd4cd43fb10ac1a8d766751b1e6f958b62befa07) Thanks [@jxom](https://github.com/jxom)! - Fixed `token.getMetadata` for the default quote token.
286
+
287
+ ## 0.1.0
288
+
289
+ ### Minor Changes
290
+
291
+ - [#4](https://github.com/tempoxyz/tempo-ts/pull/4) [`528aa00`](https://github.com/tempoxyz/tempo-ts/commit/528aa0019876bf166724378de877a7acfd4a3013) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed support for `type: 'feeToken'` / `type: '0x77'` transactions. Use `type: 'aa'` / `type: '0x76'` transactions instead.
292
+
293
+ - [#4](https://github.com/tempoxyz/tempo-ts/pull/4) [`528aa00`](https://github.com/tempoxyz/tempo-ts/commit/528aa0019876bf166724378de877a7acfd4a3013) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Renamed `usdAddress` and `usdId`.
294
+
295
+ ```diff
296
+ - import { usdAddress, usdId } from 'tempo.ts/viem'
297
+ + import { Addresses, TokenId } from 'tempo.ts/viem'
298
+
299
+ - usdAddress
300
+ + Addresses.defaultFeeToken
301
+
302
+ - usdId
303
+ + TokenId.defaultFeeToken
304
+ ```
305
+
306
+ - [#4](https://github.com/tempoxyz/tempo-ts/pull/4) [`528aa00`](https://github.com/tempoxyz/tempo-ts/commit/528aa0019876bf166724378de877a7acfd4a3013) Thanks [@jxom](https://github.com/jxom)! - `tempo.ts/ox`: Added `TransactionEnvelopeAA` and `SignatureEnvelope`.
307
+
308
+ - [#4](https://github.com/tempoxyz/tempo-ts/pull/4) [`528aa00`](https://github.com/tempoxyz/tempo-ts/commit/528aa0019876bf166724378de877a7acfd4a3013) Thanks [@jxom](https://github.com/jxom)! - Added **Stablecoin Exchange** actions:
309
+ - `dex.buy`
310
+ - `dex.buySync`
311
+ - `dex.cancel`
312
+ - `dex.cancelSync`
313
+ - `dex.createPair`
314
+ - `dex.createPairSync`
315
+ - `dex.getBalance`
316
+ - `dex.getBuyQuote`
317
+ - `dex.getOrder`
318
+ - `dex.getPriceLevel`
319
+ - `dex.getSellQuote`
320
+ - `dex.place`
321
+ - `dex.placeSync`
322
+ - `dex.placeFlip`
323
+ - `dex.placeFlipSync`
324
+ - `dex.sell`
325
+ - `dex.sellSync`
326
+ - `dex.withdraw`
327
+ - `dex.withdrawSync`
328
+ - `dex.watchFlipOrderPlaced`
329
+ - `dex.watchOrderCancelled`
330
+ - `dex.watchOrderFilled`
331
+ - `dex.watchOrderPlaced`
332
+
333
+ - [#4](https://github.com/tempoxyz/tempo-ts/pull/4) [`528aa00`](https://github.com/tempoxyz/tempo-ts/commit/528aa0019876bf166724378de877a7acfd4a3013) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed support for deprecated `tempoLento` chain. Update to use `tempoAndante` instead.
334
+
335
+ - [#4](https://github.com/tempoxyz/tempo-ts/pull/4) [`528aa00`](https://github.com/tempoxyz/tempo-ts/commit/528aa0019876bf166724378de877a7acfd4a3013) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Refactored structure to use PascalCased namespaces to future-proof against naming conflicts, excessive imports, and future versions of Viem.
336
+ - Renamed `actions` import to `Actions`.
337
+
338
+ ```diff
339
+ - import { actions } from 'tempo.ts/viem'
340
+ + import { Actions } from 'tempo.ts/viem'
341
+ ```
342
+
343
+ - Renamed `parseTransaction` to `deserialize`.
344
+
345
+ ```diff
346
+ - import { parseTransaction } from 'tempo.ts/viem'
347
+ + import { Transaction } from 'tempo.ts/viem'
348
+
349
+ - parseTransaction(serialized)
350
+ + Transaction.deserialize(serialized)
351
+ ```
352
+
353
+ - Renamed `serializeTransaction` to `serialize`.
354
+
355
+ ```diff
356
+ - import { serializeTransaction } from 'tempo.ts/viem'
357
+ + import { Transaction } from 'tempo.ts/viem'
358
+
359
+ - serializeTransaction(transaction)
360
+ + Transaction.serialize(transaction)
361
+ ```
362
+
363
+ - Placed all `*Abi` exports in the `Abis` namespace.
364
+
365
+ ```diff
366
+ - import { tip20Abi } from 'tempo.ts/viem'
367
+ + import { Abis } from 'tempo.ts/viem'
368
+
369
+ - tip20Abi
370
+ + Abis.tip20
371
+ ```
372
+
373
+ - Placed all `*Address` exports in the `Addresses` namespace.
374
+
375
+ ```diff
376
+ - import { feeManagerAddress } from 'tempo.ts/viem'
377
+ + import { Addresses } from 'tempo.ts/viem'
378
+
379
+ - feeManagerAddress
380
+ + Addresses.feeManager
381
+ ```
382
+
383
+ ### Patch Changes
384
+
385
+ - [#4](https://github.com/tempoxyz/tempo-ts/pull/4) [`528aa00`](https://github.com/tempoxyz/tempo-ts/commit/528aa0019876bf166724378de877a7acfd4a3013) Thanks [@jxom](https://github.com/jxom)! - Added `watchUpdateQuoteToken` Action.
386
+
387
+ - [#4](https://github.com/tempoxyz/tempo-ts/pull/4) [`528aa00`](https://github.com/tempoxyz/tempo-ts/commit/528aa0019876bf166724378de877a7acfd4a3013) Thanks [@jxom](https://github.com/jxom)! - Added `token.updateQuoteToken` and `token.finalizeUpdateQuoteToken` Actions.
388
+
389
+ ## 0.0.6
390
+
391
+ ### Patch Changes
392
+
393
+ - [`b04eb82`](https://github.com/tempoxyz/tempo-ts/commit/b04eb8278b2b88636311b1821c2238024af89f84) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** `transferPolicy` renamed to `transferPolicyId` on `token.getMetadata` return value. It also now returns a `bigint` instead of a `string`.
394
+
395
+ ## 0.0.5
396
+
397
+ ### Patch Changes
398
+
399
+ - [`7cd6a18`](https://github.com/tempoxyz/tempo-ts/commit/7cd6a18a52f3c2c8a7b6277935cdcce6ae14511d) Thanks [@jxom](https://github.com/jxom)! - Set `*FeePerGas` fields to undefined for gas estimation.
400
+
401
+ ## 0.0.4
402
+
403
+ ### Patch Changes
404
+
405
+ - [`7caa3da`](https://github.com/tempoxyz/tempo-ts/commit/7caa3daf124150d254dcce09f26a8ced0bb948a6) Thanks [@jxom](https://github.com/jxom)! - Added support for `throwOnReceiptRevert` on `*Sync` actions.
406
+
407
+ ## 0.0.3
408
+
409
+ ### Patch Changes
410
+
411
+ - [`c74482a`](https://github.com/tempoxyz/tempo-ts/commit/c74482ace559efeaff4c49e9bcd45cdd3cf37300) Thanks [@jxom](https://github.com/jxom)! - Generated ABIs from Tempo Node precompiles.
412
+
413
+ - [`739cb02`](https://github.com/tempoxyz/tempo-ts/commit/739cb02551eb758ad556edc58c1097d78e5b6fa6) Thanks [@jxom](https://github.com/jxom)! - Narrowed `TokenRole` type.
414
+
415
+ - [#10](https://github.com/tempoxyz/tempo-ts/pull/10) [`fd0594d`](https://github.com/tempoxyz/tempo-ts/commit/fd0594df47c8fd943d7d2b95b391af53dfe8f96a) Thanks [@jxom](https://github.com/jxom)! - Added `actions.token.hasRole`.
416
+
417
+ ## 0.0.2
418
+
419
+ ### Patch Changes
420
+
421
+ - [#7](https://github.com/tempoxyz/tempo-ts/pull/7) [`f955968`](https://github.com/tempoxyz/tempo-ts/commit/f955968212042726fa44b0c78281b3ca502c82a1) Thanks [@tmm](https://github.com/tmm)! - Exported addresses in Viem entrypoint
422
+
423
+ ## 0.0.1
424
+
425
+ ### Patch Changes
426
+
427
+ - [`8e28099`](https://github.com/tempoxyz/tempo-ts/commit/8e280992b07d6cb7a096f60113cce3815ae24cb6) Thanks [@jxom](https://github.com/jxom)! - Initial release.
@@ -25,8 +25,6 @@ export type AA<pending extends boolean = false, bigintType = bigint, numberType
25
25
  authorizationList?: Authorization.ListSigned<bigintType, numberType> | undefined;
26
26
  /** Array of calls to execute. */
27
27
  calls: readonly Call<bigintType>[];
28
- /** Fee payer address. */
29
- feePayer?: Address.Address | undefined;
30
28
  /** Fee payer signature. */
31
29
  feePayerSignature?: {
32
30
  /** ECDSA signature r. */
@@ -1 +1 @@
1
- {"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../src/ox/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,KAAK,OAAO,MAAM,YAAY,CAAA;AAC1C,OAAO,KAAK,KAAK,aAAa,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,KAAK,MAAM,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAA;AAG7B,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAA;AAGtD;;GAEG;AACH,MAAM,MAAM,WAAW,CACrB,OAAO,SAAS,OAAO,GA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,GAAG,KAAK,EAE/B,WAAW,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI,EAC9C,QAAQ,GAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAM,GACtC,WAAW,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,CAkChE;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,KAAK,OAAO,CAAC,OAAO,SAAS,OAAO,GAAG,KAAK,IAAI;QAC9C,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;IAED,KAAK,SAAS,GAAG,cAAc,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,eAAe,CAAA;CAC3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,KAAK,CAAC,OAAO,SAAS,OAAO,GAAG,KAAK,EACnD,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,EACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAChC,GAAG,CAAC,OAAO,CAAC,CA8Bd;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,KAAK,OAAO,CAAC,OAAO,SAAS,OAAO,GAAG,KAAK,IAAI;QAC9C,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;IAED,KAAK,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,eAAe,CAAA;CACzE"}
@@ -1,9 +1,7 @@
1
1
  import * as Hex from 'ox/Hex';
2
- import * as Secp256k1 from 'ox/Secp256k1';
3
2
  import * as Signature from 'ox/Signature';
4
3
  import * as ox_Transaction from 'ox/Transaction';
5
4
  import * as SignatureEnvelope from './SignatureEnvelope.js';
6
- import * as TransactionEnvelopeAA from './TransactionEnvelopeAA.js';
7
5
  /** Type to RPC Type mapping. */
8
6
  export const toRpcType = {
9
7
  ...ox_Transaction.toRpcType,
@@ -83,11 +81,6 @@ export function fromRpc(transaction, _options = {}) {
83
81
  if (transaction.feePayerSignature) {
84
82
  transaction_.feePayerSignature = Signature.fromRpc(transaction.feePayerSignature);
85
83
  transaction_.feePayerSignature.v = Signature.yParityToV(transaction_.feePayerSignature.yParity);
86
- // TODO: remove once `feePayer` returned on `eth_getTxBy*`.
87
- transaction_.feePayer = Secp256k1.recoverAddress({
88
- payload: TransactionEnvelopeAA.getFeePayerSignPayload(transaction_, { sender: transaction.from }),
89
- signature: transaction_.feePayerSignature,
90
- });
91
84
  }
92
85
  return transaction_;
93
86
  }
@@ -150,7 +143,6 @@ export function toRpc(transaction, _options) {
150
143
  if (transaction.feePayerSignature) {
151
144
  rpc.feePayerSignature = Signature.toRpc(transaction.feePayerSignature);
152
145
  rpc.feePayerSignature.v = Hex.fromNumber(Signature.yParityToV(transaction.feePayerSignature?.yParity));
153
- rpc.feePayer = transaction.feePayer;
154
146
  }
155
147
  if (transaction.signature)
156
148
  rpc.signature = SignatureEnvelope.toRpc(transaction.signature);
@@ -1 +1 @@
1
- {"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../src/ox/Transaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAA;AAC7B,OAAO,KAAK,SAAS,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAA;AAEhD,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAE3D,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAA;AAkGnE,gCAAgC;AAChC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,GAAG,cAAc,CAAC,SAAS;IAC3B,EAAE,EAAE,MAAM;CACF,CAAA;AAOV,gCAAgC;AAChC,MAAM,CAAC,MA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,CACP;QAAC,GAAG,CAAC,iBAAyB,CAAC,CAAC,GAAG,GAAG,CAAC,UAAU,CAChD,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAC7D,CAAA;IACH,CAAC;IACD,IAAI,WAAW,CAAC,SAAS;QACvB,GAAG,CAAC,SAAS,GAAG,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;IAChE,IAAI,OAAO,WAAW,CAAC,UAAU,KAAK,QAAQ;QAC5C,GAAG,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;IACzD,IAAI,OAAO,WAAW,CAAC,WAAW,KAAK,QAAQ;QAC7C,GAAG,CAAC,WAAW,GAAG,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;IAE3D,OAAO,GAAmB,CAAA;AAC5B,CAAC"}
@@ -0,0 +1,155 @@
1
+ import type * as Address from 'ox/Address';
2
+ import type * as Hex from 'ox/Hex';
3
+ import * as ox_TransactionReceipt from 'ox/TransactionReceipt';
4
+ import type { Compute } from '../internal/types.js';
5
+ export type TransactionReceipt<status = ox_TransactionReceipt.Status, type = ox_TransactionReceipt.Type, bigintType = bigint, numberType = number> = Compute<ox_TransactionReceipt.TransactionReceipt<status, type, bigintType, numberType> & {
6
+ /** Address of the fee payer. */
7
+ feePayer?: Address.Address | undefined;
8
+ /** Address of the fee token. */
9
+ feeToken?: Address.Address | undefined;
10
+ }>;
11
+ export type Rpc = TransactionReceipt<ox_TransactionReceipt.RpcStatus, ox_TransactionReceipt.RpcType, Hex.Hex, Hex.Hex>;
12
+ export type Type = 'aa' | ox_TransactionReceipt.Type;
13
+ export type RpcType = '0x76' | ox_TransactionReceipt.RpcType;
14
+ export type Status = ox_TransactionReceipt.Status;
15
+ export type RpcStatus = ox_TransactionReceipt.RpcStatus;
16
+ /** RPC type to type mapping. */
17
+ export declare const fromRpcType: {
18
+ readonly '0x76': "aa";
19
+ readonly '0x0': "legacy";
20
+ readonly '0x1': "eip2930";
21
+ readonly '0x2': "eip1559";
22
+ readonly '0x3': "eip4844";
23
+ readonly '0x4': "eip7702";
24
+ };
25
+ /** Type to RPC type mapping. */
26
+ export declare const toRpcType: {
27
+ readonly aa: "0x76";
28
+ readonly legacy: "0x0";
29
+ readonly eip2930: "0x1";
30
+ readonly eip1559: "0x2";
31
+ readonly eip4844: "0x3";
32
+ readonly eip7702: "0x4";
33
+ };
34
+ /**
35
+ * Converts an RPC receipt to a TransactionReceipt.
36
+ *
37
+ * @example
38
+ * ```ts twoslash
39
+ * import { TransactionReceipt } from 'ox/tempo'
40
+ *
41
+ * const receipt = TransactionReceipt.fromRpc({
42
+ * blobGasPrice: '0x42069',
43
+ * blobGasUsed: '0x1337',
44
+ * blockHash:
45
+ * '0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b',
46
+ * blockNumber: '0x12f296f',
47
+ * contractAddress: null,
48
+ * cumulativeGasUsed: '0x82515',
49
+ * effectiveGasPrice: '0x21c2f6c09',
50
+ * feePayer: '0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6',
51
+ * feeToken: '0x20c0000000000000000000000000000000000001',
52
+ * from: '0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6',
53
+ * gasUsed: '0x2abba',
54
+ * logs: [],
55
+ * logsBloom:
56
+ * '0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000',
57
+ * status: '0x1',
58
+ * to: '0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad',
59
+ * transactionHash:
60
+ * '0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0',
61
+ * transactionIndex: '0x2',
62
+ * type: '0x2',
63
+ * })
64
+ * // @log: {
65
+ * // @log: blobGasPrice: 270441n,
66
+ * // @log: blobGasUsed: 4919n,
67
+ * // @log: blockHash: "0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b",
68
+ * // @log: blockNumber: 19868015n,
69
+ * // @log: contractAddress: null,
70
+ * // @log: cumulativeGasUsed: 533781n,
71
+ * // @log: effectiveGasPrice: 9062804489n,
72
+ * // @log: feePayer: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
73
+ * // @log: feeToken: "0x20c0000000000000000000000000000000000001",
74
+ * // @log: from: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
75
+ * // @log: gasUsed: 175034n,
76
+ * // @log: logs: [],
77
+ * // @log: logsBloom: "0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000",
78
+ * // @log: root: undefined,
79
+ * // @log: status: "success",
80
+ * // @log: to: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
81
+ * // @log: transactionHash: "0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0",
82
+ * // @log: transactionIndex: 2,
83
+ * // @log: type: "eip1559",
84
+ * // @log: }
85
+ * ```
86
+ *
87
+ * @param receipt - The RPC receipt to convert.
88
+ * @returns A TransactionReceipt.
89
+ */
90
+ export declare function fromRpc<const receipt extends Rpc | null>(receipt: receipt | Rpc | null): receipt extends Rpc ? TransactionReceipt : null;
91
+ export declare namespace fromRpc {
92
+ type ErrorType = ox_TransactionReceipt.fromRpc.ErrorType;
93
+ }
94
+ /**
95
+ * Converts a TransactionReceipt to an RPC receipt.
96
+ *
97
+ * @example
98
+ * ```ts twoslash
99
+ * import { TransactionReceipt } from 'ox/tempo'
100
+ *
101
+ * const receipt = TransactionReceipt.toRpc({
102
+ * blobGasPrice: 270441n,
103
+ * blobGasUsed: 4919n,
104
+ * blockHash:
105
+ * '0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b',
106
+ * blockNumber: 19868015n,
107
+ * contractAddress: null,
108
+ * cumulativeGasUsed: 533781n,
109
+ * effectiveGasPrice: 9062804489n,
110
+ * feePayer: '0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6',
111
+ * feeToken: '0x20c0000000000000000000000000000000000001',
112
+ * from: '0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6',
113
+ * gasUsed: 175034n,
114
+ * logs: [],
115
+ * logsBloom:
116
+ * '0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000',
117
+ * root: undefined,
118
+ * status: 'success',
119
+ * to: '0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad',
120
+ * transactionHash:
121
+ * '0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0',
122
+ * transactionIndex: 2,
123
+ * type: 'eip1559',
124
+ * })
125
+ * // @log: {
126
+ * // @log: blobGasPrice: "0x042069",
127
+ * // @log: blobGasUsed: "0x1337",
128
+ * // @log: blockHash: "0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b",
129
+ * // @log: blockNumber: "0x012f296f",
130
+ * // @log: contractAddress: null,
131
+ * // @log: cumulativeGasUsed: "0x082515",
132
+ * // @log: effectiveGasPrice: "0x021c2f6c09",
133
+ * // @log: feePayer: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
134
+ * // @log: feeToken: "0x20c0000000000000000000000000000000000001",
135
+ * // @log: from: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
136
+ * // @log: gasUsed: "0x02abba",
137
+ * // @log: logs: [],
138
+ * // @log: logsBloom: "0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000",
139
+ * // @log: root: undefined,
140
+ * // @log: status: "0x1",
141
+ * // @log: to: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
142
+ * // @log: transactionHash: "0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0",
143
+ * // @log: transactionIndex: "0x02",
144
+ * // @log: type: "eip1559",
145
+ * // @log: }
146
+ * ```
147
+ *
148
+ * @param receipt - The receipt to convert.
149
+ * @returns An RPC receipt.
150
+ */
151
+ export declare function toRpc(receipt: TransactionReceipt): Rpc;
152
+ export declare namespace toRpc {
153
+ type ErrorType = ox_TransactionReceipt.toRpc.ErrorType;
154
+ }
155
+ //# sourceMappingURL=TransactionReceipt.d.ts.map