tx · 99wmeESAQgAqHa6i5dsxt5mEaXye1sK7nHhdzUgNC3Pc 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr: -0.02000000 Waves 2022.06.01 11:13 [2077029] smart account 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr > SELF 0.00000000 Waves
{ "type": 13, "id": "99wmeESAQgAqHa6i5dsxt5mEaXye1sK7nHhdzUgNC3Pc", "fee": 2000000, "feeAssetId": null, "timestamp": 1654071216574, "version": 1, "sender": "3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr", "senderPublicKey": "EtZZHS4uqNXY5WPneZ8jY2aA95peXwthJVLzAMxMp379", "proofs": [ "4wjmg6mu5teSeTAtLezaQMPyRvNiZ1HZZ5uNraDz1HbLJYsiajqjbm6ErtRayHiCDJKA2vY94ZdY6DMN9qRE98eQ" ], "script": "base64:AAIFAAAAAAAAAGoIAhIECgIIGBIDCgEIEgUKAwgICBIDCgEIEgMKAQgSAwoBCBIECgIICBIECgIICBIECgIICBIDCgEIEgUKAwgIBBIECgIICBIECgIIBBIDCgEIEgMKARgSBQoDCAgIEgMKAQgSABIDCgEIAAAALgAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAOc3RhdHVzVmVyaWZpZWQAAAAAAAAAAAIAAAAAEHN0YXR1c1VudmVyaWZpZWQAAAAAAAAAAAAAAAAAFmxhYmVsQ29tbXVuaXR5VmVyaWZpZWQCAAAAEkNPTU1VTklUWV9WRVJJRklFRAAAAAAMbGFiZWxQb29sc0xwAgAAAAhQT09MU19MUAAAAAANZGVmYXVsdExhYmVscwkABEwAAAACBQAAABZsYWJlbENvbW11bml0eVZlcmlmaWVkCQAETAAAAAIFAAAADGxhYmVsUG9vbHNMcAUAAAADbmlsAAAAABNwb29sTGFiZWxXeEVtaXNzaW9uAgAAAAtXWF9FTUlTU0lPTgAAAAAPdmFsaWRQb29sTGFiZWxzCQAETAAAAAIFAAAAE3Bvb2xMYWJlbFd4RW1pc3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dWJsaWNLZXkAAAAACQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEFAAAAAnBtCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAABprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAAAAAFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAWkBAAAAEmlzVmVyaWZpZWRSRUFET05MWQAAAAEAAAAHYXNzZXRJZAkABRQAAAACBQAAAANuaWwJAQAAAAppc1ZlcmlmaWVkAAAAAQUAAAAHYXNzZXRJZAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXlx1cnG", "chainId": 84, "height": 2077029, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5sdHd8R5uGP8sGMX1wXq19bgGrzWsUFN34z4bQnN13GC Next: DV7SomWb19SHHRrvem9oRynJYarjvLvuBuE3ZGLmG1jL Diff:
Old | New | Differences | |
---|---|---|---|
37 | 37 | func keyUserPoolsContract () = "%s__userPoolsContract" | |
38 | 38 | ||
39 | 39 | ||
40 | + | func keyVotingEmissionContract () = "%s__votingEmissionContract" | |
41 | + | ||
42 | + | ||
40 | 43 | func keyCreated (assetId) = (("created_<" + assetId) + ">") | |
41 | 44 | ||
42 | 45 | ||
71 | 74 | ||
72 | 75 | ||
73 | 76 | func keyPoolLabels (amountAssetId,priceAssetId) = makeString(["%s%s%s", "poolLabels", amountAssetId, priceAssetId], SEP) | |
77 | + | ||
78 | + | ||
79 | + | func getValueOrFail (address,key,type) = { | |
80 | + | let error = makeString(["mandatory ", toString(address), ".", key, " is not defined"], "") | |
81 | + | valueOrErrorMessage( match type { | |
82 | + | case str: String => | |
83 | + | getString(address, key) | |
84 | + | case int: Int => | |
85 | + | getInteger(address, key) | |
86 | + | case _ => | |
87 | + | throw("invalid entry type") | |
88 | + | }, error) | |
89 | + | } | |
90 | + | ||
91 | + | ||
92 | + | func getStrOrFail (address,key) = { | |
93 | + | let @ = getValueOrFail(address, key, 0) | |
94 | + | if ($isInstanceOf(@, "String")) | |
95 | + | then @ | |
96 | + | else throw("Couldn't cast Int|String to String") | |
97 | + | } | |
98 | + | ||
99 | + | ||
100 | + | func getStrOrUnit (address,key) = { | |
101 | + | let @ = getValueOrFail(address, key, 0) | |
102 | + | if ($isInstanceOf(@, "String")) | |
103 | + | then @ | |
104 | + | else unit | |
105 | + | } | |
106 | + | ||
107 | + | ||
108 | + | func getIntOrFail (address,key) = { | |
109 | + | let @ = getValueOrFail(address, key, 0) | |
110 | + | if ($isInstanceOf(@, "Int")) | |
111 | + | then @ | |
112 | + | else throw("Couldn't cast Int|String to Int") | |
113 | + | } | |
114 | + | ||
115 | + | ||
116 | + | func getIntOrUnit (address,key) = { | |
117 | + | let @ = getValueOrFail(address, key, 0) | |
118 | + | if ($isInstanceOf(@, "Int")) | |
119 | + | then @ | |
120 | + | else unit | |
121 | + | } | |
74 | 122 | ||
75 | 123 | ||
76 | 124 | func isVerified (assetId) = (valueOrElse(getInteger(keyStatus(assetId)), statusUnverified) == statusVerified) | |
215 | 263 | let checksAddress = valueOrErrorMessage(addressFromString(userPoolsContract), "Invalid address") | |
216 | 264 | if ((checksAddress == checksAddress)) | |
217 | 265 | then [StringEntry(keyUserPoolsContract(), userPoolsContract), StringEntry(keyLabels(), makeString((defaultLabels ++ labels), SEP))] | |
266 | + | else throw("Strict value is not equal to itself.") | |
267 | + | } | |
268 | + | else throw("Strict value is not equal to itself.") | |
269 | + | } | |
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | @Callable(i) | |
274 | + | func constructorV2 (votingEmissionContract) = { | |
275 | + | let checkCaller = mustManager(i) | |
276 | + | if ((checkCaller == checkCaller)) | |
277 | + | then { | |
278 | + | let checkAddress = valueOrErrorMessage(addressFromString(votingEmissionContract), "invalid voting emission contract address") | |
279 | + | if ((checkAddress == checkAddress)) | |
280 | + | then [StringEntry(keyVotingEmissionContract(), votingEmissionContract)] | |
218 | 281 | else throw("Strict value is not equal to itself.") | |
219 | 282 | } | |
220 | 283 | else throw("Strict value is not equal to itself.") | |
372 | 435 | then true | |
373 | 436 | else throwNoAsset()] | |
374 | 437 | if ((checks == checks)) | |
375 | - | then $Tuple2(setVerifiedActions(assetId, verified), unit) | |
438 | + | then { | |
439 | + | let onVerificationLossInv = if (!(verified)) | |
440 | + | then { | |
441 | + | let votingEmissionContract = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyVotingEmissionContract())), "invalid voting emission contract address") | |
442 | + | invoke(votingEmissionContract, "onVerificationLoss", [assetId], nil) | |
443 | + | } | |
444 | + | else unit | |
445 | + | if ((onVerificationLossInv == onVerificationLossInv)) | |
446 | + | then $Tuple2(setVerifiedActions(assetId, verified), unit) | |
447 | + | else throw("Strict value is not equal to itself.") | |
448 | + | } | |
376 | 449 | else throw("Strict value is not equal to itself.") | |
377 | 450 | } | |
378 | 451 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let EMPTY = "" | |
7 | 7 | ||
8 | 8 | let statusVerified = 2 | |
9 | 9 | ||
10 | 10 | let statusUnverified = 0 | |
11 | 11 | ||
12 | 12 | let labelCommunityVerified = "COMMUNITY_VERIFIED" | |
13 | 13 | ||
14 | 14 | let labelPoolsLp = "POOLS_LP" | |
15 | 15 | ||
16 | 16 | let defaultLabels = [labelCommunityVerified, labelPoolsLp] | |
17 | 17 | ||
18 | 18 | let poolLabelWxEmission = "WX_EMISSION" | |
19 | 19 | ||
20 | 20 | let validPoolLabels = [poolLabelWxEmission] | |
21 | 21 | ||
22 | 22 | func throwPD () = throw("Permission denied") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func throwNoAsset () = throw("Asset doesn't exists") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func keyAdminPubKeys () = "%s__adminPubKeys" | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func keyUserPoolsContract () = "%s__userPoolsContract" | |
38 | 38 | ||
39 | 39 | ||
40 | + | func keyVotingEmissionContract () = "%s__votingEmissionContract" | |
41 | + | ||
42 | + | ||
40 | 43 | func keyCreated (assetId) = (("created_<" + assetId) + ">") | |
41 | 44 | ||
42 | 45 | ||
43 | 46 | func keyLogo (assetId) = (("logo_<" + assetId) + ">") | |
44 | 47 | ||
45 | 48 | ||
46 | 49 | func keyTicker (assetId) = (("ticker_<" + assetId) + ">") | |
47 | 50 | ||
48 | 51 | ||
49 | 52 | func keyStatus (assetId) = (("status_<" + assetId) + ">") | |
50 | 53 | ||
51 | 54 | ||
52 | 55 | func keyAssetPoolsNumber (assetId) = makeString(["%s%s", "pools", assetId], SEP) | |
53 | 56 | ||
54 | 57 | ||
55 | 58 | func keyTickerToAssetId (ticker) = makeString(["%s%s", "ticker2assetId", ticker], SEP) | |
56 | 59 | ||
57 | 60 | ||
58 | 61 | func keyAssetIdToTicker (assetId) = makeString(["%s%s", "assetId2ticker", assetId], SEP) | |
59 | 62 | ||
60 | 63 | ||
61 | 64 | func keyAmountAndPriceAssetsToLpAsset (amountAsset,priceAsset) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", amountAsset, priceAsset], SEP) | |
62 | 65 | ||
63 | 66 | ||
64 | 67 | func keyLpAssetToAmountAndPriceAssets (lpAsset) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", lpAsset], SEP) | |
65 | 68 | ||
66 | 69 | ||
67 | 70 | func keyAssetLabels (assetId) = makeString(["%s%s", "labels", assetId], SEP) | |
68 | 71 | ||
69 | 72 | ||
70 | 73 | func keyLabels () = makeString(["%s", "labels"], SEP) | |
71 | 74 | ||
72 | 75 | ||
73 | 76 | func keyPoolLabels (amountAssetId,priceAssetId) = makeString(["%s%s%s", "poolLabels", amountAssetId, priceAssetId], SEP) | |
77 | + | ||
78 | + | ||
79 | + | func getValueOrFail (address,key,type) = { | |
80 | + | let error = makeString(["mandatory ", toString(address), ".", key, " is not defined"], "") | |
81 | + | valueOrErrorMessage( match type { | |
82 | + | case str: String => | |
83 | + | getString(address, key) | |
84 | + | case int: Int => | |
85 | + | getInteger(address, key) | |
86 | + | case _ => | |
87 | + | throw("invalid entry type") | |
88 | + | }, error) | |
89 | + | } | |
90 | + | ||
91 | + | ||
92 | + | func getStrOrFail (address,key) = { | |
93 | + | let @ = getValueOrFail(address, key, 0) | |
94 | + | if ($isInstanceOf(@, "String")) | |
95 | + | then @ | |
96 | + | else throw("Couldn't cast Int|String to String") | |
97 | + | } | |
98 | + | ||
99 | + | ||
100 | + | func getStrOrUnit (address,key) = { | |
101 | + | let @ = getValueOrFail(address, key, 0) | |
102 | + | if ($isInstanceOf(@, "String")) | |
103 | + | then @ | |
104 | + | else unit | |
105 | + | } | |
106 | + | ||
107 | + | ||
108 | + | func getIntOrFail (address,key) = { | |
109 | + | let @ = getValueOrFail(address, key, 0) | |
110 | + | if ($isInstanceOf(@, "Int")) | |
111 | + | then @ | |
112 | + | else throw("Couldn't cast Int|String to Int") | |
113 | + | } | |
114 | + | ||
115 | + | ||
116 | + | func getIntOrUnit (address,key) = { | |
117 | + | let @ = getValueOrFail(address, key, 0) | |
118 | + | if ($isInstanceOf(@, "Int")) | |
119 | + | then @ | |
120 | + | else unit | |
121 | + | } | |
74 | 122 | ||
75 | 123 | ||
76 | 124 | func isVerified (assetId) = (valueOrElse(getInteger(keyStatus(assetId)), statusUnverified) == statusVerified) | |
77 | 125 | ||
78 | 126 | ||
79 | 127 | func getLabels () = match getString(keyLabels()) { | |
80 | 128 | case s: String => | |
81 | 129 | if ((size(s) == 0)) | |
82 | 130 | then nil | |
83 | 131 | else split(s, SEP) | |
84 | 132 | case _ => | |
85 | 133 | nil | |
86 | 134 | } | |
87 | 135 | ||
88 | 136 | ||
89 | 137 | func getAssetLabels (assetId) = match getString(keyAssetLabels(assetId)) { | |
90 | 138 | case s: String => | |
91 | 139 | if ((size(s) == 0)) | |
92 | 140 | then nil | |
93 | 141 | else split(s, SEP) | |
94 | 142 | case _ => | |
95 | 143 | nil | |
96 | 144 | } | |
97 | 145 | ||
98 | 146 | ||
99 | 147 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
100 | 148 | case s: String => | |
101 | 149 | fromBase58String(s) | |
102 | 150 | case _: Unit => | |
103 | 151 | unit | |
104 | 152 | case _ => | |
105 | 153 | throw("Match error") | |
106 | 154 | } | |
107 | 155 | ||
108 | 156 | ||
109 | 157 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
110 | 158 | case s: String => | |
111 | 159 | fromBase58String(s) | |
112 | 160 | case _: Unit => | |
113 | 161 | unit | |
114 | 162 | case _ => | |
115 | 163 | throw("Match error") | |
116 | 164 | } | |
117 | 165 | ||
118 | 166 | ||
119 | 167 | func mustManager (i) = match managerPublicKeyOrUnit() { | |
120 | 168 | case pk: ByteVector => | |
121 | 169 | if ((i.callerPublicKey == pk)) | |
122 | 170 | then true | |
123 | 171 | else throwPD() | |
124 | 172 | case _: Unit => | |
125 | 173 | if ((i.caller == this)) | |
126 | 174 | then true | |
127 | 175 | else throwPD() | |
128 | 176 | case _ => | |
129 | 177 | throw("Match error") | |
130 | 178 | } | |
131 | 179 | ||
132 | 180 | ||
133 | 181 | func mustAdmin (i) = { | |
134 | 182 | let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP) | |
135 | 183 | if (containsElement(adminPKs, toBase58String(i.callerPublicKey))) | |
136 | 184 | then true | |
137 | 185 | else { | |
138 | 186 | let isManager = mustManager(i) | |
139 | 187 | if ((isManager == isManager)) | |
140 | 188 | then true | |
141 | 189 | else throw("Strict value is not equal to itself.") | |
142 | 190 | } | |
143 | 191 | } | |
144 | 192 | ||
145 | 193 | ||
146 | 194 | func isCreated (assetId) = valueOrElse(getBoolean(keyCreated(assetId)), false) | |
147 | 195 | ||
148 | 196 | ||
149 | 197 | func verifiedToStatus (verified) = if (verified) | |
150 | 198 | then statusVerified | |
151 | 199 | else statusUnverified | |
152 | 200 | ||
153 | 201 | ||
154 | 202 | func addLabelActions (assetId,label,throwOnError) = { | |
155 | 203 | let labels = getLabels() | |
156 | 204 | let assetLabels = getAssetLabels(assetId) | |
157 | 205 | let checkLabel = if (containsElement(labels, label)) | |
158 | 206 | then true | |
159 | 207 | else throw("Label doesn't exist") | |
160 | 208 | if ((checkLabel == checkLabel)) | |
161 | 209 | then { | |
162 | 210 | let newAssetLabels = if (containsElement(assetLabels, label)) | |
163 | 211 | then if (throwOnError) | |
164 | 212 | then throw("Label has already been added") | |
165 | 213 | else assetLabels | |
166 | 214 | else (assetLabels :+ label) | |
167 | 215 | [StringEntry(keyAssetLabels(assetId), makeString(newAssetLabels, SEP))] | |
168 | 216 | } | |
169 | 217 | else throw("Strict value is not equal to itself.") | |
170 | 218 | } | |
171 | 219 | ||
172 | 220 | ||
173 | 221 | func deleteLabelActions (assetId,label,throwOnError) = { | |
174 | 222 | let assetLabels = getAssetLabels(assetId) | |
175 | 223 | let newAssetLabels = if (containsElement(assetLabels, label)) | |
176 | 224 | then removeByIndex(assetLabels, value(indexOf(assetLabels, label))) | |
177 | 225 | else if (throwOnError) | |
178 | 226 | then throw("Label wasn't added") | |
179 | 227 | else assetLabels | |
180 | 228 | [StringEntry(keyAssetLabels(assetId), makeString(newAssetLabels, SEP))] | |
181 | 229 | } | |
182 | 230 | ||
183 | 231 | ||
184 | 232 | func setVerifiedActions (assetId,verified) = { | |
185 | 233 | let labelCommunityVerifiedActions = if (verified) | |
186 | 234 | then addLabelActions(assetId, labelCommunityVerified, false) | |
187 | 235 | else deleteLabelActions(assetId, labelCommunityVerified, false) | |
188 | 236 | ([IntegerEntry(keyStatus(assetId), verifiedToStatus(verified))] ++ labelCommunityVerifiedActions) | |
189 | 237 | } | |
190 | 238 | ||
191 | 239 | ||
192 | 240 | func updateTickerActions (assetId,ticker) = { | |
193 | 241 | let checkTicker = { | |
194 | 242 | let linkedAssetIdOrUnit = getString(keyTickerToAssetId(ticker)) | |
195 | 243 | let tickerIsValid = if ((ticker != "")) | |
196 | 244 | then if ((linkedAssetIdOrUnit == unit)) | |
197 | 245 | then true | |
198 | 246 | else (value(linkedAssetIdOrUnit) == assetId) | |
199 | 247 | else false | |
200 | 248 | if (tickerIsValid) | |
201 | 249 | then true | |
202 | 250 | else throw("Invalid ticker") | |
203 | 251 | } | |
204 | 252 | if ((checkTicker == checkTicker)) | |
205 | 253 | then [StringEntry(keyAssetIdToTicker(assetId), ticker), StringEntry(keyTickerToAssetId(ticker), assetId)] | |
206 | 254 | else throw("Strict value is not equal to itself.") | |
207 | 255 | } | |
208 | 256 | ||
209 | 257 | ||
210 | 258 | @Callable(i) | |
211 | 259 | func constructor (userPoolsContract,labels) = { | |
212 | 260 | let checkCaller = mustManager(i) | |
213 | 261 | if ((checkCaller == checkCaller)) | |
214 | 262 | then { | |
215 | 263 | let checksAddress = valueOrErrorMessage(addressFromString(userPoolsContract), "Invalid address") | |
216 | 264 | if ((checksAddress == checksAddress)) | |
217 | 265 | then [StringEntry(keyUserPoolsContract(), userPoolsContract), StringEntry(keyLabels(), makeString((defaultLabels ++ labels), SEP))] | |
266 | + | else throw("Strict value is not equal to itself.") | |
267 | + | } | |
268 | + | else throw("Strict value is not equal to itself.") | |
269 | + | } | |
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | @Callable(i) | |
274 | + | func constructorV2 (votingEmissionContract) = { | |
275 | + | let checkCaller = mustManager(i) | |
276 | + | if ((checkCaller == checkCaller)) | |
277 | + | then { | |
278 | + | let checkAddress = valueOrErrorMessage(addressFromString(votingEmissionContract), "invalid voting emission contract address") | |
279 | + | if ((checkAddress == checkAddress)) | |
280 | + | then [StringEntry(keyVotingEmissionContract(), votingEmissionContract)] | |
218 | 281 | else throw("Strict value is not equal to itself.") | |
219 | 282 | } | |
220 | 283 | else throw("Strict value is not equal to itself.") | |
221 | 284 | } | |
222 | 285 | ||
223 | 286 | ||
224 | 287 | ||
225 | 288 | @Callable(i) | |
226 | 289 | func addAssetsLink (amountAsset,priceAsset,lpAsset) = { | |
227 | 290 | let checkCaller = mustAdmin(i) | |
228 | 291 | if ((checkCaller == checkCaller)) | |
229 | 292 | then [StringEntry(keyAmountAndPriceAssetsToLpAsset(amountAsset, priceAsset), lpAsset), StringEntry(keyLpAssetToAmountAndPriceAssets(lpAsset), makeString([amountAsset, priceAsset], SEP))] | |
230 | 293 | else throw("Strict value is not equal to itself.") | |
231 | 294 | } | |
232 | 295 | ||
233 | 296 | ||
234 | 297 | ||
235 | 298 | @Callable(i) | |
236 | 299 | func increaseAssetPoolsNumber (assetId) = { | |
237 | 300 | let checkCaller = mustAdmin(i) | |
238 | 301 | if ((checkCaller == checkCaller)) | |
239 | 302 | then { | |
240 | 303 | let assetPoolsNumberKey = keyAssetPoolsNumber(assetId) | |
241 | 304 | let assetPoolsNumber = valueOrElse(getInteger(assetPoolsNumberKey), 0) | |
242 | 305 | [IntegerEntry(assetPoolsNumberKey, (assetPoolsNumber + 1))] | |
243 | 306 | } | |
244 | 307 | else throw("Strict value is not equal to itself.") | |
245 | 308 | } | |
246 | 309 | ||
247 | 310 | ||
248 | 311 | ||
249 | 312 | @Callable(i) | |
250 | 313 | func createLabel (label) = { | |
251 | 314 | let labels = getLabels() | |
252 | 315 | let checkCaller = mustManager(i) | |
253 | 316 | if ((checkCaller == checkCaller)) | |
254 | 317 | then { | |
255 | 318 | let checkLabel = [if (!(contains(label, SEP))) | |
256 | 319 | then true | |
257 | 320 | else throw("Invalid label name"), if (!(containsElement(labels, label))) | |
258 | 321 | then true | |
259 | 322 | else throw("Label exists")] | |
260 | 323 | if ((checkLabel == checkLabel)) | |
261 | 324 | then [StringEntry(keyLabels(), makeString((labels :+ label), SEP))] | |
262 | 325 | else throw("Strict value is not equal to itself.") | |
263 | 326 | } | |
264 | 327 | else throw("Strict value is not equal to itself.") | |
265 | 328 | } | |
266 | 329 | ||
267 | 330 | ||
268 | 331 | ||
269 | 332 | @Callable(i) | |
270 | 333 | func dropLabel (label) = { | |
271 | 334 | let labels = getLabels() | |
272 | 335 | let checkCaller = mustManager(i) | |
273 | 336 | if ((checkCaller == checkCaller)) | |
274 | 337 | then { | |
275 | 338 | let checkLabel = if (containsElement(labels, label)) | |
276 | 339 | then true | |
277 | 340 | else throw("Label doesn't exist") | |
278 | 341 | if ((checkLabel == checkLabel)) | |
279 | 342 | then [StringEntry(keyLabels(), makeString(removeByIndex(labels, value(indexOf(labels, label))), SEP))] | |
280 | 343 | else throw("Strict value is not equal to itself.") | |
281 | 344 | } | |
282 | 345 | else throw("Strict value is not equal to itself.") | |
283 | 346 | } | |
284 | 347 | ||
285 | 348 | ||
286 | 349 | ||
287 | 350 | @Callable(i) | |
288 | 351 | func addLabel (assetId,label) = { | |
289 | 352 | let checkCaller = mustAdmin(i) | |
290 | 353 | if ((checkCaller == checkCaller)) | |
291 | 354 | then addLabelActions(assetId, label, true) | |
292 | 355 | else throw("Strict value is not equal to itself.") | |
293 | 356 | } | |
294 | 357 | ||
295 | 358 | ||
296 | 359 | ||
297 | 360 | @Callable(i) | |
298 | 361 | func deleteLabel (assetId,label) = { | |
299 | 362 | let checkCaller = mustAdmin(i) | |
300 | 363 | if ((checkCaller == checkCaller)) | |
301 | 364 | then deleteLabelActions(assetId, label, true) | |
302 | 365 | else throw("Strict value is not equal to itself.") | |
303 | 366 | } | |
304 | 367 | ||
305 | 368 | ||
306 | 369 | ||
307 | 370 | @Callable(i) | |
308 | 371 | func updateTicker (assetId,ticker) = { | |
309 | 372 | let checkCaller = mustAdmin(i) | |
310 | 373 | if ((checkCaller == checkCaller)) | |
311 | 374 | then { | |
312 | 375 | let checkAsset = if (isCreated(assetId)) | |
313 | 376 | then true | |
314 | 377 | else throwNoAsset() | |
315 | 378 | if ((checkAsset == checkAsset)) | |
316 | 379 | then updateTickerActions(assetId, ticker) | |
317 | 380 | else throw("Strict value is not equal to itself.") | |
318 | 381 | } | |
319 | 382 | else throw("Strict value is not equal to itself.") | |
320 | 383 | } | |
321 | 384 | ||
322 | 385 | ||
323 | 386 | ||
324 | 387 | @Callable(i) | |
325 | 388 | func deleteTicker (assetId) = { | |
326 | 389 | let checkCaller = mustAdmin(i) | |
327 | 390 | if ((checkCaller == checkCaller)) | |
328 | 391 | then { | |
329 | 392 | let ticker = valueOrErrorMessage(getString(keyAssetIdToTicker(assetId)), "Invalid asset") | |
330 | 393 | [DeleteEntry(keyAssetIdToTicker(assetId)), DeleteEntry(keyTickerToAssetId(ticker))] | |
331 | 394 | } | |
332 | 395 | else throw("Strict value is not equal to itself.") | |
333 | 396 | } | |
334 | 397 | ||
335 | 398 | ||
336 | 399 | ||
337 | 400 | @Callable(i) | |
338 | 401 | func createOrUpdate (assetId,logo,verified) = { | |
339 | 402 | let checkCaller = mustAdmin(i) | |
340 | 403 | if ((checkCaller == checkCaller)) | |
341 | 404 | then { | |
342 | 405 | let isCreatedNow = !(isCreated(assetId)) | |
343 | 406 | if ((isCreatedNow == isCreatedNow)) | |
344 | 407 | then { | |
345 | 408 | let setLogoActions = if ((logo == "")) | |
346 | 409 | then nil | |
347 | 410 | else [StringEntry(keyLogo(assetId), logo)] | |
348 | 411 | $Tuple2((([BooleanEntry(keyCreated(assetId), true)] ++ setLogoActions) ++ setVerifiedActions(assetId, verified)), isCreatedNow) | |
349 | 412 | } | |
350 | 413 | else throw("Strict value is not equal to itself.") | |
351 | 414 | } | |
352 | 415 | else throw("Strict value is not equal to itself.") | |
353 | 416 | } | |
354 | 417 | ||
355 | 418 | ||
356 | 419 | ||
357 | 420 | @Callable(i) | |
358 | 421 | func setLogo (assetId,logo) = { | |
359 | 422 | let checks = [mustAdmin(i), if (isCreated(assetId)) | |
360 | 423 | then true | |
361 | 424 | else throwNoAsset()] | |
362 | 425 | if ((checks == checks)) | |
363 | 426 | then [StringEntry(keyLogo(assetId), logo)] | |
364 | 427 | else throw("Strict value is not equal to itself.") | |
365 | 428 | } | |
366 | 429 | ||
367 | 430 | ||
368 | 431 | ||
369 | 432 | @Callable(i) | |
370 | 433 | func setVerified (assetId,verified) = { | |
371 | 434 | let checks = [mustAdmin(i), if (isCreated(assetId)) | |
372 | 435 | then true | |
373 | 436 | else throwNoAsset()] | |
374 | 437 | if ((checks == checks)) | |
375 | - | then $Tuple2(setVerifiedActions(assetId, verified), unit) | |
438 | + | then { | |
439 | + | let onVerificationLossInv = if (!(verified)) | |
440 | + | then { | |
441 | + | let votingEmissionContract = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyVotingEmissionContract())), "invalid voting emission contract address") | |
442 | + | invoke(votingEmissionContract, "onVerificationLoss", [assetId], nil) | |
443 | + | } | |
444 | + | else unit | |
445 | + | if ((onVerificationLossInv == onVerificationLossInv)) | |
446 | + | then $Tuple2(setVerifiedActions(assetId, verified), unit) | |
447 | + | else throw("Strict value is not equal to itself.") | |
448 | + | } | |
376 | 449 | else throw("Strict value is not equal to itself.") | |
377 | 450 | } | |
378 | 451 | ||
379 | 452 | ||
380 | 453 | ||
381 | 454 | @Callable(i) | |
382 | 455 | func onEliminate (assetId) = { | |
383 | 456 | let poolsNumber = valueOrElse(getInteger(keyAssetPoolsNumber(assetId)), 0) | |
384 | 457 | let actions = if ((poolsNumber > 0)) | |
385 | 458 | then nil | |
386 | 459 | else [DeleteEntry(keyLogo(assetId))] | |
387 | 460 | $Tuple2(actions, unit) | |
388 | 461 | } | |
389 | 462 | ||
390 | 463 | ||
391 | 464 | ||
392 | 465 | @Callable(i) | |
393 | 466 | func setAdmins (adminPubKeys) = { | |
394 | 467 | let checkCaller = mustManager(i) | |
395 | 468 | if ((checkCaller == checkCaller)) | |
396 | 469 | then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))] | |
397 | 470 | else throw("Strict value is not equal to itself.") | |
398 | 471 | } | |
399 | 472 | ||
400 | 473 | ||
401 | 474 | ||
402 | 475 | @Callable(i) | |
403 | 476 | func setPoolLabels (amountAssetId,priceAssetId,label) = { | |
404 | 477 | let checkCaller = mustAdmin(i) | |
405 | 478 | if ((checkCaller == checkCaller)) | |
406 | 479 | then { | |
407 | 480 | let isValidLabel = if (containsElement(validPoolLabels, label)) | |
408 | 481 | then true | |
409 | 482 | else throw("label is not valid") | |
410 | 483 | if ((isValidLabel == isValidLabel)) | |
411 | 484 | then $Tuple2([StringEntry(keyPoolLabels(amountAssetId, priceAssetId), label)], unit) | |
412 | 485 | else throw("Strict value is not equal to itself.") | |
413 | 486 | } | |
414 | 487 | else throw("Strict value is not equal to itself.") | |
415 | 488 | } | |
416 | 489 | ||
417 | 490 | ||
418 | 491 | ||
419 | 492 | @Callable(i) | |
420 | 493 | func setManager (pendingManagerPublicKey) = { | |
421 | 494 | let checkCaller = mustManager(i) | |
422 | 495 | if ((checkCaller == checkCaller)) | |
423 | 496 | then { | |
424 | 497 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
425 | 498 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
426 | 499 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
427 | 500 | else throw("Strict value is not equal to itself.") | |
428 | 501 | } | |
429 | 502 | else throw("Strict value is not equal to itself.") | |
430 | 503 | } | |
431 | 504 | ||
432 | 505 | ||
433 | 506 | ||
434 | 507 | @Callable(i) | |
435 | 508 | func confirmManager () = { | |
436 | 509 | let pm = pendingManagerPublicKeyOrUnit() | |
437 | 510 | let hasPM = if (isDefined(pm)) | |
438 | 511 | then true | |
439 | 512 | else throw("No pending manager") | |
440 | 513 | if ((hasPM == hasPM)) | |
441 | 514 | then { | |
442 | 515 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
443 | 516 | then true | |
444 | 517 | else throw("You are not pending manager") | |
445 | 518 | if ((checkPM == checkPM)) | |
446 | 519 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
447 | 520 | else throw("Strict value is not equal to itself.") | |
448 | 521 | } | |
449 | 522 | else throw("Strict value is not equal to itself.") | |
450 | 523 | } | |
451 | 524 | ||
452 | 525 | ||
453 | 526 | ||
454 | 527 | @Callable(i) | |
455 | 528 | func isVerifiedREADONLY (assetId) = $Tuple2(nil, isVerified(assetId)) | |
456 | 529 | ||
457 | 530 | ||
458 | 531 | @Verifier(tx) | |
459 | 532 | func verify () = { | |
460 | 533 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
461 | 534 | case pk: ByteVector => | |
462 | 535 | pk | |
463 | 536 | case _: Unit => | |
464 | 537 | tx.senderPublicKey | |
465 | 538 | case _ => | |
466 | 539 | throw("Match error") | |
467 | 540 | } | |
468 | 541 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
469 | 542 | } | |
470 | 543 |
github/deemru/w8io/169f3d6 71.29 ms ◑