@@ -40,7 +40,7 @@ contract V1DeploymentScript is Script {
40
40
console.log (unicode "👑 PROTOCOL_OWNER set as %s " , owner);
41
41
42
42
vm.startBroadcast ();
43
- console.log (unicode "🚀 Deploying contracts... " );
43
+ console.log (unicode "🚀 Deploying contracts with sender %s ... " , msg . sender );
44
44
45
45
// Owner of the protocol is first set as the deployer to allow the whitelisting of modules,
46
46
// ownership is then transferred to the address defined as the PROTOCOL_OWNER
@@ -125,17 +125,19 @@ contract V1DeploymentScript is Script {
125
125
) internal {
126
126
int24 DEFAULT_LOWER_TICK = 167_520 ;
127
127
int24 DEFAULT_UPPER_TICK = 200_040 ;
128
- uint256 DEFAULT_MAX_SHARE_TO_BE_SOLD = 0.23 ether ;
128
+ uint256 DEFAULT_MAX_SHARE_TO_BE_SOLD = 0.9 ether ;
129
129
130
130
bool isToken0;
131
- uint256 initialSupply = 100_000_000 ether ;
132
- string memory name = "Best Coin " ;
133
- string memory symbol = "BEST " ;
131
+ uint256 initialSupply = 1_000_000_000 ether ;
132
+ string memory name = "a " ;
133
+ string memory symbol = "a " ;
134
+ string memory tokenURI = "ipfs://QmPXxsEGfHHnCa8VuPoMS7n1pAhJVw1BnnfSx83sioE65y " ;
134
135
bytes memory governanceData = abi.encode (name, 7200 , 50_400 , initialSupply / 1000 );
135
- bytes memory tokenFactoryData = abi.encode (name, symbol, 0 , 0 , new address [](0 ), new uint256 [](0 ), "" );
136
+ bytes memory tokenFactoryData = abi.encode (name, symbol, 0 , 0 , new address [](0 ), new uint256 [](0 ), tokenURI );
136
137
137
138
// Compute the asset address that will be created
138
139
bytes32 salt;
140
+
139
141
bytes memory creationCode = type (DERC20).creationCode;
140
142
bytes memory create2Args = abi.encode (
141
143
name,
@@ -147,7 +149,7 @@ contract V1DeploymentScript is Script {
147
149
0 ,
148
150
new address [](0 ),
149
151
new uint256 [](0 ),
150
- ""
152
+ tokenURI
151
153
);
152
154
address predictedAsset = vm.computeCreate2Address (
153
155
salt, keccak256 (abi.encodePacked (creationCode, create2Args)), address (tokenFactory)
@@ -171,7 +173,7 @@ contract V1DeploymentScript is Script {
171
173
(address asset ,,,,) = airlock.create (
172
174
CreateParams (
173
175
initialSupply,
174
- initialSupply ,
176
+ 900_000_000 ether ,
175
177
weth,
176
178
tokenFactory,
177
179
tokenFactoryData,
@@ -180,12 +182,15 @@ contract V1DeploymentScript is Script {
180
182
poolInitializer,
181
183
poolInitializerData,
182
184
liquidityMigrator,
183
- "" ,
184
- address (this ),
185
+ new bytes ( 0 ) ,
186
+ address (0 ),
185
187
salt
186
188
)
187
189
);
188
190
191
+ console.log ("| Asset Token | %s | " , asset);
192
+ console.log ("+----------------------------+--------------------------------------------+ " );
193
+
189
194
require (asset == predictedAsset, "Predicted asset address doesn't match actual " );
190
195
}
191
196
}
0 commit comments