-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #472 from skalenetwork/develop
New beta version
- Loading branch information
Showing
86 changed files
with
2,846 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist,venv,skale-manager | ||
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist,venv,node_modules,helper-scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,4 +120,6 @@ allocator_contracts_data/ | |
|
||
.DS_Store | ||
|
||
.vscode/ | ||
.vscode/ | ||
|
||
fake_multisig_data.json |
Submodule helper-scripts
updated
10 files
+ − | .DS_Store | |
+3 −0 | .flake8 | |
+1 −1 | README.md | |
+2 −1 | deploy_manager.sh | |
+2 −1 | deploy_test_allocator.sh | |
+2 −1 | deploy_test_ima.sh | |
+2 −1 | deploy_test_manager.sh | |
+35 −8 | generate_schain_allocaction.py | |
+9 −7 | helper.sh | |
+136 −0 | load_geth.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[pytest] | ||
log_cli = 0 | ||
log_cli_level = INFO | ||
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s) | ||
log_cli_date_format=%Y-%m-%d %H:%M:%S | ||
filterwarnings = ignore::DeprecationWarning |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo apt-get update --fix-missing | ||
sudo apt-get install libudev-dev | ||
sudo apt-get install libusb-1.0-0-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
python -m pip install --upgrade pip | ||
pip install -e . | ||
pip install -e .[dev] | ||
pip install codecov pytest-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
PROJECT_DIR=$(dirname $DIR) | ||
export ENDPOINT=${ENDPOINT:-http://localhost:8545} | ||
export ENV=test | ||
|
||
python $PROJECT_DIR/tests/prepare_data.py | ||
py.test --cov=$PROJECT_DIR/ $PROJECT_DIR/tests/ --ignore $PROJECT_DIR/tests/allocator $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,18 +32,20 @@ | |
|
||
setup( | ||
name='skale.py', | ||
version='4.1', | ||
version='5.7', | ||
description='SKALE client tools', | ||
long_description_markdown_filename='README.md', | ||
author='SKALE Labs', | ||
author_email='[email protected]', | ||
url='https://github.com/skalenetwork/skale.py', | ||
include_package_data=True, | ||
install_requires=[ | ||
"web3==5.8.0", | ||
"web3==5.25.0", | ||
"asyncio==3.4.3", | ||
"pyyaml==5.3.1", | ||
"sgx.py==0.6b1" | ||
"pyyaml==5.4", | ||
"sgx.py==0.8dev3", | ||
"eth-account==0.5.6", | ||
"redis==3.5.3" | ||
], | ||
|
||
python_requires='>=3.7,<4', | ||
|
@@ -52,14 +54,10 @@ | |
keywords='skale', | ||
packages=find_packages(exclude=['tests']), | ||
classifiers=[ | ||
'Development Status :: 2 - Pre-Alpha', | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3.7', | ||
], | ||
|
||
package_data={ # Optional | ||
'contracts': ['utils/contracts_data.json', 'envs/envs.yml', 'envs/aws.json'], | ||
}, | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# flake8: noqa | ||
|
||
from skale.contracts.contract_manager import ContractManager | ||
from skale.contracts.base_contract import BaseContract, transaction_method | ||
|
||
from skale.contracts.ima.linker import Linker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of SKALE.py | ||
# | ||
# Copyright (C) 2019-Present SKALE Labs | ||
# | ||
# SKALE.py 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. | ||
# | ||
# SKALE.py 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 Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with SKALE.py. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
from skale.contracts.base_contract import BaseContract, transaction_method | ||
|
||
|
||
class Linker(BaseContract): | ||
@transaction_method | ||
def connect_schain( | ||
self, | ||
schain_name: str, | ||
mainnet_contracts: list | ||
): | ||
return self.contract.functions.connectSchain( | ||
schain_name, | ||
mainnet_contracts | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.