diff --git a/packages/subgraph-service/contracts/SubgraphService.sol b/packages/subgraph-service/contracts/SubgraphService.sol index 0045b970d..d0db789b9 100644 --- a/packages/subgraph-service/contracts/SubgraphService.sol +++ b/packages/subgraph-service/contracts/SubgraphService.sol @@ -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_); } /** @@ -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); } diff --git a/packages/subgraph-service/eslint.config.js b/packages/subgraph-service/eslint.config.js index 2cb4335fd..c9e06b116 100644 --- a/packages/subgraph-service/eslint.config.js +++ b/packages/subgraph-service/eslint.config.js @@ -16,6 +16,6 @@ module.exports = [ }, }, { - ignores: ['typechain-types/*'], + ignores: ['typechain-types/*', 'lib/*'], }, ] diff --git a/packages/token-distribution/.env.sample b/packages/token-distribution/.env.sample index 1ecb4d424..feae0f5fe 100644 --- a/packages/token-distribution/.env.sample +++ b/packages/token-distribution/.env.sample @@ -1,3 +1,4 @@ MNEMONIC= ETHERSCAN_API_KEY= INFURA_KEY= +STUDIO_API_KEY= diff --git a/packages/token-distribution/.graphclientrc.yml b/packages/token-distribution/.graphclientrc.yml index 34d67cb06..3ab12d3ca 100644 --- a/packages/token-distribution/.graphclientrc.yml +++ b/packages/token-distribution/.graphclientrc.yml @@ -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: