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:AAIFAAAAAAAAAiUIAhIAEgASBgoEAgQBCBIGCgQSFBEYGgcKAmExEgFpGgoKAmEyEgR0eElkGhQKAmEzEg5hZGRQYXltZW50SW5mbxoJCgJhNBIDYWNjGgsKAmE1EgVpbmRleBoJCgJhNhIDcG10GgsKAmE3EgVhc3NldBoNCgJhOBIHJG1hdGNoMBoICgJhORICaWQaCwoCYjESBXdhdmVzGhEKAmIyEgskbGlzdDcxNDc3NRoRCgJiMxILJHNpemU3MTQ3NzUaEQoCYjQSCyRhY2MwNzE0Nzc1GhEKAmI1EgskYWNjMTcxNDc3NRoRCgJiNhILJGFjYzI3MTQ3NzUaEQoCYjcSCyRhY2MzNzE0Nzc1GhEKAmI4EgskYWNjNDcxNDc3NRoRCgJiORILJGFjYzU3MTQ3NzUaEQoCYzESCyRhY2M2NzE0Nzc1GhEKAmMyEgskYWNjNzcxNDc3NRoRCgJjMxILJGFjYzg3MTQ3NzUaEQoCYzQSCyRhY2M5NzE0Nzc1GhIKAmM1EgwkYWNjMTA3MTQ3NzUaEgoCYzYSDCRhY2MxMTcxNDc3NRoJCgJjNxIDYmluGgoKAmM4EgRib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GUAAAACBQAAAAJkNAAAAAAAAAAAAQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAAJhMgIAAAAJX3N0cl9zaXplBQAAAAJkNQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAAAmEyAgAAAApfc3RyX2ZpcnN0CQABkQAAAAIFAAAAAmQxAAAAAAAAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAACYTICAAAACV9zdHJfbGFzdAkAAZEAAAACBQAAAAJkMQkAAGUAAAACBQAAAAJkNQAAAAAAAAAAAQUAAAADbmlsAAAAAQAAAAJkNgEAAAACZDcAAAAACQAB9AAAAAMIBQAAAAJkNgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmQ2AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmQ2AAAAD3NlbmRlclB1YmxpY0tleYCvB0c=", "chainId": 84, "height": 1695570, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EhwKKPadksBiAitzdENmpgwrZLDkCoghtce2sw3UZ5Ha Next: none Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | @Callable(a) | |
12 | 12 | func callWithPaymentsButNoArgs () = { | |
13 | 13 | let b = toBase58String(a.transactionId) | |
14 | - | func c (d,e) = if ((size(a.payments) | |
14 | + | func c (d,e) = if ((e >= size(a.payments))) | |
15 | 15 | then d | |
16 | 16 | else { | |
17 | 17 | let f = a.payments[e] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func default () = [StringEntry("default-call-id", toBase58String(a.transactionId))] | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||
11 | 11 | @Callable(a) | |
12 | 12 | func callWithPaymentsButNoArgs () = { | |
13 | 13 | let b = toBase58String(a.transactionId) | |
14 | - | func c (d,e) = if ((size(a.payments) | |
14 | + | func c (d,e) = if ((e >= size(a.payments))) | |
15 | 15 | then d | |
16 | 16 | else { | |
17 | 17 | let f = a.payments[e] | |
18 | 18 | let g = { | |
19 | 19 | let h = f.assetId | |
20 | 20 | if ($isInstanceOf(h, "ByteVector")) | |
21 | 21 | then { | |
22 | 22 | let i = h | |
23 | 23 | (((value(assetInfo(i)).name + " (") + toBase58String(i)) + ")") | |
24 | 24 | } | |
25 | 25 | else if ($isInstanceOf(h, "Unit")) | |
26 | 26 | then { | |
27 | 27 | let j = h | |
28 | 28 | "WAVES" | |
29 | 29 | } | |
30 | 30 | else throw("Match error") | |
31 | 31 | } | |
32 | 32 | (d :+ StringEntry(((b + "_") + toString(e)), ((toString(f.amount) + " ") + g))) | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let k = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
36 | 36 | let l = size(k) | |
37 | 37 | let m = nil | |
38 | 38 | if ((l == 0)) | |
39 | 39 | then m | |
40 | 40 | else { | |
41 | 41 | let n = c(m, k[0]) | |
42 | 42 | if ((l == 1)) | |
43 | 43 | then n | |
44 | 44 | else { | |
45 | 45 | let o = c(n, k[1]) | |
46 | 46 | if ((l == 2)) | |
47 | 47 | then o | |
48 | 48 | else { | |
49 | 49 | let p = c(o, k[2]) | |
50 | 50 | if ((l == 3)) | |
51 | 51 | then p | |
52 | 52 | else { | |
53 | 53 | let q = c(p, k[3]) | |
54 | 54 | if ((l == 4)) | |
55 | 55 | then q | |
56 | 56 | else { | |
57 | 57 | let r = c(q, k[4]) | |
58 | 58 | if ((l == 5)) | |
59 | 59 | then r | |
60 | 60 | else { | |
61 | 61 | let s = c(r, k[5]) | |
62 | 62 | if ((l == 6)) | |
63 | 63 | then s | |
64 | 64 | else { | |
65 | 65 | let t = c(s, k[6]) | |
66 | 66 | if ((l == 7)) | |
67 | 67 | then t | |
68 | 68 | else { | |
69 | 69 | let u = c(t, k[7]) | |
70 | 70 | if ((l == 8)) | |
71 | 71 | then u | |
72 | 72 | else { | |
73 | 73 | let v = c(u, k[8]) | |
74 | 74 | if ((l == 9)) | |
75 | 75 | then v | |
76 | 76 | else { | |
77 | 77 | let w = c(v, k[9]) | |
78 | 78 | if ((l == 10)) | |
79 | 79 | then w | |
80 | 80 | else { | |
81 | 81 | let x = c(w, k[10]) | |
82 | 82 | throw("List size exceed 10") | |
83 | 83 | } | |
84 | 84 | } | |
85 | 85 | } | |
86 | 86 | } | |
87 | 87 | } | |
88 | 88 | } | |
89 | 89 | } | |
90 | 90 | } | |
91 | 91 | } | |
92 | 92 | } | |
93 | 93 | } | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | ||
98 | 98 | @Callable(a) | |
99 | 99 | func callWithNativeArgsAndNoPayments (y,z,A,B) = { | |
100 | 100 | let b = toBase58String(a.transactionId) | |
101 | 101 | [BinaryEntry((b + "_bin"), y), BooleanEntry((b + "_bool"), z), IntegerEntry((b + "_int"), A), StringEntry((b + "_str"), B)] | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(a) | |
107 | 107 | func callWithListArgsAndNoPayments (y,z,A,B) = { | |
108 | 108 | let b = toBase58String(a.transactionId) | |
109 | 109 | let C = size(y) | |
110 | 110 | let D = size(z) | |
111 | 111 | let E = size(A) | |
112 | 112 | let F = size(B) | |
113 | 113 | [IntegerEntry((b + "_bin_size"), C), BinaryEntry((b + "_bin_first"), y[0]), BinaryEntry((b + "_bin_last"), y[(C - 1)]), IntegerEntry((b + "_bool_size"), D), BooleanEntry((b + "_bool_first"), z[0]), BooleanEntry((b + "_bool_last"), z[(D - 1)]), IntegerEntry((b + "_int_size"), E), IntegerEntry((b + "_int_first"), A[0]), IntegerEntry((b + "_int_last"), A[(E - 1)]), IntegerEntry((b + "_str_size"), F), StringEntry((b + "_str_first"), B[0]), StringEntry((b + "_str_last"), B[(F - 1)])] | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Verifier(G) | |
118 | 118 | func H () = sigVerify(G.bodyBytes, G.proofs[0], G.senderPublicKey) | |
119 | 119 |
github/deemru/w8io/169f3d6 38.34 ms ◑