Skip to content

Commit

Permalink
migrate v1
Browse files Browse the repository at this point in the history
  • Loading branch information
dauphin3 committed Oct 11, 2024
1 parent 3c3380e commit 49e0146
Show file tree
Hide file tree
Showing 17 changed files with 1,029 additions and 124 deletions.
122 changes: 122 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ resolver = "2"
[workspace.dependencies]
hdi = "=0.4.2"
hdk = "=0.3.2"
# holochain_integrity_types = "=0.2.2"
serde = "1.0"
paste = "1.0"
rand = "0.8.5"
hc_prefix_index = "0.12.0"
regex = "1.10.3"
hc_zome_profiles_coordinator = { git = "https://github.com/holochain-open-dev/profiles.git", rev = "a1a487c8d6a8fd9910ba9b3f26e47df0bf0d09ae" }
hc_zome_profiles_integrity = { git = "https://github.com/holochain-open-dev/profiles.git", rev = "a1a487c8d6a8fd9910ba9b3f26e47df0bf0d09ae" }
trust_atom_types = { git = "https://github.com/trustgraph/trustgraph-holochain.git", package = "trust_atom_types", branch = "chore/hdk-0.3.2-using-builder" }

[workspace.dependencies.agent_pins]
path = "dnas/mewsfeed/zomes/coordinator/agent_pins"
Expand Down Expand Up @@ -57,3 +57,9 @@ path = "crates/hc_call_utils"

[workspace.dependencies.hc_link_pagination]
path = "crates/hc_link_pagination"

[workspace.dependencies.trust_atom]
path = "dnas/mewsfeed/zomes/coordinator/trust_atom"

[workspace.dependencies.trust_atom_integrity]
path = "dnas/mewsfeed/zomes/integrity/trust_atom"
6 changes: 6 additions & 0 deletions crates/mews_types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use hc_link_pagination::Timestamped;
use hdk::prelude::*;
use std::collections::BTreeMap;

pub const FOLLOW_TOPIC: &str = "__DEFAULT__";

#[derive(Serialize, Deserialize, SerializedBytes, Debug, Clone, PartialEq, Eq)]
pub enum LinkTarget {
Mention(AgentPubKey),
Expand Down Expand Up @@ -42,6 +44,7 @@ pub struct Profile {

#[derive(Serialize, Deserialize, SerializedBytes, Debug, Clone)]
pub struct FeedMew {
// Mew with context
pub mew: Mew,
pub action: Action,
pub action_hash: ActionHash,
Expand All @@ -57,6 +60,9 @@ pub struct FeedMew {
pub is_replied: bool,
pub is_quoted: bool,
pub original_mew: Option<EmbedMew>,
// introduced with TrustAtoms
pub weight: Option<String>,
pub topic: Option<String>,
}

#[derive(Serialize, Deserialize, SerializedBytes, Debug, Clone)]
Expand Down
9 changes: 9 additions & 0 deletions dnas/mewsfeed/workdir/dna.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ integrity:
hash: ~
bundled: "../../../target/wasm32-unknown-unknown/release/agent_pins_integrity.wasm"
dependencies: ~
- name: trust_atom_integrity
hash: ~
bundled: "../../../target/wasm32-unknown-unknown/release/trust_atom_integrity_zome.wasm"
dependencies: ~
coordinator:
zomes:
- name: profiles
Expand Down Expand Up @@ -60,3 +64,8 @@ coordinator:
hash: ~
bundled: "../../../target/wasm32-unknown-unknown/release/ping.wasm"
dependencies: []
- name: trust_atom
hash: ~
bundled: "../../../target/wasm32-unknown-unknown/release/trust_atom_zome.wasm"
dependencies:
- name: trust_atom_integrity
7 changes: 5 additions & 2 deletions dnas/mewsfeed/zomes/coordinator/follows/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ crate-type = ["cdylib", "rlib"]
name = "follows"

[dependencies]
hc_call_utils = { workspace = true }
hc_link_pagination = { workspace = true }
hdk = { workspace = true }
serde = { workspace = true }
follows_integrity = { workspace = true }
hc_link_pagination = { workspace = true }
follows_types = { workspace = true }
mews_types ={ workspace = true}
serde = { workspace = true }
trust_atom_types ={ workspace = true}
Loading

0 comments on commit 49e0146

Please sign in to comment.