tx · 9j6kN7a2zgC4jyu7nSy4TpZUsuDaLKmXdTyjcT3wy1Nd 3N5jpZhAyxGaJKixmEqFctZvxSgLrsMr7Ai: -0.01000000 Waves 2022.02.25 12:35 [1938986] smart account 3N5jpZhAyxGaJKixmEqFctZvxSgLrsMr7Ai > SELF 0.00000000 Waves
{ "type": 13, "id": "9j6kN7a2zgC4jyu7nSy4TpZUsuDaLKmXdTyjcT3wy1Nd", "fee": 1000000, "feeAssetId": null, "timestamp": 1645781735344, "version": 2, "chainId": 84, "sender": "3N5jpZhAyxGaJKixmEqFctZvxSgLrsMr7Ai", "senderPublicKey": "GkgLzjDHbf9CxTLy63LTUyuooiFf824N7iPxagxTWxr", "proofs": [ "XQvkeYjTfeANmECuKDPjLXRo6QbayegBXjcrTvgRDXS8gAj2PkFb2MsW1NRZpyYx6pTSrzU3UA9ZhqRRxvHzD5c" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQAAAAAMYWRtaW5QdWJLZXkxAQAAACBE6rjAjUL4RUtuhT4vuFsEGO7C8vdZ3HKiPF/OD9JKQgAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWFzc2V0CQAEQwAAAAcCAAAABUFzc2V0AgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAGBQAAAAR1bml0AAAAAAAAAAAABAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAA3N0cgkABEwAAAACBQAAAAVhc3NldAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0SWQAAAAAAAAAAAEHCQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAHYXNzZXRJZAAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAEmFkbWluUHViS2V5MVNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTEAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkAAAAAAAAAAAB1Zg2BQ==", "height": 1938986, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HDUB9zrmf62EYzMbedoRTmTvbaQgwTyiWAtgs3aRsBen 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 = | |
4 | + | let a = base58'5e2K8FEPWCbLCKbpRy2JPMfLmsHJziBrLXzVHPhSiL5w' | |
5 | 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)] | |
6 | + | @Callable(b) | |
7 | + | func call () = { | |
8 | + | let c = Issue("Asset", "", 1, 0, true, unit, 0) | |
9 | + | let d = calculateAssetId(c) | |
10 | + | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), c, Reissue(d, 1, false), Burn(d, 1), ScriptTransfer(b.caller, 1, d)] | |
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 | |
14 | + | @Verifier(e) | |
15 | + | func f () = { | |
16 | + | let g = if (sigVerify(e.bodyBytes, e.proofs[0], a)) | |
17 | + | then 1 | |
18 | + | else 0 | |
19 | + | (g >= 1) | |
23 | 20 | } | |
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 | 21 |
github/deemru/w8io/169f3d6 34.91 ms ◑