tx · 6irAY5nZFNGmmkwNh6hsL9g2HCXGgh8c5Vc6EHyi8Zoj

3MxBZbnN8Z8sbYjjL5N3oG5C8nWq9NMeCEm:  -0.05000000 Waves

2023.02.10 13:30 [2443423] smart account 3MxBZbnN8Z8sbYjjL5N3oG5C8nWq9NMeCEm > SELF 0.00000000 Waves

{ "type": 13, "id": "6irAY5nZFNGmmkwNh6hsL9g2HCXGgh8c5Vc6EHyi8Zoj", "fee": 5000000, "feeAssetId": null, "timestamp": 1676024999008, "version": 2, "chainId": 84, "sender": "3MxBZbnN8Z8sbYjjL5N3oG5C8nWq9NMeCEm", "senderPublicKey": "Fzb2pKuqw3RczsDTEvYGoGgQopvSjQauWgeo5eCLn1Ma", "proofs": [ "3aXUufWqvMFPXhx7rxoVVpJoVVWGF7cHSh9fsCyrkUfHB29B4W8phHHpi5GWRcJmjw1wJcS2VajSj6hHKB92PbDF" ], "script": "base64:BgIHCAISAwoBCAQADGFuc3dlcnNDb3VudAAUAAdhbnN3ZXJzCQDMCAICDkl0IGlzIGNlcnRhaW4uCQDMCAICE0l0IGlzIGRlY2lkZWRseSBzby4JAMwIAgIQV2l0aG91dCBhIGRvdWJ0LgkAzAgCAhFZZXMgLSBkZWZpbml0ZWx5LgkAzAgCAhNZb3UgbWF5IHJlbHkgb24gaXQuCQDMCAICEUFzIEkgc2VlIGl0LCB5ZXMuCQDMCAICDE1vc3QgbGlrZWx5LgkAzAgCAg1PdXRsb29rIGdvb2QuCQDMCAICBFllcy4JAMwIAgITU2lnbnMgcG9pbnQgdG8geWVzLgkAzAgCAhZSZXBseSBoYXp5LCB0cnkgYWdhaW4uCQDMCAICEEFzayBhZ2FpbiBsYXRlci4JAMwIAgIYQmV0dGVyIG5vdCB0ZWxsIHlvdSBub3cuCQDMCAICE0Nhbm5vdCBwcmVkaWN0IG5vdy4JAMwIAgIaQ29uY2VudHJhdGUgYW5kIGFzayBhZ2Fpbi4JAMwIAgISRG9uJ3QgY291bnQgb24gaXQuCQDMCAICD015IHJlcGx5IGlzIG5vLgkAzAgCAhJNeSBzb3VyY2VzIHNheSBuby4JAMwIAgIUT3V0bG9vayBub3Qgc28gZ29vZC4JAMwIAgIOVmVyeSBkb3VidGZ1bC4FA25pbAEJZ2V0QW5zd2VyAghxdWVzdGlvbg5wcmV2aW91c0Fuc3dlcgQEaGFzaAkA9wMBCQCbAwEJAKwCAgUIcXVlc3Rpb24FDnByZXZpb3VzQW5zd2VyBAVpbmRleAkAsQkBBQRoYXNoCQCRAwIFB2Fuc3dlcnMJAGoCBQVpbmRleAUMYW5zd2Vyc0NvdW50ARFnZXRQcmV2aW91c0Fuc3dlcgEHYWRkcmVzcwQHJG1hdGNoMAkAnQgCBQR0aGlzCQCsAgIFB2FkZHJlc3MCAl9hAwkAAQIFByRtYXRjaDACBlN0cmluZwQBYQUHJG1hdGNoMAUBYQUHYWRkcmVzcwEBaQEGdGVsbG1lAQhxdWVzdGlvbgQNY2FsbGVyQWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEBmFuc3dlcgkBCWdldEFuc3dlcgIFCHF1ZXN0aW9uCQERZ2V0UHJldmlvdXNBbnN3ZXIBBQ1jYWxsZXJBZGRyZXNzCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUNY2FsbGVyQWRkcmVzcwICX3EFCHF1ZXN0aW9uCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUNY2FsbGVyQWRkcmVzcwICX2EFBmFuc3dlcgUDbmlsAFtURyg=", "height": 2443423, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FgU29UthxsSzZqdsgSxXcDkxEUnociexkvEWrrBz833s Next: none Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 3 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 20
2525
2626 @Callable(l)
2727 func tellme (d) = {
28- let m = toBase58String(l.caller.bytes)
28+ let m = toString(l.caller)
2929 let n = c(d, h(m))
30- WriteSet([DataEntry((m + "_q"), d), DataEntry((m + "_a"), n)])
30+[StringEntry((m + "_q"), d), StringEntry((m + "_a"), n)]
3131 }
3232
3333
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 3 #-}
1+{-# STDLIB_VERSION 6 #-}
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) = {
28- let m = toBase58String(l.caller.bytes)
28+ let m = toString(l.caller)
2929 let n = c(d, h(m))
30- WriteSet([DataEntry((m + "_q"), d), DataEntry((m + "_a"), n)])
30+[StringEntry((m + "_q"), d), StringEntry((m + "_a"), n)]
3131 }
3232
3333

github/deemru/w8io/026f985 
23.93 ms