tx · 74ASc55Ga7bRAtFT6SxUoKdEvTA9spQbSJX8qcDMHzTv

3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV:  -0.00200000 Waves

2023.04.26 20:33 [2551818] smart account 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV > SELF 0.00000000 Waves

{ "type": 13, "id": "74ASc55Ga7bRAtFT6SxUoKdEvTA9spQbSJX8qcDMHzTv", "fee": 200000, "feeAssetId": null, "timestamp": 1682530531839, "version": 1, "sender": "3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV", "senderPublicKey": "5vatV6DGBbB26P6sid7YsMydWWke53vKCsAM2akKuXXm", "proofs": [ "4K7s8zaqLD2KxHxBQtTYEfrgTmjo9z6AJYxCga7qETs2EVNKqKPUbvbPGF4jx8nHPz6RTiBtD4vY2jV4aDFzzJqJ" ], "script": "base64:BgIECAISAAYACHJlY2VpdmVyCQEHQWRkcmVzcwEBGgFUGka9OmWcMzmsn6UEd761d70UF0omV1ldAAFyCQEHQWRkcmVzcwEBGgFU0bzJU35CJJvLVpUtc7pcARyHATi9z6uUAAFzCQEHQWRkcmVzcwEBGgFUBdDRB9MyA3sY2aNrXhTUhmsB2dXLhEFoAAF3CQEHQWRkcmVzcwEBGgFUj/pdlJyLAVLnyQL4NA8O85EC0Jc5XAYNAQxnZXRJbnRPclplcm8BA2tleQkBC3ZhbHVlT3JFbHNlAgkAnwgBBQNrZXkAAAEPZ2V0TGFzdEV2bUV2ZW50AQdjaGFpbklkBAFlAgMxNzgEAWQJALUJAgkBEUBleHRyTmF0aXZlKDEwNTMpAgUBdwkArAICAgtFVk1fRVZFTlRfXwUBZQICX18EA3NpZwkA2AQBCQDLAQIJANkEAQkBEUBleHRyTmF0aXZlKDEwNTMpAgUBcwkArAICCQCsAgIJAKwCAgIJUl9TSUdNQV9fBQdjaGFpbklkAgJfXwUBZQkA2QQBCQERQGV4dHJOYXRpdmUoMTA1MykCBQFzCQCsAgIJAKwCAgkArAICAglTX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pdmUoMTA1MykCBQ1taW50ZXJBZGRyZXNzAgVBU1NFVAQFYXNzZXQJANkEAQUIYXNzZXRTdHIEB2JhbGFuY2UJAPAHAgUEdGhpcwUFYXNzZXQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUIcmVjZWl2ZXIFB2JhbGFuY2UFBWFzc2V0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKwCAgkArAICAgdwcm9maXRfBQhhc3NldFN0cgIBXwkApAMBCAUJbGFzdEJsb2NrCXRpbWVzdGFtcAUHYmFsYW5jZQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICAgx0b3RhbFByb2ZpdF8FCGFzc2V0U3RyCQBkAgkBDGdldEludE9yWmVybwEJAKwCAgIMdG90YWxQcm9maXRfBQhhc3NldFN0cgUHYmFsYW5jZQUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAHGYi/s=", "chainId": 84, "height": 2551818, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BWSrYbV69N6nEcxfTrHbC4ydijRhgLh4SEBn29tsdFSJ Next: CYkPiSsRupV9xLDbfcZgfxkfhhPdhsJpwL1rEJg7dakQ Diff:
OldNewDifferences
1212 func e (f) = valueOrElse(getInteger(f), 0)
1313
1414
15-@Callable(g)
16-func test () = if ((g.caller != this))
15+func g (h) = {
16+ let i = "178"
17+ let j = split(getStringValue(d, ("EVM_EVENT__" + i)), "__")
18+ let k = toBase58String((fromBase58String(getStringValue(c, ((("R_SIGMA__" + h) + "__") + i))) + fromBase58String(getStringValue(c, ((("S_SIGMA__" + h) + "__") + i)))))
19+ makeString([j[0], j[1], j[2], j[5], j[3], j[4], k], "_")
20+ }
21+
22+
23+@Callable(l)
24+func default () = if ((l.caller != this))
1725 then throw("only admin")
1826 else {
19- let h = toString(getIntegerValue(c, ("SIGNED_EVENT_EXECUTOR__10001__" + toString((getIntegerValue(c, "SIGNED_EVENT_EXECUTOR__10001__SIZE") - 1)))))
20- let i = split(getStringValue(d, ("WAVES_EVENT__" + h)), "__")
21- let j = split(i[5], "####")
22- let k = invoke(b, "execute", [i[3], i[4], j, parseIntValue(i[0]), parseIntValue(i[1]), parseIntValue(i[2]), i[6], toBase58String((fromBase58String(getStringValue(c, ("R_SIGMA__10001__" + h))) + fromBase58String(getStringValue(c, ("S_SIGMA__10001__" + h)))))], nil)
23- if ((k == k))
27+ let i = toString(getIntegerValue(c, ("SIGNED_EVENT_EXECUTOR__1__" + toString((getIntegerValue(c, "SIGNED_EVENT_EXECUTOR__1__SIZE") - 1)))))
28+ let j = split(getStringValue(d, ("WAVES_EVENT__" + i)), "__")
29+ let m = split(j[5], "####")
30+ let n = invoke(b, "execute", [j[3], j[4], m, parseIntValue(j[0]), parseIntValue(j[1]), parseIntValue(j[2]), j[6], toBase58String((fromBase58String(getStringValue(c, ("R_SIGMA__1__" + i))) + fromBase58String(getStringValue(c, ("S_SIGMA__1__" + i)))))], nil)
31+ if ((n == n))
2432 then {
25- let l = addressFromStringValue(j[1])
26- let m = getStringValue(l, "ASSET")
27- let n = fromBase58String(m)
28- let o = assetBalance(this, n)
29-[ScriptTransfer(a, o, n), IntegerEntry(((("profit_" + m) + "_") + toString(lastBlock.timestamp)), o), IntegerEntry(("totalProfit_" + m), (e(("totalProfit_" + m)) + o))]
33+ let o = addressFromStringValue(m[1])
34+ let p = getStringValue(o, "ASSET")
35+ let q = fromBase58String(p)
36+ let r = assetBalance(this, q)
37+[ScriptTransfer(a, r, q), IntegerEntry(((("profit_" + p) + "_") + toString(lastBlock.timestamp)), r), IntegerEntry(("totalProfit_" + p), (e(("totalProfit_" + p)) + r))]
3038 }
3139 else throw("Strict value is not equal to itself.")
3240 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ')
55
66 let b = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps')
77
88 let c = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK')
99
1010 let d = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS')
1111
1212 func e (f) = valueOrElse(getInteger(f), 0)
1313
1414
15-@Callable(g)
16-func test () = if ((g.caller != this))
15+func g (h) = {
16+ let i = "178"
17+ let j = split(getStringValue(d, ("EVM_EVENT__" + i)), "__")
18+ let k = toBase58String((fromBase58String(getStringValue(c, ((("R_SIGMA__" + h) + "__") + i))) + fromBase58String(getStringValue(c, ((("S_SIGMA__" + h) + "__") + i)))))
19+ makeString([j[0], j[1], j[2], j[5], j[3], j[4], k], "_")
20+ }
21+
22+
23+@Callable(l)
24+func default () = if ((l.caller != this))
1725 then throw("only admin")
1826 else {
19- let h = toString(getIntegerValue(c, ("SIGNED_EVENT_EXECUTOR__10001__" + toString((getIntegerValue(c, "SIGNED_EVENT_EXECUTOR__10001__SIZE") - 1)))))
20- let i = split(getStringValue(d, ("WAVES_EVENT__" + h)), "__")
21- let j = split(i[5], "####")
22- let k = invoke(b, "execute", [i[3], i[4], j, parseIntValue(i[0]), parseIntValue(i[1]), parseIntValue(i[2]), i[6], toBase58String((fromBase58String(getStringValue(c, ("R_SIGMA__10001__" + h))) + fromBase58String(getStringValue(c, ("S_SIGMA__10001__" + h)))))], nil)
23- if ((k == k))
27+ let i = toString(getIntegerValue(c, ("SIGNED_EVENT_EXECUTOR__1__" + toString((getIntegerValue(c, "SIGNED_EVENT_EXECUTOR__1__SIZE") - 1)))))
28+ let j = split(getStringValue(d, ("WAVES_EVENT__" + i)), "__")
29+ let m = split(j[5], "####")
30+ let n = invoke(b, "execute", [j[3], j[4], m, parseIntValue(j[0]), parseIntValue(j[1]), parseIntValue(j[2]), j[6], toBase58String((fromBase58String(getStringValue(c, ("R_SIGMA__1__" + i))) + fromBase58String(getStringValue(c, ("S_SIGMA__1__" + i)))))], nil)
31+ if ((n == n))
2432 then {
25- let l = addressFromStringValue(j[1])
26- let m = getStringValue(l, "ASSET")
27- let n = fromBase58String(m)
28- let o = assetBalance(this, n)
29-[ScriptTransfer(a, o, n), IntegerEntry(((("profit_" + m) + "_") + toString(lastBlock.timestamp)), o), IntegerEntry(("totalProfit_" + m), (e(("totalProfit_" + m)) + o))]
33+ let o = addressFromStringValue(m[1])
34+ let p = getStringValue(o, "ASSET")
35+ let q = fromBase58String(p)
36+ let r = assetBalance(this, q)
37+[ScriptTransfer(a, r, q), IntegerEntry(((("profit_" + p) + "_") + toString(lastBlock.timestamp)), r), IntegerEntry(("totalProfit_" + p), (e(("totalProfit_" + p)) + r))]
3038 }
3139 else throw("Strict value is not equal to itself.")
3240 }
3341
3442

github/deemru/w8io/026f985 
29.91 ms