tx · 9G8uUmvMLqQfC9MJoFiMbpb1N5nwn1Uzn1JKpzCDjXAa 3N58Ce8d3oa3Mx1oDMPuLD4X6xVf76FrXs6: -0.01000000 Waves 2021.08.20 13:53 [1666575] smart account 3N58Ce8d3oa3Mx1oDMPuLD4X6xVf76FrXs6 > SELF 0.00000000 Waves
{ "type": 13, "id": "9G8uUmvMLqQfC9MJoFiMbpb1N5nwn1Uzn1JKpzCDjXAa", "fee": 1000000, "feeAssetId": null, "timestamp": 1629456838360, "version": 2, "chainId": 84, "sender": "3N58Ce8d3oa3Mx1oDMPuLD4X6xVf76FrXs6", "senderPublicKey": "8HKjV4NUfzorPgUptk8sJrS9JXp5c1oUAbFa3hM1UGQK", "proofs": [ "3cY1WVegBGXiaM3FikJzQGoeHNnRJj1fcTToAMg1PjwayFbMKCJJ9BBzuXYTNmQjLuhxdsKw3YKBizL3xakwwua" ], "script": "base64:AAIDAAAAAAAAAOYIARIDCgEIGhIKAmExEgxhbnN3ZXJzQ291bnQaDQoCYTISB2Fuc3dlcnMaDwoCYTMSCWdldEFuc3dlchoOCgJhNBIIcXVlc3Rpb24aFAoCYTUSDnByZXZpb3VzQW5zd2VyGgoKAmE2EgRoYXNoGgsKAmE3EgVpbmRleBoXCgJhOBIRZ2V0UHJldmlvdXNBbnN3ZXIaDQoCYTkSB2FkZHJlc3MaDQoCYjESByRtYXRjaDAaBwoCYjISAWEaBwoCYjMSAWkaEwoCYjQSDWNhbGxlckFkZHJlc3MaDAoCYjUSBmFuc3dlcgAAAAQAAAAAAmExAAAAAAAAAAAUAAAAAAJhMgkABEwAAAACAgAAAA5JdCBpcyBjZXJ0YWluLgkABEwAAAACAgAAABNJdCBpcyBkZWNpZGVkbHkgc28uCQAETAAAAAICAAAAEFdpdGhvdXQgYSBkb3VidC4JAARMAAAAAgIAAAARWWVzIC0gZGVmaW5pdGVseS4JAARMAAAAAgIAAAATWW91IG1heSByZWx5IG9uIGl0LgkABEwAAAACAgAAABFBcyBJIHNlZSBpd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AAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAAAmI0AgAAAAJfcQUAAAACYTQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAACYjQCAAAAAl9hBQAAAAJiNQUAAAADbmlsAAAAAC+3Jq8=", "height": 1666575, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = 20 | |
5 | + | ||
6 | + | let b = ["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 c (d,e) = { | |
9 | + | let f = sha256(toBytes((d + e))) | |
10 | + | let g = toInt(f) | |
11 | + | b[(g % a)] | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | func h (i) = { | |
16 | + | let j = getString(this, (i + "_a")) | |
17 | + | if ($isInstanceOf(j, "String")) | |
18 | + | then { | |
19 | + | let k = j | |
20 | + | k | |
21 | + | } | |
22 | + | else i | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | @Callable(l) | |
27 | + | func tellme (d) = { | |
28 | + | let m = toBase58String(l.caller.bytes) | |
29 | + | let n = c(d, h(m)) | |
30 | + | WriteSet([DataEntry((m + "_q"), d), DataEntry((m + "_a"), n)]) | |
31 | + | } | |
32 | + | ||
33 | + |
github/deemru/w8io/03bedc9 18.94 ms ◑![]()