forked from graphprotocol/graph-network-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
111 additions
and
43 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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"graphToken": "0xa887a968BDb0e42D3Ffc2d6ff253568c6d2CaF34", | ||
"epochManager": "0xFd12A3ee8Bf3C417e0cedbc591BA10156724C069", | ||
"disputeManager": "0x449B394836881CA995d4db4313064a66aF5Ca0b0", | ||
"staking": "0xFC6CCBa00ceA43512cC50f6f8CC029E782c5AC96", | ||
"curation": "0x17F93B680C293308C1bA4C647a2823e175E32818", | ||
"rewardsManager": "0x20AbE3B457e510EEF66D2518212A6f862E1ebfA9", | ||
"serviceRegistry": "0x3f721A12d82A5A8a5132e93d6f0707031E4810E4", | ||
"gns": "0x497609273754d77F354B26f7CCbb30a78468B00c", | ||
"ens": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", | ||
"ensPublicResolver": "0xc30F6CCc48F1eA5374aC618dfe5243ddD1e264E7", | ||
"graphToken": "0x71f250B2b52EB84608fA2Bd02c08B407E89594A1", | ||
"epochManager": "0xe49878463A5296a0B8087f5Fd100FAfAB4F0BD32", | ||
"disputeManager": "0xfb1E055112008BBCc9d2415685cd463342796510", | ||
"staking": "0xA62BF1D476164D73817145A4C4585df8d998AD0b", | ||
"curation": "0x4586C4377aA36bc8101ec54B3CEE7e1f618c1b35", | ||
"rewardsManager": "0x39300D136211838914EC93585e15cAaC1B7D2b5F", | ||
"serviceRegistry": "0x4249F468d5865EE8Ada14e0a41BfbaC9cf4688A5", | ||
"gns": "0xFf0384D727221E3c6C80Efc70D18090b380d4626", | ||
"ens": "", | ||
"ensPublicResolver": "", | ||
"blockNumber": "6900000", | ||
"network": "rinkeby" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { GraphNetwork } from '../types/schema' | ||
import { RewardsAssigned, RewardsClaimed } from '../types/RewardsManager/RewardsManager' | ||
import { createOrLoadGraphNetwork, createOrLoadEpoch } from './helpers' | ||
|
||
/** | ||
* @dev handleEpochRun | ||
* - updates the last run epoch | ||
*/ | ||
export function handleRewardsAssigned(event: RewardsAssigned): void { | ||
// let graphNetwork = GraphNetwork.load('1') | ||
// graphNetwork.lastRunEpoch = event.params.epoch.toI32() | ||
// graphNetwork.save() | ||
} | ||
|
||
/** | ||
* @dev handleEpochLengthUpdate | ||
* - updates the length and the last block and epoch it happened | ||
*/ | ||
export function handleRewardsClaimed(event: RewardsClaimed): void { | ||
// let graphNetwork = createOrLoadGraphNetwork() | ||
// graphNetwork.epochLength = event.params.epochLength.toI32() | ||
// graphNetwork.lastLengthUpdateEpoch = graphNetwork.currentEpoch | ||
// graphNetwork.lastLengthUpdateBlock = event.block.number.toI32() | ||
// graphNetwork.save() | ||
|
||
// let epoch = createOrLoadEpoch(event.block.number) | ||
// epoch.endBlock = epoch.startBlock + graphNetwork.epochLength | ||
// epoch.save() | ||
} | ||
|
||
// TODO - do we need to do the deny list? | ||
|
||
|
||
|
||
/* | ||
subgraph.totalIndexingRewards - which is upwards so dont do it | ||
subgraphDeployment.indexingRewardAmount | ||
subgraphDeployment.rebateAmount ?????????? | ||
subgraphDeployment.curateFeeREwards??????? xxxxx - this is from AllocationCollected.event.params.curationFees | ||
subgraphDeployment.queryFeeAmount i DOUBT it xxxx same as above | ||
indexer.queryFeesCollected - i doubt it | ||
indexer.queryFeeRebates - ? | ||
indexer.rewardsEarned | ||
allocation.queryFeesCollected - i doubt | ||
allocation.queryFeeRebates - ? | ||
allocatio.CuratorRewards ??xxxxxxxx | ||
TODO - no indexingReward amount here, why not? | ||
pool.claimedFees - ? xxxxxxx -allocation collected gets it | ||
pool.totalFees - ? xxxx-allocation collected gets it | ||
pool.curatorRewards - ?xxxxxxxxxxxx-allocation collected gets it | ||
epoch.totalREwards | ||
epoch.queryFeeRebates - ? | ||
*/ |
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