Commit 2815c19e authored by Reggie Gomez's avatar Reggie Gomez

Dynamically generate predeploy contracts markdown

parent 6112b7aa
This diff is collapsed.
#!/usr/bin/env node #!/usr/bin/env node
const dirtree = require('directory-tree') const dirtree = require('directory-tree')
const fs = require('fs') const fs = require('fs')
const { predeploys } = require('../dist/predeploys')
/** /**
* *
...@@ -37,19 +38,12 @@ const networks = { ...@@ -37,19 +38,12 @@ const networks = {
### Predeploy contracts: ### Predeploy contracts:
|Contract|Address| |Contract|Address|
|--|--| |--|--|\n`
|OVM_ETH: | \`0x4200000000000000000000000000000000000006\` for (const [name, addr] of Object.entries(predeploys)) {
|OVM_L2StandardBridge: | \`0x4200000000000000000000000000000000000010\` md += `|${name}|${addr}|\n`
|OVM_L2CrossDomainMessenger: | \`0x4200000000000000000000000000000000000007\` }
|OVM_L2ToL1MessagePasser: | \`0x4200000000000000000000000000000000000000\`
|OVM_L1MessageSender: | \`0x4200000000000000000000000000000000000001\`
|OVM_DeployerWhitelist: | \`0x4200000000000000000000000000000000000002\`
|OVM_ECDSAContractAccount: | \`0x4200000000000000000000000000000000000003\`
|OVM_SequencerEntrypoint: | \`0x4200000000000000000000000000000000000005\`
|Lib_AddressManager: | \`0x4200000000000000000000000000000000000008\`
|ERC1820Registry: | \`0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24\`
--- md += `\n---
--- ---
## LAYER 1\n\n` ## LAYER 1\n\n`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment