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 6, 2024
1 parent b4d2c1b commit e68ed60
Show file tree
Hide file tree
Showing 52 changed files with 857 additions and 122 deletions.
15 changes: 14 additions & 1 deletion test3.gno.land/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## TXs
```
9007
9067
```

## addpkgs
Expand All @@ -25,6 +25,7 @@
7 "gno.land/r/test1/tictacgno"
7 "gno.land/r/test/test"
7 "gno.land/r/test/hello"
7 "gno.land/r/dragicevicb/raffleentry"
7 "gno.land/r/demo/GemCoin"
7 "gno.land/p/test/test"
7 "gno.land/p/demo5/premier"
Expand Down Expand Up @@ -156,6 +157,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/gnosocial"
2 "gno.land/r/wyhaines/gnocial5"
2 "gno.land/r/wyhaines/gnocial2"
2 "gno.land/r/whatevertest/whatever"
Expand Down Expand Up @@ -374,6 +376,11 @@
1 "gno.land/r/wyhaines/gnocial7"
1 "gno.land/r/wyhaines/gnocial6"
1 "gno.land/r/wyhaines/gnocial3"
1 "gno.land/r/wyhaines/gnocial16"
1 "gno.land/r/wyhaines/gnocial15"
1 "gno.land/r/wyhaines/gnocial14"
1 "gno.land/r/wyhaines/gnocial13_1"
1 "gno.land/r/wyhaines/gnocial13"
1 "gno.land/r/wyhaines/gnocial12"
1 "gno.land/r/wyhaines/gnocial11"
1 "gno.land/r/whitelist/DIGIX666"
Expand Down Expand Up @@ -553,6 +560,7 @@
1 "gno.land/r/kush/hello"
1 "gno.land/r/ksergio/hello"
1 "gno.land/r/kryzzz/hello"
1 "gno.land/r/kirk_haines/gnosocial"
1 "gno.land/r/kestar/oblos"
1 "gno.land/r/kestar/DZPOWER"
1 "gno.land/r/kennethy/hello"
Expand Down Expand Up @@ -1532,6 +1540,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/gnocial14"
4 "gno.land/r/wyhaines/gnocial12"
4 "gno.land/r/ttt123/hello"
4 "gno.land/r/test98/hello"
Expand All @@ -1551,6 +1560,8 @@
3 "ㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁ"
3 "gno.land/r/x1unix/feedback/v8"
3 "gno.land/r/x1unix/feedback/v10"
3 "gno.land/r/wyhaines/gnosocial"
3 "gno.land/r/wyhaines/gnocial15"
3 "gno.land/r/test/poll3"
3 "gno.land/r/mpj/mood"
3 "gno.land/r/malek/whitelistfactory"
Expand All @@ -1568,6 +1579,7 @@
2 "gno.land/r/x1unix/schematest_6"
2 "gno.land/r/wyhaines/gnocial8"
2 "gno.land/r/wyhaines/gnocial4"
2 "gno.land/r/wyhaines/gnocial16"
2 "gno.land/r/wyhaines/gnocial10"
2 "gno.land/r/varmeta/vmt721"
2 "gno.land/r/vadymspace/hello"
Expand All @@ -1581,6 +1593,7 @@
2 "gno.land/r/sdm/echo"
2 "gno.land/r/quanghoangf/hello"
2 "gno.land/r/kouteki/mood"
2 "gno.land/r/kirk_haines/gnosocial"
2 "gno.land/r/kennethy/hello"
2 "gno.land/r/ilker/counter"
2 "gno.land/r/hellotest/poll"
Expand Down
60 changes: 60 additions & 0 deletions test3.gno.land/backup_0469315-0470829.jsonl

Large diffs are not rendered by default.

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":"g100xslzk674xuv3s0q8yp44cr63l26z2y4n7ycg","deposit":""}
{"creator":"g1at4q8pkwwll82azmxek7enpvyhh2c94mmk2c67","deposit":""}
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":""}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/p/test/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g15x46up6w3v9ey7wkltf05jt20pa6g39kkjjx8a","deposit":""}
{"creator":"g1fsu3z335h5qngf7t3lmakvpmpwg9ae76tqwh7c","deposit":"1ugnot"}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/asd/hello/package.gno
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package hello

