tx · 7HyoF5vDuuKUx6XCH98tQEt2s4CENqeQxwEwKLtoFpZy

3N2jWESwHLWJ6GG4i6nCDppwV87SRW1Q25Y:  -0.01000000 Waves

2022.01.28 11:40 [1898575] smart account 3N2jWESwHLWJ6GG4i6nCDppwV87SRW1Q25Y > SELF 0.00000000 Waves

{ "type": 13, "id": "7HyoF5vDuuKUx6XCH98tQEt2s4CENqeQxwEwKLtoFpZy", "fee": 1000000, "feeAssetId": null, "timestamp": 1643359215535, "version": 2, "chainId": 84, "sender": "3N2jWESwHLWJ6GG4i6nCDppwV87SRW1Q25Y", "senderPublicKey": "DQF4VVDi5trfqSWL4Yom4yyNyyPEzmshF5FjUtfUN45n", "proofs": [ "wwEquVNrf8DvaRPzsuBde4u9BcE4gwVDsV4fsesTC5iqDvWkSeSUhVUJDzYFui5E3wZdDmrwsrJCLAhitQtJ5zJ" ], "script": "base64:AAIDAAAAAAAAANgIARIDCgEIGhEKAWESDGFuc3dlcnNDb3VudBoMCgFiEgdhbnN3ZXJzGg4KAWMSCWdldEFuc3dlchoNCgFkEghxdWVzdGlvbhoTCgFlEg5wcmV2aW91c0Fuc3dlchoJCgFmEgRoYXNoGgoKAWcSBWluZGV4GhYKAWgSEWdldFByZXZpb3VzQW5zd2VyGgwKAWkSB2FkZHJlc3MaDAoBahIHJG1hdGNoMBoGCgFrEgFhGgYKAWwSAWkaEgoBbRINY2FsbGVyQWRkcmVzcxoLCgFuEgZhbnN3ZXIAAAAEAAAAAAFhAAAAAAAAAAAUAAAAAAFiCQAETAAAAAICAAAADkl0IGlzIGNlcnRhaW4uCQAETAAAAAICAAAAE0l0IGlzIGRlY2lkZWRseSBzby4JAARMAAAAAgIAAAAQV2l0aG91dCBhIGRvdWJ0LgkABEwAAAACAgAAABFZZXMgLSBkZWZpbml0ZWx5LgkABEwAAAACAgAAABNZb3UgbWF5IHJlbHkgb24gaXQuCQAETAAAAAICAAAAEUFzIEkgc2VlIGl0LCB5ZXMuCQAETAAAAAICAAAADE1v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AAAAFkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAAAW0CAAAAAl9hBQAAAAFuBQAAAANuaWwAAAAADG+fNA==", "height": 1898575, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 383AkVTzoSgmeJcSTvvu6KsAfxASJxXZN1SmGpJbQ7ve Next: none Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# 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+ }
413
514
6-@Callable(a)
7-func call () = {
8- let b = Issue("Asset", "", 1, 0, true, unit, 0)
9- let c = calculateAssetId(b)
10-[BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), b, Reissue(c, 1, false), Burn(c, 1), ScriptTransfer(a.caller, 1, c)]
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)])
1131 }
1232
1333

github/deemru/w8io/169f3d6 
119.08 ms