Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

fishlive package

Overview

Package fishlive is the person-versus-person sea. CommitMint pays 150 GNOT and stores only the caller and the commit height. RevealMint, once the chain is at least two blocks later, rolls rarity and trait from sha256 of the caller, the commit height, that fixed height plus two, and the id. Waiting longer does not change the roll. The player does not pass trait, size, or rarity. Swim stays off chain. Register locks at least 10 GNOT. Leave returns it after 5 seconds. Settle pays one covered stake. There is no machine fish and no FISH draw. A seated wallet can settle any other seated fish. The realm does not replay the bite. The five older commons stay on shoal/fish. This package does not move them. fishlive-1.

Function

Roll

func Roll(caller address, commitH int64, entropyH int64, id int) (rarity string, trait string, bite int, hp int, speed int)
Ask AI Claude ChatGPT

Roll is the reveal hash. entropyH must be commitH+2. Trait adds 12%, half up.

Params

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/g1n4pl5uc4yt5r96m9w6fmdznx3x0jyg8l6arhmt/fishlive.Roll(,,,)"

Result