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:BwJKCAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIDCgEBEgMKAQESBQoDAgECEgQKAgIBEgASABIDCgEIEgASABIDCgEIEgAcAANTRVACAl9fABBjb250cmFjdEZpbGVuYW1lAgxmYWN0b3J5LnJpZGUBB3dyYXBFcnIBAXMJAKwCAgkArAICBRBjb250cmFjdEZpbGVuYW1lAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBFGtleUNhbGN1bGF0b3JBZGRyZXNzAAIOJXNfX2NhbGN1bGF0b3IBEmtleVRyZWFzdXJ5QWRkcmVzcwACDCVzX190cmVhc3VyeQEPa2V5Q2hpbGRBZGRyZXNzAAIJJXNfX2NoaWxkARhrZXlCbG9ja1Byb2Nlc3NpbmdSZXdhcmQAAhklc19fYmxvY2tQcm9jZXNzaW5nUmV3YXJkARVrZXlOZXh0QmxvY2tUb1Byb2Nlc3MAAhYlc19fbmV4dEJsb2NrVG9Qcm9jZXNzAQxrZXlMcEFzc2V0SWQAAg0lc19fbHBBc3NldElkABdjYWxjdWxhdG9yQWRkc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JAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwkBAiE9AgUZdm90aW5nUmVzdWx0QWRkcmVzc09wdGlvbgUEdW5pdAUKYnlQcm9wb3NhbAUHYnlPd25lctvcxdQ=", "height": 2615263, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5kPHywu2r7uJELS5FWoKxTqTu9WXqjerKGuD16khPKbG Next: FFkBB8fzbWFKeZ3JuK6mtpuFyn1vNZgxGPqojr5cpD2o Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = "factory.ride"
77
88 func c (d) = ((b + ": ") + d)
99
1010
1111 func e (d) = throw(c(d))
1212
1313
1414 func f () = "%s__calculator"
1515
1616
1717 func g () = "%s__treasury"
1818
1919
2020 func h () = "%s__child"
2121
2222
2323 func i () = "%s__blockProcessingReward"
2424
2525
2626 func j () = "%s__nextBlockToProcess"
2727
2828
2929 func k () = "%s__lpAssetId"
3030
3131
3232 let l = {
3333 let m = getString(this, f())
3434 if ($isInstanceOf(m, "String"))
3535 then {
3636 let d = m
3737 addressFromString(d)
3838 }
3939 else if ($isInstanceOf(m, "Unit"))
4040 then unit
4141 else throw("Match error")
4242 }
4343
4444 let n = valueOrErrorMessage(l, c("invalid calculator address"))
4545
4646 func o () = "%s__config"
4747
4848
4949 func p () = "contract_children"
5050
5151
5252 func q () = "contract_voting_result"
5353
5454
5555 func r (s,t) = ((("proposal_allow_broadcast_" + toString(s)) + "_") + toBase58String(t))
5656
5757
5858 func u (v,w) = makeString(["investor", toString(v), toString(w)], "_")
5959
6060
6161 let x = {
6262 let m = getString(this, o())
6363 if ($isInstanceOf(m, "String"))
6464 then {
6565 let d = m
6666 addressFromString(d)
6767 }
6868 else if ($isInstanceOf(m, "Unit"))
6969 then unit
7070 else throw("Match error")
7171 }
7272
7373 let y = valueOrErrorMessage(x, c("invalid config address"))
7474
7575 let z = {
7676 let m = x
7777 if ($isInstanceOf(m, "Address"))
7878 then {
7979 let A = m
8080 let B = getString(A, q())
8181 if ($isInstanceOf(B, "String"))
8282 then {
8383 let d = B
8484 addressFromString(d)
8585 }
8686 else if ($isInstanceOf(B, "Unit"))
8787 then unit
8888 else throw("Match error")
8989 }
9090 else if ($isInstanceOf(m, "Unit"))
9191 then unit
9292 else throw("Match error")
9393 }
9494
9595 let C = valueOrErrorMessage(z, c("invalid voting result address"))
9696
9797 let D = {
9898 let m = x
9999 if ($isInstanceOf(m, "Address"))
100100 then {
101101 let A = m
102102 let B = getString(A, p())
103103 if ($isInstanceOf(B, "String"))
104104 then {
105105 let d = B
106106 addressFromString(d)
107107 }
108108 else if ($isInstanceOf(B, "Unit"))
109109 then unit
110110 else throw("Match error")
111111 }
112112 else if ($isInstanceOf(m, "Unit"))
113113 then unit
114114 else throw("Match error")
115115 }
116116
117117 let E = valueOrErrorMessage(D, c("invalid children address"))
118118
119119 let F = {
120120 let m = getString(this, k())
121121 if ($isInstanceOf(m, "String"))
122122 then {
123123 let d = m
124124 fromBase58String(d)
125125 }
126126 else if ($isInstanceOf(m, "Unit"))
127127 then unit
128128 else throw("Match error")
129129 }
130130
131131 let G = valueOrErrorMessage(F, c("invalid lpAssetId"))
132132
133133 func H (I,s) = if ((I.caller == s))
134134 then true
135135 else e("permission denied")
136136
137137
138138 func J (I) = H(I, this)
139139
140140
141141 func K (I) = H(I, n)
142142
143143
144144 @Callable(I)
145145 func stringEntry (L,M) = if (K(I))
146146 then $Tuple2([StringEntry(L, M)], L)
147147 else $Tuple2(nil, unit)
148148
149149
150150
151151 @Callable(I)
152152 func integerEntry (L,M) = if (K(I))
153153 then $Tuple2([IntegerEntry(L, M)], L)
154154 else $Tuple2(nil, unit)
155155
156156
157157
158158 @Callable(I)
159159 func booleanEntry (L,M) = if (K(I))
160160 then $Tuple2([BooleanEntry(L, M)], L)
161161 else $Tuple2(nil, unit)
162162
163163
164164
165165 @Callable(I)
166166 func binaryEntry (L,M) = if (K(I))
167167 then $Tuple2([BinaryEntry(L, M)], L)
168168 else $Tuple2(nil, unit)
169169
170170
171171
172172 @Callable(I)
173173 func deleteEntry (L) = if (K(I))
174174 then $Tuple2([DeleteEntry(L)], L)
175175 else $Tuple2(nil, unit)
176176
177177
178178
179179 @Callable(I)
180180 func reissue (N) = if (K(I))
181181 then $Tuple2([Reissue(G, N, true)], N)
182182 else $Tuple2(nil, unit)
183183
184184
185185
186186 @Callable(I)
187187 func burn (N) = if (K(I))
188188 then $Tuple2([Burn(G, N)], N)
189189 else $Tuple2(nil, unit)
190190
191191
192192
193193 @Callable(I)
194194 func transferAsset (O,N,P) = if (K(I))
195195 then $Tuple2([ScriptTransfer(Address(O), N, P)], N)
196196 else $Tuple2(nil, unit)
197197
198198
199199
200200 @Callable(I)
201201 func transferWaves (O,N) = if (K(I))
202202 then $Tuple2([ScriptTransfer(Address(O), N, unit)], N)
203203 else $Tuple2(nil, unit)
204204
205205
206206
207207 @Callable(I)
208208 func finalize () = e("not implemented yet")
209209
210210
211211
212212 @Callable(I)
213213 func claimLP () = $Tuple2(nil, reentrantInvoke(n, "claimLP", [I.caller.bytes], I.payments))
214214
215215
216216
217217 @Callable(I)
218218 func claimWaves (Q) = $Tuple2(nil, reentrantInvoke(n, "claimWaves", [I.caller.bytes, fromBase58String(Q)], I.payments))
219219
220220
221221
222222 @Callable(I)
223223 func invest () = $Tuple2(nil, reentrantInvoke(n, "invest", [I.caller.bytes], I.payments))
224224
225225
226226
227227 @Callable(I)
228228 func withdraw () = $Tuple2(nil, reentrantInvoke(n, "withdraw", [I.caller.bytes], I.payments))
229229
230230
231231
232232 @Callable(I)
233233 func cancelWithdraw (Q) = $Tuple2(nil, reentrantInvoke(n, "cancelWithdraw", [I.caller.bytes, fromBase58String(Q)], I.payments))
234234
235235
236236
237237 @Callable(I)
238238 func processBlocks () = $Tuple2(nil, reentrantInvoke(n, "processBlocks", [I.caller.bytes], I.payments))
239239
240240
241241 @Verifier(R)
242242 func S () = {
243243 let T = valueOrElse(getBoolean(C, r(this, R.id)), false)
244244 let U = sigVerify(R.bodyBytes, R.proofs[0], R.senderPublicKey)
245245 if ((z != unit))
246246 then T
247247 else U
248248 }
249249

github/deemru/w8io/026f985 
35.09 ms