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(a)
77 func addFarmer () = {
88 let b = toString(a.caller)
99 let c = getString(b)
1010 if ((c == unit))
1111 then [StringEntry((b + "_pending"), ""), IntegerEntry((b + "_count"), 0)]
1212 else throw("Farmer already exists")
1313 }
1414
1515
1616
1717 @Callable(a)
1818 func addAuA (d,e,c) = {
1919 let f = {
2020 let g = getInteger((c + "_count"))
2121 if ($isInstanceOf(g, "Int"))
2222 then {
2323 let h = g
2424 h
2525 }
2626 else 0
2727 }
2828 let i = getString((c + "_pending"))
2929 if (!(isDefined(i)))
3030 then throw("Farmer does not exist")
3131 else if ((i == ""))
3232 then [StringEntry((c + "_pending"), "0"), StringEntry((c + "_0_F"), d), StringEntry((c + "_0_V"), e), IntegerEntry((c + "_count"), 1)]
3333 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))]
3434 }
3535
3636
3737
3838 @Callable(a)
3939 func verify (j,c,k) = if (isDefined(getString((c + "_Verified"))))
4040 then throw("AuA Entry already verified")
4141 else [StringEntry((((c + "_") + toString(k)) + "_Verified"), j)]
4242
4343

github/deemru/w8io/169f3d6 
18.22 ms