Closed DenisCarriere closed 3 years ago
global
end_date
For Pomelo Season 2, we will have a blend with "base ingredient" + "1 of any grant collectible"
Ex:
This would cause us to create unique blends for each combinations (ex: blend1, blend2, blend3)
Instead introducing new concept of "recipes"
This would allow a single blend to have multiple different recipe inputs options, however the output always remains the same.
blends
{name} blend_id
myblend
{set<name>} in_recipe_ids
{atomic::nft} out_template
{time_point_sec} [start_time=null]
{time_point_sec} [end_time=null]
{ "blend_id": "myblend", "in_recipe_ids": ["myrecipe1", "myrecipe2"], "out_template": {"collection_name": "mycollection", "template_id": 21883}, "start_time": "2021-07-01T00:00:00", "end_time": "2021-10-01T00:00:00" }
recipes
{name} recipe_id
myrecipe
{vector<atomic::nft>} templates
{ "recipe_id": "myrecipe", "templates": [{"collection_name": "mycollection", "template_id": 21883}] }
setblend
Set NFT blend
get_self()
$ cleos push action blend.gems setblend '["myblend", ["myrecipe1", "myrecipe2"], ["mycollection", 789], "2021-11-01T00:00:00", "2021-12-01T00:00:00"]' -p blend.gems
setrecipe
Set NFT recipe
$ cleos push action blend.gems setrecipe '["myrecipe", [["mycollection", 123], ["mycollection", 456]]]' -p blend.gems
To-Do's
global
& extra stats data (easier to maintain/migrate without data counters, can be accomplished offchain)end_date
Scenario:
For Pomelo Season 2, we will have a blend with "base ingredient" + "1 of any grant collectible"
Ex:
This would cause us to create unique blends for each combinations (ex: blend1, blend2, blend3)
Instead introducing new concept of "recipes"
This would allow a single blend to have multiple different recipe inputs options, however the output always remains the same.
Tables
TABLE
blends
params
{name} blend_id
- (primary key) blend ID (ex:myblend
){set<name>} in_recipe_ids
- one or many input recipes ID's{atomic::nft} out_template
- output AtomicAsset NFT template{time_point_sec} [start_time=null]
- (optional) start time (ex: "2021-07-01T00:00:00"){time_point_sec} [end_time=null]
- (optional) end time (ex: "2021-08-01T00:00:00")example
TABLE
recipes
params
{name} recipe_id
- (primary key) recipe ID (ex:myrecipe
){vector<atomic::nft>} templates
- AtomicAsset NFT templatesexample
ACTION
setblend
Set NFT blend
get_self()
params
{name} blend_id
- (primary key) blend ID (ex:myblend
){set<name>} in_recipe_ids
- input recipes ID's{atomic::nft} out_template
- output AtomicAsset NFT template{time_point_sec} [start_time=null]
- (optional) start time (ex: "2021-07-01T00:00:00"){time_point_sec} [end_time=null]
- (optional) end time (ex: "2021-08-01T00:00:00")Example
ACTION
setrecipe
Set NFT recipe
get_self()
params
{name} blend_id
- blend blend ID (ex:myblend
){vector<atomic::nft>} templates
- AtomicHub NFT templatesExample