-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* gnosis submodule * spaces
- Loading branch information
Ino Murko
committed
Aug 6, 2020
1 parent
922814d
commit 175f9ce
Showing
9 changed files
with
134 additions
and
9 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 |
---|---|---|
|
@@ -48,3 +48,6 @@ coverage.json | |
|
||
#tenderly config | ||
tenderly.yaml | ||
|
||
MultiSigWallet | ||
MultiSigWalletOverride/ganache_data/ |
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,3 @@ | ||
[submodule "MultiSigWallet"] | ||
path = MultiSigWallet | ||
url = https://github.com/gnosis/MultiSigWallet.git |
Submodule MultiSigWallet
added at
4776fd
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,3 @@ | ||
init_multisig: | ||
cp ../MultiSigWalletOverride/migrations/* ../MultiSigWallet/migrations | ||
cp ../MultiSigWalletOverride/truffle.js ../MultiSigWallet/ |
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,28 @@ | ||
const MultisigWalletWithDailyLimit = artifacts.require('MultiSigWalletWithDailyLimit.sol') | ||
const MultisigWalletWithoutDailyLimit = artifacts.require('MultiSigWallet.sol') | ||
const MultisigWalletFactory = artifacts.require('MultiSigWalletWithDailyLimitFactory.sol') | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
module.exports = deployer => { | ||
const args = process.argv.slice(); | ||
if (process.env.DEPLOY_FACTORY){ | ||
deployer.deploy(MultisigWalletFactory); | ||
console.log("Factory with Daily Limit deployed"); | ||
} else if (args.length < 5) { | ||
console.error("Multisig with daily limit requires to pass owner " + | ||
"list, required confirmations and daily limit"); | ||
} else if (args.length < 6) { | ||
deployer.deploy(MultisigWalletWithoutDailyLimit, args[3].split(","), args[4]).then(function() { | ||
const buildDir = path.resolve(__dirname, '../build'); | ||
if (!fs.existsSync(buildDir)) { | ||
fs.mkdirSync(buildDir); | ||
} | ||
fs.writeFileSync(path.resolve(buildDir, 'multisig_instance'), `${MultisigWalletWithoutDailyLimit.address}`.toLowerCase()); | ||
}); | ||
console.log("Wallet deployed"); | ||
} else { | ||
deployer.deploy(MultisigWalletWithDailyLimit, args[3].split(","), args[4], args[5]); | ||
console.log("Wallet with Daily Limit deployed"); | ||
} | ||
} |
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,34 @@ | ||
module.exports = { | ||
networks: { | ||
development: { | ||
host: "localhost", | ||
port: 8545, | ||
network_id: "*", // Match any network id | ||
gas: 4000000, | ||
gasPrice: 10000000000, // 10 gwei | ||
}, | ||
loadTest: { | ||
host: '127.0.0.1', | ||
port: 8545, | ||
network_id: '*', | ||
gas: 0xfffffffffff, | ||
}, | ||
local: { | ||
host: process.env.ETH_CLIENT_HOST || '127.0.0.1', | ||
port: process.env.ETH_CLIENT_PORT || 8545, | ||
from: process.env.DEPLOYER_ADDRESS, | ||
network_id: '*', | ||
}, | ||
remote: { | ||
skipDryRun: true, | ||
gasPrice: process.env.GAS_PRICE || 20000000000, // default 20 gwei | ||
network_id: '*', | ||
} | ||
}, | ||
// Configure your compilers | ||
compilers: { | ||
solc: { | ||
version: '0.4.15' | ||
}, | ||
} | ||
}; |
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