generated from EthSign/hardhat-template
-
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.
Special deployer w/o using
Clone
for zkSync Era
- Loading branch information
Showing
15 changed files
with
293 additions
and
405 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// SPDX-License-Identifier: AGPL v3 | ||
pragma solidity ^0.8.20; | ||
|
||
import {TTUDeployerLite} from "./TTUDeployerLite.sol"; | ||
import {ITokenTableUnlockerV2} from "../interfaces/ITokenTableUnlockerV2.sol"; | ||
import {ITTFutureTokenV2} from "../interfaces/ITTFutureTokenV2.sol"; | ||
import {ITTTrackerTokenV2} from "../interfaces/ITTTrackerTokenV2.sol"; | ||
import {TokenTableUnlockerV2} from "../core/TokenTableUnlockerV2.sol"; | ||
import {TTFutureTokenV2} from "../core/TTFutureTokenV2.sol"; | ||
import {TTTrackerTokenV2} from "../core/TTTrackerTokenV2.sol"; | ||
|
||
contract TTUDeployerLiteZkSync is TTUDeployerLite { | ||
function version() external pure virtual override returns (string memory) { | ||
return "2.5.7-zkSync"; | ||
} | ||
|
||
function _deployClonesAndInitialize( | ||
address projectToken, | ||
bool isTransferable, | ||
bool isCancelable, | ||
bool isHookable, | ||
bool isWithdrawable | ||
) | ||
internal | ||
virtual | ||
override | ||
returns ( | ||
ITokenTableUnlockerV2 unlocker, | ||
ITTFutureTokenV2 futureToken, | ||
ITTTrackerTokenV2 trackerToken | ||
) | ||
{ | ||
futureToken = new TTFutureTokenV2(); | ||
futureToken.initialize(projectToken, isTransferable); | ||
unlocker = new TokenTableUnlockerV2(); | ||
unlocker.initialize( | ||
projectToken, | ||
address(futureToken), | ||
address(this), | ||
isCancelable, | ||
isHookable, | ||
isWithdrawable | ||
); | ||
trackerToken = new TTTrackerTokenV2(); | ||
trackerToken.initialize(address(unlocker)); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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.