You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ Depending on your use-cases, we have several optional dependencies:
44
44
- You can use [hollowdb-prover](https://www.npmjs.com/package/hollowdb-prover) as a simple utility that generates zero-knowledge proofs that are verifiable by HollowDB.
45
45
- You can use LMDB cache within your Warp instance via [warp-contracts-lmdb](https://www.npmjs.com/package/warp-contracts-lmdb).
46
46
- You can use Redis cache within your warp instance via [warp-contracts-redis](https://www.npmjs.com/package/warp-contracts-redis) together with [ioredis](https://www.npmjs.com/package/ioredis).
47
+
- When you are evaluating a contract that uses ZK proofs, you should also use [warp-contracts-plugin-snarkjs](https://www.npmjs.com/package/warp-contracts-plugin-snarkjs) and [warp-contracts-plugin-ethers](https://www.npmjs.com/package/warp-contracts-plugin-ethers).
Thanks to the file structure we are using here, you do not need to worry about paths to your contracts or their initial states. When you provide a contract name with `-n` option, the CLI knows to look for the contract source code at `./src/contracts/<name>.contract.ts` and such.
@@ -71,7 +73,7 @@ A SmartWeave contract for Warp Contracts is basically a single JS file that expo
71
73
To begin creating your own contract, simply do:
72
74
73
75
```sh
74
-
yarn contract create -n your-new-contract
76
+
pnpm contract create -n your-new-contract
75
77
```
76
78
77
79
Within your newly created contract, you can modify the existing functions or add your own.
@@ -235,4 +237,4 @@ Within this directory:
235
237
-`states` has the initial state for each contract.
236
238
-`types` has types, as usual in TypeScript.
237
239
-`utils` has common utility functions, such as proof verification.
238
-
- the remaining files with `.contract.ts` extension are the smart-contracts, and when you run `yarn contract:build` they will be detected and built.
240
+
- the remaining files with `.contract.ts` extension are the smart-contracts, and when you run `pnpm contractbuild` they will be detected and built.
0 commit comments