This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4234632
commit 3ef2e76
Showing
3 changed files
with
38 additions
and
6 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,30 @@ | ||
from ape import project, accounts, chain | ||
import click | ||
|
||
deployer = accounts.load("v3_deployer") | ||
|
||
|
||
def deploy(): | ||
print(f"You are using: 'deployer' [{deployer.address}]") | ||
print("Deploying a new strategy on ChainID", chain.chain_id) | ||
|
||
if input("Do you want to continue? [y/N]: ").lower() != "y": | ||
return | ||
|
||
publish_source = click.confirm("Verify source on etherscan?") | ||
|
||
# Address of the underlying asset to use | ||
asset = "" | ||
# Name for your strategy | ||
name = "" | ||
|
||
if input(f"Deploy strategy for {asset}, called {name}? [y/N]: ").lower() != "y": | ||
return | ||
|
||
strategy = deployer.deploy(project.Strategy, asset, name, publish=publish_source) | ||
|
||
print(f"Deployed new strategy to: {strategy.address}") | ||
|
||
|
||
def main(): | ||
deploy() |
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