SC CODE: Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "main_mining.js.gz")
31 STORE("descrHdr", "Orbis main_mining.js")
32 STORE("iconURLHdr", "orbis_main_mining_js")
33 STORE("dURL", "orbis_main_mining_js")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "2549efd7539cc274d7d15155380280cddd4498b6309be0a5fa00cd176f3fc902")
37 STORE("fileCheckS", "21924ac9a0f40b6a6bfe8724a5c843596981a088f425bed1a906102770159a46")
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/+Rb73LbNhL/7qdAPGlJXSRa6TW5xKrcSZx07Bm7zdSZ6VfDJCShIQEZAKXINj/e5zzA3YP0efoC9wo3AEESIEGKcpy2c5fph0TcXewu9s9vAXQ/5QhwwXAo9id7s5SEAlMCYgqjc0wwmR9TMsNzfwBu9wAAQLCN/pv8E1LCBeBwhaJjhqCg7FUUMcQ5mIKYhjC+EJTBOQrmSJwKlPheaJF5g4lL1msowsUFvkGtYq4KihYJue6nRCC2gnGrmMQiM2XhGfAddg0M49WSdasdPBObQykJ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aQrx3a85Z9RpltFeW3b9QC9+bT5z3/8XeA5GEVvV4iIM8wFIoj53pWKpJTIjfeGFcZDJshzYjzXNfBgslfa01zrzU/nuh6eURgha71yOWd0TpTo/wYAAP//iOsKLk83AAA=
*/ |
| 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_mining.js.gz")
31 STORE("descrHdr", "Orbis main_mining.js")
32 STORE("iconURLHdr", "orbis_main_mining_js")
33 STORE("dURL", "orbis_main_mining_js")
34 STORE("docType", "TELA-JS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "2549efd7539cc274d7d15155380280cddd4498b6309be0a5fa00cd176f3fc902")
37 STORE("fileCheckS", "21924ac9a0f40b6a6bfe8724a5c843596981a088f425bed1a906102770159a46")
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/+Rb73LbNhL/7qdAPGlJXSRa6TW5xKrcSZx07Bm7zdSZ6VfDJCShIQEZAKXINj/e5zzA3YP0efoC9wo3AEESIEGKcpy2c5fph0TcXewu9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