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/BjDpxtJcRZDllF066xULiW87wAAAAALYWRtaW5XYWxsZXQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAQAAAA10cnlHZXR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EAAAALdHJlYXN1cmVLZXkEAAAABW93bmVkCQEAAAAMdHJ5R2V0U3RyaW5nAAAAAQkAASwAAAACBQAAAAt0cmVhc3VyZUtleQIAAAAHX1JlZGVlbQMJAQAAAAIhPQAAAAIFAAAABW93bmVkCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAADNUaGlzIHRyZWFzdXJlIGhhcyBiZWVuIGRpc2NvdmVyZWQgYnkgYW5vdGhlciBwbGF5ZXIEAAAAC3RyZWFzdXJlVmFsCQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEFAAAAC3RyZWFzdXJlS2V5CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALdHJlYXN1cmVWYWwFAAAACnNoaW55d2dnaWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAAt0cmVhc3VyZUtleQIAAAAHX1JlZGVlbQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAt0cmVhc3VyZUtleQUAAAADbmlsAAAAALmSFog=", "height": 2094399, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7jeRSzsPDVemfDwZ8otZRLZsTWdkTtieY4ioB8ybmwXz Next: 5AA2EP2U25zA5GEJtYTZ2VLXnycinqfajZopfiQHW2rF Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | 6 | let b = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | 8 | let c = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
9 | 9 | ||
10 | 10 | let d = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A' | |
11 | 11 | ||
12 | 12 | let e = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
13 | 13 | ||
14 | 14 | func f (g) = { | |
15 | 15 | let h = getString(this, g) | |
16 | 16 | if ($isInstanceOf(h, "String")) | |
17 | 17 | then { | |
18 | 18 | let i = h | |
19 | 19 | i | |
20 | 20 | } | |
21 | 21 | else "" | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func j (g) = { | |
26 | 26 | let h = getInteger(this, g) | |
27 | 27 | if ($isInstanceOf(h, "Int")) | |
28 | 28 | then { | |
29 | 29 | let i = h | |
30 | 30 | i | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func k (l) = if (if (if (if ((l == e)) | |
37 | 37 | then true | |
38 | 38 | else (l == this)) | |
39 | 39 | then true | |
40 | 40 | else (l.bytes == c)) | |
41 | 41 | then true | |
42 | 42 | else (l.bytes == b)) | |
43 | 43 | then true | |
44 | 44 | else (l.bytes == d) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | @Callable(m) | |
48 | 48 | func discoverTreasure (n,o) = if (!(k(m.caller))) | |
49 | 49 | then throw("You are not authorized to perform this operation") | |
50 | 50 | else { | |
51 | 51 | let p = f((n + "_Redeem")) | |
52 | 52 | if ((p != "")) | |
53 | 53 | then throw("This treasure has been discovered by another player") | |
54 | 54 | else [StringEntry((n + "_Redeem"), o)] | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | ||
59 | 59 | @Callable(m) | |
60 | 60 | func redeemTreasure (n) = { | |
61 | 61 | let p = f((n + "_Redeem")) | |
62 | 62 | if ((p != toString(m.caller))) | |
63 | 63 | then throw("This treasure has been discovered by another player") | |
64 | 64 | else { | |
65 | 65 | let q = j(n) | |
66 | 66 | [ScriptTransfer(m.caller, q, a), DeleteEntry((n + "_Redeem")), DeleteEntry(n)] | |
67 | 67 | } | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 |
github/deemru/w8io/026f985 24.36 ms ◑