@@ -11,6 +11,7 @@ import { FinderInterface } from "@uma/core/contracts/data-verification-mechanism
11
11
12
12
import { ZkStack_Adapter } from "../../../../contracts/chain-adapters/ZkStack_Adapter.sol " ;
13
13
import { ZkStack_CustomGasToken_Adapter, FunderInterface } from "../../../../contracts/chain-adapters/ZkStack_CustomGasToken_Adapter.sol " ;
14
+ import { AdapterInterface } from "../../../../contracts/chain-adapters/interfaces/AdapterInterface.sol " ;
14
15
import { WETH9Interface } from "../../../../contracts/external/interfaces/WETH9Interface.sol " ;
15
16
import { WETH9 } from "../../../../contracts/external/WETH9.sol " ;
16
17
import { MockBridgeHub, BridgeHubInterface } from "../../../../contracts/test/MockZkStackBridgeHub.sol " ;
@@ -197,7 +198,7 @@ contract ZkStackAdapterTest is Test {
197
198
)
198
199
);
199
200
vm.expectEmit (address (zksAdapter));
200
- emit ZkStack_Adapter. ZkStackMessageRelayed (expectedTxnHash );
201
+ emit AdapterInterface. MessageRelayed (target, message );
201
202
zksAdapter.relayMessage { value: baseCost }(target, message);
202
203
}
203
204
@@ -228,7 +229,7 @@ contract ZkStackAdapterTest is Test {
228
229
);
229
230
230
231
vm.expectEmit (address (zksAdapter));
231
- emit ZkStack_Adapter. ZkStackMessageRelayed (expectedTxnHash );
232
+ emit AdapterInterface. TokensRelayed ( address (l1Weth), address (l2Weth), amountToSend, random );
232
233
zksAdapter.relayTokens { value: baseCost }(address (l1Weth), address (l2Weth), amountToSend, random);
233
234
vm.stopPrank ();
234
235
}
@@ -254,7 +255,7 @@ contract ZkStackAdapterTest is Test {
254
255
);
255
256
256
257
vm.expectEmit (address (zksAdapter));
257
- emit ZkStack_Adapter. ZkStackMessageRelayed (expectedTxnHash );
258
+ emit AdapterInterface. TokensRelayed ( address (l1Usdc), address (l2Usdc), amountToSend, random );
258
259
zksAdapter.relayTokens { value: baseCost }(address (l1Usdc), address (l2Usdc), amountToSend, random);
259
260
}
260
261
@@ -279,7 +280,7 @@ contract ZkStackAdapterTest is Test {
279
280
);
280
281
281
282
vm.expectEmit (address (zksAdapter));
282
- emit ZkStack_Adapter. ZkStackMessageRelayed (expectedTxnHash );
283
+ emit AdapterInterface. TokensRelayed ( address (l1Token), address (l2Token), amountToSend, random );
283
284
zksAdapter.relayTokens { value: baseCost }(address (l1Token), address (l2Token), amountToSend, random);
284
285
}
285
286
@@ -305,7 +306,7 @@ contract ZkStackAdapterTest is Test {
305
306
)
306
307
);
307
308
vm.expectEmit (address (zksCustomGasAdapter));
308
- emit ZkStack_CustomGasToken_Adapter. ZkStackMessageRelayed (expectedTxnHash );
309
+ emit AdapterInterface. MessageRelayed (target, message );
309
310
zksCustomGasAdapter.relayMessage (target, message);
310
311
// Approve only the amount of the fee of the custom gas token. Since we don't actually transferFrom, the approval should stand.
311
312
assertEq (l1CustomGasToken.allowance (address (zksCustomGasAdapter), sharedBridge), baseCost);
@@ -337,7 +338,7 @@ contract ZkStackAdapterTest is Test {
337
338
);
338
339
339
340
vm.expectEmit (address (zksCustomGasAdapter));
340
- emit ZkStack_CustomGasToken_Adapter. ZkStackMessageRelayed (expectedTxnHash );
341
+ emit AdapterInterface. TokensRelayed ( address (l1Weth), address (l2Weth), amountToSend, random );
341
342
zksCustomGasAdapter.relayTokens (address (l1Weth), address (l2Weth), amountToSend, random);
342
343
vm.stopPrank ();
343
344
// Approve only the amount of the fee of the custom gas token. Since we don't actually transferFrom, the approval should stand.
@@ -364,7 +365,7 @@ contract ZkStackAdapterTest is Test {
364
365
);
365
366
366
367
vm.expectEmit (address (zksCustomGasAdapter));
367
- emit ZkStack_CustomGasToken_Adapter. ZkStackMessageRelayed (expectedTxnHash );
368
+ emit AdapterInterface. TokensRelayed ( address (l1Usdc), address (l2Usdc), amountToSend, random );
368
369
zksCustomGasAdapter.relayTokens (address (l1Usdc), address (l2Usdc), amountToSend, random);
369
370
// Approve only the amount of the fee of the custom gas token. Since we don't actually transferFrom, the approval should stand.
370
371
assertEq (l1CustomGasToken.allowance (address (zksCustomGasAdapter), usdcSharedBridge), baseCost);
@@ -391,7 +392,7 @@ contract ZkStackAdapterTest is Test {
391
392
);
392
393
393
394
vm.expectEmit (address (zksCustomGasAdapter));
394
- emit ZkStack_CustomGasToken_Adapter. ZkStackMessageRelayed (expectedTxnHash );
395
+ emit AdapterInterface. TokensRelayed ( address (l1Token), address (l2Token), amountToSend, random );
395
396
zksCustomGasAdapter.relayTokens (address (l1Token), address (l2Token), amountToSend, random);
396
397
// Approve only the amount of the fee of the custom gas token. Since we don't actually transferFrom, the approval should stand.
397
398
assertEq (l1CustomGasToken.allowance (address (zksCustomGasAdapter), sharedBridge), baseCost);
@@ -417,7 +418,7 @@ contract ZkStackAdapterTest is Test {
417
418
)
418
419
);
419
420
vm.expectEmit (address (zksCustomGasAdapter));
420
- emit ZkStack_CustomGasToken_Adapter. ZkStackMessageRelayed (expectedTxnHash );
421
+ emit AdapterInterface. TokensRelayed ( address (l1CustomGasToken), address (l2CustomGasToken), amountToSend, random );
421
422
zksCustomGasAdapter.relayTokens (address (l1CustomGasToken), address (l2CustomGasToken), amountToSend, random);
422
423
423
424
// Approve only the amount of the fee of the custom gas token. Since we don't actually transferFrom, the approval should stand.
0 commit comments