tx · GuLjEdb1jRSvvv3sF8BXGGNf9b4iz9pBazRzvKeo3Hff

3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx:  -0.01000000 Waves

2023.02.21 16:34 [2459478] smart account 3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx > SELF 0.00000000 Waves

{ "type": 13, "id": "GuLjEdb1jRSvvv3sF8BXGGNf9b4iz9pBazRzvKeo3Hff", "fee": 1000000, "feeAssetId": null, "timestamp": 1676986496038, "version": 2, "chainId": 84, "sender": "3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx", "senderPublicKey": "D35PGQCSSdrp9pvujggj7b2DaCK1BhcU3kho7tikKJYs", "proofs": [ "2C1S5oXciau7TKF4hKefte9nuM3AM1ijjs9qvnnFNAhzYy4Xuo7ysyCvwGg5sb34FTubFuEncrc3TdvVuGNoCutj" ], "script": "base64:BgIfCAISAwoBARIAEgMKAQESBAoCGBESBAoCCAESAwoBCAIADG9wdGlvbnNfYWRkcgkBB0FkZHJlc3MBARoBVEFb+Cv2F+oqocvEivH7x7uyIGEx/ocgwQAEdFVTRAEgqyRKarZCRuvS/ON5sGG6w65pV01SespFHKdAHRGwKQ4GAWkBCWlzc3VlQmlsbAEJcHJvdmlkaW5nBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEDWN1cnJlbnRBbW91bnQEByRtYXRjaDAJAJoIAgUEdGhpcwUKY3VycmVudEtleQMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAQRbWluQmlsbERlcG9zaXRTdHIEByRtYXRjaDAJAJ0IAgUMb3B0aW9uc19hZGRyAhBtaW5fYmlsbF9kZXBvc2l0AwkAAQIFByRtYXRjaDACBFVuaXQCATADCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IEDm1pbkJpbGxEZXBvc2l0CQBoAgkAsQkBCQCbAwEFEW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5zZXQgYWRtaW4gbGlzdAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlc5pYk", "height": 2459478, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B7XVF8KjpUncmT2XUqohRmvjJtpE7pCJhZQyvHPfW7gc Next: DjNSC2VYkZBcDaDWVf4V42FGMujSeu3vQAVarDSx4K6J Diff:
OldNewDifferences
2020 let i = {
2121 let g = getString(a, "min_bill_deposit")
2222 if ($isInstanceOf(g, "Unit"))
23- then "unset"
23+ then "0"
2424 else if ($isInstanceOf(g, "String"))
2525 then {
2626 let j = g
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
55
66 let b = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
77
88 @Callable(c)
99 func issueBill (d) = {
1010 let e = toBase58String(c.caller.bytes)
1111 let f = {
1212 let g = getInteger(this, e)
1313 if ($isInstanceOf(g, "Int"))
1414 then {
1515 let h = g
1616 h
1717 }
1818 else 0
1919 }
2020 let i = {
2121 let g = getString(a, "min_bill_deposit")
2222 if ($isInstanceOf(g, "Unit"))
23- then "unset"
23+ then "0"
2424 else if ($isInstanceOf(g, "String"))
2525 then {
2626 let j = g
2727 j
2828 }
2929 else throw("Match error")
3030 }
3131 let k = (toInt(toBytes(i)) * 100)
3232 let l = (f - d)
3333 if ((k > d))
3434 then throw(((("The security deposit must be more than " + i) + ". You set the size: ") + toString(d)))
3535 else if ((0 > l))
3636 then throw("Not enough balance")
3737 else {
3838 let m = Issue(("bill for:" + toString((d / 100))), e, 1, 0, false)
3939 let n = calculateAssetId(m)
4040 $Tuple2([IntegerEntry(e, l), m, ScriptTransfer(c.caller, 1, n)], unit)
4141 }
4242 }
4343
4444
4545
4646 @Callable(c)
4747 func deposit () = if ((size(c.payments) == 0))
4848 then throw("Payment not attached")
4949 else {
5050 let o = value(c.payments)[0]
5151 let p = {
5252 let g = getString(a, "admin_list")
5353 if ($isInstanceOf(g, "Unit"))
5454 then "unset"
5555 else if ($isInstanceOf(g, "String"))
5656 then {
5757 let j = g
5858 j
5959 }
6060 else throw("Match error")
6161 }
6262 if ((o.assetId != b))
6363 then throw("holded payment not tUSD")
6464 else if ((1000 > o.amount))
6565 then throw("holded payment < 10.00")
6666 else {
6767 let e = toBase58String(c.caller.bytes)
6868 let f = {
6969 let g = getInteger(this, e)
7070 if ($isInstanceOf(g, "Int"))
7171 then {
7272 let h = g
7373 h
7474 }
7575 else 0
7676 }
7777 let l = (f + o.amount)
7878 [IntegerEntry(e, l)]
7979 }
8080 }
8181
8282
8383
8484 @Callable(c)
8585 func withdraw (q) = {
8686 let e = toBase58String(c.caller.bytes)
8787 let f = {
8888 let g = getInteger(this, e)
8989 if ($isInstanceOf(g, "Int"))
9090 then {
9191 let h = g
9292 h
9393 }
9494 else 0
9595 }
9696 let l = (f - q)
9797 if ((0 > q))
9898 then throw("Can't withdraw negative amount")
9999 else if ((0 > l))
100100 then throw("Not enough balance")
101101 else $Tuple2([IntegerEntry(e, l), ScriptTransfer(c.caller, q, b)], unit)
102102 }
103103
104104
105105
106106 @Callable(c)
107107 func setOptions (r,s) = {
108108 let t = size(r)
109109 if ((100 >= t))
110110 then {
111111 let p = {
112112 let g = getString(a, "admin_list")
113113 if ($isInstanceOf(g, "Unit"))
114114 then "unset"
115115 else if ($isInstanceOf(g, "String"))
116116 then {
117117 let j = g
118118 j
119119 }
120120 else throw("Match error")
121121 }
122122 func u (v,w) = {
123123 let x = v
124124 let y = x._1
125125 let z = x._2
126126 $Tuple2((y :+ IntegerEntry(r[z], w)), (z + 1))
127127 }
128128
129129 let A = {
130130 let B = s
131131 let C = size(B)
132132 let D = $Tuple2(nil, 0)
133133 func E (F,G) = if ((G >= C))
134134 then F
135135 else u(F, B[G])
136136
137137 func H (F,G) = if ((G >= C))
138138 then F
139139 else throw("List size exceeds 100")
140140
141141 H(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
142142 }
143143 let I = toString(c.caller)
144144 if ((p != "unset"))
145145 then {
146146 let J = getString(addressFromStringValue(p), I)
147147 let K = {
148148 let g = J
149149 if ($isInstanceOf(g, "String"))
150150 then {
151151 let j = g
152152 j
153153 }
154154 else if ($isInstanceOf(g, "Unit"))
155155 then "no admin"
156156 else throw("Match error")
157157 }
158158 func L (M) = {
159159 let N = split(M, "|")
160160 StringEntry(N[0], N[1])
161161 }
162162
163163 if ((K != "no admin"))
164164 then A
165165 else throw((((((("You not admin: " + p) + ", isAdmin: ") + K) + ", callerAddressStr: ") + I) + ", "))
166166 }
167167 else throw("Unset admin list")
168168 }
169169 else throw("The number of list elements must not exceed 100")
170170 }
171171
172172
173173
174174 @Callable(c)
175175 func setOption (O,P) = {
176176 let p = {
177177 let g = getString(a, "admin_list")
178178 if ($isInstanceOf(g, "Unit"))
179179 then "unset"
180180 else if ($isInstanceOf(g, "String"))
181181 then {
182182 let j = g
183183 j
184184 }
185185 else throw("Match error")
186186 }
187187 let I = toString(c.caller)
188188 if ((p != "unset"))
189189 then {
190190 let J = getString(addressFromStringValue(p), I)
191191 let K = {
192192 let g = J
193193 if ($isInstanceOf(g, "String"))
194194 then {
195195 let j = g
196196 j
197197 }
198198 else if ($isInstanceOf(g, "Unit"))
199199 then "no admin"
200200 else throw("Match error")
201201 }
202202 if ((K != "no admin"))
203203 then $Tuple2([IntegerEntry(O, P)], unit)
204204 else throw((((((("You not admin: " + p) + ", isAdmin: ") + K) + ", callerAddressStr: ") + I) + ", "))
205205 }
206206 else throw("Unset admin list")
207207 }
208208
209209
210210
211211 @Callable(c)
212212 func delOption (O) = {
213213 let p = {
214214 let g = getString(a, "admin_list")
215215 if ($isInstanceOf(g, "Unit"))
216216 then "unset"
217217 else if ($isInstanceOf(g, "String"))
218218 then {
219219 let j = g
220220 j
221221 }
222222 else throw("Match error")
223223 }
224224 let I = toString(c.caller)
225225 if ((p != "unset"))
226226 then {
227227 let J = getString(addressFromStringValue(p), I)
228228 let K = {
229229 let g = J
230230 if ($isInstanceOf(g, "String"))
231231 then {
232232 let j = g
233233 j
234234 }
235235 else if ($isInstanceOf(g, "Unit"))
236236 then "no admin"
237237 else throw("Match error")
238238 }
239239 if ((K != "no admin"))
240240 then $Tuple2([DeleteEntry(O)], unit)
241241 else throw((((((("You not admin: " + p) + ", isAdmin: ") + K) + ", callerAddressStr: ") + I) + ", "))
242242 }
243243 else throw("Unset admin list")
244244 }
245245
246246
247247 @Verifier(Q)
248248 func R () = sigVerify(Q.bodyBytes, Q.proofs[0], Q.senderPublicKey)
249249

github/deemru/w8io/169f3d6 
44.15 ms