tx · BWSrYbV69N6nEcxfTrHbC4ydijRhgLh4SEBn29tsdFSJ 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV: -0.00200000 Waves 2023.04.25 22:50 [2550512] smart account 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV > SELF 0.00000000 Waves
{ "type": 13, "id": "BWSrYbV69N6nEcxfTrHbC4ydijRhgLh4SEBn29tsdFSJ", "fee": 200000, "feeAssetId": null, "timestamp": 1682452228725, "version": 1, "sender": "3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV", "senderPublicKey": "5vatV6DGBbB26P6sid7YsMydWWke53vKCsAM2akKuXXm", "proofs": [ "2jKBsptdMPmdU9M3YMXhxtAQPtAUJFXaRxxqWwtyJPmrycPwawtpxkVwqxD3zuiy7iU473D3M3zzvgbazVtQuvtF" ], "script": "base64:BgIECAISAAUACHJlY2VpdmVyCQEHQWRkcmVzcwEBGgFUGka9OmWcMzmsn6UEd761d70UF0omV1ldAAFyCQEHQWRkcmVzcwEBGgFU0bzJU35CJJvLVpUtc7pcARyHATi9z6uUAAFzCQEHQWRkcmVzcwEBGgFUBdDRB9MyA3sY2aNrXhTUhmsB2dXLhEFoAAF3CQEHQWRkcmVzcwEBGgFUj/pdlJyLAVLnyQL4NA8O85EC0Jc5XAYNAQxnZXRJbnRPclplcm8BA2tleQkBC3ZhbHVlT3JFbHNlAgkAnwgBBQNrZXkAAAEBaQEEdGVzdAADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAgpvbmx5IGFkbWluBAFlCQCkAwEJARFAZXh0ck5hdGl2ZSgxMDUwKQIFAXMJAKwCAgIeU0lHTkVEX0VWRU5UX0VYRUNVVE9SX18xMDAwMV9fCQCkAwEJAGUCCQERQGV4dHJOYXRpdmUoMTA1MCkCBQFzAiJTSUdORURfRVZFTlRfRVhFQ1VUT1JfXzEwMDAxX19TSVpFAAEEAWQJALUJAgkBEUBleHRyTmF0aXZlKDEwNTMpAgUBdwkArA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zIG5vdCBlcXVhbCB0byBpdHNlbGYuAB4i5Fk=", "chainId": 84, "height": 2550512, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8HqPG1CBpekyqNYrU4MJX14oNBSxqg8cSdWFpGhqvgRg Next: 74ASc55Ga7bRAtFT6SxUoKdEvTA9spQbSJX8qcDMHzTv Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = Address(base58' | |
4 | + | let a = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ') | |
5 | 5 | ||
6 | - | let b = Address(base58' | |
6 | + | let b = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps') | |
7 | 7 | ||
8 | - | let c = Address(base58' | |
8 | + | let c = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK') | |
9 | 9 | ||
10 | - | let d = Address(base58' | |
10 | + | let d = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS') | |
11 | 11 | ||
12 | - | let e = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS') | |
13 | - | ||
14 | - | func f (g) = valueOrElse(getInteger(g), 0) | |
12 | + | func e (f) = valueOrElse(getInteger(f), 0) | |
15 | 13 | ||
16 | 14 | ||
17 | - | @Callable( | |
18 | - | func test () = if (( | |
15 | + | @Callable(g) | |
16 | + | func test () = if ((g.caller != this)) | |
19 | 17 | then throw("only admin") | |
20 | 18 | else { | |
21 | - | let | |
22 | - | let | |
23 | - | let | |
24 | - | let | |
25 | - | if (( | |
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)) | |
26 | 24 | then { | |
27 | - | let | |
28 | - | let | |
29 | - | let | |
30 | - | let | |
31 | - | [ScriptTransfer( | |
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))] | |
32 | 30 | } | |
33 | 31 | else throw("Strict value is not equal to itself.") | |
34 | 32 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = Address(base58' | |
4 | + | let a = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ') | |
5 | 5 | ||
6 | - | let b = Address(base58' | |
6 | + | let b = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps') | |
7 | 7 | ||
8 | - | let c = Address(base58' | |
8 | + | let c = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK') | |
9 | 9 | ||
10 | - | let d = Address(base58' | |
10 | + | let d = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS') | |
11 | 11 | ||
12 | - | let e = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS') | |
13 | - | ||
14 | - | func f (g) = valueOrElse(getInteger(g), 0) | |
12 | + | func e (f) = valueOrElse(getInteger(f), 0) | |
15 | 13 | ||
16 | 14 | ||
17 | - | @Callable( | |
18 | - | func test () = if (( | |
15 | + | @Callable(g) | |
16 | + | func test () = if ((g.caller != this)) | |
19 | 17 | then throw("only admin") | |
20 | 18 | else { | |
21 | - | let | |
22 | - | let | |
23 | - | let | |
24 | - | let | |
25 | - | if (( | |
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)) | |
26 | 24 | then { | |
27 | - | let | |
28 | - | let | |
29 | - | let | |
30 | - | let | |
31 | - | [ScriptTransfer( | |
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))] | |
32 | 30 | } | |
33 | 31 | else throw("Strict value is not equal to itself.") | |
34 | 32 | } | |
35 | 33 | ||
36 | 34 |
github/deemru/w8io/026f985 26.07 ms ◑