tx · 81t3ePntwCVWW5pGUwBVtxMPYx4vDg5her6aRKRqHm8k

3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG:  -0.00100000 Waves

2022.09.17 11:33 [2232874] smart account 3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG > SELF 0.00000000 Waves

{ "type": 13, "id": "81t3ePntwCVWW5pGUwBVtxMPYx4vDg5her6aRKRqHm8k", "fee": 100000, "feeAssetId": null, "timestamp": 1663403735925, "version": 2, "chainId": 84, "sender": "3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG", "senderPublicKey": "3HzjgQV5WnCJUyY4JthYyJGZt3EhxWSTPvisU3aRiz8n", "proofs": [ "3ZVL9Z47qyf5mXPZTXQHFeY9nocUGQgdeZk43GkELiVqxo1pFWAA3scZog8ufgYWDEZcedh6DfJ85n2rKU33iNeq" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAEBAAAABHRlc3QAAAABAAAABmFtb3VudAQAAAADYmJiCQAAaQAAAAIFAAAABmFtb3VudAAAAAAAAAAAAgMJAAAAAAAAAgUAAAADYmJiAAAAAAAAAAAABgkAAAIAAAABAgAAAAtub3QgYWxsb3dlZAAAAAAAAAAAnQAIQg==", "height": 2232874, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5rggokqmPXyjhpX15yb9rVTgrFTaVS7owwzBgXyW5ZPm Next: CxwvkjDM6i6gNeu7qMtZGDjb3LLjSatUcvgdNEEY6XtL Full:
OldNewDifferences
1-{-# STDLIB_VERSION 3 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let answersCount = 20
5-
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)]
4+func test (amount) = {
5+ let bbb = (amount / 2)
6+ if ((bbb == 0))
7+ then true
8+ else throw("not allowed")
129 }
1310
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- }
2911
3012

github/deemru/w8io/169f3d6 
21.25 ms