Skip to content

Commit

Permalink
Rename fdev variable prefixes from "locutus" to "freenet"
Browse files Browse the repository at this point in the history
  • Loading branch information
KristijanZic committed Oct 17, 2023
1 parent 7010604 commit 52554d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/fdev/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use freenet_stdlib::{
client_api::{ClientRequest, ContractRequest, DelegateRequest},
prelude::*,
};
// use locutus_runtime::{
// use freenet_runtime::{
// ContractContainer, ContractInstanceId, ContractStore, DelegateContainer, DelegateStore,
// Parameters, SecretsStore, StateStore,
// };
Expand Down
2 changes: 1 addition & 1 deletion crates/fdev/src/local_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ pub struct LocalNodeCliConfig {
#[clap(long, requires = "fmt")]
pub(crate) terminal_output: bool,
/// Max contract size
#[clap(long, env = "LOCUTUS_MAX_CONTRACT_SIZE", default_value_t = DEFAULT_MAX_CONTRACT_SIZE)]
#[clap(long, env = "FREENET_MAX_CONTRACT_SIZE", default_value_t = DEFAULT_MAX_CONTRACT_SIZE)]
pub(crate) max_contract_size: i64,
}
8 changes: 4 additions & 4 deletions crates/fdev/src/new_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn create_new_package(config: NewPackageCliConfig) -> Result<(), DynError> {
fn create_view_package(cwd: &Path) -> Result<(), DynError> {
create_rust_crate(cwd, ContractKind::WebApp)?;
create_web_init_files(cwd)?;
let locutus_file_config = BuildToolConfig {
let freenet_file_config = BuildToolConfig {
contract: Contract {
c_type: Some(ContractType::WebApp),
lang: Some(SupportedContractLangs::Rust),
Expand All @@ -43,7 +43,7 @@ fn create_view_package(cwd: &Path) -> Result<(), DynError> {
}),
state: None,
};
let serialized = toml::to_string(&locutus_file_config)?.into_bytes();
let serialized = toml::to_string(&freenet_file_config)?.into_bytes();
let path = cwd.join("freenet").with_extension("toml");
let mut file = File::create(path)?;
file.write_all(&serialized)?;
Expand All @@ -52,7 +52,7 @@ fn create_view_package(cwd: &Path) -> Result<(), DynError> {

fn create_regular_contract(cwd: &Path) -> Result<(), DynError> {
create_rust_crate(cwd, ContractKind::Contract)?;
let locutus_file_config = BuildToolConfig {
let freenet_file_config = BuildToolConfig {
contract: Contract {
c_type: Some(ContractType::Standard),
lang: Some(SupportedContractLangs::Rust),
Expand All @@ -61,7 +61,7 @@ fn create_regular_contract(cwd: &Path) -> Result<(), DynError> {
webapp: None,
state: None,
};
let serialized = toml::to_string(&locutus_file_config)?.into_bytes();
let serialized = toml::to_string(&freenet_file_config)?.into_bytes();
let path = cwd.join("freenet").with_extension("toml");
let mut file = File::create(path)?;
file.write_all(&serialized)?;
Expand Down

0 comments on commit 52554d6

Please sign in to comment.