func Render(path string) a string {
func Render(path string) string {
return "Hello World!"
}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/asd/hello/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g1fsu3z335h5qngf7t3lmakvpmpwg9ae76tqwh7c","deposit":"1ugnot"}
{"creator":"g1yc0x2kj67mj564zsjyp27t5zya5eynnrdqkpqv","deposit":"1ugnot"}
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 = "g1sycj68ur0n7xytglx0me3f207ktudm80aqpysm"
admin std.Address = "g1hqzeju0p0eup9rgxa0pxvyc0y7wnzjrdvppsy5"
)

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":"g1sycj68ur0n7xytglx0me3f207ktudm80aqpysm","deposit":""}
{"creator":"g1098kpwkwv3r08cat9ssucrq4mznxyv855jgqvx","deposit":""}
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/asa/GRC20.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

var (
asa *grc20.AdminToken
admin std.Address = "g19xw9uzlcr3jefwx6dpmr6c0erg5kc65zlj8r4e"
admin std.Address = "g1hqzeju0p0eup9rgxa0pxvyc0y7wnzjrdvppsy5"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion test3.gno.land/extracted/r/demo/asa/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g19xw9uzlcr3jefwx6dpmr6c0erg5kc65zlj8r4e","deposit":""}
{"creator":"g15gsy3nlxxjn0knd3xkucg4f6gf79tfwhg426sw","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 pup
package usdc

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

var (
pup *grc20.AdminToken
admin std.Address = "g1j8jwsce3vcry6s8qmmkxuwuhzww0j8396n3rgm"
usdc *grc20.AdminToken
admin std.Address = "g17k3jmr2xdwhu6xzcqh5uwu56644ccptrmhy5d0"
)

func init() {
pup = grc20.NewAdminToken("pupToken", "pup", 6)
pup.Mint(admin, 1000000000) // @administrator
usdc = grc20.NewAdminToken("UpSideDownCapo", "USDC", 6)
USDC.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 usdc.TotalSupply()
}

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

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

func TransferFrom(from, to users.AddressOrName, amount uint64) {
caller := std.GetOrigCaller()
pup.TransferFrom(caller, from.Resolve(), to.Resolve(), amount)
usdc.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)
usdc.Mint(address.Resolve(), amount)
}

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

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

switch {
case path == "":
return pup.RenderHome()
return usdc.RenderHome()
case c == 2 && parts[0] == "balance":
owner := users.AddressOrName(parts[1])
balance, _ := pup.BalanceOf(owner.Resolve())
balance, _ := usdc.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":"g17k3jmr2xdwhu6xzcqh5uwu56644ccptrmhy5d0","deposit":""}
28 changes: 14 additions & 14 deletions test3.gno.land/extracted/r/demo/gemcoin/GRC20.gno
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package gemcoin
package GemCoin

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

var (
gemcoin *grc20.AdminToken
GemCoin *grc20.AdminToken
admin std.Address = "g17np07gtd7nj5rh4x582srdhd8247xa3s3us3y3"
)

func init() {
gemcoin = grc20.NewAdminToken("gemcoinToken", "GEM", 6)
gemcoin.Mint(admin, 1000000000) // @administrator
GemCoin = grc20.NewAdminToken("GemCoin", "Gem", 6)
GemCoin.Mint(admin, 1000000000) // @administrator
}

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

func TotalSupply() uint64 {
return gemcoin.TotalSupply()
return GemCoin.TotalSupply()
}

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

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

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

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

// administration.

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

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

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

switch {
case path == "":
return gemcoin.RenderHome()
return GemCoin.RenderHome()
case c == 2 && parts[0] == "balance":
owner := users.AddressOrName(parts[1])
balance, _ := gemcoin.BalanceOf(owner.Resolve())
balance, _ := GemCoin.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/gggg/pkg_metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creator":"g14qvahvnnllzwl9ehn3mkph248uapsehwgfe4pt","deposit":"1ugnot"}
{"creator":"g1ccv99f5wjrd2nzkw7md9kkdy7h4yncstzua7ka","deposit":"1ugnot"}
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 = "g148vmqxzgp4yc996pasredy3v9sw8sxzsgem0qv"
admin std.Address = "g10jtus48tdlp93l9jw9q0tws5jh7gmpjdtyqkxh"
)

func init() {
grass = grc20.NewAdminToken("grassToken", "grass", 6)
grass.Mint(admin, 2443000) // @administrator
grass.Mint(admin, 1000000000) // @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":"g148vmqxzgp4yc996pasredy3v9sw8sxzsgem0qv","deposit":""}
{"creator":"g10jtus48tdlp93l9jw9q0tws5jh7gmpjdtyqkxh","deposit":""}
Loading

0 comments on commit e68ed60

Please sign in to comment.