tx · Ffz9VfTULEQCAB8U9kMbEM7bQqhrFmHCaDwMW7ZCRKPP 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV: -0.00200000 Waves 2023.04.25 22:04 [2550466] smart account 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV > SELF 0.00000000 Waves
{ "type": 13, "id": "Ffz9VfTULEQCAB8U9kMbEM7bQqhrFmHCaDwMW7ZCRKPP", "fee": 200000, "feeAssetId": null, "timestamp": 1682449475295, "version": 1, "sender": "3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV", "senderPublicKey": "5vatV6DGBbB26P6sid7YsMydWWke53vKCsAM2akKuXXm", "proofs": [ "2SuW16M9BtU48py8p3ju7AbLWESv68DBBY1cwwBBoQBKfQQVG6eqpKYWBkZbyEoahGQ1BVkBhT7Lj8aFagsQCKA" ], "script": "base64:BgIECAISAAYABmNhbGxlcgkBB0FkZHJlc3MBARoBVG3DzClEyfEyPrFoaU541UcoIK9sO2J1PAAIcmVjZWl2ZXIJAQdBZGRyZXNzAQEaAVQaRr06ZZwzOayfpQR3vrV3vRQXSiZXWV0AAXIJAQdBZGRyZXNzAQEaAVTRvMlTfkIkm8tWlS1zulwBHIcBOL3Pq5QAAXMJAQdBZGRyZXNzAQEaAVQF0NEH0zIDexjZo2teFNSGawHZ1cuEQWgAAXcJAQdBZGRyZXNzAQEaAVSP+l2UnIsBUufJAvg0Dw7zkQLQlzlcBg0BDGdldEludE9yWmVybwEDa2V5CQELdmFsdWVPckVsc2UCCQCfCAEFA2tleQAAAQFpAQdkZWZhdWx0AAMJAQIhPQIIBQFpBmNhbGxlcgUGY2FsbGVyCQACAQIKb25seSBhZG1pbgQBZQkApAMBCQERQGV4dHJOYXRpdmUoMTA1MCkCBQFzCQCsAgICGlNJR05FRF9FVkVOVF9FWEVDVVRPUl9fMV9fCQCkAwEJAGUCCQERQGV4dHJOYXRpdmUoMTA1MCkCBQFzAh5TSUdORURfRVZFTlRfRVhFQ1VUT1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RfBQhhc3NldFN0cgUHYmFsYW5jZQUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAIVVPHM=", "chainId": 84, "height": 2550466, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: BAg6axhs1MU7y15qsp2RvEh8s2BabVnKUSBhDpqLEfA1 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let caller = Address(base58'3MyvTz5YdGcLnsDW9EscXaAiN5CgHfRaGQ3') | |
5 | + | ||
6 | + | let receiver = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ') | |
7 | + | ||
8 | + | let r = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps') | |
9 | + | ||
10 | + | let s = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK') | |
11 | + | ||
12 | + | let w = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS') | |
13 | + | ||
14 | + | func getIntOrZero (key) = valueOrElse(getInteger(key), 0) | |
15 | + | ||
16 | + | ||
17 | + | @Callable(i) | |
18 | + | func default () = if ((i.caller != caller)) | |
19 | + | then throw("only admin") | |
20 | + | else { | |
21 | + | let e = toString(getIntegerValue(s, ("SIGNED_EVENT_EXECUTOR__1__" + toString((getIntegerValue(s, "SIGNED_EVENT_EXECUTOR__1__SIZE") - 1))))) | |
22 | + | let d = split(getStringValue(w, ("WAVES_EVENT__" + e)), "__") | |
23 | + | let args = split(d[5], "####") | |
24 | + | let inv = invoke(r, "execute", [d[3], d[4], args, parseIntValue(d[0]), parseIntValue(d[1]), parseIntValue(d[2]), d[6], toBase58String((fromBase58String(getStringValue(s, ("R_SIGMA__1__" + e))) + fromBase58String(getStringValue(s, ("S_SIGMA__1__" + e)))))], nil) | |
25 | + | if ((inv == inv)) | |
26 | + | then { | |
27 | + | let minterAddress = addressFromStringValue(args[1]) | |
28 | + | let assetStr = getStringValue(minterAddress, "ASSET") | |
29 | + | let asset = fromBase58String(assetStr) | |
30 | + | let balance = assetBalance(this, asset) | |
31 | + | [ScriptTransfer(receiver, balance, asset), IntegerEntry(((("profit_" + assetStr) + "_") + toString(lastBlock.timestamp)), balance), IntegerEntry(("totalProfit_" + assetStr), (getIntOrZero(("totalProfit_" + assetStr)) + balance))] | |
32 | + | } | |
33 | + | else throw("Strict value is not equal to itself.") | |
34 | + | } | |
35 | + | ||
36 | + |
github/deemru/w8io/026f985 37.28 ms ◑