Skip to content

Commit

Permalink
Merge branch 'main' into max-oi-cap
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff authored Jun 28, 2023
2 parents c57fec9 + b481ab2 commit 60c76c4
Show file tree
Hide file tree
Showing 40 changed files with 8,847 additions and 55 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ module.exports = {
},

{
files: ['protocol/synthetix/subgraph/**/*', 'markets/spot-market/subgraph/**/*'],
files: [
'protocol/synthetix/subgraph/**/*',
'markets/spot-market/subgraph/**/*',
'markets/perps-market/subgraph/**/*',
],
env: {},
globals: {
changetype: true,
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
perps-market,
core-subgraph,
spot-market-subgraph,
perps-market-subgraph,
]
include:
- package: core-contracts
Expand All @@ -52,6 +53,8 @@ jobs:
workspace: "@synthetixio/core-subgraph"
- package: spot-market-subgraph
workspace: "@synthetixio/spot-market-subgraph"
- package: perps-market-subgraph
workspace: "@synthetixio/perps-market-subgraph"
steps:
- name: Install Foundry (Cannon)
uses: foundry-rs/foundry-toolchain@v1
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions markets/perps-market/storage.dump.sol
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ library PerpsMarketConfiguration {
uint256 maxLiquidationLimitAccumulationMultiplier;
uint256 maxSecondsInLiquidationWindow;
uint256 liquidationRewardRatioD18;
uint256 minimumPositionMargin;
}
function load(uint128 marketId) internal pure returns (Data storage store) {
bytes32 s = keccak256(abi.encode("io.synthetix.perps-market.PerpsMarketConfiguration", marketId));
Expand Down
8 changes: 8 additions & 0 deletions markets/perps-market/subgraph/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/build
**/dist
**/node_modules

.bin/
tests/.bin/
tests/.latest.json
subgraph.yaml
Binary file not shown.
Loading

0 comments on commit 60c76c4

Please sign in to comment.