From e54ed69954a85ef024c6b28585f8de90be3884c8 Mon Sep 17 00:00:00 2001 From: steebchen Date: Tue, 27 Aug 2024 16:05:43 +0100 Subject: [PATCH] Pull schema and add polling-interval to torii --- cli/src/command/deployments/create.rs | 1 + cli/src/command/deployments/services/torii.rs | 4 +++ slot/schema.json | 34 ++++++++++++++----- 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/cli/src/command/deployments/create.rs b/cli/src/command/deployments/create.rs index b7750e8..5ba82da 100644 --- a/cli/src/command/deployments/create.rs +++ b/cli/src/command/deployments/create.rs @@ -71,6 +71,7 @@ impl CreateArgs { world: format!("{:#x}", config.world), start_block: Some(config.start_block.unwrap_or(0)), index_pending: config.index_pending, + polling_interval: config.polling_interval, }), }), }, diff --git a/cli/src/command/deployments/services/torii.rs b/cli/src/command/deployments/services/torii.rs index f47369c..1fce013 100644 --- a/cli/src/command/deployments/services/torii.rs +++ b/cli/src/command/deployments/services/torii.rs @@ -25,6 +25,10 @@ pub struct ToriiCreateArgs { #[arg(long)] #[arg(help = "Enable indexing pending blocks.")] pub index_pending: Option, + + #[arg(long)] + #[arg(help = "Polling interval in milliseconds.")] + pub polling_interval: Option, } #[derive(Clone, Debug, Args, serde::Serialize)] diff --git a/slot/schema.json b/slot/schema.json index 17a1d48..2ec63bf 100644 --- a/slot/schema.json +++ b/slot/schema.json @@ -11943,7 +11943,7 @@ "name": "startBlock", "type": { "kind": "SCALAR", - "name": "Int", + "name": "Long", "ofType": null } }, @@ -11956,6 +11956,16 @@ "name": "Boolean", "ofType": null } + }, + { + "defaultValue": null, + "description": null, + "name": "pollingInterval", + "type": { + "kind": "SCALAR", + "name": "Long", + "ofType": null + } } ], "interfaces": [], @@ -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 } }, { @@ -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": [],