tx · Gmw7JZhnuuEN7jCQozSEFS7AfR2Ft8eJqJvMvPmtvHfD 3N4oGczFPzAdudU2mLNUg744dVjC95Ap1Hx: -0.01000000 Waves 2021.12.12 01:14 [1830156] smart account 3N4oGczFPzAdudU2mLNUg744dVjC95Ap1Hx > SELF 0.00000000 Waves
{ "type": 13, "id": "Gmw7JZhnuuEN7jCQozSEFS7AfR2Ft8eJqJvMvPmtvHfD", "fee": 1000000, "feeAssetId": null, "timestamp": 1639260921217, "version": 1, "sender": "3N4oGczFPzAdudU2mLNUg744dVjC95Ap1Hx", "senderPublicKey": "BUmuTmqqe2dLmkQJib7gWCzxw9m68a2C3CDHVdv6XqsW", "proofs": [ "2kABeVxek5zPtsfpwD15zm3nzrLUxfXjkjjug63pueRXL84LWCskmK8kKPGnNb6RkKVhgdu67t7wEfFUrEWYQWgu" ], "script": "base64:AAIFAAAAAAAAAN4IAhIDCgEIGgYKAWESAWkaEwoBYhIOYWRkcmVzc09yQWxpYXMaDgoBYxIJcmVjaXBpZW50GgwKAWQSByRtYXRjaDAaDAoBZRIHYWRkcmVzcxoWCgFmEhFwYXltZW50VG9UcmFuc2ZlchoICgFnEgNhY2MaDAoBaBIHcGF5bWVudBoHCgFpEgIkbBoHCgFqEgIkcxoKCgFrEgUkYWNjMBoKCgFsEgUkZjBfMRoHCgFtEgIkYRoHCgFuEgIkaRoKCgFvEgUkZjBfMhoHCgFwEgJ0eBoLCgFxEgZ2ZXJpZnkAAAAAAAAAAQAAAAFhAQAAAAh0cmFuc2ZlcgAAAAEAAAABYgMJAAAAAAAAAgkAAZAAAAABCAUAAAABYQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABMwIGF0dGFjaGVkIHBheW1lbnRzBAAAAAFjBAAAAAFkCQAEJgAAAAEFAAAAAWIDCQAAAQAAAAIFAAAAAWQCAAAAB0FkZHJlc3MEAAAAAWUFAAAAAWQFAAAAAWUJAAQkAAAAAQkBAAAABUFsaWFzAAAAAQUAAAABYgoBAAAAAWYAAAACAAAAAWcAAAABaAkABE4AAAACBQAAAAFnCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAAWMIBQAAAAFoAAAABmFtb3VudAgFAAAAAWgAAAAHYXNzZXRJZAUAAAADbmlsCgAAAAABaQgFAAAAAWEAAAAIcGF5bWVudHMKAAAAAAFqCQABkAAAAAEFAAAAAWkKAAAAAAFrBQAAAANuaWwKAQAAAAFsAAAAAgAAAAFtAAAAAW4DCQAAZwAAAAIFAAAAAW4FAAAAAWoFAAAAAW0JAQAAAAFmAAAAAgUAAAABbQkAAZEAAAACBQAAAAFpBQAAAAFuCgEAAAABbwAAAAIAAAABbQAAAAFuAwkAAGcAAAACBQAAAAFuBQAAAAFqBQAAAAFtCQAAAgAAAAECAAAAFExpc3Qgc2l6ZSBleGNlZWRzIDEwCQEAAAABbwAAAAIJAQAAAAFsAAAAAgkBAAAAAWwAAAACCQEAAAABbAAAAAIJAQAAAAFsAAAAAgkBAAAAAWwAAAACCQEAAAABbAAAAAIJAQAAAAFsAAAAAgkBAAAAAWwAAAACCQEAAAABbAAAAAIJAQAAAAFsAAAAAgUAAAABawAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAAABgAAAAAAAAAABwAAAAAAAAAACAAAAAAAAAAACQAAAAAAAAAACgAAAAEAAAABcAEAAAABcQAAAAAJAAH0AAAAAwgFAAAAAXAAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFwAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAXAAAAAPc2VuZGVyUHVibGljS2V53NZt4w==", "chainId": 84, "height": 1830156, "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(i) | |
7 | + | func transfer (addressOrAlias) = if ((size(i.payments) == 0)) | |
8 | + | then throw("0 attached payments") | |
9 | + | else { | |
10 | + | let recipient = match addressFromString(addressOrAlias) { | |
11 | + | case address: Address => | |
12 | + | address | |
13 | + | case _ => | |
14 | + | addressFromRecipient(Alias(addressOrAlias)) | |
15 | + | } | |
16 | + | func paymentToTransfer (acc,payment) = (acc ++ [ScriptTransfer(recipient, payment.amount, payment.assetId)]) | |
17 | + | ||
18 | + | let $l = i.payments | |
19 | + | let $s = size($l) | |
20 | + | let $acc0 = nil | |
21 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
22 | + | then $a | |
23 | + | else paymentToTransfer($a, $l[$i]) | |
24 | + | ||
25 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
26 | + | then $a | |
27 | + | else throw("List size exceeds 10") | |
28 | + | ||
29 | + | $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) | |
30 | + | } | |
31 | + | ||
32 | + | ||
33 | + | @Verifier(tx) | |
34 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
35 | + |
github/deemru/w8io/169f3d6 14.16 ms ◑