Skip to content

Commit 2ae688b

Browse files
authored
Merge pull request #39 from lightningrodlabs/hc-124
update to 124 and remove dummy avatars
2 parents 39ac19b + 28b2b03 commit 2ae688b

File tree

14 files changed

+322
-190
lines changed

14 files changed

+322
-190
lines changed

Cargo.lock

Lines changed: 22 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
let
2-
holonixRev = "c72cfede8d1e673fdbd5f1b6e908fa3086f56e8d";
2+
holonixRev = "1798d764873d53cfce576860b707af35ef4ba7cd";
33
holonixPath = builtins.fetchTarball "https://github.com/holochain/holonix/archive/${holonixRev}.tar.gz";
44
holonix = import (holonixPath) {
5-
holochainVersionId = "v0_0_123";
5+
holochainVersionId = "v0_0_124";
66
};
77
nixpkgs = holonix.pkgs;
88
in nixpkgs.mkShell {

dna/zomes/profiles/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ crate-type = ["cdylib", "rlib"]
99
name = "profiles"
1010

1111
[dependencies]
12-
hc_zome_profiles = {git = "https://github.com/holochain-open-dev/profiles", tag = "for-hc-v0.0.123", package = "hc_zome_profiles"}
13-
14-
hdk = "0.0.119"
15-
holo_hash = "0.0.16"
12+
hc_zome_profiles = {git = "https://github.com/holochain-open-dev/profiles", tag = "for-hc-v0.0.124", package = "hc_zome_profiles"}

dna/zomes/where/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ chrono = {version = "0.4", features = ['alloc', 'std']}
1313
derive_more = "0.99"
1414
serde = "1.0.123"
1515
thiserror = "1.0.20"
16-
hc_utils = {git = "https://github.com/holochain/hc-utils", branch = "v0.0.123", package = "hc_utils"}
16+
hc_utils = {git = "https://github.com/holochain/hc-utils", branch = "v0.0.124", package = "hc_utils"}
1717
#hc_utils = {git = "https://github.com/ddd-mtl/hc-utils", branch = "develop", package = "hc_utils"}
18-
hdk = "0.0.119"
19-
holo_hash = {version = "0.0.16", features = ["encoding"]}
18+
hdk = {version = "0.0.120", features = ["encoding"]}
2019

2120
[dev-dependencies]
2221
#holochain = { git = "https://github.com/holochain/holochain.git", branch = "develop", features = ["test_utils"] }

dna/zomes/where/src/here.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub struct Here {
1919
}
2020

2121

22-
/// Input to the create channel call
2322
#[derive(Debug, Serialize, Deserialize, SerializedBytes)]
2423
#[serde(rename_all = "camelCase")]
2524
pub struct AddHereInput {
@@ -29,6 +28,14 @@ pub struct AddHereInput {
2928
pub meta: BTreeMap<String, String>,
3029
}
3130

31+
/// Input to update a Here
32+
#[derive(Debug, Serialize, Deserialize, SerializedBytes)]
33+
#[serde(rename_all = "camelCase")]
34+
pub struct UpdateHereInput {
35+
old_here_hh: HeaderHashB64,
36+
new_here: AddHereInput,
37+
}
38+
3239
#[hdk_extern]
3340
fn add_here(input: AddHereInput) -> ExternResult<HeaderHashB64> {
3441
// Find session
@@ -46,6 +53,12 @@ fn add_here(input: AddHereInput) -> ExternResult<HeaderHashB64> {
4653
Ok(link_hh.into())
4754
}
4855

56+
#[hdk_extern]
57+
fn update_here(input: UpdateHereInput) -> ExternResult<HeaderHashB64> {
58+
delete_here(input.old_here_hh)?;
59+
add_here(input.new_here)
60+
}
61+
4962
#[hdk_extern]
5063
fn delete_here(link_hh: HeaderHashB64) -> ExternResult<()> {
5164
delete_link(link_hh.into())?;

0 commit comments

Comments
 (0)