forked from across-protocol/relayer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
28 changed files
with
1,259 additions
and
2,420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// This file contains contracts that can be used to unit test the src/clients/bridges/ZkSyncAdapter.ts | ||
// code which reads events from zkSync contracts facilitating cross chain transfers. | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
contract Polygon_L1Bridge { | ||
event LockedERC20( | ||
address indexed depositor, | ||
address indexed depositReceiver, | ||
address indexed rootToken, | ||
uint256 amount | ||
); | ||
|
||
event LockedEther(address indexed depositor, address indexed depositReceiver, uint256 amount); | ||
|
||
function depositFor(address depositor, address depositReceiver, address rootToken, uint256 amount) external { | ||
emit LockedERC20(depositor, depositReceiver, rootToken, amount); | ||
} | ||
|
||
function depositEtherFor(address depositor, address depositReceiver, uint256 amount) external { | ||
emit LockedEther(depositor, depositReceiver, amount); | ||
} | ||
} | ||
|
||
contract Polygon_L2Bridge { | ||
event Transfer(address indexed from, address indexed to, uint256 value); | ||
|
||
function transfer(address from, address to, uint256 value) external { | ||
emit Transfer(from, to, value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.