Skip to content

Commit

Permalink
fix(core-node): add missing licenses (#1977)
Browse files Browse the repository at this point in the history
* fix: renamed code

* fix: applied patches

* fix: newline linter issue

* fix: Fix lint in kiosk

* fix: Fix lint in explorer (prependlicense)

* fix: Fix lint in wallet (prependlicense)

---------

Co-authored-by: Mario Sarcevic <[email protected]>
  • Loading branch information
muXxer and msarcev authored Aug 22, 2024
1 parent e6f96d5 commit 4ae505d
Show file tree
Hide file tree
Showing 23 changed files with 15 additions and 35 deletions.
4 changes: 3 additions & 1 deletion apps/explorer/prependlicense.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { readFile, writeFile } from 'fs/promises';

const LICENSE = '// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n';
const LICENSE =
'// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\n';

async function prependLicense(filename) {
const content = await readFile(filename, 'utf8');
Expand Down
3 changes: 3 additions & 0 deletions apps/icons/svgrrc.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

const path = require('path');

const COPYRIGHT = `
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
`;

Expand Down Expand Up @@ -46,6 +48,7 @@ module.exports = {
// Insert the copyright header, attached to the first node:
template[0].leadingComments = [
{ type: 'CommentLine', value: ' Copyright (c) Mysten Labs, Inc.' },
{ type: 'CommentLine', value: ' Modifications Copyright (c) 2024 IOTA Stiftung' },
{ type: 'CommentLine', value: ' SPDX-License-Identifier: Apache-2.0' },
];

Expand Down
1 change: 1 addition & 0 deletions apps/ui/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import type { StorybookConfig } from '@storybook/react-vite';
Expand Down
1 change: 1 addition & 0 deletions apps/ui/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import '../src/styles.css';
Expand Down
4 changes: 3 additions & 1 deletion apps/wallet/prependLicense.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { readFile, writeFile } from 'fs/promises';

const LICENSE = '// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n';
const LICENSE =
'// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\n';

async function prependLicense(filename) {
const content = await readFile(filename, 'utf8');
Expand Down
4 changes: 0 additions & 4 deletions crates/iota-move/scripts/prover_setup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Copyright (c) Mysten Labs, Inc.
# SPDX-License-Identifier: Apache-2.0

# Copyright (c) The Diem Core Contributors
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
3 changes: 2 additions & 1 deletion dapps/kiosk/src/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default function Root() {
<Outlet />
</div>
<div className="mt-6 border-t border-primary text-center py-6">
Copyright © Mysten Labs, Inc.
Copyright © Mysten Labs, Inc. Modifications Copyright © 2024 IOTA
Stiftung
</div>
<Toaster position="bottom-center" />
</KisokClientProvider>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { IotaObjectChange } from '@iota/iota-sdk/src/client';
Expand Down
2 changes: 0 additions & 2 deletions external-crates/move/crates/move-coverage/check_coverage.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

# Copyright (c) The Diem Core Contributors
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 0 additions & 2 deletions external-crates/move/crates/move-coverage/utils.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Copyright (c) The Diem Core Contributors
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 0 additions & 2 deletions external-crates/move/crates/move-prover/tools/check_pr.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
# Copyright (c) The Diem Core Contributors
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
# Copyright (c) The Diem Core Contributors
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
# Copyright (c) The Diem Core Contributors
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
# Copyright (c) The Diem Core Contributors
# Copyright (c) The Move Contributors
# SPDX-License-Identifier: Apache-2.0

# Modifications Copyright (c) 2024 IOTA Stiftung
# SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions sdk/graphql-transport/codegen.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Mysten Labs, Inc.
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import type { CodegenConfig } from '@graphql-codegen/cli';
Expand Down

0 comments on commit 4ae505d

Please sign in to comment.