Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-es committed Oct 4, 2020
2 parents dd3a7a6 + 504d149 commit 6fd3426
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "0.4.6",
"version": "0.4.7",
"npmClient": "yarn",
"command": {
"publish": {
Expand Down
2 changes: 1 addition & 1 deletion packages/actus-solidity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atpar/actus-solidity",
"version": "0.4.5",
"version": "0.4.7",
"description": "ACTUS smart contracts",
"author": "atpar AG",
"authors": [
Expand Down
Binary file added packages/ap-contracts/ap-chain-snapshot.tar.gz
Binary file not shown.
7 changes: 4 additions & 3 deletions packages/ap-contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atpar/ap-contracts",
"version": "0.4.6",
"version": "0.4.7",
"description": "ACTUS protocol smart contracts",
"author": "jo-es <johannes.escherich+github@atpar.io>",
"homepage": "https://github.com/atpar/ap-monorepo#readme",
Expand Down Expand Up @@ -28,9 +28,10 @@
"registry": "https://npm.pkg.github.com/"
},
"scripts": {
"build": "npm run compile && npm run generate-ts-bindings",
"build": "npm run compile && npm run generate-ts-bindings && npm run generate-ap-chain-snapshot",
"compile": "node --max-old-space-size=4096 ./node_modules/.bin/buidler compile",
"coverage": "node --max-old-space-size=4096 ./node_modules/.bin/buidler coverage",
"generate-ap-chain-snapshot": "./scripts/setup-ap-chain.sh --take-snapshot",
"generate-ts-bindings": "rm -rf ./ts-bindings && typechain --target web3-v1 --outDir ./ts-bindings './build/contracts/*.json'",
"lint": "solhint contracts/**/*.sol",
"lint:fix": "solhint contracts/**/*.sol --fix",
Expand All @@ -47,7 +48,7 @@
"**/web3-eth-contract": "1.2.4"
},
"dependencies": {
"@atpar/actus-solidity": "0.4.5",
"@atpar/actus-solidity": "0.4.7",
"@nomiclabs/buidler": "1.4.3",
"@nomiclabs/buidler-web3": "^1.3.4",
"@openzeppelin/contracts-ethereum-package": "^3.0.0",
Expand Down
12 changes: 11 additions & 1 deletion packages/ap-contracts/scripts/setup-ap-chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,24 @@ npx --quiet ganache-cli \
--gasLimit "8000000" \
--defaultBalanceEther "5000000000" \
--deterministic --mnemonic "helmet copy pause hood gun soon fork drum educate curious despair embrace" \
`if [[ $* == *--take-snapshot* ]]; then echo --db "./ap-chain-snapshot/db"; fi` \
1>/dev/null &

ganache_pid=$!

sleep 1

[ "$1" == "--no-deploy" ] || \
if [[ $* != *--no-deploy* ]]; then
npx --quiet buidler deploy --network ap-chain --tags deploy-ap-chain
fi

if [[ $* == *--take-snapshot* ]]; then
sleep 3
tar -zcf ap-chain-snapshot.tar.gz ap-chain-snapshot
rm -r ap-chain-snapshot
echo "✓ created snapshot"
exit 0
fi

echo "✓ ready"

Expand Down
4 changes: 2 additions & 2 deletions packages/ap.js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atpar/ap.js",
"version": "0.4.6",
"version": "0.4.7",
"description": "Typescript Library for interacting with the ACTUS protocol",
"author": "jo-es <johannes.escherich+github@atpar.io>",
"homepage": "https://github.com/atpar/ap-monorepo#readme",
Expand Down Expand Up @@ -33,7 +33,7 @@
"**/web3-eth-contract": "1.2.4"
},
"dependencies": {
"@atpar/ap-contracts": "0.4.6",
"@atpar/ap-contracts": "0.4.7",
"@types/eth-sig-util": "^2.1.0",
"@types/socket.io": "^2.1.2",
"@types/socket.io-client": "^1.4.32",
Expand Down

0 comments on commit 6fd3426

Please sign in to comment.