Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! docs(cli): update ceremony
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemartin committed Oct 31, 2024
1 parent 9c52bfb commit 73c152f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
4 changes: 1 addition & 3 deletions crates/iota/genesis.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,10 @@ stake to validators.
The resulting distribution schedule is amended only if any migration sources are
passed in the "Build Genesis" step.

The `pre_minted_supply` of the network can also be set.

```
$ iota genesis-ceremony init-token-distribution-schedule \
--token-allocations-path <path-to-token-allocations-csv-file> \
--pre-minted-supply <# of iota coins in nanos>
--token-allocations-path <path-to-token-allocations-csv-file>
$ git add .
$ git commit -m "initialize token distribution schedule"
$ git push
Expand Down
8 changes: 0 additions & 8 deletions crates/iota/src/genesis_ceremony.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ pub enum CeremonyCommand {
},
/// Initialize token distribution schedule.
InitTokenDistributionSchedule {
#[clap(
long,
help = "The amount of any pre-minted supply",
default_value_t = 0
)]
pre_minted_supply: u64,
#[clap(
long,
help = "The path to the csv file with the token allocations",
Expand Down Expand Up @@ -167,12 +161,10 @@ pub async fn run(cmd: Ceremony) -> Result<()> {
}

CeremonyCommand::InitTokenDistributionSchedule {
pre_minted_supply,
token_allocations_path,
} => {
let mut builder = Builder::load(&dir).await?;
let mut schedule_builder = TokenDistributionScheduleBuilder::new();
schedule_builder.set_pre_minted_supply(pre_minted_supply);

let token_allocations_csv = File::open(token_allocations_path)?;
let mut reader = csv::Reader::from_reader(token_allocations_csv);
Expand Down
5 changes: 1 addition & 4 deletions docs/content/references/cli/ceremony.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,9 @@ stake to validators.
The resulting distribution schedule is amended only if any migration sources are
passed in the "Build the Unsigned Checkpoint" step.

The `pre_minted_supply` of the network can also be set.

```shell
$ iota genesis-ceremony init-token-distribution-schedule \
--token-allocations-path <path-to-token-allocations-csv-file> \
--pre-minted-supply <# of iota coins in nanos>
--token-allocations-path <path-to-token-allocations-csv-file>
```

### Validate the Genesis State
Expand Down

0 comments on commit 73c152f

Please sign in to comment.