tx · FH2e5hPUf8o7CfbdQuY44NEafiWXezNwYUQfsnmsaUa4 3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T: -0.00500000 Waves 2024.10.30 13:57 [3349509] smart account 3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T > SELF 0.00000000 Waves
{ "type": 13, "id": "FH2e5hPUf8o7CfbdQuY44NEafiWXezNwYUQfsnmsaUa4", "fee": 500000, "feeAssetId": null, "timestamp": 1730285865846, "version": 2, "chainId": 84, "sender": "3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T", "senderPublicKey": "iTiQR3Kvxn7i8PFgEbZn36n5iFLxFwkTA6M3wi846Vx", "proofs": [ "4bf6cZgpuq1vXT8qmyre3kwdrpiAX3CfL4KSFnQt28ovouEAnspNatG5fiY5fkN2DGgsq9EarTtN84CP2kTvmEC1" ], "script": "base64:BwJWCAISAwoBCBIECgIICBIECgIIARIECgIIBBIECgIIAhIDCgEIEgUKAwIBBBIECgICARIFCgMCAQISBQoDAhIREgQKAgIBEgQKAggYEgQKAggYEgMKAQERAAlzZXBhcmF0b3ICAl9fAAt3YXZlc1N0cmluZwIFV0FWRVMAEGNvbnRyYWN0RmlsZW5hbWUCFG1lbWVfaW1fZmFjdG9yeS5yaWRlAAtrUHJpY2VBc3NldAIMcHJpY2VfX2Fzc2V0AAlrU2h1dGRvd24CDnNodXRkb3duX19mbGFnAAhzaHV0ZG93bgkBC3ZhbHVlT3JFbHNlAgkAoAgBBQlrU2h1dGRvd24HAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ92YWxpZGF0ZUFkZHJlc3MBB2FkZHJlc3MJAQlpc0RlZmluZWQBCQCmCAEFB2FkZHJlc3MAEmtDYWxjdWxhdG9yQWRkcmVzcwITY2FsY3VsYXRvcl9fYWRkcmVzcwAXY2FsY3VsYXRvckFkZHJlc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QKAgUDbmlsBQZyZXN1bHQBaQEOaW5pdFBvb2xJbnZva2UCEXBvb2xBZGRyZXNzU3RyaW5nBGFyZ3MDAwkBASEBBQhzaHV0ZG93bgkBDm11c3RDYWxjdWxhdG9yAQUBaQcEDWNvbnZlcnRlZEFyZ3MJAMwIAgkAkQMCBQRhcmdzAAAJAMwIAgkAkQMCBQRhcmdzAAEJAMwIAgkAkQMCBQRhcmdzAAIJAMwIAgkAkQMCBQRhcmdzAAMJAMwIAgkBDXBhcnNlSW50VmFsdWUBCQCRAwIFBGFyZ3MABAUDbmlsCQCUCgIFA25pbAkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBBRFwb29sQWRkcmVzc1N0cmluZwIEaW5pdAUNY29udmVydGVkQXJncwgFAWkIcGF5bWVudHMJAQh0aHJvd0VycgECC25vdCBhbGxvd2VkAWkBEm5vdGlmeVN0YXR1c1VwZGF0ZQEGc3RhdHVzBAZyZXN1bHQJAP0HBAURY2FsY3VsYXRvckFkZHJlc3MCEm5vdGlmeVN0YXR1c1VwZGF0ZQkAzAgCCAUBaQ9jYWxsZXJQdWJsaWNLZXkJAMwIAgkAzAgCCQCkAwEFBnN0YXR1cwUDbmlsBQNuaWwFA25pbAkAlAoCBQNuaWwFBnJlc3VsdAAPFrLN", "height": 3349509, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6qeDBuLwPXKSJpwaDn7amvFrzq9URgGGcFMpkjXXEeE6 Next: 2zhLDdgkUJedH3EUp11sSv7VXQDMvWErLDjTFbpkpkjt Full:
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 | 206 | $Tuple2(nil, invoke(addressFromStringValue(ac), "init", ad, q.payments)) | |
207 | 207 | } | |
208 | 208 | else i("not allowed") | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(q) | |
213 | 213 | func notifyStatusUpdate (ae) = { | |
214 | 214 | let ab = reentrantInvoke(o, "notifyStatusUpdate", [q.callerPublicKey, [toString(ae)]], nil) | |
215 | 215 | $Tuple2(nil, ab) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 |
github/deemru/w8io/169f3d6 26.98 ms ◑