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:
OldNewDifferences
11 {-# STDLIB_VERSION 8 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func addFarmer () = {
88 let address = toString(i.caller)
99 let farmer = getString(address)
1010 if ((farmer == unit))
1111 then [StringEntry((address + "_pending"), ""), IntegerEntry((address + "_count"), 0)]
1212 else throw("Farmer already exists")
1313 }
1414
1515
1616
1717 @Callable(i)
1818 func addAuA (dataFarmer,dataVet,farmer) = {
1919 let count = match getInteger((farmer + "_count")) {
2020 case a: Int =>
2121 a
2222 case _ =>
2323 0
2424 }
2525 let pending = getString((farmer + "_pending"))
2626 if (!(isDefined(pending)))
2727 then throw("Farmer does not exist")
2828 else if ((pending == ""))
2929 then [StringEntry((farmer + "_pending"), "0"), StringEntry((farmer + "_0_F"), dataFarmer), StringEntry((farmer + "_0_V"), dataVet), IntegerEntry((farmer + "_count"), 1)]
3030 else [StringEntry((farmer + "_pending"), ((value(pending) + ",") + toString(count))), StringEntry((((farmer + "_") + toString(count)) + "_F"), dataFarmer), StringEntry((((farmer + "_") + toString(count)) + "_V"), dataVet), IntegerEntry((farmer + "_count"), (count + 1))]
3131 }
3232
3333
3434
3535 @Callable(i)
3636 func verify (data,farmer,entry) = if (isDefined(getString((farmer + "_Verified"))))
3737 then throw("AuA Entry already verified")
3838 else [StringEntry((((farmer + "_") + toString(entry)) + "_Verified"), data)]
3939
4040

github/deemru/w8io/169f3d6 
20.38 ms