-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a32153
commit f0795d7
Showing
1 changed file
with
32 additions
and
0 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,32 @@ | ||
# zkSync Era JavaScript Examples | ||
|
||
Examples are made to demonstrate how [zksync-ethers](https://github.com/zksync-sdk/zksync-ethers) | ||
SDK can be used for development. The examples demonstrate how to: | ||
|
||
1. Deposit ETH from Ethereum to zkSync Era. | ||
2. Transfer ETH on zkSync Era. | ||
3. Withdraw ETH from zkSync Era to Ethereum. | ||
4. Deploy a smart contract using create opcode. | ||
5. Deploy a smart contract with constructor using create opcode. | ||
6. Deploy a smart contract with dependency using create opcode. | ||
7. Deploy a smart contract using create2 opcode. | ||
8. Deploy a smart contract with constructor using create2 opcode. | ||
9. Deploy a smart contract with dependency using create2 opcode. | ||
10. Deposit token from Ethereum into zkSync Era. | ||
11. Transfer token on zkSync Era. | ||
12. Withdraw token from zkSync Era to Ethereum. | ||
13. Deploy custom token on zkSync Era. | ||
14. Deploy smart account using create opcode. | ||
15. Deploy smart account using create2 opcode. | ||
16. Use paymaster to pay fee with token. | ||
|
||
Smart contract deployment use already generated bytecodes and ABIs and go bindings. | ||
There is a [user guide](../solidity/README.md) on how those artifacts | ||
are generated. Same approach can be used to generate required artifact | ||
for other smart contracts. | ||
|
||
## Setup | ||
|
||
```shell | ||
yarn install | ||
``` |