()
| 42 | // ============ Test Setup ============ |
| 43 | |
| 44 | const clients = async () => { |
| 45 | const client = await hre.viem.getPublicClient({ |
| 46 | chain: getChain(hre), |
| 47 | }) |
| 48 | const protocolConfig = ProtocolConfig.attach(client) |
| 49 | |
| 50 | const upgradeAbi = parseAbi([ |
| 51 | 'function upgradeTo(address newImplementation)', |
| 52 | 'function upgradeToAndCall(address newImplementation, bytes memory data)', |
| 53 | 'function implementation() view returns (address)', |
| 54 | 'function admin() view returns (address)', |
| 55 | ]) |
| 56 | |
| 57 | return { client, protocolConfig, upgradeAbi } |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Get new implementation address from environment |
no test coverage detected