-
Notifications
You must be signed in to change notification settings - Fork 217
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
Showing
47 changed files
with
747 additions
and
372 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: Custom issue template | ||
about: Describe this issue template's purpose here. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!--- For issues with the Argent app, please email [email protected] --> | ||
|
||
## Issue description |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ tmp | |
bin | ||
.outputParameter | ||
flatten | ||
|
||
flat | ||
## Core latex/pdflatex auxiliary files: | ||
*.aux | ||
*.lof | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// /////////////////////////////////////////////////////////////////// | ||
// Script to deploy a new WalletFactory contract | ||
// | ||
// Can be executed as: | ||
// ./scripts/execute_script.sh --no-compile scripts/deploy_wallet_factory.js <network> | ||
// | ||
// where: | ||
// - network = [development, test, staging, prod] | ||
// //////////////////////////////////////////////////////////////////// | ||
|
||
/* global artifacts */ | ||
global.web3 = web3; | ||
|
||
const WalletFactory = artifacts.require("WalletFactory"); | ||
|
||
const deployManager = require("../utils/deploy-manager.js"); | ||
|
||
async function main() { | ||
const { configurator, abiUploader } = await deployManager.getProps(); | ||
const { config } = configurator; | ||
console.log("Config:", config); | ||
|
||
// Deploy new WalletFactory | ||
console.log("Deploying new WalletFactory..."); | ||
const NewWalletFactoryWrapper = await WalletFactory.new( | ||
config.contracts.ModuleRegistry, | ||
config.contracts.BaseWallet, | ||
config.modules.GuardianStorage, | ||
config.backend.refundCollector); | ||
|
||
console.log("WalletFactory deployed at", NewWalletFactoryWrapper.address); | ||
|
||
console.log("Setting the backend accounts as managers for the new WalletFactory..."); | ||
for (let idx = 0; idx < config.backend.accounts.length; idx += 1) { | ||
const account = config.backend.accounts[idx]; | ||
// Set `account` as the manager of the WalletFactory | ||
await NewWalletFactoryWrapper.addManager(account); | ||
} | ||
|
||
console.log("Setting the multisig as the owner of the new WalletFactory..."); | ||
await NewWalletFactoryWrapper.changeOwner(config.contracts.MultiSigWallet); | ||
|
||
console.log("Saving new config..."); | ||
configurator.updateInfrastructureAddresses({ WalletFactory: NewWalletFactoryWrapper.address }); | ||
await configurator.save(); | ||
|
||
await abiUploader.upload(NewWalletFactoryWrapper, "contracts"); | ||
|
||
console.log("WalletFactory Update DONE."); | ||
} | ||
|
||
module.exports = (cb) => main().then(cb).catch(cb); |
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.