Skip to content

Commit

Permalink
Remove mock (#43)
Browse files Browse the repository at this point in the history
* Remove mock

* Bump sdk-core versions

* Update lockfiles
  • Loading branch information
ytham authored Jan 19, 2024
1 parent 5b321bb commit 737f862
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion circuit/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"crypto"
],
"dependencies": {
"@axiom-crypto/core": "2.3.2",
"@axiom-crypto/core": "2.3.3",
"@axiom-crypto/halo2-lib-js": "0.3.4",
"@axiom-crypto/halo2-wasm": "0.3.4",
"@axiom-crypto/tools": "2.0.0",
Expand Down
8 changes: 4 additions & 4 deletions circuit/js/pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"dependencies": {
"@axiom-crypto/circuit": "0.2.3-rc2.3",
"@axiom-crypto/core": "2.3.2",
"@axiom-crypto/core": "2.3.3",
"chalk": "^4.1.2",
"commander": "^11.1.0",
"prompts": "^2.4.2",
Expand Down
18 changes: 16 additions & 2 deletions client/pnpm-lock.yaml

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

1 change: 0 additions & 1 deletion client/src/axiom/axiom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export class Axiom<T> {
provider: this.config.provider,
inputSchema,
chainId: this.config.chainId,
mock: this.config.mock ?? false,
});
}

Expand Down
1 change: 0 additions & 1 deletion client/src/axiom/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export interface AxiomV2ClientConfig<T> {
provider: string;
privateKey?: string;
version?: string;
mock?: boolean;
callback: AxiomV2CallbackInput;
}

Expand Down
5 changes: 1 addition & 4 deletions react/src/AxiomCircuitProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ function AxiomCircuitProvider({
provider,
compiledCircuit,
chainId,
mock,
children,
}: {
provider: string,
compiledCircuit: AxiomV2CompiledCircuit,
chainId?: number | string | bigint,
mock?: boolean,
chainId: number | string | bigint,
children: React.ReactNode,
}) {
const [inputs, setInputs] = useState<any | null>(null);
Expand All @@ -77,7 +75,6 @@ function AxiomCircuitProvider({
workerApi.current = await new MyAxiomCircuit({
provider,
inputSchema: compiledCircuit.inputSchema,
mock,
chainId,
f: compiledCircuit.circuit,
});
Expand Down
3 changes: 1 addition & 2 deletions react/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { expose } from "comlink";
export class AxiomCircuit extends MyAxiomCircuit<any> {
constructor(inputs: {
provider: string,
chainId: number | string | bigint,
inputSchema?: string,
mock?: boolean,
chainId?: number | string | bigint,
shouldTime?: boolean,
f: string,
}) {
Expand Down

0 comments on commit 737f862

Please sign in to comment.