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(a)
77 func addFarmer () = {
88 let b = toString(a.caller)
99 let c = getInteger(b)
1010 if ((c == unit))
1111 then [StringEntry(b, ""), IntegerEntry((b + "_count"), 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 + "_count"))
2121 if ($isInstanceOf(f, "Int"))
2222 then {
2323 let g = f
2424 g
2525 }
2626 else 0
2727 }
2828 let h = getString(c)
2929 if (!(isDefined(getString(c))))
3030 then throw("Farmer does not exist")
3131 else if ((h == ""))
3232 then [StringEntry(c, "0"), StringEntry((c + "_0"), d), IntegerEntry((c + "_count"), 1)]
3333 else [StringEntry(c, ((value(h) + ",") + toString(e))), StringEntry(((c + "_") + toString(e)), d), IntegerEntry((c + "_count"), (e + 1))]
3434 }
3535
3636
3737
3838 @Callable(a)
3939 func verify (d,c,i) = if (isDefined(getString((c + "_V"))))
4040 then throw("AuA Entry already verified")
4141 else [StringEntry((((c + "_") + toString(i)) + "_V"), d)]
4242
4343

github/deemru/w8io/026f985 
13.49 ms