tx · 3mVYjS5x9Rvuzzpe37CSv4kGqZXj5UQFiZk1E9ej18WB

3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h:  -0.01400000 Waves

2021.09.29 08:47 [1723835] smart account 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h > SELF 0.00000000 Waves

{ "type": 13, "id": "3mVYjS5x9Rvuzzpe37CSv4kGqZXj5UQFiZk1E9ej18WB", "fee": 1400000, "feeAssetId": null, "timestamp": 1632894436550, "version": 2, "chainId": 84, "sender": "3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h", "senderPublicKey": "CU8dJ2mJQjVBWaDHwXjPztuVdy9XAyAnTuqSCKuNPARn", "proofs": [ "5nSYVbYPCJW3Br2XKwrh29DL2k2Gxvfu4bVBevGYEveASExfLS8guNq4b8ELNE9hfrjwt2Km8cfQnGmu1PkgeYer" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEBEgASBwoFCAgICAgSBAoCCAgSAwoBCAAAABQAAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAJc2lnbkFkbWluAgAAACMzTjF3UGdIRnRlem1SVkJhcW9valA4WEp3VGthcms0aGJpZgAAAAAIZmVlQWRtaW4CAAAAIzNOMXdQZ0hGdGV6bVJWQmFxb29qUDhYSndUa2FyazRoYmlmAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAJc2lnblRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAANYWNjZXB0ZWRUb2tlbgEAAAAgYfHkwqhFFD81I1SLw0GO/ozjwqWx6THXqSKcOOhu9fcAAAAAD2FjY2VwdGVkRGVjaW1hbAAAAAAABfXhAAAAAAAGdXNkbklEAgAAACwzS0ZYQkdHTENq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ZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAJc2lnbkFkbWluCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAARdXtOw==", "height": 1723835, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8bHGCJXzxAMtsgVSdvenVNU3SHJv6NZHTLSbigHsZig6 Next: DP8xZs8BHiJ5bynL78auEsTUHNoeAtG8s7XXi38y5wZg Diff:
OldNewDifferences
129129 then throw("Accept SIGN token only")
130130 else {
131131 let M = getIntegerValue(a, ("certification_fee_" + toBase58String(value(L))))
132- let N = ((M / g) / K)
132+ let N = (K / (M / g))
133133 if ((0 >= N))
134134 then throw("Not enough for at least 1 credit")
135135 else [IntegerEntry(("credits_" + toBase58String(f)), N), ScriptTransfer(addressFromStringValue(i), K, J.assetId)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let b = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif"
77
88 let c = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif"
99
1010 let d = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1111
1212 let e = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1313
1414 let f = base58'7bLUm2XNLWvVwgC9aPp9fNNAMVtbGwhwkqdgomJAgVbC'
1515
1616 let g = 100000000
1717
1818 let h = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
1919
2020 let i = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
2121
2222 func j (k) = valueOrElse(getInteger(this, k), 0)
2323
2424
2525 func l (m,n) = {
2626 let o = getString(this, (m + n))
2727 if ($isInstanceOf(o, "String"))
2828 then {
2929 let p = o
3030 p
3131 }
3232 else "NONE"
3333 }
3434
3535
3636 func q (n,r) = {
3737 let o = getString(this, ((n + "@") + r))
3838 if ($isInstanceOf(o, "String"))
3939 then {
4040 let p = o
4141 p
4242 }
4343 else "NONE"
4444 }
4545
4646
4747 func s (n) = {
4848 let o = getString(this, n)
4949 if ($isInstanceOf(o, "String"))
5050 then {
5151 let p = o
5252 p
5353 }
5454 else "NONE"
5555 }
5656
5757
5858 func t (u) = if (if (if ((size(u) == 35))
5959 then (take(u, 2) == "3P")
6060 else false)
6161 then true
6262 else (take(u, 2) == "3N"))
6363 then true
6464 else (take(u, 2) == "3M")
6565
6666
6767 func v (w,u) = if ((size(u) > 0))
6868 then (w + 1)
6969 else (w + 0)
7070
7171
7272 func x (k) = {
7373 let o = getString(this, k)
7474 if ($isInstanceOf(o, "String"))
7575 then {
7676 let p = o
7777 if ((p == "PENDING"))
7878 then true
7979 else false
8080 }
8181 else false
8282 }
8383
8484
8585 func y (z) = take(drop(z, 1), value(indexOf(drop(z, 1), "\"")))
8686
8787
8888 func A (z,k) = {
8989 let B = value(indexOf(z, (("\"" + k) + "\":")))
9090 let C = drop(z, ((B + size(k)) + 3))
9191 let D = y(C)
9292 D
9393 }
9494
9595
9696 func E (z,k) = {
9797 let B = value(indexOf(z, (("\"" + k) + "\":")))
9898 let C = take(z, ((B + size(k)) + 3))
9999 C
100100 }
101101
102102
103103 func F (z,k) = {
104104 let B = value(indexOf(z, (("\"" + k) + "\":")))
105105 let C = takeRight(z, (size(z) - ((((B + size(k)) + 3) + 0) + 2)))
106106 C
107107 }
108108
109109
110110 @Callable(G)
111111 func setFee (H) = {
112112 let I = toBase58String(G.caller.bytes)
113113 if ((I == c))
114114 then [IntegerEntry(("certification_fee_" + toBase58String(f)), H)]
115115 else throw("You are not allowed to change fee")
116116 }
117117
118118
119119
120120 @Callable(G)
121121 func refillCredits () = {
122122 let I = toBase58String(G.caller.bytes)
123123 let J = value(G.payments[0])
124124 let K = value(J.amount)
125125 let L = if (isDefined(J.assetId))
126126 then value(J.assetId)
127127 else throw("Accept SIGN token only")
128128 if ((e != L))
129129 then throw("Accept SIGN token only")
130130 else {
131131 let M = getIntegerValue(a, ("certification_fee_" + toBase58String(value(L))))
132- let N = ((M / g) / K)
132+ let N = (K / (M / g))
133133 if ((0 >= N))
134134 then throw("Not enough for at least 1 credit")
135135 else [IntegerEntry(("credits_" + toBase58String(f)), N), ScriptTransfer(addressFromStringValue(i), K, J.assetId)]
136136 }
137137 }
138138
139139
140140
141141 @Callable(O)
142142 func fileCertification (P,Q,n,C,R) = {
143143 let S = value(O.transactionId)
144144 let T = l(P, n)
145145 let U = s(n)
146146 let I = toBase58String(O.caller.bytes)
147147 if ((T != "NONE"))
148148 then throw("This entry already exist")
149149 else if ((U != "NONE"))
150150 then throw("This uuid already exist")
151151 else if ((size(n) != 36))
152152 then throw("Uuid should be 36 characters.")
153153 else if ((size(P) != 64))
154154 then throw("Hash should be 64 characters.")
155155 else if ((size(Q) > 150))
156156 then throw("Title is too long, 150 characters max.")
157157 else {
158158 let J = value(O.payments[0])
159159 let K = value(J.amount)
160160 let L = if (isDefined(J.assetId))
161161 then value(J.assetId)
162162 else throw("Waves is not accepted as payment")
163163 let V = getIntegerValue(this, ("certification_fee_" + toBase58String(value(L))))
164164 let W = j(("credits_" + toBase58String(f)))
165165 if ((0 >= W))
166166 then throw("Not enough credit on the dapp, please refill")
167167 else if ((f != L))
168168 then throw("This token is not accepted at the moment")
169169 else if ((K != V))
170170 then throw("The price is wrong")
171171 else [StringEntry(n, toBase58String(S)), StringEntry((P + n), toBase58String(S)), StringEntry((Q + n), toBase58String(S)), StringEntry(((("data_fc_" + toBase58String(S)) + "_") + I), C), IntegerEntry(("credits_" + toBase58String(f)), (W - 1)), ScriptTransfer(addressFromStringValue(d), K, J.assetId)]
172172 }
173173 }
174174
175175
176176
177177 @Callable(O)
178178 func revokeCertification (X,R) = {
179179 let S = value(O.transactionId)
180180 let I = toBase58String(O.caller.bytes)
181181 let T = {
182182 let o = getString(this, ((("data_fc_" + X) + "_") + I))
183183 if ($isInstanceOf(o, "String"))
184184 then {
185185 let p = o
186186 p
187187 }
188188 else "NONE"
189189 }
190190 let Y = {
191191 let o = getString(this, ("STATUS_FC_" + X))
192192 if ($isInstanceOf(o, "String"))
193193 then {
194194 let p = o
195195 p
196196 }
197197 else "NONE"
198198 }
199199 let Z = (((dropRight(T, 1) + ",\"status\":\"REVOKED_") + toBase58String(S)) + "\"}")
200200 if ((Y != "NONE"))
201201 then throw("This certification have already been revoked.")
202202 else if ((T == "NONE"))
203203 then throw("You cannot change the status of this certification.")
204204 else {
205205 let J = value(O.payments[0])
206206 let K = value(J.amount)
207207 let L = if (isDefined(J.assetId))
208208 then value(J.assetId)
209209 else throw("Waves is not accepted as payment")
210210 let V = getIntegerValue(this, ("certification_fee_" + toBase58String(value(L))))
211211 let W = getIntegerValue(this, ("credits_" + toBase58String(f)))
212212 if ((0 >= W))
213213 then throw("Not enough credit on the dapp, please refill")
214214 else if ((f != L))
215215 then throw("This token is not accepted at the moment")
216216 else if ((K != V))
217217 then throw("The price is wrong")
218218 else [StringEntry(("STATUS_FC_" + X), ("REVOKED_" + toBase58String(S))), StringEntry(((("data_fc_" + X) + "_") + I), Z), IntegerEntry(("credits_" + toBase58String(f)), (W - 1)), ScriptTransfer(addressFromStringValue(d), K, J.assetId)]
219219 }
220220 }
221221
222222
223223
224224 @Callable(G)
225225 func deleteEntry (aa) = {
226226 let ab = toString(addressFromPublicKey(G.callerPublicKey))
227227 if ((ab == b))
228228 then [DeleteEntry(aa)]
229229 else throw("no")
230230 }
231231
232232

github/deemru/w8io/026f985 
32.00 ms