Skip to content

Commit

Permalink
fix: update subgraph endpoints to network and some linting
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Aug 14, 2024
1 parent f47cf91 commit 0f366d2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
12 changes: 8 additions & 4 deletions packages/subgraph-service/contracts/SubgraphService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ contract SubgraphService is
/**
* @notice See {ISubgraphService.setStakeToFeesRatio}
*/
function setStakeToFeesRatio(uint256 _stakeToFeesRatio) external override onlyOwner {
stakeToFeesRatio = _stakeToFeesRatio;
emit StakeToFeesRatioSet(_stakeToFeesRatio);
function setStakeToFeesRatio(uint256 stakeToFeesRatio_) external override onlyOwner {
stakeToFeesRatio = stakeToFeesRatio_;
emit StakeToFeesRatioSet(stakeToFeesRatio_);
}

/**
Expand All @@ -358,7 +358,11 @@ contract SubgraphService is
/**
* @notice See {ISubgraphService.setPaymentCuts}
*/
function setPaymentCuts(IGraphPayments.PaymentTypes paymentType, uint128 serviceCut, uint128 curationCut) external override onlyOwner {
function setPaymentCuts(
IGraphPayments.PaymentTypes paymentType,
uint128 serviceCut,
uint128 curationCut
) external override onlyOwner {
paymentCuts[paymentType] = PaymentCuts(serviceCut, curationCut);
emit PaymentCutsSet(paymentType, serviceCut, curationCut);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/subgraph-service/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ module.exports = [
},
},
{
ignores: ['typechain-types/*'],
ignores: ['typechain-types/*', 'lib/*'],
},
]
1 change: 1 addition & 0 deletions packages/token-distribution/.env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
MNEMONIC=
ETHERSCAN_API_KEY=
INFURA_KEY=
STUDIO_API_KEY=
4 changes: 2 additions & 2 deletions packages/token-distribution/.graphclientrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ sources:
- name: graph-network
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-mainnet
endpoint: https://gateway.thegraph.com/api/${STUDIO_API_KEY}/subgraphs/id/9Co7EQe5PgW3ugCUJrJgRv4u9zdEuDJf8NvMWftNsBH8
retry: 5

- name: token-distribution
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/graphprotocol/token-distribution
endpoint: https://gateway.thegraph.com/api/${STUDIO_API_KEY}/subgraphs/id/ChfAJn6jQEBjVqtdUiThfG6sWy2Sr5XQPNucE9DkgXSN
retry: 5
transforms:
- autoPagination:
Expand Down

0 comments on commit 0f366d2

Please sign in to comment.