-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.txt
22 lines (20 loc) · 982 Bytes
/
examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Deploy and verify ERC721Mage from CLI:
source .env
forge create --private-key $PRIVATE_KEY --verify --chain-id 5 --rpc-url $GOERLI_RPC_URL --api-key $ETHERSCAN_API_KEY src/cores/ERC721/ERC721Mage.sol:ERC721Mage
Deploy and verify BotAccounts via script (using keystore at path `~/.foundry/keystores/beef`, which contains private key for `0xbeef47cd2ce1c287982d8bf7a06870744bd18112`, using decryption password `somepass`):
```
source .env
forge script script/BotAccount.s.sol:BotAccountScript --keystore ~/.foundry/keystores/beef --password somepass --sender 0xbeef47cd2ce1c287982d8bf7a06870744bd18112 --rpc-url $GOERLI_RPC_URL --chain-id 5 --broadcast --etherscan-api-key $ETHERSCAN_API_KEY --verify -vvvv
```
From CLI:
```
source .env
forge create
--private-key $PRIVATE_KEY
--verify
--chain-id 5
--rpc-url $GOERLI_RPC_URL
--api-key $ETHERSCAN_API_KEY
--constructor-args 0x.. 0x.. [0xe, 0xe]
src/cores/account/BotAccount.sol:BotAccount
```