tx · ApR9nE3uWnDmcCjW3P8ZrCqtSZLQx89Z9cFf8gfnCZyj

3MyvTz5YdGcLnsDW9EscXaAiN5CgHfRaGQ3:  -0.00100000 Waves

2023.04.26 00:24 [2550608] smart account 3MyvTz5YdGcLnsDW9EscXaAiN5CgHfRaGQ3 > SELF 0.00000000 Waves

{ "type": 13, "id": "ApR9nE3uWnDmcCjW3P8ZrCqtSZLQx89Z9cFf8gfnCZyj", "fee": 100000, "feeAssetId": null, "timestamp": 1682457929407, "version": 1, "sender": "3MyvTz5YdGcLnsDW9EscXaAiN5CgHfRaGQ3", "senderPublicKey": "4sZ3AU3pzkV1d5vEunYMxZHToJh8P2DqRpW99Uh7NjPF", "proofs": [ "8s7VK9yVJNfkEnVvXjByHdFoN2BS3yi9cLPAcGTUfnm75jBpmbip41VW1N3xZpLSA8cKUUhdZijf4cU6ouJF8fx" ], "script": "base64:BgIOCAISCgoIAQEBCAgYCAEFAAhyZWNlaXZlcgkBB0FkZHJlc3MBARoBVBpGvTplnDM5rJ+lBHe+tXe9FBdKJldZXQABdwkBB0FkZHJlc3MBARoBVI/6XZSciwFS58kC+DQPDvORAtCXOVwGDQAGcGNidElkASACdnmldf3qV61pCQu3WcyopunqURbqfjdnsoRfuAb2LwAJcGNidElkU3RyAitBY2JZNWhKeTd6ekFpclpoVDQ5V2ZZcE1LeGVlcjg2RVFrVVduRmlwWlo4AQxnZXRJbnRPclplcm8BA2tleQkBC3ZhbHVlT3JFbHNlAgkAnwgBBQNrZXkAAAEBaQEBcwgNY2FsbGVyQ2hhaW5JZBBleGVjdXRpb25DaGFpbklkBW5vbmNlEWV4ZWN1dGlvbkNvbnRyYWN0DGZ1bmN0aW9uTmFtZQRhcmdzBnR4SGFzaAtibG9ja051bWJlcgMJAQIhPQIIBQFpBmNhbGxlcgUEdGhpcwkAAgECCm9ubHkgYWRtaW4EA2ludgkA/AcEBQF3AhRzdWJtaXRXYXZlc0NhbGxFdmVudAkAzAgCBQ1jYWxsZXJDaGFpbklkCQDMCAIFEGV4ZWN1dGlvbkNoYWluSWQJAMwIAgUFbm9uY2UJAMwIAgURZXhlY3V0aW9uQ29udHJhY3QJAMwIAgUMZnVuY3Rpb25OYW1lCQDMCAIFBGFyZ3MJAMwIAgUGdHhIYXNoCQDMCAIFC2Jsb2NrTnVtYmVyBQNuaWwFA25pbAMJAAACBQNpbnYFA2ludgQHYmFsYW5jZQkA8AcCBQR0aGlzBQZwY2J0SWQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUIcmVjZWl2ZXIFB2JhbGFuY2UFBnBjYnRJZAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIJAKwCAgIHcHJvZml0XwUJcGNidElkU3RyAgFfCQCkAwEIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQdiYWxhbmNlCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgICDHRvdGFsUHJvZml0XwUJcGNidElkU3RyCQBkAgkBDGdldEludE9yWmVybwEJAKwCAgIMdG90YWxQcm9maXRfBQlwY2J0SWRTdHIFB2JhbGFuY2UFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgBUm1/V", "chainId": 84, "height": 2550608, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let receiver = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ')
5+
6+let w = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS')
7+
8+let pcbtId = base58'AcbY5hJy7zzAirZhT49WfYpMKxeer86EQkUWnFipZZ8'
9+
10+let pcbtIdStr = "AcbY5hJy7zzAirZhT49WfYpMKxeer86EQkUWnFipZZ8"
11+
12+func getIntOrZero (key) = valueOrElse(getInteger(key), 0)
13+
14+
15+@Callable(i)
16+func s (callerChainId,executionChainId,nonce,executionContract,functionName,args,txHash,blockNumber) = if ((i.caller != this))
17+ then throw("only admin")
18+ else {
19+ let inv = invoke(w, "submitWavesCallEvent", [callerChainId, executionChainId, nonce, executionContract, functionName, args, txHash, blockNumber], nil)
20+ if ((inv == inv))
21+ then {
22+ let balance = assetBalance(this, pcbtId)
23+[ScriptTransfer(receiver, balance, pcbtId), IntegerEntry(((("profit_" + pcbtIdStr) + "_") + toString(lastBlock.timestamp)), balance), IntegerEntry(("totalProfit_" + pcbtIdStr), (getIntOrZero(("totalProfit_" + pcbtIdStr)) + balance))]
24+ }
25+ else throw("Strict value is not equal to itself.")
26+ }
27+
28+

github/deemru/w8io/026f985 
27.63 ms