tx · HftXQzSBfnJEFKEHmeVnwNH7PPPerWxoAE8z6iF8dESZ

3MsNyiuucHjySwoeQ8FxeofPKJyYF4cqG28:  -0.00200000 Waves

2024.12.07 13:56 [3404116] smart account 3MsNyiuucHjySwoeQ8FxeofPKJyYF4cqG28 > SELF 0.00000000 Waves

{ "type": 13, "id": "HftXQzSBfnJEFKEHmeVnwNH7PPPerWxoAE8z6iF8dESZ", "fee": 200000, "feeAssetId": null, "timestamp": 1733569014112, "version": 2, "chainId": 84, "sender": "3MsNyiuucHjySwoeQ8FxeofPKJyYF4cqG28", "senderPublicKey": "HJeoRksknZ8YoWG1bjM8cjCoh51MGhj2K7rcdzhEZn9h", "proofs": [ "5NmyhdsV6rhWigMmv6ruis8XornTZdpXnAha8piZuf1efxbhpxRocSfC3SmD5PgY3wtKkhJ7qoQv23mdUXqZSz89" ], "script": "base64:CAISCAISABIFCgMICAgSBQoDCAgBAAMBaQEJYWRkRmFybWVyAAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEBmZhcm1lcgkAnwgBCQCsAgIFB2FkZHJlc3MCBl9jb3VudAMJAAACBQZmYXJtZXIFBHVuaXQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQdhZGRyZXNzAghfcGVuZGluZwIACQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFB2FkZHJlc3MCBl9jb3VudAAABQNuaWwJAAIBAhVGYXJtZXIgYWxyZWFkeSBleGlzdHMBaQEGYWRkQXVBAwpkYXRhRmFybWVyB2RhdGFWZXQGZmFybWVyBAVjb3VudAQHJG1hdGNoMAkAnwgBCQCsAgIFBmZhcm1lcgIGX2NvdW50AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQkAAgECFUZhcm1lciBkb2VzIG5vdCBleGlzdAQHcGVuZGluZwkBEUBleHRyTmF0aXZlKDEwNTgpAQkArAICBQZmYXJtZXICCF9wZW5kaW5nBAtwZW5kaW5nTGlzdAkAzAgCCQCkAwEF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mcJALkJAgkA0QgCBQtwZW5kaW5nTGlzdAkBBXZhbHVlAQUFaW5kZXgCASwJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKwCAgUGZmFybWVyAgFfCQCkAwEFBWVudHJ5AglfVmVyaWZpZWQFBGRhdGEJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQZmYXJtZXICCF9wZW5kaW5nBRBuZXdQZW5kaW5nU3RyaW5nBQNuaWwAM0G9gw==", "height": 3404116, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: Gr9thtj8mX2nBzCYqkEhmJ4CHTmJLouGWmvfFAhDKFou Full:
OldNewDifferences
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 + "_count"))
10+ if ((c == unit))
11+ then [StringEntry((b + "_pending"), ""), IntegerEntry((b + "_count"), 0)]
12+ else throw("Farmer already exists")
13+ }
14+
15+
16+
17+@Callable(a)
18+func addAuA (d,e,c) = {
19+ let f = {
20+ let g = getInteger((c + "_count"))
21+ if ($isInstanceOf(g, "Int"))
22+ then {
23+ let h = g
24+ h
25+ }
26+ else throw("Farmer does not exist")
27+ }
28+ let i = getStringValue((c + "_pending"))
29+ let j = [toString(f), split(i, ",")]
30+[StringEntry((c + "_pending"), makeString(j, ",")), StringEntry(((c + "_") + toString(f)), d), StringEntry(((((toString(a.caller) + "_") + c) + "_") + toString(f)), e), IntegerEntry((c + "_count"), (f + 1))]
31+ }
32+
33+
34+
35+@Callable(a)
36+func verify (k,c,l) = if (!(isDefined(getString((c + "_pending")))))
37+ then throw("Farmer does not exist")
38+ else if (isDefined(getString((((c + "_") + toString(l)) + "_Verified"))))
39+ then throw("AuA Entry already verified")
40+ else if (!(isDefined(getString(((c + "_") + toString(l))))))
41+ then throw((("Entry " + toString(l)) + " does not exist"))
42+ else {
43+ let j = split(getStringValue((c + "_pending")), ",")
44+ let m = indexOf(j, toString(l))
45+ if ((m == unit))
46+ then throw((("Entry " + toString(l)) + " does not exist"))
47+ else {
48+ let n = makeString(removeByIndex(j, value(m)), ",")
49+[StringEntry((((c + "_") + toString(l)) + "_Verified"), k), StringEntry((c + "_pending"), n)]
50+ }
51+ }
52+
53+

github/deemru/w8io/169f3d6 
12.12 ms