SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'// Test system
Function Test(a String, x String) Uint64
10 dim deposit_count,win,min_play as Uint64
20 LET deposit_count = LOAD("deposit_count")+1
30 LET min_play = LOAD("min_play")
30 IF DEROVALUE() < min_play THEN GOTO 80
40 STORE("depositor_address" + (deposit_count-1), SIGNER())
50 STORE("deposit_total", LOAD("deposit_total") + DEROVALUE())
60 STORE("deposit_count",deposit_count)
70 STORE("a" + (deposit_count-1), a)
80 STORE("x" + (deposit_count-1), x)
End Function
Function InitializePrivate() Uint64
10 STORE("owner", SIGNER())
20 version("1.1.0")
30 STORE("deposit_count", 0)
40 STORE("deposit_total", 0)
50 STORE("max_deposit", 2)
60 STORE("min_play", 0.001)
70 STORE("readme", "Readme")
80 STORE("winner", "NA")
90 STORE("winnum", "NA")
100 RETURN 0
End Function'] |