From 56396ff60b66f81057035227a98fbc79556ff236 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Fri, 17 Jul 2020 17:27:13 +0300 Subject: [PATCH] Allow to keep names in contracts. --- build_all.sh | 10 ++++++++++ lockup/build.sh | 5 +++-- multisig/build.sh | 4 ++-- staking-pool-factory/build.sh | 4 ++-- staking-pool/build.sh | 4 ++-- voting/build.sh | 4 ++-- whitelist/build.sh | 4 ++-- 7 files changed, 23 insertions(+), 12 deletions(-) create mode 100755 build_all.sh diff --git a/build_all.sh b/build_all.sh new file mode 100755 index 00000000..e56557e9 --- /dev/null +++ b/build_all.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +for d in */ ; do + echo "Building $d" + pushd $d + ./build.sh + popd +done + diff --git a/lockup/build.sh b/lockup/build.sh index dc79e2db..1070bcba 100755 --- a/lockup/build.sh +++ b/lockup/build.sh @@ -1,6 +1,7 @@ #!/bin/bash set -e - -RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release +cd "`dirname $0`" +source ../flags.sh +cargo +stable build --target wasm32-unknown-unknown --release cp target/wasm32-unknown-unknown/release/lockup_contract.wasm res/ diff --git a/multisig/build.sh b/multisig/build.sh index bae2fd8c..12beccb2 100755 --- a/multisig/build.sh +++ b/multisig/build.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e - -RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release +source ../flags.sh +cargo +stable build --target wasm32-unknown-unknown --release cp target/wasm32-unknown-unknown/release/multisig.wasm ./res/ diff --git a/staking-pool-factory/build.sh b/staking-pool-factory/build.sh index 8e0a0bc1..195f2254 100755 --- a/staking-pool-factory/build.sh +++ b/staking-pool-factory/build.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e - -RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release +source ../flags.sh +cargo +stable build --target wasm32-unknown-unknown --release cp target/wasm32-unknown-unknown/release/staking_pool_factory.wasm ./res/ diff --git a/staking-pool/build.sh b/staking-pool/build.sh index f3c00ddc..a213bd09 100755 --- a/staking-pool/build.sh +++ b/staking-pool/build.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e - -RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release +source ../flags.sh +cargo +stable build --target wasm32-unknown-unknown --release cp target/wasm32-unknown-unknown/release/staking_pool.wasm ./res/ diff --git a/voting/build.sh b/voting/build.sh index bac89f04..49699bc3 100755 --- a/voting/build.sh +++ b/voting/build.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e - -RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release +source ../flags.sh +cargo +stable build --target wasm32-unknown-unknown --release cp target/wasm32-unknown-unknown/release/voting_contract.wasm ./res/ diff --git a/whitelist/build.sh b/whitelist/build.sh index 301e4912..14d96c8f 100755 --- a/whitelist/build.sh +++ b/whitelist/build.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e - -RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release +source ../flags.sh +cargo +stable build --target wasm32-unknown-unknown --release cp target/wasm32-unknown-unknown/release/whitelist.wasm ./res/