tx · BkknYron5cmMcptYFxMG8uLaQEmNuE4mCqLE6goVRDpZ
3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S: -0.01400000 Waves
2021.01.01 15:05 [1334303] smart account 3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S > SELF 0.00000000 Waves
{
"type": 13,
"id": "BkknYron5cmMcptYFxMG8uLaQEmNuE4mCqLE6goVRDpZ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1609502788816,
"version": 2,
"chainId": 84,
"sender": "3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S",
"senderPublicKey": "H8moDp5wDnu7iRR16S1brcH7dn2p3tUhKNW3A8LKosMa",
"proofs": [
"4fVUecqvRAnEzjJbPSxDDt6wMMArc8uBWXbXu9U2UWYWvbED3GJmr1dNrH9CfkAm49pbHephnY1rXvAkMKTNCY4p"
],
"script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQEAAAABAAAAABhzdW1hemRlcG9ub3dhbnljaHNyb2Rrb3cCAAAAGnN1bWFfemRlcG9ub3dhbnljaF9zcm9ka293AAAAAgAAAAFpAQAAAAdkZXBvenl0AAAAAAQAAAADcG10CQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACBtb3plc3ogcHJ6ZWNob3d5d2HEhyB0eWxrbyBXQVZFUwQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91b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RjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAYc3VtYXpkZXBvbm93YW55Y2hzcm9ka293AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAADGFrdHVhbG5hc3VtYQkAAGUAAAACBQAAABB3Y3plc25pZWpzemFzdW1hBQAAAAVrd290YQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3QW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAFa3dvdGEFAAAABHVuaXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAGHN1bWF6ZGVwb25vd2FueWNoc3JvZGtvdwUAAAAQd2N6ZXNuaWVqc3phc3VtYQUAAAADbmlsAAAAAPfB33A=",
"height": 1334303,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: F2EkqKomkAFtusf9QWQ8fXZn3dJBzZhN5Cz1nyznoQJv
Next: DQ7abNF41FTjj4Zw5BvHrpdfoPCK3MqAxpbDF8tEStf8
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let a = "suma_zdeponowanych_srodkow" |
---|
4 | 5 | | |
---|
5 | | - | |
---|
6 | | - | @Callable(a) |
---|
| 6 | + | @Callable(b) |
---|
7 | 7 | | func depozyt () = { |
---|
8 | | - | let b = a.payments[0] |
---|
9 | | - | if (isDefined(b.assetId)) |
---|
| 8 | + | let c = b.payments[0] |
---|
| 9 | + | if (isDefined(c.assetId)) |
---|
10 | 10 | | then throw("mozesz przechowywać tylko WAVES") |
---|
11 | 11 | | else { |
---|
12 | | - | let c = toBase58String(a.caller.bytes) |
---|
13 | | - | let d = { |
---|
14 | | - | let e = getInteger(this, c) |
---|
15 | | - | if ($isInstanceOf(e, "Int")) |
---|
| 12 | + | let d = toBase58String(b.caller.bytes) |
---|
| 13 | + | let e = { |
---|
| 14 | + | let f = getInteger(this, d) |
---|
| 15 | + | if ($isInstanceOf(f, "Int")) |
---|
16 | 16 | | then { |
---|
17 | | - | let f = e |
---|
18 | | - | f |
---|
| 17 | + | let g = f |
---|
| 18 | + | g |
---|
19 | 19 | | } |
---|
20 | 20 | | else 0 |
---|
21 | 21 | | } |
---|
22 | | - | let g = (d + b.amount) |
---|
23 | | - | [IntegerEntry(c, g)] |
---|
| 22 | + | let h = (e + c.amount) |
---|
| 23 | + | let i = { |
---|
| 24 | + | let f = getInteger(this, a) |
---|
| 25 | + | if ($isInstanceOf(f, "Int")) |
---|
| 26 | + | then { |
---|
| 27 | + | let g = f |
---|
| 28 | + | g |
---|
| 29 | + | } |
---|
| 30 | + | else 0 |
---|
| 31 | + | } |
---|
| 32 | + | let j = (i + c.amount) |
---|
| 33 | + | [IntegerEntry(d, h), IntegerEntry(a, j)] |
---|
24 | 34 | | } |
---|
25 | 35 | | } |
---|
26 | 36 | | |
---|
27 | 37 | | |
---|
28 | 38 | | |
---|
29 | | - | @Callable(a) |
---|
30 | | - | func wyplac (h) = { |
---|
31 | | - | let c = toBase58String(a.caller.bytes) |
---|
32 | | - | let d = { |
---|
33 | | - | let e = getInteger(this, c) |
---|
34 | | - | if ($isInstanceOf(e, "Int")) |
---|
| 39 | + | @Callable(b) |
---|
| 40 | + | func wyplac (k) = { |
---|
| 41 | + | let d = toBase58String(b.caller.bytes) |
---|
| 42 | + | let e = { |
---|
| 43 | + | let f = getInteger(this, d) |
---|
| 44 | + | if ($isInstanceOf(f, "Int")) |
---|
35 | 45 | | then { |
---|
36 | | - | let f = e |
---|
37 | | - | f |
---|
| 46 | + | let g = f |
---|
| 47 | + | g |
---|
38 | 48 | | } |
---|
39 | 49 | | else 0 |
---|
40 | 50 | | } |
---|
41 | | - | let g = (d - h) |
---|
42 | | - | if ((0 > h)) |
---|
| 51 | + | let h = (e - k) |
---|
| 52 | + | if ((0 > k)) |
---|
43 | 53 | | then throw("Niemożna wypłacić ujemnej liczby środków") |
---|
44 | | - | else if ((0 > g)) |
---|
| 54 | + | else if ((0 > h)) |
---|
45 | 55 | | then throw("Niwystarczająca ilość środków") |
---|
46 | | - | else [IntegerEntry(c, g), ScriptTransfer(a.caller, h, unit)] |
---|
| 56 | + | else { |
---|
| 57 | + | let i = { |
---|
| 58 | + | let f = getInteger(this, a) |
---|
| 59 | + | if ($isInstanceOf(f, "Int")) |
---|
| 60 | + | then { |
---|
| 61 | + | let g = f |
---|
| 62 | + | g |
---|
| 63 | + | } |
---|
| 64 | + | else 0 |
---|
| 65 | + | } |
---|
| 66 | + | let j = (i - k) |
---|
| 67 | + | [IntegerEntry(d, h), ScriptTransfer(b.caller, k, unit), IntegerEntry(a, i)] |
---|
| 68 | + | } |
---|
47 | 69 | | } |
---|
48 | 70 | | |
---|
49 | 71 | | |
---|