tx · 46TNtkKzc2XpdgU9jbLLhdbyiSGG2QwXwAvVG1nCPzkR

3Mytb3VCj8DZHoLi79gYgdBebhSzear4bcv:  -0.01000000 Waves

2022.06.13 12:06 [2094399] smart account 3Mytb3VCj8DZHoLi79gYgdBebhSzear4bcv > SELF 0.00000000 Waves

{ "type": 13, "id": "46TNtkKzc2XpdgU9jbLLhdbyiSGG2QwXwAvVG1nCPzkR", "fee": 1000000, "feeAssetId": null, "timestamp": 1655111178180, "version": 2, "chainId": 84, "sender": "3Mytb3VCj8DZHoLi79gYgdBebhSzear4bcv", "senderPublicKey": "8B7i8HQWLc9Wv2DgoTSyf8RT8xizHECxGY9kvtm5h8zY", "proofs": [ "3SyYXMkSXj1TRVZ9NRJyBnHTSSayeDtpuWgNN9Hnc3RMEshbXHmjeXUhfAHQvUphVG5hdANPiXYQBjjexXVkv6Hy" ], "script": "base64:AAIFAAAAAAAAAA0IAhIECgIICBIDCgEIAAAACAAAAAAKc2hpbnl3Z2dpZAEAAAAgiWnPAv+2urnUcZbXebiZdiawdNB3efRzbobw9HOfBiYAAAAAD3RyZWFzdXJ5QWRkcmVzcwEAAAAaAVRl+PAWCwTAWUJwGp5IjJf/ftwcYvLdu/0AAAAADm5hdGlvbnNBZGRyZXNzAQAAABoBVE2F6N70+ERrWRA7cF/Dt7llDlH1REZtoAAAAAASbWFya2V0cGxhY2VBZGRyZXNzAQAAABoBVB0huZPx/BjDpxtJcRZDllF066xULiW87wAAAAALYWRtaW5XYWxsZXQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAQAAAA10cnlHZX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AEAAAALdHJlYXN1cmVLZXkEAAAABW93bmVkCQEAAAAMdHJ5R2V0U3RyaW5nAAAAAQkAASwAAAACBQAAAAt0cmVhc3VyZUtleQIAAAAHX1JlZGVlbQMJAQAAAAIhPQAAAAIFAAAABW93bmVkCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAADNUaGlzIHRyZWFzdXJlIGhhcyBiZWVuIGRpc2NvdmVyZWQgYnkgYW5vdGhlciBwbGF5ZXIEAAAAC3RyZWFzdXJlVmFsCQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEFAAAAC3RyZWFzdXJlS2V5CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALdHJlYXN1cmVWYWwFAAAACnNoaW55d2dnaWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAAt0cmVhc3VyZUtleQIAAAAHX1JlZGVlbQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAt0cmVhc3VyZUtleQUAAAADbmlsAAAAALmSFog=", "height": 2094399, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7jeRSzsPDVemfDwZ8otZRLZsTWdkTtieY4ioB8ybmwXz Next: 5AA2EP2U25zA5GEJtYTZ2VLXnycinqfajZopfiQHW2rF Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf'
55
66 let b = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ'
77
88 let c = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy'
99
1010 let d = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A'
1111
1212 let e = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9")
1313
1414 func f (g) = {
1515 let h = getString(this, g)
1616 if ($isInstanceOf(h, "String"))
1717 then {
1818 let i = h
1919 i
2020 }
2121 else ""
2222 }
2323
2424
2525 func j (g) = {
2626 let h = getInteger(this, g)
2727 if ($isInstanceOf(h, "Int"))
2828 then {
2929 let i = h
3030 i
3131 }
3232 else 0
3333 }
3434
3535
3636 func k (l) = if (if (if (if ((l == e))
3737 then true
3838 else (l == this))
3939 then true
4040 else (l.bytes == c))
4141 then true
4242 else (l.bytes == b))
4343 then true
4444 else (l.bytes == d)
4545
4646
4747 @Callable(m)
4848 func discoverTreasure (n,o) = if (!(k(m.caller)))
4949 then throw("You are not authorized to perform this operation")
5050 else {
5151 let p = f((n + "_Redeem"))
5252 if ((p != ""))
5353 then throw("This treasure has been discovered by another player")
5454 else [StringEntry((n + "_Redeem"), o)]
5555 }
5656
5757
5858
5959 @Callable(m)
6060 func redeemTreasure (n) = {
6161 let p = f((n + "_Redeem"))
6262 if ((p != toString(m.caller)))
6363 then throw("This treasure has been discovered by another player")
6464 else {
6565 let q = j(n)
6666 [ScriptTransfer(m.caller, q, a), DeleteEntry((n + "_Redeem")), DeleteEntry(n)]
6767 }
6868 }
6969
7070

github/deemru/w8io/026f985 
24.36 ms