Hey @n44o! You can install zos
locally and use its programmatic interface. We provide a couple of classes that could be useful; in this particular case, you should use the ZosPackageFile
/ZosNetworkFile
classes as follows:
import { files: { ZosPackageFile } } from 'zos';
const packageFile = new ZosPackageFile();
const networkFile = packageFile.networkFile('rinkeby');
const proxies = networkFile.getProxies({ contract: 'Foo' });
console.log(proxies); // => [{ contract: 'Foo', address: '0x123...', ... }]
You can check all the methods implemented in ZosNetworkFile
here