tx · ELMqEzSHmqrnBk1AhLsm5bsNR45yBZCXxNK3DFakMPes 3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx: -0.00900000 Waves 2023.06.09 17:42 [2615263] smart account 3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx > SELF 0.00000000 Waves
{ "type": 13, "id": "ELMqEzSHmqrnBk1AhLsm5bsNR45yBZCXxNK3DFakMPes", "fee": 900000, "feeAssetId": null, "timestamp": 1686321820655, "version": 2, "chainId": 84, "sender": "3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx", "senderPublicKey": "62CHk4MqTdq3LqeUycy7TPnpvwrjgerSa2FqAY2EafXn", "proofs": [ "gwXQ52aPKApsY56LwvXCTGYpruy9uXiQPHx2vqeoNb9R2nC52xbqabsUqq9fUZYmGnVDwFv4Yjz1sR5KvHF5h3p" ], "script": "base64:BwJKCAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIDCgEBEgMKAQESBQoDAgECEgQKAgIBEgASABIDCgEIEgASABIDCgEIEgAcAANTRVACAl9fABBjb250cmFjdEZpbGVuYW1lAgxmYWN0b3J5LnJpZGUBB3dyYXBFcnIBAXMJAKwCAgkArAICBRBjb250cmFjdEZpbGVuYW1lAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBFGtleUNhbGN1bGF0b3JBZGRyZXNzAAIOJXNfX2NhbGN1bGF0b3IBEmtleVRyZWFzdXJ5QWRkcmVzcwACDCVzX190cmVhc3VyeQEPa2V5Q2hpbGRBZGRyZXNzAAIJJXNfX2NoaWxkARhrZXlCbG9ja1Byb2Nlc3NpbmdSZXdhcmQAAhklc19fYmxvY2tQcm9jZXNzaW5nUmV3YXJkARVrZXlOZXh0QmxvY2tUb1Byb2Nlc3MAAhYlc19fbmV4dEJsb2NrVG9Qcm9jZXNzAQxrZXlMcEFzc2V0SWQAAg0lc19fbHBBc3NldElkABdjYWxjdWxhdG9yQWRkcm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AJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwkBAiE9AgUZdm90aW5nUmVzdWx0QWRkcmVzc09wdGlvbgUEdW5pdAUKYnlQcm9wb3NhbAUHYnlPd25lctvcxdQ=", "height": 2615263, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5kPHywu2r7uJELS5FWoKxTqTu9WXqjerKGuD16khPKbG Next: FFkBB8fzbWFKeZ3JuK6mtpuFyn1vNZgxGPqojr5cpD2o 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 = "factory.ride" | |
7 | 7 | ||
8 | 8 | func c (d) = ((b + ": ") + d) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e (d) = throw(c(d)) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f () = "%s__calculator" | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func g () = "%s__treasury" | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func h () = "%s__child" | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func i () = "%s__blockProcessingReward" | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func j () = "%s__nextBlockToProcess" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func k () = "%s__lpAssetId" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | let l = { | |
33 | 33 | let m = getString(this, f()) | |
34 | 34 | if ($isInstanceOf(m, "String")) | |
35 | 35 | then { | |
36 | 36 | let d = m | |
37 | 37 | addressFromString(d) | |
38 | 38 | } | |
39 | 39 | else if ($isInstanceOf(m, "Unit")) | |
40 | 40 | then unit | |
41 | 41 | else throw("Match error") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let n = valueOrErrorMessage(l, c("invalid calculator address")) | |
45 | 45 | ||
46 | 46 | func o () = "%s__config" | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func p () = "contract_children" | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func q () = "contract_voting_result" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func r (s,t) = ((("proposal_allow_broadcast_" + toString(s)) + "_") + toBase58String(t)) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func u (v,w) = makeString(["investor", toString(v), toString(w)], "_") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | let x = { | |
62 | 62 | let m = getString(this, o()) | |
63 | 63 | if ($isInstanceOf(m, "String")) | |
64 | 64 | then { | |
65 | 65 | let d = m | |
66 | 66 | addressFromString(d) | |
67 | 67 | } | |
68 | 68 | else if ($isInstanceOf(m, "Unit")) | |
69 | 69 | then unit | |
70 | 70 | else throw("Match error") | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | let y = valueOrErrorMessage(x, c("invalid config address")) | |
74 | 74 | ||
75 | 75 | let z = { | |
76 | 76 | let m = x | |
77 | 77 | if ($isInstanceOf(m, "Address")) | |
78 | 78 | then { | |
79 | 79 | let A = m | |
80 | 80 | let B = getString(A, q()) | |
81 | 81 | if ($isInstanceOf(B, "String")) | |
82 | 82 | then { | |
83 | 83 | let d = B | |
84 | 84 | addressFromString(d) | |
85 | 85 | } | |
86 | 86 | else if ($isInstanceOf(B, "Unit")) | |
87 | 87 | then unit | |
88 | 88 | else throw("Match error") | |
89 | 89 | } | |
90 | 90 | else if ($isInstanceOf(m, "Unit")) | |
91 | 91 | then unit | |
92 | 92 | else throw("Match error") | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | let C = valueOrErrorMessage(z, c("invalid voting result address")) | |
96 | 96 | ||
97 | 97 | let D = { | |
98 | 98 | let m = x | |
99 | 99 | if ($isInstanceOf(m, "Address")) | |
100 | 100 | then { | |
101 | 101 | let A = m | |
102 | 102 | let B = getString(A, p()) | |
103 | 103 | if ($isInstanceOf(B, "String")) | |
104 | 104 | then { | |
105 | 105 | let d = B | |
106 | 106 | addressFromString(d) | |
107 | 107 | } | |
108 | 108 | else if ($isInstanceOf(B, "Unit")) | |
109 | 109 | then unit | |
110 | 110 | else throw("Match error") | |
111 | 111 | } | |
112 | 112 | else if ($isInstanceOf(m, "Unit")) | |
113 | 113 | then unit | |
114 | 114 | else throw("Match error") | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | let E = valueOrErrorMessage(D, c("invalid children address")) | |
118 | 118 | ||
119 | 119 | let F = { | |
120 | 120 | let m = getString(this, k()) | |
121 | 121 | if ($isInstanceOf(m, "String")) | |
122 | 122 | then { | |
123 | 123 | let d = m | |
124 | 124 | fromBase58String(d) | |
125 | 125 | } | |
126 | 126 | else if ($isInstanceOf(m, "Unit")) | |
127 | 127 | then unit | |
128 | 128 | else throw("Match error") | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | let G = valueOrErrorMessage(F, c("invalid lpAssetId")) | |
132 | 132 | ||
133 | 133 | func H (I,s) = if ((I.caller == s)) | |
134 | 134 | then true | |
135 | 135 | else e("permission denied") | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func J (I) = H(I, this) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func K (I) = H(I, n) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(I) | |
145 | 145 | func stringEntry (L,M) = if (K(I)) | |
146 | 146 | then $Tuple2([StringEntry(L, M)], L) | |
147 | 147 | else $Tuple2(nil, unit) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(I) | |
152 | 152 | func integerEntry (L,M) = if (K(I)) | |
153 | 153 | then $Tuple2([IntegerEntry(L, M)], L) | |
154 | 154 | else $Tuple2(nil, unit) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | ||
158 | 158 | @Callable(I) | |
159 | 159 | func booleanEntry (L,M) = if (K(I)) | |
160 | 160 | then $Tuple2([BooleanEntry(L, M)], L) | |
161 | 161 | else $Tuple2(nil, unit) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | ||
165 | 165 | @Callable(I) | |
166 | 166 | func binaryEntry (L,M) = if (K(I)) | |
167 | 167 | then $Tuple2([BinaryEntry(L, M)], L) | |
168 | 168 | else $Tuple2(nil, unit) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(I) | |
173 | 173 | func deleteEntry (L) = if (K(I)) | |
174 | 174 | then $Tuple2([DeleteEntry(L)], L) | |
175 | 175 | else $Tuple2(nil, unit) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | ||
179 | 179 | @Callable(I) | |
180 | 180 | func reissue (N) = if (K(I)) | |
181 | 181 | then $Tuple2([Reissue(G, N, true)], N) | |
182 | 182 | else $Tuple2(nil, unit) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Callable(I) | |
187 | 187 | func burn (N) = if (K(I)) | |
188 | 188 | then $Tuple2([Burn(G, N)], N) | |
189 | 189 | else $Tuple2(nil, unit) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | ||
193 | 193 | @Callable(I) | |
194 | 194 | func transferAsset (O,N,P) = if (K(I)) | |
195 | 195 | then $Tuple2([ScriptTransfer(Address(O), N, P)], N) | |
196 | 196 | else $Tuple2(nil, unit) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(I) | |
201 | 201 | func transferWaves (O,N) = if (K(I)) | |
202 | 202 | then $Tuple2([ScriptTransfer(Address(O), N, unit)], N) | |
203 | 203 | else $Tuple2(nil, unit) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | ||
207 | 207 | @Callable(I) | |
208 | 208 | func finalize () = e("not implemented yet") | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(I) | |
213 | 213 | func claimLP () = $Tuple2(nil, reentrantInvoke(n, "claimLP", [I.caller.bytes], I.payments)) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(I) | |
218 | 218 | func claimWaves (Q) = $Tuple2(nil, reentrantInvoke(n, "claimWaves", [I.caller.bytes, fromBase58String(Q)], I.payments)) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | ||
222 | 222 | @Callable(I) | |
223 | 223 | func invest () = $Tuple2(nil, reentrantInvoke(n, "invest", [I.caller.bytes], I.payments)) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(I) | |
228 | 228 | func withdraw () = $Tuple2(nil, reentrantInvoke(n, "withdraw", [I.caller.bytes], I.payments)) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | 232 | @Callable(I) | |
233 | 233 | func cancelWithdraw (Q) = $Tuple2(nil, reentrantInvoke(n, "cancelWithdraw", [I.caller.bytes, fromBase58String(Q)], I.payments)) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | ||
237 | 237 | @Callable(I) | |
238 | 238 | func processBlocks () = $Tuple2(nil, reentrantInvoke(n, "processBlocks", [I.caller.bytes], I.payments)) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Verifier(R) | |
242 | 242 | func S () = { | |
243 | 243 | let T = valueOrElse(getBoolean(C, r(this, R.id)), false) | |
244 | 244 | let U = sigVerify(R.bodyBytes, R.proofs[0], R.senderPublicKey) | |
245 | 245 | if ((z != unit)) | |
246 | 246 | then T | |
247 | 247 | else U | |
248 | 248 | } | |
249 | 249 |
github/deemru/w8io/026f985 35.09 ms ◑