tx · CQZKyPQQLi9xTV1sQPqeoHdXzEA6af74zetaaFpTkrKR 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h: -0.01400000 Waves 2021.09.29 08:45 [1723832] smart account 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h > SELF 0.00000000 Waves
{ "type": 13, "id": "CQZKyPQQLi9xTV1sQPqeoHdXzEA6af74zetaaFpTkrKR", "fee": 1400000, "feeAssetId": null, "timestamp": 1632894312939, "version": 2, "chainId": 84, "sender": "3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h", "senderPublicKey": "CU8dJ2mJQjVBWaDHwXjPztuVdy9XAyAnTuqSCKuNPARn", "proofs": [ "4jg6Gpp5JtEx1KvsfX6ANqFfvjmMHYEgimi6UbRfgJh8wPoP2NCUjZMRM3WwimyRszWTvobyDhk4rZEyRac9GAZG" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEBEgASBwoFCAgICAgSBAoCCAgSAwoBCAAAABQAAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAJc2lnbkFkbWluAgAAACMzTjF3UGdIRnRlem1SVkJhcW9valA4WEp3VGthcms0aGJpZgAAAAAIZmVlQWRtaW4CAAAAIzNOMXdQZ0hGdGV6bVJWQmFxb29qUDhYSndUa2FyazRoYmlmAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAJc2lnblRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAANYWNjZXB0ZWRUb2tlbgEAAAAgYfHkwqhFFD81I1SLw0GO/ozjwqWx6THXqSKcOOhu9fcAAAAAD2FjY2VwdGVkRGVjaW1hbAAAAAAABfXhAAAAAAAGdXNkbklEAgAAACwzS0ZYQkdHTENqQTVa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EAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAJc2lnbkFkbWluCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAA0qCFrw==", "height": 1723832, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FM7oQEjeePCqXvW5bg3bghixggux158zh2WdCWfeHLX Next: 8bHGCJXzxAMtsgVSdvenVNU3SHJv6NZHTLSbigHsZig6 Diff:
Old | New | Differences | |
---|---|---|---|
12 | 12 | let signToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
13 | 13 | ||
14 | 14 | let acceptedToken = base58'7bLUm2XNLWvVwgC9aPp9fNNAMVtbGwhwkqdgomJAgVbC' | |
15 | + | ||
16 | + | let acceptedDecimal = 100000000 | |
15 | 17 | ||
16 | 18 | let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
17 | 19 | ||
116 | 118 | else { | |
117 | 119 | let currentSIGNPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
118 | 120 | if (true) | |
119 | - | then throw(("Uy! " + toString((currentSIGNPrice / | |
121 | + | then throw(("Uy! " + toString((currentSIGNPrice / acceptedDecimal)))) | |
120 | 122 | else { | |
121 | - | let numCredit = ((currentSIGNPrice / | |
123 | + | let numCredit = ((currentSIGNPrice / acceptedDecimal) / amount) | |
122 | 124 | if ((0 >= numCredit)) | |
123 | 125 | then throw("Not enough for at least 1 credit") | |
124 | 126 | else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let signAdmin = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif" | |
7 | 7 | ||
8 | 8 | let feeAdmin = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif" | |
9 | 9 | ||
10 | 10 | let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
11 | 11 | ||
12 | 12 | let signToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
13 | 13 | ||
14 | 14 | let acceptedToken = base58'7bLUm2XNLWvVwgC9aPp9fNNAMVtbGwhwkqdgomJAgVbC' | |
15 | + | ||
16 | + | let acceptedDecimal = 100000000 | |
15 | 17 | ||
16 | 18 | let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
17 | 19 | ||
18 | 20 | let signDapp = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
19 | 21 | ||
20 | 22 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
21 | 23 | ||
22 | 24 | ||
23 | 25 | func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) { | |
24 | 26 | case a: String => | |
25 | 27 | a | |
26 | 28 | case _ => | |
27 | 29 | "NONE" | |
28 | 30 | } | |
29 | 31 | ||
30 | 32 | ||
31 | 33 | func checkEntryEmail (uuid,domain) = match getString(this, ((uuid + "@") + domain)) { | |
32 | 34 | case a: String => | |
33 | 35 | a | |
34 | 36 | case _ => | |
35 | 37 | "NONE" | |
36 | 38 | } | |
37 | 39 | ||
38 | 40 | ||
39 | 41 | func checkUUID (uuid) = match getString(this, uuid) { | |
40 | 42 | case a: String => | |
41 | 43 | a | |
42 | 44 | case _ => | |
43 | 45 | "NONE" | |
44 | 46 | } | |
45 | 47 | ||
46 | 48 | ||
47 | 49 | func isAdress (addr) = if (if (if ((size(addr) == 35)) | |
48 | 50 | then (take(addr, 2) == "3P") | |
49 | 51 | else false) | |
50 | 52 | then true | |
51 | 53 | else (take(addr, 2) == "3N")) | |
52 | 54 | then true | |
53 | 55 | else (take(addr, 2) == "3M") | |
54 | 56 | ||
55 | 57 | ||
56 | 58 | func countParties (accumulator,addr) = if ((size(addr) > 0)) | |
57 | 59 | then (accumulator + 1) | |
58 | 60 | else (accumulator + 0) | |
59 | 61 | ||
60 | 62 | ||
61 | 63 | func checkIfPendingToSign (key) = match getString(this, key) { | |
62 | 64 | case a: String => | |
63 | 65 | if ((a == "PENDING")) | |
64 | 66 | then true | |
65 | 67 | else false | |
66 | 68 | case _ => | |
67 | 69 | false | |
68 | 70 | } | |
69 | 71 | ||
70 | 72 | ||
71 | 73 | func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\""))) | |
72 | 74 | ||
73 | 75 | ||
74 | 76 | func getValue (json,key) = { | |
75 | 77 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
76 | 78 | let data = drop(json, ((keyIndex + size(key)) + 3)) | |
77 | 79 | let jsonValue = getValueString(data) | |
78 | 80 | jsonValue | |
79 | 81 | } | |
80 | 82 | ||
81 | 83 | ||
82 | 84 | func getJsonBeforeValue (json,key) = { | |
83 | 85 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
84 | 86 | let data = take(json, ((keyIndex + size(key)) + 3)) | |
85 | 87 | data | |
86 | 88 | } | |
87 | 89 | ||
88 | 90 | ||
89 | 91 | func getJsonAfterValue (json,key) = { | |
90 | 92 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
91 | 93 | let data = takeRight(json, (size(json) - ((((keyIndex + size(key)) + 3) + 0) + 2))) | |
92 | 94 | data | |
93 | 95 | } | |
94 | 96 | ||
95 | 97 | ||
96 | 98 | @Callable(i) | |
97 | 99 | func setFee (fee) = { | |
98 | 100 | let callerAddress = toBase58String(i.caller.bytes) | |
99 | 101 | if ((callerAddress == feeAdmin)) | |
100 | 102 | then [IntegerEntry(("certification_fee_" + toBase58String(acceptedToken)), fee)] | |
101 | 103 | else throw("You are not allowed to change fee") | |
102 | 104 | } | |
103 | 105 | ||
104 | 106 | ||
105 | 107 | ||
106 | 108 | @Callable(i) | |
107 | 109 | func refillCredits () = { | |
108 | 110 | let callerAddress = toBase58String(i.caller.bytes) | |
109 | 111 | let payment = value(i.payments[0]) | |
110 | 112 | let amount = value(payment.amount) | |
111 | 113 | let paymentAssetId = if (isDefined(payment.assetId)) | |
112 | 114 | then value(payment.assetId) | |
113 | 115 | else throw("Accept SIGN token only") | |
114 | 116 | if ((signToken != paymentAssetId)) | |
115 | 117 | then throw("Accept SIGN token only") | |
116 | 118 | else { | |
117 | 119 | let currentSIGNPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
118 | 120 | if (true) | |
119 | - | then throw(("Uy! " + toString((currentSIGNPrice / | |
121 | + | then throw(("Uy! " + toString((currentSIGNPrice / acceptedDecimal)))) | |
120 | 122 | else { | |
121 | - | let numCredit = ((currentSIGNPrice / | |
123 | + | let numCredit = ((currentSIGNPrice / acceptedDecimal) / amount) | |
122 | 124 | if ((0 >= numCredit)) | |
123 | 125 | then throw("Not enough for at least 1 credit") | |
124 | 126 | else [IntegerEntry(("credits_" + toBase58String(acceptedToken)), numCredit), ScriptTransfer(addressFromStringValue(signDapp), amount, payment.assetId)] | |
125 | 127 | } | |
126 | 128 | } | |
127 | 129 | } | |
128 | 130 | ||
129 | 131 | ||
130 | 132 | ||
131 | 133 | @Callable(invoke) | |
132 | 134 | func fileCertification (hash,title,uuid,data,signerPubKey) = { | |
133 | 135 | let id = value(invoke.transactionId) | |
134 | 136 | let entryExist = checkEntry(hash, uuid) | |
135 | 137 | let uuidExist = checkUUID(uuid) | |
136 | 138 | let callerAddress = toBase58String(invoke.caller.bytes) | |
137 | 139 | if ((entryExist != "NONE")) | |
138 | 140 | then throw("This entry already exist") | |
139 | 141 | else if ((uuidExist != "NONE")) | |
140 | 142 | then throw("This uuid already exist") | |
141 | 143 | else if ((size(uuid) != 36)) | |
142 | 144 | then throw("Uuid should be 36 characters.") | |
143 | 145 | else if ((size(hash) != 64)) | |
144 | 146 | then throw("Hash should be 64 characters.") | |
145 | 147 | else if ((size(title) > 150)) | |
146 | 148 | then throw("Title is too long, 150 characters max.") | |
147 | 149 | else { | |
148 | 150 | let payment = value(invoke.payments[0]) | |
149 | 151 | let amount = value(payment.amount) | |
150 | 152 | let paymentAssetId = if (isDefined(payment.assetId)) | |
151 | 153 | then value(payment.assetId) | |
152 | 154 | else throw("Waves is not accepted as payment") | |
153 | 155 | let currentPrice = getIntegerValue(this, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
154 | 156 | let dappCredits = getIntegerByKey(("credits_" + toBase58String(acceptedToken))) | |
155 | 157 | if ((0 >= dappCredits)) | |
156 | 158 | then throw("Not enough credit on the dapp, please refill") | |
157 | 159 | else if ((acceptedToken != paymentAssetId)) | |
158 | 160 | then throw("This token is not accepted at the moment") | |
159 | 161 | else if ((amount != currentPrice)) | |
160 | 162 | then throw("The price is wrong") | |
161 | 163 | 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)] | |
162 | 164 | } | |
163 | 165 | } | |
164 | 166 | ||
165 | 167 | ||
166 | 168 | ||
167 | 169 | @Callable(invoke) | |
168 | 170 | func revokeCertification (certificationId,signerPubKey) = { | |
169 | 171 | let id = value(invoke.transactionId) | |
170 | 172 | let callerAddress = toBase58String(invoke.caller.bytes) | |
171 | 173 | let entryExist = match getString(this, ((("data_fc_" + certificationId) + "_") + callerAddress)) { | |
172 | 174 | case a: String => | |
173 | 175 | a | |
174 | 176 | case _ => | |
175 | 177 | "NONE" | |
176 | 178 | } | |
177 | 179 | let isRevoked = match getString(this, ("STATUS_FC_" + certificationId)) { | |
178 | 180 | case a: String => | |
179 | 181 | a | |
180 | 182 | case _ => | |
181 | 183 | "NONE" | |
182 | 184 | } | |
183 | 185 | let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + toBase58String(id)) + "\"}") | |
184 | 186 | if ((isRevoked != "NONE")) | |
185 | 187 | then throw("This certification have already been revoked.") | |
186 | 188 | else if ((entryExist == "NONE")) | |
187 | 189 | then throw("You cannot change the status of this certification.") | |
188 | 190 | else { | |
189 | 191 | let payment = value(invoke.payments[0]) | |
190 | 192 | let amount = value(payment.amount) | |
191 | 193 | let paymentAssetId = if (isDefined(payment.assetId)) | |
192 | 194 | then value(payment.assetId) | |
193 | 195 | else throw("Waves is not accepted as payment") | |
194 | 196 | let currentPrice = getIntegerValue(this, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
195 | 197 | let dappCredits = getIntegerValue(this, ("credits_" + toBase58String(acceptedToken))) | |
196 | 198 | if ((0 >= dappCredits)) | |
197 | 199 | then throw("Not enough credit on the dapp, please refill") | |
198 | 200 | else if ((acceptedToken != paymentAssetId)) | |
199 | 201 | then throw("This token is not accepted at the moment") | |
200 | 202 | else if ((amount != currentPrice)) | |
201 | 203 | then throw("The price is wrong") | |
202 | 204 | 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)] | |
203 | 205 | } | |
204 | 206 | } | |
205 | 207 | ||
206 | 208 | ||
207 | 209 | ||
208 | 210 | @Callable(i) | |
209 | 211 | func deleteEntry (entry) = { | |
210 | 212 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
211 | 213 | if ((caller == signAdmin)) | |
212 | 214 | then [DeleteEntry(entry)] | |
213 | 215 | else throw("no") | |
214 | 216 | } | |
215 | 217 | ||
216 | 218 |
github/deemru/w8io/026f985 48.45 ms ◑