forked from matter-labs/zksync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/new_rollup_dev' into circuit_pro…
…totype # Conflicts: # Cargo.lock # Cargo.toml # core/circuit/Cargo.toml # core/circuit/src/cheque/bitwindow.rs # core/circuit/src/cheque/mod.rs # core/circuit/src/deposit/circuit.rs # core/circuit/src/deposit/deposit_request.rs # core/circuit/src/deposit/mod.rs # core/circuit/src/encoder.rs # core/circuit/src/exit/circuit.rs # core/circuit/src/exit/exit_request.rs # core/circuit/src/exit/mod.rs # core/circuit/src/leaf.rs # core/circuit/src/lib.rs # core/circuit/src/plasma_constants.rs # core/circuit/src/transfer/circuit.rs # core/circuit/src/transfer/mod.rs # core/circuit/src/transfer/transaction.rs # core/key_generator/src/depositor_key.rs # core/key_generator/src/exitor_key.rs # core/key_generator/src/main.rs # core/key_generator/src/read_write_keys.rs # core/key_generator/src/transactor_key.rs # core/key_generator/src/vk_contract_generator.rs # core/models/src/abi.rs # core/models/src/plasma/account.rs # core/models/src/plasma/block.rs # core/models/src/plasma/mod.rs # core/models/src/plasma/params.rs # core/models/src/plasma/tx.rs # core/plasma/src/state.rs # core/prover/src/main.rs # core/sandbox/Cargo.toml # core/sandbox/src/main.rs # core/sandbox/src/nonce_futures.rs # core/server/src/api_server.rs # core/server/src/eth_sender.rs # core/server/src/eth_watch.rs # core/server/src/nonce_futures.rs # core/server/src/state_keeper.rs # core/storage/src/lib.rs
- Loading branch information
Showing
188 changed files
with
14,420 additions
and
11,327 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
stages: | ||
- build | ||
- tests | ||
|
||
.rust-template: &rust-template | ||
before_script: | ||
- rustup --version | ||
- rustc --version | ||
- cargo --version | ||
tags: | ||
- franklin | ||
|
||
compile: | ||
image: 'registry.mattr.network/devops/images/rust_night' | ||
cache: | ||
key: ${CI_COMMIT_REF_SLUG} | ||
paths: | ||
- target/ | ||
<<: *rust-template | ||
stage: build | ||
script: | ||
- cargo fmt --all -- --check | ||
- cargo build --verbose | ||
only: | ||
- master | ||
- merge_requests | ||
|
||
tests: | ||
image: 'registry.mattr.network/devops/images/rust_night' | ||
cache: | ||
key: ${CI_COMMIT_REF_SLUG} | ||
paths: | ||
- target/ | ||
policy: pull | ||
<<: *rust-template | ||
stage: tests | ||
when: manual | ||
script: | ||
- cargo clippy --tests --benches -- -D warnings | ||
- cargo test --verbose | ||
only: | ||
- master | ||
- merge_requests |
Large diffs are not rendered by default.
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
File renamed without changes.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
. .setup_env | ||
|
||
# // TODO key generation | ||
# KEY_FILES=$CONTRACT_KEY_FILES | ||
# .load_keys | ||
# | ||
# mkdir -p contracts/contracts/keys/ | ||
# cp -f $KEY_DIR/*.sol contracts/contracts/keys/ | ||
|
||
echo redeploying for the db $DATABASE_URL | ||
cd contracts | ||
yarn deploy | tee ../deploy.log | ||
cd .. | ||
|
||
export LABEL=$FRANKLIN_ENV-`date +%Y-%m-%d-%H%M%S` | ||
|
||
export NEW_CONTRACT=`cat deploy.log | grep "Franklin address" | grep -oE '0x(.+)' | sed -n "s/0x//p"` | ||
|
||
|
||
if [[ ! -z "$NEW_CONTRACT" ]] | ||
then | ||
echo New contract at $NEW_CONTRACT | ||
|
||
OLD_CONTRACT=`grep "^CONTRACT_ADDR" ./$ENV_FILE | grep -oE '=(.+)' | sed -n "s/=//p"` | ||
echo Old contract at $OLD_CONTRACT | ||
|
||
mkdir -p logs/$LABEL/ | ||
cp deploy.log logs/$LABEL/deploy.log | ||
cp ./$ENV_FILE logs/$LABEL/$FRANKLIN_ENV.bak | ||
|
||
sed -i".bak" "s/^CONTRACT_ADDR=$OLD_CONTRACT/CONTRACT_ADDR=$NEW_CONTRACT/g" ./$ENV_FILE | ||
|
||
echo successfully deployed contracts | ||
|
||
else | ||
echo "Contract deployment failed" | ||
exit 1 | ||
fi |
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/build | ||
/contracts/keys | ||
# /contracts/keys | ||
/flat |
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,8 @@ | ||
{ | ||
"extends": "solhint:default", | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"no-inline-assembly": false | ||
} | ||
} |
Oops, something went wrong.