Skip to content

Commit

Permalink
Merge branch 'main' into feature/localblockchain-sequencingEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Aug 25, 2022
2 parents 053e784 + 8d2ac6f commit d481882
Show file tree
Hide file tree
Showing 15 changed files with 2,575 additions and 412,983 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
npm run test:integration
- name: Publish to NPM if version has changed
uses: JS-DevTools/npm-publish@v1
if: github.ref == 'refs/heads/main'
with:
token: ${{ secrets.NPM_TOKEN }}
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: JS-DevTools/npm-publish@v1
if: github.ref == 'refs/heads/main'
with:
token: ${{ secrets.NPM_TOKEN }}
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}

Build-Web:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion MINA_COMMIT
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
The mina commit used to generate the backends for node and chrome is
4c810b1ece3a78dffdfddc32bc947bff718c47ec
74cf99913333910bb8814ac1c00decc05cddd436
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "snarkyjs",
"description": "JavaScript bindings for SnarkyJS",
"version": "0.5.0",
"version": "0.5.1",
"license": "Apache-2.0",
"main": "./dist/web/index.js",
"exports": {
Expand Down
16 changes: 8 additions & 8 deletions src/chrome_bindings/plonk_wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2295,8 +2295,6 @@ export interface InitOutput {
readonly caml_pasta_fq_plonk_proof_dummy: () => number;
readonly __wbg_wasmfqopeningproof_free: (a: number) => void;
readonly wasmfqopeningproof_set_sg: (a: number, b: number) => void;
readonly wasmfqprovercommitments_z_comm: (a: number) => number;
readonly wasmfqprovercommitments_t_comm: (a: number) => number;
readonly wasmfqprovercommitments_set_t_comm: (a: number, b: number) => void;
readonly wasmfqopeningproof_set_delta: (a: number, b: number) => void;
readonly wasmfqproverproof_set_evals1: (a: number, b: number) => void;
Expand All @@ -2311,6 +2309,8 @@ export interface InitOutput {
readonly caml_pasta_fq_plonk_proof_deep_copy: (a: number) => number;
readonly __wbg_wasmfqproofevaluations_free: (a: number) => void;
readonly wasmfqproverproof_set_commitments: (a: number, b: number) => void;
readonly wasmfqprovercommitments_z_comm: (a: number) => number;
readonly wasmfqprovercommitments_t_comm: (a: number) => number;
readonly wasmfqproverproof_set_evals0: (a: number, b: number) => void;
readonly wasmfqproverproof_set_proof: (a: number, b: number) => void;
readonly wasmfqopeningproof_sg: (a: number) => number;
Expand Down Expand Up @@ -2476,12 +2476,6 @@ export interface InitOutput {
readonly __wbg_set_wasmfqshifts_s0: (a: number, b: number, c: number) => void;
readonly __wbg_set_wasmfqplonkverifierindex_shifts: (a: number, b: number) => void;
readonly wasmfqplonkverifierindex_srs: (a: number) => number;
readonly wasmfqplonkverificationevals_generic_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_psm_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_complete_add_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_mul_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_emul_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_endomul_scalar_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_set_psm_comm: (a: number, b: number) => void;
readonly wasmfqplonkverificationevals_set_complete_add_comm: (a: number, b: number) => void;
readonly wasmfqplonkverificationevals_set_mul_comm: (a: number, b: number) => void;
Expand All @@ -2499,6 +2493,12 @@ export interface InitOutput {
readonly __wbg_get_wasmfqplonkverifierindex_max_quot_size: (a: number) => number;
readonly __wbg_get_wasmfqplonkverifierindex_public_: (a: number) => number;
readonly __wbg_get_wasmfqplonkverifierindex_prev_challenges: (a: number) => number;
readonly wasmfqplonkverificationevals_generic_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_psm_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_complete_add_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_mul_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_emul_comm: (a: number) => number;
readonly wasmfqplonkverificationevals_endomul_scalar_comm: (a: number) => number;
readonly __wbg_wasmfqdomain_free: (a: number) => void;
readonly __wbg_wasmfqshifts_free: (a: number) => void;
readonly __wbg_get_wasmfqplonkverifierindex_shifts: (a: number) => number;
Expand Down
16 changes: 8 additions & 8 deletions src/chrome_bindings/plonk_wasm_bg.wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ export function caml_pasta_fq_plonk_proof_batch_verify(a: number, b: number, c:
export function caml_pasta_fq_plonk_proof_dummy(): number;
export function __wbg_wasmfqopeningproof_free(a: number): void;
export function wasmfqopeningproof_set_sg(a: number, b: number): void;
export function wasmfqprovercommitments_z_comm(a: number): number;
export function wasmfqprovercommitments_t_comm(a: number): number;
export function wasmfqprovercommitments_set_t_comm(a: number, b: number): void;
export function wasmfqopeningproof_set_delta(a: number, b: number): void;
export function wasmfqproverproof_set_evals1(a: number, b: number): void;
Expand All @@ -321,6 +319,8 @@ export function __wbg_wasmfqproverproof_free(a: number): void;
export function caml_pasta_fq_plonk_proof_deep_copy(a: number): number;
export function __wbg_wasmfqproofevaluations_free(a: number): void;
export function wasmfqproverproof_set_commitments(a: number, b: number): void;
export function wasmfqprovercommitments_z_comm(a: number): number;
export function wasmfqprovercommitments_t_comm(a: number): number;
export function wasmfqproverproof_set_evals0(a: number, b: number): void;
export function wasmfqproverproof_set_proof(a: number, b: number): void;
export function wasmfqopeningproof_sg(a: number): number;
Expand Down Expand Up @@ -486,12 +486,6 @@ export function __wbg_set_wasmfpshifts_s0(a: number, b: number, c: number): void
export function __wbg_set_wasmfqshifts_s0(a: number, b: number, c: number): void;
export function __wbg_set_wasmfqplonkverifierindex_shifts(a: number, b: number): void;
export function wasmfqplonkverifierindex_srs(a: number): number;
export function wasmfqplonkverificationevals_generic_comm(a: number): number;
export function wasmfqplonkverificationevals_psm_comm(a: number): number;
export function wasmfqplonkverificationevals_complete_add_comm(a: number): number;
export function wasmfqplonkverificationevals_mul_comm(a: number): number;
export function wasmfqplonkverificationevals_emul_comm(a: number): number;
export function wasmfqplonkverificationevals_endomul_scalar_comm(a: number): number;
export function wasmfqplonkverificationevals_set_psm_comm(a: number, b: number): void;
export function wasmfqplonkverificationevals_set_complete_add_comm(a: number, b: number): void;
export function wasmfqplonkverificationevals_set_mul_comm(a: number, b: number): void;
Expand All @@ -509,6 +503,12 @@ export function __wbg_get_wasmfqplonkverifierindex_max_poly_size(a: number): num
export function __wbg_get_wasmfqplonkverifierindex_max_quot_size(a: number): number;
export function __wbg_get_wasmfqplonkverifierindex_public_(a: number): number;
export function __wbg_get_wasmfqplonkverifierindex_prev_challenges(a: number): number;
export function wasmfqplonkverificationevals_generic_comm(a: number): number;
export function wasmfqplonkverificationevals_psm_comm(a: number): number;
export function wasmfqplonkverificationevals_complete_add_comm(a: number): number;
export function wasmfqplonkverificationevals_mul_comm(a: number): number;
export function wasmfqplonkverificationevals_emul_comm(a: number): number;
export function wasmfqplonkverificationevals_endomul_scalar_comm(a: number): number;
export function __wbg_wasmfqdomain_free(a: number): void;
export function __wbg_wasmfqshifts_free(a: number): void;
export function __wbg_get_wasmfqplonkverifierindex_shifts(a: number): number;
Expand Down
56 changes: 28 additions & 28 deletions src/chrome_bindings/snarky_js_chrome.bc.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lib/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ type FlexibleAccount = {

// TODO provedState
const accountQuery = (publicKey: string, tokenId: string) => `{
account(publicKey: "${publicKey}", tokenId: "${tokenId}") {
account(publicKey: "${publicKey}", token: "${tokenId}") {
publicKey
nonce
zkappUri
Expand Down
Loading

0 comments on commit d481882

Please sign in to comment.