tx · 4zZPuzjT7pDRrT5qzgCEdpapYTHkf2bqKGcN5LKSbgbG

3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp:  -0.00200000 Waves

2024.11.11 03:08 [3366044] smart account 3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp > SELF 0.00000000 Waves

{ "type": 13, "id": "4zZPuzjT7pDRrT5qzgCEdpapYTHkf2bqKGcN5LKSbgbG", "fee": 200000, "feeAssetId": null, "timestamp": 1731283721032, "version": 1, "sender": "3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp", "senderPublicKey": "B5p5JF1Hn7k2YwGxQxgFre8bM5pd7N2c6wPdyKdLzzd6", "proofs": [ "4LAU1dY92yi7PLUnWsLBkEdnCNQvrd9UnK4F6AuDQpKycxXwnZTVfSSjwZfwaWw2CpG4e6aKZrJVCZekk8aZ6jcG" ], "script": "base64:CAIHCAISAwoBCAABAWkBGGNoZWNrQW5kSW5jcmVtZW50Q291bnRlcgEIZnVuY05hbWUECWhvdXJseUtleQkArAICBQhmdW5jTmFtZQIOX2hvdXJseVR4Q291bnQECGRhaWx5S2V5CQCsAgIFCGZ1bmNOYW1lAg1fZGFpbHlUeENvdW50BA1ob3VybHlUeENvdW50BAckbWF0Y2gwCQCaCAIFBHRoaXMFCWhvdXJseUtleQMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAQMZGFpbHlUeENvdW50BAckbWF0Y2gwCQCaCAIFBHRoaXMFCGRhaWx5S2V5AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAABAtob3VybHlMaW1pdAABBApkYWlseUxpbWl0AAIDCQBnAgUNaG91cmx5VHhDb3VudAULaG91cmx5TGltaXQJAAIBAhVIb3VybHkgbGltaXQgZXhjZWVkZWQDCQBnAgUMZGFpbHlUeENvdW50BQpkYWlseUxpbWl0CQACAQIURGFpbHkgbGltaXQgZXhjZWVkZWQEDm5ld0hvdXJseUNvdW50CQBkAgUNaG91cmx5VHhDb3VudAABBA1uZXdEYWlseUNvdW50CQBkAgUMZGFpbHlUeENvdW50AAEEDXVwZGF0ZVJlc3VsdHMJAMwIAgkBDEludGVnZXJFbnRyeQIFCWhvdXJseUtleQUObmV3SG91cmx5Q291bnQJAMwIAgkBDEludGVnZXJFbnRyeQIFCGRhaWx5S2V5BQ1uZXdEYWlseUNvdW50CQDMCAIJAQxCb29sZWFuRW50cnkCAgZzdGF0dXMGCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg5uZXdIb3VybHlDb3VudAUObmV3SG91cmx5Q291bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgIHbWVzc2FnZQIWVHJhbnNhY3Rpb24gc3VjY2Vzc2Z1bAUDbmlsBAtjaGVja0hvdXJseQkAmggCBQR0aGlzBQlob3VybHlLZXkECmNoZWNrRGFpbHkJAJoIAgUEdGhpcwUIZGFpbHlLZXkEByRtYXRjaDAFC2NoZWNrSG91cmx5AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAQHJG1hdGNoMQUKY2hlY2tEYWlseQMJAAECBQckbWF0Y2gxAgNJbnQEAWIFByRtYXRjaDEDAwkAAAIFAWEFDm5ld0hvdXJseUNvdW50CQAAAgUBYgUNbmV3RGFpbHlDb3VudAcFDXVwZGF0ZVJlc3VsdHMJAAIBAhJEYXRhIHVwZGF0ZSBmYWlsZWQJAAIBAhlGYWlsZWQgdG8gZ2V0IGRhaWx5IGNvdW50CQACAQIaRmFpbGVkIHRvIGdldCBob3VybHkgY291bnQAepnB8g==", "chainId": 84, "height": 3366044, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CfgCYotALxRXTnzyYeyG3qhrCzh3naEXQJ17puEEucsr Next: B81zatPzSijH8aEbLqaahtCCjFQgfGc3AGb4Xm6rbngU Diff:
OldNewDifferences
3535 let k = (e + 1)
3636 let l = (h + 1)
3737 let m = [IntegerEntry(c, k), IntegerEntry(d, l), BooleanEntry("status", true), IntegerEntry("newHourlyCount", k), StringEntry("message", "Transaction successful")]
38- m
38+ let n = getInteger(this, c)
39+ let o = getInteger(this, d)
40+ let f = n
41+ if ($isInstanceOf(f, "Int"))
42+ then {
43+ let g = f
44+ let p = o
45+ if ($isInstanceOf(p, "Int"))
46+ then {
47+ let q = p
48+ if (if ((g == k))
49+ then (q == l)
50+ else false)
51+ then m
52+ else throw("Data update failed")
53+ }
54+ else throw("Failed to get daily count")
55+ }
56+ else throw("Failed to get hourly count")
3957 }
4058 }
4159
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 8 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func checkAndIncrementCounter (b) = {
88 let c = (b + "_hourlyTxCount")
99 let d = (b + "_dailyTxCount")
1010 let e = {
1111 let f = getInteger(this, c)
1212 if ($isInstanceOf(f, "Int"))
1313 then {
1414 let g = f
1515 g
1616 }
1717 else 0
1818 }
1919 let h = {
2020 let f = getInteger(this, d)
2121 if ($isInstanceOf(f, "Int"))
2222 then {
2323 let g = f
2424 g
2525 }
2626 else 0
2727 }
2828 let i = 1
2929 let j = 2
3030 if ((e >= i))
3131 then throw("Hourly limit exceeded")
3232 else if ((h >= j))
3333 then throw("Daily limit exceeded")
3434 else {
3535 let k = (e + 1)
3636 let l = (h + 1)
3737 let m = [IntegerEntry(c, k), IntegerEntry(d, l), BooleanEntry("status", true), IntegerEntry("newHourlyCount", k), StringEntry("message", "Transaction successful")]
38- m
38+ let n = getInteger(this, c)
39+ let o = getInteger(this, d)
40+ let f = n
41+ if ($isInstanceOf(f, "Int"))
42+ then {
43+ let g = f
44+ let p = o
45+ if ($isInstanceOf(p, "Int"))
46+ then {
47+ let q = p
48+ if (if ((g == k))
49+ then (q == l)
50+ else false)
51+ then m
52+ else throw("Data update failed")
53+ }
54+ else throw("Failed to get daily count")
55+ }
56+ else throw("Failed to get hourly count")
3957 }
4058 }
4159
4260

github/deemru/w8io/026f985 
30.35 ms