Skip to content

Commit 9c31b6c

Browse files
chore: changed license header to SPDX and ran npm run format (#1233)
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
1 parent b044fcc commit 9c31b6c

File tree

159 files changed

+165
-2219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+165
-2219
lines changed

docs/content/User/StepByStepGuide.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Advanced User Guide
2+
23
For those who would like to have more control or need some customized setups, here are some step by step instructions of how to setup and deploy a solo network.
4+
35
### Setup Kubernetes cluster
46

57
#### Remote cluster
@@ -28,6 +30,7 @@ Then run the following command to set the kubectl context to the new cluster:
2830
```bash
2931
kind create cluster -n "${SOLO_CLUSTER_NAME}"
3032
```
33+
3134
Example output
3235

3336
```
@@ -48,7 +51,6 @@ Have a nice day! 👋
4851

4952
You may now view pods in your cluster using `k9s -A` as below:
5053

51-
5254
```
5355
Context: kind-solo <0> all <a> Attach <ctr… ____ __.________
5456
Cluster: kind-solo <ctrl-d> Delete <l> | |/ _/ __ \______
@@ -75,7 +77,6 @@ You may now view pods in your cluster using `k9s -A` as below:
7577
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
7678
```
7779

78-
7980
### Step by Step Instructions
8081

8182
* Initialize `solo` directories:
@@ -136,13 +137,16 @@ Kubernetes Cluster : kind-solo
136137
✔ Generate gRPC TLS Keys
137138
✔ Finalize
138139
```
140+
139141
PEM key files are generated in `~/.solo/keys` directory.
142+
140143
```
141144
hedera-node1.crt hedera-node3.crt s-private-node1.pem s-public-node1.pem unused-gossip-pem
142145
hedera-node1.key hedera-node3.key s-private-node2.pem s-public-node2.pem unused-tls
143146
hedera-node2.crt hedera-node4.crt s-private-node3.pem s-public-node3.pem
144147
hedera-node2.key hedera-node4.key s-private-node4.pem s-public-node4.pem
145148
```
149+
146150
* Setup cluster with shared components
147151

148152
```

eslint.config.mjs

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import globals from 'globals';
185
import eslintJs from '@eslint/js';
@@ -54,11 +41,7 @@ export default [
5441
'error',
5542
{
5643
source: 'string',
57-
variables: {
58-
year: '2024',
59-
},
60-
content:
61-
'Copyright (C) {year} Hedera Hashgraph, LLC\n\nLicensed under the Apache License, Version 2.0 (the ""License"");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an ""AS IS"" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n',
44+
content: 'SPDX-License-Identifier: Apache-2.0',
6245
},
6346
],
6447
'prettier/prettier': 'error',

examples/create-topic.js

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import {
185
Wallet,

examples/sdk-network-connection/solo-network-connection.js

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import {AccountBalanceQuery, AccountId, Client, Logger, LogLevel, PrivateKey} from '@hashgraph/sdk';
185

resources/post-build-script.js

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
'use strict';
185
import fs from 'node:fs';

solo.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
#!/usr/bin/env node
22
/**
3-
* Copyright (C) 2024 Hedera Hashgraph, LLC
4-
*
5-
* Licensed under the Apache License, Version 2.0 (the ""License"");
6-
* you may not use this file except in compliance with the License.
7-
* You may obtain a copy of the License at
8-
*
9-
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
11-
* Unless required by applicable law or agreed to in writing, software
12-
* distributed under the License is distributed on an ""AS IS"" BASIS,
13-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* See the License for the specific language governing permissions and
15-
* limitations under the License.
16-
*
3+
* SPDX-License-Identifier: Apache-2.0
174
*/
185
import * as fnm from './src/index.js';
196

src/commands/account.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import chalk from 'chalk';
185
import {BaseCommand} from './base.js';

src/commands/base.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174

185
import paths from 'path';

src/commands/cluster/configs.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174

185
import type {NodeAlias} from '../../types/aliases.js';

src/commands/cluster/flags.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174

185
import {Flags as flags} from '../flags.js';

src/commands/cluster/handlers.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import type {BaseCommand, CommandHandlers} from '../base.js';
185
import type {ClusterCommandTasks} from './tasks.js';

src/commands/cluster/index.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174

185
import * as ContextFlags from './flags.js';

src/commands/cluster/tasks.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import {Task} from '../../core/task.js';
185
import {Flags as flags} from '../flags.js';

src/commands/deployment.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import {Listr} from 'listr2';
185
import {SoloError} from '../core/errors.js';

src/commands/explorer.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import {ListrEnquirerPromptAdapter} from '@listr2/prompt-adapter-enquirer';
185
import {Listr} from 'listr2';

src/commands/flags.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import * as constants from '../core/constants.js';
185
import * as version from '../../version.js';

src/commands/index.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Hedera Hashgraph, LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the ""License"");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an ""AS IS"" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*
2+
* SPDX-License-Identifier: Apache-2.0
163
*/
174
import {ClusterCommand} from './cluster/index.js';
185
import {InitCommand} from './init.js';

0 commit comments

Comments
 (0)