tx · 4LD1AN2PJZ97dzFWjhVmvdenzS6gHyFnm5exdTzXSS9Q 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV: -0.00200000 Waves 2023.04.26 23:48 [2552013] smart account 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV > SELF 0.00000000 Waves
{ "type": 13, "id": "4LD1AN2PJZ97dzFWjhVmvdenzS6gHyFnm5exdTzXSS9Q", "fee": 200000, "feeAssetId": null, "timestamp": 1682542171177, "version": 1, "sender": "3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV", "senderPublicKey": "5vatV6DGBbB26P6sid7YsMydWWke53vKCsAM2akKuXXm", "proofs": [ "5umEpyHUy8Q9K64hzFwti6qjuG1bKmpYhrM2j5fJXDZXcR3VXjAL7NHz2NkrnkJKpbbFF6atUP3KbxyiG4fEpp6W" ], "script": "base64:BgIECAISAAYACHJlY2VpdmVyCQEHQWRkcmVzcwEBGgFUGka9OmWcMzmsn6UEd761d70UF0omV1ldAAFyCQEHQWRkcmVzcwEBGgFU0bzJU35CJJvLVpUtc7pcARyHATi9z6uUAAFzCQEHQWRkcmVzcwEBGgFUBdDRB9MyA3sY2aNrXhTUhmsB2dXLhEFoAAF3CQEHQWRkcmVzcwEBGgFUj/pdlJyLAVLnyQL4NA8O85EC0Jc5XAYNAQxnZXRJbnRPclplcm8BA2tleQkBC3ZhbHVlT3JFbHNlAgkAnwgBBQNrZXkAAAEPZ2V0TGFzdEV2bUV2ZW50AQdjaGFpbklkBAFlAgMxNzgEAWQJALUJAgkBEUBleHRyTmF0aXZlKDEwNTMpAgUBdwkArAICAgtFVk1fRVZFTlRfXwUBZQICX18EBnJzaWdtYQkAygECCQDZBAEJARFAZXh0ck5hdGl2ZSgxMDUzKQIFAXMJAKwCAgkArAICCQCsAgICCVJfU0lHTUFfXwUHY2hhaW5JZAICX18FAWUAAQQGc3NpZ21hCQDZBAEJARFAZXh0ck5hdGl2ZSgxMDUzKQIFAXMJAKwCAgkArAICC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wkAAAIFA2ludgUDaW52BA1taW50ZXJBZGRyZXNzCQERQGV4dHJOYXRpdmUoMTA2MikBCQCRAwIFBGFyZ3MAAQQIYXNzZXRTdHIJARFAZXh0ck5hdGl2ZSgxMDUzKQIFDW1pbnRlckFkZHJlc3MCBUFTU0VUBAVhc3NldAkA2QQBBQhhc3NldFN0cgQHYmFsYW5jZQkA8AcCBQR0aGlzBQVhc3NldAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQhyZWNlaXZlcgUHYmFsYW5jZQUFYXNzZXQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICCQCsAgICB3Byb2ZpdF8FCGFzc2V0U3RyAgFfCQCkAwEIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQdiYWxhbmNlCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgICDHRvdGFsUHJvZml0XwUIYXNzZXRTdHIJAGQCCQEMZ2V0SW50T3JaZXJvAQkArAICAgx0b3RhbFByb2ZpdF8FCGFzc2V0U3RyBQdiYWxhbmNlBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AMXoPbQ==", "chainId": 84, "height": 2552013, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6zUK4rxyRdMoFAek8wg89LFvkirvTRWdmBoEEbMf2xnX Next: FZSv3vbHNdt335yXuQRgQqDPsPz6c54wRcCYCjwPUPx1 Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | let d = split(getStringValue(w, ("EVM_EVENT__" + e)), "__") | |
18 | 18 | let rsigma = drop(fromBase58String(getStringValue(s, ((("R_SIGMA__" + chainId) + "__") + e))), 1) | |
19 | 19 | let ssigma = fromBase58String(getStringValue(s, ((("S_SIGMA__" + chainId) + "__") + e))) | |
20 | - | let sig1 = toBase64String(((rsigma + ssigma) + | |
21 | - | let sig2 = toBase64String(((rsigma + ssigma) + | |
20 | + | let sig1 = toBase64String(((rsigma + ssigma) + base58'V')) | |
21 | + | let sig2 = toBase64String(((rsigma + ssigma) + base58'U')) | |
22 | 22 | [d[0], d[1], d[2], d[5], d[3], d[4], sig1, sig2] | |
23 | 23 | } | |
24 | 24 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let receiver = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ') | |
5 | 5 | ||
6 | 6 | let r = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps') | |
7 | 7 | ||
8 | 8 | let s = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK') | |
9 | 9 | ||
10 | 10 | let w = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS') | |
11 | 11 | ||
12 | 12 | func getIntOrZero (key) = valueOrElse(getInteger(key), 0) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func getLastEvmEvent (chainId) = { | |
16 | 16 | let e = "178" | |
17 | 17 | let d = split(getStringValue(w, ("EVM_EVENT__" + e)), "__") | |
18 | 18 | let rsigma = drop(fromBase58String(getStringValue(s, ((("R_SIGMA__" + chainId) + "__") + e))), 1) | |
19 | 19 | let ssigma = fromBase58String(getStringValue(s, ((("S_SIGMA__" + chainId) + "__") + e))) | |
20 | - | let sig1 = toBase64String(((rsigma + ssigma) + | |
21 | - | let sig2 = toBase64String(((rsigma + ssigma) + | |
20 | + | let sig1 = toBase64String(((rsigma + ssigma) + base58'V')) | |
21 | + | let sig2 = toBase64String(((rsigma + ssigma) + base58'U')) | |
22 | 22 | [d[0], d[1], d[2], d[5], d[3], d[4], sig1, sig2] | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func default () = if ((i.caller != this)) | |
28 | 28 | then throw("only admin") | |
29 | 29 | else { | |
30 | 30 | let e = toString(getIntegerValue(s, ("SIGNED_EVENT_EXECUTOR__1__" + toString((getIntegerValue(s, "SIGNED_EVENT_EXECUTOR__1__SIZE") - 1))))) | |
31 | 31 | let d = split(getStringValue(w, ("WAVES_EVENT__" + e)), "__") | |
32 | 32 | let args = split(d[5], "####") | |
33 | 33 | 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) | |
34 | 34 | if ((inv == inv)) | |
35 | 35 | then { | |
36 | 36 | let minterAddress = addressFromStringValue(args[1]) | |
37 | 37 | let assetStr = getStringValue(minterAddress, "ASSET") | |
38 | 38 | let asset = fromBase58String(assetStr) | |
39 | 39 | let balance = assetBalance(this, asset) | |
40 | 40 | [ScriptTransfer(receiver, balance, asset), IntegerEntry(((("profit_" + assetStr) + "_") + toString(lastBlock.timestamp)), balance), IntegerEntry(("totalProfit_" + assetStr), (getIntOrZero(("totalProfit_" + assetStr)) + balance))] | |
41 | 41 | } | |
42 | 42 | else throw("Strict value is not equal to itself.") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 |
github/deemru/w8io/026f985 30.98 ms ◑