-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Registry: Implement stateless property (#10)
- Loading branch information
1 parent
c9bf227
commit 72571ee
Showing
17 changed files
with
157 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,3 @@ jobs: | |
uses: ./.github/actions/setup | ||
- name: Build | ||
run: yarn build | ||
|
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
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
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
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 |
---|---|---|
|
@@ -41,7 +41,7 @@ describe('Deployer', () => { | |
|
||
context('when the implementation is registered', () => { | ||
beforeEach('register implementation', async () => { | ||
await registry.connect(mimic).register('[email protected]', authorizer.address) | ||
await registry.connect(mimic).register('[email protected]', authorizer.address, false) | ||
}) | ||
|
||
context('when the implementation is not deprecated', () => { | ||
|
@@ -172,8 +172,8 @@ describe('Deployer', () => { | |
|
||
context('when the implementation is registered', () => { | ||
beforeEach('register implementations', async () => { | ||
await registry.connect(mimic).register('[email protected]', smartVault.address) | ||
await registry.connect(mimic).register('[email protected]', PRICE_ORACLE) | ||
await registry.connect(mimic).register('[email protected]', smartVault.address, false) | ||
await registry.connect(mimic).register('[email protected]', PRICE_ORACLE, true) | ||
}) | ||
|
||
context('when the implementation is not deprecated', () => { | ||
|
@@ -292,10 +292,10 @@ describe('Deployer', () => { | |
const FEE_CONTROLLER = '0x0000000000000000000000000000000000000001' | ||
const WNT = '0x0000000000000000000000000000000000000002' | ||
const smartVaultImpl = await deploy(ARTIFACTS.SMART_VAULT, [registry.address, FEE_CONTROLLER, WNT]) | ||
await registry.connect(mimic).register('[email protected]', smartVaultImpl.address) | ||
await registry.connect(mimic).register('[email protected]', smartVaultImpl.address, false) | ||
|
||
const PRICE_ORACLE = '0x0000000000000000000000000000000000000004' | ||
await registry.connect(mimic).register('[email protected]', PRICE_ORACLE) | ||
await registry.connect(mimic).register('[email protected]', PRICE_ORACLE, true) | ||
|
||
const tx = await deployer.deploySmartVault(namespace, 'smart-vault', { | ||
impl: smartVaultImpl.address, | ||
|
@@ -316,7 +316,7 @@ describe('Deployer', () => { | |
|
||
context('when the implementation is registered', () => { | ||
beforeEach('register implementations', async () => { | ||
await registry.connect(mimic).register('[email protected]', task.address) | ||
await registry.connect(mimic).register('[email protected]', task.address, false) | ||
}) | ||
|
||
context('when the implementation is not deprecated', () => { | ||
|
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
Oops, something went wrong.