From 7cd359a8427de0558c0ef89d60cdba2765805c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20C=C3=B3rdoba?= Date: Thu, 12 Oct 2023 00:34:14 +0200 Subject: [PATCH] WIP --- .../zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs | 2 +- .../{{dna_role_name}}/{{zome_manifest.name}}/common.ts.hbs | 4 ++-- .templates/app/web-app/Cargo.toml.hbs | 2 ++ .../zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs | 2 +- .../zomes/coordinator/{{snake_case app_name}}/Cargo.toml.hbs | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.templates/app/coordinator-zome/dnas/{{dna_role_name}}/zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs b/.templates/app/coordinator-zome/dnas/{{dna_role_name}}/zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs index 1a3d173..906edf4 100644 --- a/.templates/app/coordinator-zome/dnas/{{dna_role_name}}/zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs +++ b/.templates/app/coordinator-zome/dnas/{{dna_role_name}}/zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs @@ -4,7 +4,7 @@ fixt = "*" futures = { version = "0.3.1", default-features = false } hdk = { workspace = true, features = ["encoding", "test_utils"] } -holochain = { worskpace = true, default-features = false, features = [ +holochain = { version = "0.2", default-features = false, features = [ "test_utils", ] } tokio = { version = "1.3", features = ["full"] } diff --git a/.templates/app/coordinator-zome/tests/src/{{dna_role_name}}/{{zome_manifest.name}}/common.ts.hbs b/.templates/app/coordinator-zome/tests/src/{{dna_role_name}}/{{zome_manifest.name}}/common.ts.hbs index 413c57e..f251b08 100644 --- a/.templates/app/coordinator-zome/tests/src/{{dna_role_name}}/{{zome_manifest.name}}/common.ts.hbs +++ b/.templates/app/coordinator-zome/tests/src/{{dna_role_name}}/{{zome_manifest.name}}/common.ts.hbs @@ -15,8 +15,8 @@ import { encode } from '@msgpack/msgpack'; import { Scenario, dhtSync } from '@holochain/tryorama'; import { dirname } from 'path'; import { fileURLToPath } from 'url'; -import { {{pascal_case app_name}}Client } from '../../ui/src/{{kebab_case zome_manifest.name}}-client.js'; -import { {{pascal_case app_name}}Store } from '../../ui/src/{{kebab_case zome_manifest.name}}-store.js'; +import { {{pascal_case zome_manifest.name}}Client } from '../../ui/src/{{kebab_case zome_manifest.name}}-client.js'; +import { {{pascal_case zome_manifest.name}}Store } from '../../ui/src/{{kebab_case zome_manifest.name}}-store.js'; export async function setup(scenario: Scenario) { const testHappUrl = diff --git a/.templates/app/web-app/Cargo.toml.hbs b/.templates/app/web-app/Cargo.toml.hbs index a099186..fa2c21b 100644 --- a/.templates/app/web-app/Cargo.toml.hbs +++ b/.templates/app/web-app/Cargo.toml.hbs @@ -10,3 +10,5 @@ resolver = "2" [workspace.dependencies] holochain = "{{holochain_version}}" +hdk = "0.2" +hdi = "0.3" diff --git a/.templates/module/coordinator-zome/dnas/{{dna_role_name}}/zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs b/.templates/module/coordinator-zome/dnas/{{dna_role_name}}/zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs index 1a3d173..906edf4 100644 --- a/.templates/module/coordinator-zome/dnas/{{dna_role_name}}/zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs +++ b/.templates/module/coordinator-zome/dnas/{{dna_role_name}}/zomes/coordinator/{{zome_manifest.name}}/Cargo.toml.hbs @@ -4,7 +4,7 @@ fixt = "*" futures = { version = "0.3.1", default-features = false } hdk = { workspace = true, features = ["encoding", "test_utils"] } -holochain = { worskpace = true, default-features = false, features = [ +holochain = { version = "0.2", default-features = false, features = [ "test_utils", ] } tokio = { version = "1.3", features = ["full"] } diff --git a/.templates/module/web-app/zomes/coordinator/{{snake_case app_name}}/Cargo.toml.hbs b/.templates/module/web-app/zomes/coordinator/{{snake_case app_name}}/Cargo.toml.hbs index 172c7a4..0c8276b 100644 --- a/.templates/module/web-app/zomes/coordinator/{{snake_case app_name}}/Cargo.toml.hbs +++ b/.templates/module/web-app/zomes/coordinator/{{snake_case app_name}}/Cargo.toml.hbs @@ -18,7 +18,7 @@ serde = { workspace = true } fixt = "*" futures = { version = "0.3.1", default-features = false } hdk = { workspace = true, features = ["encoding", "test_utils"] } -holochain = { worskpace = true, default-features = false, features = [ +holochain = { version = "0.2", default-features = false, features = [ "test_utils", ] } tokio = { version = "1.3", features = ["full"] }