tx · A8VYd1ZK55AmCjZrRbA9VZH4K2mbiYC1EUQMXmPRDMzH
3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV: -0.00200000 Waves
2023.04.26 20:58 [2551839] smart account 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV > SELF 0.00000000 Waves
{
"type": 13,
"id": "A8VYd1ZK55AmCjZrRbA9VZH4K2mbiYC1EUQMXmPRDMzH",
"fee": 200000,
"feeAssetId": null,
"timestamp": 1682531952870,
"version": 1,
"sender": "3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV",
"senderPublicKey": "5vatV6DGBbB26P6sid7YsMydWWke53vKCsAM2akKuXXm",
"proofs": [
"3TGUu9gJLEqBaNoxSLFVhwY9Kd9hHLZevgkkZwzKGFz7tuW9eUq3GSidmYj2b51VmGf6emKgyWC898hjEVHzDHbW"
],
"script": "base64:BgIECAISAAYACHJlY2VpdmVyCQEHQWRkcmVzcwEBGgFUGka9OmWcMzmsn6UEd761d70UF0omV1ldAAFyCQEHQWRkcmVzcwEBGgFU0bzJU35CJJvLVpUtc7pcARyHATi9z6uUAAFzCQEHQWRkcmVzcwEBGgFUBdDRB9MyA3sY2aNrXhTUhmsB2dXLhEFoAAF3CQEHQWRkcmVzcwEBGgFUj/pdlJyLAVLnyQL4NA8O85EC0Jc5XAYNAQxnZXRJbnRPclplcm8BA2tleQkBC3ZhbHVlT3JFbHNlAgkAnwgBBQNrZXkAAAEPZ2V0TGFzdEV2bUV2ZW50AQdjaGFpbklkBAFlAgMxNzgEAWQJALUJAgkBEUBleHRyTmF0aXZlKDEwNTMpAgUBdwkArAICAgtFVk1fRVZFTlRfXwUBZQICX18EA3NpZwkA2gQBCQDLAQIJANkEAQkBEUBleHRyTmF0aXZlKDEwNTMpAgUBcwkArAICCQCsAgIJAKwCAgIJUl9TSUdNQV9fBQdjaGFpbklkAgJfXwUBZQkA2QQBCQERQGV4dHJOYXRpdmUoMTA1MykCBQFzCQCsAgIJAKwCAgk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dHJOYXRpdmUoMTA1MykCBQ1taW50ZXJBZGRyZXNzAgVBU1NFVAQFYXNzZXQJANkEAQUIYXNzZXRTdHIEB2JhbGFuY2UJAPAHAgUEdGhpcwUFYXNzZXQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUIcmVjZWl2ZXIFB2JhbGFuY2UFBWFzc2V0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKwCAgkArAICAgdwcm9maXRfBQhhc3NldFN0cgIBXwkApAMBCAUJbGFzdEJsb2NrCXRpbWVzdGFtcAUHYmFsYW5jZQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICAgx0b3RhbFByb2ZpdF8FCGFzc2V0U3RyCQBkAgkBDGdldEludE9yWmVybwEJAKwCAgIMdG90YWxQcm9maXRfBQhhc3NldFN0cgUHYmFsYW5jZQUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAJB4dLU=",
"chainId": 84,
"height": 2551839,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CYkPiSsRupV9xLDbfcZgfxkfhhPdhsJpwL1rEJg7dakQ
Next: C4Lh12U5zjEJ8q2oEpxrF4ZFbFHG4d7pTAAA8Q4pxE84
Diff:
Old | New | | Differences |
---|
15 | 15 | | func getLastEvmEvent (chainId) = { |
---|
16 | 16 | | let e = "178" |
---|
17 | 17 | | let d = split(getStringValue(w, ("EVM_EVENT__" + e)), "__") |
---|
18 | | - | let sig = toBase58String((fromBase58String(getStringValue(s, ((("R_SIGMA__" + chainId) + "__") + e))) + fromBase58String(getStringValue(s, ((("S_SIGMA__" + chainId) + "__") + e))))) |
---|
| 18 | + | let sig = toBase64String((fromBase58String(getStringValue(s, ((("R_SIGMA__" + chainId) + "__") + e))) + fromBase58String(getStringValue(s, ((("S_SIGMA__" + chainId) + "__") + e))))) |
---|
19 | 19 | | makeString([d[0], d[1], d[2], d[5], d[3], d[4], sig], "_") |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
|
27 | 27 | | let e = toString(getIntegerValue(s, ("SIGNED_EVENT_EXECUTOR__1__" + toString((getIntegerValue(s, "SIGNED_EVENT_EXECUTOR__1__SIZE") - 1))))) |
---|
28 | 28 | | let d = split(getStringValue(w, ("WAVES_EVENT__" + e)), "__") |
---|
29 | 29 | | let args = split(d[5], "####") |
---|
30 | | - | let inv = invoke(r, "execute", [d[3], d[4], args, parseIntValue(d[0]), parseIntValue(d[1]), parseIntValue(d[2]), d[6], toBase64String((fromBase58String(getStringValue(s, ("R_SIGMA__1__" + e))) + fromBase58String(getStringValue(s, ("S_SIGMA__1__" + e)))))], nil) |
---|
| 30 | + | 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) |
---|
31 | 31 | | if ((inv == inv)) |
---|
32 | 32 | | then { |
---|
33 | 33 | | let minterAddress = addressFromStringValue(args[1]) |
---|
Full:
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 | | - | let sig = toBase58String((fromBase58String(getStringValue(s, ((("R_SIGMA__" + chainId) + "__") + e))) + fromBase58String(getStringValue(s, ((("S_SIGMA__" + chainId) + "__") + e))))) |
---|
| 18 | + | let sig = toBase64String((fromBase58String(getStringValue(s, ((("R_SIGMA__" + chainId) + "__") + e))) + fromBase58String(getStringValue(s, ((("S_SIGMA__" + chainId) + "__") + e))))) |
---|
19 | 19 | | makeString([d[0], d[1], d[2], d[5], d[3], d[4], sig], "_") |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(i) |
---|
24 | 24 | | func default () = if ((i.caller != this)) |
---|
25 | 25 | | then throw("only admin") |
---|
26 | 26 | | else { |
---|
27 | 27 | | let e = toString(getIntegerValue(s, ("SIGNED_EVENT_EXECUTOR__1__" + toString((getIntegerValue(s, "SIGNED_EVENT_EXECUTOR__1__SIZE") - 1))))) |
---|
28 | 28 | | let d = split(getStringValue(w, ("WAVES_EVENT__" + e)), "__") |
---|
29 | 29 | | let args = split(d[5], "####") |
---|
30 | | - | let inv = invoke(r, "execute", [d[3], d[4], args, parseIntValue(d[0]), parseIntValue(d[1]), parseIntValue(d[2]), d[6], toBase64String((fromBase58String(getStringValue(s, ("R_SIGMA__1__" + e))) + fromBase58String(getStringValue(s, ("S_SIGMA__1__" + e)))))], nil) |
---|
| 30 | + | 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) |
---|
31 | 31 | | if ((inv == inv)) |
---|
32 | 32 | | then { |
---|
33 | 33 | | let minterAddress = addressFromStringValue(args[1]) |
---|
34 | 34 | | let assetStr = getStringValue(minterAddress, "ASSET") |
---|
35 | 35 | | let asset = fromBase58String(assetStr) |
---|
36 | 36 | | let balance = assetBalance(this, asset) |
---|
37 | 37 | | [ScriptTransfer(receiver, balance, asset), IntegerEntry(((("profit_" + assetStr) + "_") + toString(lastBlock.timestamp)), balance), IntegerEntry(("totalProfit_" + assetStr), (getIntOrZero(("totalProfit_" + assetStr)) + balance))] |
---|
38 | 38 | | } |
---|
39 | 39 | | else throw("Strict value is not equal to itself.") |
---|
40 | 40 | | } |
---|
41 | 41 | | |
---|
42 | 42 | | |
---|