Skip to content

Commit

Permalink
update local deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Oct 4, 2024
1 parent 40af312 commit 5a1872a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion script/add_liq.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contract AddLiquidity is Script {
function run() public {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);
address swap = 0x2c07f69C7397A48B347550962935EEDf06A9f68F;
address swap = 0xF506637B46AD84AF0e3883985Ba60e7fE3568395;

LpETH(payable(swap)).deposit{ value: 1000 ether }(0);
vm.stopBroadcast();
Expand Down
6 changes: 4 additions & 2 deletions script/deploy.local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","id":6

export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

forge script script/deploy.local.s.sol --legacy --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY -vvvv
forge script script/add_liq.s.sol --legacy --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY -vvvv
forge script script/deploy.local.s.sol --legacy --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY -vvvv
forge script script/add_liq.s.sol --legacy --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY -vvvv
# forge script script/prelaunch.local.s.sol --legacy --rpc-url http://127.0.0.1:8545 --broadcast --private-key $PRIVATE_KEY -vvvv

read -r -d '' _ </dev/tty
echo "Closing Down Anvil"
pkill -9 anvil
25 changes: 18 additions & 7 deletions script/send.local.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# This calls Anvil and lets us impersonate our unlucky user
ME=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
AMOUNT=100000000000000000000

# EETH
UNLUCKY_USER=0x78605Df79524164911C144801f41e9811B7DB73D;
TOKEN=0xd5F7838F5C461fefF7FE49ea5ebaF7728bB0ADfa
AMOUNT=100000000000000000000
# UNLUCKY_USER=0x78605Df79524164911C144801f41e9811B7DB73D;
# TOKEN=0xd5F7838F5C461fefF7FE49ea5ebaF7728bB0ADfa
# cast rpc anvil_impersonateAccount $UNLUCKY_USER
# cast send $TOKEN \
# --from $UNLUCKY_USER \
# "transfer(address,uint256)(bool)" \
# $ME \
# $AMOUNT \
# --unlocked

# SWETH
UNLUCKY_USER=0x1D812A7E929D4dBe237926ED8e7c31434b9Ab469;
TOKEN=0xf951E335afb289353dc249e82926178EaC7DEd78
AMOUNT=800000000000000000000
cast rpc anvil_impersonateAccount $UNLUCKY_USER
cast send $TOKEN \
--from $UNLUCKY_USER \
Expand All @@ -13,10 +25,9 @@ cast send $TOKEN \
$AMOUNT \
--unlocked

# SWETEH
# UNLUCKY_USER=0x38D43a6Cb8DA0E855A42fB6b0733A0498531d774;
# TOKEN=0xf951E335afb289353dc249e82926178EaC7DEd78
# AMOUNT=800000000000000000000
# mETH
# TOKEN=0xd5f7838f5c461feff7fe49ea5ebaf7728bb0adfa
# UNLUCKY_USER=0xb937bf362cd897e05eb3d351575598c4f9b55839
# cast rpc anvil_impersonateAccount $UNLUCKY_USER
# cast send $TOKEN \
# --from $UNLUCKY_USER \
Expand Down

0 comments on commit 5a1872a

Please sign in to comment.