tx · 5HuwC1VwP519yZ1ZrZAEB7J2ZuqV1cxXsTnNg8ixsF7t

3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki:  -0.01000000 Waves

2024.06.25 11:57 [3166056] smart account 3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki > SELF 0.00000000 Waves

{ "type": 13, "id": "5HuwC1VwP519yZ1ZrZAEB7J2ZuqV1cxXsTnNg8ixsF7t", "fee": 1000000, "feeAssetId": null, "timestamp": 1719305836540, "version": 2, "chainId": 84, "sender": "3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki", "senderPublicKey": "Em3xR3qCDVUJh4RYP61j2iaMKdEHYvyYEA4kmBMKQHLd", "proofs": [ "3jbF9uToDU6U5XPQT5cuGC6qncsmz7ojjvMAh6BKbagX5XsTxanbswN8FvYjcUB2iACS6RNmNvf5gedQT5Tq3a9B" ], "script": "base64:CAIECAISAAABAWkBB215VG9rZW4ACQCUCgIJAMwIAgkAwggFCQCsAgICAlNfCQCvAgIJANgEAQgIBQFpBmNhbGxlcgVieXRlcwAGAgAAoI0GAAIGBQNuaWwFBHVuaXQA0q2PDQ==", "height": 3166056, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8nf1ppS63miux47HHN6EKRbKTAtuEiR69FqxJ3QKYbGL Next: 8Dj7x2vHkpEWKwK5TY7Pkvcb1wygJPmFsoUzEqeTQzaA Full:
OldNewDifferences
11 {-# STDLIB_VERSION 8 #-}
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)]
12- }
13-
14-
15-func getPreviousAnswer (address) = match getString(this, (address + "_a")) {
16- case a: String =>
17- a
18- case _ =>
19- address
20-}
214
225
236 @Callable(i)
24-func tellme (question) = {
25- let callerAddress = toString(i.caller)
26- let answer = getAnswer(question, getPreviousAnswer(callerAddress))
27-[StringEntry((callerAddress + "_q"), question), StringEntry((callerAddress + "_a"), answer)]
28- }
7+func myToken () = $Tuple2([Issue(("S_" + take(toBase58String(i.caller.bytes), 6)), "", 100000, 2, true)], unit)
298
309

github/deemru/w8io/026f985 
17.45 ms