Skip to content

Commit

Permalink
chore: add license AGPL-3.0-or-later (#15)
Browse files Browse the repository at this point in the history
* chore: add license AGPL-3.0-or-later

* ci: add reuse check

* chore: set license from 2021
  • Loading branch information
matteo-cristino authored Jan 26, 2025
1 parent 9d3fa54 commit 604df80
Show file tree
Hide file tree
Showing 24 changed files with 350 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .cspell.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# http://editorconfig.org
root = true

Expand Down
3 changes: 3 additions & 0 deletions .eslintrc.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later
6 changes: 6 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
SPDX-License-Identifier: AGPL-3.0-or-later
-->

# Dyne.org - Contributor License Agreement

This Contributor Agreement (“CA”) applies to the contribution specified in section "Terms" below that you make to any product or project managed by us (the “project”), and sets out the intellectual property rights you grant to us in the contributed materials. The term “us” shall mean Dyne.org Foundation. The term “you” shall mean the person or entity identified below. If you agree to be bound by these terms, fill in the information requested and [sign the Dyne.org CA](https://dyne.org/cla). Read this agreement carefully before signing. These terms and conditions constitute a binding legal agreement.
Expand Down
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
SPDX-License-Identifier: AGPL-3.0-or-later
-->

- **I'm submitting a ...**
[ ] bug report
[ ] feature request
Expand Down
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
SPDX-License-Identifier: AGPL-3.0-or-later
-->

- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)

- **What is the current behavior?** (You can also link to an open issue here)
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
#
# SPDX-License-Identifier: AGPL-3.0-or-later

name: Release
on:
pull_request:
Expand All @@ -6,15 +10,23 @@ on:
- main
# TODO: docs
jobs:
reuse:
name: 🚨
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fsfe/reuse-action@v5

test:
name: 🧪
needs: reuse
runs-on: ubuntu-latest
steps:
- uses: dyne/pnpm@v1
- run: pnpm coverage

release:
name: Release
name: 📦
needs: test
if: github.ref == 'refs/heads/main'
permissions:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
#
# SPDX-License-Identifier: AGPL-3.0-or-later

.idea/*
.nyc_output
build
Expand Down
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# package.json is formatted by package managers, so we ignore it here
package.json
package.json
3 changes: 3 additions & 0 deletions CHANGELOG.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later
235 changes: 235 additions & 0 deletions LICENSES/AGPL-3.0-or-later.txt

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
SPDX-License-Identifier: AGPL-3.0-or-later
-->

<h1 align="center">
@dyne/slangroom-chain<br/><br/>
<sub>Execute chain of slangroom smart contracts</sub>
Expand Down
16 changes: 16 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version = 1
SPDX-PackageName = "slangroom-chain"
SPDX-PackageSupplier = "Matteo Cristino <[email protected]>"
SPDX-PackageDownloadLocation = "https://github.com/dyne/slangroom-chain"

[[annotations]]
path = ["test_contracts/**/*"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2021-2025 Dyne.org foundation"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = [".vscode/**/*"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2021-2025 Dyne.org foundation"
SPDX-License-Identifier = "AGPL-3.0-or-later"
4 changes: 4 additions & 0 deletions benchmark.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
//
// SPDX-License-Identifier: AGPL-3.0-or-later

const { execute } = require('./build/main/index');
const bench = require('nanobench');

Expand Down
3 changes: 3 additions & 0 deletions package.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions pnpm-lock.yaml.license

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
//
// SPDX-License-Identifier: AGPL-3.0-or-later

export * from './lib/chain.js';
4 changes: 4 additions & 0 deletions src/lib/chain.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import test from 'ava';

import { execute } from './chain.js';
Expand Down
4 changes: 4 additions & 0 deletions src/lib/chain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import fs from 'fs';

import { Slangroom } from '@slangroom/core';
Expand Down
4 changes: 4 additions & 0 deletions src/lib/jsonChain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import { execaCommand } from 'execa';

import type {
Expand Down
4 changes: 4 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
//
// SPDX-License-Identifier: AGPL-3.0-or-later

// types for json format
type JsonOnBeforeFn =
| ((
Expand Down
4 changes: 4 additions & 0 deletions src/lib/yamlChain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import { execaCommand } from 'execa';
import YAML from 'yaml';

Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions yarn.lock.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021-2025 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later

0 comments on commit 604df80

Please sign in to comment.