tx · 21Fd71XYJxcKy6FAJx3m9PNNbmTgMyKqeoaQFXonWkTd 3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T: -0.00400000 Waves 2024.10.10 12:13 [3320549] smart account 3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T > SELF 0.00000000 Waves
{ "type": 13, "id": "21Fd71XYJxcKy6FAJx3m9PNNbmTgMyKqeoaQFXonWkTd", "fee": 400000, "feeAssetId": null, "timestamp": 1728551643852, "version": 2, "chainId": 84, "sender": "3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T", "senderPublicKey": "iTiQR3Kvxn7i8PFgEbZn36n5iFLxFwkTA6M3wi846Vx", "proofs": [ "2sNXHu4hVMGy5Hiby6s61QHKKNJugTzQ4Xf5u9T9qjtdVMeZGR3NVJMx6xEhnsCFT3ENTCh9TxCt8koBk665R169" ], "script": "base64:BwJRCAISAwoBCBIECgIICBIECgIIARIECgIIBBIECgIIAhIDCgEIEgUKAwIBBBIECgICARIFCgMCAQISBQoDAhIREgQKAgIBEgQKAggYEgQKAggYEQAJc2VwYXJhdG9yAgJfXwALd2F2ZXNTdHJpbmcCBVdBVkVTABBjb250cmFjdEZpbGVuYW1lAhRtZW1lX2ltX2ZhY3RvcnkucmlkZQALa1ByaWNlQXNzZXQCDHByaWNlX19hc3NldAAJa1NodXRkb3duAg5zaHV0ZG93bl9fZmxhZwAIc2h1dGRvd24JAQt2YWx1ZU9yRWxzZQIJAKAIAQUJa1NodXRkb3duBwEHd3JhcEVycgEBcwkArAICCQCsAgIFEGNvbnRyYWN0RmlsZW5hbWUCAjogBQFzAQh0aHJvd0VycgEBcwkAAgEJAQd3cmFwRXJyAQUBcwEPdmFsaWRhdGVBZGRyZXNzAQdhZGRyZXNzCQEJaXNEZWZpbmVkAQkApggBBQdhZGRyZXNzABJrQ2FsY3VsYXRvckFkZHJlc3MCE2NhbGN1bGF0b3JfX2FkZHJlc3MAF2NhbGN1bGF0b3JBZGRyZXNzT3B0a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nRzCQCUCgIFA25pbAUGcmVzdWx0AWkBDmluaXRQb29sSW52b2tlAhFwb29sQWRkcmVzc1N0cmluZwRhcmdzAwMJAQEhAQUIc2h1dGRvd24JAQ5tdXN0Q2FsY3VsYXRvcgEFAWkHBA1jb252ZXJ0ZWRBcmdzCQDMCAIJAJEDAgUEYXJncwAACQDMCAIJAJEDAgUEYXJncwABCQDMCAIJAJEDAgUEYXJncwACCQDMCAIJAJEDAgUEYXJncwADCQDMCAIJAQ1wYXJzZUludFZhbHVlAQkAkQMCBQRhcmdzAAQFA25pbAkAlAoCBQNuaWwJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQURcG9vbEFkZHJlc3NTdHJpbmcCBGluaXQFDWNvbnZlcnRlZEFyZ3MIBQFpCHBheW1lbnRzCQEIdGhyb3dFcnIBAgtub3QgYWxsb3dlZAA4QCP+", "height": 3320549, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4qgVAamY7HRxMf1U8AHysFrqg5yLg3SHmo1S6rTuwqxd Next: EHBbi2tnWfz9CBnxV6qXokJjj1s1F6VZx4XqFqiotcSu Diff:
Old | New | Differences | |
---|---|---|---|
203 | 203 | else false) | |
204 | 204 | then { | |
205 | 205 | let ad = [Z[0], Z[1], Z[2], Z[3], parseIntValue(Z[4])] | |
206 | - | $Tuple2(nil, invoke( | |
206 | + | $Tuple2(nil, invoke(addressFromStringValue(ac), "init", ad, q.payments)) | |
207 | 207 | } | |
208 | 208 | else i("not allowed") | |
209 | 209 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "WAVES" | |
7 | 7 | ||
8 | 8 | let c = "meme_im_factory.ride" | |
9 | 9 | ||
10 | 10 | let d = "price__asset" | |
11 | 11 | ||
12 | 12 | let e = "shutdown__flag" | |
13 | 13 | ||
14 | 14 | let f = valueOrElse(getBoolean(e), false) | |
15 | 15 | ||
16 | 16 | func g (h) = ((c + ": ") + h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (k) = isDefined(addressFromString(k)) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | let l = "calculator__address" | |
26 | 26 | ||
27 | 27 | let m = { | |
28 | 28 | let n = getString(this, l) | |
29 | 29 | if ($isInstanceOf(n, "String")) | |
30 | 30 | then { | |
31 | 31 | let h = n | |
32 | 32 | addressFromString(h) | |
33 | 33 | } | |
34 | 34 | else if ($isInstanceOf(n, "Unit")) | |
35 | 35 | then unit | |
36 | 36 | else throw("Match error") | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | let o = valueOrErrorMessage(m, g("invalid calculator address")) | |
40 | 40 | ||
41 | 41 | func p (q,k) = if ((q.caller == k)) | |
42 | 42 | then true | |
43 | 43 | else i("permission denied") | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func r (q) = p(q, this) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func s (q) = p(q, o) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func t (u) = if ((u == b)) | |
53 | 53 | then unit | |
54 | 54 | else fromBase58String(u) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func v (u) = if ((u == unit)) | |
58 | 58 | then b | |
59 | 59 | else toBase58String(value(u)) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | @Callable(q) | |
63 | 63 | func init (w) = { | |
64 | 64 | let x = r(q) | |
65 | 65 | if ((x == x)) | |
66 | 66 | then $Tuple2([StringEntry(l, w), StringEntry(d, b)], unit) | |
67 | 67 | else throw("Strict value is not equal to itself.") | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | ||
72 | 72 | @Callable(q) | |
73 | 73 | func stringEntry (y,z) = if (if (!(f)) | |
74 | 74 | then s(q) | |
75 | 75 | else false) | |
76 | 76 | then $Tuple2([StringEntry(y, z)], y) | |
77 | 77 | else i("not allowed") | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | ||
81 | 81 | @Callable(q) | |
82 | 82 | func integerEntry (y,z) = if (if (!(f)) | |
83 | 83 | then s(q) | |
84 | 84 | else false) | |
85 | 85 | then $Tuple2([IntegerEntry(y, z)], y) | |
86 | 86 | else i("not allowed") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | ||
90 | 90 | @Callable(q) | |
91 | 91 | func booleanEntry (y,z) = if (if (!(f)) | |
92 | 92 | then s(q) | |
93 | 93 | else false) | |
94 | 94 | then $Tuple2([BooleanEntry(y, z)], y) | |
95 | 95 | else i("not allowed") | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(q) | |
100 | 100 | func binaryEntry (y,z) = if (if (!(f)) | |
101 | 101 | then s(q) | |
102 | 102 | else false) | |
103 | 103 | then $Tuple2([BinaryEntry(y, z)], y) | |
104 | 104 | else i("not allowed") | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | ||
108 | 108 | @Callable(q) | |
109 | 109 | func deleteEntry (y) = if (if (!(f)) | |
110 | 110 | then s(q) | |
111 | 111 | else false) | |
112 | 112 | then $Tuple2([DeleteEntry(y)], y) | |
113 | 113 | else i("not allowed") | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(q) | |
118 | 118 | func reissue (A,B,C) = if (if (!(f)) | |
119 | 119 | then s(q) | |
120 | 120 | else false) | |
121 | 121 | then $Tuple2([Reissue(A, B, C)], B) | |
122 | 122 | else i("not allowed") | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | ||
126 | 126 | @Callable(q) | |
127 | 127 | func burn (A,B) = if (if (!(f)) | |
128 | 128 | then s(q) | |
129 | 129 | else false) | |
130 | 130 | then $Tuple2([Burn(A, B)], B) | |
131 | 131 | else i("not allowed") | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(q) | |
136 | 136 | func transferAsset (D,B,A) = if (if (!(f)) | |
137 | 137 | then s(q) | |
138 | 138 | else false) | |
139 | 139 | then $Tuple2([ScriptTransfer(Address(D), B, A)], B) | |
140 | 140 | else i("not allowed") | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(q) | |
145 | 145 | func transferAssets (D,E,F) = if (if (!(f)) | |
146 | 146 | then s(q) | |
147 | 147 | else false) | |
148 | 148 | then { | |
149 | 149 | func G (H,I) = { | |
150 | 150 | let J = H | |
151 | 151 | let K = J._1 | |
152 | 152 | let L = J._2 | |
153 | 153 | let M = ScriptTransfer(Address(D), F[L], E[L]) | |
154 | 154 | let N = (K :+ M) | |
155 | 155 | $Tuple2(N, (L + 1)) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | let O = { | |
159 | 159 | let P = E | |
160 | 160 | let Q = size(P) | |
161 | 161 | let R = $Tuple2(nil, 0) | |
162 | 162 | func S (T,U) = if ((U >= Q)) | |
163 | 163 | then T | |
164 | 164 | else G(T, P[U]) | |
165 | 165 | ||
166 | 166 | func V (T,U) = if ((U >= Q)) | |
167 | 167 | then T | |
168 | 168 | else throw("List size exceeds 10") | |
169 | 169 | ||
170 | 170 | V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
171 | 171 | } | |
172 | 172 | let W = O._1 | |
173 | 173 | let X = O._2 | |
174 | 174 | $Tuple2(W, unit) | |
175 | 175 | } | |
176 | 176 | else i("not allowed") | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | ||
180 | 180 | @Callable(q) | |
181 | 181 | func transferWaves (D,B) = if (if (!(f)) | |
182 | 182 | then s(q) | |
183 | 183 | else false) | |
184 | 184 | then $Tuple2([ScriptTransfer(Address(D), B, unit)], B) | |
185 | 185 | else i("not allowed") | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(q) | |
190 | 190 | func call (Y,Z) = { | |
191 | 191 | let aa = if ((q.callerPublicKey == base58'11111111111111111111111111111111')) | |
192 | 192 | then nil | |
193 | 193 | else q.payments | |
194 | 194 | let ab = reentrantInvoke(o, Y, [q.callerPublicKey, Z], aa) | |
195 | 195 | $Tuple2(nil, ab) | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(q) | |
201 | 201 | func initPoolInvoke (ac,Z) = if (if (!(f)) | |
202 | 202 | then s(q) | |
203 | 203 | else false) | |
204 | 204 | then { | |
205 | 205 | let ad = [Z[0], Z[1], Z[2], Z[3], parseIntValue(Z[4])] | |
206 | - | $Tuple2(nil, invoke( | |
206 | + | $Tuple2(nil, invoke(addressFromStringValue(ac), "init", ad, q.payments)) | |
207 | 207 | } | |
208 | 208 | else i("not allowed") | |
209 | 209 | ||
210 | 210 |
github/deemru/w8io/026f985 25.95 ms ◑