diff --git a/.github/workflows/flow-pr-title-check.yaml b/.github/workflows/flow-pr-title-check.yaml index 2e24b752..23a9f099 100644 --- a/.github/workflows/flow-pr-title-check.yaml +++ b/.github/workflows/flow-pr-title-check.yaml @@ -1,18 +1,4 @@ -## -# Copyright (C) 2023-2024 Hedera Hashgraph, LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -## +# SPDX-License-Identifier: Apache-2.0 name: "PR Title Check" on: diff --git a/.github/workflows/flow-pull-request-checks.yaml b/.github/workflows/flow-pull-request-checks.yaml index ccf838eb..dca28f53 100644 --- a/.github/workflows/flow-pull-request-checks.yaml +++ b/.github/workflows/flow-pull-request-checks.yaml @@ -1,18 +1,4 @@ -## -# Copyright (C) 2023-2024 Hedera Hashgraph, LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -## +# SPDX-License-Identifier: Apache-2.0 name: "PR Checks" on: diff --git a/.github/workflows/flow-pull-request-smoke-tests-on-macos.yaml b/.github/workflows/flow-pull-request-smoke-tests-on-macos.yaml index 1a5e8bd6..a389ff48 100644 --- a/.github/workflows/flow-pull-request-smoke-tests-on-macos.yaml +++ b/.github/workflows/flow-pull-request-smoke-tests-on-macos.yaml @@ -1,18 +1,4 @@ -## -# Copyright (C) 2024 Hedera Hashgraph, LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -## +# SPDX-License-Identifier: Apache-2.0 name: "Smoke Tests on GitHub MacOS Runner" on: diff --git a/.github/workflows/flow-semantic-release.yml b/.github/workflows/flow-semantic-release.yml index d1a8396e..835c14a1 100644 --- a/.github/workflows/flow-semantic-release.yml +++ b/.github/workflows/flow-semantic-release.yml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + name: Publish Semantic Release on: diff --git a/.github/workflows/publish-npm-package.yaml b/.github/workflows/publish-npm-package.yaml index 7250ebf2..e66f04d8 100644 --- a/.github/workflows/publish-npm-package.yaml +++ b/.github/workflows/publish-npm-package.yaml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + name: Publish Package to npmjs on: release: diff --git a/src/Errors/LocalNodeErrors.ts b/src/Errors/LocalNodeErrors.ts index ad2c746a..7dff62f1 100644 --- a/src/Errors/LocalNodeErrors.ts +++ b/src/Errors/LocalNodeErrors.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 /** * Class representing the local node errors. diff --git a/src/configuration/types/IAccountProps.ts b/src/configuration/types/IAccountProps.ts index 79962fe7..b171ed23 100644 --- a/src/configuration/types/IAccountProps.ts +++ b/src/configuration/types/IAccountProps.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { IPrivateKey } from './IPrivateKey'; diff --git a/src/configuration/types/IPrivateKey.ts b/src/configuration/types/IPrivateKey.ts index b680cb77..a09f84da 100644 --- a/src/configuration/types/IPrivateKey.ts +++ b/src/configuration/types/IPrivateKey.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { PrivateKey } from '@hashgraph/sdk'; diff --git a/src/configuration/types/ITokenProps.ts b/src/configuration/types/ITokenProps.ts index 93c15be7..dee16ced 100644 --- a/src/configuration/types/ITokenProps.ts +++ b/src/configuration/types/ITokenProps.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { IPrivateKey } from './IPrivateKey'; diff --git a/src/constants.ts b/src/constants.ts index beb13655..bbe1b696 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 export const CONTAINERS = [ { diff --git a/src/controller/IObserver.ts b/src/controller/IObserver.ts index f50744aa..02cfbfa7 100644 --- a/src/controller/IObserver.ts +++ b/src/controller/IObserver.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { EventType } from '../types/EventType'; diff --git a/src/controller/StateController.ts b/src/controller/StateController.ts index c338a055..73de4333 100644 --- a/src/controller/StateController.ts +++ b/src/controller/StateController.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { CHECK_FAIL, CHECK_SUCCESS } from '../constants'; import { StateData } from '../data/StateData'; diff --git a/src/data/ConfigurationData.ts b/src/data/ConfigurationData.ts index e1739625..7feb857f 100644 --- a/src/data/ConfigurationData.ts +++ b/src/data/ConfigurationData.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { NetworkConfiguration } from '../types/NetworkConfiguration'; import local from '../configuration/local.json'; diff --git a/src/data/StateData.ts b/src/data/StateData.ts index 47afb4b9..95518953 100644 --- a/src/data/StateData.ts +++ b/src/data/StateData.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { AccountCreationState } from '../state/AccountCreationState'; import { CleanUpState } from '../state/CleanUpState'; diff --git a/src/index.ts b/src/index.ts index 361fcda4..e1624683 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,24 +1,6 @@ #!/usr/bin/env node -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { Bootstrapper } from "./services/Bootstrapper"; import yargs from 'yargs'; @@ -78,7 +60,6 @@ yargs(hideBin(process.argv)) Docker version check: docker -v - Docker Compose => v2.29.7 Docker Compose version check: docker compose version - * Ensure the gRPC FUSE for file sharing setting is disabled in the docker settings and VirtioFS is enabled * Ensure the following configurations are set at minimum in Docker Settings -> Resources and are available for use CPUs: 6 diff --git a/src/services/Bootstrapper.ts b/src/services/Bootstrapper.ts index 5ccf2caa..ac210df2 100644 --- a/src/services/Bootstrapper.ts +++ b/src/services/Bootstrapper.ts @@ -1,22 +1,5 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 + import yargs from 'yargs'; import { CLIService } from './CLIService'; diff --git a/src/services/CLIService.ts b/src/services/CLIService.ts index f463f62b..cd1df668 100644 --- a/src/services/CLIService.ts +++ b/src/services/CLIService.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import yargs, { ArgumentsCamelCase, Argv } from 'yargs'; import { IService } from './IService'; diff --git a/src/services/ClientService.ts b/src/services/ClientService.ts index 66ca503c..141ab8a0 100644 --- a/src/services/ClientService.ts +++ b/src/services/ClientService.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { Client } from '@hashgraph/sdk'; import { IService } from './IService'; diff --git a/src/services/ConnectionService.ts b/src/services/ConnectionService.ts index 273b217e..ee4e91e1 100644 --- a/src/services/ConnectionService.ts +++ b/src/services/ConnectionService.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import net from 'net'; import { IService } from './IService'; diff --git a/src/services/DockerService.ts b/src/services/DockerService.ts index 3d1bb85b..bfb81ab1 100644 --- a/src/services/DockerService.ts +++ b/src/services/DockerService.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import Dockerode from 'dockerode'; import shell from 'shelljs'; diff --git a/src/services/IService.ts b/src/services/IService.ts index 5d081953..6b00fceb 100644 --- a/src/services/IService.ts +++ b/src/services/IService.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 /** * Represents a service. diff --git a/src/services/LoggerService.ts b/src/services/LoggerService.ts index 03b4479c..e7c25a04 100644 --- a/src/services/LoggerService.ts +++ b/src/services/LoggerService.ts @@ -1,22 +1,5 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 + import { CHECK_FAIL, diff --git a/src/services/ServiceLocator.ts b/src/services/ServiceLocator.ts index 56ba3bf3..bda3486a 100644 --- a/src/services/ServiceLocator.ts +++ b/src/services/ServiceLocator.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { IService } from './IService'; diff --git a/src/state/AccountCreationState.ts b/src/state/AccountCreationState.ts index 09b2cbad..7b6726fa 100644 --- a/src/state/AccountCreationState.ts +++ b/src/state/AccountCreationState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import path from 'path'; import { createReadStream } from 'fs'; diff --git a/src/state/AttachState.ts b/src/state/AttachState.ts index 0e22f15b..cfea91bc 100644 --- a/src/state/AttachState.ts +++ b/src/state/AttachState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { IOBserver } from '../controller/IObserver'; import { DockerService } from '../services/DockerService'; diff --git a/src/state/CleanUpState.ts b/src/state/CleanUpState.ts index 52617d9e..38fb20ef 100644 --- a/src/state/CleanUpState.ts +++ b/src/state/CleanUpState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { readFileSync, writeFileSync, existsSync } from 'fs'; import yaml from 'js-yaml'; diff --git a/src/state/IState.ts b/src/state/IState.ts index 9694153b..c782baa2 100644 --- a/src/state/IState.ts +++ b/src/state/IState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { IOBserver } from '../controller/IObserver'; diff --git a/src/state/InitState.ts b/src/state/InitState.ts index ce6874a4..01cebf2e 100644 --- a/src/state/InitState.ts +++ b/src/state/InitState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import semver from'semver'; import shell from 'shelljs'; diff --git a/src/state/NetworkPrepState.ts b/src/state/NetworkPrepState.ts index 544c1ab4..b5fadde4 100644 --- a/src/state/NetworkPrepState.ts +++ b/src/state/NetworkPrepState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { Client, FileContentsQuery } from '@hashgraph/sdk'; import shell from 'shelljs'; diff --git a/src/state/RecoveryState.ts b/src/state/RecoveryState.ts index f6476859..20449b40 100644 --- a/src/state/RecoveryState.ts +++ b/src/state/RecoveryState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { IOBserver } from '../controller/IObserver'; import { LoggerService } from '../services/LoggerService'; diff --git a/src/state/ResourceCreationState.ts b/src/state/ResourceCreationState.ts index b40aec63..afcd7b96 100644 --- a/src/state/ResourceCreationState.ts +++ b/src/state/ResourceCreationState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { TokenId, TokenType } from '@hashgraph/sdk'; import { IOBserver } from '../controller/IObserver'; diff --git a/src/state/StartState.ts b/src/state/StartState.ts index bcc5318c..fe9c1334 100644 --- a/src/state/StartState.ts +++ b/src/state/StartState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import shell from 'shelljs'; import { LocalNodeErrors } from '../Errors/LocalNodeErrors'; diff --git a/src/state/StopState.ts b/src/state/StopState.ts index 96ea14aa..ec565f63 100644 --- a/src/state/StopState.ts +++ b/src/state/StopState.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import shell from 'shelljs'; import { join } from 'path'; diff --git a/src/types/AccountType.ts b/src/types/AccountType.ts index d0d471ef..ff7bd1db 100644 --- a/src/types/AccountType.ts +++ b/src/types/AccountType.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { Hbar, PrivateKey } from '@hashgraph/sdk'; diff --git a/src/types/CLIOptions.ts b/src/types/CLIOptions.ts index cfbc9dd8..41befe15 100644 --- a/src/types/CLIOptions.ts +++ b/src/types/CLIOptions.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 /** * Represents the options that can be passed to the CLI. diff --git a/src/types/EventType.ts b/src/types/EventType.ts index d068de22..7f760801 100644 --- a/src/types/EventType.ts +++ b/src/types/EventType.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 /** * Represents the types of events that can occur in the application. diff --git a/src/types/NetworkConfiguration.ts b/src/types/NetworkConfiguration.ts index 4f37a5b0..aff48b72 100644 --- a/src/types/NetworkConfiguration.ts +++ b/src/types/NetworkConfiguration.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 /** * Represents the configuration of a network. diff --git a/src/types/StateConfiguration.ts b/src/types/StateConfiguration.ts index 19b425a9..36e1e603 100644 --- a/src/types/StateConfiguration.ts +++ b/src/types/StateConfiguration.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { IState } from "../state/IState"; diff --git a/src/types/VerboseLevel.ts b/src/types/VerboseLevel.ts index 017b4e69..72533b9d 100644 --- a/src/types/VerboseLevel.ts +++ b/src/types/VerboseLevel.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 /** * Represents the levels of verbosity that can be used. diff --git a/src/utils/AccountUtils.ts b/src/utils/AccountUtils.ts index 64e095b1..5794eea9 100644 --- a/src/utils/AccountUtils.ts +++ b/src/utils/AccountUtils.ts @@ -1,22 +1,5 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 + import { AccountCreateTransaction, diff --git a/src/utils/FileSystemUtils.ts b/src/utils/FileSystemUtils.ts index 2135bd11..21ca9c92 100644 --- a/src/utils/FileSystemUtils.ts +++ b/src/utils/FileSystemUtils.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { homedir } from 'os'; import { join, resolve } from 'path'; diff --git a/src/utils/RetryUtils.ts b/src/utils/RetryUtils.ts index 336881fe..28f6e60c 100644 --- a/src/utils/RetryUtils.ts +++ b/src/utils/RetryUtils.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 export class RetryUtils { diff --git a/src/utils/SafeDockerNetworkRemover.ts b/src/utils/SafeDockerNetworkRemover.ts index a8ed1819..ed53b1d4 100644 --- a/src/utils/SafeDockerNetworkRemover.ts +++ b/src/utils/SafeDockerNetworkRemover.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import shell from 'shelljs'; import { IS_WINDOWS, NETWORK_PREFIX } from '../constants'; diff --git a/src/utils/TokenUtils.ts b/src/utils/TokenUtils.ts index 23f388c0..8c28c4c4 100644 --- a/src/utils/TokenUtils.ts +++ b/src/utils/TokenUtils.ts @@ -1,22 +1,5 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 + import { AccountId, diff --git a/src/utils/config.ts b/src/utils/config.ts index efea2e9a..64d1e326 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { join } from 'path'; import yaml from 'js-yaml'; diff --git a/src/utils/debounce.ts b/src/utils/debounce.ts index a976fc3d..bc4a8365 100644 --- a/src/utils/debounce.ts +++ b/src/utils/debounce.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 /** * Limit the execution of a function to once every N ms diff --git a/test/cypress/src/client.js b/test/cypress/src/client.js index a2db7d79..88449a9d 100644 --- a/test/cypress/src/client.js +++ b/test/cypress/src/client.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + import { Client, AccountId, diff --git a/test/smoke/test/Smoke.js b/test/smoke/test/Smoke.js index 93a2c34a..bca12ef2 100644 --- a/test/smoke/test/Smoke.js +++ b/test/smoke/test/Smoke.js @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + const { expect } = require("chai"); const hre = require("hardhat"); diff --git a/test/testUtils.ts b/test/testUtils.ts index 1fc230ad..1602fd59 100644 --- a/test/testUtils.ts +++ b/test/testUtils.ts @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + import { PrivateKey } from '@hashgraph/sdk'; import { IPrivateKey, KeyType } from '../src/configuration/types/IPrivateKey'; diff --git a/test/unit/controller/StateController.spec.ts b/test/unit/controller/StateController.spec.ts index 5179c058..f0fa65a8 100644 --- a/test/unit/controller/StateController.spec.ts +++ b/test/unit/controller/StateController.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect, assert } from 'chai'; import { StateController } from '../../../src/controller/StateController'; diff --git a/test/unit/states/AccountCreationState.spec.ts b/test/unit/states/AccountCreationState.spec.ts index 3ef1a013..b07fe721 100644 --- a/test/unit/states/AccountCreationState.spec.ts +++ b/test/unit/states/AccountCreationState.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import { AccountCreationState } from '../../../src/state/AccountCreationState'; diff --git a/test/unit/states/CleanUpState.spec.ts b/test/unit/states/CleanUpState.spec.ts index 9112ce9f..9965b781 100644 --- a/test/unit/states/CleanUpState.spec.ts +++ b/test/unit/states/CleanUpState.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023-2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import { CleanUpState } from '../../../src/state/CleanUpState'; diff --git a/test/unit/states/InitState.spec.ts b/test/unit/states/InitState.spec.ts index 3ec4f3d4..83043f46 100644 --- a/test/unit/states/InitState.spec.ts +++ b/test/unit/states/InitState.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import fs from 'fs'; diff --git a/test/unit/states/ResourceCreationState.spec.ts b/test/unit/states/ResourceCreationState.spec.ts index d8a9ac1f..eb2254fd 100644 --- a/test/unit/states/ResourceCreationState.spec.ts +++ b/test/unit/states/ResourceCreationState.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import { SinonFakeTimers, SinonSandbox, SinonSpy, SinonStub, SinonStubbedInstance, useFakeTimers } from 'sinon'; diff --git a/test/unit/states/StopState.spec.ts b/test/unit/states/StopState.spec.ts index 5687e03e..6e356387 100644 --- a/test/unit/states/StopState.spec.ts +++ b/test/unit/states/StopState.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import sinon from 'sinon'; diff --git a/test/unit/states/networkPrepState.spec.ts b/test/unit/states/networkPrepState.spec.ts index 13ee232e..1633c375 100644 --- a/test/unit/states/networkPrepState.spec.ts +++ b/test/unit/states/networkPrepState.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import { SinonSandbox, SinonSpy, SinonStub, SinonStubbedInstance } from 'sinon'; diff --git a/test/unit/states/recoveryState.spec.ts b/test/unit/states/recoveryState.spec.ts index fea6cd22..83a927fe 100644 --- a/test/unit/states/recoveryState.spec.ts +++ b/test/unit/states/recoveryState.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import { SinonSandbox, SinonSpy, SinonStub, SinonStubbedInstance } from 'sinon'; diff --git a/test/unit/states/startState.spec.ts b/test/unit/states/startState.spec.ts index 3fe5f776..9413c4c3 100644 --- a/test/unit/states/startState.spec.ts +++ b/test/unit/states/startState.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import { resolve } from 'path'; diff --git a/test/unit/testBed.ts b/test/unit/testBed.ts index 6d9c6ad9..a87fd415 100644 --- a/test/unit/testBed.ts +++ b/test/unit/testBed.ts @@ -1,22 +1,5 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 + import sinon from 'sinon'; import shell from 'shelljs'; import { LoggerService } from '../../src/services/LoggerService'; diff --git a/test/unit/utils/AccountUtils.spec.ts b/test/unit/utils/AccountUtils.spec.ts index c8e69558..f1bc84a3 100644 --- a/test/unit/utils/AccountUtils.spec.ts +++ b/test/unit/utils/AccountUtils.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { AccountUtils } from '../../../src/utils/AccountUtils'; import { diff --git a/test/unit/utils/RetryUtils.spec.ts b/test/unit/utils/RetryUtils.spec.ts index d65ad5a1..b947c6dc 100644 --- a/test/unit/utils/RetryUtils.spec.ts +++ b/test/unit/utils/RetryUtils.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { createStubInstance, SinonSpy, SinonStubbedInstance, spy, stub } from 'sinon'; import { LoggerService } from '../../../src/services/LoggerService'; diff --git a/test/unit/utils/SafeDockerNetworkRemover.spec.ts b/test/unit/utils/SafeDockerNetworkRemover.spec.ts index 94393cee..4af23316 100644 --- a/test/unit/utils/SafeDockerNetworkRemover.spec.ts +++ b/test/unit/utils/SafeDockerNetworkRemover.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2024 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { expect } from 'chai'; import sinon from 'sinon'; diff --git a/test/unit/utils/TokenUtils.spec.ts b/test/unit/utils/TokenUtils.spec.ts index c5feba1d..0351fa7c 100644 --- a/test/unit/utils/TokenUtils.spec.ts +++ b/test/unit/utils/TokenUtils.spec.ts @@ -1,22 +1,4 @@ -/*- - * - * Hedera Local Node - * - * Copyright (C) 2023 Hedera Hashgraph, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +// SPDX-License-Identifier: Apache-2.0 import { SinonSpy, SinonStub } from 'sinon'; import { before } from 'mocha';