Skip to content

Commit 637a12b

Browse files
authored
fix: resolve compile errors (#1)
1 parent d68a53a commit 637a12b

File tree

173 files changed

+1343
-6166
lines changed

Some content is hidden

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

173 files changed

+1343
-6166
lines changed

.github/workflows/circuits_e2e.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Circuits E2E Tests
22

3-
on: [push, merge_group]
3+
on:
4+
workflow_dispatch:
45

56
jobs:
67
test:
@@ -18,7 +19,7 @@ jobs:
1819
- name: Use Node.js 20.x
1920
uses: actions/setup-node@v3
2021
with:
21-
node-version: '20.x'
22+
node-version: "20.x"
2223

2324
- name: Enable Corepack and Install Yarn 4
2425
run: |

.github/workflows/contract_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: ethereum contract tests
22

3-
on: [push, merge_group]
3+
on:
4+
workflow_dispatch:
45

56
env:
67
FOUNDRY_PROFILE: ci

.github/workflows/e2e_test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: E2E Tests
22

3-
on: [push, merge_group]
4-
3+
on:
4+
workflow_dispatch:
55
jobs:
66
test:
77
name: E2E Tests
@@ -18,7 +18,7 @@ jobs:
1818
- name: Use Node.js 20.x
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: '20.x'
21+
node-version: "20.x"
2222

2323
- name: Enable Corepack and Install Yarn 4
2424
run: |
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Noir Nightly Canary
2+
3+
on:
4+
schedule:
5+
# Run a check at 9 AM UTC
6+
- cron: "0 9 * * *"
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
permissions:
12+
issues: write
13+
14+
jobs:
15+
test:
16+
name: Test on Nargo Nightly
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout sources
20+
uses: actions/checkout@v4
21+
22+
- name: Install Nargo
23+
uses: noir-lang/[email protected]
24+
with:
25+
toolchain: nightly
26+
27+
- name: Run Noir tests
28+
run: nargo test
29+
30+
- name: Alert on dead links
31+
uses: JasonEtco/create-an-issue@v2
32+
if: ${{ failure() }}
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
WORKFLOW_NAME: ${{ github.workflow }}
36+
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
37+
with:
38+
update_existing: true
39+
filename: .github/NIGHTLY_CANARY_DIED.md
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Pull Request
2+
3+
on:
4+
merge_group:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
permissions:
13+
pull-requests: read
14+
15+
jobs:
16+
conventional-title:
17+
name: Validate PR title is Conventional Commit
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check title
21+
if: github.event_name == 'pull_request_target'
22+
uses: amannn/action-semantic-pull-request@v5
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
types: |
27+
fix
28+
feat
29+
chore

.github/workflows/release.yaml

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,20 @@
1-
name: Release changesets
1+
name: Release
22

3-
# This workflow will be triggered on push to the main branch
4-
# on:
5-
# push:
6-
# branches:
7-
# - main
8-
# temporarly manual triggers only
93
on:
10-
workflow_dispatch:
11-
12-
concurrency: ${{ github.workflow }}-${{ github.ref }}
4+
push:
5+
branches:
6+
- main
137

148
jobs:
15-
release:
16-
name: Release
9+
release-please:
10+
name: Create Release
11+
outputs:
12+
release-pr: ${{ steps.release.outputs.pr }}
13+
tag-name: ${{ steps.release.outputs.tag_name }}
1714
runs-on: ubuntu-latest
1815
steps:
19-
- name: Checkout Repo
20-
uses: actions/checkout@v3
21-
22-
- name: Setup Node.js 20
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: 20
26-
27-
- name: Enable Corepack and Install Yarn 4
28-
run: |
29-
corepack enable
30-
yarn set version latest
31-
32-
- name: Install Dependencies
33-
run: yarn install
34-
35-
- name: Create Release Pull Request
36-
uses: changesets/action@v1
16+
- name: Run release-please
17+
id: release
18+
uses: googleapis/release-please-action@v4
3719
with:
38-
version: yarn changeset version
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
token: ${{ secrets.NOIR_RELEASES_TOKEN }}

.github/workflows/static_checks.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Static checks
22

3-
on: [push, merge_group]
3+
on:
4+
workflow_dispatch:
45

56
jobs:
67
test:
@@ -16,7 +17,7 @@ jobs:
1617
- name: Use Node.js 20.x
1718
uses: actions/setup-node@v3
1819
with:
19-
node-version: '20.x'
20+
node-version: "20.x"
2021

2122
- name: Enable Corepack and Install Yarn 4
2223
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11-
MINIMUM_NOIR_VERSION: 1.0.0-beta.16
11+
MINIMUM_NOIR_VERSION: 1.0.0-beta.17
1212

1313
jobs:
1414
noir-version-list:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ contract
1111
dist
1212
coverage
1313
.DS_Store
14+
.vscode/

ethereum/circuits/get_account/src/main.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ use dep::ethereum::account::{AccountWithinBlock, get_account};
22
use dep::ethereum::misc::types::Address;
33

44
fn main(chain_id: pub Field, block_no: pub u64, address: pub Address) -> pub AccountWithinBlock {
5-
get_account(chain_id, block_no, address)
5+
get_account(chain_id as u32, block_no, address)
66
}

0 commit comments

Comments
 (0)