tx · FM7oQEjeePCqXvW5bg3bghixggux158zh2WdCWfeHLX

3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h:  -0.01400000 Waves

2021.09.29 08:42 [1723829] smart account 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h > SELF 0.00000000 Waves

{ "type": 13, "id": "FM7oQEjeePCqXvW5bg3bghixggux158zh2WdCWfeHLX", "fee": 1400000, "feeAssetId": null, "timestamp": 1632894224244, "version": 2, "chainId": 84, "sender": "3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h", "senderPublicKey": "CU8dJ2mJQjVBWaDHwXjPztuVdy9XAyAnTuqSCKuNPARn", "proofs": [ "gmYcuuCgyNvjJj6qX87sCcvJVEcgAXwPf6ZajkZJxzqJVvn5HaEwGMxFK6PaBynm7mCNVHVrsV9We39q2NzeZrs" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEBEgASBwoFCAgICAgSBAoCCAgSAwoBCAAAABMAAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAJc2lnbkFkbWluAgAAACMzTjF3UGdIRnRlem1SVkJhcW9valA4WEp3VGthcms0aGJpZgAAAAAIZmVlQWRtaW4CAAAAIzNOMXdQZ0hGdGV6bVJWQmFxb29qUDhYSndUa2FyazRoYmlmAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAJc2lnblRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAANYWNjZXB0ZWRUb2tlbgEAAAAgYfHkwqhFFD81I1SLw0GO/ozjwqWx6THXqSKcOOhu9fcAAAAABnVzZG5JRAIAAAAsM0tGWEJHR0xDakE1WjJEdVc0RHE5ZkREckhqSkpQMVpFa2FvYWpTenVLc0MAAAAACHNp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WxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAJc2lnbkFkbWluCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAAt7AyJQ==", "height": 1723829, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Atw1mY2PkAnrYuQrUPX2XobfSXsRpW5qVtrGGxRfNHdj Next: CQZKyPQQLi9xTV1sQPqeoHdXzEA6af74zetaaFpTkrKR Diff:
OldNewDifferences
116116 else {
117117 let currentSIGNPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId))))
118118 if (true)
119- then throw(("Uy! " + toString((amount * 100000000))))
119+ then throw(("Uy! " + toString((currentSIGNPrice / 100000000))))
120120 else {
121- let numCredit = (currentSIGNPrice / (amount * 100000000))
121+ let numCredit = ((currentSIGNPrice / 100000000) / amount)
122122 if ((0 >= numCredit))
123123 then throw("Not enough for at least 1 credit")
124124 else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let signAdmin = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif"
77
88 let feeAdmin = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif"
99
1010 let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1111
1212 let signToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1313
1414 let acceptedToken = base58'7bLUm2XNLWvVwgC9aPp9fNNAMVtbGwhwkqdgomJAgVbC'
1515
1616 let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
1717
1818 let signDapp = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1919
2020 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
2121
2222
2323 func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) {
2424 case a: String =>
2525 a
2626 case _ =>
2727 "NONE"
2828 }
2929
3030
3131 func checkEntryEmail (uuid,domain) = match getString(this, ((uuid + "@") + domain)) {
3232 case a: String =>
3333 a
3434 case _ =>
3535 "NONE"
3636 }
3737
3838
3939 func checkUUID (uuid) = match getString(this, uuid) {
4040 case a: String =>
4141 a
4242 case _ =>
4343 "NONE"
4444 }
4545
4646
4747 func isAdress (addr) = if (if (if ((size(addr) == 35))
4848 then (take(addr, 2) == "3P")
4949 else false)
5050 then true
5151 else (take(addr, 2) == "3N"))
5252 then true
5353 else (take(addr, 2) == "3M")
5454
5555
5656 func countParties (accumulator,addr) = if ((size(addr) > 0))
5757 then (accumulator + 1)
5858 else (accumulator + 0)
5959
6060
6161 func checkIfPendingToSign (key) = match getString(this, key) {
6262 case a: String =>
6363 if ((a == "PENDING"))
6464 then true
6565 else false
6666 case _ =>
6767 false
6868 }
6969
7070
7171 func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\"")))
7272
7373
7474 func getValue (json,key) = {
7575 let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
7676 let data = drop(json, ((keyIndex + size(key)) + 3))
7777 let jsonValue = getValueString(data)
7878 jsonValue
7979 }
8080
8181
8282 func getJsonBeforeValue (json,key) = {
8383 let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
8484 let data = take(json, ((keyIndex + size(key)) + 3))
8585 data
8686 }
8787
8888
8989 func getJsonAfterValue (json,key) = {
9090 let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
9191 let data = takeRight(json, (size(json) - ((((keyIndex + size(key)) + 3) + 0) + 2)))
9292 data
9393 }
9494
9595
9696 @Callable(i)
9797 func setFee (fee) = {
9898 let callerAddress = toBase58String(i.caller.bytes)
9999 if ((callerAddress == feeAdmin))
100100 then [IntegerEntry(("certification_fee_" + toBase58String(acceptedToken)), fee)]
101101 else throw("You are not allowed to change fee")
102102 }
103103
104104
105105
106106 @Callable(i)
107107 func refillCredits () = {
108108 let callerAddress = toBase58String(i.caller.bytes)
109109 let payment = value(i.payments[0])
110110 let amount = value(payment.amount)
111111 let paymentAssetId = if (isDefined(payment.assetId))
112112 then value(payment.assetId)
113113 else throw("Accept SIGN token only")
114114 if ((signToken != paymentAssetId))
115115 then throw("Accept SIGN token only")
116116 else {
117117 let currentSIGNPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId))))
118118 if (true)
119- then throw(("Uy! " + toString((amount * 100000000))))
119+ then throw(("Uy! " + toString((currentSIGNPrice / 100000000))))
120120 else {
121- let numCredit = (currentSIGNPrice / (amount * 100000000))
121+ let numCredit = ((currentSIGNPrice / 100000000) / amount)
122122 if ((0 >= numCredit))
123123 then throw("Not enough for at least 1 credit")
124124 else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)]
125125 }
126126 }
127127 }
128128
129129
130130
131131 @Callable(invoke)
132132 func fileCertification (hash,title,uuid,data,signerPubKey) = {
133133 let id = value(invoke.transactionId)
134134 let entryExist = checkEntry(hash, uuid)
135135 let uuidExist = checkUUID(uuid)
136136 let callerAddress = toBase58String(invoke.caller.bytes)
137137 if ((entryExist != "NONE"))
138138 then throw("This entry already exist")
139139 else if ((uuidExist != "NONE"))
140140 then throw("This uuid already exist")
141141 else if ((size(uuid) != 36))
142142 then throw("Uuid should be 36 characters.")
143143 else if ((size(hash) != 64))
144144 then throw("Hash should be 64 characters.")
145145 else if ((size(title) > 150))
146146 then throw("Title is too long, 150 characters max.")
147147 else {
148148 let payment = value(invoke.payments[0])
149149 let amount = value(payment.amount)
150150 let paymentAssetId = if (isDefined(payment.assetId))
151151 then value(payment.assetId)
152152 else throw("Waves is not accepted as payment")
153153 let currentPrice = getIntegerValue(this, ("certification_fee_" + toBase58String(value(paymentAssetId))))
154154 let dappCredits = getIntegerByKey(("credits_" + toBase58String(acceptedToken)))
155155 if ((0 >= dappCredits))
156156 then throw("Not enough credit on the dapp, please refill")
157157 else if ((acceptedToken != paymentAssetId))
158158 then throw("This token is not accepted at the moment")
159159 else if ((amount != currentPrice))
160160 then throw("The price is wrong")
161161 else [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), IntegerEntry(("credits_" + toBase58String(acceptedToken)), (dappCredits - 1)), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)]
162162 }
163163 }
164164
165165
166166
167167 @Callable(invoke)
168168 func revokeCertification (certificationId,signerPubKey) = {
169169 let id = value(invoke.transactionId)
170170 let callerAddress = toBase58String(invoke.caller.bytes)
171171 let entryExist = match getString(this, ((("data_fc_" + certificationId) + "_") + callerAddress)) {
172172 case a: String =>
173173 a
174174 case _ =>
175175 "NONE"
176176 }
177177 let isRevoked = match getString(this, ("STATUS_FC_" + certificationId)) {
178178 case a: String =>
179179 a
180180 case _ =>
181181 "NONE"
182182 }
183183 let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + toBase58String(id)) + "\"}")
184184 if ((isRevoked != "NONE"))
185185 then throw("This certification have already been revoked.")
186186 else if ((entryExist == "NONE"))
187187 then throw("You cannot change the status of this certification.")
188188 else {
189189 let payment = value(invoke.payments[0])
190190 let amount = value(payment.amount)
191191 let paymentAssetId = if (isDefined(payment.assetId))
192192 then value(payment.assetId)
193193 else throw("Waves is not accepted as payment")
194194 let currentPrice = getIntegerValue(this, ("certification_fee_" + toBase58String(value(paymentAssetId))))
195195 let dappCredits = getIntegerValue(this, ("credits_" + toBase58String(acceptedToken)))
196196 if ((0 >= dappCredits))
197197 then throw("Not enough credit on the dapp, please refill")
198198 else if ((acceptedToken != paymentAssetId))
199199 then throw("This token is not accepted at the moment")
200200 else if ((amount != currentPrice))
201201 then throw("The price is wrong")
202202 else [StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson), IntegerEntry(("credits_" + toBase58String(acceptedToken)), (dappCredits - 1)), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)]
203203 }
204204 }
205205
206206
207207
208208 @Callable(i)
209209 func deleteEntry (entry) = {
210210 let caller = toString(addressFromPublicKey(i.callerPublicKey))
211211 if ((caller == signAdmin))
212212 then [DeleteEntry(entry)]
213213 else throw("no")
214214 }
215215
216216

github/deemru/w8io/026f985 
45.31 ms