tx · DxpQqtr5uNnq4daLjmQ6UnHSwDp3NBXS9jjrvEJq8TpU 3NCyT9Mj2u1Xmwb2PHUJDm9sTFA7U1t4R9J: -0.01500000 Waves 2024.10.07 20:25 [3316720] smart account 3NCyT9Mj2u1Xmwb2PHUJDm9sTFA7U1t4R9J > SELF 0.00000000 Waves
{ "type": 13, "id": "DxpQqtr5uNnq4daLjmQ6UnHSwDp3NBXS9jjrvEJq8TpU", "fee": 1500000, "feeAssetId": null, "timestamp": 1728322011652, "version": 2, "chainId": 84, "sender": "3NCyT9Mj2u1Xmwb2PHUJDm9sTFA7U1t4R9J", "senderPublicKey": "88eML5ggWfwRJGEeHDzcoubkqH26cPsgH53d8K6dEoVs", "proofs": [ "5nhroxSfBVsiUDzWZwSFjDrUXSqFVDR8y38fibpynKkXBQVVuUMb9mugx7cHRXBfthPi72Q421ks6Xeewye8UCjp" ], "script": "base64:AAIFAAAAAAAAAB8IAhIECgIICBIAEgMKAQgSBAoCCAgSAwoBCBIDCgEIAAAAIQEAAAAHZ2V0Qm9vbAAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgcBAAAACWlzVGVzdEVudgAAAAAJAQAAAAdnZXRCb29sAAAAAQIAAAAHVEVTVEVOVgEAAAAIa2V5T3duZXIAAAABAAAAC2R1Y2tIb3VzZUlkCQABLAAAAAIFAAAAC2R1Y2tIb3VzZUlkAgAAAAZfb3duZXIBAAAADGtleUR1Y2tIb3VzZQAAAAEAAAAGZHVja0lkCQABLAAAAAIFAAAABmR1Y2tJZAIAAAALX2R1Y2tfaG91c2UBAAAAF29jY3VwaWVkU3BvdHNEdWNrc0hvdXNlAAAAAQAAAAtkdWNrSG91c2VJZAkAASwAAAACBQAAAAtkdWNrSG91c2VJZAIAAAANX2ZpbGxlZF9zcG90cwEAAAAN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ib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAJdGhpcmRVc2VyAAAAAAAAAAABAAAAAAAAAAAABAAAAA9zaWduYXR1cmVzQ291bnQJAABkAAAAAgkAAGQAAAACBQAAAA9maXJzdFVzZXJTaWduZWQFAAAAEHNlY29uZFVzZXJTaWduZWQFAAAAD3RoaXJkVXNlclNpZ25lZAQAAAAHJG1hdGNoMAUAAAACdHgJAABnAAAAAgUAAAAPc2lnbmF0dXJlc0NvdW50AAAAAAAAAAACm81DwQ==", "height": 3316720, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getBool (key) = match getBoolean(this, key) { | |
5 | + | case b: Boolean => | |
6 | + | b | |
7 | + | case _ => | |
8 | + | false | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func isTestEnv () = getBool("TESTENV") | |
13 | + | ||
14 | + | ||
15 | + | func keyOwner (duckHouseId) = (duckHouseId + "_owner") | |
16 | + | ||
17 | + | ||
18 | + | func keyDuckHouse (duckId) = (duckId + "_duck_house") | |
19 | + | ||
20 | + | ||
21 | + | func occupiedSpotsDucksHouse (duckHouseId) = (duckHouseId + "_filled_spots") | |
22 | + | ||
23 | + | ||
24 | + | func tryGetBoolean (key) = match getBoolean(key) { | |
25 | + | case b: Boolean => | |
26 | + | b | |
27 | + | case _ => | |
28 | + | false | |
29 | + | } | |
30 | + | ||
31 | + | ||
32 | + | func tryGetStringExternal (address,key) = match getString(address, key) { | |
33 | + | case a: String => | |
34 | + | a | |
35 | + | case _ => | |
36 | + | "" | |
37 | + | } | |
38 | + | ||
39 | + | ||
40 | + | func tryGetString (key) = tryGetStringExternal(this, key) | |
41 | + | ||
42 | + | ||
43 | + | func tryGetInteger (key) = match getInteger(this, key) { | |
44 | + | case b: Int => | |
45 | + | b | |
46 | + | case _ => | |
47 | + | 0 | |
48 | + | } | |
49 | + | ||
50 | + | ||
51 | + | func asString (value) = match value { | |
52 | + | case string: String => | |
53 | + | string | |
54 | + | case _ => | |
55 | + | throw("wrong type, expected: String") | |
56 | + | } | |
57 | + | ||
58 | + | ||
59 | + | func asInt (value) = match value { | |
60 | + | case int: Int => | |
61 | + | int | |
62 | + | case _ => | |
63 | + | throw("wrong type, expected: Int") | |
64 | + | } | |
65 | + | ||
66 | + | ||
67 | + | func staticKey_oracleAddress () = "static_oracleAddress" | |
68 | + | ||
69 | + | ||
70 | + | func staticKey_itemsAddress () = "static_itemsAddress" | |
71 | + | ||
72 | + | ||
73 | + | func staticKey_extraFee () = "static_extraFee" | |
74 | + | ||
75 | + | ||
76 | + | func staticKey_feeAggregator () = "static_feeAggregator" | |
77 | + | ||
78 | + | ||
79 | + | func staticKey_eggAssetId () = "static_eggAssetId" | |
80 | + | ||
81 | + | ||
82 | + | func staticKey_farmingAddress () = "static_farmingAddressNew" | |
83 | + | ||
84 | + | ||
85 | + | func staticKey_maxDucks () = "static_maxDucks" | |
86 | + | ||
87 | + | ||
88 | + | func static_stakeCall () = "stakeNFT" | |
89 | + | ||
90 | + | ||
91 | + | func staticKey_stakeWithoutPerch () = "static_without_perch" | |
92 | + | ||
93 | + | ||
94 | + | func staticKey_type () = "static_type" | |
95 | + | ||
96 | + | ||
97 | + | func staticKey_boost () = "static_boost" | |
98 | + | ||
99 | + | ||
100 | + | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
101 | + | ||
102 | + | ||
103 | + | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
104 | + | ||
105 | + | ||
106 | + | func getFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_farmingAddress()))) | |
107 | + | ||
108 | + | ||
109 | + | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
110 | + | ||
111 | + | ||
112 | + | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
113 | + | ||
114 | + | ||
115 | + | func maxDucks () = tryGetInteger(staticKey_maxDucks()) | |
116 | + | ||
117 | + | ||
118 | + | func type () = tryGetString(staticKey_type()) | |
119 | + | ||
120 | + | ||
121 | + | func boost () = tryGetInteger(staticKey_boost()) | |
122 | + | ||
123 | + | ||
124 | + | func isJackpot (assetId) = (takeRight(value(value(assetInfo(assetId)).name), 1) == "U") | |
125 | + | ||
126 | + | ||
127 | + | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
128 | + | then throw("WCAP: Please attach waves") | |
129 | + | else { | |
130 | + | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
131 | + | if ((payment.amount != feeAmount)) | |
132 | + | then throw((("WCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
133 | + | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
134 | + | } | |
135 | + | ||
136 | + | ||
137 | + | func validateOwnerAndGetHouse (asset,i) = { | |
138 | + | let duckHouseId = tryGetString(keyDuckHouse(asset)) | |
139 | + | let owner = tryGetString(keyOwner(duckHouseId)) | |
140 | + | let address = toString(i.caller) | |
141 | + | if ((owner != address)) | |
142 | + | then throw("Don't try to steal someone duck!") | |
143 | + | else duckHouseId | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | @Callable(i) | |
148 | + | func configureOracle (oracle,type) = if ((i.caller != this)) | |
149 | + | then throw("admin only") | |
150 | + | else { | |
151 | + | let setup = if ((type == "ART-BIGHOUSE")) | |
152 | + | then [IntegerEntry(staticKey_boost(), 15), IntegerEntry(staticKey_maxDucks(), 10), BooleanEntry(staticKey_stakeWithoutPerch(), true)] | |
153 | + | else if ((type == "ART-HOUSE")) | |
154 | + | then [IntegerEntry(staticKey_boost(), 30), IntegerEntry(staticKey_maxDucks(), 4), BooleanEntry(staticKey_stakeWithoutPerch(), false)] | |
155 | + | else if ((type == "ART-XMAS_STBLE")) | |
156 | + | then [IntegerEntry(staticKey_boost(), 5), IntegerEntry(staticKey_maxDucks(), 6), BooleanEntry(staticKey_stakeWithoutPerch(), false)] | |
157 | + | else throw("Unknown type!") | |
158 | + | ([StringEntry(staticKey_oracleAddress(), oracle), StringEntry(staticKey_type(), type)] ++ setup) | |
159 | + | } | |
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | @Callable(i) | |
164 | + | func stakeDuckHouse () = { | |
165 | + | let owner = toString(i.caller) | |
166 | + | let artefactPayment = value(i.payments[0]) | |
167 | + | let validPayment = checkAdditionalPayment(i.payments[1]) | |
168 | + | let artefactAssetId = toBase58String(value(artefactPayment.assetId)) | |
169 | + | if ((artefactPayment.amount != 1)) | |
170 | + | then throw("NFT is not attached") | |
171 | + | else { | |
172 | + | let artefactName = asString(invoke(getItemsAddress(), "checkArtefactDetails", [artefactAssetId], nil)) | |
173 | + | if ((artefactName == artefactName)) | |
174 | + | then if ((artefactName != type())) | |
175 | + | then throw("Wrong artefact") | |
176 | + | else ([StringEntry(keyOwner(artefactAssetId), owner)] ++ validPayment) | |
177 | + | else throw("Strict value is not equal to itself.") | |
178 | + | } | |
179 | + | } | |
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | @Callable(i) | |
184 | + | func unstakeDuckHouse (duckHouseId) = { | |
185 | + | let caller = toString(i.caller) | |
186 | + | let duckHouseOwner = tryGetString(keyOwner(duckHouseId)) | |
187 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
188 | + | if ((duckHouseOwner == "")) | |
189 | + | then throw("This duckhouse is not staked!") | |
190 | + | else if ((duckHouseOwner != caller)) | |
191 | + | then throw("This duckhouse is not yours!") | |
192 | + | else if ((tryGetInteger(occupiedSpotsDucksHouse(duckHouseId)) != 0)) | |
193 | + | then throw("Please first remove your ducks from the duckhouse") | |
194 | + | else ([ScriptTransfer(i.caller, 1, fromBase58String(duckHouseId)), DeleteEntry(keyOwner(duckHouseId))] ++ validPayment) | |
195 | + | } | |
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | @Callable(i) | |
200 | + | func stakeDuck (duckHouseId,JColor) = { | |
201 | + | let assetId = value(value(i.payments[1]).assetId) | |
202 | + | let address = toString(i.caller) | |
203 | + | let duckHouseOwner = tryGetString(keyOwner(duckHouseId)) | |
204 | + | if ((duckHouseOwner == "")) | |
205 | + | then throw("This duckhouse is not staked!") | |
206 | + | else if ((duckHouseOwner != address)) | |
207 | + | then throw("This duckhouse is not yours!") | |
208 | + | else { | |
209 | + | let filledSpots = tryGetInteger(occupiedSpotsDucksHouse(duckHouseId)) | |
210 | + | if ((filledSpots == maxDucks())) | |
211 | + | then throw("No space in duck house left!") | |
212 | + | else { | |
213 | + | let boostDuck = invoke(getItemsAddress(), "manipulateBoost", [boost(), toBase58String(assetId)], nil) | |
214 | + | if ((boostDuck == boostDuck)) | |
215 | + | then { | |
216 | + | let stakeDuck = invoke(getFarmingAddress(), static_stakeCall(), [JColor, true, tryGetBoolean(staticKey_stakeWithoutPerch())], i.payments) | |
217 | + | if ((stakeDuck == stakeDuck)) | |
218 | + | then [IntegerEntry(occupiedSpotsDucksHouse(duckHouseId), (filledSpots + 1)), StringEntry(keyDuckHouse(toBase58String(assetId)), duckHouseId)] | |
219 | + | else throw("Strict value is not equal to itself.") | |
220 | + | } | |
221 | + | else throw("Strict value is not equal to itself.") | |
222 | + | } | |
223 | + | } | |
224 | + | } | |
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | @Callable(i) | |
229 | + | func unstakeDuck (asset) = { | |
230 | + | let duckHouseId = validateOwnerAndGetHouse(asset, i) | |
231 | + | if ((duckHouseId == duckHouseId)) | |
232 | + | then { | |
233 | + | let unstakeDuckReward = asInt(invoke(getFarmingAddress(), "unstakeNFT", [asset], i.payments)) | |
234 | + | if ((unstakeDuckReward == unstakeDuckReward)) | |
235 | + | then { | |
236 | + | let filledSpots = tryGetInteger(occupiedSpotsDucksHouse(duckHouseId)) | |
237 | + | if ((filledSpots == 0)) | |
238 | + | then throw("You aren't staking any ducks!") | |
239 | + | else { | |
240 | + | let unboostDuck = invoke(getItemsAddress(), "manipulateBoost", [-(boost()), asset], nil) | |
241 | + | if ((unboostDuck == unboostDuck)) | |
242 | + | then [ScriptTransfer(i.caller, unstakeDuckReward, getEggAssetId()), ScriptTransfer(i.caller, 1, fromBase58String(asset)), DeleteEntry(keyDuckHouse(asset)), IntegerEntry(occupiedSpotsDucksHouse(duckHouseId), (filledSpots - 1))] | |
243 | + | else throw("Strict value is not equal to itself.") | |
244 | + | } | |
245 | + | } | |
246 | + | else throw("Strict value is not equal to itself.") | |
247 | + | } | |
248 | + | else throw("Strict value is not equal to itself.") | |
249 | + | } | |
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | @Callable(i) | |
254 | + | func claimDuckRewards (asset) = { | |
255 | + | let owner = validateOwnerAndGetHouse(asset, i) | |
256 | + | if ((owner == owner)) | |
257 | + | then { | |
258 | + | let claimRewards = asInt(invoke(getFarmingAddress(), "claimReward", [asset], i.payments)) | |
259 | + | if ((claimRewards == claimRewards)) | |
260 | + | then [ScriptTransfer(i.caller, claimRewards, getEggAssetId())] | |
261 | + | else throw("Strict value is not equal to itself.") | |
262 | + | } | |
263 | + | else throw("Strict value is not equal to itself.") | |
264 | + | } | |
265 | + | ||
266 | + | ||
267 | + | @Verifier(tx) | |
268 | + | func verify () = if (isTestEnv()) | |
269 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
270 | + | else { | |
271 | + | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
272 | + | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
273 | + | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
274 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
275 | + | then 1 | |
276 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
277 | + | then 1 | |
278 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
279 | + | then 1 | |
280 | + | else 0 | |
281 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
282 | + | then 1 | |
283 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
284 | + | then 1 | |
285 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
286 | + | then 1 | |
287 | + | else 0 | |
288 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
289 | + | then 1 | |
290 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
291 | + | then 1 | |
292 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
293 | + | then 1 | |
294 | + | else 0 | |
295 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
296 | + | match tx { | |
297 | + | case _ => | |
298 | + | (signaturesCount >= 2) | |
299 | + | } | |
300 | + | } | |
301 | + |
github/deemru/w8io/169f3d6 21.22 ms ◑