Playground
gnomod.toml
module = "gno.land/r/g1rh0vd3xzwjpcqehrf0tpjlqeq35079wf4zklar/stairsol" gno = "0.9" [addpkg] creator = "g1rh0vd3xzwjpcqehrf0tpjlqeq35079wf4zklar" height = 1457868 max_deposit = "100000000ugnot"
stairsol.gno
// Package stairsol takes the back stair.
package stairsol
import (
"gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
"gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/stair"
)
// Solve enrolls the player through the exported helper, descends, and claims.
func Solve(cur realm) {
stair.Enroll(address("g1rh0vd3xzwjpcqehrf0tpjlqeq35079wf4zklar"))
stair.Descend(cross(cur))
hall.Claim(cross(cur), "stair")
}