diff --git a/reports/supernova/2023-04-19_report.json b/reports/supernova/2023-04-19_report.json new file mode 100644 index 0000000..6dcbbb1 --- /dev/null +++ b/reports/supernova/2023-04-19_report.json @@ -0,0 +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}]} \ No newline at end of file diff --git a/scripts/p/package.gno b/scripts/p/package.gno new file mode 100644 index 0000000..ca3d716 --- /dev/null +++ b/scripts/p/package.gno @@ -0,0 +1,30 @@ +package runtime + +type Language string + +const ( + French Language = "french" + Italian Language = "italian" + Hindi Language = "hindi" + Bulgarian Language = "bulgarian" + Serbian Language = "serbian" +) + +// GetGreeting generates a greeting in +// the specified language +func GetGreeting(language Language) string { + switch language { + case French: + return "Bonjour" + case Italian: + return "Ciao" + case Hindi: + return "नमस्ते" + case Bulgarian: + return "Здравейте" + case Serbian: + return "Здраво" + default: + return "Hello" + } +} diff --git a/scripts/r/realm.gno b/scripts/r/realm.gno new file mode 100644 index 0000000..6b0ebca --- /dev/null +++ b/scripts/r/realm.gno @@ -0,0 +1,13 @@ +package runtime + +var greeting string + +func init() { + greeting = "Hello" +} + +// SayHello says hello to the specified name, using +// the saved greeting +func SayHello(name string) string { + return greeting + " " + name + "!" +}