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 Jul 4, 2024
1 parent 5b502d5 commit cd4c008
Show file tree
Hide file tree
Showing 41 changed files with 802 additions and 106 deletions.
19 changes: 16 additions & 3 deletions test3.gno.land/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## TXs
```
8967
8997
```

## addpkgs
Expand Down Expand Up @@ -86,6 +86,7 @@
4 "gno.land/p/asd/asdad"
3 "gno.land/r/youtubers/cryptopunkstar"
3 "gno.land/r/x1unix/feedback/v3"
3 "gno.land/r/wyhaines/gnocial10"
3 "gno.land/r/ttt123/hello"
3 "gno.land/r/test12/poll_v1"
3 "gno.land/r/test1/hello"
Expand Down Expand Up @@ -155,6 +156,7 @@
2 "gno.land/r/x1unix/feedback/v5"
2 "gno.land/r/x1unix/feedback/v11"
2 "gno.land/r/x1unix/feedback/v10"
2 "gno.land/r/wyhaines/gnocial5"
2 "gno.land/r/wyhaines/gnocial2"
2 "gno.land/r/whatevertest/whatever"
2 "gno.land/r/wgnot"
Expand Down Expand Up @@ -368,7 +370,12 @@
1 "gno.land/r/x1unix/feedback/v7"
1 "gno.land/r/x1unix/feedback/v6"
1 "gno.land/r/x1unix/feedback/v4"
1 "gno.land/r/wyhaines/gnocial8"
1 "gno.land/r/wyhaines/gnocial7"
1 "gno.land/r/wyhaines/gnocial6"
1 "gno.land/r/wyhaines/gnocial3"
1 "gno.land/r/wyhaines/gnocial12"
1 "gno.land/r/wyhaines/gnocial11"
1 "gno.land/r/whitelist/DIGIX666"
1 "gno.land/r/vadymspace/hello"
1 "gno.land/r/tryagain/mood2"
Expand Down Expand Up @@ -1475,7 +1482,7 @@
105 "gno.land/r/demo/tong"
100 "gno.land/r/boom/boom"
87 "gno.land/r/duysygame/test22"
83 "gno.land/r/feedback/simplefeedback"
84 "gno.land/r/feedback/simplefeedback"
82 "gno.land/r/demo/boards"
65 "gno.land/r/duysygame/test21"
60 "gno.land/r/gnostudio/gnoyourdate"
Expand Down Expand Up @@ -1524,6 +1531,7 @@
5 "gno.land/p/demo/realmpackagetest"
4 "gno.land/r/x1unix/sf/v3"
4 "gno.land/r/x1unix/feedback/v11"
4 "gno.land/r/wyhaines/gnocial12"
4 "gno.land/r/ttt123/hello"
4 "gno.land/r/test98/hello"
4 "gno.land/r/test5/tictacgno"
Expand Down Expand Up @@ -1557,6 +1565,9 @@
2 "gno.land/r/x1unix/sf/v4"
2 "gno.land/r/x1unix/sf/v1"
2 "gno.land/r/x1unix/schematest_6"
2 "gno.land/r/wyhaines/gnocial8"
2 "gno.land/r/wyhaines/gnocial4"
2 "gno.land/r/wyhaines/gnocial10"
2 "gno.land/r/varmeta/vmt721"
2 "gno.land/r/vadymspace/hello"
2 "gno.land/r/test7/poll_v1"
Expand Down Expand Up @@ -1593,7 +1604,9 @@
1 "gno.land/r/x1unix/sf/v2"
1 "gno.land/r/x1unix/feedback/v9"
1 "gno.land/r/x1unix/feedback/v5"
1 "gno.land/r/wyhaines/gnocial4"
1 "gno.land/r/wyhaines/gnocial7"
1 "gno.land/r/wyhaines/gnocial6"
1 "gno.land/r/wyhaines/gnocial5"
1 "gno.land/r/wyhaines/gnocial3"
1 "gno.land/r/wyhaines/gnocial2"
1 "gno.land/r/wyhaines/gnocial"
Expand Down
30 changes: 30 additions & 0 deletions test3.gno.land/backup_0466422-0467884.jsonl

Large diffs are not rendered by default.

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":"1ugnot"}
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":""}
16 changes: 13 additions & 3 deletions test3.gno.land/extracted/p/demo2/cryptopunkstar/package.gno
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
package hello
// xryptopunkstar

