Crate coop_content_sdk

Source

Re-exports§

pub use hdk_extensions::hdi;
pub use hdk_extensions::holo_hash;
pub use hdk_extensions::hdk;
pub use hdk_extensions::hdi_extensions;
pub use hdk_extensions;
pub use coop_content_types;

Modules§

hdi_extensions

Macros§

call_local_zome
Call a local zome function
call_local_zome_decode
Call a local zome function and decode the response
common_fields
Auto-implement the CommonFields trait
create_group
Create a new group
get_all_group_content_latest
Get the latest evolution of all content targets in a group
get_group
Get a group’s latest state
get_group_content_latest
Get the latest evolution of a single content target in a group
group_ref
Easily-implement the GroupRef trait
register_content_to_group
Register a new content target to a group
register_content_update_to_group
Register a content update target to a group
update_group
Update a new group

Structs§

ArchivedContributionsAnchorEntry
An entry struct (anchor) representing a former authority of a group
ContributionsAnchorEntry
An entry struct (anchor) representing a group contributor’s personal anchor
ContributorsDiff
The result of a group comparison
CreateContributionLinkInput
Input required for registering new content to a group
CreateContributionUpdateLinkInput
Input required for registering a content update to a group
GetAllGroupContentInput
Input for following all content evolutions in a group
GetAllGroupContentMacroInput
Input required for macro get_all_group_content_latest
GetGroupContentInput
Input for following a single content’s evolution in a group
GetGroupContentMacroInput
Input required for macro get_group_content_latest
GroupAuthInput
Input required for initializing a contributions anchor entry
GroupEntry
An entry struct for defining a group and its members
RegisterContributionMacroInput
Input required for macros register_content_to_group
RegisterContributionUpdateMacroInput
Input required for macros register_content_update_to_group

Enums§

ContributionAnchorTypes
Indicates the intended contributions anchor type
ContributionAnchors
An enum that represents an authority anchor (active/archived)

Traits§

CommonFields
Common fields that are expected on some entry structs
GroupRef
A trait for determining an entry’s group reference

Functions§

create_link_input
validate_group_auth
Checks that an entry’s group reference and author are valid
validate_group_member
Checks that the author of an action is an authority in the entry’s group reference
validate_group_ref
Check that an entry’s group reference is valid

Type Aliases§

LinkPointerMap
A map of evolution pointers