From dc2f4b2d5b2be20d7e138752e53e1a1e86b11ae2 Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Mon, 29 Apr 2024 13:32:49 -0400 Subject: [PATCH] feat: transition to Cartesi application templates --- .github/workflows/build.yaml | 10 +++++----- LICENSE | 2 +- README.md | 4 ++-- cpp-low-level/.dockerignore | 2 +- cpp-low-level/.gitignore | 2 +- cpp-low-level/Dockerfile | 4 ++-- cpp/.dockerignore | 2 +- cpp/.gitignore | 2 +- cpp/Dockerfile | 2 +- go/.dockerignore | 2 +- go/.gitignore | 2 +- go/Dockerfile | 2 +- javascript/.dockerignore | 2 +- javascript/.gitignore | 2 +- javascript/Dockerfile | 2 +- lua/.dockerignore | 2 +- lua/.gitignore | 2 +- lua/Dockerfile | 2 +- python/.gitignore | 2 +- python/Dockerfile | 2 +- ruby/.dockerignore | 2 +- ruby/.gitignore | 2 +- ruby/Dockerfile | 2 +- rust/.dockerignore | 2 +- rust/.gitignore | 2 +- rust/Dockerfile | 2 +- typescript/.dockerignore | 2 +- typescript/.gitignore | 2 +- typescript/Dockerfile | 2 +- 29 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3d97b8a..9881c98 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,7 +9,7 @@ permissions: concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: build: - name: sunodo build + name: build runs-on: ubuntu-latest strategy: matrix: @@ -34,15 +34,15 @@ jobs: with: node-version: current - - name: Install Sunodo - run: npm install -g @sunodo/cli + - name: Install Cartesi CLI + run: npm install -g @cartesi/cli - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Check system requirements - run: sunodo doctor + run: cartesi doctor - name: Build - run: sunodo build + run: cartesi build working-directory: ${{ matrix.template }} diff --git a/LICENSE b/LICENSE index 97d1c27..3fd9eef 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Sunodo +Copyright (c) 2023 Cartesi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 32eacc7..dd7650f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# Sunodo Templates +# Cartesi Application Templates -Template projects for Sunodo DApps. This repository is used by the Sunodo CLI to create new applications from a specified template project. +Template projects for Cartesi DApps. This repository is used by the Cartesi CLI to create new applications from a specified template project. diff --git a/cpp-low-level/.dockerignore b/cpp-low-level/.dockerignore index 8b8e06f..6253c7d 100644 --- a/cpp-low-level/.dockerignore +++ b/cpp-low-level/.dockerignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi dapp diff --git a/cpp-low-level/.gitignore b/cpp-low-level/.gitignore index 8b8e06f..6253c7d 100644 --- a/cpp-low-level/.gitignore +++ b/cpp-low-level/.gitignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi dapp diff --git a/cpp-low-level/Dockerfile b/cpp-low-level/Dockerfile index aeabb71..a284cfc 100644 --- a/cpp-low-level/Dockerfile +++ b/cpp-low-level/Dockerfile @@ -16,7 +16,7 @@ apt-get install -y --no-install-recommends \ rm -rf /var/lib/apt/lists/* EOF -COPY --from=sunodo/sdk:0.3.0 /opt/riscv /opt/riscv +COPY --from=cartesi/sdk:0.6.0 /opt/riscv /opt/riscv WORKDIR /opt/cartesi/dapp COPY . . RUN make @@ -28,7 +28,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive diff --git a/cpp/.dockerignore b/cpp/.dockerignore index 8b8e06f..6253c7d 100644 --- a/cpp/.dockerignore +++ b/cpp/.dockerignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi dapp diff --git a/cpp/.gitignore b/cpp/.gitignore index 8b8e06f..6253c7d 100644 --- a/cpp/.gitignore +++ b/cpp/.gitignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi dapp diff --git a/cpp/Dockerfile b/cpp/Dockerfile index d905251..03db86b 100644 --- a/cpp/Dockerfile +++ b/cpp/Dockerfile @@ -27,7 +27,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive diff --git a/go/.dockerignore b/go/.dockerignore index 8b8e06f..6253c7d 100644 --- a/go/.dockerignore +++ b/go/.dockerignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi dapp diff --git a/go/.gitignore b/go/.gitignore index 8b8e06f..6253c7d 100644 --- a/go/.gitignore +++ b/go/.gitignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi dapp diff --git a/go/Dockerfile b/go/Dockerfile index b43a8f2..5b1dea1 100644 --- a/go/Dockerfile +++ b/go/Dockerfile @@ -37,7 +37,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive diff --git a/javascript/.dockerignore b/javascript/.dockerignore index cc4042f..4840784 100644 --- a/javascript/.dockerignore +++ b/javascript/.dockerignore @@ -1,3 +1,3 @@ -.sunodo +.cartesi /dist /node_modules diff --git a/javascript/.gitignore b/javascript/.gitignore index cc4042f..4840784 100644 --- a/javascript/.gitignore +++ b/javascript/.gitignore @@ -1,3 +1,3 @@ -.sunodo +.cartesi /dist /node_modules diff --git a/javascript/Dockerfile b/javascript/Dockerfile index 1c183ec..38954ed 100644 --- a/javascript/Dockerfile +++ b/javascript/Dockerfile @@ -24,7 +24,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive diff --git a/lua/.dockerignore b/lua/.dockerignore index d165dde..82b4d6a 100644 --- a/lua/.dockerignore +++ b/lua/.dockerignore @@ -1 +1 @@ -.sunodo +.cartesi diff --git a/lua/.gitignore b/lua/.gitignore index d165dde..82b4d6a 100644 --- a/lua/.gitignore +++ b/lua/.gitignore @@ -1 +1 @@ -.sunodo +.cartesi diff --git a/lua/Dockerfile b/lua/Dockerfile index c75495e..4b1486b 100644 --- a/lua/Dockerfile +++ b/lua/Dockerfile @@ -23,7 +23,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive diff --git a/python/.gitignore b/python/.gitignore index 1d15d74..a8c6a37 100644 --- a/python/.gitignore +++ b/python/.gitignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi .venv diff --git a/python/Dockerfile b/python/Dockerfile index 17e7029..9648526 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -6,7 +6,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive diff --git a/ruby/.dockerignore b/ruby/.dockerignore index d165dde..82b4d6a 100644 --- a/ruby/.dockerignore +++ b/ruby/.dockerignore @@ -1 +1 @@ -.sunodo +.cartesi diff --git a/ruby/.gitignore b/ruby/.gitignore index 1b3d7c5..1369fc9 100644 --- a/ruby/.gitignore +++ b/ruby/.gitignore @@ -1,2 +1,2 @@ .bundle -.sunodo +.cartesi diff --git a/ruby/Dockerfile b/ruby/Dockerfile index fa7b18e..6767582 100644 --- a/ruby/Dockerfile +++ b/ruby/Dockerfile @@ -31,7 +31,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive diff --git a/rust/.dockerignore b/rust/.dockerignore index 169e59f..d72b624 100644 --- a/rust/.dockerignore +++ b/rust/.dockerignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi target diff --git a/rust/.gitignore b/rust/.gitignore index 169e59f..d72b624 100644 --- a/rust/.gitignore +++ b/rust/.gitignore @@ -1,2 +1,2 @@ -.sunodo +.cartesi target diff --git a/rust/Dockerfile b/rust/Dockerfile index cd67e17..1945d9e 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -50,7 +50,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive diff --git a/typescript/.dockerignore b/typescript/.dockerignore index cc4042f..4840784 100644 --- a/typescript/.dockerignore +++ b/typescript/.dockerignore @@ -1,3 +1,3 @@ -.sunodo +.cartesi /dist /node_modules diff --git a/typescript/.gitignore b/typescript/.gitignore index d8bb862..36da4ed 100644 --- a/typescript/.gitignore +++ b/typescript/.gitignore @@ -1,4 +1,4 @@ -.sunodo +.cartesi /dist /node_modules src/schema.d.ts diff --git a/typescript/Dockerfile b/typescript/Dockerfile index 1c183ec..38954ed 100644 --- a/typescript/Dockerfile +++ b/typescript/Dockerfile @@ -24,7 +24,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb -LABEL io.sunodo.sdk_version=0.4.0 +LABEL io.cartesi.rollups.sdk_version=0.6.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG DEBIAN_FRONTEND=noninteractive