Skip to content

Commit

Permalink
chore: update test3.gno.land backup
Browse files Browse the repository at this point in the history
  • Loading branch information
gfanton authored and github-actions[bot] committed Apr 5, 2024
1 parent c9f595c commit 52db607
Show file tree
Hide file tree
Showing 20 changed files with 100 additions and 56 deletions.
5 changes: 3 additions & 2 deletions test3.gno.land/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## TXs
```
4835
4842
```

## addpkgs
Expand All @@ -18,6 +18,7 @@
8 "gno.land/r/demo/demo"
8 "gno.land/p/duysyland/duysytoken"
8 "gno.land/p/duysygame/gamedemo"
7 "gno.land/r/test/test"
7 "gno.land/r/demo/GemCoin"
7 "gno.land/p/test/test"
7 "gno.land/p/demo5/premier"
Expand All @@ -41,7 +42,6 @@
5 "gno.land/p/demo/whitelist"
5 "gno.land/p/demo/follow"
4 "gno.land/r/token/ethtoken"
4 "gno.land/r/test/test"
4 "gno.land/r/test/hello"
4 "gno.land/r/leon/poll"
4 "gno.land/r/digix666/mytoken"
Expand Down Expand Up @@ -90,6 +90,7 @@
3 "gno.land/r/demo/BTR"
3 "gno.land/r/demo/Alva"
3 "gno.land/r/asdsd/asdsd"
3 "gno.land/r/Gloomajin/TRY_001"
3 "gno.land/r/Demo/Bad"
3 "gno.land/p/tet/hello"
3 "gno.land/p/stuyk/test"
Expand Down
7 changes: 7 additions & 0 deletions test3.gno.land/backup_0332483-0333910.jsonl
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"}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/p/demo/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":""}
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":"1ugnot"}
35 changes: 32 additions & 3 deletions test3.gno.land/extracted/p/demo/hyperborea/package.gno
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!"
}
21 changes: 3 additions & 18 deletions test3.gno.land/extracted/p/stuyk/test/package.gno
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!"
}
12 changes: 10 additions & 2 deletions test3.gno.land/extracted/p/test2/hello/package.gno
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
}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/p/test2/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g100xslzk674xuv3s0q8yp44cr63l26z2y4n7ycg","deposit":""}
{"creator":"g1v4e0gv2m6gpqh6mx0auu6x6gmep9yt6cxj6q5f","deposit":""}
5 changes: 5 additions & 0 deletions test3.gno.land/extracted/r/Gloomajin/TRY_001/package.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package hello

func Render(path string) string {
return "Hello World!"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"creator":"g1jj2tcade3s9e0kt9pwnsxgd5fsf05zdledatnl","deposit":"1ugnot"}
30 changes: 15 additions & 15 deletions test3.gno.land/extracted/r/demo/demo/GRC20.gno
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package frenchie
package pup

