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