tx · 9YhdhF59bKVXCBEFwTYseRGCbc2h46RGpakR82MWURs9
3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2: -0.05000000 Waves
2022.12.22 14:37 [2371448] smart account 3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9YhdhF59bKVXCBEFwTYseRGCbc2h46RGpakR82MWURs9",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1671709059933,
"version": 2,
"chainId": 84,
"sender": "3N3evGP2tTeuXuq3iHz13Wrjm7BonuiSMd2",
"senderPublicKey": "3XEAduJnZeFRL74JfaQk7MgrGDo9a9xREYyfLvyivREU",
"proofs": [
"pEj2UqZCq3t9iLtEPxcRq2TPoF4hmah7btfrdWSMxDpEki6W4bXp2mPi5U38WoGbFMgx6iRPAW5GMWVUJacWgBj"
],
"script": "base64:BgIRCAISAwoBCBIDCgEIEgMKAQgGAA9NRVNTQUdFX0NPVU5URVICD21lc3NhZ2VfY291bnRlcgANRk9MTE9XX1NUUklORwIHZm9sbG93cwAQVFdFRVRfS0VZX1NUUklORwIGdHdlZXRfARFnZXRNZXNzYWdlQ291bnRlcgAJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUPTUVTU0FHRV9DT1VOVEVSAAABKWdldExhdGVzdFR3ZWV0SWZGcm9tU29tZW9uZUFkZHJlc3NGb2xsb3dzAgVhY2N1bQZvZmZzZXQEB2FkZHJlc3MCIzNNdVN2eHpmenFMVERQcTFqNW1USHdLNXRMeDVDaERjUU1pBA5tZXNzYWdlQ291bnRlcgkBEWdldE1lc3NhZ2VDb3VudGVyAAQHdHdlZXRJZAkBC3ZhbHVlT3JFbHNlAgkAoggBCQCsAgIFEFRXRUVUX0tFWV9TVFJJTkcJAKQDAQkAZQIFDm1lc3NhZ2VDb3VudGVyBQZvZmZzZXQCAAQFcGFydHMJALUJAgUHdHdlZXRJZAIBXwQGc2VuZGVyCQCRAwIFBXBhcnRzAAAEE2tleVRvQ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BaQEFdHdlZXQBB21lc3NhZ2UEDm1lc3NhZ2VDb3VudGVyCQBkAgkBEWdldE1lc3NhZ2VDb3VudGVyAAABBAZzZW5kZXIJAKUIAQgFAWkGY2FsbGVyBAR0eElkCQDYBAEIBQFpDXRyYW5zYWN0aW9uSWQEBm1zZ0tleQkArAICCQCsAgIFBnNlbmRlcgIBXwUEdHhJZAQIdHdlZXRLZXkJAKwCAgUQVFdFRVRfS0VZX1NUUklORwkApAMBBQ5tZXNzYWdlQ291bnRlcgkAzAgCCQELU3RyaW5nRW50cnkCBQZtc2dLZXkFB21lc3NhZ2UJAMwIAgkBC1N0cmluZ0VudHJ5AgUIdHdlZXRLZXkFBm1zZ0tleQkAzAgCCQEMSW50ZWdlckVudHJ5AgUPTUVTU0FHRV9DT1VOVEVSBQ5tZXNzYWdlQ291bnRlcgUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleTUXtsI=",
"height": 2371448,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: G73z9UzfxhSayKNW6cqW12MYi1xjMQkjCHVeKz2VNw1W
Next: 8RDBbqchKHDpMCkXTgXAKcs2CjwrDVh84iKKwqUy1RHn
Diff:
Old | New | | Differences |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | func e (f,g) = { |
---|
14 | | - | let h = d() |
---|
15 | | - | let i = valueOrElse(getString((c + toString((h - g)))), "") |
---|
16 | | - | let j = split(i, "_") |
---|
17 | | - | let k = j[0] |
---|
18 | | - | let l = ((((f + "_") + b) + "_") + k) |
---|
19 | | - | let m = valueOrElse(getBoolean(l), false) |
---|
20 | | - | if (m) |
---|
21 | | - | then getString(i) |
---|
22 | | - | else "" |
---|
| 14 | + | let h = "3MuSvxzfzqLTDPq1j5mTHwK5tLx5ChDcQMi" |
---|
| 15 | + | let i = d() |
---|
| 16 | + | let j = valueOrElse(getString((c + toString((i - g)))), "") |
---|
| 17 | + | let k = split(j, "_") |
---|
| 18 | + | let l = k[0] |
---|
| 19 | + | let m = ((((h + "_") + b) + "_") + l) |
---|
| 20 | + | let n = valueOrElse(getBoolean(m), false) |
---|
| 21 | + | if (n) |
---|
| 22 | + | then (f :+ getString(j)) |
---|
| 23 | + | else f |
---|
23 | 24 | | } |
---|
24 | 25 | | |
---|
25 | 26 | | |
---|
26 | | - | @Callable(n) |
---|
27 | | - | func follow (f) = { |
---|
28 | | - | let k = toString(n.caller) |
---|
29 | | - | let o = ((((k + "_") + b) + "_") + f) |
---|
30 | | - | [BooleanEntry(o, true)] |
---|
| 27 | + | func o (h) = { |
---|
| 28 | + | let p = [0, 1, 2] |
---|
| 29 | + | let q = p |
---|
| 30 | + | let r = size(q) |
---|
| 31 | + | let s = nil |
---|
| 32 | + | func t (u,v) = if ((v >= r)) |
---|
| 33 | + | then u |
---|
| 34 | + | else e(u, q[v]) |
---|
| 35 | + | |
---|
| 36 | + | func w (u,v) = if ((v >= r)) |
---|
| 37 | + | then u |
---|
| 38 | + | else throw("List size exceeds 3") |
---|
| 39 | + | |
---|
| 40 | + | w(t(t(t(s, 0), 1), 2), 3) |
---|
| 41 | + | } |
---|
| 42 | + | |
---|
| 43 | + | |
---|
| 44 | + | @Callable(x) |
---|
| 45 | + | func follow (h) = { |
---|
| 46 | + | let l = toString(x.caller) |
---|
| 47 | + | let y = ((((l + "_") + b) + "_") + h) |
---|
| 48 | + | [BooleanEntry(y, true)] |
---|
31 | 49 | | } |
---|
32 | 50 | | |
---|
33 | 51 | | |
---|
34 | 52 | | |
---|
35 | | - | @Callable(n) |
---|
36 | | - | func unfollow (f) = { |
---|
37 | | - | let k = toString(n.caller) |
---|
38 | | - | let o = ((((k + "_") + b) + "_") + f) |
---|
39 | | - | [DeleteEntry(o)] |
---|
| 53 | + | @Callable(x) |
---|
| 54 | + | func unfollow (h) = { |
---|
| 55 | + | let l = toString(x.caller) |
---|
| 56 | + | let y = ((((l + "_") + b) + "_") + h) |
---|
| 57 | + | [DeleteEntry(y)] |
---|
40 | 58 | | } |
---|
41 | 59 | | |
---|
42 | 60 | | |
---|
43 | 61 | | |
---|
44 | | - | @Callable(n) |
---|
45 | | - | func tweet (p) = { |
---|
46 | | - | let h = (d() + 1) |
---|
47 | | - | let k = toString(n.caller) |
---|
48 | | - | let q = toBase58String(n.transactionId) |
---|
49 | | - | let r = ((k + "_") + q) |
---|
50 | | - | let s = (c + toString(h)) |
---|
51 | | - | [StringEntry(r, p), StringEntry(s, r), IntegerEntry(a, h)] |
---|
| 62 | + | @Callable(x) |
---|
| 63 | + | func tweet (z) = { |
---|
| 64 | + | let i = (d() + 1) |
---|
| 65 | + | let l = toString(x.caller) |
---|
| 66 | + | let A = toBase58String(x.transactionId) |
---|
| 67 | + | let B = ((l + "_") + A) |
---|
| 68 | + | let C = (c + toString(i)) |
---|
| 69 | + | [StringEntry(B, z), StringEntry(C, B), IntegerEntry(a, i)] |
---|
52 | 70 | | } |
---|
53 | 71 | | |
---|
54 | 72 | | |
---|
55 | | - | @Verifier(t) |
---|
56 | | - | func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
| 73 | + | @Verifier(D) |
---|
| 74 | + | func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) |
---|
57 | 75 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "message_counter" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "follows" |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "tweet_" |
---|
9 | 9 | | |
---|
10 | 10 | | func d () = valueOrElse(getInteger(a), 0) |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | func e (f,g) = { |
---|
14 | | - | let h = d() |
---|
15 | | - | let i = valueOrElse(getString((c + toString((h - g)))), "") |
---|
16 | | - | let j = split(i, "_") |
---|
17 | | - | let k = j[0] |
---|
18 | | - | let l = ((((f + "_") + b) + "_") + k) |
---|
19 | | - | let m = valueOrElse(getBoolean(l), false) |
---|
20 | | - | if (m) |
---|
21 | | - | then getString(i) |
---|
22 | | - | else "" |
---|
| 14 | + | let h = "3MuSvxzfzqLTDPq1j5mTHwK5tLx5ChDcQMi" |
---|
| 15 | + | let i = d() |
---|
| 16 | + | let j = valueOrElse(getString((c + toString((i - g)))), "") |
---|
| 17 | + | let k = split(j, "_") |
---|
| 18 | + | let l = k[0] |
---|
| 19 | + | let m = ((((h + "_") + b) + "_") + l) |
---|
| 20 | + | let n = valueOrElse(getBoolean(m), false) |
---|
| 21 | + | if (n) |
---|
| 22 | + | then (f :+ getString(j)) |
---|
| 23 | + | else f |
---|
23 | 24 | | } |
---|
24 | 25 | | |
---|
25 | 26 | | |
---|
26 | | - | @Callable(n) |
---|
27 | | - | func follow (f) = { |
---|
28 | | - | let k = toString(n.caller) |
---|
29 | | - | let o = ((((k + "_") + b) + "_") + f) |
---|
30 | | - | [BooleanEntry(o, true)] |
---|
| 27 | + | func o (h) = { |
---|
| 28 | + | let p = [0, 1, 2] |
---|
| 29 | + | let q = p |
---|
| 30 | + | let r = size(q) |
---|
| 31 | + | let s = nil |
---|
| 32 | + | func t (u,v) = if ((v >= r)) |
---|
| 33 | + | then u |
---|
| 34 | + | else e(u, q[v]) |
---|
| 35 | + | |
---|
| 36 | + | func w (u,v) = if ((v >= r)) |
---|
| 37 | + | then u |
---|
| 38 | + | else throw("List size exceeds 3") |
---|
| 39 | + | |
---|
| 40 | + | w(t(t(t(s, 0), 1), 2), 3) |
---|
| 41 | + | } |
---|
| 42 | + | |
---|
| 43 | + | |
---|
| 44 | + | @Callable(x) |
---|
| 45 | + | func follow (h) = { |
---|
| 46 | + | let l = toString(x.caller) |
---|
| 47 | + | let y = ((((l + "_") + b) + "_") + h) |
---|
| 48 | + | [BooleanEntry(y, true)] |
---|
31 | 49 | | } |
---|
32 | 50 | | |
---|
33 | 51 | | |
---|
34 | 52 | | |
---|
35 | | - | @Callable(n) |
---|
36 | | - | func unfollow (f) = { |
---|
37 | | - | let k = toString(n.caller) |
---|
38 | | - | let o = ((((k + "_") + b) + "_") + f) |
---|
39 | | - | [DeleteEntry(o)] |
---|
| 53 | + | @Callable(x) |
---|
| 54 | + | func unfollow (h) = { |
---|
| 55 | + | let l = toString(x.caller) |
---|
| 56 | + | let y = ((((l + "_") + b) + "_") + h) |
---|
| 57 | + | [DeleteEntry(y)] |
---|
40 | 58 | | } |
---|
41 | 59 | | |
---|
42 | 60 | | |
---|
43 | 61 | | |
---|
44 | | - | @Callable(n) |
---|
45 | | - | func tweet (p) = { |
---|
46 | | - | let h = (d() + 1) |
---|
47 | | - | let k = toString(n.caller) |
---|
48 | | - | let q = toBase58String(n.transactionId) |
---|
49 | | - | let r = ((k + "_") + q) |
---|
50 | | - | let s = (c + toString(h)) |
---|
51 | | - | [StringEntry(r, p), StringEntry(s, r), IntegerEntry(a, h)] |
---|
| 62 | + | @Callable(x) |
---|
| 63 | + | func tweet (z) = { |
---|
| 64 | + | let i = (d() + 1) |
---|
| 65 | + | let l = toString(x.caller) |
---|
| 66 | + | let A = toBase58String(x.transactionId) |
---|
| 67 | + | let B = ((l + "_") + A) |
---|
| 68 | + | let C = (c + toString(i)) |
---|
| 69 | + | [StringEntry(B, z), StringEntry(C, B), IntegerEntry(a, i)] |
---|
52 | 70 | | } |
---|
53 | 71 | | |
---|
54 | 72 | | |
---|
55 | | - | @Verifier(t) |
---|
56 | | - | func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
| 73 | + | @Verifier(D) |
---|
| 74 | + | func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) |
---|
57 | 75 | | |
---|