tx · 5pjZfQmnnhbWRuBsko1kBrTw6eRNrgPCjXrtvuQDvy9a

3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT:  -0.00100000 Waves

2024.11.16 22:50 [3374451] smart account 3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT > SELF 0.00000000 Waves

{ "type": 13, "id": "5pjZfQmnnhbWRuBsko1kBrTw6eRNrgPCjXrtvuQDvy9a", "fee": 100000, "feeAssetId": null, "timestamp": 1731786681030, "version": 2, "chainId": 84, "sender": "3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT", "senderPublicKey": "ET6ym4HVZdZ7NydKrh8XyxxRd45au4zvLQq7LieAFSs1", "proofs": [ "532crZVrxaxTqkDpSAgZzmgyvss31ozLfWY7t23Z7jsp2wtb2xfDMguSmmxAsx4QVjSpApUQ6YmYPXd8zH4XzjqY" ], "script": "base64:CAIKCAISABIECgIICAACAWkBCWFkZEZhcm1lcgAEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBAZmYXJtZXIJAJ8IAQUHYWRkcmVzcwMJAAACBQZmYXJtZXIFBHVuaXQJAMwIAgkBDEludGVnZXJFbnRyeQIFB2FkZHJlc3MAAAUDbmlsCQACAQIVRmFybWVyIGFscmVhZHkgZXhpc3RzAWkBBmFkZEF1QQIEZGF0YQZmYXJtZXIEBWNvdW50BAckbWF0Y2gwCQCfCAEFBmZhcm1lcgMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAQHcGVuZGluZwkAoggBCQCsAgIFBmZhcm1lcgIIX3BlbmRpbmcDCQEBIQEJAQlpc0RlZmluZWQBCQCfCAEFBmZhcm1lcgkAAgECFUZhcm1lciBkb2VzIG5vdCBleGlzdAMJAAACBQdwZW5kaW5nBQR1bml0CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUGZmFybWVyAghfcGVuZGluZwIBMAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBmZhcm1lcgICXzAFBGRhdGEJAMwIAgkBDEludGVnZXJFbnRyeQIFBmZhcm1lcgABBQNuaWwJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQZmYXJtZXICCF9wZW5kaW5nCQCsAgIJAKwCAgkBBXZhbHVlAQUHcGVuZGluZwIBLAkApAMBBQVjb3VudAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgUGZmFybWVyAgFfCQCkAwEFBWNvdW50BQRkYXRhCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQZmYXJtZXIJAGQCBQVjb3VudAABBQNuaWwA5e6nSQ==", "height": 3374451, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DhSzEsTaQGedqNTWt5BZAywDW9qWRf3B629MPGNBPRHu Next: DEYCBSYmTsevBGxfUJXgdHmcMNAr4rW2y64Rc2Nane59 Diff:
OldNewDifferences
1616
1717 @Callable(a)
1818 func addAuA (d,c) = {
19- let b = toString(a.caller)
2019 let e = {
21- let f = getInteger(b)
20+ let f = getInteger(c)
2221 if ($isInstanceOf(f, "Int"))
2322 then {
2423 let g = f
2625 }
2726 else 0
2827 }
29- let h = getString((b + "_pending"))
30- if (!(isDefined(getInteger(b))))
28+ let h = getString((c + "_pending"))
29+ if (!(isDefined(getInteger(c))))
3130 then throw("Farmer does not exist")
3231 else if ((h == unit))
33- then [StringEntry((b + "_pending"), "0"), StringEntry((b + "_0"), d), IntegerEntry(b, 1)]
34- else [StringEntry((b + "_pending"), ((value(h) + ",") + toString(e))), StringEntry(((b + "_") + toString(e)), d), IntegerEntry(b, (e + 1))]
32+ then [StringEntry((c + "_pending"), "0"), StringEntry((c + "_0"), d), IntegerEntry(c, 1)]
33+ else [StringEntry((c + "_pending"), ((value(h) + ",") + toString(e))), StringEntry(((c + "_") + toString(e)), d), IntegerEntry(c, (e + 1))]
3534 }
3635
3736
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) = {
19- let b = toString(a.caller)
2019 let e = {
21- let f = getInteger(b)
20+ let f = getInteger(c)
2221 if ($isInstanceOf(f, "Int"))
2322 then {
2423 let g = f
2524 g
2625 }
2726 else 0
2827 }
29- let h = getString((b + "_pending"))
30- if (!(isDefined(getInteger(b))))
28+ let h = getString((c + "_pending"))
29+ if (!(isDefined(getInteger(c))))
3130 then throw("Farmer does not exist")
3231 else if ((h == unit))
33- then [StringEntry((b + "_pending"), "0"), StringEntry((b + "_0"), d), IntegerEntry(b, 1)]
34- else [StringEntry((b + "_pending"), ((value(h) + ",") + toString(e))), StringEntry(((b + "_") + toString(e)), d), IntegerEntry(b, (e + 1))]
32+ then [StringEntry((c + "_pending"), "0"), StringEntry((c + "_0"), d), IntegerEntry(c, 1)]
33+ else [StringEntry((c + "_pending"), ((value(h) + ",") + toString(e))), StringEntry(((c + "_") + toString(e)), d), IntegerEntry(c, (e + 1))]
3534 }
3635
3736

github/deemru/w8io/169f3d6 
22.73 ms