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:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 8 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func addFarmer () = { | |
8 | 8 | let b = toString(a.caller) | |
9 | 9 | let c = getInteger(b) | |
10 | 10 | if ((c == unit)) | |
11 | 11 | then [StringEntry(b, ""), IntegerEntry((b + "_count"), 0)] | |
12 | 12 | else throw("Farmer already exists") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(a) | |
18 | 18 | func addAuA (d,c) = { | |
19 | 19 | let e = { | |
20 | 20 | let f = getInteger((c + "_count")) | |
21 | 21 | if ($isInstanceOf(f, "Int")) | |
22 | 22 | then { | |
23 | 23 | let g = f | |
24 | 24 | g | |
25 | 25 | } | |
26 | 26 | else 0 | |
27 | 27 | } | |
28 | 28 | let h = getString(c) | |
29 | 29 | if (!(isDefined(getString(c)))) | |
30 | 30 | then throw("Farmer does not exist") | |
31 | 31 | else if ((h == "")) | |
32 | 32 | then [StringEntry(c, "0"), StringEntry((c + "_0"), d), IntegerEntry((c + "_count"), 1)] | |
33 | 33 | else [StringEntry(c, ((value(h) + ",") + toString(e))), StringEntry(((c + "_") + toString(e)), d), IntegerEntry((c + "_count"), (e + 1))] | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | ||
38 | 38 | @Callable(a) | |
39 | 39 | func verify (d,c,i) = if (isDefined(getString((c + "_V")))) | |
40 | 40 | then throw("AuA Entry already verified") | |
41 | 41 | else [StringEntry((((c + "_") + toString(i)) + "_V"), d)] | |
42 | 42 | ||
43 | 43 |
github/deemru/w8io/026f985 13.49 ms ◑