-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tomás Migone <[email protected]>
- Loading branch information
Showing
7 changed files
with
64 additions
and
10 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,13 @@ | ||
import { expect } from 'chai' | ||
import hre from 'hardhat' | ||
|
||
describe('BridgeEscrow configuration', () => { | ||
const { | ||
contracts: { Controller, BridgeEscrow }, | ||
} = hre.graph() | ||
|
||
it('should be controlled by Controller', async function () { | ||
const controller = await BridgeEscrow.controller() | ||
expect(controller).eq(Controller.address) | ||
}) | ||
}) |
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
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('L1GraphTokenGateway configuration', () => { | ||
const { | ||
contracts: { Controller, L1GraphTokenGateway }, | ||
} = hre.graph() | ||
|
||
it('should be controlled by Controller', async function () { | ||
const controller = await L1GraphTokenGateway.controller() | ||
expect(controller).eq(Controller.address) | ||
}) | ||
}) |
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,21 @@ | ||
import { expect } from 'chai' | ||
import hre from 'hardhat' | ||
import { getItemValue } from '../../../cli/config' | ||
|
||
describe('L1Reservoir configuration', () => { | ||
const { | ||
graphConfig, | ||
contracts: { Controller, L1Reservoir }, | ||
} = hre.graph() | ||
|
||
it('should be controlled by Controller', async function () { | ||
const controller = await L1Reservoir.controller() | ||
expect(controller).eq(Controller.address) | ||
}) | ||
|
||
it('dripInterval should match "dripInterval" in the config file', async function () { | ||
const value = await L1Reservoir.dripInterval() | ||
const expected = getItemValue(graphConfig, 'contracts/L1Reservoir/init/dripInterval') | ||
expect(value).eq(expected) | ||
}) | ||
}) |
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