-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
F/ OS-419 export contract source (#370)
* update contract versions * remove typechain * update test * update readme * add script to contracts package * clean up * addressing comments * update commit hashes * fix test
- Loading branch information
Showing
10 changed files
with
163 additions
and
79 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
index.ts | ||
versions | ||
npm | ||
npm/index.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
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"versions": { | ||
"v0_7_0_alpha": "9b912728c315f983af8c4bfd1f8d07021996563f", | ||
"v1_0_0_mainnet_goerli": "c2b9d23a96654e81f22fbf91e6f334ef26a370af", | ||
"v1_0_0_mumbai": "9485d97301611cfc78faa4bd00eb54abb6dd2d5e" | ||
"v1_0_0": "c2b9d23a96654e81f22fbf91e6f334ef26a370af", | ||
"v1_2_0": "9485d97301611cfc78faa4bd00eb54abb6dd2d5e", | ||
"v1_2_1": "a432f25817675038e5891bdd7ec01a3096d8f0db", | ||
"v1_2_2": "1bf17984d1a1b569c3c4b1d86026d87f74f81402" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,27 +1,24 @@ | ||
import { | ||
v1_0_0_mainnet_goerli_active_contracts, | ||
v1_0_0_mainnet_goerli_typechain, | ||
v1_0_0_active_contracts, | ||
v1_2_0_active_contracts, | ||
} from '@aragon/osx-versions'; | ||
import {ethers} from 'ethers'; | ||
|
||
describe('contract-versions', () => { | ||
it('should get typechain for a specific version', async () => { | ||
const typechain = v1_0_0_mainnet_goerli_typechain; | ||
expect(typechain).toBeDefined(); | ||
it('should get active contracts for a specific version', async () => { | ||
const activeContracts101 = v1_0_0_active_contracts; | ||
expect(activeContracts101).toBeDefined(); | ||
|
||
const activeContracts120 = v1_2_0_active_contracts; | ||
expect(activeContracts120).toBeDefined(); | ||
}); | ||
|
||
it('should get active contracts for a specific version', async () => { | ||
const activeContracts = v1_0_0_mainnet_goerli_active_contracts; | ||
expect(activeContracts).toBeDefined(); | ||
it('should not have mumbai deployment', async () => { | ||
const activeContracts101: Record<string, any> = v1_0_0_active_contracts; | ||
expect(activeContracts101['mumbai']).toBeUndefined(); | ||
}); | ||
|
||
it('should exported the types properly for a specific version', async () => { | ||
const typechain = v1_0_0_mainnet_goerli_typechain; | ||
const idao: v1_0_0_mainnet_goerli_typechain.IDAO = | ||
typechain.IDAO__factory.connect( | ||
ethers.constants.AddressZero, | ||
ethers.providers.getDefaultProvider() | ||
); | ||
expect(idao).toBeDefined(); | ||
it('should have mumbai deployment', async () => { | ||
const activeContracts120 = v1_2_0_active_contracts; | ||
expect(activeContracts120.mumbai).toBeTruthy(); | ||
}); | ||
}); |
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.