Skip to content

Commit

Permalink
Merge pull request #339 from skalenetwork/beta
Browse files Browse the repository at this point in the history
2.2 stable (2.3 release)
  • Loading branch information
badrogger authored Feb 16, 2024
2 parents 682b008 + 46761c9 commit a8d37ec
Show file tree
Hide file tree
Showing 30 changed files with 3,538 additions and 3,144 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8]
python-version: [3.11]
if: github.event.pull_request.merged
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -22,10 +22,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.8
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.11
# - name: Checkout submodules
# uses: textbook/git-checkout-submodule-action@master
# with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.11]

env:
ETH_PRIVATE_KEY: ${{ secrets.ETH_PRIVATE_KEY }}
Expand All @@ -33,6 +33,7 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install codecov
- name: Lint with flake8
run: flake8 .

Expand Down
18 changes: 9 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ test_abi.json
unique.json
manager.json

# hardhat-node
hardhat-node/node_modules
hardhat-node/.env
hardhat-node/coverage
hardhat-node/coverage.json
hardhat-node/typechain
hardhat-node/cache
hardhat-node/artifacts
hardhat-node/abi.json
# contract-sample
tests/tester-contract/node_modules
tests/tester-contract/.env
tests/tester-contract/coverage
tests/tester-contract/coverage.json
tests/tester-contract/typechain
tests/tester-contract/cache
tests/tester-contract/artifacts
tests/tester-contract/abi.json
6 changes: 5 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[submodule "helper-scripts"]
path = helper-scripts
url = https://github.com/skalenetwork/helper-scripts.git
branch = develop
branch = develop

[submodule "hardhat-node"]
path = hardhat-node
url = https://github.com/skalenetwork/hardhat-node.git
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.8-buster
FROM python:3.11-bookworm

RUN apt update && apt install build-essential python-dev libssl-dev swig --yes
RUN apt update && apt install build-essential libssl-dev swig --yes

RUN mkdir app
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.5
2.2.0
1 change: 1 addition & 0 deletions hardhat-node
Submodule hardhat-node added at 8a4b03
15 changes: 0 additions & 15 deletions hardhat-node/Dockerfile

This file was deleted.

14 changes: 9 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
flake8==3.8.2
mock==4.0.2
mypy==0.790
pytest==6.0.1
pytest-cov==2.8.1
flake8==6.1.0

# mypy
mypy==1.7.1
types-redis==4.6.0.11

# pytest
pytest==7.4.3
pytest-cov==4.1.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
skale.py==6.0dev0
skale.py==6.2b0
8 changes: 4 additions & 4 deletions scripts/run-test-containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ gen_sgx_key() {
}

deploy_test_contract() {
cd hardhat-node
cd tests/tester-contract/
yarn install
npx hardhat run --network localhost scripts/deploy.ts
cd -
Expand All @@ -65,12 +65,12 @@ cleanup_skale_dir
cleanup_redis_dir
create_skale_dir
create_redis_dir
build tm hnode
build tm

if [ -z ${SGX_URL} ]; then
run_containers tm hnode redis
run_containers tm redis hnode
else
run_containers sgx tm hnode redis
run_containers sgx tm redis hnode
gen_sgx_key
fi

Expand Down
Empty file added tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/attempt/v2_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from mock import Mock
from unittest.mock import Mock
from skale.utils.account_tools import send_eth

from transaction_manager.attempt_manager.base import NoCurrentAttemptError
Expand Down
2 changes: 1 addition & 1 deletion tests/processor_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock
import pytest

from transaction_manager.config import MAX_RESUBMIT_AMOUNT
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ function getAccounts() {
return accounts;
}

// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();

Expand All @@ -42,9 +40,6 @@ task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
}
});

// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more

const config: HardhatUserConfig = {
solidity: "0.8.4",
networks: {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit a8d37ec

Please sign in to comment.