-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into dapp-development
- Loading branch information
Showing
25 changed files
with
69,348 additions
and
302 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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Solidity docs | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- releases/mainnet/v** | ||
release: | ||
types: | ||
- "published" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docs-detect-changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
path-filter: ${{ steps.filter.outputs.path-filter }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
if: github.event_name == 'pull_request' | ||
- uses: dorny/paths-filter@v2 | ||
if: github.event_name == 'pull_request' | ||
id: filter | ||
with: | ||
filters: | | ||
path-filter: | ||
- './contracts/**' | ||
- './.github/workflows/contracts-docs.yml' | ||
# This job will be triggered for PRs which modify contracts. It will generate | ||
# the archive with contracts documentation in Markdown and attatch it to the | ||
# workflow run results. Link to the archive will be posted in a PR comment. | ||
# The job will also be run after manual triggering and after pushes to the | ||
# `releases/mainnet/**` branches. | ||
contracts-docs-publish-preview: | ||
name: Publish preview of contracts documentation | ||
needs: docs-detect-changes | ||
if: | | ||
needs.docs-detect-changes.outputs.path-filter == 'true' | ||
|| github.event_name == 'push' | ||
|| github.event_name == 'workflow_dispatch' | ||
uses: keep-network/ci/.github/workflows/reusable-solidity-docs.yml@main | ||
with: | ||
publish: false | ||
addTOC: false | ||
commentPR: true | ||
exportAsGHArtifacts: true | ||
|
||
# This job will be triggered for releases which name starts with | ||
# `refs/tags/v`. It will generate contracts documentation in | ||
# Markdown and sync it with a specific path of | ||
# `threshold-network/threshold` repository. If changes will be detected, | ||
# a PR updating the docs will be created in the destination repository. The | ||
# commit pushing the changes will be verified using GPG key. | ||
contracts-docs-publish: | ||
name: Publish contracts documentation | ||
needs: docs-detect-changes | ||
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') | ||
uses: keep-network/ci/.github/workflows/reusable-solidity-docs.yml@main | ||
with: | ||
publish: true | ||
addTOC: false | ||
verifyCommits: true | ||
destinationRepo: threshold-network/threshold | ||
destinationFolder: ./docs/app-development/staking-contract-and-dao/staking-contract-and-dao-api | ||
destinationBaseBranch: main | ||
userEmail: [email protected] | ||
userName: Valkyrie | ||
rsyncDelete: true | ||
secrets: | ||
githubToken: ${{ secrets.THRESHOLD_DOCS_GITHUB_TOKEN }} | ||
gpgPrivateKey: ${{ secrets.THRESHOLD_DOCS_GPG_PRIVATE_KEY_BASE64 }} | ||
gpgPassphrase: ${{ secrets.THRESHOLD_DOCS_GPG_PASSPHRASE }} |
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
File renamed without changes.
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ artifacts/ | |
build/ | ||
cache/ | ||
deployments/ | ||
docgen-templates/ | ||
export/ |
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,11 +1,32 @@ | ||
# Security Policy | ||
|
||
## Reporting a Vulnerability | ||
## Bug Bounty Program | ||
|
||
If you identify vulnerabilities with any Threshold Network code, please email `[email protected]` with relevant information to your findings. We will work with researchers to coordinate vulnerability disclosure between our stakers, partners, and users to ensure the successful mitigation of vulnerabilities. | ||
Threshold Network has a [Bug Bounty program with Immunefi](https://immunefi.com/bounty/thresholdnetwork/). | ||
|
||
Throughout the reporting process, we expect researchers to honor an embargo period that may vary depending on the severity of the disclosure. This ensures that we have the opportunity to fix any issues, identify further issues (if any), and inform our users. | ||
The details for the Bug Bounty are maintained and updated at the [Immunefi Threshold page](https://immunefi.com/bounty/thresholdnetwork/). There you can explore the assets in scope for the bounty and the different rewards by threat level. As a guide, the initial bounty program launched with the following rewards according to the severity of the threats found: | ||
|
||
Sometimes vulnerabilities are more sensitive in nature and require extra precautions. We are happy to work together to use a more secure medium, such as Signal. Email [email protected] and we will coordinate a communication channel that we're both comfortable with. | ||
Smart Contracts | ||
|
||
A great place to begin your research is by working on our testnet. Please see our [documentation](https://docs.threshold.network) to get started. We ask that you please respect network machines and their owners. If you find a vulnerability that you suspect has given you access to a machine against the owner's permission, stop what you're doing and immediately email `[email protected]`. | ||
- Critical Level: USD $100,000 to USD $500,000 | ||
- High Level: USD $10,000 to USD $50,000 | ||
- Medium Level: USD $1,000 to USD $5,000 | ||
- Low Level: USD $1,000 | ||
|
||
Websites and Applications | ||
|
||
- Critical Level: USD $10,000 to USD $25,000 | ||
- High Level: USD $1,000 to USD $10,000 | ||
- Medium Level: USD $1,000 | ||
|
||
A great place to begin your research is by working on our testnet. Please see our [documentation](https://docs.threshold.network) to get started. We ask that you please respect network machines and their owners. If you find a vulnerability that you suspect has given you access to a machine against the owner's permission, stop what you're doing and create a report using the Immunefi dashboard for researchers. | ||
|
||
Rewards are distributed according to the impact of the vulnerability based on the [Immunefi Vulnerability Severity Classification System V2.3](https://immunefi.com/immunefi-vulnerability-severity-classification-system-v2-3/). This is a simplified 4-level scale, with separate scales for websites/apps, smart contracts, and blockchains/DLTs, focusing on the impact of the vulnerability reported. | ||
|
||
## Reporting a Vulnerability Not Covered by the Bug Bounty Program | ||
|
||
Please verify the list of assets in-scope and out-of-scope available as part of the [Threshold Bug Bounty details](https://immunefi.com/bounty/thresholdnetwork/). Additionally, security researchers are encouraged to submit issues outside of the outlined "Impacts" and "Assets in Scope". If you can demonstrate a critical impact on code in production for an asset not in scope, Threshold DAO encourages you to submit your bug report using the “primacy of impact exception” asset in Immunefi. | ||
|
||
Threshold DAO will try to make an initial assessment of a bug's relevance, severity, and exploitability, and communicate this back to the reporter. The Threshold DAO will compensate important findings on a case-by-case basis. We value security researchers and we encourage you to contact us to discuss your findings. | ||
|
||
We also ask all researchers to please submit their reports in English. |
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
Oops, something went wrong.