SC CODE: Function Initialize() Uint64
10 IF SIGNER() == address_raw("dero1qyvqpdftj8r6005xs20rnflakmwa5pdxg9vcjzdcuywq2t8skqhvwqglt6x0g") THEN GOTO 30
20 RETURN 1
30 RETURN 0
End Function
Function Post(comment String,amount Uint64) Uint64
5 Initialize()
7 dim i,c,e,t as String
9 dim a as Uint64
10 LET i = HEX(TXID())
20 LET c = HEX(comment)
30 LET a = HEX(amount)
40 LET e = i+"::"+c+"::"+a
50 LET t = HEX(BLOCK_TIMESTAMP())
60 STORE(t,e)
70 RETURN 0
End Function
|
SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'Function Initialize() Uint64
10 IF SIGNER() == address_raw("dero1qyvqpdftj8r6005xs20rnflakmwa5pdxg9vcjzdcuywq2t8skqhvwqglt6x0g") THEN GOTO 30
20 RETURN 1
30 RETURN 0
End Function
Function Post(comment String,amount Uint64) Uint64
5 Initialize()
7 dim i,c,e,t as String
9 dim a as Uint64
10 LET i = HEX(TXID())
20 LET c = HEX(comment)
30 LET a = HEX(amount)
40 LET e = i+"::"+c+"::"+a
50 LET t = HEX(BLOCK_TIMESTAMP())
60 STORE(t,e)
70 RETURN 0
End Function
'] |