-
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.
(WIP) ZRC2->ERC20 fascias ; work in transit
- Loading branch information
1 parent
457b22d
commit d03c8ae
Showing
9 changed files
with
439 additions
and
35 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT OR Apache-2.0 | ||
pragma solidity ^0.8.20; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {LockAndReleaseTokenManagerUpgradeable} from "contracts/periphery/LockAndReleaseTokenManagerUpgradeable.sol"; | ||
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; | ||
import { ZRC2ProxyForZRC2 } from "test/zilbridge/zrc2erc20/ZRC2ProxyForZRC2.sol"; | ||
import { TestnetConfig } from "script/testnet_config.s.sol"; | ||
import "forge-std/console.sol"; | ||
|
||
/*** @title Deploy an ERC20 proxy for our ZRC2, so we can set routing with it. | ||
*/ | ||
contract Deployment is Script, TestnetConfig { | ||
function run() external { | ||
uint256 validatorPrivateKey = vm.envUint("PRIVATE_KEY_TESTNET"); | ||
address validator = vm.addr(validatorPrivateKey); | ||
console.log("Owner is %s", validator); | ||
vm.startBroadcast(validatorPrivateKey); | ||
{ | ||
ZRC2ProxyForZRC2 proxy = new ZRC2ProxyForZRC2(zq_bridged_erc20); | ||
console.log("zq_bridged_erc20_evm = %s", address(proxy)); | ||
} | ||
{ | ||
ZRC2ProxyForZRC2 proxy = new ZRC2ProxyForZRC2(zq_bridged_bnb); | ||
console.log("zq_bridged_bnb_evm = %s", address(proxy)); | ||
} | ||
{ | ||
ZRC2ProxyForZRC2 proxy = new ZRC2ProxyForZRC2(zq_zrc2); | ||
console.log("zq_zrc2_evm = %s", address(proxy)); | ||
} | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
smart-contracts/script/zq-testnet/registerZilBridgeTokens.s.sol
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.