-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bibos Day Contract Updates + Scripts Cleanup (#91)
* clean up scripts, update contracts * scripts.sh updates * remove vault address
- Loading branch information
Showing
23 changed files
with
148 additions
and
246 deletions.
There are no files selected for viewing
Empty file.
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,29 @@ | ||
#!/bin/bash | ||
|
||
# anvil rpc | ||
RPC_URL=http://127.0.0.1:8545 | ||
# // anvil account 9 | ||
PRIVATE_KEY=0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6 | ||
PUBLIC_KEY=0xa0ee7a142d267c1f36714e4a8f75612f20a79720 | ||
|
||
DEPLOYMENTS_PATH=./deployment/deployments.json | ||
|
||
write_deployment_address() { | ||
echo $(jq '.'$1'="'$2'"' $DEPLOYMENTS_PATH) > $DEPLOYMENTS_PATH | ||
} | ||
|
||
get_return_value() { | ||
echo "$2" | grep "{" | jq -r '.returns.'$1'.value' | ||
} | ||
|
||
# deploy bibos | ||
SCRIPT_OUTPUT="$(forge script --private-key $PRIVATE_KEY --rpc-url $RPC_URL --broadcast --json src/scripts/deploy_bibos.sol:deploy_bibos)" | ||
BIBOS_ADDRESS="$(get_return_value "bibos" "$SCRIPT_OUTPUT")" | ||
|
||
# # erase deployments.json | ||
echo "{}" > $DEPLOYMENTS_PATH | ||
|
||
# # save the bibos address in deployments.json | ||
write_deployment_address "Bibos" $BIBOS_ADDRESS | ||
|
||
echo "$SCRIPT_OUTPUT" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# anvil rpc | ||
RPC_URL=http://127.0.0.1:8545 | ||
# // anvil account 9 | ||
PRIVATE_KEY=0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6 | ||
PUBLIC_KEY=0xa0ee7a142d267c1f36714e4a8f75612f20a79720 | ||
|
||
|
||
# forge script --private-key $PRIVATE_KEY --rpc-url $RPC_URL --broadcast --json src/scripts/deploy_bibos.sol:deploy_bibos | ||
# cast send --private-key $PRIVATE_KEY --rpc-url $RPC_URL $BIBOS_ADDRESS "withdraw(address)" "$TO" | ||
# cast send --private-key $PRIVATE_KEY --rpc-url $RPC_URL --value "0.1ether" $BIBOS_ADDRESS "mint()" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
forge verify-contract --chain-id 1 --compiler-version "0.8.13+commit.abaa5c0e" \ | ||
--libraries "src/libraries/Cheeks.sol:Cheeks:0x5a56533924d6694c617172592cfa7d8c63de4b4f" \ | ||
--libraries "src/libraries/Data.sol:Data:0x62897c2906035e70470d0b0a37bf31fdadf7bf67" \ | ||
--libraries "src/libraries/Eyes.sol:Eyes:0xfd61aff6cc3abc7339946f233f182dd17ef97b12" \ | ||
--libraries "src/libraries/Eyes2.sol:Eyes2:0xf7fd823e7a599e11150795e4b1c71240001188f9" \ | ||
--libraries "src/libraries/Glints.sol:Glints:0x2073341d0ac112a0bc159482d7619929d4ba3456" \ | ||
--libraries "src/libraries/Motes.sol:Motes:0x176a00344e819430136be71b66a0e7853885342f" \ | ||
--libraries "src/libraries/Mouth.sol:Mouth:0x40ccf25fc4c7e37a7aaaf58dbaf6b1f3996e478c" \ | ||
"0xf528e3381372c43f5e8a55b3e6c252e32f1a26e4" src/Bibos.sol:Bibos $ETHERSCAN_API_KEY |
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,12 @@ | ||
{ | ||
"mainnet": { | ||
"Bibos": "0xf528e3381372c43f5e8a55b3e6c252e32f1a26e4", | ||
"Cheeks": "0x5a56533924d6694c617172592cfa7d8c63de4b4f", | ||
"Data": "0x62897c2906035e70470d0b0a37bf31fdadf7bf67", | ||
"Eyes": "0xfd61aff6cc3abc7339946f233f182dd17ef97b12", | ||
"Eyes2": "0xf7fd823e7a599e11150795e4b1c71240001188f9", | ||
"Glints": "0x2073341d0ac112a0bc159482d7619929d4ba3456", | ||
"Motes": "0x176a00344e819430136be71b66a0e7853885342f", | ||
"Mouth": "0x40ccf25fc4c7e37a7aaaf58dbaf6b1f3996e478c" | ||
} | ||
} |
Submodule solmate
updated
from d155ee to 2979a7
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
File renamed without changes.
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.