Skip to content

Commit

Permalink
fix attempt: subgraph service missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Oct 16, 2024
1 parent 8eab8f5 commit 25a26a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/subgraph-service/contracts/SubgraphService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ contract SubgraphService is
* on the DisputeManager. We use the {ProvisionManager} overrideable getters to get the ranges.
* @param minimumProvisionTokens The minimum amount of provisioned tokens required to create an allocation
* @param maximumDelegationRatio The maximum delegation ratio allowed for an allocation
* @param stakeToFeesRatio The ratio of stake to fees to lock when collecting query fees
*/
function initialize(
uint256 minimumProvisionTokens,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"SubgraphService": {
"minimumProvisionTokens": "100000000000000000000000n",
"maximumDelegationRatio": 16
"maximumDelegationRatio": 16,
"stakeToFeesRatio": 2
}
}
2 changes: 2 additions & 0 deletions packages/subgraph-service/ignition/modules/SubgraphService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default buildModule('SubgraphService', (m) => {
// Parameters - config file
const minimumProvisionTokens = m.getParameter('minimumProvisionTokens')
const maximumDelegationRatio = m.getParameter('maximumDelegationRatio')
const stakeToFeesRatio = m.getParameter('stakeToFeesRatio', 2)

// Deploy implementation
const SubgraphServiceImplementation = m.contract('SubgraphService', [controllerAddress, disputeManagerAddress, tapCollectorAddress, curationAddress])
Expand All @@ -25,6 +26,7 @@ export default buildModule('SubgraphService', (m) => {
const encodedCall = m.encodeFunctionCall(SubgraphServiceImplementation, 'initialize', [
minimumProvisionTokens,
maximumDelegationRatio,
stakeToFeesRatio,
])
m.call(SubgraphServiceProxyAdmin, 'upgradeAndCall', [subgraphServiceProxyAddress, SubgraphServiceImplementation, encodedCall])

Expand Down

0 comments on commit 25a26a1

Please sign in to comment.