tx · 7bgDHKA3s1H7ZfkdPr2dGQh5BhhHhBSDURtrFHLEjoNX

3Mp4QVcFQTst1LQknzmHbTRGPxtdFurqN9u:  -0.01000000 Waves

2024.10.26 15:51 [3343833] smart account 3Mp4QVcFQTst1LQknzmHbTRGPxtdFurqN9u > SELF 0.00000000 Waves

{ "type": 13, "id": "7bgDHKA3s1H7ZfkdPr2dGQh5BhhHhBSDURtrFHLEjoNX", "fee": 1000000, "feeAssetId": null, "timestamp": 1729947150219, "version": 2, "chainId": 84, "sender": "3Mp4QVcFQTst1LQknzmHbTRGPxtdFurqN9u", "senderPublicKey": "E7dZyomJa9gkLg3uDyfg98ZTqPsVm1JKmq3NMRRDNy6z", "proofs": [ "4u25474koYuDermdNFkeJSwGp4zQdzHL4eYG2K7wbGm59qtKnTY3cM8EKwPagBJvFJjoTvTpePiAewUrKLLU9tdc" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAMYW5zd2Vyc0NvdW50AAAAAAAAAAAUAAAAAAdhbnN3ZXJzCQAETAAAAAICAAAADkl0IGlzIGNlcnRhaW4uCQAETAAAAAICAAAAE0l0IGlzIGRlY2lkZWRseSBzby4JAARMAAAAAgIAAAAQV2l0aG91dCBhIGRvdWJ0LgkABEwAAAACAgAAABFZZXMgLSBkZWZpbml0ZWx5LgkABEwAAAACAgAAABNZb3UgbWF5IHJlbHkgb24gaXQuCQAETAAAAAICAAAAEUFzIEkgc2VlIGl0LCB5ZXMuCQAETAAAAAICAAAADE1vc3QgbGlrZWx5LgkABEwAAAACAgAAAA1PdXRsb29rIGdvb2QuCQAETAAAAAICAAAABFllcy4JAARMAAAAAgIAAAATU2lnbnMgcG9pbnQgdG8geWVzLgkABEwAAAACAgAAABZSZXBseSBoYXp5LCB0cnkgYWdhaW4uCQAETAAAAAICAAAAEEFzayBhZ2FpbiBsYXRlci4JAARMAAAAAgIAAAAYQmV0dGVyIG5vdCB0ZWxsIHlvdSBub3cuCQAETAAAAAICAAAAE0N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cmVzcwIAAAACX3EFAAAACHF1ZXN0aW9uCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAANY2FsbGVyQWRkcmVzcwIAAAACX2EFAAAABmFuc3dlcgUAAAADbmlsAAAAAPw9kTE=", "height": 3343833, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6maS5qjDXAvK5YmuYWgEjikvNhH7AuNhaVcu6QLmMwGr Next: 7Lf2QHwsdUzxUnm7t95k85jnQ4mK1bCG2LJGXmWDCqBf Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 20
55
66 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."]
77
88 func c (d,e) = {
99 let f = sha256(toBytes((d + e)))
1010 let g = toInt(f)
1111 b[(g % a)]
1212 }
1313
1414
1515 func h (i) = {
1616 let j = getString(this, (i + "_a"))
1717 if ($isInstanceOf(j, "String"))
1818 then {
1919 let k = j
2020 k
2121 }
2222 else i
2323 }
2424
2525
2626 @Callable(l)
2727 func tellme (d) = {
2828 let m = toBase58String(l.caller.bytes)
2929 let n = c(d, h(m))
3030 [StringEntry((m + "_q"), d), StringEntry((m + "_a"), n)]
3131 }
3232
3333

github/deemru/w8io/026f985 
18.20 ms