Skip to content

Commit ccfaedc

Browse files
committed
fix: make legacy allos internal, bump optimizer runs to 100
Signed-off-by: Tomás Migone <[email protected]>
1 parent 7db331d commit ccfaedc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/hardhat-graph-protocol/src/sdk/hardhat.base.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const solidityUserConfig: SolidityUserConfig = {
3434
settings: {
3535
optimizer: {
3636
enabled: true,
37-
runs: 1,
37+
runs: 100,
3838
},
3939
},
4040
}

packages/subgraph-service/contracts/utilities/AllocationManagerStorage.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ abstract contract AllocationManagerV1Storage {
99
mapping(address allocationId => Allocation.State allocation) internal allocations;
1010

1111
/// @notice Legacy allocation details
12-
mapping(address allocationId => LegacyAllocation.State allocation) public legacyAllocations;
12+
mapping(address allocationId => LegacyAllocation.State allocation) internal legacyAllocations;
1313

1414
/// @notice Tracks allocated tokens per indexer
1515
mapping(address indexer => uint256 tokens) public allocationProvisionTracker;
1616

1717
/// @notice Maximum amount of time, in seconds, allowed between presenting POIs to qualify for indexing rewards
18-
uint256 internal maxPOIStaleness;
18+
uint256 public maxPOIStaleness;
1919

2020
/// @notice Destination of accrued indexing rewards
2121
mapping(address indexer => address destination) public rewardsDestination;

0 commit comments

Comments
 (0)