forked from holochain-open-dev/membrane-invitations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bumped to hdk 0.0.142 and REMOVED B64 hashes
- Loading branch information
Showing
14 changed files
with
737 additions
and
244 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,27 +2,28 @@ | |
authors = ["[email protected]", "[email protected]", "[email protected]"] | ||
description = "MembraneInvitations zome for any Holochain app" | ||
documentation = "https://holochain-open-dev.github.io/membrane_invitations" | ||
edition = "2018" | ||
edition = "2021" | ||
homepage = "https://docs.rs/hc_zome_membrane_invitations" | ||
license = "MIT" | ||
name = "hc_zome_membrane_invitations" | ||
name = "hc_zome_membrane_invitations_coordinator" | ||
repository = "https://github.com/holochain-open-dev/membrane_invitations" | ||
version = "0.0.1" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
name = "hc_zome_membrane_invitations" | ||
name = "hc_zome_membrane_invitations_coordinator" | ||
|
||
[dependencies] | ||
derive_more = "0" | ||
serde = "1" | ||
|
||
hc_zome_membrane_invitations_integrity = { path = "../integrity"} | ||
hc_zome_membrane_invitations_types = {path = "../types"} | ||
hdk = {version = "0.0.136", features = ["encoding"]} | ||
hdk = {version = "0.0.142", features = ["encoding"]} | ||
|
||
[dev-dependencies] | ||
fixt = "0.0.11" | ||
fixt = "0.0.13" | ||
futures = {version = "0.3.1", default-features = false} | ||
hdk = {version = "0.0.136", features = ["encoding", "test_utils"]} | ||
holochain = {version = "0.0.143", default-features = false, features = ["test_utils"]} | ||
hdk = {version = "0.0.142", features = ["encoding", "test_utils"]} | ||
holochain = {version = "0.0.150", default-features = false, features = ["test_utils"]} | ||
tokio = {version = "1.3", features = ["full"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
authors = ["[email protected]", "[email protected]", "[email protected]"] | ||
description = "MembraneInvitations zome for any Holochain app" | ||
documentation = "https://holochain-open-dev.github.io/membrane_invitations" | ||
edition = "2021" | ||
homepage = "https://docs.rs/hc_zome_membrane_invitations" | ||
license = "MIT" | ||
name = "hc_zome_membrane_invitations_integrity" | ||
repository = "https://github.com/holochain-open-dev/membrane_invitations" | ||
version = "0.0.1" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
name = "hc_zome_membrane_invitations_integrity" | ||
|
||
[dependencies] | ||
derive_more = "0" | ||
serde = "1" | ||
|
||
hc_zome_membrane_invitations_types = {path = "../types"} | ||
hdi = "0.0.14" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# hc_zome_membrane_invitations_integrity | ||
|
||
MembraneInvitations integrity zome for any Holochain app. | ||
|
||
## Documentation | ||
|
||
See our [installation instructions and documentation](https://holochain-open-dev.github.io/membrane-invitations). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//! ## hc_zome_membrane_invitations | ||
use hdi::prelude::*; | ||
|
||
use hc_zome_membrane_invitations_types::*; | ||
|
||
#[hdk_entry_defs] | ||
#[unit_enum(UnitEntryTypes)] | ||
pub enum EntryTypes { | ||
CloneDnaRecipe(CloneDnaRecipe), | ||
} | ||
|
||
#[hdk_link_types] | ||
pub enum LinkTypes { | ||
DnaHashToRecipe, | ||
InviteeToRecipe, | ||
} | ||
|
||
#[hdk_extern] | ||
pub fn validate(_op: Op) -> ExternResult<ValidateCallbackResult> { | ||
Ok(ValidateCallbackResult::Valid) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
authors = ["[email protected]", "[email protected]", "[email protected]"] | ||
description = "Types for the hc_zome_membrane_invitations zome" | ||
documentation = "https://holochain-open-dev.github.io/membrane_invitations" | ||
edition = "2018" | ||
edition = "2021" | ||
homepage = "https://docs.rs/hc_zome_membrane_invitations_types" | ||
license = "MIT" | ||
name = "hc_zome_membrane_invitations_types" | ||
|
@@ -17,4 +17,4 @@ name = "hc_zome_membrane_invitations_types" | |
derive_more = "0" | ||
serde = "1" | ||
|
||
hdk = {version = "0.0.136", features = ["encoding"]} | ||
hdi = "0.0.14" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
use hdk::prelude::holo_hash::*; | ||
use hdk::prelude::*; | ||
use hdi::prelude::holo_hash::*; | ||
use hdi::prelude::*; | ||
|
||
#[hdk_entry(id = "clone_dna_recipe")] | ||
#[hdk_entry_helper] | ||
#[serde(rename_all = "camelCase")] | ||
#[derive(Clone)] | ||
pub struct CloneDnaRecipe { | ||
pub original_dna_hash: DnaHashB64, | ||
|
||
pub original_dna_hash: DnaHash, | ||
pub properties: SerializedBytes, | ||
pub uid: Option<String>, | ||
|
||
pub resulting_dna_hash: DnaHashB64, | ||
pub resulting_dna_hash: DnaHash, | ||
} | ||
|
||
#[derive(Clone, Debug, Serialize, Deserialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct InviteToJoinMembraneInput { | ||
pub clone_dna_recipe: CloneDnaRecipe, | ||
pub invitee: AgentPubKeyB64, | ||
pub invitee: AgentPubKey, | ||
pub membrane_proof: Option<MembraneProof>, | ||
} | ||
|
||
#[derive(Clone, Debug, Serialize, Deserialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct JoinMembraneInvitation { | ||
pub clone_dna_recipe: CloneDnaRecipe, | ||
pub inviter: AgentPubKeyB64, | ||
pub invitee: AgentPubKeyB64, | ||
pub inviter: AgentPubKey, | ||
pub invitee: AgentPubKey, | ||
pub membrane_proof: Option<MembraneProof>, | ||
pub timestamp: Timestamp, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.