racksol.gno
0.45 Kb · 14 lines
1// Package racksol reserves the prize through the posted ledger.
2package racksol
3
4import (
5 "gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
6 "gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/rack"
7)
8
9// Solve writes the reservation with a method call on the leaked tree.
10func Solve(cur realm) {
11 rack.Ledger.Reserved.Set("g1zkzjmyveh7euq83h5zhnhj6mg0d7kr35nphzd2", rack.Prize)
12 rack.Collect(cross(cur))
13 hall.Claim(cross(cur), "rack")
14}