diff --git a/.travis.yml b/.travis.yml
index cc9b1930..dd485874 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,15 +32,17 @@ jobs:
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
skip_cleanup: true
+ name: $VERSION @ $(date +'%d.%m.%Y %R')
file:
- dist/$EXECUTABLE_NAME
on:
- repo: skalenetwork/skaled
+ repo: $TRAVIS_REPO_SLUG
branch: stable
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
skip_cleanup: true
prerelease: true
+ name: $VERSION @ $(date +'%d.%m.%Y %R')
file:
- dist/$EXECUTABLE_NAME
on:
diff --git a/README.md b/README.md
index a6794b24..f1e4d528 100644
--- a/README.md
+++ b/README.md
@@ -6,22 +6,22 @@
SKALE Node CLI, part of the SKALE suite of validator tools, is the command line to setup, register and maintain your SKALE node.
## Table of Contents
-1. [Installation](#installation)
-2. [CLI usage](#cli-usage)
+
+1. [Installation](#installation)
+2. [CLI usage](#cli-usage)
2.1 [Top level commands](#top-level-commands)
- 2.2 [User](#user-commands)
+ 2.2 [User](#user-commands)
2.3 [Node](#node-commands)
2.4 [Wallet](#wallet-commands)
2.5 [sChains](#schain-commands)
2.6 [Containers](#containers-commands)
2.7 [Logs](#logs-commands)
-3. [Development](#development)
-
-
+3. [Development](#development)
## Installation
-- Download executable
+- Download executable
+
```bash
VERSION_NUM=0.0.0 && curl -L https://skale-cli.sfo2.cdn.digitaloceanspaces.com/skale-$VERSION_NUM-`uname -s`-`uname -m` > /usr/local/bin/skale
```
@@ -32,13 +32,13 @@ With `sudo`:
VERSION_NUM=0.0.0 && sudo -E bash -c "curl -L https://skale-cli.sfo2.cdn.digitaloceanspaces.com/skale-$VERSION_NUM-`uname -s`-`uname -m` > /usr/local/bin/skale"
```
-- Apply executable permissions to the binary:
+- Apply executable permissions to the binary:
```bash
chmod +x /usr/local/bin/skale
```
-- Test the installation
+- Test the installation
```bash
skale --help
@@ -66,7 +66,7 @@ skale version
Options:
-- `--short` - prints version only, without additional text.
+- `--short` - prints version only, without additional text.
##### host
@@ -78,9 +78,9 @@ skale host
Options:
-- `--reset` - Reset SKALE node host and remove saved cookies
+- `--reset` - Reset SKALE node host and remove saved cookies
-##### Attach
+##### Attach
Attach `skale-node-cli` to the remote node
@@ -89,9 +89,10 @@ skale attach $REMOTE_NODE_URL
```
Possible `REMOTE_NODE_URL` formats:
-- `http://NODE_IP:NODE_PORT`
-- `NODE_IP:NODE_PORT` - default schema is `http://`
-- `NODE_IP` - default port is `3007`
+
+- `http://NODE_IP:NODE_PORT`
+- `NODE_IP:NODE_PORT` - default schema is `http://`
+- `NODE_IP` - default port is `3007`
### User commands
@@ -108,11 +109,13 @@ skale user token
##### register
Interactive:
+
```bash
skale user register
```
Non-interactive:
+
```bash
skale user register -u/--username USERNAME -p/--password PASSWORD -t/--token TOKEN
```
@@ -120,11 +123,13 @@ skale user register -u/--username USERNAME -p/--password PASSWORD -t/--token TOK
##### login
Interactive:
+
```bash
skale user login
```
Non-interactive:
+
```bash
skale user login -u/--username user -p/--password pass
```
@@ -135,12 +140,10 @@ skale user login -u/--username user -p/--password pass
skale user logout
```
-
### Node commands
> Prefix: `skale node`
-
##### node init
Init SKALE node on current machine
@@ -152,45 +155,49 @@ skale node init
```
Required arguments:
-- `--github-token` - token for accessing `skale-node` repo
-- `--docker-username` - username for DockerHub
-- `--docker-password` - password for DockerHub
-- `--db-password` - MySQL password for local node database
-- `--disk-mountpoint` - Mount point of the disk to be used for storing sChains data
-- `--stream` - stream of `skale-node` to use
+
+- `--github-token` - token for accessing `skale-node` repo
+- `--docker-username` - username for DockerHub
+- `--docker-password` - password for DockerHub
+- `--db-password` - MySQL password for local node database
+- `--disk-mountpoint` - Mount point of the disk to be used for storing sChains data
+- `--stream` - stream of `skale-node` to use
Optional arguments:
-- `--mta-endpoint` - MTA endpoint to connect
-- `--endpoint` - RPC endpoint of the node in the network where SKALE manager is deployed
-- `--rpc-ip` - RPC IP of the network with SKALE Manager
-- `--rpc-port` - RPC port of the network with SKALE Manager
-- `--db-user` - MySQL user for local node database
-- `--db-root-password` - Password for root user of node internal database
-(equal to user password by default)
-- `--db-port` - Port for of node internal database (default is `3306`)
+
+- `--mta-endpoint` - MTA endpoint to connect
+- `--endpoint` - RPC endpoint of the node in the network where SKALE manager is deployed
+- `--rpc-ip` - RPC IP of the network with SKALE Manager
+- `--rpc-port` - RPC port of the network with SKALE Manager
+- `--db-user` - MySQL user for local node database
+- `--db-root-password` - Password for root user of node internal database
+ (equal to user password by default)
+- `--db-port` - Port for of node internal database (default is `3306`)
##### node register
Register SKALE node on SKALE Manager contracts
-- Login required
+- Login required
```bash
skale node register
```
Required arguments:
-- `--ip` - public IP for RPC connections & consensus
-
+
+- `--ip` - public IP for RPC connections & consensus
+
Optional arguments:
-- `--name` - SKALE node name
-- `--port` - base port for node sChains (default: `10000`)
-
-##### node info
+
+- `--name` - SKALE node name
+- `--port` - base port for node sChains (default: `10000`)
+
+##### node info
Get base info about SKALE node
-- Login required
+- Login required
```bash
skale node info
@@ -200,7 +207,6 @@ Options:
`-f/--format json/text` - optional
-
#### node purge
Remove SKALE node software from the machine.
@@ -213,8 +219,7 @@ skale node purge
Options:
-- `--yes` - remove without additional confirmation
-
+- `--yes` - remove without additional confirmation
##### node update
@@ -227,21 +232,22 @@ skale node update
```
Required arguments:
-- `--github-token` - token for accessing `skale-node` repo
-- `--docker-username` - username for DockerHub
-- `--docker-password` - password for DockerHub
-- `--db-password` - MySQL password for local node database
+
+- `--github-token` - token for accessing `skale-node` repo
+- `--docker-username` - username for DockerHub
+- `--docker-password` - password for DockerHub
+- `--db-password` - MySQL password for local node database
Optional arguments:
-- `--mta-endpoint` - MTA endpoint to connect
-- `--endpoint` - RPC endpoint of the node in the network where SKALE manager is deployed
-- `--rpc-ip` - RPC IP of the network with SKALE Manager
-- `--rpc-port` - RPC port of the network with SKALE Manager
-- `--db-user` - MySQL user for local node database
-- `--db-root-password` - Password for root user of node internal database
-(equal to user password by default)
-- `--db-port` - Port for of node internal database (default is `3306`)
+- `--mta-endpoint` - MTA endpoint to connect
+- `--endpoint` - RPC endpoint of the node in the network where SKALE manager is deployed
+- `--rpc-ip` - RPC IP of the network with SKALE Manager
+- `--rpc-port` - RPC port of the network with SKALE Manager
+- `--db-user` - MySQL user for local node database
+- `--db-root-password` - Password for root user of node internal database
+ (equal to user password by default)
+- `--db-port` - Port for of node internal database (default is `3306`)
###### Updating from v0.0.14 or earlier
@@ -260,7 +266,7 @@ Commands related to Ethereum wallet associated with SKALE node
##### wallet info
-- Login required
+- Login required
```bash
skale wallet info
@@ -270,20 +276,18 @@ Options:
`-f/--format json/text` - optional
-
##### wallet set
Set local wallet for the SKALE node
-- Login required
-- Local only
-- No node ony
+- Login required
+- Local only
+- No node ony
```bash
skale wallet set --private-key $ETH_PRIVATE_KEY
```
-
### sChain commands
> Prefix: `skale schains`
@@ -308,8 +312,7 @@ Node containers commands
> Prefix: `skale containers`
-
-##### SKALE containers
+##### SKALE containers
List of SKALE containers running on connected node
@@ -319,9 +322,9 @@ skale containers ls
Options:
-- `-a/--all` - list all containers (by default - only running)
+- `-a/--all` - list all containers (by default - only running)
-##### sChain containers
+##### sChain containers
List of sChain containers running on connected node
@@ -331,14 +334,12 @@ skale containers schains
Options:
-- `-a/--all` - list all sChain containers (by default - only running)
-
+- `-a/--all` - list all sChain containers (by default - only running)
-### Logs commands
+### Logs commands
> Prefix: `skale logs`
-
##### Logs list
```bash
@@ -359,7 +360,6 @@ sChain logs
skale logs download --schain/-s `schain_name` `filename`
```
-
##### CLI Logs
Fetch node CLI logs:
@@ -370,8 +370,7 @@ skale logs cli
Options:
-- `--debug` - show debug logs; more detailed output
-
+- `--debug` - show debug logs; more detailed output
##### Container Logs (from 0.2.1)
@@ -383,8 +382,7 @@ skale logs container [NAME]
Optional arguments:
-- `--lines`, `-l` - Output specified number of lines at the end of logs
-
+- `--lines`, `-l` - Output specified number of lines at the end of logs
##### Dump Logs (from 0.2.2)
@@ -396,21 +394,18 @@ skale logs dump [PATH]
Optional arguments:
-- `--container`, `-c` - Dump logs only from specified container
-
+- `--container`, `-c` - Dump logs only from specified container
### Validator commands (not implemented yet)
> Prefix: `skale validator`
-
##### validator list
```bash
skale validator list
```
-
## Development
### Setup repo
@@ -438,12 +433,11 @@ Run commands in dev mode:
ENV=dev python main.py YOUR_COMMAND
```
-### Setting up Travis
+### Setting up Travis
Required environment variables:
-- `ACCESS_KEY_ID` - DO Spaces/AWS S3 API Key ID
-- `SECRET_ACCESS_KEY` - DO Spaces/AWS S3 Secret access key
-- `GITHUB_EMAIL` - Email of GitHub user
-- `GITHUB_OAUTH_TOKEN` - GitHub auth token
-
+- `ACCESS_KEY_ID` - DO Spaces/AWS S3 API Key ID
+- `SECRET_ACCESS_KEY` - DO Spaces/AWS S3 Secret access key
+- `GITHUB_EMAIL` - Email of GitHub user
+- `GITHUB_OAUTH_TOKEN` - GitHub auth token
diff --git a/cli/containers.py b/cli/containers.py
index d1b87f7c..9f6f9e3f 100644
--- a/cli/containers.py
+++ b/cli/containers.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import click
from core.helper import login_required, get
from core.print_formatters import print_containers
diff --git a/cli/logs.py b/cli/logs.py
index 661c7e72..e67f0865 100644
--- a/cli/logs.py
+++ b/cli/logs.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import click
from core.helper import (login_required, get, download_log_file,
local_only, download_dump)
diff --git a/cli/metrics.py b/cli/metrics.py
index b004d9cf..a8bf0119 100644
--- a/cli/metrics.py
+++ b/cli/metrics.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import click
from core.helper import login_required, get
from core.print_formatters import print_metrics
diff --git a/cli/node.py b/cli/node.py
index d7374cd9..51fbc420 100644
--- a/cli/node.py
+++ b/cli/node.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import ipaddress
from urllib.parse import urlparse
diff --git a/cli/schains.py b/cli/schains.py
index 97dc6276..7f525149 100644
--- a/cli/schains.py
+++ b/cli/schains.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import click
import pprint
from core.helper import login_required, get
diff --git a/configs/api.py b/configs/api.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/configs/cli_logger.py b/configs/cli_logger.py
index c9cb5c41..b23edc1e 100644
--- a/configs/cli_logger.py
+++ b/configs/cli_logger.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import os
from configs.node import HOME_DIR
diff --git a/configs/node.py b/configs/node.py
index 370821fe..596ef775 100644
--- a/configs/node.py
+++ b/configs/node.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import os
from pathlib import Path
diff --git a/configs/resource_allocation.py b/configs/resource_allocation.py
index d6c18f22..be07a850 100644
--- a/configs/resource_allocation.py
+++ b/configs/resource_allocation.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import os
from configs.node import NODE_DATA_PATH
from core.config import THIRDPARTY_FOLDER_PATH, DATAFILES_FOLDER
diff --git a/core/config.py b/core/config.py
index 5f803b9b..a664f8a1 100644
--- a/core/config.py
+++ b/core/config.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import sys
import os
import platform
diff --git a/core/core.py b/core/core.py
index 37c91b9d..e6a8eac1 100644
--- a/core/core.py
+++ b/core/core.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import inspect
import requests
from core.config import URLS, LONG_LINE
diff --git a/core/helper.py b/core/helper.py
index cc203a71..4c018e63 100644
--- a/core/helper.py
+++ b/core/helper.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import pickle
import yaml
import os
diff --git a/core/host.py b/core/host.py
index e86d3d04..dffe3467 100644
--- a/core/host.py
+++ b/core/host.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import os
import logging
import subprocess
diff --git a/core/node.py b/core/node.py
index 72d9125f..a7aac115 100644
--- a/core/node.py
+++ b/core/node.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import os
import logging
import requests
diff --git a/core/print_formatters.py b/core/print_formatters.py
index f9499c9f..5ea438a4 100644
--- a/core/print_formatters.py
+++ b/core/print_formatters.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import os
import datetime
import texttable
diff --git a/core/resources.py b/core/resources.py
index c70dfe89..4dcf0cab 100644
--- a/core/resources.py
+++ b/core/resources.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import os
import logging
import psutil
diff --git a/core/schains.py b/core/schains.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/core/user.py b/core/user.py
index 5f268296..c529fc86 100644
--- a/core/user.py
+++ b/core/user.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import requests
import logging
import pickle
diff --git a/core/validators.py b/core/validators.py
index 2845047d..2dac8041 100644
--- a/core/validators.py
+++ b/core/validators.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
from core.config import URLS
from core.helper import get_node_creds, construct_url, get_request
diff --git a/core/wallet.py b/core/wallet.py
index ed7f0572..7b9d04dc 100644
--- a/core/wallet.py
+++ b/core/wallet.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import inspect
from skale.utils.helper import private_key_to_address
diff --git a/main.py b/main.py
index 0ebf8111..cdd6dcb2 100644
--- a/main.py
+++ b/main.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import click
import sys
import logging
diff --git a/scripts/upload_to_do.py b/scripts/upload_to_do.py
index 7f5cef13..ad7b491b 100644
--- a/scripts/upload_to_do.py
+++ b/scripts/upload_to_do.py
@@ -28,7 +28,7 @@ def upload_file(access_key_id, secret_access_key, filename, space, key, region='
endpoint_url=endpoint_url,
aws_access_key_id=access_key_id,
aws_secret_access_key=secret_access_key)
- client.upload_file(filename, space, key)
+ client.upload_file(filename, space, key, ExtraArgs={'ACL': 'public-read'})
if __name__ == "__main__":
diff --git a/tools/helper.py b/tools/helper.py
index bca3c2d6..e27f7200 100644
--- a/tools/helper.py
+++ b/tools/helper.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
import os
import logging
import urllib.request
diff --git a/tools/schain_types.py b/tools/schain_types.py
index c1ed9f22..3849c0f6 100644
--- a/tools/schain_types.py
+++ b/tools/schain_types.py
@@ -1,3 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of skale-node-cli
+#
+# Copyright (C) 2019 SKALE Labs
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
from enum import Enum