tx · 4raLwTWLsVguHmFSxwS9GvFQH2AimVECtwfGwf1cUHZv 3MyafuLWBUqVEv5VcaJJPBVJvTwTxNh4tPX: -0.01400000 Waves 2022.03.30 17:48 [1986800] smart account 3MyafuLWBUqVEv5VcaJJPBVJvTwTxNh4tPX > SELF 0.00000000 Waves
{ "type": 13, "id": "4raLwTWLsVguHmFSxwS9GvFQH2AimVECtwfGwf1cUHZv", "fee": 1400000, "feeAssetId": null, "timestamp": 1648651720681, "version": 2, "chainId": 84, "sender": "3MyafuLWBUqVEv5VcaJJPBVJvTwTxNh4tPX", "senderPublicKey": "4cHkGAqfd5S8yGnVB6eHDYTeE5ciLkQ7PuGAXFzjf7z5", "proofs": [ "5RreAjHdL58qFUdUFRkDi2eJHTkVd63XU77dtFUMvnFzPYoBtbyCcBWYDoT3f3pDcNTHtA4iYwRGGzFhuoL9hAmp" ], "script": "base64:AAIFAAAAAAAAAC4IAhIDCgEIEgQKAggIEgQKAgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgQKAggIAAAAHAAAAAATTkZUSXNzdWVyZmVlUGVyY2VudAAAAAAAAAAAAwAAAAANc2NvbmV4RGFwcEtleQIAAAAKc2NvbmV4RGFwcAAAAAAJb3JhY2xlS2V5AgAAAAlvcmFjbGVLZXkBAAAABmdldFN0cgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAAAAAABm9yYWNsZQkBAAAABmdldFN0cgAAAAEFAAAACW9yYWNsZUtleQAAAAAJb3JhY2xlRmVlCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQmAAAAAQUAAAAGb3JhY2xlAgAAACtDb2xsZWN0aW9ucyBkYXBwIGRvZXNudCBoYXZlIG9yYWNsZSBkZWZpbmVkAAAAAApzY29uZXhEYXBwCQEA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OYXRpdmUoMTA2MikAAAABBQAAAAhjZXJ0RGFwcAIAAAAKY3JlYXRlQ2VydAkABEwAAAACBQAAAAliaWRBdXRob3IJAARMAAAAAgUAAAAHYXNzZXRJZAkABEwAAAACBQAAAA1BcnRpc3RBZGRyZXNzBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAADcmVzBQAAAANyZXMFAAAABmJ1eVJlcwkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5adNWVQ==", "height": 1986800, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HEjUzNkgbECwzKKVyCj5QYQsYibrQTCrwNRf6RCda8Fa Next: CiaCqjWMLMbmVDCs9rQcL57v9TuzQjXp4PZV2GBQ6TMc Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let NFTIssuerfeePercent = 3 | |
5 | 5 | ||
6 | 6 | let sconexDappKey = "sconexDapp" | |
7 | 7 | ||
8 | 8 | let oracleKey = "oracleKey" | |
9 | 9 | ||
10 | 10 | func getStr (key) = match getString(this, key) { | |
11 | 11 | case b: String => | |
12 | 12 | b | |
13 | 13 | case _ => | |
14 | 14 | "" | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | let oracle = getStr(oracleKey) | |
19 | 19 | ||
20 | 20 | let oracleFee = valueOrErrorMessage(addressFromString(oracle), "Collections dapp doesnt have oracle defined") | |
21 | 21 | ||
22 | 22 | let sconexDapp = getStringValue(oracleFee, sconexDappKey) | |
23 | 23 | ||
24 | 24 | let collectionsDapp = valueOrErrorMessage(getString(oracleFee, "collectionsDapp"), "collectionDapp not found") | |
25 | 25 | ||
26 | 26 | let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found") | |
27 | 27 | ||
28 | 28 | let certDapp = valueOrErrorMessage(getString(oracleFee, "certDapp"), "certDapp not found") | |
29 | 29 | ||
30 | 30 | let feeDapp = valueOrErrorMessage(getString(oracleFee, "feeDapp"), "feeDapp not found") | |
31 | 31 | ||
32 | 32 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | let USDNAssetId = fromBase58String(getStringValue(oracleFee, "USDNAssetId")) | |
36 | 36 | ||
37 | 37 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(USDNAssetId))) | |
38 | 38 | ||
39 | 39 | let userDapp = value(addressFromString(valueOrErrorMessage(getString(oracleFee, "userDapp"), "userdapp not found"))) | |
40 | 40 | ||
41 | 41 | let auctionType1 = "BIDTYPE" | |
42 | 42 | ||
43 | 43 | let auctionType2 = "TRADITIONAL" | |
44 | 44 | ||
45 | 45 | let auctionType3 = "DIRECT" | |
46 | 46 | ||
47 | 47 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func keyAuctionType (auctionId) = (("auction_" + auctionId) + "_actionType") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getStrfromMain (key) = match getString(addressFromStringValue(sconexDapp), key) { | |
54 | 54 | case b: String => | |
55 | 55 | b | |
56 | 56 | case _ => | |
57 | 57 | "" | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getIntfromMain (key) = match getInteger(addressFromStringValue(sconexDapp), key) { | |
62 | 62 | case b: Int => | |
63 | 63 | b | |
64 | 64 | case _ => | |
65 | 65 | 0 | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func tryGetInteger (key) = { | |
70 | 70 | let val = match getInteger(this, key) { | |
71 | 71 | case b: Int => | |
72 | 72 | b | |
73 | 73 | case _ => | |
74 | 74 | 0 | |
75 | 75 | } | |
76 | 76 | val | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func tryGetString (key) = { | |
81 | 81 | let val = match getString(this, key) { | |
82 | 82 | case b: String => | |
83 | 83 | b | |
84 | 84 | case _ => | |
85 | 85 | "" | |
86 | 86 | } | |
87 | 87 | val | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func getNFTIssuer (assetId) = { | |
92 | 92 | let myassetinfo = value(assetInfo(assetId)) | |
93 | 93 | if ((myassetinfo.issuer == addressFromStringValue(sconexDapp))) | |
94 | 94 | then "true" | |
95 | 95 | else "" | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getNFTArtist (assetId) = { | |
100 | 100 | let ArtistAddress = match getString(addressFromStringValue(sconexDapp), ("nft_issued_" + assetId)) { | |
101 | 101 | case b: String => | |
102 | 102 | b | |
103 | 103 | case _ => | |
104 | 104 | "" | |
105 | 105 | } | |
106 | 106 | ArtistAddress | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getArtId (assetId) = { | |
111 | 111 | let ArtistAddress = match getString(addressFromStringValue(sconexDapp), ("nft_artId_" + assetId)) { | |
112 | 112 | case b: String => | |
113 | 113 | b | |
114 | 114 | case _ => | |
115 | 115 | "" | |
116 | 116 | } | |
117 | 117 | ArtistAddress | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func acceptedAssetIds (assetId) = if ((assetId != toBase58String(USDNAssetId))) | |
122 | 122 | then throw("Only USDN accepted") | |
123 | 123 | else true | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | @Callable(i) | |
127 | 127 | func initDapp (dappKey) = if ((i.caller != this)) | |
128 | 128 | then throw("You cannot do this action") | |
129 | 129 | else if ((oracle != "")) | |
130 | 130 | then throw("oracle already set, you can't override!") | |
131 | 131 | else [StringEntry(oracleKey, dappKey)] | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(i) | |
136 | 136 | func transferNft (nftID,receiveNFT) = if ((i.caller == this)) | |
137 | 137 | then [ScriptTransfer(addressFromStringValue(receiveNFT), 1, fromBase58String(nftID))] | |
138 | 138 | else throw("Only the dApp can transfer NFT's") | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(i) | |
143 | 143 | func initAuction (startPrice,auctionType) = { | |
144 | 144 | let auctionId = toBase58String(i.transactionId) | |
145 | 145 | if ((size(i.payments) == 0)) | |
146 | 146 | then throw("No payment attached") | |
147 | 147 | else if ((size(i.payments) >= 2)) | |
148 | 148 | then throw("Too many payments attached") | |
149 | 149 | else if ((i.payments[0].amount != 1)) | |
150 | 150 | then throw("No nft attached to the payment") | |
151 | 151 | else { | |
152 | 152 | let pmt = value(i.payments[0]) | |
153 | 153 | let assetId = value(pmt.assetId) | |
154 | 154 | let minSellSconex = currentCertificationPrice | |
155 | 155 | if ((minSellSconex > startPrice)) | |
156 | 156 | then throw(("Wrong minimum sell price " + toString(minSellSconex))) | |
157 | 157 | else { | |
158 | 158 | let asset = getNFTIssuer(assetId) | |
159 | 159 | if ((asset == "")) | |
160 | 160 | then throw("You can only sell an NFT created on SCONE Marketplace") | |
161 | 161 | else if (!(containsElement([auctionType1, auctionType3], auctionType))) | |
162 | 162 | then throw("We don't know this auction type") | |
163 | 163 | else [StringEntry((("auction_" + auctionId) + "_status"), "open"), StringEntry((("auction_" + toBase58String(assetId)) + "_last"), auctionId), StringEntry((("auction_" + auctionId) + "_assetName"), asset), StringEntry((("auction_" + auctionId) + "_assetId"), toBase58String(assetId)), IntegerEntry((("auction_" + auctionId) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + auctionId) + "_owner"), toString(i.caller)), IntegerEntry((("auction_" + auctionId) + "_startPrice"), startPrice), StringEntry(keyAuctionType(auctionId), auctionType), StringEntry((((("address_" + toString(i.caller)) + "_auction_") + auctionId) + "_lockedNFT"), toBase58String(assetId))] | |
164 | 164 | } | |
165 | 165 | } | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(i) | |
171 | 171 | func cancelAuction (auctionId) = { | |
172 | 172 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
173 | 173 | if ((toString(i.caller) != auctionOwner)) | |
174 | 174 | then throw("Only allowed to auction owner") | |
175 | 175 | else if ((tryGetString((("auction_" + auctionId) + "_status")) != "open")) | |
176 | 176 | then throw("auction is close") | |
177 | 177 | else [StringEntry((("auction_" + auctionId) + "_status"), "cancelled"), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT")), ScriptTransfer(i.caller, 1, fromBase58String(getStringValue(this, (("auction_" + auctionId) + "_assetId"))))] | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | ||
182 | 182 | @Callable(i) | |
183 | 183 | func placeBid (auctionId) = { | |
184 | 184 | let pmt = value(i.payments[0]) | |
185 | 185 | let amount = pmt.amount | |
186 | 186 | let bidId = toBase58String(i.transactionId) | |
187 | 187 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
188 | 188 | let PayAssetId = if (!(isDefined(pmt.assetId))) | |
189 | 189 | then throw("Only USDN is accepted!") | |
190 | 190 | else toBase58String(value(pmt.assetId)) | |
191 | 191 | if (!(acceptedAssetIds(PayAssetId))) | |
192 | 192 | then throw("Auction does only support USDN payments") | |
193 | 193 | else { | |
194 | 194 | let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice")) | |
195 | 195 | if ((minPrice > amount)) | |
196 | 196 | then throw(("The minimal initial price is set as " + toString(minPrice))) | |
197 | 197 | else { | |
198 | 198 | let auctionType = getStringByKey(keyAuctionType(auctionId)) | |
199 | 199 | if ((auctionType == auctionType1)) | |
200 | 200 | then [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(amount)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount"), amount), StringEntry(((((("address_" + toString(i.caller)) + "_auction_") + auctionId) + "_bid_") + bidId), assetId), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "open")] | |
201 | 201 | else throw("Not a BidType auction!") | |
202 | 202 | } | |
203 | 203 | } | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | ||
208 | 208 | @Callable(i) | |
209 | 209 | func directBuy (auctionId) = { | |
210 | 210 | let pmt = value(i.payments[0]) | |
211 | 211 | let amount = pmt.amount | |
212 | 212 | let bidId = toBase58String(i.transactionId) | |
213 | 213 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
214 | 214 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
215 | 215 | let bidAmount = amount | |
216 | 216 | let bidAuthor = toString(i.caller) | |
217 | 217 | let PayAssetId = if (!(isDefined(pmt.assetId))) | |
218 | 218 | then throw("Only USDN is accepted!") | |
219 | 219 | else toBase58String(value(pmt.assetId)) | |
220 | 220 | if (!(acceptedAssetIds(PayAssetId))) | |
221 | 221 | then throw("Auction does only support USDN payments") | |
222 | 222 | else { | |
223 | 223 | let minPrice = tryGetInteger((("auction_" + auctionId) + "_startPrice")) | |
224 | 224 | if ((minPrice != amount)) | |
225 | 225 | then throw(("The exact price is set as " + toString(minPrice))) | |
226 | 226 | else { | |
227 | 227 | let auctionType = getStringByKey(keyAuctionType(auctionId)) | |
228 | 228 | if ((auctionType == auctionType3)) | |
229 | 229 | then { | |
230 | 230 | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
231 | 231 | let newRecordPrice = max([recordPrice, bidAmount]) | |
232 | 232 | let ArtistAddress = getNFTArtist(assetId) | |
233 | 233 | let artId = getArtId(assetId) | |
234 | 234 | let transferres = invoke(this, "transferNft", [assetId, bidAuthor], nil) | |
235 | 235 | if ((transferres == transferres)) | |
236 | 236 | then { | |
237 | 237 | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "payFeeResell", [artId, auctionOwner], [AttachedPayment(USDNAssetId, amount)]) | |
238 | 238 | if ((invokeTeamFeeSplit == invokeTeamFeeSplit)) | |
239 | 239 | then { | |
240 | 240 | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_author"), toString(i.caller)), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "finished"), StringEntry((("auction_" + auctionId) + "_status"), "finished"), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + auctionId) + "_finalPrice"), bidAmount), IntegerEntry((assetId + "_recordPrice"), newRecordPrice), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT"))] | |
241 | 241 | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil) | |
242 | 242 | if ((res == res)) | |
243 | 243 | then buyRes | |
244 | 244 | else throw("Strict value is not equal to itself.") | |
245 | 245 | } | |
246 | 246 | else throw("Strict value is not equal to itself.") | |
247 | 247 | } | |
248 | 248 | else throw("Strict value is not equal to itself.") | |
249 | 249 | } | |
250 | 250 | else throw("Not a directBuy auction!") | |
251 | 251 | } | |
252 | 252 | } | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | ||
257 | 257 | @Callable(i) | |
258 | 258 | func cancelBid (auctionId,bidId) = { | |
259 | 259 | let assetId = getStringValue(this, (("auction_" + auctionId) + "_assetId")) | |
260 | 260 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
261 | 261 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
262 | 262 | if (if ((toString(i.caller) != bidAuthor)) | |
263 | 263 | then (i.caller != this) | |
264 | 264 | else false) | |
265 | 265 | then throw("Only allowed to the bid author or admin") | |
266 | 266 | else if ((tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) != "open")) | |
267 | 267 | then throw("bid is not open") | |
268 | 268 | else [StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "cancelled"), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), ScriptTransfer(Address(fromBase58String(bidAuthor)), bidAmount, USDNAssetId)] | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Callable(i) | |
274 | 274 | func acceptBid (auctionId,bidId) = { | |
275 | 275 | let auctionOwner = tryGetString((("auction_" + auctionId) + "_owner")) | |
276 | 276 | let bidAuthor = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_author")) | |
277 | 277 | let bidAmount = tryGetInteger((((("auction_" + auctionId) + "_bid_") + bidId) + "_amount")) | |
278 | 278 | let bidStatus = tryGetString((((("auction_" + auctionId) + "_bid_") + bidId) + "_status")) | |
279 | 279 | let assetId = tryGetString((("auction_" + auctionId) + "_assetId")) | |
280 | 280 | if ((toString(i.caller) != auctionOwner)) | |
281 | 281 | then throw("Only allowed to auction owner") | |
282 | 282 | else if ((bidStatus != "open")) | |
283 | 283 | then throw("Bid was cancelled and cannot be accepted") | |
284 | 284 | else { | |
285 | 285 | let recordPrice = tryGetInteger((assetId + "_recordPrice")) | |
286 | 286 | let newRecordPrice = max([recordPrice, bidAmount]) | |
287 | 287 | let ArtistAddress = getNFTArtist(assetId) | |
288 | 288 | let artId = getArtId(assetId) | |
289 | 289 | let invokeTeamFeeSplit = invoke(valueOrErrorMessage(addressFromString(feeDapp), (feeDapp + " not found")), "payFeeResell", [artId, auctionOwner], [AttachedPayment(USDNAssetId, bidAmount)]) | |
290 | 290 | if ((invokeTeamFeeSplit == invokeTeamFeeSplit)) | |
291 | 291 | then { | |
292 | 292 | let transferres = invoke(this, "transferNft", [assetId, bidAuthor], nil) | |
293 | 293 | if ((transferres == transferres)) | |
294 | 294 | then { | |
295 | 295 | let buyRes = [StringEntry((((("auction_" + auctionId) + "_bid_") + bidId) + "_status"), "finished"), StringEntry((("auction_" + auctionId) + "_status"), "finished"), StringEntry((((("assetId_" + assetId) + "_bid_") + bidId) + "_data"), (((((("{\"auctionId\": \"" + auctionId) + "\", \"author\": \"") + toString(i.caller)) + "\", \"amount\": \"") + toString(bidAmount)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + auctionId) + "_finalPrice"), bidAmount), IntegerEntry((assetId + "_recordPrice"), newRecordPrice), DeleteEntry(((((("address_" + bidAuthor) + "_auction_") + auctionId) + "_bid_") + bidId)), DeleteEntry((((("address_" + auctionOwner) + "_auction_") + auctionId) + "_lockedNFT"))] | |
296 | 296 | let res = invoke(addressFromStringValue(certDapp), "createCert", [bidAuthor, assetId, ArtistAddress], nil) | |
297 | 297 | if ((res == res)) | |
298 | 298 | then buyRes | |
299 | 299 | else throw("Strict value is not equal to itself.") | |
300 | 300 | } | |
301 | 301 | else throw("Strict value is not equal to itself.") | |
302 | 302 | } | |
303 | 303 | else throw("Strict value is not equal to itself.") | |
304 | 304 | } | |
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 47.73 ms ◑