tx · BRy3tyrs2Uq5MSrD5dQT9ukQF4tvTFciVg2hhr5z6HUs
3N1PSeoq2yc1MWP4pXAtVK6VUUE5zvH24gc: -0.00700000 Waves
2022.08.08 12:06 [2175282] smart account 3N1PSeoq2yc1MWP4pXAtVK6VUUE5zvH24gc > SELF 0.00000000 Waves
{
"type": 13,
"id": "BRy3tyrs2Uq5MSrD5dQT9ukQF4tvTFciVg2hhr5z6HUs",
"fee": 700000,
"feeAssetId": null,
"timestamp": 1659949700628,
"version": 2,
"chainId": 84,
"sender": "3N1PSeoq2yc1MWP4pXAtVK6VUUE5zvH24gc",
"senderPublicKey": "FqZgs8PK3Pxq9oFfuCik8VrHfas2rFv5KxKwyHXRBafX",
"proofs": [
"B6MvVDajX3aRgFtcAgv7ruHcx4FVtznJGLKt74HjTf9vTK9oWVTexbkCtZuaV1cMAJurkkTqi9yqejBQPM4ByTA"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAABQAAAARkYXRhAAAAAQAAAAFpAQAAAAZzdGF0dXMAAAACAAAAC3Bvc2l0aW9uS2V5AAAAC3BpZWxBZGRyZXNzBAAAAA9jdXN0b21lckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAARY3VzdG9tZXJQdWJsaWNLZXkJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAA9wb3NpdGlvbktleURhdGEJAQAAAAdnZXREYXRhAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAPY3VzdG9tZXJBZGRyZXNzBQAAAAtwb3NpdGlvbktleQQAAAAQcG9za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QAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVCPSnU=",
"height": 2175282,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 12uePdz9rM412Q1DzkbCadnv7c67KMALpxVL813JL5VJ
Next: TwMkmJ7wj8yDKs2qfNjZDdGR9dJmpDHY7WLrRwTj1Cj
Diff:
Old | New | | Differences |
---|
19 | 19 | | func status (h,i) = { |
---|
20 | 20 | | let j = toBase58String(g.caller.bytes) |
---|
21 | 21 | | let k = toBase58String(g.callerPublicKey) |
---|
22 | | - | let l = split(h, "_") |
---|
23 | | - | let m = l[1] |
---|
24 | | - | let n = (l[0] + "_hash") |
---|
25 | | - | let o = a(addressFromStringValue(i), n) |
---|
26 | | - | let p = split(o, "_") |
---|
27 | | - | let q = parseIntValue(m) |
---|
28 | | - | func r (s,t) = { |
---|
29 | | - | let u = parseIntValue(t) |
---|
30 | | - | if ((q >= u)) |
---|
31 | | - | then u |
---|
32 | | - | else s |
---|
| 22 | + | let l = a(addressFromStringValue(j), h) |
---|
| 23 | + | let m = split(h, "_") |
---|
| 24 | + | let n = m[1] |
---|
| 25 | + | let o = (m[0] + "_hash") |
---|
| 26 | + | let p = a(addressFromStringValue(i), o) |
---|
| 27 | + | let q = split(p, "_") |
---|
| 28 | + | let r = parseIntValue(n) |
---|
| 29 | + | func s (t,u) = { |
---|
| 30 | + | let v = parseIntValue(u) |
---|
| 31 | + | if ((r >= v)) |
---|
| 32 | + | then v |
---|
| 33 | + | else t |
---|
33 | 34 | | } |
---|
34 | 35 | | |
---|
35 | | - | let v = size(p) |
---|
36 | | - | let w = { |
---|
37 | | - | let x = p |
---|
38 | | - | let y = size(x) |
---|
39 | | - | let z = 0 |
---|
40 | | - | func A (B,C) = if ((C >= y)) |
---|
41 | | - | then B |
---|
42 | | - | else r(B, x[C]) |
---|
| 36 | + | let w = size(q) |
---|
| 37 | + | let x = { |
---|
| 38 | + | let y = q |
---|
| 39 | + | let z = size(y) |
---|
| 40 | + | let A = 0 |
---|
| 41 | + | func B (C,D) = if ((D >= z)) |
---|
| 42 | + | then C |
---|
| 43 | + | else s(C, y[D]) |
---|
43 | 44 | | |
---|
44 | | - | func D (B,C) = if ((C >= y)) |
---|
45 | | - | then B |
---|
| 45 | + | func E (C,D) = if ((D >= z)) |
---|
| 46 | + | then C |
---|
46 | 47 | | else throw("List size exceeds 5") |
---|
47 | 48 | | |
---|
48 | | - | D(A(A(A(A(A(z, 0), 1), 2), 3), 4), 5) |
---|
| 49 | + | E(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5) |
---|
49 | 50 | | } |
---|
50 | | - | let E = (((l[0] + "_") + toString(w)) + "_hash") |
---|
51 | | - | let d = a(addressFromStringValue(i), E) |
---|
52 | | - | [StringEntry((l[0] + "_Test"), d), StringEntry((l[0] + "_Test2"), E)] |
---|
| 51 | + | let F = (((m[0] + "_") + toString(x)) + "_hash") |
---|
| 52 | + | let d = a(addressFromStringValue(i), F) |
---|
| 53 | + | [StringEntry((m[0] + "_PriceListKey_Data"), d), StringEntry((m[0] + "_Customer_Position_Data"), l)] |
---|
53 | 54 | | } |
---|
54 | 55 | | |
---|
55 | 56 | | |
---|
56 | | - | @Verifier(F) |
---|
57 | | - | func G () = sigVerify(F.bodyBytes, F.proofs[0], F.senderPublicKey) |
---|
| 57 | + | @Verifier(G) |
---|
| 58 | + | func H () = sigVerify(G.bodyBytes, G.proofs[0], G.senderPublicKey) |
---|
58 | 59 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b,c) = { |
---|
5 | 5 | | let d = { |
---|
6 | 6 | | let e = getString(b, c) |
---|
7 | 7 | | if ($isInstanceOf(e, "String")) |
---|
8 | 8 | | then { |
---|
9 | 9 | | let f = e |
---|
10 | 10 | | f |
---|
11 | 11 | | } |
---|
12 | 12 | | else "" |
---|
13 | 13 | | } |
---|
14 | 14 | | d |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Callable(g) |
---|
19 | 19 | | func status (h,i) = { |
---|
20 | 20 | | let j = toBase58String(g.caller.bytes) |
---|
21 | 21 | | let k = toBase58String(g.callerPublicKey) |
---|
22 | | - | let l = split(h, "_") |
---|
23 | | - | let m = l[1] |
---|
24 | | - | let n = (l[0] + "_hash") |
---|
25 | | - | let o = a(addressFromStringValue(i), n) |
---|
26 | | - | let p = split(o, "_") |
---|
27 | | - | let q = parseIntValue(m) |
---|
28 | | - | func r (s,t) = { |
---|
29 | | - | let u = parseIntValue(t) |
---|
30 | | - | if ((q >= u)) |
---|
31 | | - | then u |
---|
32 | | - | else s |
---|
| 22 | + | let l = a(addressFromStringValue(j), h) |
---|
| 23 | + | let m = split(h, "_") |
---|
| 24 | + | let n = m[1] |
---|
| 25 | + | let o = (m[0] + "_hash") |
---|
| 26 | + | let p = a(addressFromStringValue(i), o) |
---|
| 27 | + | let q = split(p, "_") |
---|
| 28 | + | let r = parseIntValue(n) |
---|
| 29 | + | func s (t,u) = { |
---|
| 30 | + | let v = parseIntValue(u) |
---|
| 31 | + | if ((r >= v)) |
---|
| 32 | + | then v |
---|
| 33 | + | else t |
---|
33 | 34 | | } |
---|
34 | 35 | | |
---|
35 | | - | let v = size(p) |
---|
36 | | - | let w = { |
---|
37 | | - | let x = p |
---|
38 | | - | let y = size(x) |
---|
39 | | - | let z = 0 |
---|
40 | | - | func A (B,C) = if ((C >= y)) |
---|
41 | | - | then B |
---|
42 | | - | else r(B, x[C]) |
---|
| 36 | + | let w = size(q) |
---|
| 37 | + | let x = { |
---|
| 38 | + | let y = q |
---|
| 39 | + | let z = size(y) |
---|
| 40 | + | let A = 0 |
---|
| 41 | + | func B (C,D) = if ((D >= z)) |
---|
| 42 | + | then C |
---|
| 43 | + | else s(C, y[D]) |
---|
43 | 44 | | |
---|
44 | | - | func D (B,C) = if ((C >= y)) |
---|
45 | | - | then B |
---|
| 45 | + | func E (C,D) = if ((D >= z)) |
---|
| 46 | + | then C |
---|
46 | 47 | | else throw("List size exceeds 5") |
---|
47 | 48 | | |
---|
48 | | - | D(A(A(A(A(A(z, 0), 1), 2), 3), 4), 5) |
---|
| 49 | + | E(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5) |
---|
49 | 50 | | } |
---|
50 | | - | let E = (((l[0] + "_") + toString(w)) + "_hash") |
---|
51 | | - | let d = a(addressFromStringValue(i), E) |
---|
52 | | - | [StringEntry((l[0] + "_Test"), d), StringEntry((l[0] + "_Test2"), E)] |
---|
| 51 | + | let F = (((m[0] + "_") + toString(x)) + "_hash") |
---|
| 52 | + | let d = a(addressFromStringValue(i), F) |
---|
| 53 | + | [StringEntry((m[0] + "_PriceListKey_Data"), d), StringEntry((m[0] + "_Customer_Position_Data"), l)] |
---|
53 | 54 | | } |
---|
54 | 55 | | |
---|
55 | 56 | | |
---|
56 | | - | @Verifier(F) |
---|
57 | | - | func G () = sigVerify(F.bodyBytes, F.proofs[0], F.senderPublicKey) |
---|
| 57 | + | @Verifier(G) |
---|
| 58 | + | func H () = sigVerify(G.bodyBytes, G.proofs[0], G.senderPublicKey) |
---|
58 | 59 | | |
---|