tx · 8r5hjhxWYjg9GSedHgTCzi39td6E1K1xE3g5Gm8QUnff 3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5: -0.00100000 Waves 2024.11.19 18:18 [3378504] smart account 3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5 > SELF 0.00000000 Waves
{ "type": 13, "id": "8r5hjhxWYjg9GSedHgTCzi39td6E1K1xE3g5Gm8QUnff", "fee": 100000, "feeAssetId": null, "timestamp": 1732029635043, "version": 2, "chainId": 84, "sender": "3N31AVfrBqK9g13t2yjixC8HvcozTEVCDS5", "senderPublicKey": "5rkm9KDP5qzWeNEXRH9VafbL9WYYKnxXxsKeemndVuCX", "proofs": [ "3smyFHMknYNAzFKBiFZFj88ezdmiJ6zrCKSTBzmCChR4KV93V5eEtxitURdnWtDmwPX1k41ey8ehtTX84QwVDCSm" ], "script": "base64:CAIRCAISABIECgIICBIFCgMICAEAAwFpAQlhZGRGYXJtZXIABAdhZGRyZXNzCQClCAEIBQFpBmNhbGxlcgQGZmFybWVyCQCfCAEFB2FkZHJlc3MDCQAAAgUGZmFybWVyBQR1bml0CQDMCAIJAQtTdHJpbmdFbnRyeQIFB2FkZHJlc3MCAAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQdhZGRyZXNzAgZfY291bnQAAAUDbmlsCQACAQIVRmFybWVyIGFscmVhZHkgZXhpc3RzAWkBBmFkZEF1QQIEZGF0YQZmYXJtZXIEBWNvdW50BAckbWF0Y2gwCQCfCAEJAKwCAgUGZmFybWVyAgZfY291bnQDCQABAgUHJG1hdGNoMAIDSW50BAFhBQckbWF0Y2gwBQFhAAAEB3BlbmRpbmcJAKIIAQUGZmFybWVyAwkBASEBCQEJaXNEZWZpbmVkAQkAoggBBQZmYXJtZXIJAAIBAhVGYXJtZXIgZG9lcyBub3QgZXhpc3QDCQAAAgUHcGVuZGluZwIACQDMCAIJAQtTdHJpbmdFbnRyeQIFBmZhcm1lcgIBMAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBmZhcm1lcgICXzAFBGRhdGEJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUGZmFybWVyAgZfY291bnQAAQUDbmlsCQDMCAIJAQtTdHJpbmdFbnRyeQIFBmZhcm1lcgkArAICCQCsAgIJAQV2YWx1ZQEFB3BlbmRpbmcCASwJAKQDAQUFY291bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIFBmZhcm1lcgIBXwkApAMBBQVjb3VudAUEZGF0YQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQZmYXJtZXICBl9jb3VudAkAZAIFBWNvdW50AAEFA25pbAFpAQZ2ZXJpZnkDBGRhdGEGZmFybWVyBWVudHJ5AwkBCWlzRGVmaW5lZAEJAKIIAQkArAICBQZmYXJtZXICAl9WCQACAQIaQXVBIEVudHJ5IGFscmVhZHkgdmVyaWZpZWQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKwCAgUGZmFybWVyAgFfCQCkAwEFBWVudHJ5AgJfVgUEZGF0YQUDbmlsAPEzqeQ=", "height": 3378504, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 3SuFnu1nTXm17C8vYfsyQ719rhr5LGMUmytpbMMpJAT9 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 8 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(a) | |
7 | + | func addFarmer () = { | |
8 | + | let b = toString(a.caller) | |
9 | + | let c = getInteger(b) | |
10 | + | if ((c == unit)) | |
11 | + | then [StringEntry(b, ""), IntegerEntry((b + "_count"), 0)] | |
12 | + | else throw("Farmer already exists") | |
13 | + | } | |
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | @Callable(a) | |
18 | + | func addAuA (d,c) = { | |
19 | + | let e = { | |
20 | + | let f = getInteger((c + "_count")) | |
21 | + | if ($isInstanceOf(f, "Int")) | |
22 | + | then { | |
23 | + | let g = f | |
24 | + | g | |
25 | + | } | |
26 | + | else 0 | |
27 | + | } | |
28 | + | let h = getString(c) | |
29 | + | if (!(isDefined(getString(c)))) | |
30 | + | then throw("Farmer does not exist") | |
31 | + | else if ((h == "")) | |
32 | + | then [StringEntry(c, "0"), StringEntry((c + "_0"), d), IntegerEntry((c + "_count"), 1)] | |
33 | + | else [StringEntry(c, ((value(h) + ",") + toString(e))), StringEntry(((c + "_") + toString(e)), d), IntegerEntry((c + "_count"), (e + 1))] | |
34 | + | } | |
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | @Callable(a) | |
39 | + | func verify (d,c,i) = if (isDefined(getString((c + "_V")))) | |
40 | + | then throw("AuA Entry already verified") | |
41 | + | else [StringEntry((((c + "_") + toString(i)) + "_V"), d)] | |
42 | + | ||
43 | + |
github/deemru/w8io/026f985 9.98 ms ◑