Skip to content

Commit

Permalink
fix: PR Review
Browse files Browse the repository at this point in the history
  • Loading branch information
deluca-mike committed Apr 19, 2024
1 parent 93893ba commit 319073d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# update with your mnemonic
MNEMONIC="test test test test test test test test test test test junk"
PRIVATE_KEY=""

# Localhost RPC URL
LOCALHOST_RPC_URL=http://127.0.0.1:8545

# Mainnet RPC URLs
MAINNET_RPC_URL=

# Testnet RPC URLs
SEPOLIA_RPC_URL=

# Used for verifying contracts on Etherscan
ETHERSCAN_API_KEY=
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ deploy-dry-run:
./set-epochs.sh -p dry-run && forge script script/DeployDryRun.s.sol --skip src --skip test --rpc-url sepolia --broadcast --slow --verify -vvv

deploy-staging:
./set-epochs.sh -p staging && forge script script/Deploy.s.sol --skip src --skip test --rpc-url sepolia --broadcast --slow -vvv
./set-epochs.sh -p staging && forge script script/Deploy.s.sol --skip src --skip test --rpc-url sepolia --broadcast --slow --verify -vvv

deploy-dev:
./set-epochs.sh -p dev && forge script script/Deploy.s.sol --skip src --skip test --rpc-url sepolia --broadcast --slow -vvv
./set-epochs.sh -p dev && forge script script/Deploy.s.sol --skip src --skip test --rpc-url sepolia --broadcast --slow --verify -vvv

deploy-production:
./set-epochs.sh -p production && forge script script/DeployProduction.s.sol --skip src --skip test --rpc-url mainnet --broadcast --slow -vvv
./set-epochs.sh -p production && forge script script/DeployProduction.s.sol --skip src --skip test --rpc-url mainnet --broadcast --slow --verify -vvv

deploy-local:
./set-epochs.sh -p dev && forge script script/Deploy.s.sol --skip src --skip test --rpc-url localhost --broadcast --slow -vvv
Expand Down
2 changes: 1 addition & 1 deletion lib/protocol
2 changes: 1 addition & 1 deletion lib/ttg
Submodule ttg updated from 657a73 to d8e106
12 changes: 12 additions & 0 deletions test/Deploy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ contract Deploy is Test, DeployBase {
assertEq(IPowerToken(powerToken_).bootstrapToken(), getExpectedBootstrapToken(address(this), 1));
assertEq(IPowerToken(powerToken_).standardGovernor(), standardGovernor_);
assertEq(IPowerToken(powerToken_).vault(), vault_);
assertEq(IPowerToken(powerToken_).cashToken(), _WETH);

for (uint256 index_; index_ < _initialAccounts[0].length; ++index_) {
assertEq(
IPowerToken(powerToken_).balanceOf(_initialAccounts[0][index_]),
((_initialBalances[0][index_] * IPowerToken(powerToken_).INITIAL_SUPPLY()) / 30_000)
);
}

// Power Token Deployer assertions
assertEq(IPowerTokenDeployer(powerTokenDeployer_).vault(), vault_);
Expand Down Expand Up @@ -117,6 +125,10 @@ contract Deploy is Test, DeployBase {
// Zero Token assertions
assertEq(IZeroToken(zeroToken_).standardGovernorDeployer(), standardGovernorDeployer_);

for (uint256 index_; index_ < _initialAccounts[1].length; ++index_) {
assertEq(IZeroToken(zeroToken_).balanceOf(_initialAccounts[1][index_]), _initialBalances[1][index_]);
}

// Minter Gateway assertions
assertEq(minterGateway_, getExpectedMinterGateway(address(this), 1));
assertEq(IMinterGateway(minterGateway_).ttgRegistrar(), registrar_);
Expand Down

0 comments on commit 319073d

Please sign in to comment.