tx · G8PPjDoVTucoiTTZmikHFVkxRAmUtf9aKmTzp9uKSVJz 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua: -0.01000000 Waves 2023.11.16 16:04 [2845975] smart account 3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua > SELF 0.00000000 Waves
{ "type": 13, "id": "G8PPjDoVTucoiTTZmikHFVkxRAmUtf9aKmTzp9uKSVJz", "fee": 1000000, "feeAssetId": null, "timestamp": 1700139916894, "version": 2, "chainId": 84, "sender": "3N1HdGqmcf4nVsUgmWiwB8p6p8ErWBmvQua", "senderPublicKey": "JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P", "proofs": [ "4Qk3wezqf7wUPoUQUkoFMFDnByKn8MpFDYhWxvtfwaxNBoNEAc11tXEcxsM5W36ZiVXB2QhYUYTCsesiX5bUAtv5" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAA4AAAAACE9XTkVSX1BLAQAAACD+9CsLFiFJC8RGtLCwzR0ek1aKw5ef/3Hp6vXrubt/IAAAAAALU1RBS0VfQVNTRVQBAAAAIPss+diV/WzAQQQ+1nCaM2epB5cN0dakuic5O0p9U6wiAAAAAApFQVJOX0FTU0VUAQAAACD7LPnYlf1swEEEPtZwmjNnqQeXDdHWpLonOTtKfVOsIgAAAAANVE9LRU5TX1BFUl9NUwAAAAAAAAAAAQAAAAADU0VQAgAAAAJfXwAAAAALREVOT01JTkFUT1IADeC2s6dkAAABAAAAEHVzZXJEZXBvc2l0ZWRLZXkAAAABAAAABHVzZXIJAAS5AAAAAgkABEwAAAACAgAAAAJ1ZAkABEwAAAACCQACWAAAAAEIBQAAAAR1c2VyAAAABWJ5dGVzBQAAAANuaWwFAAAAA1NFUAEAAAARdG90YWxEZXBvc2l0ZWRLZXkAAAAAAgAAAAJ0ZAEAAAANbGFzdFVwZGF0ZUtleQAAAAACAAAAAmx1AQAAABdyZXdhcmRQZXJUb2tlblN0b3JlZEtleQAAA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AAAWkAAAAGY2FsbGVyAAAAAAAAAAAABQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAIT1dORVJfUEv33ITa", "height": 2845975, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4Dqtd1ucyeBYQGnhd2rjxCgyLSiKGrYLdSKynpGHaN5A Next: 9aXKVK5LNruHXzZrUVaz5R8z93pEDHP4wjJRXXKKEPde Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'JAEVvs5E9kGyXWx3YQaivUpUP3vb3pgr2eS6UrYr1A8P' | |
5 | 5 | ||
6 | 6 | let b = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3' | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = base58'HuV7L2uJ4v2SDS5xqZLWPHhimTUgEMKstmxwfBY17SX3' | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = 1 | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = "__" | |
13 | 13 | ||
14 | - | func f (g) = makeString(["ud", toBase58String(g.bytes)], d) | |
14 | + | let f = 1000000000000000000 | |
15 | + | ||
16 | + | func g (h) = makeString(["ud", toBase58String(h.bytes)], e) | |
15 | 17 | ||
16 | 18 | ||
17 | - | func | |
19 | + | func i () = "td" | |
18 | 20 | ||
19 | 21 | ||
20 | - | func | |
22 | + | func j () = "lu" | |
21 | 23 | ||
22 | 24 | ||
23 | - | func | |
25 | + | func k () = "rpts" | |
24 | 26 | ||
25 | 27 | ||
26 | - | func | |
28 | + | func l (h) = makeString(["urpd", toBase58String(h.bytes)], e) | |
27 | 29 | ||
28 | 30 | ||
29 | - | func | |
31 | + | func m (h) = makeString(["ur", toBase58String(h.bytes)], e) | |
30 | 32 | ||
31 | 33 | ||
32 | - | func | |
33 | - | let | |
34 | - | let | |
35 | - | if ($isInstanceOf( | |
34 | + | func n () = { | |
35 | + | let o = toBigInt({ | |
36 | + | let p = getInteger(i()) | |
37 | + | if ($isInstanceOf(p, "Int")) | |
36 | 38 | then { | |
37 | - | let | |
38 | - | | |
39 | + | let q = p | |
40 | + | q | |
39 | 41 | } | |
40 | 42 | else 0 | |
41 | 43 | }) | |
42 | - | let | |
43 | - | let | |
44 | - | if ($isInstanceOf( | |
44 | + | let r = toBigInt({ | |
45 | + | let p = getInteger(j()) | |
46 | + | if ($isInstanceOf(p, "Int")) | |
45 | 47 | then { | |
46 | - | let | |
47 | - | | |
48 | + | let q = p | |
49 | + | q | |
48 | 50 | } | |
49 | 51 | else lastBlock.timestamp | |
50 | 52 | }) | |
51 | - | let | |
52 | - | let | |
53 | - | if ($isInstanceOf( | |
53 | + | let s = parseBigIntValue({ | |
54 | + | let p = getString(k()) | |
55 | + | if ($isInstanceOf(p, "String")) | |
54 | 56 | then { | |
55 | - | let | |
56 | - | | |
57 | + | let q = p | |
58 | + | q | |
57 | 59 | } | |
58 | 60 | else "0" | |
59 | 61 | }) | |
60 | - | if (( | |
61 | - | then | |
62 | - | else ( | |
62 | + | if ((o == toBigInt(0))) | |
63 | + | then s | |
64 | + | else (s + (((toBigInt(d) * (toBigInt(lastBlock.timestamp) - r)) * toBigInt(f)) / o)) | |
63 | 65 | } | |
64 | 66 | ||
65 | 67 | ||
66 | - | func | |
67 | - | let | |
68 | - | let | |
69 | - | if ($isInstanceOf( | |
68 | + | func t (h) = { | |
69 | + | let u = toBigInt({ | |
70 | + | let p = getInteger(g(h)) | |
71 | + | if ($isInstanceOf(p, "Int")) | |
70 | 72 | then { | |
71 | - | let | |
72 | - | | |
73 | + | let q = p | |
74 | + | q | |
73 | 75 | } | |
74 | 76 | else 0 | |
75 | 77 | }) | |
76 | - | let | |
77 | - | let | |
78 | - | let | |
79 | - | if ($isInstanceOf( | |
78 | + | let v = parseBigIntValue(getStringValue(l(h))) | |
79 | + | let w = toBigInt({ | |
80 | + | let p = getInteger(m(h)) | |
81 | + | if ($isInstanceOf(p, "Int")) | |
80 | 82 | then { | |
81 | - | let | |
82 | - | | |
83 | + | let q = p | |
84 | + | q | |
83 | 85 | } | |
84 | 86 | else 0 | |
85 | 87 | }) | |
86 | - | (fraction( | |
88 | + | (fraction(u, (n() - v), toBigInt(f)) + w) | |
87 | 89 | } | |
88 | 90 | ||
89 | 91 | ||
90 | - | @Callable( | |
91 | - | func update () = [IntegerEntry( | |
92 | + | @Callable(x) | |
93 | + | func update () = [IntegerEntry(j(), lastBlock.timestamp), StringEntry(k(), toString(n()))] | |
92 | 94 | ||
93 | 95 | ||
94 | 96 | ||
95 | - | @Callable( | |
96 | - | func deposit () = if (if ((size( | |
97 | + | @Callable(x) | |
98 | + | func deposit () = if (if ((size(x.payments) != 1)) | |
97 | 99 | then true | |
98 | - | else ( | |
100 | + | else (x.payments[0].assetId != b)) | |
99 | 101 | then throw("incorrect asset deposits") | |
100 | 102 | else { | |
101 | - | let | |
102 | - | let | |
103 | - | if ($isInstanceOf( | |
103 | + | let u = { | |
104 | + | let p = getInteger(g(x.caller)) | |
105 | + | if ($isInstanceOf(p, "Int")) | |
104 | 106 | then { | |
105 | - | let | |
106 | - | | |
107 | + | let q = p | |
108 | + | q | |
107 | 109 | } | |
108 | 110 | else 0 | |
109 | 111 | } | |
110 | - | let | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
112 | + | let o = { | |
113 | + | let p = getInteger(i()) | |
114 | + | if ($isInstanceOf(p, "Int")) | |
113 | 115 | then { | |
114 | - | let | |
115 | - | | |
116 | + | let q = p | |
117 | + | q | |
116 | 118 | } | |
117 | 119 | else 0 | |
118 | 120 | } | |
119 | - | [IntegerEntry( | |
121 | + | [IntegerEntry(g(x.caller), (u + x.payments[0].amount)), IntegerEntry(i(), (o + x.payments[0].amount)), IntegerEntry(j(), lastBlock.timestamp), StringEntry(k(), toString(n())), StringEntry(l(x.caller), toString(n())), IntegerEntry(m(x.caller), if ((u == 0)) | |
120 | 122 | then 0 | |
121 | - | else toInt( | |
123 | + | else toInt(t(x.caller)))] | |
122 | 124 | } | |
123 | 125 | ||
124 | 126 | ||
125 | 127 | ||
126 | - | @Callable( | |
128 | + | @Callable(x) | |
127 | 129 | func withdraw () = { | |
128 | - | let | |
129 | - | let | |
130 | - | if ($isInstanceOf( | |
130 | + | let u = { | |
131 | + | let p = getInteger(g(x.caller)) | |
132 | + | if ($isInstanceOf(p, "Int")) | |
131 | 133 | then { | |
132 | - | let | |
133 | - | | |
134 | + | let q = p | |
135 | + | q | |
134 | 136 | } | |
135 | 137 | else 0 | |
136 | 138 | } | |
137 | - | let | |
138 | - | let | |
139 | - | if ($isInstanceOf( | |
139 | + | let o = { | |
140 | + | let p = getInteger(i()) | |
141 | + | if ($isInstanceOf(p, "Int")) | |
140 | 142 | then { | |
141 | - | let | |
142 | - | | |
143 | + | let q = p | |
144 | + | q | |
143 | 145 | } | |
144 | 146 | else 0 | |
145 | 147 | } | |
146 | - | let | |
147 | - | if (( | |
148 | + | let y = toInt(t(x.caller)) | |
149 | + | if ((u == 0)) | |
148 | 150 | then throw("empty deposit") | |
149 | - | else [IntegerEntry( | |
151 | + | else [IntegerEntry(g(x.caller), 0), IntegerEntry(i(), (o - u)), IntegerEntry(j(), lastBlock.timestamp), ScriptTransfer(x.caller, u, b), ScriptTransfer(x.caller, y, c), StringEntry(k(), toString(n())), StringEntry(l(x.caller), toString(n())), IntegerEntry(m(x.caller), 0)] | |
150 | 152 | } | |
151 | 153 | ||
152 | 154 | ||
153 | - | @Verifier( | |
154 | - | func | |
155 | + | @Verifier(z) | |
156 | + | func A () = sigVerify(z.bodyBytes, z.proofs[0], a) | |
155 | 157 |
github/deemru/w8io/026f985 53.75 ms ◑