tx · BoC8J9uPdoHtqqnsDJEE4StKVTQUC5RTCxMSHgPs4TCN

3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx:  -0.01000000 Waves

2023.02.21 16:44 [2459488] smart account 3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx > SELF 0.00000000 Waves

{ "type": 13, "id": "BoC8J9uPdoHtqqnsDJEE4StKVTQUC5RTCxMSHgPs4TCN", "fee": 1000000, "feeAssetId": null, "timestamp": 1676987102530, "version": 2, "chainId": 84, "sender": "3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx", "senderPublicKey": "D35PGQCSSdrp9pvujggj7b2DaCK1BhcU3kho7tikKJYs", "proofs": [ "aXsSE5qXYeE5NYHmRtb65mdCmJv739s87tEEf92Ba5WRR7yuHpNmqxNiWg1y8vCDdsp51Q4sV3Ee3uoVjUX8RX2" ], "script": "base64:BgIfCAISAwoBARIAEgMKAQESBAoCGBESBAoCCAESAwoBCAIADG9wdGlvbnNfYWRkcgkBB0FkZHJlc3MBARoBVEFb+Cv2F+oqocvEivH7x7uyIGEx/ocgwQAEdFVTRAEgqyRKarZCRuvS/ON5sGG6w65pV01SespFHKdAHRGwKQ4GAWkBCWlzc3VlQmlsbAEJcHJvdmlkaW5nBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEDWN1cnJlbnRBbW91bnQEByRtYXRjaDAJAJoIAgUEdGhpcwUKY3VycmVudEtleQMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAQRbWluQmlsbERlcG9zaXRTdHIEByRtYXRjaDAJAJ0IAgUMb3B0aW9uc19hZGRyAhBtaW5fYmlsbF9kZXBvc2l0AwkAAQIFByRtYXRjaDACBFVuaXQCATADCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IEDm1pbkJpbGxEZXBvc2l0CQENcGFyc2VJbnRWYWx1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2V5j3oUnA==", "height": 2459488, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DjNSC2VYkZBcDaDWVf4V42FGMujSeu3vQAVarDSx4K6J Next: A54inJ5zo53K8J7Meo5keDqpwUYAas7K6DhFZNBoJpQC Diff:
OldNewDifferences
2828 }
2929 else throw("Match error")
3030 }
31- let k = (parseIntValue(i) * 100)
31+ let k = parseIntValue(i)
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)))
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"))
2323 then "0"
2424 else if ($isInstanceOf(g, "String"))
2525 then {
2626 let j = g
2727 j
2828 }
2929 else throw("Match error")
3030 }
31- let k = (parseIntValue(i) * 100)
31+ let k = parseIntValue(i)
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 
33.34 ms