-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad5e8d9
commit 005e5db
Showing
6 changed files
with
165 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} |
65 changes: 65 additions & 0 deletions
65
test4.gno.land/extracted/r/g1n3s28tukh9fr37d44cucutsn22d4e8hw3666dv/home:2202215/config.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
} |
91 changes: 91 additions & 0 deletions
91
test4.gno.land/extracted/r/g1n3s28tukh9fr37d44cucutsn22d4e8hw3666dv/home:2202215/home.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
....land/extracted/r/g1n3s28tukh9fr37d44cucutsn22d4e8hw3666dv/home:2202215/pkg_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"creator":"g1n3s28tukh9fr37d44cucutsn22d4e8hw3666dv","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"latest_block_height": 2233216 | ||
"latest_block_height": 2264992 | ||
} |