tx · Dy1XqduBMmLgqVrL4x1UiAoeEPkrVSf4shnjj2NyC31x

3N44AJ6TwKb5FkBrsBLgtCT7HGPxuvf2ErA:  -0.07000000 Waves

2020.03.19 11:07 [915919] smart account 3N44AJ6TwKb5FkBrsBLgtCT7HGPxuvf2ErA > SELF 0.00000000 Waves

{ "type": 13, "id": "Dy1XqduBMmLgqVrL4x1UiAoeEPkrVSf4shnjj2NyC31x", "fee": 7000000, "feeAssetId": null, "timestamp": 1584605235197, "version": 1, "sender": "3N44AJ6TwKb5FkBrsBLgtCT7HGPxuvf2ErA", "senderPublicKey": "6BB8x493rWGt7iKaE36s9ogm6C8zXB222dYqB9LUfV52", "proofs": [ "jSPNg1juEQUCMkTa2F1YGC9sUhTKxdrpVi9UcyM9kSUD8pe6PZj7v9Du5MDvBU2ckBEj62ozsXco8K3iiCmDe5q" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAEBAAAAA3NheQAAAAACAAAADEhlbGxvIHdvcmxkIQAAAAAAAAAABukmYA==", "chainId": 84, "height": 915919, "spentComplexity": 0 } View: original | compacted Prev: GZd6L6USy2S374EBPM9gAvuEkKsnqKC8Tg9HmdupM7R8 Next: 9yBnopeMg8n2x9Wpg2L7yNiFJikvWX2YKqWDFMCChGuh Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let answersCount = 20
4+func say () = "Hello world!"
55
6-let answers = ["It is certain.", "It is decidedly so.", "Without a doubt.", "Yes - definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try again.", "Ask again later.", "Better not tell you now.", "Cannot predict now.", "Concentrate and ask again.", "Don't count on it.", "My reply is no.", "My sources say no.", "Outlook not so good.", "Very doubtful."]
7-
8-func getAnswer (question,previousAnswer) = {
9- let hash = sha256(toBytes((question + previousAnswer)))
10- let index = toInt(hash)
11-answers[(index % answersCount)]
12- }
13-
14-
15-func getPreviousAnswer (address) = match getString(this, (address + "_a")) {
16- case a: String =>
17- a
18- case _ =>
19- address
20-}
21-
22-
23-@Callable(i)
24-func tellme (question) = {
25- let callerAddress = toBase58String(i.caller.bytes)
26- let answer = getAnswer(question, getPreviousAnswer(callerAddress))
27- WriteSet([DataEntry((callerAddress + "_q"), question), DataEntry((callerAddress + "_a"), answer)])
28- }
296
307

github/deemru/w8io/169f3d6 
50.35 ms