tx · DEYCBSYmTsevBGxfUJXgdHmcMNAr4rW2y64Rc2Nane59 3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT: -0.00100000 Waves 2024.11.16 22:51 [3374452] smart account 3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT > SELF 0.00000000 Waves
{ "type": 13, "id": "DEYCBSYmTsevBGxfUJXgdHmcMNAr4rW2y64Rc2Nane59", "fee": 100000, "feeAssetId": null, "timestamp": 1731786711736, "version": 2, "chainId": 84, "sender": "3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT", "senderPublicKey": "ET6ym4HVZdZ7NydKrh8XyxxRd45au4zvLQq7LieAFSs1", "proofs": [ "5LrMHwnuLZqtR4Q5LLF4FSDxVqoqsibeiwE2TLQAwuQRyijiafhvLmdSj7MvoFvu9t8BYUEgBURK2ZEmorvhDwb3" ], "script": "base64:CAIKCAISABIECgIICAACAWkBCWFkZEZhcm1lcgAEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBAZmYXJtZXIJAJ8IAQUHYWRkcmVzcwMJAAACBQZmYXJtZXIFBHVuaXQJAMwIAgkBDEludGVnZXJFbnRyeQIFB2FkZHJlc3MAAAUDbmlsCQACAQIVRmFybWVyIGFscmVhZHkgZXhpc3RzAWkBBmFkZEF1QQIEZGF0YQZmYXJtZXIEBWNvdW50BAckbWF0Y2gwCQCfCAEFBmZhcm1lcgMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAQHcGVuZGluZwkAoggBCQCsAgIFBmZhcm1lcgIIX3BlbmRpbmcDCQEBIQEJAQlpc0RlZmluZWQBCQCfCAEFBmZhcm1lcgkAAgECFUZhcm1lciBkb2VzIG5vdCBleGlzdAMJAAACBQdwZW5kaW5nBQR1bml0CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUGZmFybWVyAghfcGVuZGluZwIBMAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBmZhcm1lcgICXzAFBGRhdGEJAMwIAgkBDEludGVnZXJFbnRyeQIFBmZhcm1lcgABBQNuaWwJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQZmYXJtZXICCF9wZW5kaW5nCQCsAgIJAKwCAgkBBXZhbHVlAQUHcGVuZGluZwIBLAkApAMBBQVjb3VudAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgUGZmFybWVyAgFfCQCkAwEFBWNvdW50BQRkYXRhCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQZmYXJtZXIJAGQCBQVjb3VudAABBQNuaWwA5e6nSQ==", "height": 3374452, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5pjZfQmnnhbWRuBsko1kBrTw6eRNrgPCjXrtvuQDvy9a Next: EAJcmakez8xRH1RJicwzmoy86DUMVK8QVA9DjAR6bvyE Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 8 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func addFarmer () = { | |
8 | 8 | let b = toString(a.caller) | |
9 | 9 | let c = getInteger(b) | |
10 | 10 | if ((c == unit)) | |
11 | 11 | then [IntegerEntry(b, 0)] | |
12 | 12 | else throw("Farmer already exists") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(a) | |
18 | 18 | func addAuA (d,c) = { | |
19 | 19 | let e = { | |
20 | 20 | let f = getInteger(c) | |
21 | 21 | if ($isInstanceOf(f, "Int")) | |
22 | 22 | then { | |
23 | 23 | let g = f | |
24 | 24 | g | |
25 | 25 | } | |
26 | 26 | else 0 | |
27 | 27 | } | |
28 | 28 | let h = getString((c + "_pending")) | |
29 | 29 | if (!(isDefined(getInteger(c)))) | |
30 | 30 | then throw("Farmer does not exist") | |
31 | 31 | else if ((h == unit)) | |
32 | 32 | then [StringEntry((c + "_pending"), "0"), StringEntry((c + "_0"), d), IntegerEntry(c, 1)] | |
33 | 33 | else [StringEntry((c + "_pending"), ((value(h) + ",") + toString(e))), StringEntry(((c + "_") + toString(e)), d), IntegerEntry(c, (e + 1))] | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 |
github/deemru/w8io/169f3d6 19.63 ms ◑