File tree Expand file tree Collapse file tree 3 files changed +11
-37
lines changed
Expand file tree Collapse file tree 3 files changed +11
-37
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ contract DeployAlignedToken is Script {
3636 address (_proxyAdmin),
3737 _salt,
3838 _deployer,
39- _safe,
4039 _foundation,
4140 _claimSupplier
4241 );
@@ -51,6 +50,10 @@ contract DeployAlignedToken is Script {
5150 vm.toString (_safe)
5251 )
5352 );
53+
54+ console.log (
55+ "Remember that the foundation must accept the ownership of the contract after deployment in another transaction. "
56+ );
5457 }
5558
5659 function deployProxyAdmin (
@@ -74,7 +77,6 @@ contract DeployAlignedToken is Script {
7477 address _proxyAdmin ,
7578 bytes32 _salt ,
7679 address _deployer ,
77- address _owner ,
7880 address _foundation ,
7981 address _claim
8082 ) internal returns (TransparentUpgradeableProxy) {
@@ -85,7 +87,6 @@ contract DeployAlignedToken is Script {
8587 .alignedTokenProxyDeploymentData (
8688 _proxyAdmin,
8789 address (_token),
88- _owner,
8990 _foundation,
9091 _claim
9192 );
Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ library Utils {
8686 function alignedTokenProxyDeploymentData (
8787 address _proxyAdmin ,
8888 address _implementation ,
89- address _owner ,
9089 address _foundation ,
9190 address _claim
9291 ) internal pure returns (bytes memory ) {
@@ -96,26 +95,20 @@ library Utils {
9695 abi.encode (
9796 _implementation,
9897 _proxyAdmin,
99- alignedTokenInitData (
100- _implementation,
101- _owner,
102- _foundation,
103- _claim
104- )
98+ alignedTokenInitData (_implementation, _foundation, _claim)
10599 )
106100 );
107101 }
108102
109103 function alignedTokenInitData (
110104 address _implementation ,
111- address _owner ,
112105 address _foundation ,
113106 address _claim
114107 ) internal pure returns (bytes memory ) {
115108 return
116109 abi.encodeCall (
117110 AlignedToken (_implementation).initialize,
118- (_owner, _foundation, _claim)
111+ (_foundation, _claim)
119112 );
120113 }
121114
@@ -175,24 +168,6 @@ library Utils {
175168 );
176169 }
177170
178- function claimableAirdropUpgradeData (
179- address _proxy ,
180- address _newImplementation
181- ) internal pure returns (bytes memory ) {
182- return
183- abi.encodeCall (
184- ProxyAdmin (_newImplementation).upgradeAndCall,
185- (
186- ITransparentUpgradeableProxy (_proxy),
187- _newImplementation,
188- abi.encodeCall (
189- ClaimableAirdropV2 (_newImplementation).reinitialize,
190- ()
191- )
192- )
193- );
194- }
195-
196171 // ProxyAdmin utils
197172
198173 function deployProxyAdmin (address _safe ) internal returns (address ) {
Original file line number Diff line number Diff line change @@ -32,25 +32,23 @@ contract AlignedToken is
3232
3333 /// @notice Initializes the contract.
3434 /// @dev This initializer should be called only once.
35- /// @param _owner address of the owner of the token.
35+ /// @dev The _foundation must accept the ownership of the contract
36+ /// after deployment in another transaction.
3637 /// @param _foundation address of the foundation.
3738 /// @param _claim address of the claim.
3839 function initialize (
39- address _owner ,
4040 address _foundation ,
4141 address _claim
4242 ) public initializer {
4343 require (
44- _foundation != address (0 ) &&
45- _claim != address (0 ) &&
46- _owner != address (0 ),
47- "Invalid _foundation or _claim or _owner "
44+ _foundation != address (0 ) && _claim != address (0 ),
45+ "Invalid _foundation or _claim "
4846 );
4947 __ERC20_init (NAME, SYMBOL);
5048 __EIP712_init (NAME, VERSION);
5149 __ERC20Permit_init (NAME);
5250 __Ownable2Step_init (); // default is msg.sender
53- _transferOwnership (_owner );
51+ _transferOwnership (_foundation );
5452 _mint (_foundation, 7_300_000_000e18 ); // 7.3 billion
5553 _mint (_claim, 2_700_000_000e18 ); // 2.7 billion
5654 }
You can’t perform that action at this time.
0 commit comments