-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: perps graph issue * feat: update core subgraph core proxy * feat: update perps subgraph * Update markets/perps-market/subgraph/package.json Co-authored-by: troy (troyb.eth) <[email protected]> --------- Co-authored-by: Sunny Vempati <[email protected]> Co-authored-by: troy (troyb.eth) <[email protected]>
- Loading branch information
1 parent
9321173
commit 45bb2bd
Showing
11 changed files
with
1,444 additions
and
433 deletions.
There are no files selected for viewing
900 changes: 577 additions & 323 deletions
900
markets/perps-market/subgraph/generated/PerpsMarketProxy/PerpsMarketProxy.ts
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,8 +1,8 @@ | ||
{ | ||
"optimism-goerli": { | ||
"PerpsMarketProxy": { | ||
"address": "0xd78D47739Ed468a602beb11C34a2A20759bcEf4F", | ||
"startBlock": 11669270 | ||
"address": "0xf272382cB3BE898A8CdB1A23BE056fA2Fcf4513b", | ||
"startBlock": 12708889 | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { ReferrerShareUpdated } from '../generated/PerpsMarketProxy/PerpsMarketProxy'; | ||
|
||
import { ReferrerShare } from '../generated/schema'; | ||
|
||
export function handleReferrerShareUpdated(event: ReferrerShareUpdated): void { | ||
const id = event.params.referrer.toHexString(); | ||
|
||
let referrerShare = ReferrerShare.load(id); | ||
|
||
if (!referrerShare) { | ||
referrerShare = new ReferrerShare(id); | ||
} | ||
|
||
referrerShare.referrer = event.params.referrer.toHexString(); | ||
referrerShare.shareRatioD18 = event.params.shareRatioD18; | ||
referrerShare.save(); | ||
} |
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.