File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -Eeuo pipefail
33
4+ # Description:
5+ # Regenerates the TypeScript binding constants and Mina transaction layout
6+ # definitions used by o1js. This script:
7+ # - Removes previously compiled files:
8+ # - `_build/default/src/bindings/crypto/constants.ts`
9+ # - `_build/default/src/bindings/mina-transaction/gen/`
10+ # - Rebuilds the constants and transaction layout TypeScript definitions
11+ # from the OCaml/Dune sources:
12+ # - `src/bindings/mina-transaction/gen/v1/js-layout.ts`
13+ # - `src/bindings/mina-transaction/gen/v2/js-layout.ts`
14+ # - `src/bindings/crypto/constants.ts`
15+ # - Formats all generated TypeScript files using `prettier` for consistency.
16+ #
17+ # Note:
18+ # - This script ensures TypeScript bindings reflect the latest Mina protocol constants
19+ # and transaction layout definitions used internally by o1js.
20+ #
21+ # Usage:
22+ # npm run build:bindings-transaction-layout
23+
24+
425SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
526ROOT_DIR=" $( cd " $SCRIPT_DIR /../../.." && pwd) "
627CRYPTO_CONSTANTS=" $ROOT_DIR /_build/default/src/bindings/crypto/constants.ts"
You can’t perform that action at this time.
0 commit comments