tx · 8kLQVjJadekGc9fjyLeU9rnyw94VAQdiQShqcXdJCQaC

3My2kBJaGfeM2koiZroaYdd3y8rAgfV2EAx:  -0.01800000 Waves

2021.09.09 16:25 [1695570] smart account 3My2kBJaGfeM2koiZroaYdd3y8rAgfV2EAx > SELF 0.00000000 Waves

{ "type": 13, "id": "8kLQVjJadekGc9fjyLeU9rnyw94VAQdiQShqcXdJCQaC", "fee": 1800000, "feeAssetId": null, "timestamp": 1631193937828, "version": 1, "sender": "3My2kBJaGfeM2koiZroaYdd3y8rAgfV2EAx", "senderPublicKey": "BpAiAiQ7PGA9M6G4ExNMfUDuP6xk4Aypm43WvECskqTD", "proofs": [ "yKkKWfuHwMTkKhunf72JCmiDAVv2tKWxLNzVc6PLyn74PLXTzkFk8KzYaU1APfYw3P8PJNmsXoLXFD8eD8dX2h8" ], "script": "base64:AAIFAAAAAAAAAiUIAhIAEgASBgoEAgQBCBIGCgQSFBEYGgcKAmExEgFpGgoKAmEyEgR0eElkGhQKAmEzEg5hZGRQYXltZW50SW5mbxoJCgJhNBIDYWNjGgsKAmE1EgVpbmRleBoJCgJhNhIDcG10GgsKAmE3EgVhc3NldBoNCgJhOBIHJG1hdGNoMBoICgJhORICaWQaCwoCYjESBXdhdmVzGhEKAmIyEgskbGlzdDcxNDc3NRoRCgJiMxILJHNpemU3MTQ3NzUaEQoCYjQSCyRhY2MwNzE0Nzc1GhEKAmI1EgskYWNjMTcxNDc3NRoRCgJiNhILJGFjYzI3MTQ3NzUaEQoCYjcSCyRhY2MzNzE0Nzc1GhEKAmI4EgskYWNjNDcxNDc3NRoRCgJiORILJGFjYzU3MTQ3NzUaEQoCYzESCyRhY2M2NzE0Nzc1GhEKAmMyEgskYWNjNzcxNDc3NRoRCgJjMxILJGFjYzg3MTQ3NzUaEQoCYzQSCyRhY2M5NzE0Nzc1GhIKAmM1EgwkYWNjMTA3MTQ3NzUaEgoCYzYSDCRhY2MxMTcxNDc3NRoJCgJjNxIDYmluGgoKAmM4EgR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AGUAAAACBQAAAAJkNAAAAAAAAAAAAQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAAJhMgIAAAAJX3N0cl9zaXplBQAAAAJkNQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAAAmEyAgAAAApfc3RyX2ZpcnN0CQABkQAAAAIFAAAAAmQxAAAAAAAAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAACYTICAAAACV9zdHJfbGFzdAkAAZEAAAACBQAAAAJkMQkAAGUAAAACBQAAAAJkNQAAAAAAAAAAAQUAAAADbmlsAAAAAQAAAAJkNgEAAAACZDcAAAAACQAB9AAAAAMIBQAAAAJkNgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmQ2AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmQ2AAAAD3NlbmRlclB1YmxpY0tleYCvB0c=", "chainId": 84, "height": 1695570, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EhwKKPadksBiAitzdENmpgwrZLDkCoghtce2sw3UZ5Ha Next: none Diff:
OldNewDifferences
1111 @Callable(i)
1212 func callWithPaymentsButNoArgs () = {
1313 let txId = toBase58String(i.transactionId)
14- func addPaymentInfo (acc,index) = if ((size(i.payments) > index))
14+ func addPaymentInfo (acc,index) = if ((index >= size(i.payments)))
1515 then acc
1616 else {
1717 let pmt = i.payments[index]
2626 (acc :+ StringEntry(((txId + "_") + toString(index)), ((toString(pmt.amount) + " ") + asset)))
2727 }
2828
29- let $list713774 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
30- let $size713774 = size($list713774)
31- let $acc0713774 = nil
32- if (($size713774 == 0))
33- then $acc0713774
29+ let $list714775 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
30+ let $size714775 = size($list714775)
31+ let $acc0714775 = nil
32+ if (($size714775 == 0))
33+ then $acc0714775
3434 else {
35- let $acc1713774 = addPaymentInfo($acc0713774, $list713774[0])
36- if (($size713774 == 1))
37- then $acc1713774
35+ let $acc1714775 = addPaymentInfo($acc0714775, $list714775[0])
36+ if (($size714775 == 1))
37+ then $acc1714775
3838 else {
39- let $acc2713774 = addPaymentInfo($acc1713774, $list713774[1])
40- if (($size713774 == 2))
41- then $acc2713774
39+ let $acc2714775 = addPaymentInfo($acc1714775, $list714775[1])
40+ if (($size714775 == 2))
41+ then $acc2714775
4242 else {
43- let $acc3713774 = addPaymentInfo($acc2713774, $list713774[2])
44- if (($size713774 == 3))
45- then $acc3713774
43+ let $acc3714775 = addPaymentInfo($acc2714775, $list714775[2])
44+ if (($size714775 == 3))
45+ then $acc3714775
4646 else {
47- let $acc4713774 = addPaymentInfo($acc3713774, $list713774[3])
48- if (($size713774 == 4))
49- then $acc4713774
47+ let $acc4714775 = addPaymentInfo($acc3714775, $list714775[3])
48+ if (($size714775 == 4))
49+ then $acc4714775
5050 else {
51- let $acc5713774 = addPaymentInfo($acc4713774, $list713774[4])
52- if (($size713774 == 5))
53- then $acc5713774
51+ let $acc5714775 = addPaymentInfo($acc4714775, $list714775[4])
52+ if (($size714775 == 5))
53+ then $acc5714775
5454 else {
55- let $acc6713774 = addPaymentInfo($acc5713774, $list713774[5])
56- if (($size713774 == 6))
57- then $acc6713774
55+ let $acc6714775 = addPaymentInfo($acc5714775, $list714775[5])
56+ if (($size714775 == 6))
57+ then $acc6714775
5858 else {
59- let $acc7713774 = addPaymentInfo($acc6713774, $list713774[6])
60- if (($size713774 == 7))
61- then $acc7713774
59+ let $acc7714775 = addPaymentInfo($acc6714775, $list714775[6])
60+ if (($size714775 == 7))
61+ then $acc7714775
6262 else {
63- let $acc8713774 = addPaymentInfo($acc7713774, $list713774[7])
64- if (($size713774 == 8))
65- then $acc8713774
63+ let $acc8714775 = addPaymentInfo($acc7714775, $list714775[7])
64+ if (($size714775 == 8))
65+ then $acc8714775
6666 else {
67- let $acc9713774 = addPaymentInfo($acc8713774, $list713774[8])
68- if (($size713774 == 9))
69- then $acc9713774
67+ let $acc9714775 = addPaymentInfo($acc8714775, $list714775[8])
68+ if (($size714775 == 9))
69+ then $acc9714775
7070 else {
71- let $acc10713774 = addPaymentInfo($acc9713774, $list713774[9])
72- if (($size713774 == 10))
73- then $acc10713774
71+ let $acc10714775 = addPaymentInfo($acc9714775, $list714775[9])
72+ if (($size714775 == 10))
73+ then $acc10714775
7474 else {
75- let $acc11713774 = addPaymentInfo($acc10713774, $list713774[10])
75+ let $acc11714775 = addPaymentInfo($acc10714775, $list714775[10])
7676 throw("List size exceed 10")
7777 }
7878 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func default () = [StringEntry("default-call-id", toBase58String(i.transactionId))]
88
99
1010
1111 @Callable(i)
1212 func callWithPaymentsButNoArgs () = {
1313 let txId = toBase58String(i.transactionId)
14- func addPaymentInfo (acc,index) = if ((size(i.payments) > index))
14+ func addPaymentInfo (acc,index) = if ((index >= size(i.payments)))
1515 then acc
1616 else {
1717 let pmt = i.payments[index]
1818 let asset = match pmt.assetId {
1919 case id: ByteVector =>
2020 (((value(assetInfo(id)).name + " (") + toBase58String(id)) + ")")
2121 case waves: Unit =>
2222 "WAVES"
2323 case _ =>
2424 throw("Match error")
2525 }
2626 (acc :+ StringEntry(((txId + "_") + toString(index)), ((toString(pmt.amount) + " ") + asset)))
2727 }
2828
29- let $list713774 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
30- let $size713774 = size($list713774)
31- let $acc0713774 = nil
32- if (($size713774 == 0))
33- then $acc0713774
29+ let $list714775 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
30+ let $size714775 = size($list714775)
31+ let $acc0714775 = nil
32+ if (($size714775 == 0))
33+ then $acc0714775
3434 else {
35- let $acc1713774 = addPaymentInfo($acc0713774, $list713774[0])
36- if (($size713774 == 1))
37- then $acc1713774
35+ let $acc1714775 = addPaymentInfo($acc0714775, $list714775[0])
36+ if (($size714775 == 1))
37+ then $acc1714775
3838 else {
39- let $acc2713774 = addPaymentInfo($acc1713774, $list713774[1])
40- if (($size713774 == 2))
41- then $acc2713774
39+ let $acc2714775 = addPaymentInfo($acc1714775, $list714775[1])
40+ if (($size714775 == 2))
41+ then $acc2714775
4242 else {
43- let $acc3713774 = addPaymentInfo($acc2713774, $list713774[2])
44- if (($size713774 == 3))
45- then $acc3713774
43+ let $acc3714775 = addPaymentInfo($acc2714775, $list714775[2])
44+ if (($size714775 == 3))
45+ then $acc3714775
4646 else {
47- let $acc4713774 = addPaymentInfo($acc3713774, $list713774[3])
48- if (($size713774 == 4))
49- then $acc4713774
47+ let $acc4714775 = addPaymentInfo($acc3714775, $list714775[3])
48+ if (($size714775 == 4))
49+ then $acc4714775
5050 else {
51- let $acc5713774 = addPaymentInfo($acc4713774, $list713774[4])
52- if (($size713774 == 5))
53- then $acc5713774
51+ let $acc5714775 = addPaymentInfo($acc4714775, $list714775[4])
52+ if (($size714775 == 5))
53+ then $acc5714775
5454 else {
55- let $acc6713774 = addPaymentInfo($acc5713774, $list713774[5])
56- if (($size713774 == 6))
57- then $acc6713774
55+ let $acc6714775 = addPaymentInfo($acc5714775, $list714775[5])
56+ if (($size714775 == 6))
57+ then $acc6714775
5858 else {
59- let $acc7713774 = addPaymentInfo($acc6713774, $list713774[6])
60- if (($size713774 == 7))
61- then $acc7713774
59+ let $acc7714775 = addPaymentInfo($acc6714775, $list714775[6])
60+ if (($size714775 == 7))
61+ then $acc7714775
6262 else {
63- let $acc8713774 = addPaymentInfo($acc7713774, $list713774[7])
64- if (($size713774 == 8))
65- then $acc8713774
63+ let $acc8714775 = addPaymentInfo($acc7714775, $list714775[7])
64+ if (($size714775 == 8))
65+ then $acc8714775
6666 else {
67- let $acc9713774 = addPaymentInfo($acc8713774, $list713774[8])
68- if (($size713774 == 9))
69- then $acc9713774
67+ let $acc9714775 = addPaymentInfo($acc8714775, $list714775[8])
68+ if (($size714775 == 9))
69+ then $acc9714775
7070 else {
71- let $acc10713774 = addPaymentInfo($acc9713774, $list713774[9])
72- if (($size713774 == 10))
73- then $acc10713774
71+ let $acc10714775 = addPaymentInfo($acc9714775, $list714775[9])
72+ if (($size714775 == 10))
73+ then $acc10714775
7474 else {
75- let $acc11713774 = addPaymentInfo($acc10713774, $list713774[10])
75+ let $acc11714775 = addPaymentInfo($acc10714775, $list714775[10])
7676 throw("List size exceed 10")
7777 }
7878 }
7979 }
8080 }
8181 }
8282 }
8383 }
8484 }
8585 }
8686 }
8787 }
8888 }
8989
9090
9191
9292 @Callable(i)
9393 func callWithNativeArgsAndNoPayments (bin,bool,int,str) = {
9494 let txId = toBase58String(i.transactionId)
9595 [BinaryEntry((txId + "_bin"), bin), BooleanEntry((txId + "_bool"), bool), IntegerEntry((txId + "_int"), int), StringEntry((txId + "_str"), str)]
9696 }
9797
9898
9999
100100 @Callable(i)
101101 func callWithListArgsAndNoPayments (bin,bool,int,str) = {
102102 let txId = toBase58String(i.transactionId)
103103 let binSize = size(bin)
104104 let boolSize = size(bool)
105105 let intSize = size(int)
106106 let strSize = size(str)
107107 [IntegerEntry((txId + "_bin_size"), binSize), BinaryEntry((txId + "_bin_first"), bin[0]), BinaryEntry((txId + "_bin_last"), bin[(binSize - 1)]), IntegerEntry((txId + "_bool_size"), boolSize), BooleanEntry((txId + "_bool_first"), bool[0]), BooleanEntry((txId + "_bool_last"), bool[(boolSize - 1)]), IntegerEntry((txId + "_int_size"), intSize), IntegerEntry((txId + "_int_first"), int[0]), IntegerEntry((txId + "_int_last"), int[(intSize - 1)]), IntegerEntry((txId + "_str_size"), strSize), StringEntry((txId + "_str_first"), str[0]), StringEntry((txId + "_str_last"), str[(strSize - 1)])]
108108 }
109109
110110
111111 @Verifier(tx)
112112 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
113113

github/deemru/w8io/169f3d6 
72.22 ms