Skip to content

Commit

Permalink
Remove deployment block numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenligiray committed Aug 30, 2024
1 parent dd4a164 commit 581511f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 498 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-shrimps-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@api3/contracts': major
---

Remove deployment block numbers
9 changes: 0 additions & 9 deletions deploy/3_document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import managerMultisigAddresses from '../data/manager-multisig.json';

module.exports = () => {
const references: Record<string, Record<string, AddressLike>> = {};
const deploymentBlockNumbers: Record<string, Record<string, number>> = {};

const networks = new Set([
...Object.keys(managerMultisigAddresses),
Expand All @@ -39,17 +38,9 @@ module.exports = () => {
for (const contractName of contractNames) {
const deployment = JSON.parse(fs.readFileSync(join('deployments', network, `${contractName}.json`), 'utf8'));
references[contractName] = { ...references[contractName], [chainId]: deployment.address };
if (!deployment.receipt) {
throw new Error(`${network} ${contractName} missing deployment tx receipt`);
}
deploymentBlockNumbers[contractName] = {
...deploymentBlockNumbers[contractName],
[chainId]: deployment.receipt.blockNumber,
};
}
}
fs.writeFileSync(join('deployments', 'addresses.json'), `${JSON.stringify(references, null, 2)}\n`);
fs.writeFileSync(join('deployments', 'block-numbers.json'), `${JSON.stringify(deploymentBlockNumbers, null, 2)}\n`);
fs.writeFileSync(
join('deployments', 'manager-multisig-addresses.json'),
`${JSON.stringify(
Expand Down
Loading

0 comments on commit 581511f

Please sign in to comment.