tx · 4wUZpyyhB2xn46oCKEqz1rFhX4r2J7QQW7xPV7Bx4g8J

3MsNyiuucHjySwoeQ8FxeofPKJyYF4cqG28:  -0.00200000 Waves

2024.12.07 14:05 [3404128] smart account 3MsNyiuucHjySwoeQ8FxeofPKJyYF4cqG28 > SELF 0.00000000 Waves

{ "type": 13, "id": "4wUZpyyhB2xn46oCKEqz1rFhX4r2J7QQW7xPV7Bx4g8J", "fee": 200000, "feeAssetId": null, "timestamp": 1733569584675, "version": 2, "chainId": 84, "sender": "3MsNyiuucHjySwoeQ8FxeofPKJyYF4cqG28", "senderPublicKey": "HJeoRksknZ8YoWG1bjM8cjCoh51MGhj2K7rcdzhEZn9h", "proofs": [ "3hrLgpiyXHfT49PiYKcNTncf1s2hQJ5ZpVGACfjFAR6eGsW5sQWod7sLkf9uMsRErGtEG2agXWVUGg75hQJdBAh8" ], "script": "base64:CAIYCAISBgoECAgICBIFCgMICAgSBQoDCAgBAAMBaQEJYWRkRmFybWVyBA13YWxsZXRBZGRyZXNzB2FkZHJlc3MJZmlyc3ROYW1lCGxhc3ROYW1lBAZmYXJtZXIJAJ8IAQkArAICBQdhZGRyZXNzAgZfY291bnQDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAipPbmx5IHRoZSB2ZXQgb2ZmaWNlIGNhbiBjcmVhdGUgbmV3IEZhcm1lcnMDCQAAAgUGZmFybWVyBQR1bml0CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUNd2FsbGV0QWRkcmVzcwIJX3VzZXJkYXRhCQCsAgIJAKwCAgkArAICCQCsAgIFB2FkZHJlc3MCASwFCWZpcnN0TmFtZQIBLAUIbGFzdE5hbWUJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQ13YWxsZXRBZGRyZXNzAghfcGVuZGluZwIACQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFDXdhbGxldEFkZHJlc3MCBl9jb3VudAAABQNuaWwJAAIBAhVGYXJtZXIgYWxyZW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nkgCQCkAwEFBWVudHJ5Ag8gZG9lcyBub3QgZXhpc3QEC3BlbmRpbmdMaXN0CQC1CQIJARFAZXh0ck5hdGl2ZSgxMDU4KQEJAKwCAgUGZmFybWVyAghfcGVuZGluZwIBLAQFaW5kZXgJAM8IAgULcGVuZGluZ0xpc3QJAKQDAQUFZW50cnkDCQAAAgUFaW5kZXgFBHVuaXQJAAIBCQCsAgIJAKwCAgIGRW50cnkgCQCkAwEFBWVudHJ5Ag8gZG9lcyBub3QgZXhpc3QEEG5ld1BlbmRpbmdTdHJpbmcJALkJAgkA0QgCBQtwZW5kaW5nTGlzdAkBBXZhbHVlAQUFaW5kZXgCASwJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKwCAgUGZmFybWVyAgFfCQCkAwEFBWVudHJ5AglfVmVyaWZpZWQFBGRhdGEJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQZmYXJtZXICCF9wZW5kaW5nBRBuZXdQZW5kaW5nU3RyaW5nBQNuaWwA1mQyJw==", "height": 3404128, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gr9thtj8mX2nBzCYqkEhmJ4CHTmJLouGWmvfFAhDKFou Next: 39hSnyCAmZZyvWaztnykKFPmXFpgSDBckwvuwAdK1oyW Full:
OldNewDifferences
11 {-# STDLIB_VERSION 8 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func addFarmer (b,c,d,e) = {
88 let f = getInteger((c + "_count"))
99 if ((a.caller != this))
1010 then throw("Only the vet office can create new Farmers")
1111 else if ((f == unit))
1212 then [StringEntry((b + "_userdata"), ((((c + ",") + d) + ",") + e)), StringEntry((b + "_pending"), ""), IntegerEntry((b + "_count"), 0)]
1313 else throw("Farmer already exists")
1414 }
1515
1616
1717
1818 @Callable(a)
1919 func addAuA (g,h,f) = {
2020 let i = {
2121 let j = getInteger((f + "_count"))
2222 if ($isInstanceOf(j, "Int"))
2323 then {
2424 let k = j
2525 k
2626 }
2727 else throw("Farmer does not exist")
2828 }
2929 let l = getStringValue((f + "_pending"))
3030 let m = [toString(i), split(l, ",")]
3131 [StringEntry((f + "_pending"), makeString(m, ",")), StringEntry(((f + "_") + toString(i)), g), StringEntry(((((toString(a.caller) + "_") + f) + "_") + toString(i)), h), IntegerEntry((f + "_count"), (i + 1))]
3232 }
3333
3434
3535
3636 @Callable(a)
3737 func verify (n,f,o) = if (!(isDefined(getString((f + "_pending")))))
3838 then throw("Farmer does not exist")
3939 else if (isDefined(getString((((f + "_") + toString(o)) + "_Verified"))))
4040 then throw("AuA Entry already verified")
4141 else if (!(isDefined(getString(((f + "_") + toString(o))))))
4242 then throw((("Entry " + toString(o)) + " does not exist"))
4343 else {
4444 let m = split(getStringValue((f + "_pending")), ",")
4545 let p = indexOf(m, toString(o))
4646 if ((p == unit))
4747 then throw((("Entry " + toString(o)) + " does not exist"))
4848 else {
4949 let q = makeString(removeByIndex(m, value(p)), ",")
5050 [StringEntry((((f + "_") + toString(o)) + "_Verified"), n), StringEntry((f + "_pending"), q)]
5151 }
5252 }
5353
5454

github/deemru/w8io/169f3d6 
15.49 ms