tx · Gy7nxHV4T31kqX465h9eSyN8ytF4priLPSEqecL1y5oF
3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV: -0.00200000 Waves
2023.04.25 22:27 [2550488] smart account 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV > SELF 0.00000000 Waves
{
"type": 13,
"id": "Gy7nxHV4T31kqX465h9eSyN8ytF4priLPSEqecL1y5oF",
"fee": 200000,
"feeAssetId": null,
"timestamp": 1682450794620,
"version": 1,
"sender": "3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV",
"senderPublicKey": "5vatV6DGBbB26P6sid7YsMydWWke53vKCsAM2akKuXXm",
"proofs": [
"5qzPGMLyi4uD9yKKabde1qy15RJMjVYaiZ6GL2jEoc7eg3NqvikKgwu7waDECrVPKD2DQ9EFEjbmrD5Gkby29G3k"
],
"script": "base64:BgIECAISAAYABmNhbGxlcgkBB0FkZHJlc3MBARoBVG3DzClEyfEyPrFoaU541UcoIK9sO2J1PAAIcmVjZWl2ZXIJAQdBZGRyZXNzAQEaAVQaRr06ZZwzOayfpQR3vrV3vRQXSiZXWV0AAXIJAQdBZGRyZXNzAQEaAVTRvMlTfkIkm8tWlS1zulwBHIcBOL3Pq5QAAXMJAQdBZGRyZXNzAQEaAVQF0NEH0zIDexjZo2teFNSGawHZ1cuEQWgAAXcJAQdBZGRyZXNzAQEaAVSP+l2UnIsBUufJAvg0Dw7zkQLQlzlcBg0BDGdldEludE9yWmVybwEDa2V5CQELdmFsdWVPckVsc2UCCQCfCAEFA2tleQAAAQFpAQR0ZXN0AAMJAQIhPQIIBQFpBmNhbGxlcgUGY2FsbGVyCQACAQIKb25seSBhZG1pbgQBZQkApAMBCQERQGV4dHJOYXRpdmUoMTA1MCkCBQFzCQCsAgICHlNJR05FRF9FVkVOVF9FWEVDVVRPUl9fMTAwMDFfXwkApAMBCQBlAgkBEUBleHRyTmF0aXZlKDEwNTApAgUBcwIiU0lHTkVEX0VWRU5UX0VYRUNVVE9S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dGFsUHJvZml0XwUIYXNzZXRTdHIFB2JhbGFuY2UFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgD4edqB",
"chainId": 84,
"height": 2550488,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BAg6axhs1MU7y15qsp2RvEh8s2BabVnKUSBhDpqLEfA1
Next: 8HqPG1CBpekyqNYrU4MJX14oNBSxqg8cSdWFpGhqvgRg
Diff:
Old | New | | Differences |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | | - | func defaultt () = if ((i.caller != caller)) |
---|
| 18 | + | func test () = if ((i.caller != caller)) |
---|
19 | 19 | | then throw("only admin") |
---|
20 | 20 | | else { |
---|
21 | | - | let e = toString(getIntegerValue(s, ("SIGNED_EVENT_EXECUTOR__1__" + toString((getIntegerValue(s, "SIGNED_EVENT_EXECUTOR__1__SIZE") - 1))))) |
---|
| 21 | + | let e = toString(getIntegerValue(s, ("SIGNED_EVENT_EXECUTOR__10001__" + toString((getIntegerValue(s, "SIGNED_EVENT_EXECUTOR__10001__SIZE") - 1))))) |
---|
22 | 22 | | let d = split(getStringValue(w, ("WAVES_EVENT__" + e)), "__") |
---|
23 | 23 | | let args = split(d[5], "####") |
---|
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) |
---|
| 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__10001__" + e))) + fromBase58String(getStringValue(s, ("S_SIGMA__10001__" + e)))))], nil) |
---|
25 | 25 | | if ((inv == inv)) |
---|
26 | 26 | | then { |
---|
27 | 27 | | 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 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 defaultt () = if ((i.caller != caller)) |
---|
| 18 | + | func test () = if ((i.caller != caller)) |
---|
19 | 19 | | then throw("only admin") |
---|
20 | 20 | | else { |
---|
21 | | - | let e = toString(getIntegerValue(s, ("SIGNED_EVENT_EXECUTOR__1__" + toString((getIntegerValue(s, "SIGNED_EVENT_EXECUTOR__1__SIZE") - 1))))) |
---|
| 21 | + | let e = toString(getIntegerValue(s, ("SIGNED_EVENT_EXECUTOR__10001__" + toString((getIntegerValue(s, "SIGNED_EVENT_EXECUTOR__10001__SIZE") - 1))))) |
---|
22 | 22 | | let d = split(getStringValue(w, ("WAVES_EVENT__" + e)), "__") |
---|
23 | 23 | | let args = split(d[5], "####") |
---|
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) |
---|
| 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__10001__" + e))) + fromBase58String(getStringValue(s, ("S_SIGMA__10001__" + 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 | | |
---|