Width
untyped bigintValue
(1250 <untyped> bigint)
Height
untyped bigintValue
(800 <untyped> bigint)
DefaultMaxBatch
untyped bigintValue
(5000 <untyped> bigint)
HardMaxBatch
untyped bigintValue
(20000 <untyped> bigint)
DefaultPrice
int64Value
50000
DefaultAdmin
untyped stringValue
"g19t6f4f4ptt3m949jznalfsx2h8aj696llul0nj"
Denom
untyped stringValue
"ugnot"
board
*v0.Canvas- OID
- 0484aa…ac53:4
board details
price
int64Value
50000
maxBatch
intValue
5000
owner
.uverse.addressValue
<gnolang.StringValue>
revenue
int64// total ugnot ever paid for pixels
Value
0
paints
int64// number of successful Paint/PaintBatch calls
Value
0
version
int64Value
0
rowVersion
[]int64- OID
- 0484aa…ac53:14
rowVersion details
Paint
func(x int, y int, color int)Paint colors one pixel. Send exactly Price() ugnot (nothing for the admin).
- OID
- 0484aa…ac53:15
Paint details
PaintBatch
func(pixels string)PaintBatch colors up to MaxBatchSize() pixels in one call. The argument is "x,y,color;x,y,color;...". Send exactly Price() \* count ugnot (nothing for the admin).
- OID
- 0484aa…ac53:17
PaintBatch details
paint
func(px []v0.Pixel, rlm .uverse.realm)paint takes the realm as its LAST parameter on purpose: a realm first parameter would make it a crossing function and Previous() would then be this realm instead of the user.
- OID
- 0484aa…ac53:18
paint details
sentUgnot
func(coins chain.Coins) int64sentUgnot returns the ugnot amount in coins and rejects any other denom, so a caller cannot pay with something the realm does not price.
- OID
- 0484aa…ac53:19
sentUgnot details
assertOwner
func(int, rlm .uverse.realm)assertOwner panics unless the verified caller behind rlm is the owner. The realm is deliberately not the first parameter (see paint); the leading blank int is the same idiom gno.land/p/nt/ownable uses.
- OID
- 0484aa…ac53:20
assertOwner details
SetPrice
func(ugnot int64)SetPrice changes the price per pixel, in ugnot. Zero makes painting free for everyone.
- OID
- 0484aa…ac53:21
SetPrice details
SetMaxBatch
func(n int)SetMaxBatch changes the maximum pixels per PaintBatch call, 1..HardMaxBatch.
- OID
- 0484aa…ac53:22
SetMaxBatch details
Withdraw
func(to .uverse.address, amount int64)Withdraw sends amount ugnot held by the realm to the given address. Payments are forwarded on arrival, so this only matters for coins sent to the realm outside of a paint call.
- OID
- 0484aa…ac53:23
Withdraw details
TransferOwnership
func(newOwner .uverse.address)TransferOwnership hands the admin role (payments, free painting and the owner controls) to newOwner.
- OID
- 0484aa…ac53:24
TransferOwnership details
GetWidth
func() int- OID
- 0484aa…ac53:25
GetWidth details
GetHeight
func() int- OID
- 0484aa…ac53:26
GetHeight details
Price
func() int64- OID
- 0484aa…ac53:27
Price details
Owner
func() .uverse.address- OID
- 0484aa…ac53:28
Owner details
Painted
func() int- OID
- 0484aa…ac53:29
Painted details
Revenue
func() int64- OID
- 0484aa…ac53:30
Revenue details
Paints
func() int64- OID
- 0484aa…ac53:31
Paints details
MaxBatchSize
func() int- OID
- 0484aa…ac53:32
MaxBatchSize details
Pixel
func(x int, y int) intPixel returns the color index at (x, y); 0 means never painted.
- OID
- 0484aa…ac53:33
Pixel details
Rows
func(from int, to int) stringRows returns rows \[from, to) as one hex digit per pixel, Width digits per row, with no separators. Clients page through the grid with it.
- OID
- 0484aa…ac53:34
Rows details
Version
func() int64Version is the number of successful paint calls so far. Clients remember it and ask DirtyRows for what changed since.
- OID
- 0484aa…ac53:35
Version details
DirtyRows
func(since int64) stringDirtyRows lists the rows painted after version \`since\`, as "y,y,y" in ascending order. DirtyRows(0) is every row that was ever painted, which is all a fresh client needs to load: the others are blank.
- OID
- 0484aa…ac53:36
DirtyRows details
Palette
func() stringPalette returns the 16 palette colors as comma-separated CSS hex values, index 0 being the blank color.
- OID
- 0484aa…ac53:37
Palette details
Render
func(string) stringRender shows the game stats on gnoweb. The path is ignored.
- OID
- 0484aa…ac53:38
Render details
Realm
untyped stringRealm is this realm's gnoweb path.
Value
"/r/g19t6f4f4ptt3m949jznalfsx2h8aj696llul0nj/million/v0"