1package boards
2
3import (
4 "regexp"
5
6 "gno.land/p/demo/avl"
7)
8
9//----------------------------------------
10// Realm (package) state
11
12var (
13 gBoards avl.Tree // id -> *Board
14 gBoardsCtr int // increments Board.id
15 gBoardsByName avl.Tree // name -> *Board
16 gDefaultAnonFee = 100000000 // minimum fee required if anonymous
17)
18
19//----------------------------------------
20// Constants
21
22var reName = regexp.MustCompile(`^[a-z]+[_a-z0-9]{2,29}$`)
boards.gno
0.46 Kb ยท 22 lines