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 Mar 23, 2024
1 parent a1a7ecd commit f4e3039
Show file tree
Hide file tree
Showing 47 changed files with 576 additions and 124 deletions.
16 changes: 14 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
```
4699
4733
```

## addpkgs
Expand All @@ -26,6 +26,7 @@
6 "gno.land/r/demo/kazainft"
6 "gno.land/p/demo2/greeting"
6 "gno.land/p/demo/teritori/follow"
5 "gno.land/r/tokenno/tokenno"
5 "gno.land/r/hello/hello"
5 "gno.land/r/enki/providing"
5 "gno.land/r/devx8/hello"
Expand All @@ -34,6 +35,8 @@
5 "gno.land/r/demo/hyperborea"
5 "gno.land/r/demo/hello"
5 "gno.land/r/demo/follow"
5 "gno.land/r/defianon/test"
5 "gno.land/r/32/bv"
5 "gno.land/p/test10/hello"
5 "gno.land/p/demo/whitelist"
5 "gno.land/p/demo/follow"
Expand Down Expand Up @@ -106,6 +109,8 @@
3 "gno.land/p/Alva/Alva"
2 "gno.land/r/whatevertest/whatever"
2 "gno.land/r/wgnot"
2 "gno.land/r/tokenpl/tokenpl"
2 "gno.land/r/tokenPop/tokenPop"
2 "gno.land/r/token/omen"
2 "gno.land/r/test42/hello42"
2 "gno.land/r/test14/hello"
Expand All @@ -116,6 +121,7 @@
2 "gno.land/r/stuyk/userinvokes4"
2 "gno.land/r/rozaser/blackpink"
2 "gno.land/r/rozaser/Blackpink"
2 "gno.land/r/planb/helloworld"
2 "gno.land/r/pengu/whitelistfactory"
2 "gno.land/r/pengu/whitelist"
2 "gno.land/r/maleknft/maleknfttoken"
Expand Down Expand Up @@ -287,6 +293,7 @@
1 "gno.land/r/rawr/counter"
1 "gno.land/r/qwe"
1 "gno.land/r/projects/token"
1 "gno.land/r/planb/hello"
1 "gno.land/r/nft/kazainft"
1 "gno.land/r/nastyqueen/hello"
1 "gno.land/r/namespace/seto"
Expand Down Expand Up @@ -317,6 +324,7 @@
1 "gno.land/r/kryzzz/hello"
1 "gno.land/r/kennethy/hello"
1 "gno.land/r/kedover/kedover"
1 "gno.land/r/ju/oiu"
1 "gno.land/r/jon/greeting"
1 "gno.land/r/jhkjlhjkhlk/1"
1 "gno.land/r/jetrix/hello"
Expand Down Expand Up @@ -807,6 +815,10 @@
1 "gno.land/r/demmo2/hello"
1 "gno.land/r/delo/test"
1 "gno.land/r/delo/counter"
1 "gno.land/r/defianon/testing"
1 "gno.land/r/defianon/posted"
1 "gno.land/r/defianon/net3"
1 "gno.land/r/defianon/firsttry"
1 "gno.land/r/cvcvcv/hello"
1 "gno.land/r/clockwork/tictactoe1"
1 "gno.land/r/chaddi/chaddi"
Expand Down Expand Up @@ -1123,7 +1135,7 @@
53 "gno.land/r/gnoland/blog"
30 "gno.land/r/boom/boom"
26 "gno.land/r/demo/foo20"
22 "gno.land/r/test10/poll"
23 "gno.land/r/test10/poll"
21 "gno.land/r/duysygame/test19"
20 "gno.land/r/duysyland/erc20"
19 "gno.land/r/position"
Expand Down
34 changes: 34 additions & 0 deletions test3.gno.land/backup_0313864-0315332.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":""}
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":"1ugnot"}
35 changes: 3 additions & 32 deletions test3.gno.land/extracted/p/demo/hyperborea/package.gno
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
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())
package hello

