diff --git a/cli/src/command/deployments/create.rs b/cli/src/command/deployments/create.rs index 78a82c1..0309cdb 100644 --- a/cli/src/command/deployments/create.rs +++ b/cli/src/command/deployments/create.rs @@ -55,7 +55,7 @@ impl CreateArgs { invoke_max_steps: config.invoke_max_steps, validate_max_steps: config.validate_max_steps, genesis: config.genesis.clone(), - dev_mode: config.dev_mode, + dev: config.dev.then_some(true), }), torii: None, madara: None, diff --git a/cli/src/command/deployments/services/katana.rs b/cli/src/command/deployments/services/katana.rs index 896bdc2..351316f 100644 --- a/cli/src/command/deployments/services/katana.rs +++ b/cli/src/command/deployments/services/katana.rs @@ -1,6 +1,6 @@ use std::path::PathBuf; -use clap::{ArgAction, Args}; +use clap::Args; use katana_primitives::genesis; use katana_primitives::genesis::json::GenesisJson; @@ -52,9 +52,9 @@ pub struct KatanaCreateArgs { #[arg(value_parser = genesis_value_parser)] pub genesis: Option, - #[arg(long, action = ArgAction::Set, default_value_t = false)] + #[arg(long)] #[arg(help = "Enable Katana dev mode for specific endpoints.")] - pub dev_mode: bool, + pub dev: bool, } #[derive(Debug, Args, serde::Serialize)] @@ -92,9 +92,9 @@ pub struct KatanaUpdateArgs { #[arg(help = "Gas Price.")] pub gas_price: Option, - #[arg(long, action = ArgAction::Set, default_value_t = false)] + #[arg(long)] #[arg(help = "Enable Katana dev mode for specific endpoints.")] - pub dev_mode: bool, + pub dev: bool, } #[derive(Debug, Args, serde::Serialize)] diff --git a/cli/src/command/deployments/update.rs b/cli/src/command/deployments/update.rs index a4d93ba..f5bf026 100644 --- a/cli/src/command/deployments/update.rs +++ b/cli/src/command/deployments/update.rs @@ -42,6 +42,7 @@ impl UpdateArgs { gas_price: config.gas_price, invoke_max_steps: config.invoke_max_steps, validate_max_steps: config.validate_max_steps, + dev: config.dev.then_some(true), }), }), }, diff --git a/delete.sh b/delete.sh new file mode 100644 index 0000000..06d69c4 --- /dev/null +++ b/delete.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +for n in {1..100}; do + cargo run -- deployments delete "ls-tmp-$n" torii -f + cargo run -- deployments delete "ls-tmp-$n" katana -f + cargo run -- deployments delete "ls-tmp-$n" saya -f +done diff --git a/scripts/pull_schema.sh b/scripts/pull_schema.sh index fe67b1a..2edb3b1 100755 --- a/scripts/pull_schema.sh +++ b/scripts/pull_schema.sh @@ -4,3 +4,4 @@ # cargo install graphql_client_cli graphql-client introspect-schema --output slot/schema.json https://api.cartridge.gg/query +# graphql-client introspect-schema --output slot/schema.json http://localhost:8000/query diff --git a/slot/schema.json b/slot/schema.json index 9a640b0..6f60cb0 100644 --- a/slot/schema.json +++ b/slot/schema.json @@ -2845,6 +2845,12 @@ "description": null, "isDeprecated": false, "name": "injected" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "starknet_account" } ], "fields": [], @@ -11738,15 +11744,11 @@ { "defaultValue": null, "description": null, - "name": "devMode", + "name": "dev", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "SCALAR", + "name": "Boolean", + "ofType": null } } ], @@ -20372,20 +20374,6 @@ "ofType": null } } - }, - { - "defaultValue": null, - "description": null, - "name": "devMode", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - } } ], "inputFields": [], @@ -39478,6 +39466,16 @@ "name": "Long", "ofType": null } + }, + { + "defaultValue": null, + "description": null, + "name": "dev", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } } ], "interfaces": [],