tx · BmqF9mAsUZ6NXinUWu9NRZm9TGkum9UHL6pQKUjuCmiD 3NAg879tKUJh949h21umkwiaRQhwZftz1BE: -1.00000000 Waves 2019.09.30 17:50 [699315] smart account 3NAg879tKUJh949h21umkwiaRQhwZftz1BE > SELF 0.00000000 Waves
{ "type": 13, "id": "BmqF9mAsUZ6NXinUWu9NRZm9TGkum9UHL6pQKUjuCmiD", "fee": 100000000, "feeAssetId": null, "timestamp": 1569855071214, "version": 1, "sender": "3NAg879tKUJh949h21umkwiaRQhwZftz1BE", "senderPublicKey": "BqY2jhkQCcbidtQdQZu6f9RV3AkFAS8VPToHxwYu1KdJ", "proofs": [ "rkDymy9oLLwXFa2X5qKkzhF9NmFDbV4puiooUrEkYgfQ3hfe3jdsyoeaDJFoHP9L4dsHeDFpAqtf2rjfGvmfde3" ], "script": "base64:AAIDAAAAAAAAAAAAAAAgAAAAABx0aWNrZXJDYXRhbG9ndWVPcmFjbGVBZGRyZXNzCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNNeEh4VzVWV3E0S3JXY2JoRmZ4S3JhZlhtNG1MNnJaSGZqAAAAABh0b2tlblJhdGluZ09yYWNsZUFkZHJlc3MJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05BRHFIb0xNYk1UZlhkUDJUZUJCU3g1bVFYZVBWajNLWm0AAAAAGW5vdFN1cHBvcnRlZEN1cnJlbmN5RXJyb3ICAAAAGzxub3RTdXBwb3J0ZWRDdXJyZW5jeUVycm9yPgAAAAAXaXNzdWVyQWNjZXNzRGVuaWVkRXJyb3ICAAAAGTxpc3N1ZXJBY2Nlc3NEZW5pZWRFcnJvcj4AAAAAFW5vdEVub3VnaFBheW1lbnRFcnJvcgIAAAAXPG5vdEVub3VnaFBheW1lbnRFcnJvcj4AAAAAJHRpY2tlclZhbGlkYXRpb25Ob3RFbm91Z2hSYXRpbmdFcnJvcgIAAAA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AAAAJ1eqw", "chainId": 84, "height": 699315, "spentComplexity": 0 } View: original | compacted Prev: 57doWTnCgpAQWtBvqTQDEhQMCBYXhGx9maxXkgA81Myy Next: 4S6fPjvpBc6biWiL5TY2MiSbbrf7NAxcWudm22ALdXgb Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | ||
26 | 26 | let wvs = 100000000 | |
27 | 27 | ||
28 | - | let tickerUpdatePrice = ( | |
28 | + | let tickerUpdatePrice = (5 * wvs) | |
29 | 29 | ||
30 | 30 | let linkUpdatePrice = 50000000 | |
31 | 31 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let tickerCatalogueOracleAddress = addressFromStringValue("3MxHxW5VWq4KrWcbhFfxKrafXm4mL6rZHfj") | |
5 | 5 | ||
6 | 6 | let tokenRatingOracleAddress = addressFromStringValue("3NADqHoLMbMTfXdP2TeBBSx5mQXePVj3KZm") | |
7 | 7 | ||
8 | 8 | let notSupportedCurrencyError = "<notSupportedCurrencyError>" | |
9 | 9 | ||
10 | 10 | let issuerAccessDeniedError = "<issuerAccessDeniedError>" | |
11 | 11 | ||
12 | 12 | let notEnoughPaymentError = "<notEnoughPaymentError>" | |
13 | 13 | ||
14 | 14 | let tickerValidationNotEnoughRatingError = "<tickerValidationNotEnoughRatingError>" | |
15 | 15 | ||
16 | 16 | let tickerValidationTickerIsExistError = "<tickerValidationTickerIsExistError>" | |
17 | 17 | ||
18 | 18 | let valueWrongFormatError = "<valueWrongFormatError>" | |
19 | 19 | ||
20 | 20 | let nonExistentAssetError = "<nonExistentAssetError>" | |
21 | 21 | ||
22 | 22 | let noPaymentError = "<noPaymentError>" | |
23 | 23 | ||
24 | 24 | let tickerIsImmutableError = "<tickerIsImmutableError>" | |
25 | 25 | ||
26 | 26 | let wvs = 100000000 | |
27 | 27 | ||
28 | - | let tickerUpdatePrice = ( | |
28 | + | let tickerUpdatePrice = (5 * wvs) | |
29 | 29 | ||
30 | 30 | let linkUpdatePrice = 50000000 | |
31 | 31 | ||
32 | 32 | let descriptionUpdatePrice = 50000000 | |
33 | 33 | ||
34 | 34 | let tickerMinLength = 1 | |
35 | 35 | ||
36 | 36 | let tickerMaxLength = 6 | |
37 | 37 | ||
38 | 38 | let tickerAllowedLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
39 | 39 | ||
40 | 40 | let reservedTickers = "BTC,ETH,XRP,BCH,LTC,BNB,USDT,EOS,BSV,XMR,XLM,LEO,ADA,TRX,DASH,LINK,XTZ,NEO,MIOTA,ETC,ATOM,XEM,MKR,CRO,USDC,ONT,VSYS,ZEC,DOGE,VET,DCR,HT,BAT,BTG,QTUM,HEDG,TUSD,PAX,EGT,OMG,ALGO,KCS,RVN,LSK,NANO,BTT,BCD,NRG,LAMB,HOT,BCN,DGB,REP,BTS,ZRX,XIN,AOA,IOST,ICX,NET,GNT,PPT,RHOC,SNT,AE,WTC,VERI,R,ZIL,BNT" | |
41 | 41 | ||
42 | 42 | func getIntegerFromAccount (accountAddress,key) = match getInteger(accountAddress, key) { | |
43 | 43 | case i: Int => | |
44 | 44 | i | |
45 | 45 | case _ => | |
46 | 46 | 0 | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func isSubstrExist (str,substr) = match indexOf(str, substr) { | |
51 | 51 | case index: Int => | |
52 | 52 | true | |
53 | 53 | case index: Unit => | |
54 | 54 | false | |
55 | 55 | case _ => | |
56 | 56 | throw() | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func isValidTicker (ticker) = { | |
61 | 61 | let tickerLetters = split(ticker, "") | |
62 | 62 | let tickerLength = size(tickerLetters) | |
63 | 63 | let isLetter1Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[0]) | |
64 | 64 | let isLetter2Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[1]) | |
65 | 65 | let isLetter3Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[2]) | |
66 | 66 | let isLetter4Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[3]) | |
67 | 67 | let isLetter5Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[4]) | |
68 | 68 | let isLetter6Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[5]) | |
69 | 69 | if ((ticker != "")) | |
70 | 70 | then if (if ((tickerLength >= tickerMinLength)) | |
71 | 71 | then (tickerMaxLength >= tickerLength) | |
72 | 72 | else false) | |
73 | 73 | then if ((1 == tickerLength)) | |
74 | 74 | then isLetter1Valid | |
75 | 75 | else if ((2 == tickerLength)) | |
76 | 76 | then if (isLetter1Valid) | |
77 | 77 | then isLetter2Valid | |
78 | 78 | else false | |
79 | 79 | else if ((3 == tickerLength)) | |
80 | 80 | then if (if (isLetter1Valid) | |
81 | 81 | then isLetter2Valid | |
82 | 82 | else false) | |
83 | 83 | then isLetter3Valid | |
84 | 84 | else false | |
85 | 85 | else if ((4 == tickerLength)) | |
86 | 86 | then if (if (if (isLetter1Valid) | |
87 | 87 | then isLetter2Valid | |
88 | 88 | else false) | |
89 | 89 | then isLetter3Valid | |
90 | 90 | else false) | |
91 | 91 | then isLetter4Valid | |
92 | 92 | else false | |
93 | 93 | else if ((5 == tickerLength)) | |
94 | 94 | then if (if (if (if (isLetter1Valid) | |
95 | 95 | then isLetter2Valid | |
96 | 96 | else false) | |
97 | 97 | then isLetter3Valid | |
98 | 98 | else false) | |
99 | 99 | then isLetter4Valid | |
100 | 100 | else false) | |
101 | 101 | then isLetter5Valid | |
102 | 102 | else false | |
103 | 103 | else if ((6 == tickerLength)) | |
104 | 104 | then if (if (if (if (if (isLetter1Valid) | |
105 | 105 | then isLetter2Valid | |
106 | 106 | else false) | |
107 | 107 | then isLetter3Valid | |
108 | 108 | else false) | |
109 | 109 | then isLetter4Valid | |
110 | 110 | else false) | |
111 | 111 | then isLetter5Valid | |
112 | 112 | else false) | |
113 | 113 | then isLetter6Valid | |
114 | 114 | else false | |
115 | 115 | else false | |
116 | 116 | else false | |
117 | 117 | else false | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func isValidDescription (description) = { | |
122 | 122 | let descriptionSize = size(description) | |
123 | 123 | if (if ((descriptionSize > 0)) | |
124 | 124 | then (1000 >= descriptionSize) | |
125 | 125 | else false) | |
126 | 126 | then true | |
127 | 127 | else false | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func isAssetUpdateAllowedByRating (assetId) = { | |
132 | 132 | let assetRatingKey = (("assetRating_" + assetId) + "_1") | |
133 | 133 | let assetRatingValue = getIntegerFromAccount(tokenRatingOracleAddress, assetRatingKey) | |
134 | 134 | let assetRatingTreshold = getIntegerFromAccount(tokenRatingOracleAddress, "tickerRating_1") | |
135 | 135 | (assetRatingValue >= assetRatingTreshold) | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func isAssetUpdateAllowedByWeight (assetId) = { | |
140 | 140 | let assetWeightKey = ("assetWeight_" + assetId) | |
141 | 141 | let assetWeightValue = getIntegerFromAccount(tokenRatingOracleAddress, assetWeightKey) | |
142 | 142 | let assetWeightTreshold = getIntegerFromAccount(tokenRatingOracleAddress, "tickerWeight") | |
143 | 143 | (assetWeightValue >= assetWeightTreshold) | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func isAssetUpdateAllowedByVotes (assetId) = { | |
148 | 148 | let assetVotesKey = ("assetVotes_" + assetId) | |
149 | 149 | let assetVotesValue = getIntegerFromAccount(tokenRatingOracleAddress, assetVotesKey) | |
150 | 150 | let assetVotesTreshold = getIntegerFromAccount(tokenRatingOracleAddress, "tickerVotes") | |
151 | 151 | (assetVotesValue >= assetVotesTreshold) | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func isUpdateAllowedByRating (assetId) = if (if (isAssetUpdateAllowedByRating(assetId)) | |
156 | 156 | then isAssetUpdateAllowedByWeight(assetId) | |
157 | 157 | else false) | |
158 | 158 | then isAssetUpdateAllowedByVotes(assetId) | |
159 | 159 | else false | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func getAssetIssuerAddressFromAssetId (assetId) = toString(valueOrErrorMessage(assetInfo(fromBase58String(assetId)), nonExistentAssetError).issuer) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func getPayment (i) = valueOrErrorMessage(i.payment, noPaymentError) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func isPaymentInWaves (i) = { | |
169 | 169 | let payment = getPayment(i) | |
170 | 170 | if (!(isDefined(payment.assetId))) | |
171 | 171 | then true | |
172 | 172 | else false | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func isEnoughPayment (i,requiredPayment) = { | |
177 | 177 | let payment = getPayment(i) | |
178 | 178 | if ((payment.amount >= requiredPayment)) | |
179 | 179 | then true | |
180 | 180 | else false | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func isCallerAssetIssuer (i,assetId) = { | |
185 | 185 | let callerAddress = toBase58String(i.caller.bytes) | |
186 | 186 | let assetIssuerAdress = getAssetIssuerAddressFromAssetId(assetId) | |
187 | 187 | if ((callerAddress == assetIssuerAdress)) | |
188 | 188 | then true | |
189 | 189 | else false | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | @Callable(i) | |
194 | 194 | func updateTicker (assetId,ticker) = { | |
195 | 195 | let issuerTickerKey = ((("issuerTicker_" + "<") + assetId) + ">") | |
196 | 196 | let isTickerReserved = isSubstrExist(reservedTickers, ticker) | |
197 | 197 | let isTickerFree = match getString(tickerCatalogueOracleAddress, ticker) { | |
198 | 198 | case t: String => | |
199 | 199 | false | |
200 | 200 | case t: Unit => | |
201 | 201 | true | |
202 | 202 | case _ => | |
203 | 203 | throw() | |
204 | 204 | } | |
205 | 205 | let isTickerNotAssinedToAsset = match getString(this, issuerTickerKey) { | |
206 | 206 | case t: String => | |
207 | 207 | false | |
208 | 208 | case t: Unit => | |
209 | 209 | true | |
210 | 210 | case _ => | |
211 | 211 | throw() | |
212 | 212 | } | |
213 | 213 | if (isPaymentInWaves(i)) | |
214 | 214 | then if (isEnoughPayment(i, tickerUpdatePrice)) | |
215 | 215 | then if (isCallerAssetIssuer(i, assetId)) | |
216 | 216 | then if (isUpdateAllowedByRating(assetId)) | |
217 | 217 | then if (isTickerNotAssinedToAsset) | |
218 | 218 | then if (if (isTickerFree) | |
219 | 219 | then !(isTickerReserved) | |
220 | 220 | else false) | |
221 | 221 | then if (isValidTicker(ticker)) | |
222 | 222 | then WriteSet([DataEntry(issuerTickerKey, ticker)]) | |
223 | 223 | else throw(valueWrongFormatError) | |
224 | 224 | else throw(tickerValidationTickerIsExistError) | |
225 | 225 | else throw(tickerIsImmutableError) | |
226 | 226 | else throw(tickerValidationNotEnoughRatingError) | |
227 | 227 | else throw(issuerAccessDeniedError) | |
228 | 228 | else throw(notEnoughPaymentError) | |
229 | 229 | else throw(notSupportedCurrencyError) | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | ||
234 | 234 | @Callable(i) | |
235 | 235 | func updateDescription (assetId,description) = { | |
236 | 236 | let issuerDescriptionKey = ((("issuerDescription_" + "<") + assetId) + ">") | |
237 | 237 | if (isPaymentInWaves(i)) | |
238 | 238 | then if (isEnoughPayment(i, descriptionUpdatePrice)) | |
239 | 239 | then if (isCallerAssetIssuer(i, assetId)) | |
240 | 240 | then if (isValidDescription(description)) | |
241 | 241 | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
242 | 242 | else throw(valueWrongFormatError) | |
243 | 243 | else throw(issuerAccessDeniedError) | |
244 | 244 | else throw(notEnoughPaymentError) | |
245 | 245 | else throw(notSupportedCurrencyError) | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(i) | |
251 | 251 | func updateLink (assetId,link) = { | |
252 | 252 | let issuerLinkKey = ((("issuerLink_" + "<") + assetId) + ">") | |
253 | 253 | if (isPaymentInWaves(i)) | |
254 | 254 | then if (isEnoughPayment(i, linkUpdatePrice)) | |
255 | 255 | then if (isCallerAssetIssuer(i, assetId)) | |
256 | 256 | then WriteSet([DataEntry(issuerLinkKey, link)]) | |
257 | 257 | else throw(issuerAccessDeniedError) | |
258 | 258 | else throw(notEnoughPaymentError) | |
259 | 259 | else throw(notSupportedCurrencyError) | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 |
github/deemru/w8io/169f3d6 42.25 ms ◑