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 e54ed69
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
1 change: 1 addition & 0 deletions cli/src/command/deployments/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl CreateArgs {
world: format!("{:#x}", config.world),
start_block: Some(config.start_block.unwrap_or(0)),

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

View workflow job for this annotation

GitHub Actions / test

mismatched types

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

View workflow job for this annotation

GitHub Actions / clippy

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 / test

mismatched types

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

View workflow job for this annotation

GitHub Actions / clippy

mismatched types
}),
}),
},
Expand Down
4 changes: 4 additions & 0 deletions cli/src/command/deployments/services/torii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ pub struct ToriiCreateArgs {
#[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<i64>,
}

#[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 e54ed69

Please sign in to comment.