tx · Bj8ozJGLjpXRX6GryS6z8JrfdQp18B9q19SCkhcb9E3S 3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp: -0.00100000 Waves 2024.11.11 01:59 [3365983] smart account 3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp > SELF 0.00000000 Waves
{ "type": 13, "id": "Bj8ozJGLjpXRX6GryS6z8JrfdQp18B9q19SCkhcb9E3S", "fee": 100000, "feeAssetId": null, "timestamp": 1731279612935, "version": 1, "sender": "3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp", "senderPublicKey": "B5p5JF1Hn7k2YwGxQxgFre8bM5pd7N2c6wPdyKdLzzd6", "proofs": [ "3i2sbB6c12zLaX6GexeVNXUK6GjrU6B9LEFtFwSvgZpkLccnCNwe5trqmczkvuP88ZXoDE7jP6Uq7Uz92tJscaG4" ], "script": "base64:CAIHCAISAwoBCAABAWkBGGNoZWNrQW5kSW5jcmVtZW50Q291bnRlcgEIZnVuY05hbWUECWhvdXJseUtleQkArAICBQhmdW5jTmFtZQIOX2hvdXJseVR4Q291bnQECGRhaWx5S2V5CQCsAgIFCGZ1bmNOYW1lAg1fZGFpbHlUeENvdW50BA1ob3VybHlUeENvdW50BAckbWF0Y2gwCQCaCAIFBHRoaXMFCWhvdXJseUtleQMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAQMZGFpbHlUeENvdW50BAckbWF0Y2gwCQCaCAIFBHRoaXMFCGRhaWx5S2V5AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAABAtob3VybHlMaW1pdAABBApkYWlseUxpbWl0AAIDCQBnAgUNaG91cmx5VHhDb3VudAULaG91cmx5TGltaXQJAAIBAhVIb3VybHkgbGltaXQgZXhjZWVkZWQDCQBnAgUMZGFpbHlUeENvdW50BQpkYWlseUxpbWl0CQACAQIURGFpbHkgbGltaXQgZXhjZWVkZWQEDm5ld0hvdXJseUNvdW50CQBkAgUNaG91cmx5VHhDb3VudAABBA1uZXdEYWlseUNvdW50CQBkAgUMZGFpbHlUeENvdW50AAEJAMwIAgkBDEludGVnZXJFbnRyeQIFCWhvdXJseUtleQUObmV3SG91cmx5Q291bnQJAMwIAgkBDEludGVnZXJFbnRyeQIFCGRhaWx5S2V5BQ1uZXdEYWlseUNvdW50CQDMCAIJAQxCb29sZWFuRW50cnkCAgZzdGF0dXMGCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg5uZXdIb3VybHlDb3VudAUObmV3SG91cmx5Q291bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgIHbWVzc2FnZQIWVHJhbnNhY3Rpb24gc3VjY2Vzc2Z1bAUDbmlsANtJINE=", "chainId": 84, "height": 3365983, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: CfgCYotALxRXTnzyYeyG3qhrCzh3naEXQJ17puEEucsr Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 8 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(a) | |
7 | + | func checkAndIncrementCounter (b) = { | |
8 | + | let c = (b + "_hourlyTxCount") | |
9 | + | let d = (b + "_dailyTxCount") | |
10 | + | let e = { | |
11 | + | let f = getInteger(this, c) | |
12 | + | if ($isInstanceOf(f, "Int")) | |
13 | + | then { | |
14 | + | let g = f | |
15 | + | g | |
16 | + | } | |
17 | + | else 0 | |
18 | + | } | |
19 | + | let h = { | |
20 | + | let f = getInteger(this, d) | |
21 | + | if ($isInstanceOf(f, "Int")) | |
22 | + | then { | |
23 | + | let g = f | |
24 | + | g | |
25 | + | } | |
26 | + | else 0 | |
27 | + | } | |
28 | + | let i = 1 | |
29 | + | let j = 2 | |
30 | + | if ((e >= i)) | |
31 | + | then throw("Hourly limit exceeded") | |
32 | + | else if ((h >= j)) | |
33 | + | then throw("Daily limit exceeded") | |
34 | + | else { | |
35 | + | let k = (e + 1) | |
36 | + | let l = (h + 1) | |
37 | + | [IntegerEntry(c, k), IntegerEntry(d, l), BooleanEntry("status", true), IntegerEntry("newHourlyCount", k), StringEntry("message", "Transaction successful")] | |
38 | + | } | |
39 | + | } | |
40 | + | ||
41 | + |
github/deemru/w8io/026f985 10.11 ms ◑