Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SafeMock #225

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@ updates:
schedule:
interval: "weekly"
day: "saturday"

- package-ecosystem: "pip"
directory: "/scripts/"
schedule:
interval: "weekly"
day: "saturday"
38 changes: 38 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "cla"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]

jobs:
cla:
runs-on: ubuntu-latest
steps:
- name: "Get Team Members"
id: team
# github-script, v6.1.0
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da
with:
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
result-encoding: string
script: |
const members = await github.paginate(
github.rest.orgs.listMembers,
{ org: "skalenetwork" },
);
return members.map(m => m.login).join(",");

- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release, v2.1.3-beta
uses: cla-assistant/github-action@ba066dbae3769e2ce93ec8cfc4fdc51b9db628ba
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://skale.network/cla.txt'
remote-organization-name: 'skalenetwork'
remote-repository-name: cla-sigs
allowlist: '${{ steps.team.outputs.result }},*[bot]'
22 changes: 22 additions & 0 deletions .github/workflows/issue_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# cSpell:words mondeja

name: Get linked issues
on:
pull_request:
types: [ edited, synchronize, opened, reopened ]

jobs:
check-linked-issues:
name: Check if pull request has linked issues
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
runs-on: ubuntu-latest
steps:
- name: Get issues
id: get-issues
uses: mondeja/pr-linked-issues-action@v2
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: PR has not linked issues
if: join(steps.get-issues.outputs.issues) == ''
run:
exit 1
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install slither
run: pip3 install -r scripts/requirements.txt

- name: Show slither version
run: slither --version

- name: Install project
run: yarn install

Expand Down
22 changes: 0 additions & 22 deletions .solhint.json

This file was deleted.

199 changes: 0 additions & 199 deletions contracts/SafeMock.sol

This file was deleted.

13 changes: 0 additions & 13 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@ import "@nomiclabs/hardhat-ethers";
import "@openzeppelin/hardhat-upgrades";

const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.8.11',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
]
},
typechain: {
target: "ethers-v5",
externalArtifacts: ['node_modules/@openzeppelin/upgrades-core/artifacts/[!b]*.json']
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@
"license": "AGPL-3.0",
"private": false,
"scripts": {
"prepare": "yarn hooks",
"prepare": "yarn hooks && yarn install-peers",
"compile": "npx hardhat typechain && tsc",
"prepublishOnly": "yarn compile",
"install-peers": "install-peers -f",
"hooks": "git config core.hooksPath .githooks || true",
"no-hooks": "git config core.hooksPath .git/hooks",
"fullCheck": "yarn compile && yarn lint && yarn eslint && yarn cspell && yarn slither",
"lint": "npx solhint \"contracts/**/*.sol\"",
"slither": "slither .",
"fullCheck": "yarn compile && yarn eslint && yarn cspell",
"eslint": "npx eslint .",
"cspell": "npx cspell \"**/*\""
},
"devDependencies": {
"@openzeppelin/contracts-upgradeable": "^4.4.2",
"@tsconfig/recommended": "^1.0.2",
"@typechain/ethers-v5": "^9.0.0",
"@typechain/hardhat": "^8.0.0",
Expand All @@ -34,13 +33,11 @@
"cspell": "^7.0.0",
"eslint": "^8.15.0",
"install-peers-cli": "^2.2.0",
"solhint": "^3.3.7",
"ts-node": "^10.5.0",
"typechain": "^8.2.0",
"typescript": "^5.1.6"
},
"dependencies": {
"@openzeppelin/contracts-upgradeable": "^4.4.2",
"@safe-global/api-kit": "^1.3.0",
"@safe-global/protocol-kit": "^1.2.0",
"@safe-global/safe-core-sdk-types": "^2.2.0",
Expand Down
1 change: 0 additions & 1 deletion scripts/requirements.txt

This file was deleted.

4 changes: 0 additions & 4 deletions slither.config.json

This file was deleted.

Loading