Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix endpoints for token distribution repo and split ci per package #991

Merged
merged 4 commits into from
Sep 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions packages/subgraph-service/contracts/SubgraphService.sol
Original file line number Diff line number Diff line change
@@ -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);
}
2 changes: 1 addition & 1 deletion packages/subgraph-service/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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
@@ -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: