Carbonable / carbon-protocol

Carbon Starknet Protocol written in Cairo.
Apache License 2.0
54 stars 21 forks source link

deployment script and deploy everything to Goerli #15

Closed bal7hazar closed 2 years ago

bal7hazar commented 2 years ago
bal7hazar commented 2 years ago

Here is a first version of the contracts, deployed on Goerli:

After deployment, the "admin" is this address according to parameters (see below for more details). Then I had to do the following actions manually (let's discussed later if we should improve it):

Here are the parameters I set for the deployment:

# Global settings
ADMIN_ADDRESS=0x009d02bAA050B9e8F3eb98fF0FA1eDe8e1b20D65CEae9f05E018b4d8dA3E4b7f

# ERC-721 settings
ERC721_NAME="Carbonable ERC-721 Test"
ERC721_SYMBOL=CET

# Minter settings
PAYMENT_TOKEN_ADDRESS=0x07394cbe418daa16e42b87ba67372d4ab4a5df0b05c6e554d158458ce245bc10
WHITELISTED_SALE_OPEN=0
PUBLIC_SALE_OPEN=1
MAX_BUY_PER_TX=5
UNIT_PRICE="10 0"
MAX_SUPPLY_FOR_MINT="10 0"
STARKNET_WALLET=0x009d02bAA050B9e8F3eb98fF0FA1eDe8e1b20D65CEae9f05E018b4d8dA3E4b7f

And here the command line:

./scripts/deploy.sh -p testnet -a carbonable ran from the project root directoy

With:

Note: The deployment has been done within the state of my local branch. It will be easier to rerun after the merge of the PR.