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:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 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)] | |
4 | + | func a (b) = { | |
5 | + | let c = (b / 2) | |
6 | + | if ((c == 0)) | |
7 | + | then true | |
8 | + | else throw("not allowed") | |
12 | 9 | } | |
13 | 10 | ||
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 | 11 | ||
33 | 12 |
github/deemru/w8io/026f985 46.21 ms ◑