tx · 8bHGCJXzxAMtsgVSdvenVNU3SHJv6NZHTLSbigHsZig6

3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h:  -0.01400000 Waves

2021.09.29 08:45 [1723832] smart account 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h > SELF 0.00000000 Waves

{ "type": 13, "id": "8bHGCJXzxAMtsgVSdvenVNU3SHJv6NZHTLSbigHsZig6", "fee": 1400000, "feeAssetId": null, "timestamp": 1632894336167, "version": 2, "chainId": 84, "sender": "3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h", "senderPublicKey": "CU8dJ2mJQjVBWaDHwXjPztuVdy9XAyAnTuqSCKuNPARn", "proofs": [ "zhHWyD4aGZhdaSpaqjYoL1p7tBEHWZnFtRRNCbnWLphaNHjURBP9RvY6GjhF8ZezmyN8C9VLXcDDijpht5Sr9uh" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEBEgASBwoFCAgICAgSBAoCCAgSAwoBCAAAABQAAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAJc2lnbkFkbWluAgAAACMzTjF3UGdIRnRlem1SVkJhcW9valA4WEp3VGthcms0aGJpZgAAAAAIZmVlQWRtaW4CAAAAIzNOMXdQZ0hGdGV6bVJWQmFxb29qUDhYSndUa2FyazRoYmlmAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAJc2lnblRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAANYWNjZXB0ZWRUb2tlbgEAAAAgYfHkwqhFFD81I1SLw0GO/ozjwqWx6THXqSKcOOhu9fcAAAAAD2FjY2VwdGVkRGVjaW1hbAAAAAAABfXhAAAAAAAGdXNkbklEAgAAACwzS0ZYQkdHTENqQT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WNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAJc2lnbkFkbWluCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAADfNBFg==", "height": 1723832, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CQZKyPQQLi9xTV1sQPqeoHdXzEA6af74zetaaFpTkrKR Next: 3mVYjS5x9Rvuzzpe37CSv4kGqZXj5UQFiZk1E9ej18WB Diff:
OldNewDifferences
117117 then throw("Accept SIGN token only")
118118 else {
119119 let currentSIGNPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId))))
120- if (true)
121- then throw(("Uy! " + toString((currentSIGNPrice / acceptedDecimal))))
122- else {
123- let numCredit = ((currentSIGNPrice / acceptedDecimal) / amount)
124- if ((0 >= numCredit))
125- then throw("Not enough for at least 1 credit")
126- else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)]
127- }
120+ let numCredit = ((currentSIGNPrice / acceptedDecimal) / amount)
121+ if ((0 >= numCredit))
122+ then throw("Not enough for at least 1 credit")
123+ else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)]
128124 }
129125 }
130126
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 acceptedDecimal = 100000000
1717
1818 let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
1919
2020 let signDapp = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
2121
2222 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
2323
2424
2525 func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) {
2626 case a: String =>
2727 a
2828 case _ =>
2929 "NONE"
3030 }
3131
3232
3333 func checkEntryEmail (uuid,domain) = match getString(this, ((uuid + "@") + domain)) {
3434 case a: String =>
3535 a
3636 case _ =>
3737 "NONE"
3838 }
3939
4040
4141 func checkUUID (uuid) = match getString(this, uuid) {
4242 case a: String =>
4343 a
4444 case _ =>
4545 "NONE"
4646 }
4747
4848
4949 func isAdress (addr) = if (if (if ((size(addr) == 35))
5050 then (take(addr, 2) == "3P")
5151 else false)
5252 then true
5353 else (take(addr, 2) == "3N"))
5454 then true
5555 else (take(addr, 2) == "3M")
5656
5757
5858 func countParties (accumulator,addr) = if ((size(addr) > 0))
5959 then (accumulator + 1)
6060 else (accumulator + 0)
6161
6262
6363 func checkIfPendingToSign (key) = match getString(this, key) {
6464 case a: String =>
6565 if ((a == "PENDING"))
6666 then true
6767 else false
6868 case _ =>
6969 false
7070 }
7171
7272
7373 func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\"")))
7474
7575
7676 func getValue (json,key) = {
7777 let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
7878 let data = drop(json, ((keyIndex + size(key)) + 3))
7979 let jsonValue = getValueString(data)
8080 jsonValue
8181 }
8282
8383
8484 func getJsonBeforeValue (json,key) = {
8585 let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
8686 let data = take(json, ((keyIndex + size(key)) + 3))
8787 data
8888 }
8989
9090
9191 func getJsonAfterValue (json,key) = {
9292 let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
9393 let data = takeRight(json, (size(json) - ((((keyIndex + size(key)) + 3) + 0) + 2)))
9494 data
9595 }
9696
9797
9898 @Callable(i)
9999 func setFee (fee) = {
100100 let callerAddress = toBase58String(i.caller.bytes)
101101 if ((callerAddress == feeAdmin))
102102 then [IntegerEntry(("certification_fee_" + toBase58String(acceptedToken)), fee)]
103103 else throw("You are not allowed to change fee")
104104 }
105105
106106
107107
108108 @Callable(i)
109109 func refillCredits () = {
110110 let callerAddress = toBase58String(i.caller.bytes)
111111 let payment = value(i.payments[0])
112112 let amount = value(payment.amount)
113113 let paymentAssetId = if (isDefined(payment.assetId))
114114 then value(payment.assetId)
115115 else throw("Accept SIGN token only")
116116 if ((signToken != paymentAssetId))
117117 then throw("Accept SIGN token only")
118118 else {
119119 let currentSIGNPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId))))
120- if (true)
121- then throw(("Uy! " + toString((currentSIGNPrice / acceptedDecimal))))
122- else {
123- let numCredit = ((currentSIGNPrice / acceptedDecimal) / amount)
124- if ((0 >= numCredit))
125- then throw("Not enough for at least 1 credit")
126- else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)]
127- }
120+ let numCredit = ((currentSIGNPrice / acceptedDecimal) / amount)
121+ if ((0 >= numCredit))
122+ then throw("Not enough for at least 1 credit")
123+ else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)]
128124 }
129125 }
130126
131127
132128
133129 @Callable(invoke)
134130 func fileCertification (hash,title,uuid,data,signerPubKey) = {
135131 let id = value(invoke.transactionId)
136132 let entryExist = checkEntry(hash, uuid)
137133 let uuidExist = checkUUID(uuid)
138134 let callerAddress = toBase58String(invoke.caller.bytes)
139135 if ((entryExist != "NONE"))
140136 then throw("This entry already exist")
141137 else if ((uuidExist != "NONE"))
142138 then throw("This uuid already exist")
143139 else if ((size(uuid) != 36))
144140 then throw("Uuid should be 36 characters.")
145141 else if ((size(hash) != 64))
146142 then throw("Hash should be 64 characters.")
147143 else if ((size(title) > 150))
148144 then throw("Title is too long, 150 characters max.")
149145 else {
150146 let payment = value(invoke.payments[0])
151147 let amount = value(payment.amount)
152148 let paymentAssetId = if (isDefined(payment.assetId))
153149 then value(payment.assetId)
154150 else throw("Waves is not accepted as payment")
155151 let currentPrice = getIntegerValue(this, ("certification_fee_" + toBase58String(value(paymentAssetId))))
156152 let dappCredits = getIntegerByKey(("credits_" + toBase58String(acceptedToken)))
157153 if ((0 >= dappCredits))
158154 then throw("Not enough credit on the dapp, please refill")
159155 else if ((acceptedToken != paymentAssetId))
160156 then throw("This token is not accepted at the moment")
161157 else if ((amount != currentPrice))
162158 then throw("The price is wrong")
163159 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)]
164160 }
165161 }
166162
167163
168164
169165 @Callable(invoke)
170166 func revokeCertification (certificationId,signerPubKey) = {
171167 let id = value(invoke.transactionId)
172168 let callerAddress = toBase58String(invoke.caller.bytes)
173169 let entryExist = match getString(this, ((("data_fc_" + certificationId) + "_") + callerAddress)) {
174170 case a: String =>
175171 a
176172 case _ =>
177173 "NONE"
178174 }
179175 let isRevoked = match getString(this, ("STATUS_FC_" + certificationId)) {
180176 case a: String =>
181177 a
182178 case _ =>
183179 "NONE"
184180 }
185181 let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + toBase58String(id)) + "\"}")
186182 if ((isRevoked != "NONE"))
187183 then throw("This certification have already been revoked.")
188184 else if ((entryExist == "NONE"))
189185 then throw("You cannot change the status of this certification.")
190186 else {
191187 let payment = value(invoke.payments[0])
192188 let amount = value(payment.amount)
193189 let paymentAssetId = if (isDefined(payment.assetId))
194190 then value(payment.assetId)
195191 else throw("Waves is not accepted as payment")
196192 let currentPrice = getIntegerValue(this, ("certification_fee_" + toBase58String(value(paymentAssetId))))
197193 let dappCredits = getIntegerValue(this, ("credits_" + toBase58String(acceptedToken)))
198194 if ((0 >= dappCredits))
199195 then throw("Not enough credit on the dapp, please refill")
200196 else if ((acceptedToken != paymentAssetId))
201197 then throw("This token is not accepted at the moment")
202198 else if ((amount != currentPrice))
203199 then throw("The price is wrong")
204200 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)]
205201 }
206202 }
207203
208204
209205
210206 @Callable(i)
211207 func deleteEntry (entry) = {
212208 let caller = toString(addressFromPublicKey(i.callerPublicKey))
213209 if ((caller == signAdmin))
214210 then [DeleteEntry(entry)]
215211 else throw("no")
216212 }
217213
218214

github/deemru/w8io/026f985 
28.78 ms