Skip to content

Commit

Permalink
bump: hdk 3.1 hdi 4.1
Browse files Browse the repository at this point in the history
-add GetLinksBuilder to get_links
-fix imports
-change scaffolding demo validation to reflect new params
  • Loading branch information
dauphin3 committed Jul 25, 2024
1 parent e5b7b1e commit 698e018
Show file tree
Hide file tree
Showing 8 changed files with 2,202 additions and 2,177 deletions.
4,101 changes: 2,116 additions & 1,985 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ members = ["dnas/*/zomes/coordinator/*", "dnas/*/zomes/integrity/*", "lib/*"]
resolver = "2"

[workspace.dependencies]
hdi = "=0.3.6"
hdk = "=0.2.6"
serde = "=1.0.166"
holochain = { version = "=0.2.6", default-features = false, features = [
hdi = "=0.4.1"
hdk = "=0.3.1"
serde = "=1.0.197"
holochain = { version = "=0.3.1", default-features = false, features = [
"test_utils",
] }
tokio = { version = "1.27", features = ["full"] }
Expand Down
15 changes: 3 additions & 12 deletions dnas/demo/zomes/integrity/demo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,16 @@ pub fn validate(op: Op) -> ExternResult<ValidateCallbackResult> {
},
FlatOp::RegisterUpdate(update_entry) => match update_entry {
OpUpdate::Entry {
original_action: _,
original_app_entry: _,
app_entry: _,
action: _,
} => Ok(ValidateCallbackResult::Invalid(
"There are no entry types in this integrity zome".to_string(),
)),
_ => Ok(ValidateCallbackResult::Valid),
},
FlatOp::RegisterDelete(delete_entry) => match delete_entry {
OpDelete::Entry {
original_action: _,
original_app_entry: _,
action: _,
} => Ok(ValidateCallbackResult::Invalid(
"There are no entry types in this integrity zome".to_string(),
)),
_ => Ok(ValidateCallbackResult::Valid),
},
FlatOp::RegisterDelete(_delete_entry) => Ok(ValidateCallbackResult::Invalid(
"There are no entry types in this integrity zome".to_string(),
)),
FlatOp::RegisterCreateLink {
link_type,
base_address: _,
Expand Down
Loading

0 comments on commit 698e018

Please sign in to comment.