Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.83 KB

client.chainop.md

File metadata and controls

36 lines (30 loc) · 1.83 KB

Home > @holochain/client > ChainOp

ChainOp type

Signature:

export type ChainOp = {
    [DhtOpType.StoreRecord]: [Signature, Action, Entry | undefined];
} | {
    [DhtOpType.StoreEntry]: [Signature, NewEntryAction, Entry];
} | {
    [DhtOpType.RegisterAgentActivity]: [Signature, Action];
} | {
    [DhtOpType.RegisterUpdatedContent]: [
        Signature,
        Update,
        Entry | undefined
    ];
} | {
    [DhtOpType.RegisterUpdatedRecord]: [Signature, Update, Entry | undefined];
} | {
    [DhtOpType.RegisterDeletedBy]: [Signature, Delete];
} | {
    [DhtOpType.RegisterDeletedEntryAction]: [Signature, Delete];
} | {
    [DhtOpType.RegisterAddLink]: [Signature, CreateLink];
} | {
    [DhtOpType.RegisterRemoveLink]: [Signature, DeleteLink];
};

References: DhtOpType.StoreRecord, Signature, Action, Entry, DhtOpType.StoreEntry, NewEntryAction, DhtOpType.RegisterAgentActivity, DhtOpType.RegisterUpdatedContent, Update, DhtOpType.RegisterUpdatedRecord, DhtOpType.RegisterDeletedBy, Delete, DhtOpType.RegisterDeletedEntryAction, DhtOpType.RegisterAddLink, CreateLink, DhtOpType.RegisterRemoveLink, DeleteLink