Smart Contract Details
Open on Dero ExplorerInternal ID:
49780
Hash / Transaction:
Block:
Timestamp:
2025-05-16 20:29:18 UTC (2 months ago)
Creator:
goodwallet
(1770683)
Raw Data:
[{"name":"SC_ACTION","datatype":"U","value":1},{"name":"SC_CODE","datatype":"S","value":"Function InitializePrivate() Uint64\n10 IF init() == 0 THEN GOTO 30\n20 RETURN 1\n30 STORE(\"nameHdr\", \"style.css\")\n31 STORE(\"descrHdr\", \"AS's Playground Live\")\n32 STORE(\"iconURLHdr\", \"\")\n33 STORE(\"dURL\", \"AS's Playground Live\")\n34 STORE(\"docType\", \"TELA-CSS-1\")\n35 STORE(\"subDir\", \"\")\n36 STORE(\"fileCheckC\", \"2f26d68393e1fe7a0c3d3ad7f0d44e173c415e60819fbef221612fe5e990e182\")\n37 STORE(\"fileCheckS\", \"2d8ebbe0dc07c19af6491488aba76a0b5014c170e336ebfa8da2dbfff1a8bbb7\")\n100 RETURN 0\nEnd Function\n\nFunction init() Uint64\n10 IF EXISTS(\"owner\") == 0 THEN GOTO 30\n20 RETURN 1\n30 STORE(\"owner\", address())\n50 STORE(\"docVersion\", \"1.0.0\")\n60 STORE(\"hash\", HEX(TXID()))\n70 STORE(\"likes\", 0)\n80 STORE(\"dislikes\", 0)\n100 RETURN 0\nEnd Function\n\nFunction address() String\n10 DIM s as String\n20 LET s = SIGNER()\n30 IF IS_ADDRESS_VALID(s) THEN GOTO 50\n40 RETURN \"anon\"\n50 RETURN ADDRESS_STRING(s)\nEnd Function\n\nFunction Rate(r Uint64) Uint64\n10 DIM addr as String\n15 LET addr = address()\n16 IF r \u003c 100 \u0026\u0026 EXISTS(addr) == 0 \u0026\u0026 addr != \"anon\" THEN GOTO 30\n20 RETURN 1\n30 STORE(addr, \"\"+r+\"_\"+BLOCK_HEIGHT())\n40 IF r \u003c 50 THEN GOTO 70\n50 STORE(\"likes\", LOAD(\"likes\")+1)\n60 RETURN 0\n70 STORE(\"dislikes\", LOAD(\"dislikes\")+1)\n100 RETURN 0\nEnd Function\n\n/*\n* {\n box-sizing: border-box;\n}\n\nbody {\n font-family: Arial, Helvetica, sans-serif;\n font-size: large;\n background-color: #f8f9f9;\n margin-top: 0;\n margin-left: 0;\n margin-right: 0;\n margin-bottom: 0;\n}\n\n@media screen and (max-width: 600px) {\nbody {\n font-family: Arial, Helvetica, sans-serif;\n background-color: #f8f9f9;\n margin-top: 0;\n margin-left: 0;\n margin-right: 0;\n margin-bottom: 0;\n }\n}\n\nh1 {\n font-size: 2.5em;\n}\n\nh2 {\n font-size: 1.875em;\n}\n\nh3 {\n font-size: 1.4em;\n}\n\nh4 {\n font-size: 1em;\n}\n\nP {\n font-size: 0.875em;\n}\n\nhr {\n border: 1px solid whitesmoke;\n margin-bottom: 30px;\n margin-top: -15px;\n}\n\nheader {\n background-color: beige;\n padding: 5px;\n text-align: center;\n font-size: 22px;\n}\n\nnav {\n background-color: rgb(33,33,33,0.9);\n}\n\ndiv.marginside {\n margin-left: 10%;\n margin-right: 10%;\n}\n\n@media screen and (max-width: 600px) {\n div.marginside {\n margin-left: 0;\n margin-right: 0;\n }\n}\n\n.navbar {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #333;\n padding: 10px 20px;\n }\n\n .navbar-left,\n .navbar-right {\n display: flex;\n gap: 10px;\n }\n\n@media screen and (max-width: 600px) {\n.navbar {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n background-color: #333;\n padding: 10px 20px;\n }\n}\n\na.nav:link, a.nav:visited {\n background-color: none;\n color: white;\n padding: 10px 10px;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n}\n\na.nav:hover, a.nav:active {\n background-color: black;\n color: white;\n}\n\ndiv.sticky {\n position: sticky;\n top: 0;\n}\n\n.anchored {\n scroll-margin-top: 60px; \n}\n\na.side:link, a.side:visited {\n background-color: none;\n color: black;\n padding: 5px 10px;\n text-align: left;\n text-decoration: none;\n display: inline-block;\n}\n\na.side:hover, a.nav:active {\n background-color: white;\n color: black;\n}\n\nsection {\n display: -webkit-flex;\n display: flex;\n background-color: #f8f9f9;\n margin-left: 10%;\n margin-right: 10%;\n}\n\n@media screen and (max-width: 600px) {\nsection {\n display: -webkit-flex;\n display: flex;\n margin-left: 0;\n margin-right: 0;\n }\n}\n\n.overflow {\n overflow: scroll;\n}\n\naside {\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 0.75;\n background-color: whitesmoke;\n padding: 20px;\n}\n\naside ul {\n list-style-type: none;\n padding: 0;\n}\n\naside li {\n list-style-type: none;\n padding-bottom: 10px;\n}\n\narticle {\n -webkit-flex: 3;\n -ms-flex: 3;\n flex: 3;\n background-color: #ffffff;\n padding: 10px;\n}\n\nfooter {\n background-color: beige;\n padding: 10px;\n text-align: center;\n}\n\n@media (max-width: 600px) {\n section {\n -webkit-flex-direction: column;\n flex-direction: column;\n }\n}\n\ncode {\n font-size: 0,875em;\n font-weight: normal;\n display: inline-block;\n background-color: whitesmoke;\n padding: 10px;\n}\n\n.telegram-float {\n position: fixed;\n bottom: 20px;\n right: 20px;\n z-index: 1000;\n}\n\n.telegram-icon {\n width: 60px;\n height: 60px;\n border-radius: 50%;\n background-color: #0088cc;\n display: flex;\n justify-content: center;\n align-items: center;\n animation-name: pulse;\n animation-duration: 5.0s;\n animation-timing-function: ease-out;\n animation-iteration-count: infinite;\n}\n\n @keyframes pulse {\n 0% {\n box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.5);\n }\n 80% {\n box-shadow: 0 0 0 14px rgba(0, 136, 204, 0);\n }\n}\n\n.telegram-icon svg {\n fill: #fff;\n width: 30px;\n height: 30px;\n}\n\n:root {\n --green: #46b868;\n --yellow: #fffb00;\n --red: #ed2024;\n}\n\n#svgCursor {\n position: fixed;\n pointer-events: none;\n width: 25px;\n height: 25px;\n opacity: 0;\n transition: opacity 1s;\n z-index: 9999;\n}\n\n.cls-1 {\n fill: var(--red);\n}\n\n.cls-1,\n.cls-2,\n.cls-3 {\n stroke-width: 0px;\n}\n\n.cls-2 {\n fill: var(--green);\n}\n\n.cls-3 {\n fill: var(--text);\n}\n\n.cls-r1 {\n fill: var(--rings);\n}\n\n.cls-r3 {\n fill: var(--background);\n}\n\n.svg-container {\n position: fixed;\n width: 100%;\n height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: -100;\n}\n\n#connectButton {\n padding: 2px 17px 2px 17px;\n font-size: 0.87em;\n text-align: center;\n}\n\n#wsStatus {\n font-size: 0.77em;\n background-color: #555555;\n padding: 5px; \n}\n\n\n\n\n*/"}]
Code:
Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "style.css")
31 STORE("descrHdr", "AS's Playground Live")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "AS's Playground Live")
34 STORE("docType", "TELA-CSS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "2f26d68393e1fe7a0c3d3ad7f0d44e173c415e60819fbef221612fe5e990e182")
37 STORE("fileCheckS", "2d8ebbe0dc07c19af6491488aba76a0b5014c170e336ebfa8da2dbfff1a8bbb7")
100 RETURN 0
End Function
Function init() Uint64
10 IF EXISTS("owner") == 0 THEN GOTO 30
20 RETURN 1
30 STORE("owner", address())
50 STORE("docVersion", "1.0.0")
60 STORE("hash", HEX(TXID()))
70 STORE("likes", 0)
80 STORE("dislikes", 0)
100 RETURN 0
End Function
Function address() String
10 DIM s as String
20 LET s = SIGNER()
30 IF IS_ADDRESS_VALID(s) THEN GOTO 50
40 RETURN "anon"
50 RETURN ADDRESS_STRING(s)
End Function
Function Rate(r Uint64) Uint64
10 DIM addr as String
15 LET addr = address()
16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30
20 RETURN 1
30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT())
40 IF r < 50 THEN GOTO 70
50 STORE("likes", LOAD("likes")+1)
60 RETURN 0
70 STORE("dislikes", LOAD("dislikes")+1)
100 RETURN 0
End Function
/*
* {
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: large;
background-color: #f8f9f9;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
}
@media screen and (max-width: 600px) {
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #f8f9f9;
margin-top: 0;
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
}
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 1.875em;
}
h3 {
font-size: 1.4em;
}
h4 {
font-size: 1em;
}
P {
font-size: 0.875em;
}
hr {
border: 1px solid whitesmoke;
margin-bottom: 30px;
margin-top: -15px;
}
header {
background-color: beige;
padding: 5px;
text-align: center;
font-size: 22px;
}
nav {
background-color: rgb(33,33,33,0.9);
}
div.marginside {
margin-left: 10%;
margin-right: 10%;
}
@media screen and (max-width: 600px) {
div.marginside {
margin-left: 0;
margin-right: 0;
}
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #333;
padding: 10px 20px;
}
.navbar-left,
.navbar-right {
display: flex;
gap: 10px;
}
@media screen and (max-width: 600px) {
.navbar {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
background-color: #333;
padding: 10px 20px;
}
}
a.nav:link, a.nav:visited {
background-color: none;
color: white;
padding: 10px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
}
a.nav:hover, a.nav:active {
background-color: black;
color: white;
}
div.sticky {
position: sticky;
top: 0;
}
.anchored {
scroll-margin-top: 60px;
}
a.side:link, a.side:visited {
background-color: none;
color: black;
padding: 5px 10px;
text-align: left;
text-decoration: none;
display: inline-block;
}
a.side:hover, a.nav:active {
background-color: white;
color: black;
}
section {
display: -webkit-flex;
display: flex;
background-color: #f8f9f9;
margin-left: 10%;
margin-right: 10%;
}
@media screen and (max-width: 600px) {
section {
display: -webkit-flex;
display: flex;
margin-left: 0;
margin-right: 0;
}
}
.overflow {
overflow: scroll;
}
aside {
-webkit-flex: 1;
-ms-flex: 1;
flex: 0.75;
background-color: whitesmoke;
padding: 20px;
}
aside ul {
list-style-type: none;
padding: 0;
}
aside li {
list-style-type: none;
padding-bottom: 10px;
}
article {
-webkit-flex: 3;
-ms-flex: 3;
flex: 3;
background-color: #ffffff;
padding: 10px;
}
footer {
background-color: beige;
padding: 10px;
text-align: center;
}
@media (max-width: 600px) {
section {
-webkit-flex-direction: column;
flex-direction: column;
}
}
code {
font-size: 0,875em;
font-weight: normal;
display: inline-block;
background-color: whitesmoke;
padding: 10px;
}
.telegram-float {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}
.telegram-icon {
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #0088cc;
display: flex;
justify-content: center;
align-items: center;
animation-name: pulse;
animation-duration: 5.0s;
animation-timing-function: ease-out;
animation-iteration-count: infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.5);
}
80% {
box-shadow: 0 0 0 14px rgba(0, 136, 204, 0);
}
}
.telegram-icon svg {
fill: #fff;
width: 30px;
height: 30px;
}
:root {
--green: #46b868;
--yellow: #fffb00;
--red: #ed2024;
}
#svgCursor {
position: fixed;
pointer-events: none;
width: 25px;
height: 25px;
opacity: 0;
transition: opacity 1s;
z-index: 9999;
}
.cls-1 {
fill: var(--red);
}
.cls-1,
.cls-2,
.cls-3 {
stroke-width: 0px;
}
.cls-2 {
fill: var(--green);
}
.cls-3 {
fill: var(--text);
}
.cls-r1 {
fill: var(--rings);
}
.cls-r3 {
fill: var(--background);
}
.svg-container {
position: fixed;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
z-index: -100;
}
#connectButton {
padding: 2px 17px 2px 17px;
font-size: 0.87em;
text-align: center;
}
#wsStatus {
font-size: 0.77em;
background-color: #555555;
padding: 5px;
}
*/