Skip to content

Commit d45004e

Browse files
albttxgithub-actions[bot]
authored andcommitted
add daily report
1 parent b687ea9 commit d45004e

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"averageTPS":96,"blocks":[{"blockNumber":9,"created":"2023-04-19T14:30:42.182881552Z","numTransactions":10,"gasUsed":1590000,"gasLimit":10000000},{"blockNumber":10,"created":"2023-04-19T14:30:56.851804857Z","numTransactions":60,"gasUsed":9637791,"gasLimit":10000000},{"blockNumber":11,"created":"2023-04-19T14:30:57.86886739Z","numTransactions":30,"gasUsed":4820970,"gasLimit":10000000}]}

scripts/p/package.gno

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package runtime
2+
3+
type Language string
4+
5+
const (
6+
French Language = "french"
7+
Italian Language = "italian"
8+
Hindi Language = "hindi"
9+
Bulgarian Language = "bulgarian"
10+
Serbian Language = "serbian"
11+
)
12+
13+
// GetGreeting generates a greeting in
14+
// the specified language
15+
func GetGreeting(language Language) string {
16+
switch language {
17+
case French:
18+
return "Bonjour"
19+
case Italian:
20+
return "Ciao"
21+
case Hindi:
22+
return "नमस्ते"
23+
case Bulgarian:
24+
return "Здравейте"
25+
case Serbian:
26+
return "Здраво"
27+
default:
28+
return "Hello"
29+
}
30+
}

scripts/r/realm.gno

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package runtime
2+
3+
var greeting string
4+
5+
func init() {
6+
greeting = "Hello"
7+
}
8+
9+
// SayHello says hello to the specified name, using
10+
// the saved greeting
11+
func SayHello(name string) string {
12+
return greeting + " " + name + "!"
13+
}

0 commit comments

Comments
 (0)