tx · Htye1vBYvdfDhQxv5Tk4i6EjdEGeV3q9UHU13gN2VG93

3N1GmyGkFnyV1nasw8wiHz2w2mDboqVYKgr:  -0.01000000 Waves

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

{ "type": 13, "id": "Htye1vBYvdfDhQxv5Tk4i6EjdEGeV3q9UHU13gN2VG93", "fee": 1000000, "feeAssetId": null, "timestamp": 1681656316959, "version": 2, "chainId": 84, "sender": "3N1GmyGkFnyV1nasw8wiHz2w2mDboqVYKgr", "senderPublicKey": "65hzuFUkGbK4ByCuwohhXNsXhPi8PJUcoxwkbSXXdrvH", "proofs": [ "3ctuf5s4xbtAQT4EVHevPX6sYHg99Abo9xLoM1iLsAXRQwCcL69GQmjsyiNvSs3tLA16q56pTjSquWPsYQm7JGtR" ], "script": "base64:AAIFAAAAAAAAABAIAhIFCgMICAgSBQoDCAgIAAAAAQEAAAAHZ2V0RGF0YQAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAACAAAAAWkBAAAAB3N0YXR1czIAAAADAAAAC3Bvc2l0aW9uS2V5AAAAD2N1c3RvbWVyQWRkcmVzcwAAABFjdXN0b21lclB1YmxpY0tleQQAAAALcGllbEFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAPcG9zaXRpb25LZXlEYXRhCQEAAAAHZ2V0RGF0YQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAD2N1c3RvbWVyQWRkcmVzcwUAAAALcG9zaXRpb25LZXkEAAAAEHBvc2l0aW9uS2V5U3BsaXQJAAS1AAAAAgUAAAALcG9za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AASwAAAACBQAAABFjdXN0b21lclB1YmxpY0tleQIAAAAMX3N0YXR1c1RleHRfBQAAAAl0aW1lc3RhbXACAAAAK1N0YWZmZWxwcmVpcyBlbnRzcHJpY2h0IGRlbSBQb3NpdGlvbnNwcmVpcy4FAAAAA25pbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAARY3VzdG9tZXJQdWJsaWNLZXkCAAAADF9zdGF0dXNDb2RlXwUAAAAJdGltZXN0YW1wAgAAAAVlcnJvcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAARY3VzdG9tZXJQdWJsaWNLZXkCAAAADF9zdGF0dXNUZXh0XwUAAAAJdGltZXN0YW1wAgAAADFTdGFmZmVscHJlaXMgZW50c3ByaWNodCBuaWNodCBkZW0gUG9zaXRpb25zcHJlaXMuBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleUTSleA=", "height": 2537245, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9y5Nq5dDy891eBu5FB7vC3Tpyy5tkjAW72ubhL6eGZjv Next: F9WE2dnTw2hvg5tp5yA9gx4GvFgFMLryxyU7KpsNhqSw Diff:
OldNewDifferences
1010 }
1111 data
1212 }
13+
14+
15+@Callable(i)
16+func status2 (positionKey,customerAddress,customerPublicKey) = {
17+ let pielAddress = toBase58String(i.caller.bytes)
18+ let positionKeyData = getData(addressFromStringValue(customerAddress), positionKey)
19+ let positionKeySplit = split(positionKey, "_")
20+ let timestamp = positionKeySplit[2]
21+ let positionQuantity = positionKeySplit[1]
22+ let priceListForQuantitiesKey = (positionKeySplit[0] + "_hash")
23+ let priceListForQuantitiesValue = getData(addressFromStringValue(pielAddress), priceListForQuantitiesKey)
24+ let priceListForQuantitiesValueToList = split(priceListForQuantitiesValue, "_")
25+ throw(positionQuantity)
26+ }
27+
1328
1429
1530 @Callable(i)
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 }
13+
14+
15+@Callable(i)
16+func status2 (positionKey,customerAddress,customerPublicKey) = {
17+ let pielAddress = toBase58String(i.caller.bytes)
18+ let positionKeyData = getData(addressFromStringValue(customerAddress), positionKey)
19+ let positionKeySplit = split(positionKey, "_")
20+ let timestamp = positionKeySplit[2]
21+ let positionQuantity = positionKeySplit[1]
22+ let priceListForQuantitiesKey = (positionKeySplit[0] + "_hash")
23+ let priceListForQuantitiesValue = getData(addressFromStringValue(pielAddress), priceListForQuantitiesKey)
24+ let priceListForQuantitiesValueToList = split(priceListForQuantitiesValue, "_")
25+ throw(positionQuantity)
26+ }
27+
1328
1429
1530 @Callable(i)
1631 func status (positionKey,customerAddress,customerPublicKey) = {
1732 let pielAddress = toBase58String(i.caller.bytes)
1833 let positionKeyData = getData(addressFromStringValue(customerAddress), positionKey)
1934 let positionKeySplit = split(positionKey, "_")
2035 let timestamp = positionKeySplit[2]
2136 let positionQuantity = positionKeySplit[1]
2237 let priceListForQuantitiesKey = (positionKeySplit[0] + "_hash")
2338 let priceListForQuantitiesValue = getData(addressFromStringValue(pielAddress), priceListForQuantitiesKey)
2439 let priceListForQuantitiesValueToList = split(priceListForQuantitiesValue, "_")
2540 let positionQuantityInt = parseIntValue(positionQuantity)
2641 func find (accum,nextValue) = {
2742 let priceListQuantityInt = parseIntValue(nextValue)
2843 if ((positionQuantityInt >= priceListQuantityInt))
2944 then priceListQuantityInt
3045 else accum
3146 }
3247
3348 let iterations = size(priceListForQuantitiesValueToList)
3449 let result = {
3550 let $l = priceListForQuantitiesValueToList
3651 let $s = size($l)
3752 let $acc0 = 0
3853 func $f0_1 ($a,$i) = if (($i >= $s))
3954 then $a
4055 else find($a, $l[$i])
4156
4257 func $f0_2 ($a,$i) = if (($i >= $s))
4358 then $a
4459 else throw("List size exceeds 10")
4560
4661 $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)
4762 }
4863 let priceListKey = (((positionKeySplit[0] + "_") + toString(result)) + "_hash")
4964 let data = getData(addressFromStringValue(pielAddress), priceListKey)
5065 if ((data == positionKeyData))
5166 then [StringEntry(((customerPublicKey + "_statusCode_") + timestamp), "success"), StringEntry(((customerPublicKey + "_statusText_") + timestamp), "Staffelpreis entspricht dem Positionspreis.")]
5267 else [StringEntry(((customerPublicKey + "_statusCode_") + timestamp), "error"), StringEntry(((customerPublicKey + "_statusText_") + timestamp), "Staffelpreis entspricht nicht dem Positionspreis.")]
5368 }
5469
5570
5671 @Verifier(tx)
5772 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5873

github/deemru/w8io/169f3d6 
33.08 ms