-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from agentcoinorg/nerfzael/migration
Migration implementation and deployment improvements
- Loading branch information
Showing
12 changed files
with
367 additions
and
298 deletions.
There are no files selected for viewing
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,18 @@ | ||
FORGE_ACCOUNT=<NAME-OF-FORGE-ACCOUNT-IF-NOT-USING-PK> # Only needed if you want to deploy with a forge account instead of a private key | ||
BASESCAN_API_KEY=<BASESCAN-API-KEY> # Only needed if you want to verify the contract on Basescan | ||
|
||
BASE_TOKEN_NAME=<TOKEN-NAME> | ||
BASE_TOKEN_SYMBOL=<TOKEN-SYMBOL> | ||
BASE_BENEFICIARY=<BENEFICIARY> | ||
BASE_RPC_URL=<RPC-URL-OF-BASE-NETWORK> | ||
BASE_CONTROL=<CONTROL> | ||
BASE_FEE_COLLECTOR=<FEE-COLLECTOR> | ||
BASE_PRICE_INCREASE=<PRICE-INCREASE> # Price increase in ether (wei), e.g. 200000000000000 for 0.0002 ETH | ||
|
||
BASE_SEPOLIA_TOKEN_NAME=<TOKEN-NAME> | ||
BASE_SEPOLIA_TOKEN_SYMBOL=<TOKEN-SYMBOL> | ||
BASE_SEPOLIA_BENEFICIARY=<BENEFICIARY> | ||
BASE_SEPOLIA_RPC_URL=<RPC-URL-OF-BASE-SEPOLIA-NETWORK> | ||
BASE_SEPOLIA_CONTROL=<CONTROL> | ||
BASE_SEPOLIA_FEE_COLLECTOR=<FEE-COLLECTOR> | ||
BASE_SEPOLIA_PRICE_INCREASE=<PRICE-INCREASE> # Price increase in ether (wei), e.g. 200000000000000 for 0.0002 ETH |
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 |
---|---|---|
@@ -1 +1,25 @@ | ||
forge script ./script/DeployAgentKey.s.sol --rpc-url https://sepolia.base.org/ --broadcast --interactives 1 -g 200 --force --verify --verifier-url https://api-sepolia.basescan.org/api --etherscan-api-key $1 | ||
if [[ $1 = "pk" ]]; then | ||
export $(cat .env | xargs) && \ | ||
forge script ./script/DeployAgentKey.s.sol \ | ||
--rpc-url $BASE_SEPOLIA_RPC_URL \ | ||
--broadcast \ | ||
-g 200 \ | ||
--force \ | ||
--verify \ | ||
--verifier-url https://api-sepolia.basescan.org/api \ | ||
--etherscan-api-key $BASESCAN_API_KEY \ | ||
--interactives 1 \ | ||
--slow | ||
else | ||
export $(cat .env | xargs) && \ | ||
forge script ./script/DeployAgentKey.s.sol \ | ||
--rpc-url $BASE_SEPOLIA_RPC_URL \ | ||
--broadcast \ | ||
-g 200 \ | ||
--force \ | ||
--verify \ | ||
--verifier-url https://api-sepolia.basescan.org/api \ | ||
--etherscan-api-key $BASESCAN_API_KEY \ | ||
--account $FORGE_ACCOUNT \ | ||
--slow | ||
fi |
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,25 @@ | ||
if [[ $1 = "pk" ]]; then | ||
export $(cat .env | xargs) && \ | ||
forge script ./script/DeployAgentKey.s.sol \ | ||
--rpc-url $BASE_RPC_URL \ | ||
--broadcast \ | ||
-g 200 \ | ||
--force \ | ||
--verify \ | ||
--verifier-url https://api.basescan.org/api \ | ||
--etherscan-api-key $BASESCAN_API_KEY \ | ||
--interactives 1 \ | ||
--slow | ||
else | ||
export $(cat .env | xargs) && \ | ||
forge script ./script/DeployAgentKey.s.sol \ | ||
--rpc-url $BASE_RPC_URL \ | ||
--broadcast \ | ||
-g 200 \ | ||
--force \ | ||
--verify \ | ||
--verifier-url https://api.basescan.org/api \ | ||
--etherscan-api-key $BASESCAN_API_KEY \ | ||
--account $FORGE_ACCOUNT \ | ||
--slow | ||
fi |
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
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
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
Oops, something went wrong.