func Render(path string) string {
return "Hello World!"
package cryptopunkstar


var MsgOfPkg = "this is a public NFTs"
var msgOfPkg = "this is a private NFTS"

func GetPrivVar() string {
return msgOfPkg
}

func Gnome(name string) string {
return "greetings " + name + ", welcome to the gnoland"
}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/p/hello/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1gy76zgcx98rwg4shsm7ket8r3qny9gzdpyjhwm","deposit":""}
{"creator":"g1uf8u5jf2m9l80g0zsfq7tufl3qufqc4393jtkl","deposit":""}
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: 2 additions & 10 deletions test3.gno.land/extracted/p/test2/hello/package.gno
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
package hello

var {
hello string
}

func SetHello(msg string){
hello = msg
}

func GetHello() string {
return hello
func Render(path string) string {
return "Hello World!"
}
12 changes: 3 additions & 9 deletions test3.gno.land/extracted/r/bluehoneybadger/person/person.gno
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
package person

// Importing `strconv` to be able to cast the age to string so it can be concatenated
import "strconv"

var (
myName = "John Smith"
myAge = 42
myAddress = "123 Main Street"
)

func Render(path string) string {
// You could also use "gno.land/p/demo/ufmt" package, check `ufmt.Sprintf()`
// See: https://test3.gno.land/p/demo/ufmt/ufmt.gno
// It works like standard Go's "Sprintf" but it only support "%s" and "%d" it think
return "My name is: " + myName + "my Age is: " + strconv.Itoa(myAge) + "& my Address is: " + myAddress
function Render(path string) string {
return "My name is: " + myName "my Age is: " + myAge "& my Address is: " myAddress
}

func updateAddress(NewAddress string) string {
function UpdateAdddress(NewAddress string) string {
myAddress = NewAddress
return "Your address has been updated"
}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/apple/GRC20.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

var (
apple *grc20.AdminToken
admin std.Address = "g1hqzeju0p0eup9rgxa0pxvyc0y7wnzjrdvppsy5"
admin std.Address = "g1sycj68ur0n7xytglx0me3f207ktudm80aqpysm"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/apple/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1098kpwkwv3r08cat9ssucrq4mznxyv855jgqvx","deposit":""}
{"creator":"g1sycj68ur0n7xytglx0me3f207ktudm80aqpysm","deposit":""}
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":"g10y2y4l4g7cx23tkl9jy5u638lw5aykvx7upqaz","deposit":"1ugnot"}
{"creator":"g1j8jwsce3vcry6s8qmmkxuwuhzww0j8396n3rgm","deposit":""}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/gggg/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g14qvahvnnllzwl9ehn3mkph248uapsehwgfe4pt","deposit":"1ugnot"}
{"creator":"g1ccv99f5wjrd2nzkw7md9kkdy7h4yncstzua7ka","deposit":"1ugnot"}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/harambe/GRC20.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

var (
harambe *grc20.AdminToken
admin std.Address = "g1lk45335udge6nefk733e852rmexrc94m52tdt9"
admin std.Address = "g1h6n749m920lvaef2qrpsa2vmssr4sq60ykqks3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/harambe/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1lk45335udge6nefk733e852rmexrc94m52tdt9","deposit":""}
{"creator":"g1h6n749m920lvaef2qrpsa2vmssr4sq60ykqks3","deposit":""}
18 changes: 11 additions & 7 deletions test3.gno.land/extracted/r/demo/hello/hello.gno
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
package main
package hello

import (
"fmt"
)

func main() {
fmt.Println("Hello, world!")
func Hello() string {
return "Hello() called"
}

// func Render() string {
// return "Render() called"
// }

func Render(path string) string {
return "Render(path string) called with\n# " + path
}
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":"g1gy76zgcx98rwg4shsm7ket8r3qny9gzdpyjhwm","deposit":""}
{"creator":"g1ndzpczjr2rzrchtkm3tsut2xjfn50mlgax2v77","deposit":"1ugnot"}
4 changes: 4 additions & 0 deletions test3.gno.land/extracted/r/demo/test/package.gno
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
package hello

func Render(path string) string {
return "Hello World!"
}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/test/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1eussptehceyrtzw69kek72qy8d40rjrf654rrt","deposit":""}
{"creator":"g1t3hhyrrugmk0ujvc90jh36u8kw03fdj23skrmy","deposit":"1ugnot"}
Loading

0 comments on commit cd4c008

Please sign in to comment.