SetRecipeEvent
untyped stringValue
"SetRecipe"
DeleteRecipeEvent
untyped stringValue
"DeleteRecipe"
DeleteRecipesEvent
untyped stringValue
"DeleteRecipes"
SetListLimitEvent
untyped stringValue
"SetListLimit"
SetCraftFeeEvent
untyped stringValue
"SetCraftFee"
CraftEvent
untyped stringValue
"Craft"
recipes
*v0.BPTree- OID
- 05ce2a…386a:46
recipes details
listLimit
intValue
100
craftFee
int64Value
1000000
init.9
func()- OID
- 05ce2a…386a:8
init.9 details
resetCraftState
func()- OID
- 05ce2a…386a:10
resetCraftState details
SetRecipe
func(recipe string, itemID uint32)SetRecipe stores the item definition ID produced by a canonical recipe.
- OID
- 05ce2a…386a:11
SetRecipe details
SetRecipes
func(recipesCSV string, itemIDsCSV string)SetRecipes stores up to 100 canonical recipe and item ID pairs in one transaction.
- OID
- 05ce2a…386a:12
SetRecipes details
setRecipe
func(canonicalRecipe string, itemID uint32)- OID
- 05ce2a…386a:13
setRecipe details
DeleteRecipe
func(recipe string)- OID
- 05ce2a…386a:14
DeleteRecipe details
DeleteRecipes
func(recipesCSV string)- OID
- 05ce2a…386a:15
DeleteRecipes details
deleteRecipe
func(canonicalRecipe string)- OID
- 05ce2a…386a:16
deleteRecipe details
HasRecipe
func(recipe string) bool- OID
- 05ce2a…386a:17
HasRecipe details
GetRecipe
func(recipe string) uint32- OID
- 05ce2a…386a:18
GetRecipe details
GetRecipeCount
func() int- OID
- 05ce2a…386a:19
GetRecipeCount details
ListRecipes
func(page int, count int) []map[string]string- OID
- 05ce2a…386a:20
ListRecipes details
SetListLimit
func(limit int)- OID
- 05ce2a…386a:21
SetListLimit details
GetListLimit
func() int- OID
- 05ce2a…386a:22
GetListLimit details
SetCraftFee
func(fee int64)- OID
- 05ce2a…386a:23
SetCraftFee details
GetCraftFee
func() int64- OID
- 05ce2a…386a:24
GetCraftFee details
Craft
func(recipe string) uint64Craft burns a canonical recipe and mints the next GRC721 equipment token.
- OID
- 05ce2a…386a:25
Craft details
mustCanonicalRecipe
func(recipe string) string- OID
- 05ce2a…386a:26
mustCanonicalRecipe details
mustGetRecipeItemID
func(recipe string) uint32- OID
- 05ce2a…386a:27
mustGetRecipeItemID details
assertCraftNoCoins
func()- OID
- 05ce2a…386a:28
assertCraftNoCoins details
assertExactUgnotPayment
func(expected int64)- OID
- 05ce2a…386a:29
assertExactUgnotPayment details
Render
func(iURL string) string- OID
- 05ce2a…386a:30
Render details
renderRecipeHome
func() string- OID
- 05ce2a…386a:32
renderRecipeHome details
renderRecipeList
func(rawPage string) string- OID
- 05ce2a…386a:33
renderRecipeList details
renderRecipeResult
func(recipe string) string- OID
- 05ce2a…386a:34
renderRecipeResult details
renderRecipeError
func(message string) string- OID
- 05ce2a…386a:35
renderRecipeError details
formatRecipeCode
func(recipe string) stringRecipes use | and - as syntax. A code span keeps those characters literal so gnoweb does not show backslash escapes.
- OID
- 05ce2a…386a:36
formatRecipeCode details
recipeBatchLimit
untyped bigintValue
(100 <untyped> bigint)
maxRecipeIngredients
untyped bigintValue
(16 <untyped> bigint)
defaultRecipeListLimit
untyped bigintValue
(100 <untyped> bigint)
defaultCraftFee
int64Value
1000000
craftIngredient
typeValue
craft.craftIngredient
mustParseRecipeCSV
func(recipesCSV string, itemIDsCSV string) ([]string, []uint32)- OID
- 05ce2a…386a:37
mustParseRecipeCSV details
mustParseRecipeKeyCSV
func(recipesCSV string) []string- OID
- 05ce2a…386a:39
mustParseRecipeKeyCSV details
mustParseRecipe
func(recipe string) (string, []craft.craftIngredient)- OID
- 05ce2a…386a:40
mustParseRecipe details
parseRecipe
func(recipe string) (string, []craft.craftIngredient, string)A valid recipe is "\<4-hex occupancy>|\<ingredient>|...". Occupancy bits choose slots 0-15 in order; each ingredient is "tokenId:amount" or "slot:tokenId:amount". Example: "0013|iron:1|iron:2|stick:2" (bits 0,1,4) canonicalizes to "0013|0:iron:1|1:iron:2|4:stick:2".
- OID
- 05ce2a…386a:41
parseRecipe details
parseRecipeIngredient
func(entry string, expectedSlot uint) (craft.craftIngredient, string)- OID
- 05ce2a…386a:42
parseRecipeIngredient details
occupiedSlots
func(occupancy uint16) []uint- OID
- 05ce2a…386a:43
occupiedSlots details
formatOccupancy
func(occupancy uint16) string- OID
- 05ce2a…386a:44
formatOccupancy details
assertRecipeListPageCount
func(page int, count int)- OID
- 05ce2a…386a:45