Skip to content

Commit 75c14c9

Browse files
authored
Rebrand SnarkyJS to o1js (#481)
1 parent 216b515 commit 75c14c9

29 files changed

+126
-119
lines changed

CHANGELOG.md

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.11.2] - 2023-09-05
9+
10+
### Changed
11+
12+
- Update all instances of `SnarkyJS` to `o1js` throught the CLI to coincide with the rebrand of the package [#481](https://github.com/o1-labs/zkapp-cli/pull/481)
13+
814
## [0.11.1] - 2023-08-16
915

1016
### Added
@@ -21,8 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2127
### Changed
2228

2329
- Release `0.11.0` [#459](https://github.com/o1-labs/zkapp-cli/pull/459)
24-
- SnarkyJS minor version dependency updated in cli package.json to 0.12.\*.
25-
- SnarkyJS minor version peer dependency updated in template/example contract package.json to 0.12.\*.
30+
- o1js minor version dependency updated in cli package.json to 0.12.\*.
31+
- o1js minor version peer dependency updated in template/example contract package.json to 0.12.\*.
2632

2733
## [0.10.2] - 2023-07-09
2834

@@ -62,8 +68,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6268
### Changed
6369

6470
- Release `0.9.0` [#426](https://github.com/o1-labs/zkapp-cli/pull/426)
65-
- SnarkyJS minor version dependency updated in cli package.json to 0.11.\*.
66-
- SnarkyJS minor version peer dependency updated in template/example contract package.json to 0.11.\*.
71+
- o1js minor version dependency updated in cli package.json to 0.11.\*.
72+
- o1js minor version peer dependency updated in template/example contract package.json to 0.11.\*.
6773
- Replace deprecated `Circuit.if` with `Provable.if` in the `tictactoe` example.
6874
- Replace deprecated `Circuit.array` with `Provable.Array` in the `sudoku` example.
6975

@@ -87,7 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8793

8894
- Remove deprecated isReady and shutdown from cli, template/examples contracts, and UI scaffolds for each supported framework.
8995
- Add state.getAndAssertEquals() to examples and test contracts.
90-
- Configure UI scaffolds for NextJS, Svelte, and Nuxt to support top-level await used in the latest SnarkyJS release.
96+
- Configure UI scaffolds for NextJS, Svelte, and Nuxt to support top-level await used in the latest o1js release.
9197
- Exit the cli config and deploy processes on success and error.
9298
- Increase the template/example project jest test timeout.
9399

@@ -127,23 +133,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
127133

128134
### Changed
129135

130-
- Updates the template projects to use the SnarkyJS version of `0.9.*`. [#376](https://github.com/o1-labs/zkapp-cli/pull/376)
136+
- Updates the template projects to use the o1js version of `0.9.*`. [#376](https://github.com/o1-labs/zkapp-cli/pull/376)
131137

132138
## [0.7.2] - 2023-03-07
133139

134140
### Changed
135141

136-
- Upgraded SnarkyJS to `0.9.2`. [#367](https://github.com/o1-labs/zkapp-cli/pull/367)
142+
- Upgraded o1js to `0.9.2`. [#367](https://github.com/o1-labs/zkapp-cli/pull/367)
137143

138144
## [0.7.1] - 2023-02-27
139145

140-
- Update for snarkyjs state getting fix. [#367](https://github.com/o1-labs/zkapp-cli/pull/367)
146+
- Update for o1js state getting fix. [#367](https://github.com/o1-labs/zkapp-cli/pull/367)
141147

142148
## [0.7.0] - 2023-02-14
143149

144150
### Changed
145151

146-
- Upgraded SnarkyJS to `0.9.0`. [#367](https://github.com/o1-labs/zkapp-cli/pull/367)
152+
- Upgraded o1js to `0.9.0`. [#367](https://github.com/o1-labs/zkapp-cli/pull/367)
147153

148154
## [0.6.3] - 2023-02-14
149155

@@ -169,13 +175,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
169175

170176
### Changed
171177

172-
- Upgraded SnarkyJS to `0.8.0`. [#349](https://github.com/o1-labs/zkapp-cli/pull/347)
178+
- Upgraded o1js to `0.8.0`. [#349](https://github.com/o1-labs/zkapp-cli/pull/347)
173179

174180
## [0.5.5] - 2023-01-011
175181

176182
### Changed
177183

178-
- Fix to show SnarkyJS version with `zk system` command. [#349](https://github.com/o1-labs/zkapp-cli/pull/349)
184+
- Fix to show o1js version with `zk system` command. [#349](https://github.com/o1-labs/zkapp-cli/pull/349)
179185
- Allow '.js' imports to work in Jest. [#339](https://github.com/o1-labs/zkapp-cli/pull/339)
180186
- Minor fix to exit the cli process after generating a new project. [#330](https://github.com/o1-labs/zkapp-cli/pull/330)
181187

@@ -195,28 +201,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
195201

196202
### Changed
197203

198-
- Fix template contract, add interaction script, and upgrade to SnarkyJS `0.7.3`. [#320](https://github.com/o1-labs/zkapp-cli/pull/320)
204+
- Fix template contract, add interaction script, and upgrade to o1js `0.7.3`. [#320](https://github.com/o1-labs/zkapp-cli/pull/320)
199205
- Fix tictactoe example. [#318](https://github.com/o1-labs/zkapp-cli/pull/318)
200206

201207
## [0.5.2]
202208

203209
### Changed
204210

205-
- Upgraded SnarkyJS to `0.7.2` [#316](https://github.com/o1-labs/zkapp-cli/pull/316)
211+
- Upgraded o1js to `0.7.2` [#316](https://github.com/o1-labs/zkapp-cli/pull/316)
206212
- Fix Sudoku and enable CLI to create init() proofs. [#315](https://github.com/o1-labs/zkapp-cli/pull/315)
207213

208214
## [0.5.1]
209215

210216
### Changed
211217

212-
- Upgraded SnarkyJS to `0.7.1`. [#309](https://github.com/o1-labs/zkapp-cli/pull/309)
218+
- Upgraded o1js to `0.7.1`. [#309](https://github.com/o1-labs/zkapp-cli/pull/309)
213219
- Fix GraphQL error handling. [#307](https://github.com/o1-labs/zkapp-cli/pull/307/files)
214220

215221
## [0.5.0]
216222

217223
### Changed
218224

219-
- Upgraded SnarkyJS to `0.7.0`. [#306](https://github.com/o1-labs/zkapp-cli/pull/306)
225+
- Upgraded o1js to `0.7.0`. [#306](https://github.com/o1-labs/zkapp-cli/pull/306)
220226
- Update tsconfig ES target. [#303](https://github.com/o1-labs/zkapp-cli/pull/303)
221227

222228
### Added
@@ -242,7 +248,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
242248

243249
- Add an option to NextJS to set it up for github pages. [#292](https://github.com/o1-labs/zkapp-cli/pull/292)
244250
- Import a smart contract into the NextJS UI project scaffold. [#290](https://github.com/o1-labs/zkapp-cli/pull/290)
245-
- Fixes to the NextJS project for snarkyjs + typescript. [#287](https://github.com/o1-labs/zkapp-cli/pull/287)
251+
- Fixes to the NextJS project for o1js + typescript. [#287](https://github.com/o1-labs/zkapp-cli/pull/287)
246252
- Add a NextJS typescript prompt. [#285](https://github.com/o1-labs/zkapp-cli/pull/285)
247253
- Add COOP & COEP headers for SvelteKit, NextJS, & NuxtJS. [#279](https://github.com/o1-labs/zkapp-cli/pull/279)
248254
- Working mvp of UI monorepo. [#266](https://github.com/o1-labs/zkapp-cli/pull/266)
@@ -265,8 +271,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
265271

266272
### Changed
267273

268-
- Upgraded SnarkyJS to `0.6.0`. [#249](https://github.com/o1-labs/zkapp-cli/pull/249)
269-
- Renamed the references of Party to AccountUpdate and parties to zkappCommand in CLI and template/examples to match changes in Mina Protocol and SnarkyJS.
274+
- Upgraded o1js to `0.6.0`. [#249](https://github.com/o1-labs/zkapp-cli/pull/249)
275+
- Renamed the references of Party to AccountUpdate and parties to zkappCommand in CLI and template/examples to match changes in Mina Protocol and o1js.
270276

271277
## [0.4.7] - 2022-06-14
272278

@@ -277,7 +283,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
277283

278284
### Changed
279285

280-
- Upgraded SnarkyJS to `0.4.1`. [#207](https://github.com/o1-labs/zkapp-cli/pull/207)
286+
- Upgraded o1js to `0.4.1`. [#207](https://github.com/o1-labs/zkapp-cli/pull/207)
281287
- Renamed the deploy parameter `network` to `alias`. [#218](https://github.com/o1-labs/zkapp-cli/pull/218)
282288
- Updated template and example file structure to support publishing to npm. [#213](https://github.com/o1-labs/zkapp-cli/pull/213)
283289
- Fixed bug with CI not cleaning up node_modules after testing. [#219](https://github.com/o1-labs/zkapp-cli/pull/219)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Welcome to the Mina zkApp CLI open source repository. Thank you for being a part of the Mina ecosystem and for your interest in contributing to the Mina zkApp CLI project.
44

5-
SnarkyJS helps developers build apps powered by zero-knowledge (zk) cryptography. The best way to get started with SnarkyJS is to use the Mina zkApp CLI to [write a zkApp](https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp).
5+
o1js helps developers build apps powered by zero-knowledge (zk) cryptography. The best way to get started with o1js is to use the Mina zkApp CLI to [write a zkApp](https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp).
66

77
The best way to contribute to the Mina zkApp CLI is to help us test it broadly to ensure it works as expected on all platforms.
88

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The Mina zkApp CLI allows you to scaffold, write, test, and deploy zkApps (zero knowledge apps) for [Mina Protocol](https://minaprotocol.com/) using recommended best practices.
44

5-
Apps are written using [SnarkyJS](https://docs.minaprotocol.com/en/zkapps/snarkyjs-reference), a TypeScript framework for writing zero knowledge proof-based smart contracts. SnarkyJS is automatically included when you create a project using the Mina zkApp CLI.
5+
Apps are written using [o1js](https://docs.minaprotocol.com/en/zkapps/o1js-reference), a TypeScript framework for writing zero knowledge proof-based smart contracts. o1js is automatically included when you create a project using the Mina zkApp CLI.
66

77
## Getting Started
88

@@ -44,7 +44,7 @@ $ npm update -g zkapp-cli
4444

4545
### Dependencies
4646

47-
To use the zkApp CLI and SnarkyJS, your environment requires:
47+
To use the zkApp CLI and o1js, your environment requires:
4848

4949
- NodeJS v16 and later
5050
- NPM v8 and later

examples/sudoku/ts/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
import { Sudoku, SudokuZkApp } from './sudoku.js';
1313
import { cloneSudoku, generateSudoku, solveSudoku } from './sudoku-lib.js';
14-
import { AccountUpdate, Mina, PrivateKey } from 'snarkyjs';
14+
import { AccountUpdate, Mina, PrivateKey } from 'o1js';
1515

1616
// setup
1717
const Local = Mina.LocalBlockchain();

examples/sudoku/ts/src/sudoku.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Sudoku, SudokuZkApp } from './sudoku';
22
import { cloneSudoku, generateSudoku, solveSudoku } from './sudoku-lib';
3-
import { PrivateKey, PublicKey, Mina, AccountUpdate } from 'snarkyjs';
3+
import { PrivateKey, PublicKey, Mina, AccountUpdate } from 'o1js';
44

55
describe('sudoku', () => {
66
let zkApp: SudokuZkApp,

examples/sudoku/ts/src/sudoku.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
Poseidon,
99
Struct,
1010
Provable,
11-
} from 'snarkyjs';
11+
} from 'o1js';
1212

1313
export { Sudoku, SudokuZkApp };
1414

examples/tictactoe/ts/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
Mina,
1818
AccountUpdate,
1919
Signature,
20-
} from 'snarkyjs';
20+
} from 'o1js';
2121
import { TicTacToe, Board } from './tictactoe.js';
2222

2323
let Local = Mina.LocalBlockchain({ proofsEnabled: false });

examples/tictactoe/ts/src/tictactoe.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Mina,
88
AccountUpdate,
99
Signature,
10-
} from 'snarkyjs';
10+
} from 'o1js';
1111

1212
describe('tictactoe', () => {
1313
let player1: PublicKey,

examples/tictactoe/ts/src/tictactoe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
Provable,
1414
Signature,
1515
Struct,
16-
} from 'snarkyjs';
16+
} from 'o1js';
1717

1818
export { Board, TicTacToe };
1919

package-lock.json

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)