tx · H6K1YeB3U8SKd6szyUGHfgYK8VyXqSsh1E2vo1sWKm5k

3N4FTb4wXXHqJnV2rq9BgZr5JkCg81t65BT:  -0.01000000 Waves

2022.03.30 18:54 [1986864] smart account 3N4FTb4wXXHqJnV2rq9BgZr5JkCg81t65BT > SELF 0.00000000 Waves

{ "type": 13, "id": "H6K1YeB3U8SKd6szyUGHfgYK8VyXqSsh1E2vo1sWKm5k", "fee": 1000000, "feeAssetId": null, "timestamp": 1648655675079, "version": 2, "chainId": 84, "sender": "3N4FTb4wXXHqJnV2rq9BgZr5JkCg81t65BT", "senderPublicKey": "F3cuPePmB9bx8wQNoB8fAy7UXWQd4dqeZhFGmF4GEtus", "proofs": [ "2wPFAn5Mrz8YuG76s1EibbL9s9WdwRsJzieaSwGHMznk2Xrdj2RpzPPQmDzAh2WR4Q27EBmrBA5iJs91GNLKMGRZ" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAADaW52AQAAAAh0cmFuc2ZlcgAAAAEAAAAJcmVjaXBpZW50BAAAAAdhZGRyZXNzCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQmAAAAAQUAAAAJcmVjaXBpZW50CQABLAAAAAIJAAEsAAAAAgIAAAAkQ2FuJ3QgcGFyc2UgYWRkcmVzcyBmcm9tIHJlY2lwaWVudCAnBQAAAAlyZWNpcGllbnQCAAAAAScKAQAAAA9jcmVhdGVUcmFuc2ZlcnMAAAACAAAABGxpc3QAAAADcG10BAAAAAZhbW91bnQDCQAAZgAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAAAACAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABCQABLAAAAAICAAAAJFBvc2l0aXZlIGFtb3VudCBleHBlY3RlZCwgYnV0IGZvdW5kIAkAAaQAAAABCAUAAAADcG10AAAABmFtb3VudAQAAAAHYXNzZXRJZAMDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAA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AAAAAAAAAPAAAAAAAAAAAQAAAAAAAAAAARAAAAAAAAAAASAAAAAAAAAAATAAAAAAAAAAAUAAAAAAAAAAAVAAAAAAAAAAAWAAAAAAAAAAAXAAAAAAAAAAAYAAAAAAAAAAAZAAAAAAAAAAAaAAAAAAAAAAAbAAAAAAAAAAAcAAAAAAAAAAAdAAAAAAAAAAAeAAAAAAAAAAAfAAAAAAAAAAAgAAAAAAAAAAAhAAAAAAAAAAAiAAAAAAAAAAAjAAAAAAAAAAAkAAAAAAAAAAAlAAAAAAAAAAAmAAAAAAAAAAAnAAAAAAAAAAAoAAAAAAAAAAApAAAAAAAAAAAqAAAAAAAAAAArAAAAAAAAAAAsAAAAAAAAAAAtAAAAAAAAAAAuAAAAAAAAAAAvAAAAAAAAAAAwAAAAAAAAAAAxAAAAAAAAAAAyAAAAANb69dQ=", "height": 1986864, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(inv)
7+func transfer (recipient) = {
8+ let address = valueOrErrorMessage(addressFromString(recipient), (("Can't parse address from recipient '" + recipient) + "'"))
9+ func createTransfers (list,pmt) = {
10+ let amount = if ((pmt.amount > 0))
11+ then pmt.amount
12+ else throw(("Positive amount expected, but found " + toString(pmt.amount)))
13+ let assetId = if (if (!(isDefined(pmt.assetId)))
14+ then true
15+ else isDefined(assetInfo(value(pmt.assetId))))
16+ then pmt.assetId
17+ else throw((("Asset with id '" + toBase58String(value(pmt.assetId))) + "' doesn't exist"))
18+ (list :+ ScriptTransfer(address, amount, assetId))
19+ }
20+
21+ if ((0 >= size(inv.payments)))
22+ then throw("Attach at least one payment to this transaction")
23+ else {
24+ let $l = inv.payments
25+ let $s = size($l)
26+ let $acc0 = nil
27+ func $f0_1 ($a,$i) = if (($i >= $s))
28+ then $a
29+ else createTransfers($a, $l[$i])
30+
31+ func $f0_2 ($a,$i) = if (($i >= $s))
32+ then $a
33+ else throw("List size exceeds 50")
34+
35+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
36+ }
37+ }
38+
39+

github/deemru/w8io/169f3d6 
14.22 ms