tx · 7MZ1nsdeUnaSJ8LRWBLp31rZPsiiFLERWT9QXX6DV5Cx

3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT:  -0.00100000 Waves

2024.11.16 22:27 [3374430] smart account 3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT > SELF 0.00000000 Waves

{ "type": 13, "id": "7MZ1nsdeUnaSJ8LRWBLp31rZPsiiFLERWT9QXX6DV5Cx", "fee": 100000, "feeAssetId": null, "timestamp": 1731785292657, "version": 2, "chainId": 84, "sender": "3N32GeQUdczGs7Z7ydw61pwvSiQBZzcw3JT", "senderPublicKey": "ET6ym4HVZdZ7NydKrh8XyxxRd45au4zvLQq7LieAFSs1", "proofs": [ "3KefCy6qkrbXNL9JdQ9WDnTG3f3jxpshNe8g6jRvw5Nfd9E4WA1PEvW6HB7MgACFBgpTUtbbG4Uz442tHpyYkwY3" ], "script": "base64:CAIKCAISABIECgIICAACAWkBCWFkZEZhcm1lcgAEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBAZmYXJtZXIJAJ8IAQUHYWRkcmVzcwMJAAACBQZmYXJtZXIFBHVuaXQJAMwIAgkBDEludGVnZXJFbnRyeQIFB2FkZHJlc3MAAAUDbmlsCQACAQIVRmFybWVyIGFscmVhZHkgZXhpc3RzAWkBBmFkZEF1QQIEZGF0YQZmYXJtZXIEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBAVjb3VudAQHJG1hdGNoMAkAnwgBBQdhZGRyZXNzAwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAAAwkAAAIFBWNvdW50AAAJAAIBAhVGYXJtZXIgZG9lcyBub3QgZXhpc3QEByRtYXRjaDAJAKIIAQkArAICBQdhZGRyZXNzAghfcGVuZGluZwMJAAECBQckbWF0Y2gwAgRVbml0CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUHYWRkcmVzcwIIX3BlbmRpbmcCATAJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQdhZGRyZXNzAgJfMAUEZGF0YQkAzAgCCQEMSW50ZWdlckVudHJ5AgUHYWRkcmVzcwABBQNuaWwDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAdwZW5kaW5nBQckbWF0Y2gwCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUHYWRkcmVzcwIIX3BlbmRpbmcJAKwCAgkArAICBQdwZW5kaW5nAgEsCQCkAwEFBWNvdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgFfCQCkAwEFBWNvdW50BQRkYXRhCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQdhZGRyZXNzCQBkAgUFY291bnQAAQUDbmlsCQACAQILTWF0Y2ggZXJyb3IA4T0SIw==", "height": 3374430, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 6rfVNUVW5g6UPbYL5P5C2s1gPkGJVkQaUpoE12KMyKJy Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 8 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func addFarmer () = {
8+ let address = toString(i.caller)
9+ let farmer = getInteger(address)
10+ if ((farmer == unit))
11+ then [IntegerEntry(address, 0)]
12+ else throw("Farmer already exists")
13+ }
14+
15+
16+
17+@Callable(i)
18+func addAuA (data,farmer) = {
19+ let address = toString(i.caller)
20+ let count = match getInteger(address) {
21+ case a: Int =>
22+ a
23+ case _ =>
24+ 0
25+ }
26+ if ((count == 0))
27+ then throw("Farmer does not exist")
28+ else match getString((address + "_pending")) {
29+ case _: Unit =>
30+[StringEntry((address + "_pending"), "0"), StringEntry((address + "_0"), data), IntegerEntry(address, 1)]
31+ case pending: String =>
32+[StringEntry((address + "_pending"), ((pending + ",") + toString(count))), StringEntry(((address + "_") + toString(count)), data), IntegerEntry(address, (count + 1))]
33+ case _ =>
34+ throw("Match error")
35+ }
36+ }
37+
38+

github/deemru/w8io/169f3d6 
21.13 ms