-
Notifications
You must be signed in to change notification settings - Fork 157
chore: move all interfaces to dedicated package #1187
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
base: horizon
Are you sure you want to change the base?
Changes from 1 commit
be8d5a1
942c1aa
f86ffbb
63b8c27
32ef00c
f8bb3a5
7f21b0b
be1acc5
8aef58d
0112d1b
9c67f29
495e576
71b90c4
0f7080d
2bfd7e0
62eb5aa
5f707a8
2c94da4
5ef5fe9
e75ae57
039a32e
f6c2e1c
31edeed
4f23eea
fbe38f9
ed51926
b4fe809
a8469af
8b7f14c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# hardhat-graph-protocol | ||
|
||
## 0.2.5 | ||
|
||
### Patch Changes | ||
|
||
- @graphprotocol/toolshed@0.6.5 | ||
|
||
## 0.2.4 | ||
|
||
### Patch Changes | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. General observation, sorry if painful to implement. :) Would a suffix like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes to all. It would be better and slightly painful, but worth it I believe. I'll add it to my to-do list, but need to knock off some higher prio items first. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity 0.8.27; | ||
|
||
interface IAllocationManager { | ||
// Events | ||
event AllocationCreated( | ||
address indexed indexer, | ||
address indexed allocationId, | ||
bytes32 indexed subgraphDeploymentId, | ||
uint256 tokens, | ||
uint256 currentEpoch | ||
); | ||
|
||
event IndexingRewardsCollected( | ||
address indexed indexer, | ||
address indexed allocationId, | ||
bytes32 indexed subgraphDeploymentId, | ||
uint256 tokensRewards, | ||
uint256 tokensIndexerRewards, | ||
uint256 tokensDelegationRewards, | ||
bytes32 poi, | ||
bytes poiMetadata, | ||
uint256 currentEpoch | ||
); | ||
|
||
event AllocationResized( | ||
address indexed indexer, | ||
address indexed allocationId, | ||
bytes32 indexed subgraphDeploymentId, | ||
uint256 newTokens, | ||
uint256 oldTokens | ||
); | ||
|
||
event AllocationClosed( | ||
address indexed indexer, | ||
address indexed allocationId, | ||
bytes32 indexed subgraphDeploymentId, | ||
uint256 tokens, | ||
bool forceClosed | ||
); | ||
|
||
event LegacyAllocationMigrated( | ||
address indexed indexer, | ||
address indexed allocationId, | ||
bytes32 indexed subgraphDeploymentId | ||
); | ||
|
||
event MaxPOIStalenessSet(uint256 maxPOIStaleness); | ||
|
||
// Errors | ||
error AllocationManagerInvalidAllocationProof(address signer, address allocationId); | ||
error AllocationManagerInvalidZeroAllocationId(); | ||
error AllocationManagerAllocationClosed(address allocationId); | ||
error AllocationManagerAllocationSameSize(address allocationId, uint256 tokens); | ||
} |
Uh oh!
There was an error while loading. Please reload this page.