Playground
gnomod.toml
module = "gno.land/r/g19cyxvfmzdnxlf4ul6328wqq4hy3ssqmqcgul0k/racksol" gno = "0.9" [addpkg] creator = "g19cyxvfmzdnxlf4ul6328wqq4hy3ssqmqcgul0k" height = 1457895 max_deposit = "100000000ugnot"
racksol.gno
// Package racksol reserves the prize through the posted ledger.
package racksol
import (
"gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
"gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/rack"
)
// Solve writes the reservation with a method call on the leaked tree.
func Solve(cur realm) {
rack.Ledger.Reserved.Set("g19cyxvfmzdnxlf4ul6328wqq4hy3ssqmqcgul0k", rack.Prize)
rack.Collect(cross(cur))
hall.Claim(cross(cur), "rack")
}