tx · QQgwnMjhLeCsVEBwnmSpkCYX32MGVkdZgASC5HfiUXW

3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL:  -0.04000000 Waves

2022.04.20 17:00 [2016955] smart account 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL > SELF 0.00000000 Waves

{ "type": 13, "id": "QQgwnMjhLeCsVEBwnmSpkCYX32MGVkdZgASC5HfiUXW", "fee": 4000000, "feeAssetId": null, "timestamp": 1650463217499, "version": 2, "chainId": 84, "sender": "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL", "senderPublicKey": "G6aSmaqLJ4p7jzm7BnQcZuqa2NRRLVtzqdYNjYErnEZZ", "proofs": [ "3SNDT2DRnvLcYeHLmE12Kw8E8ipx3EJKKtYp1bGQuvg33n3mhV54oN3uWcefSybYyCnT83G9nr7DWxkmJ2jsqVc7" ], "script": "base64:AAIFAAAAAAAAADUIAhIFCgMICAgSBAoCCAgSBQoDCAgIEgMKAQgSBAoCCAESBQoDCAgIEgUKAwgICBIECgIICAAAABMAAAAABENPTFMAAAAAAAAABAAAAAAABFJPV1MAAAAAAAAABAAAAAAACW5mdERvbWFpbgIAAAAYaHR0cHM6Ly9uZnQuZ3JpZGdhbmcuaW8vAAAAABVhZGRPd25lckFuZEFtb3VudEZ1bmMCAAAAEWFkZE93bmVyQW5kQW1vdW50AAAAAAVERUJVRwYAAAAAEW1pbkZvclNhbGVXYXZsZXRzAAAAAAAF9eEAAAAAABBtaW5QdXJjaGFzZVByaWNlAAAAAAAAD0JAAAAAAARkYXBwAgAAACMzTjdKNm1NTWtqVlZpQlJFejl5NTNKbWNYN3I3S1pSWFFwTAAAAAALZGFwcEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAARkYXBwAAAAABFob2xkaW5nc1B1YmxpY0tleQIAAAAsQXlBd1diTVBNN2E0VllrbjFiaEVCZnRDNVdaZ2Z2VVhncllEZTk4bXZMc3YAAAAACGhvbGRpbmdzAgAA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QAAAAhjYWxsZXJJZAUAAAAIaG9sZGluZ3MJAAACAAAAAQIAAAAmVGhpcyBjYW4gb25seSBiZSB0cmlnZ2VyaW5nIGludGVybmFsbHkJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAdvd25lcklkAgAAAAdfaGFuZGxlBQAAAAZoYW5kbGUFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAADAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkGCQAAAAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAD2hvbGRpbmdzQWRkcmVzcwYJAAAAAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQUAAAALZGFwcEFkZHJlc3NKy/Tl", "height": 2016955, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FxUFGsw1FwwuA9TEjrbyEDnpo4CLPca9tbDKrBHmhHGy Next: 5iTDoEFBk4VZKk9z8DpDarYmtf9EkqZHNNZdWKBW8Aao Diff:
OldNewDifferences
143143
144144
145145 @Callable(i)
146-func evolve (x,y,gen,coordsToBurn) = {
146+func evolve (x,y,gen) = {
147147 let callerId = toBase58String(i.caller.bytes)
148148 let transactionId = toBase58String(i.transactionId)
149- let $t041554518 = claimSquare(x, y, gen, callerId, transactionId)
150- let asset = $t041554518._1
151- let assetId = $t041554518._2
152- let assetUrl = $t041554518._3
153- let dataKeyPrefix = $t041554518._4
154- let burnTransactions = {
155- let $l = split(coordsToBurn, "|")
156- let $s = size($l)
157- let $acc0 = nil
158- func $f0_1 ($a,$i) = if (($i >= $s))
159- then $a
160- else burnFold($a, $l[$i])
149+ let $t041334229 = claimSquare(x, y, gen, callerId, transactionId)
150+ let asset = $t041334229._1
151+ let assetId = $t041334229._2
152+ let assetUrl = $t041334229._3
153+ let dataKeyPrefix = $t041334229._4
154+ (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, callerId, gen) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)])
155+ }
161156
162- func $f0_2 ($a,$i) = if (($i >= $s))
163- then $a
164- else throw("List size exceeds 110")
165157
166- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110)
167- }
168- ((burnTransactions ++ getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, callerId, gen)) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)])
158+
159+@Callable(i)
160+func burnForEvolve (coordsToBurn) = {
161+ let $l = split(coordsToBurn, "|")
162+ let $s = size($l)
163+ let $acc0 = nil
164+ func $f0_1 ($a,$i) = if (($i >= $s))
165+ then $a
166+ else burnFold($a, $l[$i])
167+
168+ func $f0_2 ($a,$i) = if (($i >= $s))
169+ then $a
170+ else throw("List size exceeds 110")
171+
172+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110)
169173 }
170174
171175
227231 then throw("This can only be triggering internally")
228232 else {
229233 let transactionId = toBase58String(i.transactionId)
230- let $t064606565 = claimSquare(x, y, "1", desinationAddress, transactionId)
231- let asset = $t064606565._1
232- let assetId = $t064606565._2
233- let assetUrl = $t064606565._3
234- let dataKeyPrefix = $t064606565._4
234+ let $t064556560 = claimSquare(x, y, "1", desinationAddress, transactionId)
235+ let asset = $t064556560._1
236+ let assetId = $t064556560._2
237+ let assetUrl = $t064556560._3
238+ let dataKeyPrefix = $t064556560._4
235239 let assetIdStr = toBase58String(assetId)
236240 (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, desinationAddress, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)])
237241 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let COLS = 1024
55
66 let ROWS = 1024
77
88 let nftDomain = "https://nft.gridgang.io/"
99
1010 let addOwnerAndAmountFunc = "addOwnerAndAmount"
1111
1212 let DEBUG = true
1313
1414 let minForSaleWavlets = 100000000
1515
1616 let minPurchasePrice = 1000000
1717
1818 let dapp = "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL"
1919
2020 let dappAddress = Address(fromBase58String(dapp))
2121
2222 let holdingsPublicKey = "AyAwWbMPM7a4VYkn1bhEBftC5WZgfvUXgrYDe98mvLsv"
2323
2424 let holdings = "3MwPsLy9F1mUQrdP37sCAKvHuE5HvPE674Y"
2525
2626 let holdingsAddress = Address(fromBase58String(holdings))
2727
2828 func getAssetName (x,y) = ((x + ",") + y)
2929
3030
3131 func getDataKeyPrefix (x,y) = getAssetName(x, y)
3232
3333
3434 func getXYGenFromName (name) = {
3535 let parts = split(name, ",")
3636 let tuple = $Tuple2(parts[0], parts[1])
3737 tuple
3838 }
3939
4040
4141 func getDataKeyPrefixFromAssetName (name) = {
4242 let $t0906941 = getXYGenFromName(name)
4343 let x = $t0906941._1
4444 let y = $t0906941._2
4545 let prefix = getDataKeyPrefix(x, y)
4646 prefix
4747 }
4848
4949
5050 func claimSquare (x,y,gen,ownerId,transactionId) = {
5151 let resolvedXStr = x
5252 let resolvedYStr = y
5353 let resolvedGenStr = gen
5454 let assetName = getAssetName(resolvedXStr, resolvedYStr)
5555 let assetUrl = ((nftDomain + transactionId) + ".png")
5656 let asset = Issue(assetName, assetUrl, 1, 0, false)
5757 let assetId = calculateAssetId(asset)
5858 let dataKeyPrefix = getDataKeyPrefix(resolvedXStr, resolvedYStr)
5959 $Tuple4(asset, assetId, assetUrl, dataKeyPrefix)
6060 }
6161
6262
6363 func getTransactionEntries (prefix,assetId,asset,owner,gen) = [StringEntry((prefix + "_assetId"), assetId), StringEntry((prefix + "_asset"), asset), StringEntry((prefix + "_owner"), owner), StringEntry((prefix + "_gen"), gen)]
6464
6565
6666 func burnFold (accum,next) = {
6767 let resolvedNext = match next {
6868 case _: Unit =>
6969 "unset"
7070 case val: String =>
7171 val
7272 case _ =>
7373 throw("Match error")
7474 }
7575 if ((resolvedNext == "unset"))
7676 then accum
7777 else {
7878 let assetId = match getString(this, (resolvedNext + "_assetId")) {
7979 case _: Unit =>
8080 "unset"
8181 case val: String =>
8282 val
8383 case _ =>
8484 throw("Match error")
8585 }
8686 if ((assetId == "unset"))
8787 then accum
8888 else (accum ++ [Burn(fromBase58String(assetId), 1)])
8989 }
9090 }
9191
9292
9393 @Callable(i)
9494 func purchase (x,y,userText) = {
9595 let prefix = getDataKeyPrefix(x, y)
9696 let paymentAmount = valueOrElse(i.payments[0].amount, 0)
9797 let existingAssetId = match getString(this, (prefix + "_assetId")) {
9898 case _: Unit =>
9999 "unset"
100100 case err: String =>
101101 throw("This square has already been purchased")
102102 case _ =>
103103 throw("Match error")
104104 }
105105 if ((minPurchasePrice > paymentAmount))
106106 then throw((("You need to send at least " + toString(minPurchasePrice)) + "WAVLETS to purchase a square"))
107107 else {
108108 let ownerId = toBase58String(i.caller.bytes)
109109 let transactionId = toBase58String(i.transactionId)
110110 let $t028612956 = claimSquare(x, y, "1", ownerId, transactionId)
111111 let asset = $t028612956._1
112112 let assetId = $t028612956._2
113113 let assetUrl = $t028612956._3
114114 let dataKeyPrefix = $t028612956._4
115115 (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, "1") ++ [asset, StringEntry((ownerId + "_handle"), userText), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)])
116116 }
117117 }
118118
119119
120120
121121 @Callable(i)
122122 func autoBuy (x,y) = {
123123 let callerId = toBase58String(i.caller.bytes)
124124 if (if ((callerId != holdings))
125125 then (callerId != dapp)
126126 else false)
127127 then throw("This can only be triggering internally")
128128 else {
129129 let transactionId = toBase58String(i.transactionId)
130130 let $t034913587 = claimSquare(x, y, "1", holdings, transactionId)
131131 let asset = $t034913587._1
132132 let assetId = $t034913587._2
133133 let assetUrl = $t034913587._3
134134 let dataKeyPrefix = $t034913587._4
135135 let assetIdStr = toBase58String(assetId)
136136 let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [holdings, assetIdStr, 3], [AttachedPayment(unit, 0)])
137137 if ((res == res))
138138 then (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, holdings, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(holdingsAddress, 1, assetId)])
139139 else throw("Strict value is not equal to itself.")
140140 }
141141 }
142142
143143
144144
145145 @Callable(i)
146-func evolve (x,y,gen,coordsToBurn) = {
146+func evolve (x,y,gen) = {
147147 let callerId = toBase58String(i.caller.bytes)
148148 let transactionId = toBase58String(i.transactionId)
149- let $t041554518 = claimSquare(x, y, gen, callerId, transactionId)
150- let asset = $t041554518._1
151- let assetId = $t041554518._2
152- let assetUrl = $t041554518._3
153- let dataKeyPrefix = $t041554518._4
154- let burnTransactions = {
155- let $l = split(coordsToBurn, "|")
156- let $s = size($l)
157- let $acc0 = nil
158- func $f0_1 ($a,$i) = if (($i >= $s))
159- then $a
160- else burnFold($a, $l[$i])
149+ let $t041334229 = claimSquare(x, y, gen, callerId, transactionId)
150+ let asset = $t041334229._1
151+ let assetId = $t041334229._2
152+ let assetUrl = $t041334229._3
153+ let dataKeyPrefix = $t041334229._4
154+ (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, callerId, gen) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)])
155+ }
161156
162- func $f0_2 ($a,$i) = if (($i >= $s))
163- then $a
164- else throw("List size exceeds 110")
165157
166- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110)
167- }
168- ((burnTransactions ++ getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, callerId, gen)) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)])
158+
159+@Callable(i)
160+func burnForEvolve (coordsToBurn) = {
161+ let $l = split(coordsToBurn, "|")
162+ let $s = size($l)
163+ let $acc0 = nil
164+ func $f0_1 ($a,$i) = if (($i >= $s))
165+ then $a
166+ else burnFold($a, $l[$i])
167+
168+ func $f0_2 ($a,$i) = if (($i >= $s))
169+ then $a
170+ else throw("List size exceeds 110")
171+
172+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110)
169173 }
170174
171175
172176
173177 @Callable(i)
174178 func putForSale (assetId,amount) = {
175179 let callerId = toBase58String(i.caller.bytes)
176180 let assetData = match assetInfo(fromBase58String(assetId)) {
177181 case ass: Asset =>
178182 ass
179183 case _ =>
180184 throw("Asset not found")
181185 }
182186 let dataPrefix = getDataKeyPrefixFromAssetName(assetData.name)
183187 let ownerId = match getString(this, (dataPrefix + "_owner")) {
184188 case s: String =>
185189 s
186190 case _ =>
187191 throw("Owner not found in data")
188192 }
189193 if ((minForSaleWavlets > amount))
190194 then throw("Amount needs to be more than 1 wave")
191195 else if (if ((callerId != ownerId))
192196 then (callerId != holdings)
193197 else false)
194198 then throw("You are not able to put this asset up for sale")
195199 else {
196200 let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [callerId, assetId, amount], [AttachedPayment(unit, 0)])
197201 if ((res == res))
198202 then [ScriptTransfer(holdingsAddress, 1, fromBase58String(assetId))]
199203 else throw("Strict value is not equal to itself.")
200204 }
201205 }
202206
203207
204208
205209 @Callable(i)
206210 func finalizeSale (assetId,ownerId,userText) = {
207211 let callerId = toBase58String(i.caller.bytes)
208212 if ((callerId != holdings))
209213 then throw("This can only be triggering internally")
210214 else {
211215 let prefix = match assetInfo(fromBase58String(assetId)) {
212216 case asset: Asset =>
213217 asset.name
214218 case _ =>
215219 throw("Can't find asset")
216220 }
217221 [StringEntry((prefix + "_owner"), ownerId), StringEntry((ownerId + "_handle"), userText)]
218222 }
219223 }
220224
221225
222226
223227 @Callable(i)
224228 func adminPromotionPurchase (x,y,desinationAddress) = {
225229 let callerId = toBase58String(i.caller.bytes)
226230 if ((callerId != holdings))
227231 then throw("This can only be triggering internally")
228232 else {
229233 let transactionId = toBase58String(i.transactionId)
230- let $t064606565 = claimSquare(x, y, "1", desinationAddress, transactionId)
231- let asset = $t064606565._1
232- let assetId = $t064606565._2
233- let assetUrl = $t064606565._3
234- let dataKeyPrefix = $t064606565._4
234+ let $t064556560 = claimSquare(x, y, "1", desinationAddress, transactionId)
235+ let asset = $t064556560._1
236+ let assetId = $t064556560._2
237+ let assetUrl = $t064556560._3
238+ let dataKeyPrefix = $t064556560._4
235239 let assetIdStr = toBase58String(assetId)
236240 (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, desinationAddress, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)])
237241 }
238242 }
239243
240244
241245
242246 @Callable(i)
243247 func adminSetHandle (ownerId,handle) = {
244248 let callerId = toBase58String(i.caller.bytes)
245249 if ((callerId != holdings))
246250 then throw("This can only be triggering internally")
247251 else [StringEntry((ownerId + "_handle"), handle)]
248252 }
249253
250254
251255 @Verifier(tx)
252256 func verify () = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
253257 then true
254258 else (addressFromPublicKey(tx.senderPublicKey) == holdingsAddress))
255259 then true
256260 else (addressFromPublicKey(tx.senderPublicKey) == dappAddress)
257261

github/deemru/w8io/026f985 
42.10 ms