-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add arbitrum localhost config and split e2e tests into l1/l2/co…
…mmon Signed-off-by: Tomás Migone <[email protected]>
- Loading branch information
Showing
11 changed files
with
167 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
general: | ||
arbitrator: &arbitrator "0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0" # Arbitration Council | ||
governor: &governor "0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b" # Graph Council | ||
authority: &authority "0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d" # Authority that signs payment vouchers | ||
availabilityOracle: &availabilityOracle "0xd03ea8624C8C5987235048901fB614fDcA89b117" # Subgraph Availability Oracle | ||
pauseGuardian: &pauseGuardian "0x95cED938F7991cd0dFcb48F0a06a40FA1aF46EBC" # Protocol pause guardian | ||
allocationExchangeOwner: &allocationExchangeOwner "0x3E5e9111Ae8eB78Fe1CC3bb8915d5D461F3Ef9A9" # Allocation Exchange owner | ||
|
||
contracts: | ||
Controller: | ||
calls: | ||
- fn: "setContractProxy" | ||
id: "0xe6876326c1291dfcbbd3864a6816d698cd591defc7aa2153d7f9c4c04016c89f" # keccak256('Curation') | ||
contractAddress: "${{Curation.address}}" | ||
- fn: "setContractProxy" | ||
id: "0x39605a6c26a173774ca666c67ef70cf491880e5d3d6d0ca66ec0a31034f15ea3" # keccak256('GNS') | ||
contractAddress: "${{GNS.address}}" | ||
- fn: "setContractProxy" | ||
id: "0xf942813d07d17b56de9a9afc8de0ced6e8c053bbfdcc87b7badea4ddcf27c307" # keccak256('DisputeManager') | ||
contractAddress: "${{DisputeManager.address}}" | ||
- fn: "setContractProxy" | ||
id: "0xc713c3df6d14cdf946460395d09af88993ee2b948b1a808161494e32c5f67063" # keccak256('EpochManager') | ||
contractAddress: "${{EpochManager.address}}" | ||
- fn: "setContractProxy" | ||
id: "0x966f1e8d8d8014e05f6ec4a57138da9be1f7c5a7f802928a18072f7c53180761" # keccak256('RewardsManager') | ||
contractAddress: "${{RewardsManager.address}}" | ||
- fn: "setContractProxy" | ||
id: "0x1df41cd916959d1163dc8f0671a666ea8a3e434c13e40faef527133b5d167034" # keccak256('Staking') | ||
contractAddress: "${{Staking.address}}" | ||
- fn: "setContractProxy" | ||
id: "0x45fc200c7e4544e457d3c5709bfe0d520442c30bbcbdaede89e8d4a4bbc19247" # keccak256('GraphToken') | ||
contractAddress: "${{L2GraphToken.address}}" | ||
- fn: "setContractProxy" | ||
id: "0xd362cac9cb75c10d67bcc0b7eeb0b1ef48bb5420b556c092d4fd7f758816fcf0" # keccak256('GraphTokenGateway') | ||
contractAddress: "${{L2GraphTokenGateway.address}}" | ||
- fn: "setContractProxy" | ||
id: "0x96ba401694892957e25e29c7a1e4171ae9945b5ee36339de79b199a530436e9e" # keccak256('Reservoir') | ||
contractAddress: "${{L2Reservoir.address}}" | ||
- fn: "setPauseGuardian" | ||
pauseGuardian: *pauseGuardian | ||
- fn: "transferOwnership" | ||
owner: *governor | ||
GraphProxyAdmin: | ||
calls: | ||
- fn: "transferOwnership" | ||
owner: *governor | ||
ServiceRegistry: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
EpochManager: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
lengthInBlocks: 554 # length in hours = lengthInBlocks*13/60/60 (~13 second blocks) | ||
L2GraphToken: | ||
proxy: true | ||
init: | ||
owner: *governor | ||
Curation: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
bondingCurve: "${{BancorFormula.address}}" | ||
curationTokenMaster: "${{GraphCurationToken.address}}" | ||
reserveRatio: 500000 # in parts per million | ||
curationTaxPercentage: 10000 # in parts per million | ||
minimumCurationDeposit: "1000000000000000000" # in wei | ||
DisputeManager: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
arbitrator: *arbitrator | ||
minimumDeposit: "10000000000000000000000" # in wei | ||
fishermanRewardPercentage: 500000 # in parts per million | ||
idxSlashingPercentage: 25000 # in parts per million | ||
qrySlashingPercentage: 25000 # in parts per million | ||
GNS: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
bondingCurve: "${{BancorFormula.address}}" | ||
subgraphNFT: "${{SubgraphNFT.address}}" | ||
calls: | ||
- fn: "approveAll" | ||
SubgraphNFT: | ||
init: | ||
governor: "${{Env.deployer}}" | ||
calls: | ||
- fn: "setTokenDescriptor" | ||
tokenDescriptor: "${{SubgraphNFTDescriptor.address}}" | ||
- fn: "setMinter" | ||
minter: "${{GNS.address}}" | ||
- fn: "transferOwnership" | ||
owner: *governor | ||
Staking: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
minimumIndexerStake: "100000000000000000000000" # in wei | ||
thawingPeriod: 6646 # in blocks | ||
protocolPercentage: 10000 # in parts per million | ||
curationPercentage: 100000 # in parts per million | ||
channelDisputeEpochs: 2 # in epochs | ||
maxAllocationEpochs: 4 # in epochs | ||
delegationUnbondingPeriod: 12 # in epochs | ||
delegationRatio: 16 # delegated stake to indexer stake multiplier | ||
rebateAlphaNumerator: 77 # rebateAlphaNumerator / rebateAlphaDenominator | ||
rebateAlphaDenominator: 100 # rebateAlphaNumerator / rebateAlphaDenominator | ||
calls: | ||
- fn: "setDelegationTaxPercentage" | ||
delegationTaxPercentage: 5000 # parts per million | ||
- fn: "setSlasher" | ||
slasher: "${{DisputeManager.address}}" | ||
allowed: true | ||
- fn: "setAssetHolder" | ||
assetHolder: "${{AllocationExchange.address}}" | ||
allowed: true | ||
RewardsManager: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
calls: | ||
- fn: "setSubgraphAvailabilityOracle" | ||
subgraphAvailabilityOracle: *availabilityOracle | ||
AllocationExchange: | ||
init: | ||
graphToken: "${{GraphToken.address}}" | ||
staking: "${{Staking.address}}" | ||
governor: *allocationExchangeOwner | ||
authority: *authority | ||
calls: | ||
- fn: "approveAll" | ||
L2GraphTokenGateway: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
L2Reservoir: | ||
proxy: true | ||
init: | ||
controller: "${{Controller.address}}" | ||
calls: | ||
- fn: "approveRewardsManager" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { expect } from 'chai' | ||
import hre from 'hardhat' | ||
|
||
describe('GraphToken configuration', () => { | ||
const { | ||
contracts: { GraphToken, L1Reservoir }, | ||
} = hre.graph() | ||
|
||
it('L1Reservoir should be a minter', async function () { | ||
const deployerIsMinter = await GraphToken.isMinter(L1Reservoir.address) | ||
expect(deployerIsMinter).eq(true) | ||
}) | ||
}) |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
e2e/deployment/config/l1Reservoir.test.ts → e2e/deployment/config/l1/l1Reservoir.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
e2e/deployment/init/graphToken.test.ts → e2e/deployment/init/l1/graphToken.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters