Skip to content

Commit

Permalink
storage change
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyvempati committed May 9, 2024
1 parent 0e55498 commit 8d2cd9f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions markets/perps-market/storage.dump.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.22<0.9.0;
pragma solidity >=0.8.11<0.9.0;

// @custom:artifact @synthetixio/core-contracts/contracts/ownership/OwnableStorage.sol:OwnableStorage
library OwnableStorage {
Expand Down Expand Up @@ -694,7 +694,7 @@ library GlobalPerpsMarketConfiguration {
struct Data {
address feeCollector;
mapping(address => uint256) referrerShare;
mapping(uint128 => uint256) maxCollateralAmounts;
mapping(uint128 => uint256) __unused_1;
uint128[] synthDeductionPriority;
uint256 minKeeperRewardUsd;
uint256 maxKeeperRewardUsd;
Expand All @@ -706,6 +706,8 @@ library GlobalPerpsMarketConfiguration {
uint128 lowUtilizationInterestRateGradient;
uint128 interestRateGradientBreakpoint;
uint128 highUtilizationInterestRateGradient;
uint128 collateralLiquidateRewardRatioD18;
address rewardDistributorImplementation;
}
function load() internal pure returns (Data storage globalMarketConfig) {
bytes32 s = _SLOT_GLOBAL_PERPS_MARKET_CONFIGURATION;
Expand Down Expand Up @@ -792,6 +794,7 @@ library PerpsAccount {
uint128 id;
SetUtil.UintSet activeCollateralTypes;
SetUtil.UintSet openPositionMarketIds;
uint256 debt;
}
function load(uint128 id) internal pure returns (Data storage account) {
bytes32 s = keccak256(abi.encode("io.synthetix.perps-market.Account", id));
Expand Down Expand Up @@ -889,6 +892,7 @@ library PerpsMarketFactory {
address spotMarket;
uint128 perpsMarketId;
string name;
address liquidationAssetManager;
}
function load() internal pure returns (Data storage perpsMarketFactory) {
bytes32 s = _SLOT_PERPS_MARKET_FACTORY;
Expand Down Expand Up @@ -961,8 +965,3 @@ library Flags {
bytes32 public constant PERPS_SYSTEM = "perpsSystem";
bytes32 public constant CREATE_MARKET = "createMarket";
}

// @custom:artifact hardhat/console.sol:console
library console {
address internal constant CONSOLE_ADDRESS = 0x000000000000000000636F6e736F6c652e6c6f67;
}

0 comments on commit 8d2cd9f

Please sign in to comment.