Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test(`${network} must return escrow contract address`, async () => {
const escrowAddress = await snxjs[contract].synthetix_escrow();
const expectedAddress = snx.getTarget({ network, contract: 'SynthetixEscrow' }).address;
expect(escrowAddress).toEqual(expectedAddress);
});
});
async () => {
const synthetixProxy = await snxjs[synth].synthetixProxy();
const expectedAddress = snx.getTarget({ network, contract: 'ProxySynthetix' }).address;
expect(synthetixProxy).toEqual(expectedAddress);
},
15000
.map(network => {
const targets = snx.getTarget({ network });
return `
const ${network.toUpperCase()}_ADDRESSES = {
${Object.keys(targets)
.map(name => `${name}: '${targets[name].address}'`)
.join(',\n')}
};`;
})
.join('\n\n');