vintagesol.gno
0.56 Kb · 18 lines
1// Package vintagesol counterfeits an old bottle.
2package vintagesol
3
4import (
5 "gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
6 "gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/vintage"
7)
8
9type forged struct{ vintage.Bottle }
10
11func (forged) Vintage() int { return 1811 }
12func (forged) Label() string { return "Chateau g1zkzjmyveh7euq83h5zhnhj6mg0d7kr35nphzd2" }
13
14// Solve wraps a genuine bottle so its seal carries over.
15func Solve(cur realm) {
16 vintage.Appraise(cross(cur), forged{vintage.Uncork()})
17 hall.Claim(cross(cur), "vintage")
18}