tx · 8xrsZJPBWQhKkfLMbjDtixiS5S6uHUSjrvQvd4jc7Yu

3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5:  -0.00100000 Waves

2024.11.19 18:22 [3378507] smart account 3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5 > SELF 0.00000000 Waves

{ "type": 13, "id": "8xrsZJPBWQhKkfLMbjDtixiS5S6uHUSjrvQvd4jc7Yu", "fee": 100000, "feeAssetId": null, "timestamp": 1732029825937, "version": 2, "chainId": 84, "sender": "3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5", "senderPublicKey": "5rkm9KDP5qzWeNEXRH9VafbL9WYYKnxXxsKeemndVuCX", "proofs": [ "3efTyRe3kmj4vP84Zh3D7EfHMct3FGPopfFn6AYH4c6WwVL1x2QRMXDiozTMGStcuQ9VysoFx2GwJ6WBHm7hydcC" ], "script": "base64:CAIRCAISABIECgIICBIFCgMICAEAAwFpAQlhZGRGYXJtZXIABAdhZGRyZXNzCQClCAEIBQFpBmNhbGxlcgQGZmFybWVyCQCiCAEFB2FkZHJlc3MDCQAAAgUGZmFybWVyBQR1bml0CQDMCAIJAQtTdHJpbmdFbnRyeQIFB2FkZHJlc3MCAAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQdhZGRyZXNzAgZfY291bnQAAAUDbmlsCQACAQIVRmFybWVyIGFscmVhZHkgZXhpc3RzAWkBBmFkZEF1QQIEZGF0YQZmYXJtZXIEBWNvdW50BAckbWF0Y2gwCQCfCAEJAKwCAgUGZmFybWVyAgZfY291bnQDCQABAgUHJG1hdGNoMAIDSW50BAFhBQckbWF0Y2gwBQFhAAAEB3BlbmRpbmcJAKIIAQUGZmFybWVyAwkBASEBCQEJaXNEZWZpbmVkAQkAoggBBQZmYXJtZXIJAAIBAhVGYXJtZXIgZG9lcyBub3QgZXhpc3QDCQAAAgUHcGVuZGluZwIACQDMCAIJAQtTdHJpbmdFbnRyeQIFBmZhcm1lcgIBMAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBmZhcm1lcgICXzAFBGRhdGEJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUGZmFybWVyAgZfY291bnQAAQUDbmlsCQDMCAIJAQtTdHJpbmdFbnRyeQIFBmZhcm1lcgkArAICCQCsAgIJAQV2YWx1ZQEFB3BlbmRpbmcCASwJAKQDAQUFY291bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIFBmZhcm1lcgIBXwkApAMBBQVjb3VudAUEZGF0YQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQZmYXJtZXICBl9jb3VudAkAZAIFBWNvdW50AAEFA25pbAFpAQZ2ZXJpZnkDBGRhdGEGZmFybWVyBWVudHJ5AwkBCWlzRGVmaW5lZAEJAKIIAQkArAICBQZmYXJtZXICAl9WCQACAQIaQXVBIEVudHJ5IGFscmVhZHkgdmVyaWZpZWQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKwCAgUGZmFybWVyAgFfCQCkAwEFBWVudHJ5AgJfVgUEZGF0YQUDbmlsAJGEwUU=", "height": 3378507, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cfvc26TiC6ZEf7qetwWCC3eCVqES6yumvioiEnSjEazc Next: DLWp33ExSL2cibdYe8NFpEknSSNkxZ4RCFrcXmwxBh1X 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 = getString(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 
14.60 ms