Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed May 3, 2024
0 parents commit 8fbf9c9
Show file tree
Hide file tree
Showing 15 changed files with 3,243 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: check
on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14]
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v12
with:
name: cspr
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: System Info
run: |
uname -a
nix --version
- name: format
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#checks.x86_64-linux.format

- name: cctl-rs (x86_64-linux)
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.cctl-rs

- name: cctl-rs (x86_64-darwin)
if: matrix.os == 'macos-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.cctl-rs

- name: cctl-rs aarch64-darwin
if: matrix.os == 'macos-14'
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.cctl-rs
11 changes: 11 additions & 0 deletions .github/workflows/pre-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: pre-check
on:
pull_request:
branches: [main]

jobs:
check-signed-commits:
runs-on: ubuntu-latest
steps:
- name: check signed commits
uses: 1Password/check-signed-commits-action@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target
result
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Casper Association

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
cctl
===============

Bash application to work with a **local** casper-node network. Stripped down sucessor to nctl.

What is cctl ?
--------------------------------------

cctl is a bash utility that allows a developer to work with a local casper-node network.

Why cctl ?
--------------------------------------

Developers & community users need to spin up small local throwaway networks.

Who uses cctl ?
--------------------------------------

CSPR network community. This encompasses developers, validators, evaluators ... etc.

Setup
--------------------------------------

See [here](docs/setup.md) for setup details.

Usage
--------------------------------------

See [here](docs/usage.md) for usage details.

Installation
--------------------------------------

To install upon a virtual machine execute the one step install script.

```
curl https://github.com/casper-network/cctl/blob/main/installer | bash
```
Loading

0 comments on commit 8fbf9c9

Please sign in to comment.