Skip to content

Commit

Permalink
update span-and-move example
Browse files Browse the repository at this point in the history
  • Loading branch information
remybar committed Apr 14, 2024
1 parent c24b82f commit dfe5458
Show file tree
Hide file tree
Showing 11 changed files with 224 additions and 270 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,58 @@
}
]
},
{
"type": "enum",
"name": "dojo::model::FieldLayout",
"variants": [
{
"name": "Fixed",
"type": "core::array::Span::<core::integer::u8>"
},
{
"name": "Dynamic",
"type": "()"
}
]
},
{
"type": "struct",
"name": "dojo::model::FieldData",
"members": [
{
"name": "selector",
"type": "core::felt252"
},
{
"name": "field_layout",
"type": "dojo::model::FieldLayout"
}
]
},
{
"type": "struct",
"name": "core::array::Span::<dojo::model::FieldData>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<dojo::model::FieldData>"
}
]
},
{
"type": "enum",
"name": "dojo::model::ModelLayout",
"variants": [
{
"name": "Serial",
"type": "core::array::Span::<core::integer::u8>"
},
{
"name": "Hash",
"type": "core::array::Span::<dojo::model::FieldData>"
}
]
},
{
"type": "enum",
"name": "core::bool",
Expand Down Expand Up @@ -193,7 +245,7 @@
},
{
"name": "layout",
"type": "core::array::Span::<core::integer::u8>"
"type": "dojo::model::ModelLayout"
}
],
"outputs": [
Expand Down Expand Up @@ -221,7 +273,7 @@
},
{
"name": "layout",
"type": "core::array::Span::<core::integer::u8>"
"type": "dojo::model::ModelLayout"
}
],
"outputs": [],
Expand Down Expand Up @@ -252,7 +304,7 @@
},
{
"name": "layout",
"type": "core::array::Span::<core::integer::u8>"
"type": "dojo::model::ModelLayout"
}
],
"outputs": [],
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,58 @@
}
]
},
{
"type": "enum",
"name": "dojo::model::FieldLayout",
"variants": [
{
"name": "Fixed",
"type": "core::array::Span::<core::integer::u8>"
},
{
"name": "Dynamic",
"type": "()"
}
]
},
{
"type": "struct",
"name": "dojo::model::FieldData",
"members": [
{
"name": "selector",
"type": "core::felt252"
},
{
"name": "field_layout",
"type": "dojo::model::FieldLayout"
}
]
},
{
"type": "struct",
"name": "core::array::Span::<dojo::model::FieldData>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<dojo::model::FieldData>"
}
]
},
{
"type": "enum",
"name": "dojo::model::ModelLayout",
"variants": [
{
"name": "Serial",
"type": "core::array::Span::<core::integer::u8>"
},
{
"name": "Hash",
"type": "core::array::Span::<dojo::model::FieldData>"
}
]
},
{
"type": "struct",
"name": "core::array::Span::<core::felt252>",
Expand Down Expand Up @@ -189,7 +241,7 @@
"inputs": [],
"outputs": [
{
"type": "core::array::Span::<core::integer::u8>"
"type": "dojo::model::ModelLayout"
}
],
"state_mutability": "view"
Expand Down
Loading

0 comments on commit dfe5458

Please sign in to comment.