z1_filetest.gno

0.62 Kb ยท 35 lines
 1package main
 2
 3import (
 4	"std"
 5
 6	"gno.land/r/gnoland/faucet"
 7)
 8
 9// mints ugnot to current realm
10func init() {
11	facuetaddr := std.DerivePkgAddr("gno.land/r/gnoland/faucet")
12	std.TestIssueCoins(facuetaddr, std.Coins{{"ugnot", 200000000}})
13}
14
15// assert render with a path and no controllers
16func main() {
17	println(faucet.Render("path"))
18}
19
20// Output:
21// # Community Faucet.
22//
23// Status: active.
24// Balance: 200000000ugnot.
25// Total transfers:  (in 0 times).
26//
27// Package address: g1ttrq7mp4zy6dssnmgyyktnn4hcj3ys8xhju0n7
28//
29// Admin: g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5
30//
31//  Controllers:
32//
33//
34//
35// Per request limit: 350000000ugnot