Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
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
44 changes: 22 additions & 22 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "daily"
time: "09:00"
timezone: "Europe/Berlin"
interval: 'daily'
time: '09:00'
timezone: 'Europe/Berlin'
commit-message:
prefix: "deps"
prefix-development: "deps(dev)"
prefix: 'deps'
prefix-development: 'deps(dev)'
reviewers:
- "bajtos"
- "juliangruber"
- package-ecosystem: "github-actions"
directory: "/"
- 'bajtos'
- 'juliangruber'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "daily"
time: "09:00"
timezone: "Europe/Berlin"
interval: 'daily'
time: '09:00'
timezone: 'Europe/Berlin'
commit-message:
prefix: "ci"
prefix: 'ci'
reviewers:
- "bajtos"
- "juliangruber"
- package-ecosystem: "docker"
- 'bajtos'
- 'juliangruber'
- package-ecosystem: 'docker'
directories:
- "/"
- '/'
schedule:
interval: "daily"
time: "09:00"
timezone: "Europe/Berlin"
interval: 'daily'
time: '09:00'
timezone: 'Europe/Berlin'
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: "arm64"
platforms: 'arm64'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -92,12 +92,12 @@ jobs:

- name: Start Checker Node container with PASSPHRASE
run: |
docker run \
--name checker \
--detach \
--env FIL_WALLET_ADDRESS=0x000000000000000000000000000000000000dEaD \
--env PASSPHRASE=secret \
$IMAGEID
docker run \
--name checker \
--detach \
--env FIL_WALLET_ADDRESS=0x000000000000000000000000000000000000dEaD \
--env PASSPHRASE=secret \
$IMAGEID
env:
IMAGEID: ${{ steps.docker_build.outputs.imageid }}

Expand All @@ -111,11 +111,11 @@ jobs:

- name: Start Checker Node container without PASSPHRASE
run: |
docker run \
--name checker_unsecure \
--detach \
--env FIL_WALLET_ADDRESS=0x000000000000000000000000000000000000dEaD \
$IMAGEID
docker run \
--name checker_unsecure \
--detach \
--env FIL_WALLET_ADDRESS=0x000000000000000000000000000000000000dEaD \
$IMAGEID
env:
IMAGEID: ${{ steps.docker_build.outputs.imageid }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-approve-minor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Approve a PR
if: ${{startsWith(steps.metadata.outputs.dependency-names, matrix.dependencyStartsWith) && (steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor')}}
run: gh pr review --approve "$PR_URL"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Docker build
on:
push:
tags: ["*"]
tags: ['*']

env:
REGISTRY: ghcr.io
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: "arm64"
platforms: 'arm64'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -45,7 +45,7 @@ jobs:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=ghcr.io/checkernetwork/node
cache-to: type=inline

- if: failure()
uses: slackapi/slack-github-action@v2.0.0
with:
Expand All @@ -64,4 +64,4 @@ jobs:
}
}
]
}
}
8 changes: 1 addition & 7 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# We are using https://standardjs.com coding style. It is unfortunately incompatible with Prettier;
# see https://github.com/standard/standard/issues/996 and the linked issues.
# Standard does not handle Markdown files though, so we want to use Prettier formatting.
# The goal of the configuration below is to configure Prettier to lint only Markdown files.
**/*
!**/*.md

# Let's keep LICENSE.md in the same formatting as we use in other PL repositories
LICENSE.md
/lib/abi.json
21 changes: 21 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* @typedef {import('prettier').Config} Config
* @see https://prettier.io/docs/configuration
*/

/** @type {Config} */
export default {
plugins: [
// Order of plugins is important!
// See https://github.com/electrovir/prettier-plugin-multiline-arrays?tab=readme-ov-file#compatibility
'prettier-plugin-packagejson',
'prettier-plugin-jsdoc',
],

// built-in options
semi: false,
singleQuote: true,

// prettier-plugin-jsdoc
tsdoc: true,
}
2 changes: 0 additions & 2 deletions .prettierrc.yaml

This file was deleted.

34 changes: 18 additions & 16 deletions bin/checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Sentry.init({
release: pkg.version,
environment: pkg.sentryEnvironment,
tracesSampleRate: 0.1,
ignoreErrors: [/EACCES/, /EPERM/, /ENOSPC/, /EPIPE/]
ignoreErrors: [/EACCES/, /EPERM/, /ENOSPC/, /EPIPE/],
})

await maybeMigrateRuntimeState()
Expand All @@ -25,21 +25,23 @@ yargs(hideBin(process.argv))
.command(
'$0',
'Start Checker',
yargs => yargs
.option('json', {
alias: 'j',
type: 'boolean',
description: 'Output JSON'
})
.option('experimental', {
type: 'boolean',
description: 'Also run experimental subnets'
})
.option('recreateCheckerIdOnError', {
type: 'boolean',
description: 'Recreate Checker ID if it is corrupted'
}),
({ json, experimental, recreateCheckerIdOnError }) => checker({ json, experimental, recreateCheckerIdOnError })
(yargs) =>
yargs
.option('json', {
alias: 'j',
type: 'boolean',
description: 'Output JSON',
})
.option('experimental', {
type: 'boolean',
description: 'Also run experimental subnets',
})
.option('recreateCheckerIdOnError', {
type: 'boolean',
description: 'Recreate Checker ID if it is corrupted',
}),
({ json, experimental, recreateCheckerIdOnError }) =>
checker({ json, experimental, recreateCheckerIdOnError }),
)
.version(`${pkg.name}: ${pkg.version}`)
.alias('v', 'version')
Expand Down
Loading