Skip to content

Commit

Permalink
Pull schema and add polling-interval to torii
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Aug 27, 2024
1 parent 1ecde30 commit 1213c1b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
3 changes: 2 additions & 1 deletion cli/src/command/deployments/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ impl CreateArgs {
torii: Some(CreateToriiConfigInput {
rpc: Some(config.rpc.clone().unwrap_or("".to_string())),
world: format!("{:#x}", config.world),
start_block: Some(config.start_block.unwrap_or(0)),
start_block: Some(config.start_block.unwrap_or(0.0)),

Check failure on line 72 in cli/src/command/deployments/create.rs

View workflow job for this annotation

GitHub Actions / clippy

mismatched types

Check failure on line 72 in cli/src/command/deployments/create.rs

View workflow job for this annotation

GitHub Actions / test

mismatched types
index_pending: config.index_pending,
polling_interval: config.polling_interval,

Check failure on line 74 in cli/src/command/deployments/create.rs

View workflow job for this annotation

GitHub Actions / clippy

mismatched types

Check failure on line 74 in cli/src/command/deployments/create.rs

View workflow job for this annotation

GitHub Actions / test

mismatched types
}),
}),
},
Expand Down
6 changes: 5 additions & 1 deletion cli/src/command/deployments/services/torii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ pub struct ToriiCreateArgs {

#[arg(short, long)]
#[arg(help = "Specify a block to start indexing from.")]
pub start_block: Option<i64>,
pub start_block: Option<f64>,

#[arg(long)]
#[arg(help = "Enable indexing pending blocks.")]
pub index_pending: Option<bool>,

#[arg(long)]
#[arg(help = "Polling interval in milliseconds.")]
pub polling_interval: Option<f64>,
}

#[derive(Clone, Debug, Args, serde::Serialize)]
Expand Down
34 changes: 26 additions & 8 deletions slot/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11943,7 +11943,7 @@
"name": "startBlock",
"type": {
"kind": "SCALAR",
"name": "Int",
"name": "Long",
"ofType": null
}
},
Expand All @@ -11956,6 +11956,16 @@
"name": "Boolean",
"ofType": null
}
},
{
"defaultValue": null,
"description": null,
"name": "pollingInterval",
"type": {
"kind": "SCALAR",
"name": "Long",
"ofType": null
}
}
],
"interfaces": [],
Expand Down Expand Up @@ -35002,13 +35012,9 @@
"isDeprecated": false,
"name": "startBlock",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Long",
"ofType": null
}
"kind": "SCALAR",
"name": "Long",
"ofType": null
}
},
{
Expand All @@ -35022,6 +35028,18 @@
"name": "Boolean",
"ofType": null
}
},
{
"args": [],
"deprecationReason": null,
"description": null,
"isDeprecated": false,
"name": "pollingInterval",
"type": {
"kind": "SCALAR",
"name": "Long",
"ofType": null
}
}
],
"inputFields": [],
Expand Down

0 comments on commit 1213c1b

Please sign in to comment.