Skip to content

Commit 6aa60cf

Browse files
committed
tests: up snaps
1 parent 8f665cd commit 6aa60cf

10 files changed

Lines changed: 67 additions & 51 deletions

File tree

src/actions/public/getTransactionReceipt.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test('gets transaction receipt', async () => {
4141
"address": "0xf7134ce138832c1456f2a91d64621ee90c2bddea",
4242
"blockHash": "0x019d374731477005b8d3e3236aca44d11ef53fc9eb0ab0c9e11f942636b04b1b",
4343
"blockNumber": 22263622n,
44-
"blockTimestamp": "0x67fc55cf",
44+
"blockTimestamp": 1744590287n,
4545
"data": "0x",
4646
"logIndex": 0,
4747
"removed": false,
@@ -123,7 +123,7 @@ test('chain w/ custom block type', async () => {
123123
"address": "0x000000000000000000000000000000000000800a",
124124
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
125125
"blockNumber": 16628100n,
126-
"blockTimestamp": "0x652ec6f8",
126+
"blockTimestamp": 1697564408n,
127127
"data": "0x00000000000000000000000000000000000000000000000000017b3627a0a300",
128128
"l1BatchNumber": 273767n,
129129
"logIndex": 0,
@@ -142,7 +142,7 @@ test('chain w/ custom block type', async () => {
142142
"address": "0x000000000000000000000000000000000000800a",
143143
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
144144
"blockNumber": 16628100n,
145-
"blockTimestamp": "0x652ec6f8",
145+
"blockTimestamp": 1697564408n,
146146
"data": "0x00000000000000000000000000000000000000000000000000013949fc5ebec8",
147147
"l1BatchNumber": 273767n,
148148
"logIndex": 1,
@@ -161,7 +161,7 @@ test('chain w/ custom block type', async () => {
161161
"address": "0x54de43b6ba21a5553697a2b78338e046dd7e0278",
162162
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
163163
"blockNumber": 16628100n,
164-
"blockTimestamp": "0x652ec6f8",
164+
"blockTimestamp": 1697564408n,
165165
"data": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000",
166166
"l1BatchNumber": 273767n,
167167
"logIndex": 2,
@@ -180,7 +180,7 @@ test('chain w/ custom block type', async () => {
180180
"address": "0x000000000000000000000000000000000000800a",
181181
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
182182
"blockNumber": 16628100n,
183-
"blockTimestamp": "0x652ec6f8",
183+
"blockTimestamp": 1697564408n,
184184
"data": "0x0000000000000000000000000000000000000000000000000001228d38402ec8",
185185
"l1BatchNumber": 273767n,
186186
"logIndex": 3,
@@ -199,7 +199,7 @@ test('chain w/ custom block type', async () => {
199199
"address": "0x000000000000000000000000000000000000800a",
200200
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
201201
"blockNumber": 16628100n,
202-
"blockTimestamp": "0x652ec6f8",
202+
"blockTimestamp": 1697564408n,
203203
"data": "0x0000000000000000000000000000000000000000000000000001228d38402ec8",
204204
"l1BatchNumber": 273767n,
205205
"logIndex": 4,
@@ -218,7 +218,7 @@ test('chain w/ custom block type', async () => {
218218
"address": "0x9923573104957bf457a3c4df0e21c8b389dd43df",
219219
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
220220
"blockNumber": 16628100n,
221-
"blockTimestamp": "0x652ec6f8",
221+
"blockTimestamp": 1697564408n,
222222
"data": "0x0000000000000000000000000000000000000000000000000000e523da9a7ec8",
223223
"l1BatchNumber": 273767n,
224224
"logIndex": 5,
@@ -235,7 +235,7 @@ test('chain w/ custom block type', async () => {
235235
"address": "0x042b8289c97896529ec2fe49ba1a8b9c956a86cc",
236236
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
237237
"blockNumber": 16628100n,
238-
"blockTimestamp": "0x652ec6f8",
238+
"blockTimestamp": 1697564408n,
239239
"data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002200010000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000000000000000",
240240
"l1BatchNumber": 273767n,
241241
"logIndex": 6,
@@ -252,7 +252,7 @@ test('chain w/ custom block type', async () => {
252252
"address": "0xcb7ad38d45ab5bcf5880b0fa851263c29582c18a",
253253
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
254254
"blockNumber": 16628100n,
255-
"blockTimestamp": "0x652ec6f8",
255+
"blockTimestamp": 1697564408n,
256256
"data": "0x000000000000000000000000000000000000000000000000000000000000009e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001400000000000000000000000054de43b6ba21a5553697a2b78338e046dd7e027800000000000000000000000000000000000000000000000000003d695da5b000",
257257
"l1BatchNumber": 273767n,
258258
"logIndex": 7,
@@ -269,7 +269,7 @@ test('chain w/ custom block type', async () => {
269269
"address": "0x042b8289c97896529ec2fe49ba1a8b9c956a86cc",
270270
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
271271
"blockNumber": 16628100n,
272-
"blockTimestamp": "0x652ec6f8",
272+
"blockTimestamp": 1697564408n,
273273
"data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000d400000000000022d300a554de43b6ba21a5553697a2b78338e046dd7e0278009e921b486cc33580af7d8208df1619383470d5dcbe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000014e665ced18b0998ede7236da308e311e9261dc984000000000000000000000000000000000000000000000000",
274274
"l1BatchNumber": 273767n,
275275
"logIndex": 8,
@@ -286,7 +286,7 @@ test('chain w/ custom block type', async () => {
286286
"address": "0x54de43b6ba21a5553697a2b78338e046dd7e0278",
287287
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
288288
"blockNumber": 16628100n,
289-
"blockTimestamp": "0x652ec6f8",
289+
"blockTimestamp": 1697564408n,
290290
"data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000014e665ced18b0998ede7236da308e311e9261dc984000000000000000000000000",
291291
"l1BatchNumber": 273767n,
292292
"logIndex": 9,
@@ -305,7 +305,7 @@ test('chain w/ custom block type', async () => {
305305
"address": "0x000000000000000000000000000000000000800a",
306306
"blockHash": "0xc621ee95e2d4ab65ecf499805dba770b20297c64029816b18c618fc49fe3d748",
307307
"blockNumber": 16628100n,
308-
"blockTimestamp": "0x652ec6f8",
308+
"blockTimestamp": 1697564408n,
309309
"data": "0x000000000000000000000000000000000000000000000000000115d39774af00",
310310
"l1BatchNumber": 273767n,
311311
"logIndex": 10,

src/actions/public/simulateBlocks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test('default', async () => {
8080
"address": "0x5a443704dd4b594b382c22a083e2bd3090a6fef3",
8181
"blockHash": "0x0852be75a1265a366192f3971d57dbaf69ba34b180dade2f2cf547006dc96ea6",
8282
"blockNumber": 22263623n,
83-
"blockTimestamp": "0x67fc55db",
83+
"blockTimestamp": 1744590299n,
8484
"data": "0x",
8585
"logIndex": 0,
8686
"removed": false,

src/op-stack/formatters.test.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ describe('transaction receipt', async () => {
609609
"effectiveGasPrice": 58n,
610610
"from": "0x24476ac81915c512b0e13207aa917923fba4a16a",
611611
"gasUsed": 228719n,
612+
"l1BaseFeeScalar": "0xa6fe0",
612613
"l1Fee": 44700351261503n,
613614
"l1FeeScalar": 0.684,
614615
"l1GasPrice": 15694378178n,
@@ -618,7 +619,7 @@ describe('transaction receipt', async () => {
618619
"address": "0xdd69db25f6d620a7bad3023c5d32761d353d3de9",
619620
"blockHash": "0x7f9f15ca4806d8f8deb2c73e82a2a153a2de668118e14e27a96cd672936449f0",
620621
"blockNumber": 106812538n,
621-
"blockTimestamp": "0x64af82ad",
622+
"blockTimestamp": 1689223853n,
622623
"data": "0x000000000000000000000000000000000000000000000000008e1bc9bf040000",
623624
"logIndex": 19,
624625
"removed": false,
@@ -634,7 +635,7 @@ describe('transaction receipt', async () => {
634635
"address": "0x81e792e5a9003cc1c8bf5569a00f34b65d75b017",
635636
"blockHash": "0x7f9f15ca4806d8f8deb2c73e82a2a153a2de668118e14e27a96cd672936449f0",
636637
"blockNumber": 106812538n,
637-
"blockTimestamp": "0x64af82ad",
638+
"blockTimestamp": 1689223853n,
638639
"data": "0x000000000000000000000000000000000000000000000000000031a1add99f8b",
639640
"logIndex": 20,
640641
"removed": false,
@@ -648,7 +649,7 @@ describe('transaction receipt', async () => {
648649
"address": "0x4d73adb72bc3dd368966edd0f0b2148401a178e2",
649650
"blockHash": "0x7f9f15ca4806d8f8deb2c73e82a2a153a2de668118e14e27a96cd672936449f0",
650651
"blockNumber": 106812538n,
651-
"blockTimestamp": "0x64af82ad",
652+
"blockTimestamp": 1689223853n,
652653
"data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002200010000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000000000000000",
653654
"logIndex": 21,
654655
"removed": false,
@@ -662,7 +663,7 @@ describe('transaction receipt', async () => {
662663
"address": "0xa0cc33dd6f4819d473226257792afe230ec3c67f",
663664
"blockHash": "0x7f9f15ca4806d8f8deb2c73e82a2a153a2de668118e14e27a96cd672936449f0",
664665
"blockNumber": 106812538n,
665-
"blockTimestamp": "0x64af82ad",
666+
"blockTimestamp": 1689223853n,
666667
"data": "0x000000000000000000000000000000000000000000000000000000000000009a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000014000000000000000000000000dd69db25f6d620a7bad3023c5d32761d353d3de90000000000000000000000000000000000000000000000000000000124c9d6c5",
667668
"logIndex": 22,
668669
"removed": false,
@@ -676,7 +677,7 @@ describe('transaction receipt', async () => {
676677
"address": "0x4d73adb72bc3dd368966edd0f0b2148401a178e2",
677678
"blockHash": "0x7f9f15ca4806d8f8deb2c73e82a2a153a2de668118e14e27a96cd672936449f0",
678679
"blockNumber": 106812538n,
679-
"blockTimestamp": "0x64af82ad",
680+
"blockTimestamp": 1689223853n,
680681
"data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000d40000000000049d1a006fdd69db25f6d620a7bad3023c5d32761d353d3de9009a4f7a67464b5976d7547c860109e4432d50afb38e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000008e1bc9bf040000000000000000000000000000000000000000000000000000000000000000001424476ac81915c512b0e13207aa917923fba4a16a000000000000000000000000000000000000000000000000",
681682
"logIndex": 23,
682683
"removed": false,
@@ -690,7 +691,7 @@ describe('transaction receipt', async () => {
690691
"address": "0xdd69db25f6d620a7bad3023c5d32761d353d3de9",
691692
"blockHash": "0x7f9f15ca4806d8f8deb2c73e82a2a153a2de668118e14e27a96cd672936449f0",
692693
"blockNumber": 106812538n,
693-
"blockTimestamp": "0x64af82ad",
694+
"blockTimestamp": 1689223853n,
694695
"data": "0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000008e1bc9bf040000000000000000000000000000000000000000000000000000000000000000001424476ac81915c512b0e13207aa917923fba4a16a000000000000000000000000",
695696
"logIndex": 24,
696697
"removed": false,

0 commit comments

Comments
 (0)