Skip to content

Commit

Permalink
Document new value format
Browse files Browse the repository at this point in the history
  • Loading branch information
monoid committed Mar 9, 2023
1 parent cabf985 commit bf6b643
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions crates/air-lib/interpreter-data/src/executed_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,24 @@ pub enum CallResult {
Failed(Rc<CID<ServiceResultAggregate>>),
}

/*
* Previous data scheme was (Scalar as an example, other cases are similar):
*
* Scalar(CID<JValue>) ---<CID>----> JValue
*
* New data scheme is much more sofisticated:
*
* ```
* Scalar(CID<ServiceResultAggregate>) ---+
* |
* +--------------------------+
* |
* +---<CID>----> ServiceResultAggregate:
* value_cid -------------<CID>----> JValue
* tetraplet_cid ---------<CID>----> SecurityTetraplet
* argument_hash
* ```
*/
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum ValueRef {
Expand Down

0 comments on commit bf6b643

Please sign in to comment.