MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / anchor_payload

Function anchor_payload

atomic-core/src/operation/codec.rs:1503–1523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1501 use super::*;
1502
1503 fn anchor_payload() -> OperationPayload {
1504 OperationPayload {
1505 parents: Vec::new(),
1506 kind: OperationKind::Anchor,
1507 relation: None,
1508 working_copy: None,
1509 before: RepoStateRef::EMPTY,
1510 delta: RepoStateDelta {
1511 after: RepoStateRef::EMPTY,
1512 metadata: Vec::new(),
1513 effects: Vec::new(),
1514 },
1515 git_observed: Vec::new(),
1516 evidence: Vec::new(),
1517 actor: ActorRef::System {
1518 name: "system".to_string(),
1519 },
1520 timestamp_ms: 0,
1521 lossy: Vec::new(),
1522 }
1523 }
1524
1525 fn v2_payload() -> OperationPayload {
1526 let mut payload = anchor_payload();

Calls

no outgoing calls