Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shekohex authored Oct 28, 2024
0 parents commit a7e569f
Show file tree
Hide file tree
Showing 26 changed files with 13,189 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi
use flake
# vi: ft=sh
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
open-pull-requests-limit: 5
- package-ecosystem: "gitsubmodule"
directory: "/"
allow:
- dependency-name: "contracts/lib/tnt-core"
schedule:
interval: "daily"
36 changes: 36 additions & 0 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Foundry CI

on: workflow_dispatch

env:
FOUNDRY_PROFILE: ci

jobs:
foundry-check:
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
33 changes: 33 additions & 0 deletions .github/workflows/verify-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Verify Template
on:
workflow_dispatch:
pull_request:
push:
branches: [ 'main' ]
paths-ignore:
- "**.md"

jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME: blueprint-template
steps:
- uses: actions/checkout@v4
- uses: JohnPeel/cargo-generate-action@main
with:
name: ${{ env.PROJECT_NAME }}
arguments: >
--define gh-username="tangle-network"
--define project-description="An example blueprint"
--define project-homepage="https://tangle.tools"
--define flakes=true
--define docker=true
--define base-image="rustlang/rust:nightly"
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: |
cp -r $PROJECT_NAME ${{ runner.temp }}/
cd ${{ runner.temp }}/$PROJECT_NAME
cargo check
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Generated by Cargo
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Project configuration
.idea
.vscode
.zed

.direnv
.DS_Store
# Solc Compiler files
cache/
out/

# Ignores development broadcast logs
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/

# Docs
docs/

# Dotenv file
.env

# Generated blueprint files
blueprint.json
blueprint.lock
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[submodule "contracts/lib/forge-std"]
path = contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "contracts/lib/tnt-core"]
path = contracts/lib/tnt-core
url = https://github.com/tangle-network/tnt-core
branch = main
Loading

0 comments on commit a7e569f

Please sign in to comment.