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