-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy new version to kovan, rinkeby and mainnet
- Loading branch information
Showing
14 changed files
with
627 additions
and
75 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
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
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,61 @@ | ||
import os | ||
import sys | ||
import json | ||
from subprocess import run | ||
|
||
network = os.environ.get('NETWORK') | ||
if not network: | ||
sys.exit("NETWORK not set in env") | ||
|
||
print("Deploy Safe to", network) | ||
|
||
with open('package.json') as f: | ||
package = json.load(f) | ||
|
||
if os.path.exists("zos.json"): | ||
os.remove("zos.json") | ||
|
||
run(["npx", "zos", "init", package.get("name"), package.get("version")]) | ||
|
||
run(["npx", "truffle", "compile"]) | ||
|
||
# Add and deploy GnosisSafe | ||
run(["npx", "zos", "add", "GnosisSafe", "--skip-compile"]) | ||
run(["npx", "zos", "push", "--network=" + network, "--skip-compile"]) | ||
|
||
# Add and deploy ProxyFactory | ||
run(["npx", "zos", "add", "ProxyFactory", "--skip-compile"]) | ||
run(["npx", "zos", "push", "--network=" + network, "--skip-compile"]) | ||
|
||
# Add and deploy CreateAndAddModules | ||
run(["npx", "zos", "add", "CreateAndAddModules", "--skip-compile"]) | ||
run(["npx", "zos", "push", "--network=" + network, "--skip-compile"]) | ||
|
||
# Add and deploy MultiSend | ||
run(["npx", "zos", "add", "MultiSend", "--skip-compile"]) | ||
run(["npx", "zos", "push", "--network=" + network, "--skip-compile"]) | ||
|
||
# Init contracts | ||
run(["npx", "truffle", "--network=" + network, "exec", "scripts/init_contracts.js"]) | ||
|
||
# Publish zos package | ||
run(["npx", "zos", "publish", "--network=" + network]) | ||
|
||
''' | ||
Modules are disabled for now | ||
''' | ||
# Add and deploy DailyLimitModule | ||
# run(["npx", "zos", "add", "DailyLimitModule", "--skip-compile"]) | ||
# run(["npx", "zos", "push", "--network=" + network, "--skip-compile"]) | ||
|
||
# Add and deploy SocialRecoveryModule | ||
# run(["npx", "zos", "add", "SocialRecoveryModule", "--skip-compile"]) | ||
# run(["npx", "zos", "push", "--network=" + network, "--skip-compile"]) | ||
|
||
# Add and deploy StateChannelModule | ||
# run(["npx", "zos", "add", "StateChannelModule", "--skip-compile"]) | ||
# run(["npx", "zos", "push", "--network=" + network, "--skip-compile"]) | ||
|
||
# Add and deploy WhitelistModule | ||
# run(["npx", "zos", "add", "WhitelistModule", "--skip-compile"]) | ||
# run(["npx", "zos", "push", "--network=" + network, "--skip-compile"]) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
{ | ||
"zosversion": "2", | ||
"name": "gnosis-safe", | ||
"version": "0.0.2", | ||
"lib": true, | ||
"version": "0.1.0", | ||
"contracts": { | ||
"GnosisSafe": "GnosisSafe", | ||
"ProxyFactory": "ProxyFactory", | ||
"CreateAndAddModules": "CreateAndAddModules", | ||
"MultiSend": "MultiSend", | ||
"DailyLimitModule": "DailyLimitModule", | ||
"SocialRecoveryModule": "SocialRecoveryModule", | ||
"StateChannelModule": "StateChannelModule", | ||
"WhitelistModule": "WhitelistModule", | ||
"ProxyFactory": "ProxyFactory" | ||
"MultiSend": "MultiSend" | ||
} | ||
} |
Oops, something went wrong.