tx · 213Vpdm4GCyyUV6xFQmHB493gH66Ne2cTbeueFY8Hgtw

3MuAk151ARFqSSJVvmi9jnnB2CpHEAFJZvw:  -0.01000000 Waves

2022.04.10 16:04 [2002521] smart account 3MuAk151ARFqSSJVvmi9jnnB2CpHEAFJZvw > SELF 0.00000000 Waves

{ "type": 13, "id": "213Vpdm4GCyyUV6xFQmHB493gH66Ne2cTbeueFY8Hgtw", "fee": 1000000, "feeAssetId": null, "timestamp": 1649595858878, "version": 2, "chainId": 84, "sender": "3MuAk151ARFqSSJVvmi9jnnB2CpHEAFJZvw", "senderPublicKey": "4iVgB2GTeKhb77N73GVd4HJe95Bam8KYEgJHcweUMp8k", "proofs": [ "4EinVmBHbVMhNcTL6Gk3QzpJFZqEs4TSs8UYpvyYor2ZLKnWW6FuX67HgCsS4tmyjTbQkAMbp6b3HDw6p5GBUoZH" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAANY3JlYXRlTXlUb2tlbgAAAAADCQAAAAAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAEdGhpcwQAAAAFaXNzdWUJAARCAAAABQIAAAAGTlRva2VuAgAAABJOVG9rZW4gZm9yIFRlc3RpbmcAAAAAF0h26AAAAAAAAAAAAAMHBAAAAAJpZAkABDgAAAABBQAAAAVpc3N1ZQkABRQAAAACCQAETAAAAAIFAAAABWlzc3VlCQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAAmlkBQAAAAJpZAUAAAADbmlsBQAAAAR1bml0CQAAAgAAAAECAAAAFFRva2VuIGFscmVhZHkgaXNzdWVkAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl+CjRL", "height": 2002521, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7kbHRVk9GdmpAMw7cHU6JZNgkKCzqhBf3CM6h2C49WQE Next: none 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)]
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 = toBase58String(i.caller.bytes)
26- let answer = getAnswer(question, getPreviousAnswer(callerAddress))
27- WriteSet([DataEntry((callerAddress + "_q"), question), DataEntry((callerAddress + "_a"), answer)])
28- }
7+func createMyToken () = if ((i.caller == this))
8+ then {
9+ let issue = Issue("NToken", "NToken for Testing", 100000000000, 3, false)
10+ let id = calculateAssetId(issue)
11+ $Tuple2([issue, BinaryEntry("id", id)], unit)
12+ }
13+ else throw("Token already issued")
2914
15+
16+@Verifier(tx)
17+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3018

github/deemru/w8io/026f985 
21.25 ms