SC CODE: Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "main_assets_ui.js.gz")
31 STORE("descrHdr", "Orbis main_assets_ui.js")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "orbis_main_asset_ui_js")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "1b9ce1dd1b2b159e90d4b01b54eba128508543b25a1eba5a94a122bf57a648ff")
37 STORE("fileCheckS", "1ef50e9487a47bcb8bb1b6cfbfec3edf7c4fc5927f1cfd5d0e4b7e74935efe2c")
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
/*
H4sIAAAAAAAC/9R93XYbOXLwPZ8C1qdVk2uyRfmb2cyQpnw0sr3jrMf2GWmSk+NxVmA3SPao2egAoH5W4k1eIBc5yTm5yd7nCXKRp8kLZB8hB3/dABrd7JY1sxudOWMSP4VCVaFQKBSKexuKAGUkidjetLfYZBFLcAY2eQwZOqEUsbMIZh8IXhJEaT/aEIIyNgQMM5gOAWWQbSiYgWyTpgNw1wMAgAhnlIFc9XmdpCmYgRhHmzXKWLhE7FWK+Mdvbt/E/QC6g/AOwW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LroKd61g68gKGCOinGtcQr4XBeV7RP4txNp1VYbAWmeUmitUdesuvHXiN8X6SAuYvFb3/cyzuHVXvoX7e/DEzq5s1A58N6KV23YdNSSkXEYNTcA6oTTJltqFATnooPmHC20ycjSquNtC6kPPblHz9sqKVM+Pn1NGcLY8lq424SmcPD9UhWD/TpCkdOKCF6UX16mSkVsRTJF2MYIyoU6w5YfcXUj8rfD3Au3/reBhJ0m/v+8I/lz8lp9yHFeAS3Zp56IX3sWuX5/cvdjcyKr2q865s2r+yUlbWVRFpe5mTv4cJV+YXIK5WDfey3WPJHNiBEx3fKEO5G8Ue54Z7JpZXWRcdVYORu3x92HM/zmhIrBZqG1rk1TMlLukdUf4xFr2XBuZBVoP1flKi6jld1iqQoaVHmlzW/MYe5QpsrsuXG17qD44UJLJCg/c1vxApSaWHTUifrryMslzt8JD2+K8WNxcVhfRk/Le0reO1FDmUc5H+nqNURf1aQz7s4xr3YYKr9bBQd01r+/nc6mRS8v7M9Vbr8/XjuUwJtnuB26NS2SJgrvHKyZbR+tB5bl1NaaiNtRjZ0iE5ylKk8fxzbq40tLIbsWPDJTfXR/j/p0W6GMwBi/ABegXRVstCQP1zO5iZ1CGV4sYIRkSDY/aH9RHWdSrg9YxGE1xGH/64z//I5CUU9u35+cyt73/DQAA//9HrJtS0IoAAA==
*/ |
| 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", "main_assets_ui.js.gz")
31 STORE("descrHdr", "Orbis main_assets_ui.js")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "orbis_main_asset_ui_js")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "1b9ce1dd1b2b159e90d4b01b54eba128508543b25a1eba5a94a122bf57a648ff")
37 STORE("fileCheckS", "1ef50e9487a47bcb8bb1b6cfbfec3edf7c4fc5927f1cfd5d0e4b7e74935efe2c")
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
/*
H4sIAAAAAAAC/9R93XYbOXLwPZ8C1qdVk2uyRfmb2cyQpnw0sr3jrMf2GWmSk+NxVmA3SPao2egAoH5W4k1eIBc5yTm5yd7nCXKRp8kLZB8hB3/dABrd7JY1sxudOWMSP4VCVaFQKBSKexuKAGUkidjetLfYZBFLcAY2eQwZOqEUsbMIZh8IXhJEaT/aEIIyNgQMM5gOAWWQbSiYgWyTpgNw1wMAgAhnlIFc9XmdpCmYgRhHmzXKWLhE7FWK+Mdvbt/E/QC6g/AOwWDqAXWOblgnULyDH9QHRCKUMbhEnQCW3TTYZAH6T6y53t+DJxbGZkEJYAAIYhuSWdiZWAkSg2MwBi/Ad5CtQoI3WdzXPACHssUA/BocjccDMAFjCcvEJqTsNkXhdRKzFZiBi/27coztry7sDiVyIUM37BRnjA9U141PXQqA5rwJjE/dASMby85bgFKKBAw9odlMT/rgoJx9S9gXp3idp4ihCdi/E523QLCPghTDGMUX1rjtYL7FME6yJQepkNweaugaXm/bg/Q2i0CxePh4Yum8RAwmKe3TKImpuTpwisIUL/vBx7fvT16Cl6/OT968PfsEzhgkLM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