-
Notifications
You must be signed in to change notification settings - Fork 147
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 #1028 from graphprotocol/fix_oz_n-03
fix: add security contact to various contract NatSpecs (OZ N-03)
- Loading branch information
Showing
7 changed files
with
18 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -16,6 +16,8 @@ import { GraphDirectory } from "../utilities/GraphDirectory.sol"; | |
* @notice This contract is part of the Graph Horizon payments protocol. It's designed | ||
* to pull funds (GRT) from the {PaymentsEscrow} and distribute them according to a | ||
* set of pre established rules. | ||
* @custom:security-contact Please email [email protected] if you find any | ||
* bugs. We may have an active bug bounty program. | ||
*/ | ||
contract GraphPayments is Initializable, MulticallUpgradeable, GraphDirectory, IGraphPayments { | ||
using TokenUtils for IGraphToken; | ||
|
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 |
---|---|---|
|
@@ -17,6 +17,8 @@ import { GraphDirectory } from "../utilities/GraphDirectory.sol"; | |
* @notice This contract is part of the Graph Horizon payments protocol. It holds the funds (GRT) | ||
* for payments made through the payments protocol for services provided | ||
* via a Graph Horizon data service. | ||
* @custom:security-contact Please email [email protected] if you find any | ||
* bugs. We may have an active bug bounty program. | ||
*/ | ||
contract PaymentsEscrow is Initializable, MulticallUpgradeable, GraphDirectory, IPaymentsEscrow { | ||
using TokenUtils for IGraphToken; | ||
|
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 |
---|---|---|
|
@@ -17,6 +17,8 @@ import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; | |
* @dev Note that the contract expects the RAV aggregate value to be monotonically increasing, each successive RAV for the same | ||
* (data service-payer-receiver) tuple should have a value greater than the previous one. The contract will keep track of the tokens | ||
* already collected and calculate the difference to collect. | ||
* @custom:security-contact Please email [email protected] if you find any | ||
* bugs. We may have an active bug bounty program. | ||
*/ | ||
contract TAPCollector is EIP712, GraphDirectory, ITAPCollector { | ||
using PPMMath for uint256; | ||
|
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 |
---|---|---|
|
@@ -24,6 +24,8 @@ import { HorizonStakingBase } from "./HorizonStakingBase.sol"; | |
* This is due to the contract size limit on Arbitrum (24kB). The extension contract implements functionality to support | ||
* the legacy staking functions and the transfer tools. Both can be eventually removed without affecting the main | ||
* staking contract. | ||
* @custom:security-contact Please email [email protected] if you find any | ||
* bugs. We may have an active bug bounty program. | ||
*/ | ||
contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain { | ||
using TokenUtils for IGraphToken; | ||
|
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 |
---|---|---|
|
@@ -24,6 +24,8 @@ import { HorizonStakingBase } from "./HorizonStakingBase.sol"; | |
* without losing rewards or having service interruptions. | ||
* @dev TODO: Once the transition period and the transfer tools are deemed not necessary this contract | ||
* can be removed. It's expected the transition period to last for a full allocation cycle (28 epochs). | ||
* @custom:security-contact Please email [email protected] if you find any | ||
* bugs. We may have an active bug bounty program. | ||
*/ | ||
contract HorizonStakingExtension is HorizonStakingBase, IL2StakingBase, IHorizonStakingExtension { | ||
using TokenUtils for IGraphToken; | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ import { GraphDirectory } from "@graphprotocol/horizon/contracts/utilities/Graph | |
import { DisputeManagerV1Storage } from "./DisputeManagerStorage.sol"; | ||
import { AttestationManager } from "./utilities/AttestationManager.sol"; | ||
|
||
/* | ||
/** | ||
* @title DisputeManager | ||
* @notice Provides a way to permissionlessly create disputes for incorrect behavior in the Subgraph Service. | ||
* | ||
|
@@ -40,6 +40,8 @@ import { AttestationManager } from "./utilities/AttestationManager.sol"; | |
* Arbitration: | ||
* Disputes can only be accepted, rejected or drawn by the arbitrator role that can be delegated | ||
* to a EOA or DAO. | ||
* @custom:security-contact Please email [email protected] if you find any | ||
* bugs. We may have an active bug bounty program. | ||
*/ | ||
contract DisputeManager is | ||
Initializable, | ||
|
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 |
---|---|---|
|
@@ -22,6 +22,11 @@ import { PPMMath } from "@graphprotocol/horizon/contracts/libraries/PPMMath.sol" | |
import { Allocation } from "./libraries/Allocation.sol"; | ||
import { LegacyAllocation } from "./libraries/LegacyAllocation.sol"; | ||
|
||
/** | ||
* @title SubgraphService contract | ||
* @custom:security-contact Please email [email protected] if you find any | ||
* bugs. We may have an active bug bounty program. | ||
*/ | ||
contract SubgraphService is | ||
Initializable, | ||
OwnableUpgradeable, | ||
|