This tutorial helps you learn about types you can use when building with o1js. Earlier tutorials mostly use the Field
type. o1js provides other higher-order types built from Fields that are useful for zkApp development and expand the possibilities for more applications.
- o1js: 0.15.2
For the step-by-step tutorial, see Tutorial 5: Common Types And Functions.
-
Clone the repository:
git clone https://github.com/o1-labs/docs2.git
-
Change directory to the project location:
cd docs2/examples/zkapps/05-common-types-and-functions
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Run the compiled code:
node build/src/main.js
To run and build the compiled code with a single command:
npm run build && node build/src/main.js
22-January-2024