Skip to content

Commit 91482bb

Browse files
authored
docs: add moderato zonefactory to readme (#353)
1 parent c6949e3 commit 91482bb

6 files changed

Lines changed: 19 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ just deploy-zone my-zone alphausd
3939
- Generate `generated/<name>/genesis.json` and `generated/<name>/zone.json`
4040
- Register the sequencer encryption key and start the zone node
4141

42+
### Key Addresses
43+
44+
| Contract | Address | Explorer |
45+
|----------|---------|----------|
46+
| ZoneFactory (moderato) | `0x7Cc496Dc634b718289c192b59CF90262C5228545` | [View on Moderato explorer](https://explore.moderato.tempo.xyz/address/0x7Cc496Dc634b718289c192b59CF90262C5228545) |
47+
48+
`just create-zone`, `just deploy-zone`, and `just zone-info` default to this Moderato `ZoneFactory`. `just deploy-router` also falls back to it when `zone.json` does not already include `zoneFactory`.
49+
4250
`zone.json` stores the deployed portal address, zone ID, anchor block, and sequencer metadata used by later commands such as `just zone-up` and `just deploy-router`.
4351

4452
To restart the same zone later:

docs/ZONES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ graph TB
449449
| pathUSD (TIP-20) | `0x20C0000000000000000000000000000000000000` |
450450
| ZoneFactory (moderato) | `0x7Cc496Dc634b718289c192b59CF90262C5228545` |
451451

452+
The xtasks use this Moderato `ZoneFactory` as their built-in default: `create-zone` and `zone-info` point at it automatically, and `deploy-router` falls back to it when `zone.json` does not already record `zoneFactory`.
453+
452454
### Zone Node CLI Options
453455

454456
| Flag | Default | Description |

xtask/src/create_zone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub(crate) struct CreateZone {
6161
l1_rpc_url: String,
6262

6363
/// ZoneFactory contract address on Tempo L1.
64-
/// Default is the ZoneFactory deployed on moderato.
64+
/// Defaults to `MODERATO_ZONE_FACTORY`, the shared Moderato deployment.
6565
#[arg(long, default_value_t = MODERATO_ZONE_FACTORY)]
6666
zone_factory: Address,
6767

xtask/src/deploy_router.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ pub(crate) struct DeployRouter {
3333
#[arg(long, env = "PRIVATE_KEY")]
3434
private_key: String,
3535

36-
/// ZoneFactory contract address. Falls back to zone.json, then the moderato default.
36+
/// ZoneFactory contract address.
37+
/// Falls back to `zone.json`, then `MODERATO_ZONE_FACTORY` on Moderato.
3738
#[arg(long)]
3839
zone_factory: Option<Address>,
3940

xtask/src/zone_info.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub(crate) struct ZoneInfoCmd {
1515
l1_rpc_url: String,
1616

1717
/// ZoneFactory contract address on Tempo L1.
18+
/// Defaults to `MODERATO_ZONE_FACTORY`, the shared Moderato deployment.
1819
#[arg(long, default_value_t = MODERATO_ZONE_FACTORY)]
1920
zone_factory: Address,
2021
}

xtask/src/zone_utils.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ use tempo_contracts::precompiles::ITIP20 as TIP20Token;
1616
use zone::abi::{ZoneInbox, ZonePortal};
1717

1818
pub(crate) const L1_EXPLORER: &str = "https://explore.moderato.tempo.xyz/tx";
19+
/// Shared ZoneFactory deployed on Moderato Tempo L1.
20+
/// `create-zone`, `deploy-router`, and `zone-info` use this as their default
21+
/// factory unless the caller overrides `--zone-factory` or `zone.json` already
22+
/// provides a zone-specific value.
23+
/// Explorer: https://explore.moderato.tempo.xyz/address/0x7Cc496Dc634b718289c192b59CF90262C5228545
1924
pub(crate) const MODERATO_ZONE_FACTORY: Address =
2025
address!("0x7Cc496Dc634b718289c192b59CF90262C5228545");
2126
pub(crate) const STABLECOIN_DEX_ADDRESS: Address =

0 commit comments

Comments
 (0)