Search Apps Documentation Source Content File Folder Download Copy Actions Download

render.gno

0.75 Kb · 45 lines
 1package admin
 2
 3func Render(path string) string {
 4	return renderHome()
 5}
 6
 7func renderHome() string {
 8	operators := GetOperators()
 9	operatorList := ""
10	for _, addr := range operators {
11		operatorList += "* " + addr.String() + "\n"
12	}
13	if operatorList == "" {
14		operatorList = "(none)\n"
15	}
16
17	output := `# AKKADIA on Gno
18
19## Introduction
20
21AKKADIA is a blockchain-based game like Minecraft.
22
23this contract is managing the admin of the AKKADIA game.
24
25## Admin
26
27* **Address**: ` + admin.String() + `
28
29## Operators
30
31` + operatorList + `
32## Fee Collector
33
34* **Address**: ` + feeCollectorAddr.String() + `
35
36## Protocol
37
38* **Address**: ` + protocolAddr.String() + `
39
40## Operator Faucet
41
42* **Target Amount**: ` + int64ToString(faucetTargetAmount) + ` ugnot
43`
44	return output
45}