tx · 3NLqf4xEMoPgjvHobviGfeN7ZnNa6ajMGDPDDBt7k4JP

3Mu9sv2aXrQmfhDrnxWbMQscwfY7Xyzpvzt:  -0.01000000 Waves

2022.10.10 18:54 [2266434] smart account 3Mu9sv2aXrQmfhDrnxWbMQscwfY7Xyzpvzt > SELF 0.00000000 Waves

{ "type": 13, "id": "3NLqf4xEMoPgjvHobviGfeN7ZnNa6ajMGDPDDBt7k4JP", "fee": 1000000, "feeAssetId": null, "timestamp": 1665417214112, "version": 2, "chainId": 84, "sender": "3Mu9sv2aXrQmfhDrnxWbMQscwfY7Xyzpvzt", "senderPublicKey": "2SDLQgCqgKE4HPrrLJ4KeUygceptaukR7yA5Wy1DD39w", "proofs": [ "8f7wSmK3pR245gbujianWHBzaRoNqYzhmpoPMYDaRrKBiRr9jG1i3oAZMtWXLFQGhnYd317aFeSY3A6ciNQcsaz" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgQKAggYAAAAAQEAAAAIZm9sZEZ1bmMAAAACAAAABWFjY3VtAAAABG5leHQEAAAACSR0MDE3MzIyMgUAAAAFYWNjdW0EAAAACXRyYW5zZmVycwgFAAAACSR0MDE3MzIyMgAAAAJfMQQAAAAFaW5kZXgIBQAAAAkkdDAxNzMyMjIAAAACXzIEAAAAEXJlZmVycmVyQWRkcmVzc2VzCAUAAAAJJHQwMTczMjIyAAAAAl8zAwkAAGYAAAACCQABkAAAAAEFAAAAEXJlZmVycmVyQWRkcmVzc2VzBQAAAAVpbmRleAQAAAANYWRkcmVzc0Jhc2U1OAkAAZEAAAACBQAAABFyZWZlcnJlckFkZHJlc3NlcwUAAAAFaW5kZXgEAAAADGFkZHJlc3NCeXRlcwkAAlkAAAABBQAAAA1hZGRyZXNzQmFzZTU4BAAAAAdhZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEFAAAADGFkZHJlc3NCeXRlcwQAAAAIdHJhbnNmZXIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAB2FkZHJlc3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QwMTQ1OTE1NjEAAAACXzMFAAAACXRyYW5zZmVycwAAAAA6EQAc", "height": 2266434, "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+func foldFunc (accum,next) = {
5+ let $t0173222 = accum
6+ let transfers = $t0173222._1
7+ let index = $t0173222._2
8+ let referrerAddresses = $t0173222._3
9+ if ((size(referrerAddresses) > index))
10+ then {
11+ let addressBase58 = referrerAddresses[index]
12+ let addressBytes = fromBase58String(addressBase58)
13+ let address = Address(addressBytes)
14+ let transfer = ScriptTransfer(address, next.amount, next.assetId)
15+ $Tuple3((transfers :+ transfer), (index + 1), referrerAddresses)
16+ }
17+ else $Tuple3(transfers, (index + 1), referrerAddresses)
18+ }
19+
20+
21+@Callable(i)
22+func deposit () = if ((size(i.payments) != 1))
23+ then throw("Deposit function should contain exactly one payment!")
24+ else {
25+ let payment = i.payments[0]
26+ if (isDefined(payment.assetId))
27+ then {
28+ let assetId = value(payment.assetId)
29+ $Tuple2([Burn(assetId, payment.amount)], unit)
30+ }
31+ else $Tuple2(nil, unit)
32+ }
33+
34+
35+
36+@Callable(i)
37+func incUnclaimedWithPaymentSpec (programName,referrerAddresses) = if ((size(i.payments) != size(referrerAddresses)))
38+ then throw("Payments size should be equal to the referrer addresses size!")
39+ else if ((size(referrerAddresses) > 10))
40+ then throw("Referrer addresses should contain up to 10 elements!")
41+ else {
42+ let $t014591561 = {
43+ let $l = i.payments
44+ let $s = size($l)
45+ let $acc0 = $Tuple3(nil, 0, referrerAddresses)
46+ func $f0_1 ($a,$i) = if (($i >= $s))
47+ then $a
48+ else foldFunc($a, $l[$i])
49+
50+ func $f0_2 ($a,$i) = if (($i >= $s))
51+ then $a
52+ else throw("List size exceeds 10")
53+
54+ $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)
55+ }
56+ let transfers = $t014591561._1
57+ let index = $t014591561._2
58+ let addresses = $t014591561._3
59+ transfers
60+ }
61+
62+

github/deemru/w8io/169f3d6 
21.49 ms