import (
"std"
Expand All @@ -10,13 +10,13 @@ import (
)

var (
frenchie *grc20.AdminToken
admin std.Address = "g1m6cdxuuesrgdu2krq9m5xrrvhx74f56a0w2y3t"
pup *grc20.AdminToken
admin std.Address = "g1j8jwsce3vcry6s8qmmkxuwuhzww0j8396n3rgm"
)

func init() {
frenchie = grc20.NewAdminToken("frenchieToken", "frenchie", 6)
frenchie.Mint(admin, 1000000000) // @administrator
pup = grc20.NewAdminToken("pupToken", "pup", 6)
pup.Mint(admin, 1000000000) // @administrator
}

// method proxies as public functions.
Expand All @@ -25,19 +25,19 @@ func init() {
// getters.

func TotalSupply() uint64 {
return frenchie.TotalSupply()
return pup.TotalSupply()
}

func BalanceOf(owner users.AddressOrName) uint64 {
balance, err := frenchie.BalanceOf(owner.Resolve())
balance, err := pup.BalanceOf(owner.Resolve())
if err != nil {
panic(err)
}
return balance
}

func Allowance(owner, spender users.AddressOrName) uint64 {
allowance, err := frenchie.Allowance(owner.Resolve(), spender.Resolve())
allowance, err := pup.Allowance(owner.Resolve(), spender.Resolve())
if err != nil {
panic(err)
}
Expand All @@ -48,31 +48,31 @@ func Allowance(owner, spender users.AddressOrName) uint64 {

func Transfer(to users.AddressOrName, amount uint64) {
caller := std.GetOrigCaller()
frenchie.Transfer(caller, to.Resolve(), amount)
pup.Transfer(caller, to.Resolve(), amount)
}

func Approve(spender users.AddressOrName, amount uint64) {
caller := std.GetOrigCaller()
frenchie.Approve(caller, spender.Resolve(), amount)
pup.Approve(caller, spender.Resolve(), amount)
}

func TransferFrom(from, to users.AddressOrName, amount uint64) {
caller := std.GetOrigCaller()
frenchie.TransferFrom(caller, from.Resolve(), to.Resolve(), amount)
pup.TransferFrom(caller, from.Resolve(), to.Resolve(), amount)
}

// administration.

func Mint(address users.AddressOrName, amount uint64) {
caller := std.GetOrigCaller()
assertIsAdmin(caller)
frenchie.Mint(address.Resolve(), amount)
pup.Mint(address.Resolve(), amount)
}

func Burn(address users.AddressOrName, amount uint64) {
caller := std.GetOrigCaller()
assertIsAdmin(caller)
frenchie.Burn(address.Resolve(), amount)
pup.Burn(address.Resolve(), amount)
}

// render.
Expand All @@ -84,10 +84,10 @@ func Render(path string) string {

switch {
case path == "":
return frenchie.RenderHome()
return pup.RenderHome()
case c == 2 && parts[0] == "balance":
owner := users.AddressOrName(parts[1])
balance, _ := frenchie.BalanceOf(owner.Resolve())
balance, _ := pup.BalanceOf(owner.Resolve())
return ufmt.Sprintf("%d\n", balance)
default:
return "404\n"
Expand Down
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/demo/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1m6cdxuuesrgdu2krq9m5xrrvhx74f56a0w2y3t","deposit":""}
{"creator":"g1j8jwsce3vcry6s8qmmkxuwuhzww0j8396n3rgm","deposit":""}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1ayxdpq5jzqrkedjp57xvdhvf9g6jjwhxt5wn2f","deposit":"1ugnot"}
{"creator":"g1gy76zgcx98rwg4shsm7ket8r3qny9gzdpyjhwm","deposit":""}
6 changes: 3 additions & 3 deletions test3.gno.land/extracted/r/demo/yas/GRC20.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (

var (
yas *grc20.AdminToken
admin std.Address = "g1s67msjqmq0jwyzqlm8y578stkxppzyrt6nuhsw"
admin std.Address = "g1ggcgpqp2jfs2sgsnlcmzscd38jjvgk0y66sl2x"
)

func init() {
yas = grc20.NewAdminToken("YasToken", "YAS", 6)
yas = grc20.NewAdminToken("yasToken", "yas", 6)
yas.Mint(admin, 1000000000) // @administrator
}

Expand Down Expand Up @@ -98,4 +98,4 @@ func assertIsAdmin(address std.Address) {
if address != admin {
panic("restricted access")
}
}
}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/yas/pkg_metadata.json
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 test3.gno.land/extracted/r/enkianknight/helping/package.gno
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
}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/hello/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g15wmukt79xymnnu6c4de32trnufudqum60yrxu8","deposit":""}
{"creator":"g15wmukt79xymnnu6c4de32trnufudqum60yrxu8","deposit":"1ugnot"}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/test/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1fsu3z335h5qngf7t3lmakvpmpwg9ae76tqwh7c","deposit":"1ugnot"}
{"creator":"g15wmukt79xymnnu6c4de32trnufudqum60yrxu8","deposit":""}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/test/test/package.gno
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!"
Expand Down
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/test/test/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1c74t34ukg2lq39nxx5cddlkvjtfrm3zchnzvk6","deposit":""}
{"creator":"g1fsu3z335h5qngf7t3lmakvpmpwg9ae76tqwh7c","deposit":"1ugnot"}
2 changes: 1 addition & 1 deletion test3.gno.land/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"latest_block_height": 332483
"latest_block_height": 333910
}

0 comments on commit 52db607

Please sign in to comment.