tx · TwMkmJ7wj8yDKs2qfNjZDdGR9dJmpDHY7WLrRwTj1Cj

3N1PSeoq2yc1MWP4pXAtVK6VUUE5zvH24gc:  -0.00700000 Waves

2022.08.08 12:13 [2175287] smart account 3N1PSeoq2yc1MWP4pXAtVK6VUUE5zvH24gc > SELF 0.00000000 Waves

{ "type": 13, "id": "TwMkmJ7wj8yDKs2qfNjZDdGR9dJmpDHY7WLrRwTj1Cj", "fee": 700000, "feeAssetId": null, "timestamp": 1659950044195, "version": 2, "chainId": 84, "sender": "3N1PSeoq2yc1MWP4pXAtVK6VUUE5zvH24gc", "senderPublicKey": "FqZgs8PK3Pxq9oFfuCik8VrHfas2rFv5KxKwyHXRBafX", "proofs": [ "3RKVFAv5nwSiDkSC1DDV3D937nCpt3HgHsVgk9hm7ht6bYABrxghGmC4T65AwaBsdDAt7xmrozJLqh8U3QzEhCA3" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAABQAAAARkYXRhAAAAAQAAAAFpAQAAAAZzdGF0dXMAAAACAAAAC3Bvc2l0aW9uS2V5AAAAC3BpZWxBZGRyZXNzBAAAAA9jdXN0b21lckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAARY3VzdG9tZXJQdWJsaWNLZXkJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAA9wb3NpdGlvbktleURhdGEJAQAAAAdnZXREYXRhAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAPY3VzdG9tZXJBZGRyZXNzBQAAAAtwb3NpdGlvbktleQQAAAAQcG9zaXRpb25L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clB1YmxpY0tleQIAAAAMX3N0YXR1c1RleHRfBQAAAAl0aW1lc3RhbXACAAAAK1N0YWZmZWxwcmVpcyBlbnRzcHJpY2h0IGRlbSBQb3NpdGlvbnNwcmVpcy4FAAAAA25pbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAARY3VzdG9tZXJQdWJsaWNLZXkCAAAADF9zdGF0dXNDb2RlXwUAAAAJdGltZXN0YW1wAgAAAAVlcnJvcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAARY3VzdG9tZXJQdWJsaWNLZXkCAAAADF9zdGF0dXNUZXh0XwUAAAAJdGltZXN0YW1wAgAAADFTdGFmZmVscHJlaXMgZW50c3ByaWNodCBuaWNodCBkZW0gUG9zaXRpb25zcHJlaXMuBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVGVa+8=", "height": 2175287, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BRy3tyrs2Uq5MSrD5dQT9ukQF4tvTFciVg2hhr5z6HUs Next: FmHEKjFQAW2uuXXzkabJStAUxSSne9j66Z6maWYYzZj1 Diff:
OldNewDifferences
1818 let customerPublicKey = toBase58String(i.callerPublicKey)
1919 let positionKeyData = getData(addressFromStringValue(customerAddress), positionKey)
2020 let positionKeySplit = split(positionKey, "_")
21+ let timestamp = positionKeySplit[2]
2122 let positionQuantity = positionKeySplit[1]
2223 let priceListForQuantitiesKey = (positionKeySplit[0] + "_hash")
2324 let priceListForQuantitiesValue = getData(addressFromStringValue(pielAddress), priceListForQuantitiesKey)
4748 }
4849 let priceListKey = (((positionKeySplit[0] + "_") + toString(result)) + "_hash")
4950 let data = getData(addressFromStringValue(pielAddress), priceListKey)
50-[StringEntry((positionKeySplit[0] + "_PriceListKey_Data"), data), StringEntry((positionKeySplit[0] + "_Customer_Position_Data"), positionKeyData)]
51+ if ((data == positionKeyData))
52+ then [StringEntry(((customerPublicKey + "_statusCode_") + timestamp), "success"), StringEntry(((customerPublicKey + "_statusText_") + timestamp), "Staffelpreis entspricht dem Positionspreis.")]
53+ else [StringEntry(((customerPublicKey + "_statusCode_") + timestamp), "error"), StringEntry(((customerPublicKey + "_statusText_") + timestamp), "Staffelpreis entspricht nicht dem Positionspreis.")]
5154 }
5255
5356
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getData (adr,key) = {
55 let data = match getString(adr, key) {
66 case a: String =>
77 a
88 case _ =>
99 ""
1010 }
1111 data
1212 }
1313
1414
1515 @Callable(i)
1616 func status (positionKey,pielAddress) = {
1717 let customerAddress = toBase58String(i.caller.bytes)
1818 let customerPublicKey = toBase58String(i.callerPublicKey)
1919 let positionKeyData = getData(addressFromStringValue(customerAddress), positionKey)
2020 let positionKeySplit = split(positionKey, "_")
21+ let timestamp = positionKeySplit[2]
2122 let positionQuantity = positionKeySplit[1]
2223 let priceListForQuantitiesKey = (positionKeySplit[0] + "_hash")
2324 let priceListForQuantitiesValue = getData(addressFromStringValue(pielAddress), priceListForQuantitiesKey)
2425 let priceListForQuantitiesValueToList = split(priceListForQuantitiesValue, "_")
2526 let positionQuantityInt = parseIntValue(positionQuantity)
2627 func find (accum,nextValue) = {
2728 let priceListQuantityInt = parseIntValue(nextValue)
2829 if ((positionQuantityInt >= priceListQuantityInt))
2930 then priceListQuantityInt
3031 else accum
3132 }
3233
3334 let iterations = size(priceListForQuantitiesValueToList)
3435 let result = {
3536 let $l = priceListForQuantitiesValueToList
3637 let $s = size($l)
3738 let $acc0 = 0
3839 func $f0_1 ($a,$i) = if (($i >= $s))
3940 then $a
4041 else find($a, $l[$i])
4142
4243 func $f0_2 ($a,$i) = if (($i >= $s))
4344 then $a
4445 else throw("List size exceeds 5")
4546
4647 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
4748 }
4849 let priceListKey = (((positionKeySplit[0] + "_") + toString(result)) + "_hash")
4950 let data = getData(addressFromStringValue(pielAddress), priceListKey)
50-[StringEntry((positionKeySplit[0] + "_PriceListKey_Data"), data), StringEntry((positionKeySplit[0] + "_Customer_Position_Data"), positionKeyData)]
51+ if ((data == positionKeyData))
52+ then [StringEntry(((customerPublicKey + "_statusCode_") + timestamp), "success"), StringEntry(((customerPublicKey + "_statusText_") + timestamp), "Staffelpreis entspricht dem Positionspreis.")]
53+ else [StringEntry(((customerPublicKey + "_statusCode_") + timestamp), "error"), StringEntry(((customerPublicKey + "_statusText_") + timestamp), "Staffelpreis entspricht nicht dem Positionspreis.")]
5154 }
5255
5356
5457 @Verifier(tx)
5558 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5659

github/deemru/w8io/026f985 
35.27 ms