SC CODE: Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "index.html")
31 STORE("descrHdr", "Arcanesphere is here.")
32 STORE("iconURLHdr", "https://dero.world/images/icons/as.ico")
33 STORE("dURL", "arcanesphere.hello.tela")
34 STORE("docType", "TELA-HTML-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "d4a8a466cd1287c0c5f139ac9dd4aed04bf4f8aa67928d14b95e2a226c5d89f")
37 STORE("fileCheckS", "6fb01ee90b80d2d1f95532a1be02f7d9edc7013b14a5c4dc7a3d44c53e9fdb5")
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
/*
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>AS (Arcanesphere)</title>
</head>
<body>
<div class="header"><p class="small">Imagine! This is the end of the beginning.</p></div>
<div class="content">
<div class="center">
<h1>Hello there!</h1>
<p>You made it to the decentralized web, here you are digitaly unstoppable, sovereign and free, be good.</p>
<p>I wish you wisdom and a very pleasant ride, never forget make the world a better place, just do it, be good!</p>
<p>For your leisure watch this:<br>
<a target="_blank" style="color:blue; font-size:20px" href="https://odysee.com/@wpahp:8/terence-mckenna-last-thoughts-(the:3">Terence McKenna - Last Thoughts (The Transcendental Object At The End Of Time Movie)</a><br>
<br>and visit:
<a target="_blank" style="color:blue; font-size:20px" href="https://www.terencemckenna.com/">Terence McKenna Archive</a></p>
<br>
<p>TELA, <br>I am truly thankful to the DERO and Civilware developers including everyone else who made this decentralized web posible.</p>
<p>Much <font color="red"><b>love</b></font> to all, AS (Arcanesphere)</p>
</div>
</div>
<div class="footer"><p class="small">This is the end of the beginning. Imagine!<br>
<br>The Sovereign Psychonaut</p></div>
</body>
</html>
*/ |
SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "index.html")
31 STORE("descrHdr", "Arcanesphere is here.")
32 STORE("iconURLHdr", "https://dero.world/images/icons/as.ico")
33 STORE("dURL", "arcanesphere.hello.tela")
34 STORE("docType", "TELA-HTML-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "d4a8a466cd1287c0c5f139ac9dd4aed04bf4f8aa67928d14b95e2a226c5d89f")
37 STORE("fileCheckS", "6fb01ee90b80d2d1f95532a1be02f7d9edc7013b14a5c4dc7a3d44c53e9fdb5")
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
/*
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>AS (Arcanesphere)</title>
</head>
<body>
<div class="header"><p class="small">Imagine! This is the end of the beginning.</p></div>
<div class="content">
<div class="center">
<h1>Hello there!</h1>
<p>You made it to the decentralized web, here you are digitaly unstoppable, sovereign and free, be good.</p>
<p>I wish you wisdom and a very pleasant ride, never forget make the world a better place, just do it, be good!</p>
<p>For your leisure watch this:<br>
<a target="_blank" style="color:blue; font-size:20px" href="https://odysee.com/@wpahp:8/terence-mckenna-last-thoughts-(the:3">Terence McKenna - Last Thoughts (The Transcendental Object At The End Of Time Movie)</a><br>
<br>and visit:
<a target="_blank" style="color:blue; font-size:20px" href="https://www.terencemckenna.com/">Terence McKenna Archive</a></p>
<br>
<p>TELA, <br>I am truly thankful to the DERO and Civilware developers including everyone else who made this decentralized web posible.</p>
<p>Much <font color="red"><b>love</b></font> to all, AS (Arcanesphere)</p>
</div>
</div>
<div class="footer"><p class="small">This is the end of the beginning. Imagine!<br>
<br>The Sovereign Psychonaut</p></div>
</body>
</html>
*/'] |