tx · CLXossAteTR7CJLLuBVmTs2HT81KxoCsMC3DNaNyDf6K

3N7cP8YCeBzv7e7Z1Gm8J7r371K5vZUrtk7:  -0.01000000 Waves

2022.04.21 21:05 [2018616] smart account 3N7cP8YCeBzv7e7Z1Gm8J7r371K5vZUrtk7 > SELF 0.00000000 Waves

{ "type": 13, "id": "CLXossAteTR7CJLLuBVmTs2HT81KxoCsMC3DNaNyDf6K", "fee": 1000000, "feeAssetId": null, "timestamp": 1650564319011, "version": 2, "chainId": 84, "sender": "3N7cP8YCeBzv7e7Z1Gm8J7r371K5vZUrtk7", "senderPublicKey": "2nPT1a7eSYaAtLcmXZXFzeztzzRFpmy1YRiqNo4Uh6Sg", "proofs": [ "PAyRfXWXXNendaCyDsfsCQEpC56D5Rkuc9Q83YH61HBKL3aEqVtJ9oH8DYrcXn9LLEAKWweGjRdn14oSbjpjaU6" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAwAAAAANZ2xvYmFsQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVO90mqVIkubZXYy+8dsFZPkYHK0H0fmbKgEAAAAPcHJlcGFyZVBheW1lbnRzAAAAAQAAAAhwYXltZW50cwoBAAAADHBheW1lbnRzRm9sZAAAAAIAAAADYWNjAAAAB3BheW1lbnQEAAAACSR0MDMwMTM0NAUAAAADYWNjBAAAAA5wYXltZW50QW1vdW50cwgFAAAACSR0MDMwMTM0NAAAAAJfMQQAAAAPcGF5bWVudEFzc2V0SWRzCAUAAAAJJHQwMzAxMzQ0AAAAAl8yCQAFFAAAAAIJAARNAAAAAgUAAAAOcGF5bWVudEFtb3VudHMIBQAAAAdwYXltZW50AAAABmFtb3VudAkABE0AAAACBQAAAA9wYXltZW50QXNzZXRJZHMIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQKAAAAAAIkbAUAAAAIcGF5bWVudHMKAAAAAAIkcwkAAZAAAAABBQAAAAIkbAoAAAAABSRhY2MwCQAFFAAAAAIFAAAAA25pb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W1lbnRBc3NldElkcwgFAAAACiR0MDk1MTEwMTgAAAACXzIEAAAAAXIKAAAAAAFACQAD/AAAAAQFAAAADWdsb2JhbEFkZHJlc3MFAAAABWZuYW1lCQAETAAAAAIIBQAAAAFpAAAABmNhbGxlcgkABEwAAAACBQAAAA5wYXltZW50QW1vdW50cwkABEwAAAACBQAAAA9wYXltZW50QXNzZXRJZHMFAAAAA25pbAUAAAADbmlsAwkAAAEAAAACBQAAAAFAAgAAAAlMaXN0W0FueV0FAAAAAUAJAAACAAAAAQIAAAAeQ291bGRuJ3QgY2FzdCBBbnkgdG8gTGlzdFtBbnldAwkAAAAAAAACBQAAAAFyBQAAAAFyCQEAAAARcGFyc2VTdGF0ZUNoYW5nZXMAAAABBQAAAAFyCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V57sGxow==", "height": 2018616, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 6EP1FMLx1aepYQDmLPhPZKXdthef5NfHXmxZYNkkoi3w Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let globalAddress = Address(base58'3NBkCxZYHAsgWzHcictPG3CyPdEqPRDRyQM')
5+
6+func preparePayments (payments) = {
7+ func paymentsFold (acc,payment) = {
8+ let $t0301344 = acc
9+ let paymentAmounts = $t0301344._1
10+ let paymentAssetIds = $t0301344._2
11+ $Tuple2((paymentAmounts :+ payment.amount), (paymentAssetIds :+ payment.assetId))
12+ }
13+
14+ let $l = payments
15+ let $s = size($l)
16+ let $acc0 = $Tuple2(nil, nil)
17+ func $f0_1 ($a,$i) = if (($i >= $s))
18+ then $a
19+ else paymentsFold($a, $l[$i])
20+
21+ func $f0_2 ($a,$i) = if (($i >= $s))
22+ then $a
23+ else throw("List size exceeds 10")
24+
25+ $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)
26+ }
27+
28+
29+func parseStateChanges (changes) = {
30+ func collect (result,source) = match source {
31+ case e: Issue|Burn|Reissue|ScriptTransfer|BinaryEntry|BooleanEntry|StringEntry|IntegerEntry =>
32+ (result :+ e)
33+ case _ =>
34+ result
35+ }
36+
37+ let $l = changes
38+ let $s = size($l)
39+ let $acc0 = nil
40+ func $f0_1 ($a,$i) = if (($i >= $s))
41+ then $a
42+ else collect($a, $l[$i])
43+
44+ func $f0_2 ($a,$i) = if (($i >= $s))
45+ then $a
46+ else throw("List size exceeds 10")
47+
48+ $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)
49+ }
50+
51+
52+@Callable(i)
53+func call (fname) = {
54+ let $t09511018 = preparePayments(i.payments)
55+ let paymentAmounts = $t09511018._1
56+ let paymentAssetIds = $t09511018._2
57+ let r = {
58+ let @ = invoke(globalAddress, fname, [i.caller, paymentAmounts, paymentAssetIds], nil)
59+ if ($isInstanceOf(@, "List[Any]"))
60+ then @
61+ else throw("Couldn't cast Any to List[Any]")
62+ }
63+ if ((r == r))
64+ then parseStateChanges(r)
65+ else throw("Strict value is not equal to itself.")
66+ }
67+
68+
69+@Verifier(tx)
70+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
71+

github/deemru/w8io/169f3d6 
17.82 ms