Skip to content

Commit

Permalink
fix: ChainIntegrityWarrant type (#312)
Browse files Browse the repository at this point in the history
* fix ChainIntegrityWarrant type

* build docs
  • Loading branch information
matthme authored Dec 18, 2024
1 parent dcd3e25 commit b31403f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions docs/client.chainintegritywarrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export type ChainIntegrityWarrant = {
action_author: AgentPubKey;
action: ActionHashAndSig;
validation_type: ValidationType;
} | {
ChainFork: {
chain_author: AgentPubKey;
action_pair: [ActionHashAndSig, ActionHashAndSig];
};
};
} | {
ChainFork: {
chain_author: AgentPubKey;
action_pair: [ActionHashAndSig, ActionHashAndSig];
};
};
```
Expand Down
36 changes: 18 additions & 18 deletions src/hdk/dht-ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,31 +88,31 @@ export interface Warrant {
/**
* @public
*/
export type ChainIntegrityWarrant = {
/**
* Something invalid was authored on a chain.
* When we receive this warrant, we fetch the Action and validate it
* under every applicable DhtOpType.
*/
InvalidChainOp:
| {
export type ChainIntegrityWarrant =
| {
/**
* Something invalid was authored on a chain.
* When we receive this warrant, we fetch the Action and validate it
* under every applicable DhtOpType.
*/
InvalidChainOp: {
/** The author of the action */
action_author: AgentPubKey;
/** The hash of the action to fetch by */
action: ActionHashAndSig;
/** Whether to run app or sys validation */
validation_type: ValidationType;
}
| {
/** Proof of chain fork. */
ChainFork: {
/** Author of the chain which is forked */
chain_author: AgentPubKey;
/** Two actions of the same seq number which prove the fork */
action_pair: [ActionHashAndSig, ActionHashAndSig];
};
};
};
}
| {
/** Proof of chain fork. */
ChainFork: {
/** Author of the chain which is forked */
chain_author: AgentPubKey;
/** Two actions of the same seq number which prove the fork */
action_pair: [ActionHashAndSig, ActionHashAndSig];
};
};

/**
* @public
Expand Down

0 comments on commit b31403f

Please sign in to comment.