You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Cairo contract that checks that a construction has a certain number of characteristics, like a "builder check", by passing the construction as calldata and checking it matches certain characteristics.
This would allow building competitions with on-chain governance: ensure that all the constructions submitted have a certain set of characteristics.
Some ideas:
Only on one axis
Nothing floats
Only use certain colors
Only in 2D
Only a certain number of briqs
Must match a shape
Only different briq colors
Pixel art according to Phi's rules
No more than 3 aligned briqs on the same axis
No more than one briq can touch the ground
No contiguous briqs
The briq constructions have the following structure, formatted in a json
"pos": [
-6,
1,
-15
],
"data": {
"material": "0x1",
"color": "#6a6a6a"
}
}```
Any of these characteristics (material, position, color) can be used to build a rule.
###Acceptance criteria
GIVEN I have a construction that matches rule A
WHEN I mint my construction and check it against rule A
THEN the rule contract ascertains that the construction indeed has the correct characteristics.
###Other
The text was updated successfully, but these errors were encountered:
Overview
Create a Cairo contract that checks that a construction has a certain number of characteristics, like a "builder check", by passing the construction as calldata and checking it matches certain characteristics.
This would allow building competitions with on-chain governance: ensure that all the constructions submitted have a certain set of characteristics.
Some ideas:
The briq constructions have the following structure, formatted in a json
The text was updated successfully, but these errors were encountered: