tx · 9SPGBQaFBQysmYGTTy9FH8C6SS1vvA7Xyds74WvoZitx 3N42qQ7BkB2WcuDQzYPsWXipsyrtgf5RM77: -0.01900000 Waves 2024.10.03 13:02 [3310523] smart account 3N42qQ7BkB2WcuDQzYPsWXipsyrtgf5RM77 > SELF 0.00000000 Waves
{ "type": 13, "id": "9SPGBQaFBQysmYGTTy9FH8C6SS1vvA7Xyds74WvoZitx", "fee": 1900000, "feeAssetId": null, "timestamp": 1727949770487, "version": 2, "chainId": 84, "sender": "3N42qQ7BkB2WcuDQzYPsWXipsyrtgf5RM77", "senderPublicKey": "HN1yN1QNf9gfvY9PWDHX74JTzGHSv5T97G7s4ab3hfjB", "proofs": [ "5ym5czkrLPj4EqjpTRU31M3BJwc8ms4FxnpdKWpMArKztUhPWbPz3P2hdMpxLGG1iNRa4BJnRvQPQLvTFPCZiGMS" ], "script": "base64:AAIFAAAAAAAAACMIAhIDCgEIEgUKAwgICBIECgIICBIDCgEBEgMKAQgSAwoBCAAAACMBAAAAFHRyeUdldFN0cmluZ0V4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQkBAAAAFHRyeUdldFN0cmluZ0V4dGVybmFsAAAAAgUAAAAEdGhpcwUAAAADa2V5AQAAABdzdGF0aWNLZXlfb3JhY2xlQWRkcmVzcwAAAAACAAAAFHN0YXRpY19vcmFjbGVBZGRyZXNzAQAAABJzdGF0aWNLZXlfZXh0cmFGZWUAAAAAAgAAAA9zdGF0aWNfZXh0cmFGZWUBAAAAF3N0YXRpY0tleV9mZWVBZ2dyZWdhdG9yAAAAAAIAAAAUc3RhdGljX2ZlZUFnZ3JlZ2F0b3IBAAAAFHN0YXRpY0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50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGc3RhdHNfBQAAAAdmYXJtR2VuAgAAAAlfcXVhbnRpdHkJAABkAAAAAgkBAAAADXRyeUdldEludGVnZXIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAGc3RhdHNfBQAAAAdmYXJtR2VuAgAAAAlfcXVhbnRpdHkAAAAAAAAAAAEJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwFAAAAC2ZlZVZhbGlkYXRlCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5jjTkAg==", "height": 3310523, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HqH1TB7k7xAyPg4SaVvQvNy27xs8TbunyBDxXL2hCLsf Next: 5JxA5xGxSigZre316JD3xM6UURg4zhn7CiBi4ZGvDqmM Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
5 | 5 | case a: String => | |
6 | 6 | a | |
7 | 7 | case _ => | |
8 | 8 | "" | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func tryGetString (key) = tryGetStringExternal(this, key) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func staticKey_oracleAddress () = "static_oracleAddress" | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func staticKey_extraFee () = "static_extraFee" | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func staticKey_feeAggregator () = "static_feeAggregator" | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func staticKey_eggAssetId () = "static_eggAssetId" | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func staticKey_refContractAddress () = "static_refContractAddress" | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func staticKey_turtleRebirthAddress () = "static_turtleRebirthAddress" | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func staticKey_canisRebirthAddress () = "static_canineRebirthAddress" | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func staticKey_felineRebirthAddress () = "static_felineRebirthAddress" | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_burnAddress"))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getTurtleRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleRebirthAddress()))) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getCanisRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canisRebirthAddress()))) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getFelineRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineRebirthAddress()))) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
64 | 64 | then throw("BDCAP: Please attach waves") | |
65 | 65 | else { | |
66 | 66 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
67 | 67 | if ((payment.amount != feeAmount)) | |
68 | 68 | then throw((("BDCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
69 | 69 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | let delayForHatching = 2 | |
74 | 74 | ||
75 | 75 | let HatchingStarted = "HATCHING_STARTED" | |
76 | 76 | ||
77 | 77 | let HatchingFinished = "HATCHING_FINISHED" | |
78 | 78 | ||
79 | 79 | func isLocked () = { | |
80 | 80 | let masterAddress = Address(base58'3PEPftf2kWZDmAaWBjs6BUJa9957kiA2PkU') | |
81 | 81 | match getInteger(masterAddress, "egglock") { | |
82 | 82 | case b: Int => | |
83 | 83 | b | |
84 | 84 | case _ => | |
85 | 85 | 0 | |
86 | 86 | } | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func getHatchingStatusKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_status") | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func getHatchingFinishHeightKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_fh") | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func getTRTLIdKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_di") | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getTRTLStatsKey (genString) = (("stats_" + genString) + "_amount") | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func tryGetInteger (key) = { | |
103 | 103 | let val = match getInteger(this, key) { | |
104 | 104 | case b: Int => | |
105 | 105 | b | |
106 | 106 | case _ => | |
107 | 107 | 0 | |
108 | 108 | } | |
109 | 109 | val | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | let discountCoefficient = tryGetInteger("discountCoefficient") | |
114 | 114 | ||
115 | 115 | func getRandomNumber (variants,txId,hatchingFinishHeight,offset) = { | |
116 | 116 | let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1))) | |
117 | 117 | let randomHash = sha256((txId + value(randomSeedBlock.vrf))) | |
118 | 118 | (toInt(randomHash, (offset * 8)) % variants) | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func select (color) = { | |
123 | 123 | let oldGenes = [$Tuple2(("TRTL-AAAAAAAA-G" + color), "8A-G"), $Tuple2(("TRTL-BBBBBBBB-G" + color), "8B-G"), $Tuple2(("TRTL-CCCCCCCC-G" + color), "8C-G"), $Tuple2(("TRTL-DDDDDDDD-G" + color), "8D-G")] | |
124 | 124 | let newGenes = [$Tuple2(("TRTL-EEEEEEEE-G" + color), "8E-G"), $Tuple2(("TRTL-FFFFFFFF-G" + color), "8F-G"), $Tuple2(("TRTL-GGGGGGGG-G" + color), "8G-G"), $Tuple2(("TRTL-HHHHHHHH-G" + color), "8H-G")] | |
125 | 125 | $Tuple2((oldGenes ++ newGenes), newGenes) | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getRandomName (txId,hatchingFinishHeight,all) = { | |
130 | 130 | let colorRandom = getRandomNumber(4, txId, hatchingFinishHeight, 1) | |
131 | 131 | let color = ["R", "D", "S", "G"][colorRandom] | |
132 | 132 | let colorSelect = select(color) | |
133 | 133 | let toPickFrom = if (all) | |
134 | 134 | then colorSelect._1 | |
135 | 135 | else colorSelect._2 | |
136 | 136 | let typeRandom = getRandomNumber(size(toPickFrom), txId, hatchingFinishHeight, 0) | |
137 | 137 | toPickFrom[typeRandom] | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | let typesAmount = (size(select("R")._1) - 1) | |
142 | 142 | ||
143 | 143 | func countEggsNeededAmount (totalTRTLsAmount) = { | |
144 | 144 | let n = totalTRTLsAmount | |
145 | 145 | let g = discountCoefficient | |
146 | 146 | let t = typesAmount | |
147 | 147 | let price = pow((100 + ((n * g) / (10 * t))), 2, 5, 1, 2, DOWN) | |
148 | 148 | (price * 1500000) | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func asBoolean (value) = match value { | |
153 | 153 | case boolean: Boolean => | |
154 | 154 | boolean | |
155 | 155 | case _ => | |
156 | 156 | throw("TI: wrong type, expected: Boolean") | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Callable(i) | |
161 | 161 | func configureOracle (oracle) = if ((i.caller != this)) | |
162 | 162 | then throw("ICU: admin only") | |
163 | 163 | else [StringEntry("static_oracleAddress", oracle)] | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(i) | |
168 | 168 | func issueJackpot (address,txIdStr,gen) = if (if ((i.caller != getTurtleRebirthAddress())) | |
169 | 169 | then (i.caller != this) | |
170 | 170 | else false) | |
171 | 171 | then throw("ISJ: admin or rebirth only") | |
172 | 172 | else { | |
173 | 173 | let txId = fromBase58String(txIdStr) | |
174 | 174 | let hatchingStatusKey = getHatchingStatusKey(address, txId) | |
175 | 175 | let finishHeightKey = getHatchingFinishHeightKey(address, txId) | |
176 | 176 | let totalDucksAmount = tryGetInteger("turtle_amount") | |
177 | 177 | let eggsNeeded = countEggsNeededAmount(totalDucksAmount) | |
178 | 178 | let $t057805832 = $Tuple2((("TRTL-" + gen) + "-JU"), "8W-J") | |
179 | 179 | let duckGen = $t057805832._1 | |
180 | 180 | let farmGen = $t057805832._2 | |
181 | 181 | let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}") | |
182 | 182 | let asset = Issue(duckGen, description, 1, 0, false, unit, height) | |
183 | 183 | let assetId = calculateAssetId(asset) | |
184 | 184 | let duckIdKey = getTRTLIdKey(address, txId) | |
185 | 185 | let valueDuckIdKeyExits = tryGetString(duckIdKey) | |
186 | 186 | if ((valueDuckIdKeyExits != "")) | |
187 | 187 | then throw((("ISJ: You will override following duckId :" + duckIdKey) + " make sure that your txId is unique!")) | |
188 | 188 | else $Tuple2([IntegerEntry(getHatchingFinishHeightKey(address, txId), height), IntegerEntry("turtle_amount", (totalDucksAmount + 1)), IntegerEntry("turtle_last_price", (eggsNeeded / 1000000)), StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getTRTLStatsKey(duckGen), (tryGetInteger(getTRTLStatsKey(duckGen)) + 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId)) | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | ||
193 | 193 | @Callable(i) | |
194 | 194 | func issueFreeTurtle (address,txIdStr) = if (if (if ((i.caller != getTurtleRebirthAddress())) | |
195 | 195 | then (i.caller != getCanisRebirthAddress()) | |
196 | 196 | else false) | |
197 | 197 | then (i.caller != getFelineRebirthAddress()) | |
198 | 198 | else false) | |
199 | 199 | then throw("TISFT: rebirth only") | |
200 | 200 | else { | |
201 | 201 | let txId = fromBase58String(txIdStr) | |
202 | 202 | let hatchingStatusKey = getHatchingStatusKey(address, txId) | |
203 | 203 | let finishHeightKey = getHatchingFinishHeightKey(address, txId) | |
204 | 204 | let totalDucksAmount = tryGetInteger("turtle_amount") | |
205 | 205 | let eggsNeeded = countEggsNeededAmount(totalDucksAmount) | |
206 | 206 | let $t075117659 = getRandomName(txId, (valueOrErrorMessage(transactionHeightById(txId), ((txIdStr + " not found ") + toBase58String(txId))) + 1), true) | |
207 | 207 | let TRTLGen = $t075117659._1 | |
208 | 208 | let farmGen = $t075117659._2 | |
209 | 209 | let description = (("{\"genotype\": \"" + TRTLGen) + "\", \"crossbreeding\": true}") | |
210 | 210 | let asset = Issue(TRTLGen, description, 1, 0, false, unit, height) | |
211 | 211 | let assetId = calculateAssetId(asset) | |
212 | 212 | let amount = (tryGetInteger(getTRTLStatsKey(TRTLGen)) + 1) | |
213 | 213 | let duckIdKey = getTRTLIdKey(address, txId) | |
214 | 214 | $Tuple2([IntegerEntry(getHatchingFinishHeightKey(address, txId), height), IntegerEntry("turtle_amount", (totalDucksAmount + 1)), IntegerEntry("turtle_last_price", (eggsNeeded / 1500000)), StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getTRTLStatsKey(TRTLGen), amount), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId)) | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | ||
219 | 219 | @Callable(i) | |
220 | 220 | func setDiscount (val) = if ((i.caller != this)) | |
221 | 221 | then throw("admin_only") | |
222 | 222 | else [IntegerEntry("discountCoefficient", val)] | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Callable(i) | |
227 | 227 | func startTRTLHatching (refererAddress) = { | |
228 | 228 | let feeValidate = checkAdditionalPayment(i.payments[0]) | |
229 | 229 | if ((feeValidate == feeValidate)) | |
230 | 230 | then if ((isLocked() > 0)) | |
231 | 231 | then throw("EGG operations are temporarily locked") | |
232 | 232 | else { | |
233 | 233 | let totalTurtleAmount = tryGetInteger("turtle_amount") | |
234 | 234 | let eggsNeeded = countEggsNeededAmount(totalTurtleAmount) | |
235 | 235 | let results = [StringEntry(getHatchingStatusKey(toString(i.originCaller), i.transactionId), HatchingStarted), IntegerEntry(getHatchingFinishHeightKey(toString(i.originCaller), i.transactionId), (height + delayForHatching)), IntegerEntry("turtle_amount", (totalTurtleAmount + 1)), IntegerEntry("turtle_last_price", (eggsNeeded / 1500000))] | |
236 | 236 | let leftToPay = eggsNeeded | |
237 | 237 | let payment = if ((leftToPay != 0)) | |
238 | 238 | then { | |
239 | 239 | let firstPayment = value(i.payments[1]) | |
240 | 240 | if ((firstPayment.assetId != getEggAssetId())) | |
241 | 241 | then throw(("TI: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
242 | 242 | else if ((leftToPay > firstPayment.amount)) | |
243 | 243 | then throw(((("TI: To buy a beach you currently need the following amount of EGGlets: " + toString(leftToPay)) + " ") + toString(i.caller))) | |
244 | 244 | else { | |
245 | 245 | let refererRewardForbeach = fraction(leftToPay, 5, 100) | |
246 | 246 | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForbeach)])) | |
247 | 247 | if ((refCall == refCall)) | |
248 | 248 | then { | |
249 | 249 | let toBurn = if (refCall) | |
250 | 250 | then (leftToPay - refererRewardForbeach) | |
251 | 251 | else leftToPay | |
252 | 252 | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
253 | 253 | if ((burnCall == burnCall)) | |
254 | 254 | then leftToPay | |
255 | 255 | else throw("Strict value is not equal to itself.") | |
256 | 256 | } | |
257 | 257 | else throw("Strict value is not equal to itself.") | |
258 | 258 | } | |
259 | 259 | } | |
260 | 260 | else 0 | |
261 | 261 | if ((payment == payment)) | |
262 | 262 | then { | |
263 | 263 | let refund = if ((size(i.payments) == 2)) | |
264 | 264 | then [ScriptTransfer(i.caller, (i.payments[1].amount - leftToPay), getEggAssetId())] | |
265 | 265 | else nil | |
266 | 266 | ((results ++ refund) ++ feeValidate) | |
267 | 267 | } | |
268 | 268 | else throw("Strict value is not equal to itself.") | |
269 | 269 | } | |
270 | 270 | else throw("Strict value is not equal to itself.") | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | ||
275 | 275 | @Callable(i) | |
276 | 276 | func finishTRTLHatching (txIdStr) = { | |
277 | 277 | let feeValidate = checkAdditionalPayment(i.payments[0]) | |
278 | 278 | if ((feeValidate == feeValidate)) | |
279 | 279 | then { | |
280 | 280 | let txId = fromBase58String(txIdStr) | |
281 | 281 | let hatchingStatusKey = getHatchingStatusKey(toString(i.caller), txId) | |
282 | 282 | let finishHeightKey = getHatchingFinishHeightKey(toString(i.caller), txId) | |
283 | 283 | let TRTLIdKey = getTRTLIdKey(toString(i.caller), txId) | |
284 | 284 | let hatchingTxStatus = getStringValue(this, hatchingStatusKey) | |
285 | 285 | let hatchingFinishHeight = getIntegerValue(this, finishHeightKey) | |
286 | 286 | if ((hatchingTxStatus == HatchingFinished)) | |
287 | 287 | then { | |
288 | 288 | let TRTLId = getStringValue(this, getTRTLIdKey(toString(i.caller), txId)) | |
289 | 289 | throw(("The Turtle was hatched and claimed already, here is the folowing: " + TRTLId)) | |
290 | 290 | } | |
291 | 291 | else if ((hatchingFinishHeight > height)) | |
292 | 292 | then throw((((("Hatching is not finished yet " + toString((hatchingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((hatchingFinishHeight - height))) + " minutes")) | |
293 | 293 | else { | |
294 | 294 | let $t01175611829 = getRandomName(txId, hatchingFinishHeight, false) | |
295 | 295 | let TRTLGen = $t01175611829._1 | |
296 | 296 | let farmGen = $t01175611829._2 | |
297 | 297 | let description = (("{\"genotype\": \"" + TRTLGen) + "\", \"crossbreeding\": true}") | |
298 | 298 | let asset = Issue(TRTLGen, description, 1, 0, false, unit, hatchingFinishHeight) | |
299 | 299 | let assetId = calculateAssetId(asset) | |
300 | 300 | let amount = (tryGetInteger(getTRTLStatsKey(TRTLGen)) + 1) | |
301 | 301 | ([StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(TRTLIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), TRTLIdKey), IntegerEntry(getTRTLStatsKey(TRTLGen), amount), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(i.caller, 1, assetId)] ++ feeValidate) | |
302 | 302 | } | |
303 | 303 | } | |
304 | 304 | else throw("Strict value is not equal to itself.") | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Verifier(tx) | |
309 | 309 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
310 | 310 |
github/deemru/w8io/026f985 32.52 ms ◑