tx · F9WE2dnTw2hvg5tp5yA9gx4GvFgFMLryxyU7KpsNhqSw

3N1GmyGkFnyV1nasw8wiHz2w2mDboqVYKgr:  -0.01000000 Waves

2023.04.16 17:44 [2537245] smart account 3N1GmyGkFnyV1nasw8wiHz2w2mDboqVYKgr > SELF 0.00000000 Waves

{ "type": 13, "id": "F9WE2dnTw2hvg5tp5yA9gx4GvFgFMLryxyU7KpsNhqSw", "fee": 1000000, "feeAssetId": null, "timestamp": 1681656364114, "version": 2, "chainId": 84, "sender": "3N1GmyGkFnyV1nasw8wiHz2w2mDboqVYKgr", "senderPublicKey": "65hzuFUkGbK4ByCuwohhXNsXhPi8PJUcoxwkbSXXdrvH", "proofs": [ "5puv5DXkKaRqNxvJj78pkwaaH8n9jgHa666LZnxu6D6Y34nRSWk6Z7bL92RYAuxKd9RK9kG3tSPG7e371yoJWG1M" ], "script": "base64:AAIFAAAAAAAAABAIAhIFCgMICAgSBQoDCAgIAAAAAQEAAAAHZ2V0RGF0YQAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAACAAAAAWkBAAAAB3N0YXR1czIAAAADAAAAC3Bvc2l0aW9uS2V5AAAAD2N1c3RvbWVyQWRkcmVzcwAAABFjdXN0b21lclB1YmxpY0tleQQAAAALcGllbEFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAPcG9zaXRpb25LZXlEYXRhCQEAAAAHZ2V0RGF0YQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAD2N1c3RvbWVyQWRkcmVzcwUAAAALcG9zaXRpb25LZXkEAAAAEHBvc2l0aW9uS2V5U3BsaXQJAAS1AAAAAgUAAAALcG9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AAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAARY3VzdG9tZXJQdWJsaWNLZXkCAAAADF9zdGF0dXNUZXh0XwUAAAAJdGltZXN0YW1wAgAAACtTdGFmZmVscHJlaXMgZW50c3ByaWNodCBkZW0gUG9zaXRpb25zcHJlaXMuBQAAAANuaWwJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAAEWN1c3RvbWVyUHVibGljS2V5AgAAAAxfc3RhdHVzQ29kZV8FAAAACXRpbWVzdGFtcAIAAAAFZXJyb3IJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAAEWN1c3RvbWVyUHVibGljS2V5AgAAAAxfc3RhdHVzVGV4dF8FAAAACXRpbWVzdGFtcAIAAAAxU3RhZmZlbHByZWlzIGVudHNwcmljaHQgbmljaHQgZGVtIFBvc2l0aW9uc3ByZWlzLgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmkmf/O", "height": 2537245, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Htye1vBYvdfDhQxv5Tk4i6EjdEGeV3q9UHU13gN2VG93 Next: none Diff:
OldNewDifferences
2222 let priceListForQuantitiesKey = (positionKeySplit[0] + "_hash")
2323 let priceListForQuantitiesValue = getData(addressFromStringValue(pielAddress), priceListForQuantitiesKey)
2424 let priceListForQuantitiesValueToList = split(priceListForQuantitiesValue, "_")
25- throw(positionQuantity)
25+ let positionQuantityInt = parseIntValue(positionQuantity)
26+ throw("heh")
2627 }
2728
2829
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 status2 (positionKey,customerAddress,customerPublicKey) = {
1717 let pielAddress = toBase58String(i.caller.bytes)
1818 let positionKeyData = getData(addressFromStringValue(customerAddress), positionKey)
1919 let positionKeySplit = split(positionKey, "_")
2020 let timestamp = positionKeySplit[2]
2121 let positionQuantity = positionKeySplit[1]
2222 let priceListForQuantitiesKey = (positionKeySplit[0] + "_hash")
2323 let priceListForQuantitiesValue = getData(addressFromStringValue(pielAddress), priceListForQuantitiesKey)
2424 let priceListForQuantitiesValueToList = split(priceListForQuantitiesValue, "_")
25- throw(positionQuantity)
25+ let positionQuantityInt = parseIntValue(positionQuantity)
26+ throw("heh")
2627 }
2728
2829
2930
3031 @Callable(i)
3132 func status (positionKey,customerAddress,customerPublicKey) = {
3233 let pielAddress = toBase58String(i.caller.bytes)
3334 let positionKeyData = getData(addressFromStringValue(customerAddress), positionKey)
3435 let positionKeySplit = split(positionKey, "_")
3536 let timestamp = positionKeySplit[2]
3637 let positionQuantity = positionKeySplit[1]
3738 let priceListForQuantitiesKey = (positionKeySplit[0] + "_hash")
3839 let priceListForQuantitiesValue = getData(addressFromStringValue(pielAddress), priceListForQuantitiesKey)
3940 let priceListForQuantitiesValueToList = split(priceListForQuantitiesValue, "_")
4041 let positionQuantityInt = parseIntValue(positionQuantity)
4142 func find (accum,nextValue) = {
4243 let priceListQuantityInt = parseIntValue(nextValue)
4344 if ((positionQuantityInt >= priceListQuantityInt))
4445 then priceListQuantityInt
4546 else accum
4647 }
4748
4849 let iterations = size(priceListForQuantitiesValueToList)
4950 let result = {
5051 let $l = priceListForQuantitiesValueToList
5152 let $s = size($l)
5253 let $acc0 = 0
5354 func $f0_1 ($a,$i) = if (($i >= $s))
5455 then $a
5556 else find($a, $l[$i])
5657
5758 func $f0_2 ($a,$i) = if (($i >= $s))
5859 then $a
5960 else throw("List size exceeds 10")
6061
6162 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
6263 }
6364 let priceListKey = (((positionKeySplit[0] + "_") + toString(result)) + "_hash")
6465 let data = getData(addressFromStringValue(pielAddress), priceListKey)
6566 if ((data == positionKeyData))
6667 then [StringEntry(((customerPublicKey + "_statusCode_") + timestamp), "success"), StringEntry(((customerPublicKey + "_statusText_") + timestamp), "Staffelpreis entspricht dem Positionspreis.")]
6768 else [StringEntry(((customerPublicKey + "_statusCode_") + timestamp), "error"), StringEntry(((customerPublicKey + "_statusText_") + timestamp), "Staffelpreis entspricht nicht dem Positionspreis.")]
6869 }
6970
7071
7172 @Verifier(tx)
7273 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7374

github/deemru/w8io/169f3d6 
42.14 ms