Skip to content

Commit 664682b

Browse files
authored
Merge pull request #2219 from o1-labs/chore/rename-clarity-snarky
Rename `snarky.js` -> `bindings.js` for clarity
2 parents 89924ec + 0328fc3 commit 664682b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+47
-47
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
./dune-project
255255
./.prettierrc.cjs
256256
./src/build
257-
./src/snarky.d.ts
257+
./src/bindings.d.ts
258258
];
259259
});
260260
inherit (inputs.mina.devShells."${system}".default)
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/bindings/crypto/bindings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This file contains bindings for JSOO written in TS and integrated with our normal code base.
33
* It is exposed to JSOO by populating a global variable with an object.
4-
* It gets imported as the first thing in ../../snarky.js so that the global variable is ready by the time JSOO code gets executed.
4+
* It gets imported as the first thing in ../../bindings.js so that the global variable is ready by the time JSOO code gets executed.
55
*/
66
import { prefixHashes, prefixHashesLegacy } from '../crypto/constants.js';
77
import { Bigint256Bindings } from './bindings/bigint256.js';

src/bindings/crypto/poseidon.unit-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { testPoseidonLegacyFp } from './test-vectors/poseidon-legacy.js';
44
import { expect } from 'expect';
55
import { bigIntToBytes, parseHexString32 } from './bigint-helpers.js';
66
import { test, Random } from '../../lib/testing/property.js';
7-
import { Test } from '../../snarky.js';
7+
import { Test } from '../../bindings.js';
88
import { FieldConst } from '../../lib/provable/core/fieldvar.js';
99
import { MlArray } from '../../lib/ml/base.js';
1010
import { Fp } from './finite-field.js';

src/build/build-web.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ async function buildWeb({ production }) {
4848
// copy over pure js files
4949
await copy({
5050
'./src/bindings/compiled/web_bindings/': './dist/web/web_bindings/',
51-
'./src/snarky.d.ts': './dist/web/snarky.d.ts',
52-
'./src/snarky.web.js': './dist/web/snarky.js',
51+
'./src/bindings.d.ts': './dist/web/bindings.d.ts',
52+
'./src/bindings.web.js': './dist/web/bindings.js',
5353
'./src/bindings/js/web/': './dist/web/bindings/js/web/',
5454
});
5555

src/build/copy-to-dist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { copyFromTo } from './utils.js';
33

44
await copyFromTo(
55
[
6-
'src/snarky.d.ts',
6+
'src/bindings.d.ts',
77
'src/bindings/compiled/_node_bindings',
88
'src/bindings/compiled/node_bindings/plonk_wasm.d.cts',
99
],

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { TupleN } from './lib/util/types.js';
22
export type { ProvablePure } from './lib/provable/types/provable-intf.js';
3-
export { Ledger, initializeBindings } from './snarky.js';
3+
export { Ledger, initializeBindings } from './bindings.js';
44
export { Field, Bool, Group, Scalar } from './lib/provable/wrapped.js';
55
export {
66
createForeignField,

src/lib/mina/v1/account-update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { cloneCircuitValue, FlexibleProvable, StructNoJson } from '../../provabl
22
import { provable, provableExtends, provablePure } from '../../provable/types/provable-derivers.js';
33
import { memoizationContext, memoizeWitness, Provable } from '../../provable/provable.js';
44
import { Field, Bool } from '../../provable/wrapped.js';
5-
import { Pickles } from '../../../snarky.js';
5+
import { Pickles } from '../../../bindings.js';
66
import { jsLayout } from '../../../bindings/mina-transaction/gen/v1/js-layout.js';
77
import { Types, toJSONEssential } from '../../../bindings/mina-transaction/v1/types.js';
88
import { PrivateKey, PublicKey } from '../../provable/crypto/signature.js';

0 commit comments

Comments
 (0)