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:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAADaW52AQAAAAh0cmFuc2ZlcgAAAAEAAAAJcmVjaXBpZW50BAAAAAdhZGRyZXNzCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQmAAAAAQUAAAAJcmVjaXBpZW50CQABLAAAAAIJAAEsAAAAAgIAAAAkQ2FuJ3QgcGFyc2UgYWRkcmVzcyBmcm9tIHJlY2lwaWVudCAnBQAAAAlyZWNpcGllbnQCAAAAAScKAQAAAA9jcmVhdGVUcmFuc2ZlcnMAAAACAAAABGxpc3QAAAADcG10BAAAAAZhbW91bnQDCQAAZgAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAAAACAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABCQABLAAAAAICAAAAJFBvc2l0aXZlIGFtb3VudCBleHBlY3RlZCwgYnV0IGZvdW5kIAkAAaQAAAABCAUAAAADcG10AAAABmFtb3VudAQAAAAHYXNzZXRJZAMDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAA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AAAAAAAAPAAAAAAAAAAAQAAAAAAAAAAARAAAAAAAAAAASAAAAAAAAAAATAAAAAAAAAAAUAAAAAAAAAAAVAAAAAAAAAAAWAAAAAAAAAAAXAAAAAAAAAAAYAAAAAAAAAAAZAAAAAAAAAAAaAAAAAAAAAAAbAAAAAAAAAAAcAAAAAAAAAAAdAAAAAAAAAAAeAAAAAAAAAAAfAAAAAAAAAAAgAAAAAAAAAAAhAAAAAAAAAAAiAAAAAAAAAAAjAAAAAAAAAAAkAAAAAAAAAAAlAAAAAAAAAAAmAAAAAAAAAAAnAAAAAAAAAAAoAAAAAAAAAAApAAAAAAAAAAAqAAAAAAAAAAArAAAAAAAAAAAsAAAAAAAAAAAtAAAAAAAAAAAuAAAAAAAAAAAvAAAAAAAAAAAwAAAAAAAAAAAxAAAAAAAAAAAyAAAAANb69dQ=", "height": 1986864, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(a) | |
7 | + | func transfer (b) = { | |
8 | + | let c = valueOrErrorMessage(addressFromString(b), (("Can't parse address from recipient '" + b) + "'")) | |
9 | + | func d (e,f) = { | |
10 | + | let g = if ((f.amount > 0)) | |
11 | + | then f.amount | |
12 | + | else throw(("Positive amount expected, but found " + toString(f.amount))) | |
13 | + | let h = if (if (!(isDefined(f.assetId))) | |
14 | + | then true | |
15 | + | else isDefined(assetInfo(value(f.assetId)))) | |
16 | + | then f.assetId | |
17 | + | else throw((("Asset with id '" + toBase58String(value(f.assetId))) + "' doesn't exist")) | |
18 | + | (e :+ ScriptTransfer(c, g, h)) | |
19 | + | } | |
20 | + | ||
21 | + | if ((0 >= size(a.payments))) | |
22 | + | then throw("Attach at least one payment to this transaction") | |
23 | + | else { | |
24 | + | let i = a.payments | |
25 | + | let j = size(i) | |
26 | + | let k = nil | |
27 | + | func l (m,n) = if ((n >= j)) | |
28 | + | then m | |
29 | + | else d(m, i[n]) | |
30 | + | ||
31 | + | func o (m,n) = if ((n >= j)) | |
32 | + | then m | |
33 | + | else throw("List size exceeds 50") | |
34 | + | ||
35 | + | o(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(k, 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 16.25 ms ◑