Skip to content

Commit

Permalink
chore: update test4.gno.land backup
Browse files Browse the repository at this point in the history
  • Loading branch information
gfanton authored and github-actions[bot] committed Oct 6, 2024
1 parent ad5e8d9 commit 005e5db
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test4.gno.land/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## TXs
```
19913
19916
```

## addpkgs
Expand All @@ -11,12 +11,12 @@

## top realm calls
```
4329 "gno.land/r/demo/wugnot"
4333 "gno.land/r/demo/wugnot"
1142 "gno.land/r/gnoswap/gns"
883 "gno.land/r/gnoswap/v2/gns"
888 "gno.land/r/gnoswap/v2/gns"
764 "gno.land/r/gnoswap/router"
755 "gno.land/r/gnoswap/position"
707 "gno.land/r/gnoswap/v2/router"
710 "gno.land/r/gnoswap/v2/router"
654 "gno.land/r/gnoswap/gnft"
616 "gno.land/r/onbloc/usdc"
589 "gno.land/r/onbloc/foo"
Expand Down
3 changes: 3 additions & 0 deletions test4.gno.land/backup_2233216-2264992.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{"tx":{"msg":[{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/demo/wugnot","func":"Approve","args":["g126swhfaq2vyvvjywevhgw7lv9hg8qan93dasu8","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/demo/wugnot","func":"Approve","args":["g1cnz5gm2l09pm2k6rknjjar9a2w53fdhk4yjzy5","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/gnoswap/v2/gns","func":"Approve","args":["g1cnz5gm2l09pm2k6rknjjar9a2w53fdhk4yjzy5","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"22000000ugnot","pkg_path":"gno.land/r/gnoswap/v2/router","func":"SwapRoute","args":["gnot","gno.land/r/gnoswap/v2/gns","22000000","EXACT_IN","gno.land/r/demo/wugnot:gno.land/r/gnoswap/v2/gns:3000","100","22013829"]}],"fee":{"gas_wanted":"100000000","gas_fee":"1ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"A5AUjFIdvgvvYPCszkBSj4LyyQVI/uczvuxzbg5IRDB3"},"signature":"jW2yA44Y6OlDjjDr8HEo5HPiJ4klJU0E3EwuXElQdcJPY82On8LGbUAwD01VF13uDXG4r13XG79w+bVBLryUmA=="}],"memo":""},"blockNum":"2252951"}
{"tx":{"msg":[{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/gnoswap/v2/gns","func":"Approve","args":["g126swhfaq2vyvvjywevhgw7lv9hg8qan93dasu8","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/gnoswap/v2/gns","func":"Approve","args":["g1cnz5gm2l09pm2k6rknjjar9a2w53fdhk4yjzy5","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/demo/wugnot","func":"Approve","args":["g1cnz5gm2l09pm2k6rknjjar9a2w53fdhk4yjzy5","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/gnoswap/v2/router","func":"SwapRoute","args":["gno.land/r/gnoswap/v2/gns","gnot","22033049","EXACT_OUT","gno.land/r/gnoswap/v2/gns:gno.land/r/onbloc/usdc:3000*POOL*gno.land/r/onbloc/usdc:gno.land/r/demo/wugnot:3000","100","22450739"]}],"fee":{"gas_wanted":"100000000","gas_fee":"1ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"A5AUjFIdvgvvYPCszkBSj4LyyQVI/uczvuxzbg5IRDB3"},"signature":"EKVYwifobvfXHGSYaWSFqFnMZV0DgPHKGyS6gWkb/f1lUg91nxBOR5hdfGXTiwjXKKlMz6IuH9PBwZ9KfThSVA=="}],"memo":""},"blockNum":"2252960"}
{"tx":{"msg":[{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/gnoswap/v2/gns","func":"Approve","args":["g126swhfaq2vyvvjywevhgw7lv9hg8qan93dasu8","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/gnoswap/v2/gns","func":"Approve","args":["g1cnz5gm2l09pm2k6rknjjar9a2w53fdhk4yjzy5","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/demo/wugnot","func":"Approve","args":["g1cnz5gm2l09pm2k6rknjjar9a2w53fdhk4yjzy5","18446744073709551615"]},{"@type":"/vm.m_call","caller":"g14ks20xj4csuyn0jucwdt96rgr6cenht30avkyr","send":"","pkg_path":"gno.land/r/gnoswap/v2/router","func":"SwapRoute","args":["gno.land/r/gnoswap/v2/gns","gnot","22000000","EXACT_IN","gno.land/r/gnoswap/v2/gns:gno.land/r/onbloc/usdc:3000*POOL*gno.land/r/onbloc/usdc:gno.land/r/demo/wugnot:3000","100","21590108"]}],"fee":{"gas_wanted":"100000000","gas_fee":"1ugnot"},"signatures":[{"pub_key":{"@type":"/tm.PubKeySecp256k1","value":"A5AUjFIdvgvvYPCszkBSj4LyyQVI/uczvuxzbg5IRDB3"},"signature":"ud4x6eADM92sIEsxm7WAT3wB1/bmoSZe64xsTQyNY3oOlcCQOuZjd4lArig/oHAyvyBUM+VAWW++KS1GI+qKDw=="}],"memo":""},"blockNum":"2252966"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
package home

import (
"errors"
"std"
)

var (
main std.Address // tony's main address
backup std.Address // backup address
)

func init() {
main = "g1n3s28tukh9fr37d44cucutsn22d4e8hw3666dv"
}

func Address() std.Address {
return main
}

func Backup() std.Address {
return backup
}

func SetAddress(a std.Address) error {
if !a.IsValid() {
return errors.New("config: invalid address")
}

if err := checkAuthorized(); err != nil {
return err
}

main = a
return nil
}

func SetBackup(a std.Address) error {
if !a.IsValid() {
return errors.New("config: invalid address")
}

if err := checkAuthorized(); err != nil {
return err
}

backup = a
return nil
}

func checkAuthorized() error {
caller := std.PrevRealm().Addr()
if caller != main || caller != backup {
return errors.New("config: unauthorized")
}

return nil
}

func AssertAuthorized() {
caller := std.PrevRealm().Addr()
if caller != main || caller != backup {
panic("config: unauthorized")
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
package home

import (
"gno.land/p/demo/ufmt"
)

var (
pfp string // link to profile picture
pfpCaption string // profile picture caption
abtMe string
)

func init() {
pfp = "https://muaythairecords.com/fighters/rodtang-jitmuangnon/ogimage"
pfpCaption = "My profile picture - Rodtang Jitmuangnon (Muay Thai fighter)"
abtMe =
`### About me
Motivated Computer Science student with strong
analytical and problem-solving skills. Proficient in
programming and version control, with a high level of
focus and attention to detail. Eager to apply academic
knowledge to real-world projects and contribute to
innovative technology solutions.
Demonstrated ability to work collaboratively in team environments, as evidenced by participation in a large-scale group project to develop a banking web application, leveraging various frameworks to deliver robust backend functionalities.
Additionally, skilled in concurrent programming, showcased through the development of a small distributed system that simulates social media interactions, employing the Chord algorithm for efficient data handling.
In addition to my academic pursuits, I enjoy traveling and staying active through weightlifting. I have a keen interest in electronic music and often explore various genres. I believe in maintaining a balanced lifestyle that complements my professional development.`
}

func UpdatePFP(url, caption string) {
AssertAuthorized()
pfp = url
pfpCaption = caption
}

func UpdateAboutMe(col1 string) {
AssertAuthorized()
abtMe = col1
}

func Render(path string) string {
out := "# Matija's Homepage\n\n"

out += renderAboutMe()
out += "\n\n"
out += renderGitHubProjects()

return out
}

func renderAboutMe() string {
out := "<div class='columns-2'>"

out += "<div>\n\n"
out += ufmt.Sprintf("![my profile pic](%s)\n\n%s\n\n", pfp, pfpCaption)
out += "</div>\n\n"

out += "<div>\n\n"
out += abtMe + "\n\n"
out += "</div>\n\n"

out += "</div>\n\n"

return out
}

func renderGitHubProjects() string{

out := "# [Github Projects](https://github.com/matijamarjanovic)"

out += "<div>\n\n"
out += "[NUTRITION TRACKER ANDROID APP](https://github.com/matijamarjanovic/NutritionTrackerRMA)"
out += "</div>\n\n"

out += "<div>\n\n"
out += "[DISTRIBUTED SYSTEM](https://github.com/RAF-KiDS/projekat-matijamarjanovic)"
out += "</div>\n\n"

out += "<div>\n\n"
out += "[GROUP PROJECT - BANKING APP](https://github.com/matijamarjanovic/Banka-3-Backend)"
out += "</div>\n\n"

out += "<div>\n\n"
out += "[FIAT CURRENCIES - DATA ANALYTICS](https://github.com/matijamarjanovic/BigData_CurrencyAnalitics)"
out += "</div>\n\n"

return out

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"creator":"g1n3s28tukh9fr37d44cucutsn22d4e8hw3666dv","deposit":""}
2 changes: 1 addition & 1 deletion test4.gno.land/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"latest_block_height": 2233216
"latest_block_height": 2264992
}

0 comments on commit 005e5db

Please sign in to comment.