dotGems / gems.blend

.gems blend
GNU General Public License v3.0
0 stars 1 forks source link

blend v2.0.0 #4

Closed DenisCarriere closed 3 years ago

DenisCarriere commented 3 years ago

To-Do's

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

example

{
    "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"
}

TABLE recipes

params

example

{
    "recipe_id": "myrecipe",
    "templates": [{"collection_name": "mycollection", "template_id": 21883}]
}

ACTION setblend

Set NFT blend

params

Example

$ cleos push action blend.gems setblend '["myblend", ["myrecipe1", "myrecipe2"], ["mycollection", 789], "2021-11-01T00:00:00", "2021-12-01T00:00:00"]' -p blend.gems

ACTION setrecipe

Set NFT recipe

params

Example

$ cleos push action blend.gems setrecipe '["myrecipe", [["mycollection", 123], ["mycollection", 456]]]' -p blend.gems