Commitments and contingencies - Future lease payments under operating and financing lease liabilities (Details) - USD ($)
$ in Thousands
Dec. 31, 2019
Jun. 30, 2019
Operating lease    
2020 (remaining three months) $ 243  
2021 1,034  
2022 586  
2023 596  
2024 605  
Thereafter 3,384  
Total lease payments 6,448  
Less: interest 1,551  
Total lease liabilities 4,897 $ 4,363
Financing lease    
2020 (remaining three months) 593  
2021 2,411  
2022 2,483  
2023 2,558  
2024 2,634  
Thereafter 46,398  
Total lease payments 57,077  
Less: interest 29,668  
Total lease liabilities 27,409  
Total    
2020 (remaining three months) 836  
2021 3,445  
2022 3,069  
2023 3,154  
2024 3,239  
Thereafter 49,782  
Total lease payments 63,525  
Less: interest 31,219  
Total lease liabilities $ 32,306