Skip to content

Commit

Permalink
fix: fixing devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Dec 7, 2023
1 parent f5f3e5e commit 9ef86ba
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 83 deletions.
12 changes: 6 additions & 6 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:3.18.5 as noir
RUN apk add curl bash git tar gzip libc++-dev
RUN mkdir -p root/.nargo/bin
RUN curl -# -L https://github.com/noir-lang/noir/releases/latest/download/nargo-x86_64-unknown-linux-musl.tar.gz | tar -xzC root/.nargo/bin
ENV NARGO_HOME="/root/.nargo/bin"
ENV PATH="$NARGO_HOME:$PATH"
FROM --platform=linux/amd64 node:lts-bookworm-slim
SHELL ["/bin/bash", "-c"]
RUN apt update && apt install -y curl bash git tar gzip libc++-dev
RUN curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/install | bash
ENV PATH="/root/.nargo/bin:$PATH"
RUN noirup
ENTRYPOINT ["nargo"]
44 changes: 44 additions & 0 deletions next-hardhat/circuits/target/noirstarter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"noir_version": "0.18.0+1de0e6d0acb18f3164a3b1fbc1be6438ef16be39",
"hash": 16035314490478570843,
"backend": "acvm-backend-barretenberg",
"abi": {
"parameters": [
{
"name": "x",
"type": {
"kind": "field"
},
"visibility": "private"
},
{
"name": "y",
"type": {
"kind": "field"
},
"visibility": "public"
},
{
"name": "z",
"type": {
"kind": "field"
},
"visibility": "public"
}
],
"param_witnesses": {
"x": [
1
],
"y": [
2
],
"z": [
3
]
},
"return_type": null,
"return_witnesses": []
},
"bytecode": "H4sIAAAAAAAA/+1U0Q6DIAysOpnsYd/SCmh526/MDP//EzYylxD1zTbZkl1CSngo1zs4CwAX2KJZ6m2pDgfv09gncnTHPk4c0IdpYGIKHB49O5fY8xinOGIk7xLNIboZ36iKXngMVAvyOsnxwqxZtaNltdISj4EkOZd829c6Lft65y0YhVlgdc9av+vOmejlGua0Cn0NyD16rbmNvEdYtNxwPqqDUeIpHZ61oE+NIK8z/F54SnIu+XbwD08RczqFvha+Ozzz3FbeI9XwtCD/kXL9fJ5cG9jiCSvxgUKyCgAA"
}
1 change: 1 addition & 0 deletions vite-hardhat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ artifacts
.yarn/

circuits/target
dist
4 changes: 2 additions & 2 deletions vite-hardhat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ The test demonstrates basic usage of Noir in a TypeScript Node.js environment.
> **Note:** If the deployment fails, try removing `yarn.lock` and reinstalling dependencies with
> `yarn`.

4. Once your contracts are deployed and the build is finished, start the web app with
4. Once your contracts are deployed and the build is finished, you can preview the built website with

```bash
yarn start
yarn preview
```

## Deploy on networks
Expand Down
1 change: 1 addition & 0 deletions vite-hardhat/circuits/Prover.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
x = "1"
y = "2"
z = "3"
1 change: 1 addition & 0 deletions vite-hardhat/circuits/Verifier.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
y = "0x0000000000000000000000000000000000000000000000000000000000000002"
z = "0x0000000000000000000000000000000000000000000000000000000000000003"
Binary file removed vite-hardhat/dist/assets/acvm_js_bg-h_p0Yw7W.wasm
Binary file not shown.
1 change: 0 additions & 1 deletion vite-hardhat/dist/assets/index-5BlCs7js.css

This file was deleted.

1 change: 0 additions & 1 deletion vite-hardhat/dist/assets/index-HZFOCvYk.js

This file was deleted.

Loading

0 comments on commit 9ef86ba

Please sign in to comment.