tx · B81zatPzSijH8aEbLqaahtCCjFQgfGc3AGb4Xm6rbngU
3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp: -0.00100000 Waves
2024.11.11 03:55 [3366088] smart account 3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp > SELF 0.00000000 Waves
{
"type": 13,
"id": "B81zatPzSijH8aEbLqaahtCCjFQgfGc3AGb4Xm6rbngU",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1731286522340,
"version": 1,
"sender": "3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp",
"senderPublicKey": "B5p5JF1Hn7k2YwGxQxgFre8bM5pd7N2c6wPdyKdLzzd6",
"proofs": [
"ChnGAkq3fZ59vciuufqp6qCFpqpn7NhA7WwLYeFXwvESThTyqAZ8BJQKFkEwWFF2Fjfmsm1X1Em8fLwqJbsSXu2"
],
"script": "base64:CAIHCAISAwoBCAABAWkBGGNoZWNrQW5kSW5jcmVtZW50Q291bnRlcgEIZnVuY05hbWUECWhvdXJseUtleQkArAICBQhmdW5jTmFtZQIOX2hvdXJseVR4Q291bnQECGRhaWx5S2V5CQCsAgIFCGZ1bmNOYW1lAg1fZGFpbHlUeENvdW50BA1ob3VybHlUeENvdW50BAckbWF0Y2gwCQCaCAIFBHRoaXMFCWhvdXJseUtleQMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAQMZGFpbHlUeENvdW50BAckbWF0Y2gwCQCaCAIFBHRoaXMFCGRhaWx5S2V5AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAABAtob3VybHlMaW1pdAABBApkYWlseUxpbWl0AAIDCQBnAgUNaG91cmx5VHhDb3VudAULaG91cmx5TGltaXQJAAIBAhVIb3VybHkgbGltaXQgZXhjZWVkZWQDCQBnAgUMZGFpbHlUeENvdW50BQpkYWlseUxpbWl0CQACAQIURGFpbHkgbGltaXQgZXhjZWVkZWQEDm5ld0hvdXJseUNvdW50CQBkAgUNaG91cmx5VHhDb3VudAABBA1uZXdEYWlseUNvdW50CQBkAgUMZGFpbHlUeENvdW50AAEEDXVwZGF0ZVJlc3VsdHMJAMwIAgkBDEludGVnZXJFbnRyeQIFCWhvdXJseUtleQUObmV3SG91cmx5Q291bnQJAMwIAgkBDEludGVnZXJFbnRyeQIFCGRhaWx5S2V5BQ1uZXdEYWlseUNvdW50CQDMCAIJAQxCb29sZWFuRW50cnkCAgZzdGF0dXMGBQNuaWwEByRtYXRjaDAJAJoIAgUEdGhpcwUJaG91cmx5S2V5AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAQHJG1hdGNoMQkAmggCBQR0aGlzBQhkYWlseUtleQMJAAECBQckbWF0Y2gxAgNJbnQEAWIFByRtYXRjaDEDAwkAAAIFAWEFDm5ld0hvdXJseUNvdW50CQAAAgUBYgUNbmV3RGFpbHlDb3VudAcFDXVwZGF0ZVJlc3VsdHMJAAIBAhJEYXRhIHVwZGF0ZSBmYWlsZWQJAAIBAhlGYWlsZWQgdG8gZ2V0IGRhaWx5IGNvdW50CQACAQIaRmFpbGVkIHRvIGdldCBob3VybHkgY291bnQAsrJsrA==",
"chainId": 84,
"height": 3366088,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4zZPuzjT7pDRrT5qzgCEdpapYTHkf2bqKGcN5LKSbgbG
Next: 9xodT1oDz92dKasoDtETBUejZA4om5WMm8La8MG522Pc
Diff:
Old | New | | Differences |
---|
34 | 34 | | else { |
---|
35 | 35 | | let k = (e + 1) |
---|
36 | 36 | | let l = (h + 1) |
---|
37 | | - | let m = [IntegerEntry(c, k), IntegerEntry(d, l), BooleanEntry("status", true), IntegerEntry("newHourlyCount", k), StringEntry("message", "Transaction successful")] |
---|
38 | | - | let n = getInteger(this, c) |
---|
39 | | - | let o = getInteger(this, d) |
---|
40 | | - | let f = n |
---|
| 37 | + | let m = [IntegerEntry(c, k), IntegerEntry(d, l), BooleanEntry("status", true)] |
---|
| 38 | + | let f = getInteger(this, c) |
---|
41 | 39 | | if ($isInstanceOf(f, "Int")) |
---|
42 | 40 | | then { |
---|
43 | 41 | | let g = f |
---|
44 | | - | let p = o |
---|
45 | | - | if ($isInstanceOf(p, "Int")) |
---|
| 42 | + | let n = getInteger(this, d) |
---|
| 43 | + | if ($isInstanceOf(n, "Int")) |
---|
46 | 44 | | then { |
---|
47 | | - | let q = p |
---|
| 45 | + | let o = n |
---|
48 | 46 | | if (if ((g == k)) |
---|
49 | | - | then (q == l) |
---|
| 47 | + | then (o == l) |
---|
50 | 48 | | else false) |
---|
51 | 49 | | then m |
---|
52 | 50 | | else throw("Data update failed") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 8 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func checkAndIncrementCounter (b) = { |
---|
8 | 8 | | let c = (b + "_hourlyTxCount") |
---|
9 | 9 | | let d = (b + "_dailyTxCount") |
---|
10 | 10 | | let e = { |
---|
11 | 11 | | let f = getInteger(this, c) |
---|
12 | 12 | | if ($isInstanceOf(f, "Int")) |
---|
13 | 13 | | then { |
---|
14 | 14 | | let g = f |
---|
15 | 15 | | g |
---|
16 | 16 | | } |
---|
17 | 17 | | else 0 |
---|
18 | 18 | | } |
---|
19 | 19 | | let h = { |
---|
20 | 20 | | let f = getInteger(this, d) |
---|
21 | 21 | | if ($isInstanceOf(f, "Int")) |
---|
22 | 22 | | then { |
---|
23 | 23 | | let g = f |
---|
24 | 24 | | g |
---|
25 | 25 | | } |
---|
26 | 26 | | else 0 |
---|
27 | 27 | | } |
---|
28 | 28 | | let i = 1 |
---|
29 | 29 | | let j = 2 |
---|
30 | 30 | | if ((e >= i)) |
---|
31 | 31 | | then throw("Hourly limit exceeded") |
---|
32 | 32 | | else if ((h >= j)) |
---|
33 | 33 | | then throw("Daily limit exceeded") |
---|
34 | 34 | | else { |
---|
35 | 35 | | let k = (e + 1) |
---|
36 | 36 | | let l = (h + 1) |
---|
37 | | - | let m = [IntegerEntry(c, k), IntegerEntry(d, l), BooleanEntry("status", true), IntegerEntry("newHourlyCount", k), StringEntry("message", "Transaction successful")] |
---|
38 | | - | let n = getInteger(this, c) |
---|
39 | | - | let o = getInteger(this, d) |
---|
40 | | - | let f = n |
---|
| 37 | + | let m = [IntegerEntry(c, k), IntegerEntry(d, l), BooleanEntry("status", true)] |
---|
| 38 | + | let f = getInteger(this, c) |
---|
41 | 39 | | if ($isInstanceOf(f, "Int")) |
---|
42 | 40 | | then { |
---|
43 | 41 | | let g = f |
---|
44 | | - | let p = o |
---|
45 | | - | if ($isInstanceOf(p, "Int")) |
---|
| 42 | + | let n = getInteger(this, d) |
---|
| 43 | + | if ($isInstanceOf(n, "Int")) |
---|
46 | 44 | | then { |
---|
47 | | - | let q = p |
---|
| 45 | + | let o = n |
---|
48 | 46 | | if (if ((g == k)) |
---|
49 | | - | then (q == l) |
---|
| 47 | + | then (o == l) |
---|
50 | 48 | | else false) |
---|
51 | 49 | | then m |
---|
52 | 50 | | else throw("Data update failed") |
---|
53 | 51 | | } |
---|
54 | 52 | | else throw("Failed to get daily count") |
---|
55 | 53 | | } |
---|
56 | 54 | | else throw("Failed to get hourly count") |
---|
57 | 55 | | } |
---|
58 | 56 | | } |
---|
59 | 57 | | |
---|
60 | 58 | | |
---|