-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inomurko/gnosis multisig #677
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,37 @@ jobs: | |
name: Start services | ||
command: docker-compose up -d | ||
working_directory: ~/repo/MultiSigWalletOverride | ||
- run: | | ||
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV | ||
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV | ||
- run: | ||
name: Install node 9 | ||
command: | | ||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | ||
nvm install v9 | ||
node --version | ||
node -v | ||
nvm alias default v9 | ||
echo 'export PATH="$(npm bin):$PATH"' >> $BASH_ENV | ||
- run: | ||
name: Pull Submodules | ||
command: | | ||
git submodule init | ||
git submodule update --remote | ||
working_directory: ~/repo/ | ||
- run: | ||
name: Apply Overrides | ||
command: make init_multisig | ||
working_directory: ~/repo/MultiSigWalletOverride | ||
- run: | ||
name: Deploy Gnosis MultiSigWalet | ||
command: | | ||
sudo apt-get update && sudo apt-get install -y libudev-dev libusb-1.0-0 libusb-1.0-0-dev | ||
npm install -g npm@latest | ||
nvm use node | ||
npm install | ||
npx truffle migrate 0xa508dD875f10C33C52a8abb20E16fc68E981F186 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw, where does this address comes from? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's the first address in ganache There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ohh the deterministic ganache run from docker-compose |
||
working_directory: ~/repo/MultiSigWallet | ||
|
||
Truffle tests: | ||
executor: truffle_executor | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,6 @@ coverage.json | |
|
||
#tenderly config | ||
tenderly.yaml | ||
|
||
MultiSigWallet | ||
MultiSigWalletOverride/ganache_data/ |
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 |
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/ |
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"); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module.exports = { | ||
InoMurko marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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' | ||
}, | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra?