tx · GobdkzFq6EEt8D1jE67WHwmAdboP3hUaocG5ZYgt4EUB 3N3qMqr633du5htyg4qfxt5RVzu9W4zCD8V: -0.02000000 Waves 2024.10.03 13:17 [3310540] smart account 3N3qMqr633du5htyg4qfxt5RVzu9W4zCD8V > SELF 0.00000000 Waves
{ "type": 13, "id": "GobdkzFq6EEt8D1jE67WHwmAdboP3hUaocG5ZYgt4EUB", "fee": 2000000, "feeAssetId": null, "timestamp": 1727950641123, "version": 2, "chainId": 84, "sender": "3N3qMqr633du5htyg4qfxt5RVzu9W4zCD8V", "senderPublicKey": "8wbJvtHgrvyXinDfQ476iTbH2YBkzG6BJTGWaKUb8EUz", "proofs": [ "5PemRTeVgKAetWjnXPcBzVfSLhancN9LkKyar2pBa8edcW21pnTeNVUznGfSu22esjHDGZTSVgoMbkofMoZnp24M" ], "script": "base64:AAIFAAAAAAAAACkIAhIDCgEIEgUKAwgIARIDCgEIEgMKAQgSBAoCCAESAwoBCBIECgIICAAAACYBAAAADHRyeUdldFN0cmluZwAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAAFHRyeUdldFN0cmluZ0V4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABBvcmFjbGVBZGRyZXNzS2V5AAAAAAIAAAAUc3RhdGljX29yYWNsZUFkZHJlc3MBAAAAEWJyZWVkZXJBZGRyZXNzS2V5AAAAAAIAAAAVc3RhdGljX2JyZWVkZXJBZGRyZXNzAQAAABNpbmN1YmF0b3JBZGRyZXNzS2V5AAAAAAIAA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QAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAADmtQdXRPbkFydGVmYWN0CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAGGtBcnRlZmFjdElkQnlUeXBlQW5kRHVjawkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAlrRHVja0xvY2sJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAANa01hbnRsZVN0YXR1cwUAAAAKU1RBVFVTRlJFRQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAABdrQXJ0ZWZhY3RPd25lckFuZFN0YXR1cwUAAAAKU1RBVFVTRlJFRQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAxvcmlnaW5DYWxsZXIAAAAAAAAAAAEJAAJZAAAAAQUAAAAGZHVja0lkBQAAAANuaWwFAAAAC3NlbmRSZXdhcmRzCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5P8UQtw==", "height": 3310540, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2RBkH9xT2Y5YmeJYZZ34cK1nXESmbzveAcv5aUPoiGLY Next: 9eu6H4swVnJtZPT5sD6aTVimt2a3JpNE5kkJwbz7K3ah Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func tryGetString (key) = match getString(this, key) { | |
5 | 5 | case a: String => | |
6 | 6 | a | |
7 | 7 | case _ => | |
8 | 8 | "" | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
13 | 13 | case a: String => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | "" | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func oracleAddressKey () = "static_oracleAddress" | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func breederAddressKey () = "static_breederAddress" | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func incubatorAddressKey () = "static_incubatorAddress" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func eggAssetIdKey () = "static_eggAssetId" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func wearablesAddressKey () = "static_wearablesAddress" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func farmingAddressKey () = "static_farmingAddressNew" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func couponsAddressKey () = "static_couponsAddress" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func rebirthAddressKey () = "static_rebirthAddress" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func burnAddressKey () = "static_burnAddress" | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getOracle () = Address(fromBase58String(tryGetString(oracleAddressKey()))) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), breederAddressKey()))) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), incubatorAddressKey()))) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), eggAssetIdKey())) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getWearablesAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), wearablesAddressKey()))) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), farmingAddressKey()))) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), couponsAddressKey()))) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), rebirthAddressKey()))) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), burnAddressKey()))) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | let MANTLENAME = "mantle" | |
75 | 75 | ||
76 | 76 | let STATUSFREE = "FREE" | |
77 | 77 | ||
78 | 78 | let STATUSOCCUPIED = "OCCUPIED" | |
79 | 79 | ||
80 | 80 | func keyDuckLock (callerAddress,duckId) = (((("address_" + callerAddress) + "_duck_") + duckId) + "_status") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyInvestor (callerAddress) = (("address_" + callerAddress) + "_amount") | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyArtefactInvested (type,artefactId) = (((("artefact_" + type) + "_artefactId_") + artefactId) + "_invested") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyOnlyArtefactLevel (artefactId) = (("artefactId_" + toBase58String(artefactId)) + "_level") | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyArtefactIdByDuckAndType (type,duckId) = (((("artefact_ " + type) + "_duck_") + toBase58String(duckId)) + "_artefactId") | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyArtefactOwner (type,artefactId) = (((("artefact_ " + type) + "_artefactId_") + toBase58String(artefactId)) + "_owner") | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyArtefactOwnerAndStatus (type,owner,artefactId) = (((((("address_" + owner) + "_artefact_") + type) + "_artefactId_") + toBase58String(artefactId)) + "_status") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyArtefactStatus (type,artefactId) = (((("artefact_ " + type) + "_artefactId_") + toBase58String(artefactId)) + "_status") | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyArtefactType (artefactId) = (("artefactId_" + toBase58String(artefactId)) + "_type") | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyArtefactLevel (type,owner,artefactId) = (((((("address_" + owner) + "_artefact_") + type) + "_artefactId_") + toBase58String(artefactId)) + "_level") | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyPutOnArtefact (type,owner,duckId,artefactId) = (((((((("address_" + owner) + "_duck_") + duckId) + "_artefact_") + type) + "_artefactId_") + toBase58String(artefactId)) + "_status") | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyArtefactExists (type,artefactId) = ((("artefact_" + type) + "_artefactId_") + toBase58String(artefactId)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func isJackpot (assetId) = (takeRight(value(value(assetInfo(assetId)).name), 1) == "U") | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func asInt (value) = match value { | |
120 | 120 | case int: Int => | |
121 | 121 | int | |
122 | 122 | case _ => | |
123 | 123 | throw("WAI: wrong type, expected: Int") | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func upgradeMantleFunc (i,artefactId,amount) = { | |
128 | 128 | let kMantleExists = keyArtefactExists(MANTLENAME, fromBase58String(artefactId)) | |
129 | 129 | let kMantleOwner = keyArtefactOwner(MANTLENAME, fromBase58String(artefactId)) | |
130 | 130 | let mantleExists = getBooleanValue(kMantleExists) | |
131 | 131 | let mantleOwner = getStringValue(kMantleOwner) | |
132 | 132 | if (!(mantleExists)) | |
133 | 133 | then throw("WUPM: Mantle with such an ID does not exist") | |
134 | 134 | else if ((mantleOwner != toString(i.originCaller))) | |
135 | 135 | then throw("WUPM: You're not an owner of the mantle") | |
136 | 136 | else { | |
137 | 137 | let kMantleInvested = keyArtefactInvested(MANTLENAME, artefactId) | |
138 | 138 | let mantleAlreadyInvested = getIntegerValue(kMantleInvested) | |
139 | 139 | let kMantleLevel = keyArtefactLevel(MANTLENAME, toString(i.originCaller), fromBase58String(artefactId)) | |
140 | 140 | let kOnlyArtefactLevel = keyOnlyArtefactLevel(fromBase58String(artefactId)) | |
141 | 141 | let totalInvested = (mantleAlreadyInvested + amount) | |
142 | 142 | let newLevel = (((10 * pow(totalInvested, 8, 6, 1, 8, HALFUP)) + 100000000) / 100000000) | |
143 | 143 | if ((newLevel >= 340)) | |
144 | 144 | then throw("DUMF: You reached the max level! Max level is 340!") | |
145 | 145 | else [IntegerEntry(kMantleLevel, newLevel), IntegerEntry(kMantleInvested, totalInvested), IntegerEntry(kOnlyArtefactLevel, newLevel)] | |
146 | 146 | } | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | @Callable(i) | |
151 | 151 | func configureOracle (oracle) = if ((i.caller != this)) | |
152 | 152 | then throw("WCO: admin only") | |
153 | 153 | else [StringEntry("static_oracleAddress", oracle)] | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | ||
157 | 157 | @Callable(i) | |
158 | 158 | func issueFreeMantle (address,type,level) = if ((i.caller != this)) | |
159 | 159 | then throw("WIFM: Can be called only by admin") | |
160 | 160 | else if ((type != MANTLENAME)) | |
161 | 161 | then throw("WIFM: You can buy only mantles now") | |
162 | 162 | else { | |
163 | 163 | let issueMantleNFT = Issue("DUCK-MANTLE-0", "[Artefact] Mantle NFT for Jeduck", 1, 0, false) | |
164 | 164 | let mantleNftId = calculateAssetId(issueMantleNFT) | |
165 | 165 | let kMantleLevel = keyArtefactLevel(MANTLENAME, address, mantleNftId) | |
166 | 166 | let kMantleExists = keyArtefactExists(MANTLENAME, mantleNftId) | |
167 | 167 | let kMantleOwner = keyArtefactOwner(MANTLENAME, mantleNftId) | |
168 | 168 | let kMantleStatus = keyArtefactStatus(MANTLENAME, mantleNftId) | |
169 | 169 | let kArtefactType = keyArtefactType(mantleNftId) | |
170 | 170 | let kMantleInvested = keyArtefactInvested(MANTLENAME, toBase58String(mantleNftId)) | |
171 | 171 | let kArtefactOwnerAndStatus = keyArtefactOwnerAndStatus(MANTLENAME, address, mantleNftId) | |
172 | 172 | let kOnlyArtefactLevel = keyOnlyArtefactLevel(mantleNftId) | |
173 | 173 | let invested = pow((level - 1), 1, (1000000000 / 6), 8, 8, HALFUP) | |
174 | 174 | $Tuple2([IntegerEntry(kMantleLevel, level), IntegerEntry(kMantleInvested, invested), BooleanEntry(kMantleExists, true), StringEntry(kMantleOwner, address), StringEntry(kMantleStatus, STATUSFREE), StringEntry(kArtefactType, MANTLENAME), StringEntry(kArtefactOwnerAndStatus, STATUSFREE), IntegerEntry(kOnlyArtefactLevel, level)], toBase58String(mantleNftId)) | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | ||
179 | 179 | @Callable(i) | |
180 | 180 | func buyArtefact (type) = if ((type != MANTLENAME)) | |
181 | 181 | then throw("WBA: You can buy only mantles now") | |
182 | 182 | else { | |
183 | 183 | let MANTLEPRICE = 1000000 | |
184 | 184 | let amountPaidByCoupons = 0 | |
185 | 185 | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
186 | 186 | then { | |
187 | 187 | let leftToPay = ((MANTLEPRICE * 100) - amountPaidByCoupons) | |
188 | 188 | let payment = if ((leftToPay != 0)) | |
189 | 189 | then { | |
190 | 190 | let firstPayment = value(i.payments[0]) | |
191 | 191 | if ((firstPayment.assetId != getEggAssetId())) | |
192 | 192 | then throw(("WBA: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
193 | 193 | else if ((firstPayment.amount != leftToPay)) | |
194 | 194 | then throw(("WBA: To buy a mantle you currently need the following amount of EGGlets: " + toString(leftToPay))) | |
195 | 195 | else leftToPay | |
196 | 196 | } | |
197 | 197 | else 0 | |
198 | 198 | if ((payment == payment)) | |
199 | 199 | then { | |
200 | 200 | let issueMantleNFT = Issue("DUCK-MANTLE-0", "[Artefact] Mantle NFT for Jeduck", 1, 0, false) | |
201 | 201 | let mantleNftId = calculateAssetId(issueMantleNFT) | |
202 | 202 | let kMantleLevel = keyArtefactLevel(MANTLENAME, toString(i.caller), mantleNftId) | |
203 | 203 | let kMantleExists = keyArtefactExists(MANTLENAME, mantleNftId) | |
204 | 204 | let kMantleOwner = keyArtefactOwner(MANTLENAME, mantleNftId) | |
205 | 205 | let kMantleStatus = keyArtefactStatus(MANTLENAME, mantleNftId) | |
206 | 206 | let kArtefactType = keyArtefactType(mantleNftId) | |
207 | 207 | let kMantleInvested = keyArtefactInvested(MANTLENAME, toBase58String(mantleNftId)) | |
208 | 208 | let kArtefactOwnerAndStatus = keyArtefactOwnerAndStatus(MANTLENAME, toString(i.caller), mantleNftId) | |
209 | 209 | let kOnlyArtefactLevel = keyOnlyArtefactLevel(mantleNftId) | |
210 | 210 | [IntegerEntry(kMantleLevel, 1), IntegerEntry(kMantleInvested, MANTLEPRICE), BooleanEntry(kMantleExists, true), StringEntry(kMantleOwner, toString(i.caller)), StringEntry(kMantleStatus, STATUSFREE), StringEntry(kArtefactType, MANTLENAME), StringEntry(kArtefactOwnerAndStatus, STATUSFREE), IntegerEntry(kOnlyArtefactLevel, 1)] | |
211 | 211 | } | |
212 | 212 | else throw("Strict value is not equal to itself.") | |
213 | 213 | } | |
214 | 214 | else throw("Strict value is not equal to itself.") | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | ||
219 | 219 | @Callable(i) | |
220 | 220 | func upgradeMantle (artefactId) = { | |
221 | 221 | let upgradePointPrice = 1000000 | |
222 | 222 | let firstPayment = value(i.payments[0]) | |
223 | 223 | let amount = firstPayment.amount | |
224 | 224 | if ((firstPayment.assetId != getEggAssetId())) | |
225 | 225 | then throw(("WUM: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
226 | 226 | else if ((upgradePointPrice > firstPayment.amount)) | |
227 | 227 | then throw(("WUM: Minimal payment for upgrading mantle is: " + toString(upgradePointPrice))) | |
228 | 228 | else upgradeMantleFunc(i, artefactId, amount) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(i) | |
234 | 234 | func upgradeMantleByCoupons (artefactId,couponsAmount) = { | |
235 | 235 | let upgradePointPrice = 1000000 | |
236 | 236 | let amount = if ((size(i.payments) == 1)) | |
237 | 237 | then { | |
238 | 238 | let firstPayment = value(i.payments[0]) | |
239 | 239 | if ((firstPayment.assetId != getEggAssetId())) | |
240 | 240 | then throw(("WUMBC: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
241 | 241 | else { | |
242 | 242 | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), firstPayment.amount)]) | |
243 | 243 | if ((burnCall == burnCall)) | |
244 | 244 | then firstPayment.amount | |
245 | 245 | else throw("Strict value is not equal to itself.") | |
246 | 246 | } | |
247 | 247 | } | |
248 | 248 | else 0 | |
249 | 249 | if ((upgradePointPrice > (couponsAmount + amount))) | |
250 | 250 | then throw(("WUMBC: Minimal payment for upgrading mantle is: " + toString(upgradePointPrice))) | |
251 | 251 | else { | |
252 | 252 | let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [couponsAmount], nil)) | |
253 | 253 | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
254 | 254 | then if ((couponsAmount != amountPaidByCoupons)) | |
255 | 255 | then throw("WUMBC: Not enough coupons! Please make sure to pick lower coupon amount!") | |
256 | 256 | else upgradeMantleFunc(i, artefactId, (couponsAmount + amount)) | |
257 | 257 | else throw("Strict value is not equal to itself.") | |
258 | 258 | } | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | ||
263 | 263 | @Callable(i) | |
264 | 264 | func putOnArtefact (artefactId) = { | |
265 | 265 | let firstPayment = value(i.payments[0]) | |
266 | 266 | let attachedAssetInfo = value(assetInfo(value(firstPayment.assetId))) | |
267 | 267 | if ((firstPayment.amount != 1)) | |
268 | 268 | then throw("WPOA: NFT is not attached") | |
269 | 269 | else if (if ((attachedAssetInfo.issuer != getIncubatorAddress())) | |
270 | 270 | then (attachedAssetInfo.issuer != getBreederAddress()) | |
271 | 271 | else false) | |
272 | 272 | then throw("WPOA: You can attach only DUCKs issued by incubator or breeder ") | |
273 | 273 | else { | |
274 | 274 | let hasSweater = tryGetStringExternal(getWearablesAddress(), (toBase58String(value(firstPayment.assetId)) + "_ART-XSWEATER")) | |
275 | 275 | let kMantleExists = keyArtefactExists(MANTLENAME, fromBase58String(artefactId)) | |
276 | 276 | let kMantleOwner = keyArtefactOwner(MANTLENAME, fromBase58String(artefactId)) | |
277 | 277 | let kMantleStatus = keyArtefactStatus(MANTLENAME, fromBase58String(artefactId)) | |
278 | 278 | let kArtefactOwnerAndStatus = keyArtefactOwnerAndStatus(MANTLENAME, toString(i.originCaller), fromBase58String(artefactId)) | |
279 | 279 | let kDuckLock = keyDuckLock(toString(i.originCaller), toBase58String(value(firstPayment.assetId))) | |
280 | 280 | let mantleExists = getBooleanValue(kMantleExists) | |
281 | 281 | let mantleOwner = getStringValue(kMantleOwner) | |
282 | 282 | let mantleStatus = getStringValue(kMantleStatus) | |
283 | 283 | let kArtefactIdByType = keyArtefactIdByDuckAndType(MANTLENAME, value(firstPayment.assetId)) | |
284 | 284 | if (!(mantleExists)) | |
285 | 285 | then throw("WPOA: Mantle with such an ID does not exist") | |
286 | 286 | else if ((mantleOwner != toString(i.originCaller))) | |
287 | 287 | then throw("WPOA: You're not an owner of the mantle") | |
288 | 288 | else if ((mantleStatus != STATUSFREE)) | |
289 | 289 | then throw("WPOA: Mantle is already used!") | |
290 | 290 | else { | |
291 | 291 | let stakeDuck = if ((hasSweater != "")) | |
292 | 292 | then if (isJackpot(value(firstPayment.assetId))) | |
293 | 293 | then invoke(getFarmingAddress(), "stakeNFTWithoutPerch", nil, i.payments) | |
294 | 294 | else invoke(getFarmingAddress(), "stakeNFT", nil, i.payments) | |
295 | 295 | else nil | |
296 | 296 | if ((stakeDuck == stakeDuck)) | |
297 | 297 | then { | |
298 | 298 | let kPutOnArtefact = keyPutOnArtefact(MANTLENAME, toString(i.originCaller), toBase58String(value(firstPayment.assetId)), fromBase58String(artefactId)) | |
299 | 299 | [BooleanEntry(kPutOnArtefact, true), StringEntry(kMantleStatus, STATUSOCCUPIED), StringEntry(kArtefactOwnerAndStatus, STATUSOCCUPIED), BooleanEntry(kDuckLock, true), StringEntry(kArtefactIdByType, artefactId)] | |
300 | 300 | } | |
301 | 301 | else throw("Strict value is not equal to itself.") | |
302 | 302 | } | |
303 | 303 | } | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Callable(i) | |
309 | 309 | func takeOffArtefact (duckId,artefactType) = { | |
310 | 310 | let kArtefactIdByTypeAndDuck = keyArtefactIdByDuckAndType(artefactType, fromBase58String(duckId)) | |
311 | 311 | let artefactId = getStringValue(kArtefactIdByTypeAndDuck) | |
312 | 312 | let kArtefactType = keyArtefactType(fromBase58String(artefactId)) | |
313 | 313 | let kPutOnArtefact = keyPutOnArtefact(artefactType, toString(i.originCaller), duckId, fromBase58String(artefactId)) | |
314 | 314 | let kPutOnArtefactStatus = getBooleanValue(kPutOnArtefact) | |
315 | 315 | let kArtefactOwnerAndStatus = keyArtefactOwnerAndStatus(artefactType, toString(i.originCaller), fromBase58String(artefactId)) | |
316 | 316 | let kDuckLock = keyDuckLock(toString(i.originCaller), duckId) | |
317 | 317 | let kMantleStatus = keyArtefactStatus(artefactType, fromBase58String(artefactId)) | |
318 | 318 | if ((kPutOnArtefactStatus != true)) | |
319 | 319 | then throw("WTOA: There is no duck with such parameteres") | |
320 | 320 | else { | |
321 | 321 | let hasSweater = tryGetStringExternal(getWearablesAddress(), (duckId + "_ART-XSWEATER")) | |
322 | 322 | let isStaked = if ((tryGetStringExternal(getFarmingAddress(), (((("address_" + toString(i.originCaller)) + "_asset_") + duckId) + "_unstaker")) == "")) | |
323 | 323 | then false | |
324 | 324 | else true | |
325 | 325 | let unstakeDuck = if (if ((hasSweater != "")) | |
326 | 326 | then isStaked | |
327 | 327 | else false) | |
328 | 328 | then if (isJackpot(fromBase58String(duckId))) | |
329 | 329 | then asInt(invoke(getFarmingAddress(), "unstakeJackpot", [duckId], i.payments)) | |
330 | 330 | else asInt(invoke(getFarmingAddress(), "unstakeNFT", [duckId], i.payments)) | |
331 | 331 | else 0 | |
332 | 332 | if ((unstakeDuck == unstakeDuck)) | |
333 | 333 | then { | |
334 | 334 | let sendRewards = if ((unstakeDuck > 0)) | |
335 | 335 | then [ScriptTransfer(i.originCaller, unstakeDuck, getEggAssetId())] | |
336 | 336 | else nil | |
337 | 337 | ([DeleteEntry(kPutOnArtefact), DeleteEntry(kArtefactIdByTypeAndDuck), DeleteEntry(kDuckLock), StringEntry(kMantleStatus, STATUSFREE), StringEntry(kArtefactOwnerAndStatus, STATUSFREE), ScriptTransfer(i.originCaller, 1, fromBase58String(duckId))] ++ sendRewards) | |
338 | 338 | } | |
339 | 339 | else throw("Strict value is not equal to itself.") | |
340 | 340 | } | |
341 | 341 | } | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | @Verifier(tx) | |
345 | 345 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
346 | 346 |
github/deemru/w8io/026f985 35.13 ms ◑