-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9f595c
commit 52db607
Showing
20 changed files
with
100 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{"tx":{"msg":[{"@type":"/vm.m_addpkg","creator":"g17ec6vfn5w5lzs9s5cxqjuy3xd9kqpkhg6zd4an","package":{"Name":"test","Path":"gno.land/r/test/test","Files":[{"Name":"package.gno","Body":"package hello\n\nfunc Render(path string) string {\n return \"Hello World!\"\n}\n"}]},"deposit":"1ugnot"}],"fee":{"gas_wanted":"10000000","gas_fee":"50000ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"AsUL/t706SoKrZcCOQLfo+LH20e1Y+mUcsrORgc118XG"},"signature":"wVwzpjsDs4Ej6ohE8A0am4276b/V4HkqU99cPsJwAxllh8uWuATLgWfdA76xyPkeiD1RmUMYz7e584KFdcZAyQ=="}],"memo":"Deployed through play.gno.land"},"blockNum":"332910"} | ||
{"tx":{"msg":[{"@type":"/vm.m_addpkg","creator":"g17ec6vfn5w5lzs9s5cxqjuy3xd9kqpkhg6zd4an","package":{"Name":"test","Path":"gno.land/r/test/test","Files":[{"Name":"package.gno","Body":"package hello\n\nfunc Render(path string) string {\n return \"Hello World!\"\n}\n"}]},"deposit":"1ugnot"}],"fee":{"gas_wanted":"10000000","gas_fee":"50000ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"AsUL/t706SoKrZcCOQLfo+LH20e1Y+mUcsrORgc118XG"},"signature":"+T1p0fL/Nvj0IdQWPgx8KtS1DLdlyqz4jEWnRkv5VmQvb1NCH5H8qn4WKFIzXZIugVo8UP9y9lmzk9kaNoAZjA=="}],"memo":"Deployed through play.gno.land"},"blockNum":"332912"} | ||
{"tx":{"msg":[{"@type":"/vm.m_addpkg","creator":"g17ec6vfn5w5lzs9s5cxqjuy3xd9kqpkhg6zd4an","package":{"Name":"test","Path":"gno.land/r/test/test","Files":[{"Name":"package.gno","Body":"package hello\n\nfunc Render(path string) string {\n return \"Hello World!\"\n}\n"}]},"deposit":"1ugnot"}],"fee":{"gas_wanted":"10000000","gas_fee":"50000ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"AsUL/t706SoKrZcCOQLfo+LH20e1Y+mUcsrORgc118XG"},"signature":"QsA5QRhMqfMNicrHpKq7LYikeVb+JidoR9zYOxfLOWFlypeRc+1+RFZo2yHd8hG3l26XncWGX9CO/qcJCPVA7g=="}],"memo":"Deployed through play.gno.land"},"blockNum":"332914"} | ||
{"tx":{"msg":[{"@type":"/bank.MsgSend","from_address":"g13d7jc32adhc39erm5me38w5v7ej7lpvlnqjk73","to_address":"g1jj2tcade3s9e0kt9pwnsxgd5fsf05zdledatnl","amount":"20000000ugnot"}],"fee":{"gas_wanted":"2000000","gas_fee":"1ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"A/+cjV0/gZkWzMqCul8aP5hC7M3yliIs17uinn/+66uR"},"signature":"TctFkrrAcuYXeoqlUSQUh5hGnt3ofS5NwsveT1IxFDhMDBM0A7uNKwSyT7bACOKivDrJsFafEjXYgIil4OYQeg=="}],"memo":""},"blockNum":"333052"} | ||
{"tx":{"msg":[{"@type":"/vm.m_addpkg","creator":"g1jj2tcade3s9e0kt9pwnsxgd5fsf05zdledatnl","package":{"Name":"TRY_001","Path":"gno.land/r/Gloomajin/TRY_001","Files":[{"Name":"package.gno","Body":"package hello\n\nfunc Render(path string) string {\n return \"Hello World!\"\n}\n"}]},"deposit":"1ugnot"}],"fee":{"gas_wanted":"10000000","gas_fee":"50000ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"AlmzyiMGJ7xsQvXTQkOppJea4lXDy50MRAaH/Xa0+pjO"},"signature":"V1i9VrJK49FiJQn5Or916RPc/0s8OxkkDYMUxB0EoItuPW2H677pYXDUbf7LZtC5Pj4snT56jOGep5jB6JSrmw=="}],"memo":"Deployed through play.gno.land"},"blockNum":"333054"} | ||
{"tx":{"msg":[{"@type":"/vm.m_addpkg","creator":"g1jj2tcade3s9e0kt9pwnsxgd5fsf05zdledatnl","package":{"Name":"TRY_001","Path":"gno.land/r/Gloomajin/TRY_001","Files":[{"Name":"package.gno","Body":"package hello\n\nfunc Render(path string) string {\n return \"Hello World!\"\n}\n"}]},"deposit":"1ugnot"}],"fee":{"gas_wanted":"10000000","gas_fee":"50000ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"AlmzyiMGJ7xsQvXTQkOppJea4lXDy50MRAaH/Xa0+pjO"},"signature":"51tCcQJD7abmaoXPuk4wUIFETFnN64lE81QCGdjBlxZE7T/w8AnqZKXW1xSPu2YPeo4ZhnVEvX6vSmEEv6F70g=="}],"memo":"Deployed through play.gno.land"},"blockNum":"333056"} | ||
{"tx":{"msg":[{"@type":"/vm.m_addpkg","creator":"g1jj2tcade3s9e0kt9pwnsxgd5fsf05zdledatnl","package":{"Name":"TRY_001","Path":"gno.land/r/Gloomajin/TRY_001","Files":[{"Name":"package.gno","Body":"package hello\n\nfunc Render(path string) string {\n return \"Hello World!\"\n}\n"}]},"deposit":"1ugnot"}],"fee":{"gas_wanted":"10000000","gas_fee":"50000ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"AlmzyiMGJ7xsQvXTQkOppJea4lXDy50MRAaH/Xa0+pjO"},"signature":"isgTP4lCHj2MXde4OoURi6tK/2RuFLf53MxNuOib1H54yafDZTv0FeS9Omjc3LAZP+STH7QwsSRiZAG2rDxS4g=="}],"memo":"Deployed through play.gno.land"},"blockNum":"333058"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":""} | ||
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":"1ugnot"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,34 @@ | ||
package hello | ||
package foo | ||
|
||
import ( | ||
"std | ||
"strings | ||
|
||
"gno.land/p/demo/grc/grc20 | ||
"gno.land/p/demo/ufmt | ||
"gno.land/r/demo/users" | ||
) | ||
|
||
var ( | ||
foo *grc20.AdminToken | ||
admin std.address = "g1zakcnjtwj0rs9ejtr5c0gqlnus50xny8frar5n" | ||
) | ||
|
||
func init() { | ||
hyperborea = grc20.NewAdminToken("Hyperborea","HYPERBOREA", 6) | ||
hyperborea.Mint(admin,8888888) // @administrator | ||
} | ||
|
||
// method proxies as public functions. | ||
// | ||
|
||
// getters. | ||
|
||
func TotalSupply() uint64 { | ||
return hyperborea.TotalSupply/() | ||
} | ||
|
||
func BalanceOf(owner users.AddressOrName) uint64 { | ||
balance, err := hyperborea.BalanceOf(owner.Resolve()) | ||
|
||
func Render(path string) string { | ||
return "Hello World!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
package userinvokes | ||
package hello | ||
|
||
import "fmt" | ||
|
||
var user_invokes map[string]int | ||
|
||
func Render(name string) string { | ||
if (!user_invokes) { | ||
user_invokes = make(map[string]int) | ||
} | ||
|
||
|
||
if (!user_invokes[name]) { | ||
user_invokes[name] += 1 | ||
} else { | ||
user_invokes = 1 | ||
} | ||
|
||
return fmt.Println("Total user invokes %d", user_invokes[name]) | ||
func Render(path string) string { | ||
return "Hello World!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
package hello | ||
|
||
func Render(path string) string { | ||
return "Hello World!" | ||
var { | ||
hello string | ||
} | ||
|
||
func SetHello(msg string){ | ||
hello = msg | ||
} | ||
|
||
func GetHello() string { | ||
return hello | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g100xslzk674xuv3s0q8yp44cr63l26z2y4n7ycg","deposit":""} | ||
{"creator":"g1v4e0gv2m6gpqh6mx0auu6x6gmep9yt6cxj6q5f","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package hello | ||
|
||
func Render(path string) string { | ||
return "Hello World!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"creator":"g1jj2tcade3s9e0kt9pwnsxgd5fsf05zdledatnl","deposit":"1ugnot"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1m6cdxuuesrgdu2krq9m5xrrvhx74f56a0w2y3t","deposit":""} | ||
{"creator":"g1j8jwsce3vcry6s8qmmkxuwuhzww0j8396n3rgm","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1ayxdpq5jzqrkedjp57xvdhvf9g6jjwhxt5wn2f","deposit":"1ugnot"} | ||
{"creator":"g1gy76zgcx98rwg4shsm7ket8r3qny9gzdpyjhwm","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1s67msjqmq0jwyzqlm8y578stkxppzyrt6nuhsw","deposit":"1ugnot"} | ||
{"creator":"g1ggcgpqp2jfs2sgsnlcmzscd38jjvgk0y66sl2x","deposit":""} |
14 changes: 11 additions & 3 deletions
14
test3.gno.land/extracted/r/enkianknight/helping/package.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
package hello | ||
package helping | ||
|
||
func Render(path string) string { | ||
return "Hello World!" | ||
var ( | ||
helping string | ||
) | ||
|
||
func SetHelping(msg string) { | ||
helping=msg | ||
} | ||
|
||
func GetHelping() string { | ||
return helping | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g15wmukt79xymnnu6c4de32trnufudqum60yrxu8","deposit":""} | ||
{"creator":"g15wmukt79xymnnu6c4de32trnufudqum60yrxu8","deposit":"1ugnot"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1fsu3z335h5qngf7t3lmakvpmpwg9ae76tqwh7c","deposit":"1ugnot"} | ||
{"creator":"g15wmukt79xymnnu6c4de32trnufudqum60yrxu8","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
package hello | ||
|
||
func Render(path string) string { | ||
return "Hello World!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1c74t34ukg2lq39nxx5cddlkvjtfrm3zchnzvk6","deposit":""} | ||
{"creator":"g1fsu3z335h5qngf7t3lmakvpmpwg9ae76tqwh7c","deposit":"1ugnot"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"latest_block_height": 332483 | ||
"latest_block_height": 333910 | ||
} |