tx · 8uK5jJcin6EPfUAqVXonoieSdB3vtWtnLdc3FQ8BAtXA

3MpAa3t5GHjb23srN1wMfaa66RnDnqcpd4H:  -0.01000000 Waves

2020.01.16 22:33 [857136] smart account 3MpAa3t5GHjb23srN1wMfaa66RnDnqcpd4H > SELF 0.00000000 Waves

{ "type": 13, "id": "8uK5jJcin6EPfUAqVXonoieSdB3vtWtnLdc3FQ8BAtXA", "fee": 1000000, "feeAssetId": null, "timestamp": 1579203017136, "version": 1, "sender": "3MpAa3t5GHjb23srN1wMfaa66RnDnqcpd4H", "senderPublicKey": "FSJUn3uwEE2zsHMLJXgJXePvdKgYLbCqrnir9SDJShV", "proofs": [ "4Q6PtQen9MZzJ5bJUL7Tap4QGsU6rwZRUyVA4mwvEnEeA41FiwWWf3QUGbnW4zoQogPXFDMZ1faPLD1BEHowJU7L" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAATYWRkTGlxdWlkYXRpb25PcmRlcgAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAApuZXdPcmRlcklkCQACWAAAAAEJAAH1AAAAAQkAAMsAAAACCQAAywAAAAIJAAGaAAAAAQgFAAAAA3BtdAAAAAZhbW91bnQICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAGaAAAAAQUAAAAGaGVpZ2h0BAAAAAFhCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQUAAAADbmlsCgEAAAAIZm9sZEZ1bmMAAAACAAAAA2FjYwAAAAFlCQAAZAAAAAIFAAAAA2FjYwUAAAABZQQAAAABYwQAAAALJGxpc3QzNTAzNzMFAAAAAWEEAAAACyRzaXplMzUwMzczCQABkAAAAAEFAAAACyRsaXN0MzUwMzczBAAAAAskYWNjMDM1MDM3MwAAAAAAA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gAAABJMaXN0IHNpemUgZXhjZWVkIDUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAGkAAAAAQUAAAABYwUAAAAKbmV3T3JkZXJJZAUAAAADbmlsAAAAAGqfyJM=", "chainId": 84, "height": 857136, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func addLiquidationOrder () = {
8+ let pmt = extract(i.payment)
9+ let newOrderId = toBase58String(keccak256(((toBytes(pmt.amount) + i.caller.bytes) + toBytes(height))))
10+ let a = [1, 2, 3, 4, 5]
11+ func foldFunc (acc,e) = (acc + e)
12+
13+ let c = {
14+ let $list350373 = a
15+ let $size350373 = size($list350373)
16+ let $acc0350373 = 0
17+ if (($size350373 == 0))
18+ then $acc0350373
19+ else {
20+ let $acc1350373 = foldFunc($acc0350373, $list350373[0])
21+ if (($size350373 == 1))
22+ then $acc1350373
23+ else {
24+ let $acc2350373 = foldFunc($acc1350373, $list350373[1])
25+ if (($size350373 == 2))
26+ then $acc2350373
27+ else {
28+ let $acc3350373 = foldFunc($acc2350373, $list350373[2])
29+ if (($size350373 == 3))
30+ then $acc3350373
31+ else {
32+ let $acc4350373 = foldFunc($acc3350373, $list350373[3])
33+ if (($size350373 == 4))
34+ then $acc4350373
35+ else {
36+ let $acc5350373 = foldFunc($acc4350373, $list350373[4])
37+ if (($size350373 == 5))
38+ then $acc5350373
39+ else {
40+ let $acc6350373 = foldFunc($acc5350373, $list350373[5])
41+ throw("List size exceed 5")
42+ }
43+ }
44+ }
45+ }
46+ }
47+ }
48+ }
49+ WriteSet([DataEntry(toString(c), newOrderId)])
50+ }
51+
52+

github/deemru/w8io/169f3d6 
50.37 ms