tx · 2bdcyrNiqShnJTRk9TPGpiktqbDFG2BepbLjsL94r87Q 3N3uKL5Bd3Bz4qpFn9f7nFd8RUJx6DucvPy: -0.00200000 Waves 2024.11.21 19:02 [3381427] smart account 3N3uKL5Bd3Bz4qpFn9f7nFd8RUJx6DucvPy > SELF 0.00000000 Waves
{ "type": 13, "id": "2bdcyrNiqShnJTRk9TPGpiktqbDFG2BepbLjsL94r87Q", "fee": 200000, "feeAssetId": null, "timestamp": 1732204970970, "version": 2, "chainId": 84, "sender": "3N3uKL5Bd3Bz4qpFn9f7nFd8RUJx6DucvPy", "senderPublicKey": "36MZT726dzokx3z57SXTuZqJsabkLgJrhLwwE5gQYTGx", "proofs": [ "5qiGahyVmUcodNkrvDMJcbccHxZQm4vZ6wZMfrRFGknhhX3X1A1amqkZbprLCTdT7QXXb37dWCpMAxVtn7bt7Y8t" ], "script": "base64:CAISCAISABIFCgMICAgSBQoDCAgBAAMBaQEJYWRkRmFybWVyAAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEBmZhcm1lcgkAoggBBQdhZGRyZXNzAwkAAAIFBmZhcm1lcgUEdW5pdAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFB2FkZHJlc3MCCF9wZW5kaW5nAgAJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUHYWRkcmVzcwIGX2NvdW50AAAFA25pbAkAAgECFUZhcm1lciBhbHJlYWR5IGV4aXN0cwFpAQZhZGRBdUEDCmRhdGFGYXJtZXIHZGF0YVZldAZmYXJtZXIEBWNvdW50BAckbWF0Y2gwCQCfCAEJAKwCAgUGZmFybWVyAgZfY291bnQDCQABAgUHJG1hdGNoMAIDSW50BAFhBQckbWF0Y2gwBQFhAAAEB3BlbmRpbmcJAKIIAQkArAICBQZmYXJtZXICCF9wZW5kaW5nAwkBASEBCQEJaXNEZWZpbmVkAQUHcGVuZGluZwkAAgECFUZhcm1lciBkb2VzIG5vdCBleGlzdAMJAAACBQdwZW5kaW5nAgAJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQZmYXJtZXICCF9wZW5kaW5nAgEwCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUGZmFybWVyAgRfMF9GBQpkYXRhRmFybWVyCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUGZmFybWVyAgRfMF9WBQdkYXRhVmV0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFBmZhcm1lcgIGX2NvdW50AAEFA25pbAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBmZhcm1lcgIIX3BlbmRpbmcJAKwCAgkArAICCQEFdmFsdWUBBQdwZW5kaW5nAgEsCQCkAwEFBWNvdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICCQCsAgIFBmZhcm1lcgIBXwkApAMBBQVjb3VudAICX0YFCmRhdGFGYXJtZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKwCAgUGZmFybWVyAgFfCQCkAwEFBWNvdW50AgJfVgUHZGF0YVZldAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQZmYXJtZXICBl9jb3VudAkAZAIFBWNvdW50AAEFA25pbAFpAQZ2ZXJpZnkDBGRhdGEGZmFybWVyBWVudHJ5AwkBCWlzRGVmaW5lZAEJAKIIAQkArAICBQZmYXJtZXICCV9WZXJpZmllZAkAAgECGkF1QSBFbnRyeSBhbHJlYWR5IHZlcmlmaWVkCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICCQCsAgIFBmZhcm1lcgIBXwkApAMBBQVlbnRyeQIJX1ZlcmlmaWVkBQRkYXRhBQNuaWwASg59Iw==", "height": 3381427, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AAL3vhtN2HK5o1pt8SadQNxP6pMCMgaMAkxJzzRrK3Wr Next: E4c18z9cuVmTXjZLqqaPTxqo6RuJvstKGSpBmXfWupYx 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 = getString(b) | |
10 | 10 | if ((c == unit)) | |
11 | 11 | then [StringEntry((b + "_pending"), ""), 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,e,c) = { | |
19 | 19 | let f = { | |
20 | 20 | let g = getInteger((c + "_count")) | |
21 | 21 | if ($isInstanceOf(g, "Int")) | |
22 | 22 | then { | |
23 | 23 | let h = g | |
24 | 24 | h | |
25 | 25 | } | |
26 | 26 | else 0 | |
27 | 27 | } | |
28 | 28 | let i = getString((c + "_pending")) | |
29 | 29 | if (!(isDefined(i))) | |
30 | 30 | then throw("Farmer does not exist") | |
31 | 31 | else if ((i == "")) | |
32 | 32 | then [StringEntry((c + "_pending"), "0"), StringEntry((c + "_0_F"), d), StringEntry((c + "_0_V"), e), IntegerEntry((c + "_count"), 1)] | |
33 | 33 | else [StringEntry((c + "_pending"), ((value(i) + ",") + toString(f))), StringEntry((((c + "_") + toString(f)) + "_F"), d), StringEntry((((c + "_") + toString(f)) + "_V"), e), IntegerEntry((c + "_count"), (f + 1))] | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | ||
38 | 38 | @Callable(a) | |
39 | 39 | func verify (j,c,k) = if (isDefined(getString((c + "_Verified")))) | |
40 | 40 | then throw("AuA Entry already verified") | |
41 | 41 | else [StringEntry((((c + "_") + toString(k)) + "_Verified"), j)] | |
42 | 42 | ||
43 | 43 |
github/deemru/w8io/169f3d6 18.22 ms ◑