@ozkarjs/vhir
Advanced tools
Comparing version 0.2.2 to 0.2.4
@@ -5,3 +5,3 @@ import { ObservationShare } from './ObservationShare'; | ||
import { it, describe, beforeAll } from '@jest/globals'; | ||
import { linearizeJson, linearDataToMerkleMap, } from '../../src/utils/jsonParser'; | ||
import { linearizeJson, linearDataToMerkleMap } from '../utils/jsonParser'; | ||
/* | ||
@@ -8,0 +8,0 @@ * This file specifies how to test the `Add` example smart contract. It is safe to delete this file and replace |
@@ -94,3 +94,3 @@ import { Bool, Field, Proof, ProvablePure, SelfProof, type Cache } from 'o1js'; | ||
}; | ||
declare class PublicInput extends PublicInput_base { | ||
export declare class PublicInput extends PublicInput_base { | ||
static empty(): PublicInput; | ||
@@ -97,0 +97,0 @@ } |
@@ -82,3 +82,3 @@ import { Bool, Encoding, Field, Poseidon, Provable, SelfProof, Struct, ZkProgram, } from 'o1js'; | ||
} | ||
class PublicInput extends Struct({ root: Field, given: Field }) { | ||
export class PublicInput extends Struct({ root: Field, given: Field }) { | ||
static empty() { | ||
@@ -85,0 +85,0 @@ return new PublicInput({ root: Field(0), given: Field(0) }); |
@@ -82,3 +82,10 @@ import { LinearPath, ScalarKind } from '../linearization/ipld.js'; | ||
export type Query = Condition | Gate; | ||
export declare function parse<T>(input: T): Query; | ||
export declare function parse<T>(input: RawQueryObject): Query; | ||
export type ComparisonOperator = '$eq' | '$gt' | '$ge' | '$lt' | '$le' | '$ne'; | ||
type ComparisonObject = { | ||
[key in ComparisonOperator]?: string | number; | ||
}; | ||
export type RawQueryObject = { | ||
[key: string]: ComparisonObject; | ||
}; | ||
export {}; |
{ | ||
"name": "@ozkarjs/vhir", | ||
"version": "0.2.2", | ||
"version": "0.2.4", | ||
"author": "", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
@@ -224,3 +224,5 @@ import { PrivateKey, verify } from 'o1js'; | ||
proofE.publicInput.given.toString(), | ||
proofE.publicInput.root.toString() | ||
proofE.publicInput.root.toString(), | ||
proofE.proof | ||
proofE | ||
); | ||
@@ -227,0 +229,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
789318
6943