Skip to content

some improvements in config files #679

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

Merged
merged 4 commits into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
17 changes: 14 additions & 3 deletions config/graph.arbitrum-goerli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
EpochManager:
proxy: true
init:
Expand All @@ -53,10 +55,8 @@ contracts:
L2GraphToken:
proxy: true
init:
governor: "${{Env.deployer}}"
owner: "${{Env.deployer}}"
calls:
- fn: "addMinter"
minter: "${{RewardsManager.address}}"
- fn: "renounceMinter"
- fn: "transferOwnership"
owner: *governor
Expand All @@ -69,6 +69,8 @@ contracts:
reserveRatio: 500000 # in parts per million
curationTaxPercentage: 10000 # in parts per million
minimumCurationDeposit: "1000000000000000000" # in wei
calls:
- fn: "syncAllContracts"
DisputeManager:
proxy: true
init:
Expand All @@ -78,6 +80,8 @@ contracts:
fishermanRewardPercentage: 500000 # in parts per million
idxSlashingPercentage: 25000 # in parts per million
qrySlashingPercentage: 25000 # in parts per million
calls:
- fn: "syncAllContracts"
GNS:
proxy: true
init:
Expand All @@ -86,6 +90,7 @@ contracts:
subgraphNFT: "${{SubgraphNFT.address}}"
calls:
- fn: "approveAll"
- fn: "syncAllContracts"
SubgraphNFT:
init:
governor: "${{Env.deployer}}"
Expand Down Expand Up @@ -119,13 +124,15 @@ contracts:
- fn: "setAssetHolder"
assetHolder: "${{AllocationExchange.address}}"
allowed: true
- fn: "syncAllContracts"
RewardsManager:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "setSubgraphAvailabilityOracle"
subgraphAvailabilityOracle: *availabilityOracle
- fn: "syncAllContracts"
AllocationExchange:
init:
graphToken: "${{L2GraphToken.address}}"
Expand All @@ -138,3 +145,7 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
- fn: "setPauseGuardian"
pauseGuardian: *pauseGuardian
17 changes: 14 additions & 3 deletions config/graph.arbitrum-localhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
EpochManager:
proxy: true
init:
Expand All @@ -53,10 +55,8 @@ contracts:
L2GraphToken:
proxy: true
init:
governor: "${{Env.deployer}}"
owner: "${{Env.deployer}}"
calls:
- fn: "addMinter"
minter: "${{RewardsManager.address}}"
- fn: "renounceMinter"
- fn: "transferOwnership"
owner: *governor
Expand All @@ -69,6 +69,8 @@ contracts:
reserveRatio: 500000 # in parts per million
curationTaxPercentage: 10000 # in parts per million
minimumCurationDeposit: "1000000000000000000" # in wei
calls:
- fn: "syncAllContracts"
DisputeManager:
proxy: true
init:
Expand All @@ -78,6 +80,8 @@ contracts:
fishermanRewardPercentage: 500000 # in parts per million
idxSlashingPercentage: 25000 # in parts per million
qrySlashingPercentage: 25000 # in parts per million
calls:
- fn: "syncAllContracts"
GNS:
proxy: true
init:
Expand All @@ -86,6 +90,7 @@ contracts:
subgraphNFT: "${{SubgraphNFT.address}}"
calls:
- fn: "approveAll"
- fn: "syncAllContracts"
SubgraphNFT:
init:
governor: "${{Env.deployer}}"
Expand Down Expand Up @@ -119,13 +124,15 @@ contracts:
- fn: "setAssetHolder"
assetHolder: "${{AllocationExchange.address}}"
allowed: true
- fn: "syncAllContracts"
RewardsManager:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "setSubgraphAvailabilityOracle"
subgraphAvailabilityOracle: *availabilityOracle
- fn: "syncAllContracts"
AllocationExchange:
init:
graphToken: "${{L2GraphToken.address}}"
Expand All @@ -138,3 +145,7 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
- fn: "setPauseGuardian"
pauseGuardian: *pauseGuardian
17 changes: 14 additions & 3 deletions config/graph.arbitrum-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
EpochManager:
proxy: true
init:
Expand All @@ -53,10 +55,8 @@ contracts:
L2GraphToken:
proxy: true
init:
governor: "${{Env.deployer}}"
owner: "${{Env.deployer}}"
calls:
- fn: "addMinter"
minter: "${{RewardsManager.address}}"
- fn: "renounceMinter"
- fn: "transferOwnership"
owner: *governor
Expand All @@ -69,6 +69,8 @@ contracts:
reserveRatio: 500000 # in parts per million
curationTaxPercentage: 10000 # in parts per million
minimumCurationDeposit: "1000000000000000000" # in wei
calls:
- fn: "syncAllContracts"
DisputeManager:
proxy: true
init:
Expand All @@ -78,6 +80,8 @@ contracts:
fishermanRewardPercentage: 500000 # in parts per million
idxSlashingPercentage: 25000 # in parts per million
qrySlashingPercentage: 25000 # in parts per million
calls:
- fn: "syncAllContracts"
GNS:
proxy: true
init:
Expand All @@ -86,6 +90,7 @@ contracts:
subgraphNFT: "${{SubgraphNFT.address}}"
calls:
- fn: "approveAll"
- fn: "syncAllContracts"
SubgraphNFT:
init:
governor: "${{Env.deployer}}"
Expand Down Expand Up @@ -119,13 +124,15 @@ contracts:
- fn: "setAssetHolder"
assetHolder: "${{AllocationExchange.address}}"
allowed: true
- fn: "syncAllContracts"
RewardsManager:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "setSubgraphAvailabilityOracle"
subgraphAvailabilityOracle: *availabilityOracle
- fn: "syncAllContracts"
AllocationExchange:
init:
graphToken: "${{L2GraphToken.address}}"
Expand All @@ -138,3 +145,7 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
- fn: "setPauseGuardian"
pauseGuardian: *pauseGuardian
17 changes: 16 additions & 1 deletion config/graph.goerli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
EpochManager:
proxy: true
init:
Expand All @@ -68,6 +70,8 @@ contracts:
reserveRatio: 500000 # in parts per million
curationTaxPercentage: 10000 # in parts per million
minimumCurationDeposit: "1000000000000000000" # in wei
calls:
- fn: "syncAllContracts"
DisputeManager:
proxy: true
init:
Expand All @@ -77,6 +81,8 @@ contracts:
fishermanRewardPercentage: 500000 # in parts per million
idxSlashingPercentage: 25000 # in parts per million
qrySlashingPercentage: 25000 # in parts per million
calls:
- fn: "syncAllContracts"
GNS:
proxy: true
init:
Expand All @@ -85,6 +91,7 @@ contracts:
subgraphNFT: "${{SubgraphNFT.address}}"
calls:
- fn: "approveAll"
- fn: "syncAllContracts"
SubgraphNFT:
init:
governor: "${{Env.deployer}}"
Expand Down Expand Up @@ -118,6 +125,7 @@ contracts:
- fn: "setAssetHolder"
assetHolder: "${{AllocationExchange.address}}"
allowed: true
- fn: "syncAllContracts"
RewardsManager:
proxy: true
init:
Expand All @@ -127,6 +135,7 @@ contracts:
issuanceRate: "1000000012184945188" # per block increase of total supply, blocks in a year = 365*60*60*24/13
- fn: "setSubgraphAvailabilityOracle"
subgraphAvailabilityOracle: *availabilityOracle
- fn: "syncAllContracts"
AllocationExchange:
init:
graphToken: "${{GraphToken.address}}"
Expand All @@ -139,7 +148,13 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
- fn: "setPauseGuardian"
pauseGuardian: *pauseGuardian
BridgeEscrow:
proxy: true
init:
controller: "${{Controller.address}}"
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
15 changes: 15 additions & 0 deletions config/graph.localhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
EpochManager:
proxy: true
init:
Expand All @@ -68,6 +70,8 @@ contracts:
reserveRatio: 500000 # in parts per million
curationTaxPercentage: 10000 # in parts per million
minimumCurationDeposit: "1000000000000000000" # in wei
calls:
- fn: "syncAllContracts"
DisputeManager:
proxy: true
init:
Expand All @@ -77,6 +81,8 @@ contracts:
fishermanRewardPercentage: 500000 # in parts per million
idxSlashingPercentage: 25000 # in parts per million
qrySlashingPercentage: 25000 # in parts per million
calls:
- fn: "syncAllContracts"
GNS:
proxy: true
init:
Expand All @@ -85,6 +91,7 @@ contracts:
subgraphNFT: "${{SubgraphNFT.address}}"
calls:
- fn: "approveAll"
- fn: "syncAllContracts"
SubgraphNFT:
init:
governor: "${{Env.deployer}}"
Expand Down Expand Up @@ -118,6 +125,7 @@ contracts:
- fn: "setAssetHolder"
assetHolder: "${{AllocationExchange.address}}"
allowed: true
- fn: "syncAllContracts"
RewardsManager:
proxy: true
init:
Expand All @@ -127,6 +135,7 @@ contracts:
issuanceRate: "1000000012184945188" # per block increase of total supply, blocks in a year = 365*60*60*24/13
- fn: "setSubgraphAvailabilityOracle"
subgraphAvailabilityOracle: *availabilityOracle
- fn: "syncAllContracts"
AllocationExchange:
init:
graphToken: "${{GraphToken.address}}"
Expand All @@ -139,7 +148,13 @@ contracts:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
- fn: "setPauseGuardian"
pauseGuardian: *pauseGuardian
BridgeEscrow:
proxy: true
init:
controller: "${{Controller.address}}"
calls:
- fn: "syncAllContracts"
Loading