tx · Ap7qQhYTjLUWauEp16SLcitEQmfVj4T3Yd1FcZPNkU22 3N2qvmoGLrXMyTgJRp4r8RubbeuEVawDTFY: -0.01000000 Waves 2022.02.02 11:30 [1905744] smart account 3N2qvmoGLrXMyTgJRp4r8RubbeuEVawDTFY > SELF 0.00000000 Waves
{ "type": 13, "id": "Ap7qQhYTjLUWauEp16SLcitEQmfVj4T3Yd1FcZPNkU22", "fee": 1000000, "feeAssetId": null, "timestamp": 1643790676303, "version": 2, "chainId": 84, "sender": "3N2qvmoGLrXMyTgJRp4r8RubbeuEVawDTFY", "senderPublicKey": "EEm46RdgjTVxLLTTjTAkQ5KmWDL99rC7XEvqYnmB4AeH", "proofs": [ "x1SjU6iuUgf4WvGGzJKPKoAFN52GH1wj4eHUnCBYNLgaYhZC6BxykLAVjppooVL4sJDb8MCk2XKUqTapyzAHkrt" ], "script": "base64:AAIFAAAAAAAAADwIAhIAGgYKAWESAWkaCgoBYhIFYXNzZXQaDAoBYxIHYXNzZXRJZBoHCgFkEgJ0eBoLCgFlEgZ2ZXJpZnkAAAAAAAAAAQAAAAFhAQAAAARjYWxsAAAAAAQAAAABYgkABEMAAAAHAgAAAAVBc3NldAIAAAAAAAAAAAAAAAABAAAAAAAAAAAABgUAAAAEdW5pdAAAAAAAAAAAAAQAAAABYwkABDgAAAABBQAAAAFiCQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAA3N0cgkABEwAAAACBQAAAAFiCQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAABYwAAAAAAAAAAAQcJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAAFjAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFhAAAABmNhbGxlcgAAAAAAAAAAAQUAAAABYwUAAAADbmlsAAAAAQAAAAFkAQAAAAFlAAAAAAkAAfQAAAADCAUAAAABZAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAWQAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAABZAAAAA9zZW5kZXJQdWJsaWNLZXlfUzVi", "height": 1905744, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8EPkqDAne2Uj3qVkSCLn4Z6LWZ5MJh4FpmwG9g2Rpw79 Next: none 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 | 4 | ||
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 | 5 | ||
8 | - | func c (d,e) = { | |
9 | - | let f = sha256(toBytes((d + e))) | |
10 | - | let g = toInt(f) | |
11 | - | b[(g % a)] | |
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)] | |
12 | 11 | } | |
13 | 12 | ||
14 | 13 | ||
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 | - | ||
14 | + | @Verifier(d) | |
15 | + | func e () = sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey) | |
33 | 16 |
github/deemru/w8io/169f3d6 44.16 ms ◑