-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d85a73a
commit 106875b
Showing
26 changed files
with
325 additions
and
163 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import "../../vendor/AddressAliasHelper.sol"; | |
import "../../common/libraries/L2ContractHelper.sol"; | ||
import {L2_DEPLOYER_SYSTEM_CONTRACT_ADDR} from "../../common/L2ContractAddresses.sol"; | ||
import "../../common/interfaces/IL2ContractDeployer.sol"; | ||
import {L2Transaction} from "../../zksync/libraries/L2Transaction.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @custom:security-contact [email protected] | ||
|
@@ -38,14 +39,16 @@ library BridgeInitializationHelper { | |
IL2ContractDeployer.create2, | ||
(bytes32(0), _bytecodeHash, _constructorData) | ||
); | ||
_zkSync.requestL2Transaction{value: _deployTransactionFee}( | ||
L2_DEPLOYER_SYSTEM_CONTRACT_ADDR, | ||
0, | ||
_zkSync.requestL2Transaction( | ||
L2Transaction( | ||
L2_DEPLOYER_SYSTEM_CONTRACT_ADDR, | ||
0, | ||
DEPLOY_L2_BRIDGE_COUNTERPART_GAS_LIMIT, | ||
REQUIRED_L2_GAS_PRICE_PER_PUBDATA), | ||
deployCalldata, | ||
DEPLOY_L2_BRIDGE_COUNTERPART_GAS_LIMIT, | ||
REQUIRED_L2_GAS_PRICE_PER_PUBDATA, | ||
_factoryDeps, | ||
msg.sender | ||
msg.sender, | ||
_deployTransactionFee | ||
); | ||
|
||
deployedAddress = L2ContractHelper.computeCreate2Address( | ||
|
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
pragma solidity 0.8.20; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
import "@openzeppelin/contracts/access/Ownable.sol"; | ||
|
||
contract CronosTestnet is ERC20, Ownable { | ||
uint8 private _decimals = 18; | ||
|
||
constructor() ERC20("Cronos Testnet", "TCRO"){ | ||
} | ||
|
||
function mint(address dest, uint wad) public onlyOwner returns (bool) { | ||
_mint(dest, wad); | ||
return true; | ||
} | ||
|
||
function decimals() public view override returns (uint8) { | ||
return _decimals; | ||
} | ||
} |
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.