diff --git a/cli/src/command/deployments/create.rs b/cli/src/command/deployments/create.rs index b7750e8..995c980 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, }), }), }, @@ -126,7 +127,7 @@ impl CreateArgs { println!("\nConfiguration:"); println!(" World: {}", config.world); println!(" RPC: {}", config.rpc); - println!(" Start Block: {}", config.start_block); + println!(" Start Block: {}", config.start_block.unwrap_or(0)); println!(" Index Pending: {}", config.index_pending.unwrap_or(false)); println!("\nEndpoints:"); println!(" GRAPHQL: {}", config.graphql); diff --git a/cli/src/command/deployments/describe.rs b/cli/src/command/deployments/describe.rs index 186e7b7..3f2ca8c 100644 --- a/cli/src/command/deployments/describe.rs +++ b/cli/src/command/deployments/describe.rs @@ -58,7 +58,7 @@ impl DescribeArgs { println!(" Version: {}", config.version); println!(" World: {}", config.world); println!(" RPC: {}", config.rpc); - println!(" Start Block: {}", config.start_block); + println!(" Start Block: {}", config.start_block.unwrap_or(0)); println!( " Indexing Pending: {}", config.index_pending.unwrap_or(false) diff --git a/cli/src/command/deployments/services/torii.rs b/cli/src/command/deployments/services/torii.rs index f47369c..2494ba4 100644 --- a/cli/src/command/deployments/services/torii.rs +++ b/cli/src/command/deployments/services/torii.rs @@ -20,11 +20,15 @@ pub struct ToriiCreateArgs { #[arg(short, long)] #[arg(help = "Specify a block to start indexing from.")] - pub start_block: Option, + pub start_block: Option, #[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/cli/src/command/deployments/update.rs b/cli/src/command/deployments/update.rs index ce0cff9..e14ef56 100644 --- a/cli/src/command/deployments/update.rs +++ b/cli/src/command/deployments/update.rs @@ -84,7 +84,7 @@ impl UpdateArgs { println!("\nConfiguration:"); println!(" World: {}", config.world); println!(" RPC: {}", config.rpc); - println!(" Start Block: {}", config.start_block); + println!(" Start Block: {}", config.start_block.unwrap_or(0)); println!(" Index Pending: {}", config.index_pending.unwrap_or(false)); println!("\nEndpoints:"); println!(" GRAPHQL: {}", config.graphql); 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": [],