tx · 89Ff2muwvXuegryzqjpaxP2VtN8SAf7e26HFe4XFTA8Z 3N51YcUcfAeLVazt1i6wKKThQLJh4dfHbxM: -0.01000000 Waves 2019.07.22 11:53 [596956] smart account 3N51YcUcfAeLVazt1i6wKKThQLJh4dfHbxM > SELF 0.00000000 Waves
{ "type": 13, "id": "89Ff2muwvXuegryzqjpaxP2VtN8SAf7e26HFe4XFTA8Z", "fee": 1000000, "feeAssetId": null, "timestamp": 1563785635887, "version": 1, "sender": "3N51YcUcfAeLVazt1i6wKKThQLJh4dfHbxM", "senderPublicKey": "A1sZcVac83eMaffJaER9yGPeN4vchgfCSknzpxAthVdE", "proofs": [ "4LJ1X33oZjAsqrG7RrTUEeGdfqMLzJf1E1xTjetTvQyrWesbAcfbt8L5k3TDqGA14igFX5HeRvfchoGLCDjvMjqN" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAAAxhbnN3ZXJzQ291bnQAAAAAAAAAABQAAAAAB2Fuc3dlcnMJAARMAAAAAgIAAAAOSXQgaXMgY2VydGFpbi4JAARMAAAAAgIAAAATSXQgaXMgZGVjaWRlZGx5IHNvLgkABEwAAAACAgAAABBXaXRob3V0IGEgZG91YnQuCQAETAAAAAICAAAAEVllcyAtIGRlZmluaXRlbHkuCQAETAAAAAICAAAAE1lvdSBtYXkgcmVseSBvbiBpdC4JAARMAAAAAgIAAAARQXMgSSBzZWUgaXQsIHllcy4JAARMAAAAAgIAAAAMTW9zdCBsaWtlbHkuCQAETAAAAAICAAAADU91dGxvb2sgZ29vZC4JAARMAAAAAgIAAAAEWWVzLgkABEwAAAACAgAAABNTaWducyBwb2ludCB0byB5ZXMuCQAETAAAAAICAAAAFlJlcGx5IGhhenksIHRyeSBhZ2Fpbi4JAARMAAAAAgIAAAAQQXNrIGFnYWluIGxhdGVyLgkABEwAAAACAgAAABhCZXR0ZXIgbm90IHRlbGwgeW91IG5vdy4JAARMAAAAAgIAAAATQ2Fubm90IHByZWRpY3Qgbm93LgkABEwAAAACA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F1ZXN0aW9uCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAADWNhbGxlckFkZHJlc3MCAAAAAl9hBQAAAAZhbnN3ZXIFAAAAA25pbAAAAACOjDZR", "chainId": 84, "height": 596956, "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/026f985 17.60 ms ◑