Skip to content

Commit 5af42fe

Browse files
committed
Fix after merge
Signed-off-by: deniallugo <[email protected]>
1 parent bf1766f commit 5af42fe

File tree

186 files changed

+11962
-8431
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+11962
-8431
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
ci_run zk db basic-setup
6666
ci_run zk run yarn
6767
68-
- name: liquidity-token
69-
run: docker-compose -f docker-compose-runner.yml restart dev-liquidity-token-watcher
68+
- name: restart dev-liquidity-token-watcher and dev-ticker
69+
run: docker-compose -f docker-compose-runner.yml restart dev-liquidity-token-watcher dev-ticker
7070

7171
- name: contracts-unit-tests
7272
run: ci_run zk test contracts
@@ -102,8 +102,8 @@ jobs:
102102
ci_run zk dummy-prover enable --no-redeploy
103103
ci_run zk init
104104
105-
- name: liquidity-token
106-
run: docker-compose -f docker-compose-runner.yml restart dev-liquidity-token-watcher
105+
- name: restart dev-liquidity-token-watcher and dev-ticker
106+
run: docker-compose -f docker-compose-runner.yml restart dev-liquidity-token-watcher dev-ticker
107107

108108
- name: run-services
109109
run: |
@@ -116,7 +116,9 @@ jobs:
116116
run: ci_run zk test i server
117117

118118
- name: integration-api
119-
run: ci_run zk test i api
119+
run: |
120+
ci_run zk test i api
121+
ci_run zk test i api-docs
120122
121123
- name: integration-zcli
122124
run: ci_run zk test i zcli

Cargo.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ members = [
3535
"core/lib/contracts",
3636
"core/lib/api_client",
3737
"core/lib/notifier",
38+
"core/lib/api_types",
3839
"core/lib/balancer",
3940

4041
# Test infrastructure

bin/api_docs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ -z "$1" ]; then
4+
cd $ZKSYNC_HOME
5+
yarn && yarn api-docs build
6+
else
7+
# can't start this with yarn since it has quirks with `--` as an argument
8+
node -- $ZKSYNC_HOME/infrastructure/api-docs/build/index.js "$@"
9+
fi

changelog/core.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ All notable changes to the core components will be documented in this file.
66

77
### Removed
88

9+
- (`api_server`): REST API v1.0.
10+
911
### Changed
1012

1113
- (`loadtest`): `zksync_fee` has been moved to `[main_wallet]` section from the `[network]` section.
@@ -16,6 +18,7 @@ All notable changes to the core components will be documented in this file.
1618
- (`api_server`): Make `submit_txs_batch` send only one signature request.
1719
- Fast withdrawals now can trigger aggregated block execution.
1820
- Replaced `anyhow` errors with typed errors in `lib/state`, `lib/crypto` and `lib/types`.
21+
- (`fee-ticker`): Batch fee now includes `zkp_fee` and `gas_fee`.
1922

2023
### Added
2124

@@ -30,6 +33,11 @@ All notable changes to the core components will be documented in this file.
3033
- (`api_server`): Support for accounts that don't have to pay fees (e.g. network service accounts) was added.
3134
- Added `BlockMetadata` structure and corresponding table to track block data that is not related to protocol.
3235
- (`block_revert`): CLI that calls `revertBlocks` smart contract function and updates the database respectively.
36+
- (`api_server`): Added REST API v0.2.
37+
- (`api_client`): Client for REST API v0.2.
38+
- (`api_types`): Crate for storing types that are used in API.
39+
- Added hashes for batches and additional hashes for priority operations.
40+
- Added `ForcedExit` fee type to REST API v0.2 and JSON RPC API.
3341

3442
### Fixed
3543

changelog/infrastructure.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ components, the logs will have the following format:
1515

1616
### Added
1717

18+
- (`api-docs`): tool for generating and testing API documentation. Docs are generated from a bunch of .apib files where
19+
API endpoints and their inputs/outputs are defined.
1820
- (`token_list_manager`): CLI for updating to new version of a previously saved list of trusted tokens.
19-
2021
- (`loadnext`): Crate, a new implementation of the loadtest for zkSync.
2122

2223
### Fixed

changelog/js-sdk.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,19 @@ All notable changes to `zksync.js` will be documented in this file.
99
- Methods for working with NFTs. You can read more [here](https://zksync.io/dev/nfts.html).
1010
- Methods for working with atomic swaps/limit orders. You can read more [here](https://zksync.io/dev/swaps.html).
1111

12+
- `RestProvider` class, that is used for queriing REST API v0.2.
13+
- `SyncProvider` interface: common interface for API v0.2 `RestProvider` and JSON RPC `Provider`.
14+
- Types for REST API v0.2.
15+
1216
### Changed
1317

1418
- `zksync-crypto` to support atomic swaps/limit orders functionality.
19+
- Changed type of `provider` field in `Wallet` class from `Provider` to `SyncProvider`.
20+
- `ForcedExit` fee type is used for `ForcedExit` transactions instead of `Withdraw` fee type.
21+
22+
### Deprecated
23+
24+
### Fixed
1525

1626
## Version 0.10.9 (13.04.2021)
1727

contracts/scripts/upgrade-testnet.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ async function main() {
2626
});
2727
parser.addArgument('--initArgs', {
2828
required: false,
29-
help: 'Upgrade function parameters comma-separated, RLP serialized in hex (Governance,Verifier,ZkSync): 0xaa..aa,0xbb..bb,0xcc..c or zero by default.',
29+
help:
30+
'Upgrade function parameters comma-separated, RLP serialized in hex (Governance,Verifier,ZkSync): 0xaa..aa,0xbb..bb,0xcc..c or zero by default.',
3031
defaultValue: '0x,0x,0x'
3132
});
3233
parser.addArgument('--cancelPreviousUpgrade', {

core/bin/data_restore/src/tests/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ fn create_deposit(from: Address, to: Address, amount: u32) -> ExecutedOperations
8585
deadline_block: 0,
8686
eth_hash: H256::zero(),
8787
eth_block: 0,
88+
eth_block_index: None,
8889
};
8990
let executed_deposit_op = ExecutedPriorityOp {
9091
priority_op: priority_operation,

core/bin/data_restore/src/tree_state.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ impl TreeState {
461461
deadline_block: 0,
462462
eth_hash: H256::zero(),
463463
eth_block: 0,
464+
eth_block_index: None,
464465
},
465466
block_index,
466467
created_at: chrono::Utc::now(),

0 commit comments

Comments
 (0)