SC CODE: Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "main_assets.js.gz")
31 STORE("descrHdr", "Orbis main_assets.js")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "orbis_main_asset_js")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "1c45cce79d45302f2673aed5709653cdbd91fd4bf72610feb163b65977c9ac9e")
37 STORE("fileCheckS", "bfeec00012433c70d725fd2ba0abc9fd9fca4a6c4a051b1ed98d2797469aac")
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/8wa224bN/bdX3FiGJoZRB7L2aLASpEWjuJuA8RNYBnYh6CtqZkjiTVFaodUbNXRJ+zbvu8v7icU5HDuF0m2UdRAG83w3Hmu5ByvJYJUEQ3U8eDonvJQ3PsyIPxCSlQShkDkhgcwW/NAUcFdDx6PAAACwaVg6DMxd50vk/HFT3AxmVzeTH6GiSKRonwOmo7v+443MCh0Bu4ry4LKfxHGUI0F5xgoDBO6O2hfXl9/uu5DjAxcKA0cU0jY6D+5EPdXKCWZo+tgFInI6YLzmSGRmGDARqw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q4uB/KvqMjxEl6bwMppkV4ta1cyrb4z6ZkxMDVGN3nY3T/z8diyWK4YK+3DyWGG2tfy7cPJY4bW17MvH3IXPG+Q6CFBKpwu3ycl6E5eaFRjBOfwDHOlAHxxna4pOsyg1K2UKFWFR3dAlirVyXa/eXQ69w+eCY3nru/Cm1+sVxoOaVqJ9+kquQrUZX5UzQP3HAqvkewBzBLoQLMToeFSi5cN4gcFdwt3c54c4Xc+B8pnw356tRk59FCpiY85+3tH20UcO2qnp3KvE6lrHKpSv8EHpoTpm7/Sctlmv4Jr3JOKUz3UTVbIInEJQMAkT81qpn+EWsWBZL6SbmoO+d9ENkEHaq2BfalCQigR3KaZvHnP4hzhRTJDlq6QseVLZdeq/e/ohHvOUMF9kWUp9cOC1lbLa5D3D9FuYUU4Yy0+6pc+ASscjlW+B/v+///7HXIrbNO3s14JphMAm28SXtkfbwR8BAAD//zyoXvrlJgAA
*/ |
| 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.js.gz")
31 STORE("descrHdr", "Orbis main_assets.js")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "orbis_main_asset_js")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "1c45cce79d45302f2673aed5709653cdbd91fd4bf72610feb163b65977c9ac9e")
37 STORE("fileCheckS", "bfeec00012433c70d725fd2ba0abc9fd9fca4a6c4a051b1ed98d2797469aac")
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/8wa224bN/bdX3FiGJoZRB7L2aLASpEWjuJuA8RNYBnYh6CtqZkjiTVFaodUbNXRJ+zbvu8v7icU5HDuF0m2UdRAG83w3Hmu5ByvJYJUEQ3U8eDonvJQ3PsyIPxCSlQShkDkhgcwW/NAUcFdDx6PAAACwaVg6DMxd50vk/HFT3AxmVzeTH6GiSKRonwOmo7v+443MCh0Bu4ry4LKfxHGUI0F5xgoDBO6O2hfXl9/uu5DjAxcKA0cU0jY6D+5EPdXKCWZo+tgFInI6YLzmSGRmGDARqwjuI8pzWgkVZ5ChGod8fh5m2qsYKo4DCEUwXqJXPlzVJcM9c93mw+h62iVT4mx3elU8YRijLuKxDxCKcckCtuIGPxJQPhni1AkM9ciR5udFE4tYMH+Wv5v3+CVXTvM7FdUSr2x7z9dAcb8ZLvRpor7IZVkylCrrKI1DtIFyjlGP95cfYQhOG/linAIGJFyeMwECSmfn8qVgTkevT3TyyPQVuGUz7VbZVrlDesVzOxLtWGoRVgxok3mTJkI7iyuNUJJkJB+TeSI7WilOR41LuUFDelX+3/LRUWbnJXXq5AovChvsdvrwnmv1wUnURFURLicYSRhJiKInSoXTplDEMYmAQ11tHK8hwkqtwTTGKm4gvM+jAljmuM/Udm4v/48LrEqapFjbhCuUa6Z0uninlAFEnl4/XnsOinFPKkdUmVSRIZq3+kWuJQoaQcoCNHpFF/40hjn27cCFX8y/vB+4nklpTLFpDXpvqQGFTpashih04nJ+Qz5XC1gBL06xiZ1GbiZiC5JsDDoMBylW+yTMDQvPW9Qi95i1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