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:
OldNewDifferences
11 {-# STDLIB_VERSION 8 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func addFarmer () = {
88 let b = toString(a.caller)
99 let c = getInteger(b)
1010 if ((c == unit))
1111 then [IntegerEntry(b, 0)]
1212 else throw("Farmer already exists")
1313 }
1414
1515
1616
1717 @Callable(a)
1818 func addAuA (d,c) = {
1919 let e = {
2020 let f = getInteger(c)
2121 if ($isInstanceOf(f, "Int"))
2222 then {
2323 let g = f
2424 g
2525 }
2626 else 0
2727 }
2828 let h = getString((c + "_pending"))
2929 if (!(isDefined(getInteger(c))))
3030 then throw("Farmer does not exist")
3131 else if ((h == unit))
3232 then [StringEntry((c + "_pending"), "0"), StringEntry((c + "_0"), d), IntegerEntry(c, 1)]
3333 else [StringEntry((c + "_pending"), ((value(h) + ",") + toString(e))), StringEntry(((c + "_") + toString(e)), d), IntegerEntry(c, (e + 1))]
3434 }
3535
3636

github/deemru/w8io/169f3d6 
19.63 ms