tx · 5iTDoEFBk4VZKk9z8DpDarYmtf9EkqZHNNZdWKBW8Aao 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL: -0.04000000 Waves 2022.04.20 21:12 [2017212] smart account 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL > SELF 0.00000000 Waves
{ "type": 13, "id": "5iTDoEFBk4VZKk9z8DpDarYmtf9EkqZHNNZdWKBW8Aao", "fee": 4000000, "feeAssetId": null, "timestamp": 1650478376422, "version": 2, "chainId": 84, "sender": "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL", "senderPublicKey": "G6aSmaqLJ4p7jzm7BnQcZuqa2NRRLVtzqdYNjYErnEZZ", "proofs": [ "5zxgt8D1yZ87apzGto6p7Fp5uE4Fguqq4AZmoQ8wRNxCG4orDVQgZVxB32c5QQKizayZp9vQMcurgF8SwpFCGkkq" ], "script": "base64:AAIFAAAAAAAAADIIAhIFCgMICAgSBAoCCAgSBwoFCAgICAgSBAoCCAESBQoDCAgIEgUKAwgICBIECgIICAAAABMAAAAABENPTFMAAAAAAAAABAAAAAAABFJPV1MAAAAAAAAABAAAAAAACW5mdERvbWFpbgIAAAAYaHR0cHM6Ly9uZnQuZ3JpZGdhbmcuaW8vAAAAABVhZGRPd25lckFuZEFtb3VudEZ1bmMCAAAAEWFkZE93bmVyQW5kQW1vdW50AAAAAAVERUJVRwYAAAAAEW1pbkZvclNhbGVXYXZsZXRzAAAAAAAF9eEAAAAAABBtaW5QdXJjaGFzZVByaWNlAAAAAAAAD0JAAAAAAARkYXBwAgAAACMzTjdKNm1NTWtqVlZpQlJFejl5NTNKbWNYN3I3S1pSWFFwTAAAAAALZGFwcEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAARkYXBwAAAAABFob2xkaW5nc1B1YmxpY0tleQIAAAAsQXlBd1diTVBNN2E0VllrbjFiaEVCZnRDNVdaZ2Z2VVhncllEZTk4bXZMc3YAAAAACGhvbGRpbmdzAgAAACM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UPSVZg==", "height": 2017212, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: QQgwnMjhLeCsVEBwnmSpkCYX32MGVkdZgASC5HfiUXW Next: BADGqBX489kkRwiCmkk9SSNoHsJVC4End1wrhtSeNN3g Diff:
Old | New | Differences | |
---|---|---|---|
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(i) | |
146 | - | func evolve (x,y,gen) = { | |
146 | + | func evolve (x,y,gen,ownerId,coordsToBurn) = { | |
147 | 147 | let callerId = toBase58String(i.caller.bytes) | |
148 | - | let transactionId = toBase58String(i.transactionId) | |
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 | - | } | |
156 | - | ||
157 | - | ||
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) | |
148 | + | if ((callerId != holdings)) | |
149 | + | then throw("This can only be triggering internally") | |
150 | + | else { | |
151 | + | let transactionId = toBase58String(i.transactionId) | |
152 | + | let $t042654360 = claimSquare(x, y, gen, ownerId, transactionId) | |
153 | + | let asset = $t042654360._1 | |
154 | + | let assetId = $t042654360._2 | |
155 | + | let assetUrl = $t042654360._3 | |
156 | + | let dataKeyPrefix = $t042654360._4 | |
157 | + | (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, gen) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]) | |
158 | + | } | |
173 | 159 | } | |
174 | 160 | ||
175 | 161 | ||
231 | 217 | then throw("This can only be triggering internally") | |
232 | 218 | else { | |
233 | 219 | let transactionId = toBase58String(i.transactionId) | |
234 | - | let $ | |
235 | - | let asset = $ | |
236 | - | let assetId = $ | |
237 | - | let assetUrl = $ | |
238 | - | let dataKeyPrefix = $ | |
220 | + | let $t062416346 = claimSquare(x, y, "1", desinationAddress, transactionId) | |
221 | + | let asset = $t062416346._1 | |
222 | + | let assetId = $t062416346._2 | |
223 | + | let assetUrl = $t062416346._3 | |
224 | + | let dataKeyPrefix = $t062416346._4 | |
239 | 225 | let assetIdStr = toBase58String(assetId) | |
240 | 226 | (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, desinationAddress, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]) | |
241 | 227 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let COLS = 1024 | |
5 | 5 | ||
6 | 6 | let ROWS = 1024 | |
7 | 7 | ||
8 | 8 | let nftDomain = "https://nft.gridgang.io/" | |
9 | 9 | ||
10 | 10 | let addOwnerAndAmountFunc = "addOwnerAndAmount" | |
11 | 11 | ||
12 | 12 | let DEBUG = true | |
13 | 13 | ||
14 | 14 | let minForSaleWavlets = 100000000 | |
15 | 15 | ||
16 | 16 | let minPurchasePrice = 1000000 | |
17 | 17 | ||
18 | 18 | let dapp = "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL" | |
19 | 19 | ||
20 | 20 | let dappAddress = Address(fromBase58String(dapp)) | |
21 | 21 | ||
22 | 22 | let holdingsPublicKey = "AyAwWbMPM7a4VYkn1bhEBftC5WZgfvUXgrYDe98mvLsv" | |
23 | 23 | ||
24 | 24 | let holdings = "3MwPsLy9F1mUQrdP37sCAKvHuE5HvPE674Y" | |
25 | 25 | ||
26 | 26 | let holdingsAddress = Address(fromBase58String(holdings)) | |
27 | 27 | ||
28 | 28 | func getAssetName (x,y) = ((x + ",") + y) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func getDataKeyPrefix (x,y) = getAssetName(x, y) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getXYGenFromName (name) = { | |
35 | 35 | let parts = split(name, ",") | |
36 | 36 | let tuple = $Tuple2(parts[0], parts[1]) | |
37 | 37 | tuple | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func getDataKeyPrefixFromAssetName (name) = { | |
42 | 42 | let $t0906941 = getXYGenFromName(name) | |
43 | 43 | let x = $t0906941._1 | |
44 | 44 | let y = $t0906941._2 | |
45 | 45 | let prefix = getDataKeyPrefix(x, y) | |
46 | 46 | prefix | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func claimSquare (x,y,gen,ownerId,transactionId) = { | |
51 | 51 | let resolvedXStr = x | |
52 | 52 | let resolvedYStr = y | |
53 | 53 | let resolvedGenStr = gen | |
54 | 54 | let assetName = getAssetName(resolvedXStr, resolvedYStr) | |
55 | 55 | let assetUrl = ((nftDomain + transactionId) + ".png") | |
56 | 56 | let asset = Issue(assetName, assetUrl, 1, 0, false) | |
57 | 57 | let assetId = calculateAssetId(asset) | |
58 | 58 | let dataKeyPrefix = getDataKeyPrefix(resolvedXStr, resolvedYStr) | |
59 | 59 | $Tuple4(asset, assetId, assetUrl, dataKeyPrefix) | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getTransactionEntries (prefix,assetId,asset,owner,gen) = [StringEntry((prefix + "_assetId"), assetId), StringEntry((prefix + "_asset"), asset), StringEntry((prefix + "_owner"), owner), StringEntry((prefix + "_gen"), gen)] | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func burnFold (accum,next) = { | |
67 | 67 | let resolvedNext = match next { | |
68 | 68 | case _: Unit => | |
69 | 69 | "unset" | |
70 | 70 | case val: String => | |
71 | 71 | val | |
72 | 72 | case _ => | |
73 | 73 | throw("Match error") | |
74 | 74 | } | |
75 | 75 | if ((resolvedNext == "unset")) | |
76 | 76 | then accum | |
77 | 77 | else { | |
78 | 78 | let assetId = match getString(this, (resolvedNext + "_assetId")) { | |
79 | 79 | case _: Unit => | |
80 | 80 | "unset" | |
81 | 81 | case val: String => | |
82 | 82 | val | |
83 | 83 | case _ => | |
84 | 84 | throw("Match error") | |
85 | 85 | } | |
86 | 86 | if ((assetId == "unset")) | |
87 | 87 | then accum | |
88 | 88 | else (accum ++ [Burn(fromBase58String(assetId), 1)]) | |
89 | 89 | } | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(i) | |
94 | 94 | func purchase (x,y,userText) = { | |
95 | 95 | let prefix = getDataKeyPrefix(x, y) | |
96 | 96 | let paymentAmount = valueOrElse(i.payments[0].amount, 0) | |
97 | 97 | let existingAssetId = match getString(this, (prefix + "_assetId")) { | |
98 | 98 | case _: Unit => | |
99 | 99 | "unset" | |
100 | 100 | case err: String => | |
101 | 101 | throw("This square has already been purchased") | |
102 | 102 | case _ => | |
103 | 103 | throw("Match error") | |
104 | 104 | } | |
105 | 105 | if ((minPurchasePrice > paymentAmount)) | |
106 | 106 | then throw((("You need to send at least " + toString(minPurchasePrice)) + "WAVLETS to purchase a square")) | |
107 | 107 | else { | |
108 | 108 | let ownerId = toBase58String(i.caller.bytes) | |
109 | 109 | let transactionId = toBase58String(i.transactionId) | |
110 | 110 | let $t028612956 = claimSquare(x, y, "1", ownerId, transactionId) | |
111 | 111 | let asset = $t028612956._1 | |
112 | 112 | let assetId = $t028612956._2 | |
113 | 113 | let assetUrl = $t028612956._3 | |
114 | 114 | let dataKeyPrefix = $t028612956._4 | |
115 | 115 | (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, "1") ++ [asset, StringEntry((ownerId + "_handle"), userText), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)]) | |
116 | 116 | } | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Callable(i) | |
122 | 122 | func autoBuy (x,y) = { | |
123 | 123 | let callerId = toBase58String(i.caller.bytes) | |
124 | 124 | if (if ((callerId != holdings)) | |
125 | 125 | then (callerId != dapp) | |
126 | 126 | else false) | |
127 | 127 | then throw("This can only be triggering internally") | |
128 | 128 | else { | |
129 | 129 | let transactionId = toBase58String(i.transactionId) | |
130 | 130 | let $t034913587 = claimSquare(x, y, "1", holdings, transactionId) | |
131 | 131 | let asset = $t034913587._1 | |
132 | 132 | let assetId = $t034913587._2 | |
133 | 133 | let assetUrl = $t034913587._3 | |
134 | 134 | let dataKeyPrefix = $t034913587._4 | |
135 | 135 | let assetIdStr = toBase58String(assetId) | |
136 | 136 | let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [holdings, assetIdStr, 3], [AttachedPayment(unit, 0)]) | |
137 | 137 | if ((res == res)) | |
138 | 138 | then (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, holdings, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(holdingsAddress, 1, assetId)]) | |
139 | 139 | else throw("Strict value is not equal to itself.") | |
140 | 140 | } | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(i) | |
146 | - | func evolve (x,y,gen) = { | |
146 | + | func evolve (x,y,gen,ownerId,coordsToBurn) = { | |
147 | 147 | let callerId = toBase58String(i.caller.bytes) | |
148 | - | let transactionId = toBase58String(i.transactionId) | |
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 | - | } | |
156 | - | ||
157 | - | ||
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) | |
148 | + | if ((callerId != holdings)) | |
149 | + | then throw("This can only be triggering internally") | |
150 | + | else { | |
151 | + | let transactionId = toBase58String(i.transactionId) | |
152 | + | let $t042654360 = claimSquare(x, y, gen, ownerId, transactionId) | |
153 | + | let asset = $t042654360._1 | |
154 | + | let assetId = $t042654360._2 | |
155 | + | let assetUrl = $t042654360._3 | |
156 | + | let dataKeyPrefix = $t042654360._4 | |
157 | + | (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, gen) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]) | |
158 | + | } | |
173 | 159 | } | |
174 | 160 | ||
175 | 161 | ||
176 | 162 | ||
177 | 163 | @Callable(i) | |
178 | 164 | func putForSale (assetId,amount) = { | |
179 | 165 | let callerId = toBase58String(i.caller.bytes) | |
180 | 166 | let assetData = match assetInfo(fromBase58String(assetId)) { | |
181 | 167 | case ass: Asset => | |
182 | 168 | ass | |
183 | 169 | case _ => | |
184 | 170 | throw("Asset not found") | |
185 | 171 | } | |
186 | 172 | let dataPrefix = getDataKeyPrefixFromAssetName(assetData.name) | |
187 | 173 | let ownerId = match getString(this, (dataPrefix + "_owner")) { | |
188 | 174 | case s: String => | |
189 | 175 | s | |
190 | 176 | case _ => | |
191 | 177 | throw("Owner not found in data") | |
192 | 178 | } | |
193 | 179 | if ((minForSaleWavlets > amount)) | |
194 | 180 | then throw("Amount needs to be more than 1 wave") | |
195 | 181 | else if (if ((callerId != ownerId)) | |
196 | 182 | then (callerId != holdings) | |
197 | 183 | else false) | |
198 | 184 | then throw("You are not able to put this asset up for sale") | |
199 | 185 | else { | |
200 | 186 | let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [callerId, assetId, amount], [AttachedPayment(unit, 0)]) | |
201 | 187 | if ((res == res)) | |
202 | 188 | then [ScriptTransfer(holdingsAddress, 1, fromBase58String(assetId))] | |
203 | 189 | else throw("Strict value is not equal to itself.") | |
204 | 190 | } | |
205 | 191 | } | |
206 | 192 | ||
207 | 193 | ||
208 | 194 | ||
209 | 195 | @Callable(i) | |
210 | 196 | func finalizeSale (assetId,ownerId,userText) = { | |
211 | 197 | let callerId = toBase58String(i.caller.bytes) | |
212 | 198 | if ((callerId != holdings)) | |
213 | 199 | then throw("This can only be triggering internally") | |
214 | 200 | else { | |
215 | 201 | let prefix = match assetInfo(fromBase58String(assetId)) { | |
216 | 202 | case asset: Asset => | |
217 | 203 | asset.name | |
218 | 204 | case _ => | |
219 | 205 | throw("Can't find asset") | |
220 | 206 | } | |
221 | 207 | [StringEntry((prefix + "_owner"), ownerId), StringEntry((ownerId + "_handle"), userText)] | |
222 | 208 | } | |
223 | 209 | } | |
224 | 210 | ||
225 | 211 | ||
226 | 212 | ||
227 | 213 | @Callable(i) | |
228 | 214 | func adminPromotionPurchase (x,y,desinationAddress) = { | |
229 | 215 | let callerId = toBase58String(i.caller.bytes) | |
230 | 216 | if ((callerId != holdings)) | |
231 | 217 | then throw("This can only be triggering internally") | |
232 | 218 | else { | |
233 | 219 | let transactionId = toBase58String(i.transactionId) | |
234 | - | let $ | |
235 | - | let asset = $ | |
236 | - | let assetId = $ | |
237 | - | let assetUrl = $ | |
238 | - | let dataKeyPrefix = $ | |
220 | + | let $t062416346 = claimSquare(x, y, "1", desinationAddress, transactionId) | |
221 | + | let asset = $t062416346._1 | |
222 | + | let assetId = $t062416346._2 | |
223 | + | let assetUrl = $t062416346._3 | |
224 | + | let dataKeyPrefix = $t062416346._4 | |
239 | 225 | let assetIdStr = toBase58String(assetId) | |
240 | 226 | (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, desinationAddress, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]) | |
241 | 227 | } | |
242 | 228 | } | |
243 | 229 | ||
244 | 230 | ||
245 | 231 | ||
246 | 232 | @Callable(i) | |
247 | 233 | func adminSetHandle (ownerId,handle) = { | |
248 | 234 | let callerId = toBase58String(i.caller.bytes) | |
249 | 235 | if ((callerId != holdings)) | |
250 | 236 | then throw("This can only be triggering internally") | |
251 | 237 | else [StringEntry((ownerId + "_handle"), handle)] | |
252 | 238 | } | |
253 | 239 | ||
254 | 240 | ||
255 | 241 | @Verifier(tx) | |
256 | 242 | func verify () = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
257 | 243 | then true | |
258 | 244 | else (addressFromPublicKey(tx.senderPublicKey) == holdingsAddress)) | |
259 | 245 | then true | |
260 | 246 | else (addressFromPublicKey(tx.senderPublicKey) == dappAddress) | |
261 | 247 |
github/deemru/w8io/026f985 50.90 ms ◑