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.
Add commands to check md style with prettier and markdownlint
- Loading branch information
Showing
24 changed files
with
1,081 additions
and
697 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,8 @@ | ||
{ | ||
"default": true, | ||
"header-increment": false, | ||
"no-duplicate-header": false, | ||
"no-inline-html": false, | ||
"line-length": false, | ||
"fenced-code-language": false | ||
} |
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 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,28 +1,23 @@ | ||
# zkSync types. Essential types for the zkSync network | ||
|
||
`zksync_types` is a crate containing essential zkSync network types, such as transactions, operations and | ||
blockchain primitives. | ||
`zksync_types` is a crate containing essential zkSync network types, such as transactions, operations and blockchain | ||
primitives. | ||
|
||
zkSync operations are split into the following categories: | ||
|
||
- **transactions**: operations of zkSync network existing purely in the L2. | ||
Currently includes `Transfer`, `Withdraw`, `ChangePubKey` and `ForcedExit`. | ||
All the transactions form an enum named `ZkSyncTx`. | ||
- **priority operations**: operations of zkSync network which are triggered by | ||
invoking the zkSync smart contract method in L1. These operations are discovered by | ||
the zkSync server and included into the block just like L2 transactions. | ||
Currently includes `Deposit` and `FullExit`. | ||
All the priority operations form an enum named `ZkSyncPriorityOp`. | ||
- **operations**: a superset of `ZkSyncTx` and `ZkSyncPriorityOp`. | ||
All the operations are included into an enum named `ZkSyncOp`. This enum contains | ||
all the items that can be included into the block, together with meta-information | ||
about each transaction. | ||
Main difference of operation from transaction/priority operation is that it can form | ||
public data required for the committing the block on the L1. | ||
- **transactions**: operations of zkSync network existing purely in the L2. Currently includes `Transfer`, `Withdraw`, | ||
`ChangePubKey` and `ForcedExit`. All the transactions form an enum named `ZkSyncTx`. | ||
- **priority operations**: operations of zkSync network which are triggered by invoking the zkSync smart contract method | ||
in L1. These operations are discovered by the zkSync server and included into the block just like L2 transactions. | ||
Currently includes `Deposit` and `FullExit`. All the priority operations form an enum named `ZkSyncPriorityOp`. | ||
- **operations**: a superset of `ZkSyncTx` and `ZkSyncPriorityOp`. All the operations are included into an enum named | ||
`ZkSyncOp`. This enum contains all the items that can be included into the block, together with meta-information about | ||
each transaction. Main difference of operation from transaction/priority operation is that it can form public data | ||
required for the committing the block on the L1. | ||
|
||
## License | ||
|
||
`zksync_models` is a part of zkSync stack, which is distributed under the terms of both the MIT license | ||
and the Apache License (Version 2.0). | ||
`zksync_models` is a part of zkSync stack, which is distributed under the terms of both the MIT license and the Apache | ||
License (Version 2.0). | ||
|
||
See [LICENSE-APACHE](../../LICENSE-APACHE), [LICENSE-MIT](../../LICENSE-MIT) for details. |
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
Oops, something went wrong.