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
117117 then throw("Accept SIGN token only")
118118 else {
119119 let currentSIGNPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId))))
120- let numCredit = ((currentSIGNPrice / acceptedDecimal) / amount)
120+ let numCredit = (amount / (currentSIGNPrice / acceptedDecimal))
121121 if ((0 >= numCredit))
122122 then throw("Not enough for at least 1 credit")
123123 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 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- let numCredit = ((currentSIGNPrice / acceptedDecimal) / amount)
120+ let numCredit = (amount / (currentSIGNPrice / acceptedDecimal))
121121 if ((0 >= numCredit))
122122 then throw("Not enough for at least 1 credit")
123123 else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)]
124124 }
125125 }
126126
127127
128128
129129 @Callable(invoke)
130130 func fileCertification (hash,title,uuid,data,signerPubKey) = {
131131 let id = value(invoke.transactionId)
132132 let entryExist = checkEntry(hash, uuid)
133133 let uuidExist = checkUUID(uuid)
134134 let callerAddress = toBase58String(invoke.caller.bytes)
135135 if ((entryExist != "NONE"))
136136 then throw("This entry already exist")
137137 else if ((uuidExist != "NONE"))
138138 then throw("This uuid already exist")
139139 else if ((size(uuid) != 36))
140140 then throw("Uuid should be 36 characters.")
141141 else if ((size(hash) != 64))
142142 then throw("Hash should be 64 characters.")
143143 else if ((size(title) > 150))
144144 then throw("Title is too long, 150 characters max.")
145145 else {
146146 let payment = value(invoke.payments[0])
147147 let amount = value(payment.amount)
148148 let paymentAssetId = if (isDefined(payment.assetId))
149149 then value(payment.assetId)
150150 else throw("Waves is not accepted as payment")
151151 let currentPrice = getIntegerValue(this, ("certification_fee_" + toBase58String(value(paymentAssetId))))
152152 let dappCredits = getIntegerByKey(("credits_" + toBase58String(acceptedToken)))
153153 if ((0 >= dappCredits))
154154 then throw("Not enough credit on the dapp, please refill")
155155 else if ((acceptedToken != paymentAssetId))
156156 then throw("This token is not accepted at the moment")
157157 else if ((amount != currentPrice))
158158 then throw("The price is wrong")
159159 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)]
160160 }
161161 }
162162
163163
164164
165165 @Callable(invoke)
166166 func revokeCertification (certificationId,signerPubKey) = {
167167 let id = value(invoke.transactionId)
168168 let callerAddress = toBase58String(invoke.caller.bytes)
169169 let entryExist = match getString(this, ((("data_fc_" + certificationId) + "_") + callerAddress)) {
170170 case a: String =>
171171 a
172172 case _ =>
173173 "NONE"
174174 }
175175 let isRevoked = match getString(this, ("STATUS_FC_" + certificationId)) {
176176 case a: String =>
177177 a
178178 case _ =>
179179 "NONE"
180180 }
181181 let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + toBase58String(id)) + "\"}")
182182 if ((isRevoked != "NONE"))
183183 then throw("This certification have already been revoked.")
184184 else if ((entryExist == "NONE"))
185185 then throw("You cannot change the status of this certification.")
186186 else {
187187 let payment = value(invoke.payments[0])
188188 let amount = value(payment.amount)
189189 let paymentAssetId = if (isDefined(payment.assetId))
190190 then value(payment.assetId)
191191 else throw("Waves is not accepted as payment")
192192 let currentPrice = getIntegerValue(this, ("certification_fee_" + toBase58String(value(paymentAssetId))))
193193 let dappCredits = getIntegerValue(this, ("credits_" + toBase58String(acceptedToken)))
194194 if ((0 >= dappCredits))
195195 then throw("Not enough credit on the dapp, please refill")
196196 else if ((acceptedToken != paymentAssetId))
197197 then throw("This token is not accepted at the moment")
198198 else if ((amount != currentPrice))
199199 then throw("The price is wrong")
200200 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)]
201201 }
202202 }
203203
204204
205205
206206 @Callable(i)
207207 func deleteEntry (entry) = {
208208 let caller = toString(addressFromPublicKey(i.callerPublicKey))
209209 if ((caller == signAdmin))
210210 then [DeleteEntry(entry)]
211211 else throw("no")
212212 }
213213
214214

github/deemru/w8io/026f985 
36.40 ms