tx · 3SuFnu1nTXm17C8vYfsyQ719rhr5LGMUmytpbMMpJAT9

3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5:  -0.00100000 Waves

2024.11.19 18:21 [3378506] smart account 3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5 > SELF 0.00000000 Waves

{ "type": 13, "id": "3SuFnu1nTXm17C8vYfsyQ719rhr5LGMUmytpbMMpJAT9", "fee": 100000, "feeAssetId": null, "timestamp": 1732029690846, "version": 2, "chainId": 84, "sender": "3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5", "senderPublicKey": "5rkm9KDP5qzWeNEXRH9VafbL9WYYKnxXxsKeemndVuCX", "proofs": [ "LwYrWSb8ra5r97Vbj4CyoVB4KSQBYtwuGhkV87fNswPdqAYuKU5rkVhHcWgbwu1mK4MyZx7nUhjRgStrAzLKSrD" ], "script": "base64:CAIRCAISABIECgIICBIFCgMICAEAAwFpAQlhZGRGYXJtZXIABAdhZGRyZXNzCQClCAEIBQFpBmNhbGxlcgQGZmFybWVyCQCfCAEFB2FkZHJlc3MDCQAAAgUGZmFybWVyBQR1bml0CQDMCAIJAQtTdHJpbmdFbnRyeQIFB2FkZHJlc3MCAAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQdhZGRyZXNzAgZfY291bnQAAAUDbmlsCQACAQIVRmFybWVyIGFscmVhZHkgZXhpc3RzAWkBBmFkZEF1QQIEZGF0YQZmYXJtZXIEBWNvdW50BAckbWF0Y2gwCQCfCAEJAKwCAgUGZmFybWVyAgZfY291bnQDCQABAgUHJG1hdGNoMAIDSW50BAFhBQckbWF0Y2gwBQFhAAAEB3BlbmRpbmcJAKIIAQUGZmFybWVyAwkBASEBCQEJaXNEZWZpbmVkAQkAoggBBQZmYXJtZXIJAAIBAhVGYXJtZXIgZG9lcyBub3QgZXhpc3QDCQAAAgUHcGVuZGluZwIACQDMCAIJAQtTdHJpbmdFbnRyeQIFBmZhcm1lcgIBMAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBmZhcm1lcgICXzAFBGRhdGEJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUGZmFybWVyAgZfY291bnQAAQUDbmlsCQDMCAIJAQtTdHJpbmdFbnRyeQIFBmZhcm1lcgkArAICCQCsAgIJAQV2YWx1ZQEFB3BlbmRpbmcCASwJAKQDAQUFY291bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIFBmZhcm1lcgIBXwkApAMBBQVjb3VudAUEZGF0YQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQZmYXJtZXICBl9jb3VudAkAZAIFBWNvdW50AAEFA25pbAFpAQZ2ZXJpZnkDBGRhdGEGZmFybWVyBWVudHJ5AwkBCWlzRGVmaW5lZAEJAKIIAQkArAICBQZmYXJtZXICAl9WCQACAQIaQXVBIEVudHJ5IGFscmVhZHkgdmVyaWZpZWQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKwCAgUGZmFybWVyAgFfCQCkAwEFBWVudHJ5AgJfVgUEZGF0YQUDbmlsAPEzqeQ=", "height": 3378506, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8r5hjhxWYjg9GSedHgTCzi39td6E1K1xE3g5Gm8QUnff Next: Cfvc26TiC6ZEf7qetwWCC3eCVqES6yumvioiEnSjEazc Full:
OldNewDifferences
11 {-# STDLIB_VERSION 8 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func addFarmer () = {
88 let address = toString(i.caller)
99 let farmer = getInteger(address)
1010 if ((farmer == unit))
1111 then [StringEntry(address, ""), IntegerEntry((address + "_count"), 0)]
1212 else throw("Farmer already exists")
1313 }
1414
1515
1616
1717 @Callable(i)
1818 func addAuA (data,farmer) = {
1919 let count = match getInteger((farmer + "_count")) {
2020 case a: Int =>
2121 a
2222 case _ =>
2323 0
2424 }
2525 let pending = getString(farmer)
2626 if (!(isDefined(getString(farmer))))
2727 then throw("Farmer does not exist")
2828 else if ((pending == ""))
2929 then [StringEntry(farmer, "0"), StringEntry((farmer + "_0"), data), IntegerEntry((farmer + "_count"), 1)]
3030 else [StringEntry(farmer, ((value(pending) + ",") + toString(count))), StringEntry(((farmer + "_") + toString(count)), data), IntegerEntry((farmer + "_count"), (count + 1))]
3131 }
3232
3333
3434
3535 @Callable(i)
3636 func verify (data,farmer,entry) = if (isDefined(getString((farmer + "_V"))))
3737 then throw("AuA Entry already verified")
3838 else [StringEntry((((farmer + "_") + toString(entry)) + "_V"), data)]
3939
4040

github/deemru/w8io/026f985 
17.93 ms