func Render(path string) string {
return "Hello World!"
}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/p/demo2/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1f748xee7gpwldyrz4xea3nk6hw24lfya49fus8","deposit":""}
{"creator":"g100xslzk674xuv3s0q8yp44cr63l26z2y4n7ycg","deposit":""}
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!"
}
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":"g1v4e0gv2m6gpqh6mx0auu6x6gmep9yt6cxj6q5f","deposit":""}
{"creator":"g100xslzk674xuv3s0q8yp44cr63l26z2y4n7ycg","deposit":""}
5 changes: 5 additions & 0 deletions test3.gno.land/extracted/r/32/bv/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!"
}
1 change: 1 addition & 0 deletions test3.gno.land/extracted/r/32/bv/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"creator":"g130g97u00ayr3gjr38w5qpf4he7xku8kszwe26y","deposit":"1ugnot"}
5 changes: 5 additions & 0 deletions test3.gno.land/extracted/r/defianon/firsttry/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":"g1yklpamkeke8fczgk6a4n6hj79kv3mhkrv0ajzp","deposit":"1ugnot"}
5 changes: 5 additions & 0 deletions test3.gno.land/extracted/r/defianon/net3/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!"
}
1 change: 1 addition & 0 deletions test3.gno.land/extracted/r/defianon/net3/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"creator":"g1yklpamkeke8fczgk6a4n6hj79kv3mhkrv0ajzp","deposit":"1ugnot"}
5 changes: 5 additions & 0 deletions test3.gno.land/extracted/r/defianon/posted/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":"g1yklpamkeke8fczgk6a4n6hj79kv3mhkrv0ajzp","deposit":"1ugnot"}
5 changes: 5 additions & 0 deletions test3.gno.land/extracted/r/defianon/test/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!"
}
1 change: 1 addition & 0 deletions test3.gno.land/extracted/r/defianon/test/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"creator":"g1yklpamkeke8fczgk6a4n6hj79kv3mhkrv0ajzp","deposit":"1ugnot"}
5 changes: 5 additions & 0 deletions test3.gno.land/extracted/r/defianon/testing/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":"g1yklpamkeke8fczgk6a4n6hj79kv3mhkrv0ajzp","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 pup
package frenchie

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

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

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

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

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

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

func Allowance(owner, spender users.AddressOrName) uint64 {
allowance, err := pup.Allowance(owner.Resolve(), spender.Resolve())
allowance, err := frenchie.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()
pup.Transfer(caller, to.Resolve(), amount)
frenchie.Transfer(caller, to.Resolve(), amount)
}

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

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

// administration.

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

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

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

switch {
case path == "":
return pup.RenderHome()
return frenchie.RenderHome()
case c == 2 && parts[0] == "balance":
owner := users.AddressOrName(parts[1])
balance, _ := pup.BalanceOf(owner.Resolve())
balance, _ := frenchie.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":"g1j8jwsce3vcry6s8qmmkxuwuhzww0j8396n3rgm","deposit":""}
{"creator":"g1m6cdxuuesrgdu2krq9m5xrrvhx74f56a0w2y3t","deposit":""}
6 changes: 3 additions & 3 deletions test3.gno.land/extracted/r/demo/doge/GRC20.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (

var (
doge *grc20.AdminToken
admin std.Address = "g16q43q86hleg3ggavtv08rnh5nytahpkga7ts7r"
admin std.Address = "g1dgztjqjvaa6fh7qqwewhqsnc9ny2dz33yllk8d"
)

func init() {
doge = grc20.NewAdminToken("dogeToken", "doge", 6)
doge.Mint(admin, 1000000000) // @administrator
doge = grc20.NewAdminToken("doge", "doge", 6)
doge.Mint(admin, 4200000000) // @administrator
}

// method proxies as public functions.
Expand Down
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/doge/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g16q43q86hleg3ggavtv08rnh5nytahpkga7ts7r","deposit":""}
{"creator":"g1dgztjqjvaa6fh7qqwewhqsnc9ny2dz33yllk8d","deposit":""}
4 changes: 2 additions & 2 deletions test3.gno.land/extracted/r/demo/grass/GRC20.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (

var (
grass *grc20.AdminToken
admin std.Address = "g10jtus48tdlp93l9jw9q0tws5jh7gmpjdtyqkxh"
admin std.Address = "g148vmqxzgp4yc996pasredy3v9sw8sxzsgem0qv"
)

func init() {
grass = grc20.NewAdminToken("grassToken", "grass", 6)
grass.Mint(admin, 1000000000) // @administrator
grass.Mint(admin, 2443000) // @administrator
}

// method proxies as public functions.
Expand Down
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/grass/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g10jtus48tdlp93l9jw9q0tws5jh7gmpjdtyqkxh","deposit":""}
{"creator":"g148vmqxzgp4yc996pasredy3v9sw8sxzsgem0qv","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":"g1ayxdpq5jzqrkedjp57xvdhvf9g6jjwhxt5wn2f","deposit":"1ugnot"}
{"creator":"g1gy76zgcx98rwg4shsm7ket8r3qny9gzdpyjhwm","deposit":""}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/hello3/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1ayxdpq5jzqrkedjp57xvdhvf9g6jjwhxt5wn2f","deposit":"1ugnot"}
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":""}
Loading

0 comments on commit f4e3039

Please sign in to comment.