-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge branch 'main' into prerelease/2.0.0
- Loading branch information
Showing
227 changed files
with
7,165 additions
and
15,682 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
name: Check code format | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/check-code-format.yml' | ||
- 'onchain/rollups/**' | ||
on: [push] | ||
|
||
jobs: | ||
check-code-format: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: onchain/rollups | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
- uses: ./.github/workflows/setup | ||
|
||
- name: Check code format | ||
run: yarn fmt:check | ||
run: pnpm fmt:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Deploy documentation to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: ./.github/workflows/setup | ||
|
||
- name: Generate documentation | ||
run: forge doc -b | ||
|
||
- uses: actions/configure-pages@v4 | ||
|
||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs/book | ||
|
||
- id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,6 @@ jobs: | |
outputs: | ||
published: ${{ steps.changeset.outputs.published }} | ||
version: ${{ steps.get_version.outputs.version }} | ||
defaults: | ||
run: | ||
working-directory: onchain/rollups | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -30,21 +27,15 @@ jobs: | |
git config user.name rollups-contracts-bot | ||
git config user.email [email protected] | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install Node dependencies | ||
run: yarn install | ||
- uses: ./.github/workflows/setup | ||
|
||
- name: Create release PR or publish packages to npmjs.com | ||
uses: changesets/action@f13b1baaa620fde937751f5d2c3572b9da32af23 | ||
id: changeset | ||
with: | ||
setupGitUser: false | ||
commit: "chore: version packages" | ||
publish: yarn changeset publish | ||
cwd: onchain/rollups | ||
publish: pnpm changeset publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
@@ -58,27 +49,16 @@ jobs: | |
needs: version_or_publish | ||
if: ${{ needs.version_or_publish.outputs.published == 'true' }} | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: onchain/rollups | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- uses: foundry-rs/foundry-toolchain@v1 | ||
- uses: ./.github/workflows/setup | ||
|
||
- name: Install Python dependencies | ||
run: pip install yq | ||
|
||
- name: Install Node dependencies | ||
run: yarn install | ||
|
||
- name: Generate Rust bindings | ||
run: | | ||
forge bind \ | ||
|
@@ -88,13 +68,13 @@ jobs: | |
VERSION: ${{ needs.version_or_publish.outputs.version }} | ||
|
||
- name: Edit Rust package manifest | ||
working-directory: onchain/rollups/out/bindings | ||
working-directory: out/bindings | ||
run: | | ||
tomlq -ti '.package.license = "Apache-2.0"' Cargo.toml | ||
tomlq -ti '.package.description = "Rust bindings for Cartesi Rollups smart contracts"' Cargo.toml | ||
- name: Publish Rust package to crates.io | ||
working-directory: onchain/rollups/out/bindings | ||
working-directory: out/bindings | ||
run: cargo publish | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Install dependencies | ||
|
||
on: | ||
workflow_call: | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- name: Install Node packages | ||
shell: bash | ||
run: pnpm i | ||
|
||
- uses: foundry-rs/foundry-toolchain@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
node_modules | ||
.vscode | ||
.env | ||
.DS_Store | ||
**/.idea/ | ||
.env | ||
.node* | ||
.vscode | ||
/abi | ||
/artifacts | ||
/cache | ||
/contracts.json | ||
/coverage* | ||
/deployments/*/solcInputs/*.json | ||
/deployments/localhost | ||
/dist | ||
/docs | ||
/export/artifacts | ||
/forge-cache | ||
/node_modules | ||
/out | ||
/src/types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
[submodule "onchain/rollups-arbitration/lib/forge-std"] | ||
path = onchain/rollups-arbitration/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "onchain/rollups-arbitration/lib/solidity-util"] | ||
path = onchain/rollups-arbitration/lib/solidity-util | ||
url = https://github.com/cartesi/solidity-util | ||
[submodule "onchain/rollups/lib/forge-std"] | ||
path = onchain/rollups/lib/forge-std | ||
[submodule "forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
CODEOWNERS @guidanoli | ||
/.github/workflows/ @guidanoli | ||
/onchain/rollups/package.json @pedroargento | ||
/package.json @pedroargento |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.