Union is an upgradeable system. Each deployed contract is a "Proxy" that points to an "Implementation" contract. All addresses can be found in the folder deployments/${network}
.
Contract | Address | Upgradeable |
---|---|---|
UserManager | 0x49c910Ba694789B58F53BFF80633f90B8631c195 | ✅ |
MarketRegistry | 0x1ddB9a1F6Bc0dE1d05eBB0FDA61A7398641ae6BE | ✅ |
Comptroller | 0x216dE4089dCdD7B95BC34BdCe809669C788a9A5d | ✅ |
uDAI | 0x954F20DF58347b71bbC10c94827bE9EbC8706887 | ✅ |
AssetManager | 0xb91a874D9AA8fF7E478bA61286ECc77c1A3E384d | ✅ |
CompoundAdapter | 0x303CbdADF370F6bBa79651f680498E829cB860D5 | ✅ |
AaveAdapter | 0xE8c77A541c933Aa1320Aa2f89a61f91130e4012d | ✅ |
PureTokenAdapter | 0x62DD06026F5f8e874eEfF362b1280CD9A2057b7d | ✅ |
UnionToken | 0x5Dfe42eEA70a3e6f93EE54eD9C321aF07A85535C | ❌ |
Governor | 0xe1b3F07a9032F0d3deDf3E96c395A4Da74130f6e | ❌ |
Timelock | 0xBBD3321f377742c4b3fe458b270c2F271d3294D8 | ❌ |
Treasury | 0x6DBDe0E7e563E34A53B1130D6B779ec8eD34B4B9 | ❌ |
Treasury Vester | 0x641DD6258cb3E948121B10ee51594Dc2A8549fe1 | ❌ |
ArbUnion Wrapper | 0x20c375e822b6264E22941B74943F940A1CfE5F25 | ❌ |
Arb Connector | 0x307ED81138cA91637E432DbaBaC6E3A42699032a | ❌ |
Contract | Address | Upgradeable |
---|---|---|
UserManager | 0xb71F3D4342AaE0b8D531E14D2CF2F45d6e458A5F | ✅ |
MarketRegistry | 0x82c7cA392644a6c66fcaF9d4efF89e6d875D58D9 | ✅ |
Comptroller | 0x641DD6258cb3E948121B10ee51594Dc2A8549fe1 | ✅ |
uDAI | 0x954F20DF58347b71bbC10c94827bE9EbC8706887 | ✅ |
AssetManager | 0x7Aecd107Cb022e1DFd42cC43E9BA94C38BC83275 | ✅ |
PureTokenAdapter | 0xdC3c984f2Ecb7Ee2540bb0B9EfE9540204cdAB57 | ✅ |
ArbUnion | 0x6DBDe0E7e563E34A53B1130D6B779ec8eD34B4B9 | ❌ |
Contract | Address | Upgradeable |
---|---|---|
UserManager | 0x391fDb669462FBAA5a7e228f3857281BeCf235EE | ✅ |
MarketRegistry | 0x15B12b8dB6665B31E15Da26275fD54590f2E989c | ✅ |
Comptroller | 0x85FD0fA5Cc2f0B3A12C146C5B5A37d9e269b3Ba8 | ✅ |
uDAI | 0x1bAa7FC92A86768D5F0Dd6Ff3AD7155eCD8cB293 | ✅ |
AssetManager | 0xB944F1f7B603Aca87B73592ce9267E0BA375f4c9 | ✅ |
CompoundAdapter | 0xD3FfB854C11096e0d5EFD6Ba6d3c1BeF4B89add9 | ✅ |
PureTokenAdapter | 0x48941f5Ad4E6b313cC691e088c7E241617C5a9B2 | ✅ |
UnionToken | 0x08AF898e65493D8212c8981FAdF60Ff023A91150 | ❌ |
Governor | 0x7C1c7330EcC771C24f5De5b0Ce925Fde3A631c45 | ❌ |
Timelock | 0x107e3811900A93940cE8694fF9C6217Be900faAF | ❌ |
Treasury | 0x28d1999FDC8a5396b11E86F8fd247a85d4d4D7F9 | ❌ |
Treasury Vester | 0x137698a81E9384175Ab5A7D715E5df62DF5E6c16 | ❌ |
DAI (Kovan) | 0x4f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa | ❌ |
cDAI (Kovan) | 0xf0d0eb522cfa50b716b3b1604c4f0fa6f04376ad | ❌ |
Contract | Address | Upgradeable |
---|---|---|
UserManagerArb | 0xbbEc82D7a37ef0e04671b27Bd1fd8CE952AB589E | ✅ |
MarketRegistry | 0x29882381C17c50B2f2bf8a377B59358b01f7A026 | ✅ |
Comptroller | 0xB9A7e04e6c75C718904F0De0F5Cc6a2728a3F50C | ✅ |
uDAI | 0x08f2F2C68f203a71a119E2293cB3854261EFAE3d | ✅ |
AssetManager | 0x2B2f7A61489A0Aa8638790125DE0DDAD9CB5D12e | ✅ |
PureTokenAdapter | 0xCce053B5e30310cc58020AcF922b836F67C5eD8E | ✅ |
ArbUnion | 0xb371fe920071F73ca81b4D57C72639480F3886a7 | ❌ |
DAI (Arbitrum) | 0x5364Dc963c402aAF150700f38a8ef52C1D7D7F14 | ❌ |
Requirements:
- Node @14.x
- Python @3.x (for running Slither)
Clone the repo and then install dependencies:
$ yarn install
To run the entire test suite:
$ yarn test
To run the unit tests only:
$ yarn test:unit
To run the deployment script tests:
$ yarn test:deploy
To run tests with coverage:
$ yarn coverage
To deploy to a supported network:
$ yarn deploy {network}
Check the deployed params:
$ yarn checkDeploy {network}