tx · DBprtJswhpzuF2F6XhPXjReUK2E2YDMGgUCfkwqvCXym

3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib:  -0.01000000 Waves

2022.08.10 09:04 [2177962] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves

{ "type": 13, "id": "DBprtJswhpzuF2F6XhPXjReUK2E2YDMGgUCfkwqvCXym", "fee": 1000000, "feeAssetId": null, "timestamp": 1660111443883, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "4UYJ2V2XtcoKoANsKU6xGqdvCk6wHZM3Ux9zf6suhig4Tj2vbNKzVWMr4YagR3h12zvf4vvPfGAQYHV12qTVhmYH" ], "script": "base64:AAIFAAAAAAAAAC0IAhIGCgQICAgIEgQKAggBEgQKAggIEgQKAggIEgQKAggIEgQKAgQIEgMKAQgAAAAxAAAAAAtDT05GX0lOSVRfSwIAAAALY29uZmlnX2luaXQAAAAAC0NPTkZfQU1JTl9LAgAAAAxjb25maWdfYWRtaW4AAAAADUNPTkZfT1JBQ0xFX0sCAAAADWNvbmZpZ19vcmFjbGUAAAAAE0NPTkZfQVJUV09SS19EQVBQX0sCAAAAE2NvbmZpZ19hcnR3b3JrX2RhcHAAAAAAEUNPTkZfVVNFUlNfREFQUF9LAgAAABFjb25maWdfdXNlcnNfZGFwcAAAAAAQQ09ORl9GRUVfQVNTRVRfSwIAAAAQY29uZmlnX2ZlZV9hc3NldAAAAAARQ09ORl9GRUVfQU1PVU5UX0sCAAAAEWNvbmZpZ19mZWVfYW1vdW50AAAAAA5kYXBwUnVubmluZ0tleQIAAAAUY29uZl9kYXBwX2lzX3J1bm5pbmcAAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAABRjb25mX21haW50ZW5hbmNlX21zZwAAAAALZGFwcFJ1bm5pbmcJAQAAAA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Uc3RhdHVzAAAAAQUAAAAFbmZ0SWQFAAAAD3N0YXR1c19VTkxPQ0tFRAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAJcmVjaXBpZW50AAAAAAAAAAABCQACWQAAAAEFAAAABW5mdElkBQAAAANuaWwJAAACAAAAAQIAAAALTm90IGFsbG93ZWQAAAABaQEAAAAKYXBwUnVubmluZwAAAAIAAAAGaXNMaXZlAAAAB21lc3NhZ2UDCQEAAAABIQAAAAEFAAAABmlzSW5pdAkAAAIAAAABAgAAAA5kQXBwIG5vdCByZWFkeQMJAQAAAAlvd25lck9ubHkAAAABBQAAAAFpCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAA5kYXBwUnVubmluZ0tleQUAAAAGaXNMaXZlCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAEW1haW50ZW5hbmNlTVNHS2V5BQAAAAdtZXNzYWdlBQAAAANuaWwJAAACAAAAAQIAAAAiWW91IGFyZSBub3QgYWxsb3dlZCB0byBjaGFuZ2UgdGhpcwAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkDCQEAAAAJb3duZXJPbmx5AAAAAQUAAAABaQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAHoRwBw=", "height": 2177962, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CJn5khfJLxxh7qYCpVLEw1a1hxVan2BatSoJeCZGmHDv Next: F3CtFi1mVHhGXxrFsQoPhBYHNqhdtZBzewBAS9QFFAFC Diff:
OldNewDifferences
150150
151151 func getArtStatus (artId,addr) = {
152152 let status = getStringFromArtworksByKey(((("art_status_" + artId) + "_") + addr))
153- if (true)
154- then throw(("status = " + status))
155- else status
153+ status
156154 }
157155
158156
164162 func isValidArt (status) = if (true)
165163 then throw(("status = " + status))
166164 else if (if ((status != artFlagged))
167- then true
168- else (status != artIllegal))
169- then true
170- else (status != artPending)
165+ then (status != artIllegal)
166+ else false)
167+ then (status != artPending)
168+ else false
171169
172170
173171 @Callable(i)
195193 else if (!(containsElement(NETWORKS, network)))
196194 then throw("Network not supported")
197195 else {
198- let $t052665305 = idCallerDate(i)
199- let id = $t052665305._1
200- let caller = $t052665305._2
201- let date = $t052665305._3
202- let $t053085385 = isPayment(i)
203- let nft_payment = $t053085385._1
204- let nft_amount = $t053085385._2
205- let gateway_payment = $t053085385._3
206- let gateway_amount = $t053085385._4
196+ let $t052155254 = idCallerDate(i)
197+ let id = $t052155254._1
198+ let caller = $t052155254._2
199+ let date = $t052155254._3
200+ let $t052575334 = isPayment(i)
201+ let nft_payment = $t052575334._1
202+ let nft_amount = $t052575334._2
203+ let gateway_payment = $t052575334._3
204+ let gateway_amount = $t052575334._4
207205 if ((nft_amount != 1))
208206 then throw("No NFT attached")
209207 else {
212210 else false)
213211 then toBase58String(value(nft_payment.assetId))
214212 else throw("Only SIGN Art NFT accepted.")
215- let $t056945775 = getCreatorFromNFTid(nftId)
216- let creator = $t056945775._1
217- let artId = $t056945775._2
213+ let $t056435724 = getCreatorFromNFTid(nftId)
214+ let creator = $t056435724._1
215+ let artId = $t056435724._2
218216 if (!(isValidCreator(getCreatorStatus(creator))))
219217 then throw(("Creator status is :" + getCreatorStatus(creator)))
220218 else if (true)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let CONF_INIT_K = "config_init"
55
66 let CONF_AMIN_K = "config_admin"
77
88 let CONF_ORACLE_K = "config_oracle"
99
1010 let CONF_ARTWORK_DAPP_K = "config_artwork_dapp"
1111
1212 let CONF_USERS_DAPP_K = "config_users_dapp"
1313
1414 let CONF_FEE_ASSET_K = "config_fee_asset"
1515
1616 let CONF_FEE_AMOUNT_K = "config_fee_amount"
1717
1818 let dappRunningKey = "conf_dapp_is_running"
1919
2020 let maintenanceMSGKey = "conf_maintenance_msg"
2121
2222 let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true)
2323
2424 let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "")
2525
2626 let status_LOCKED = "LOCKED"
2727
2828 let status_UNLOCKED = "UNLOCKED"
2929
3030 let status_PENDING = "PENDING"
3131
3232 let status_CLOSED = "CLOSED"
3333
3434 let creatorRegistered = "REGISTERED"
3535
3636 let creatorVerified = "VERIFIED"
3737
3838 let artFlagged = "FLAGGED"
3939
4040 let artIllegal = "ILLEGAL"
4141
4242 let artPending = "CHANGE_REQUIRED"
4343
4444 let NETWORKS = ["ETH", "POLYGON"]
4545
4646 func keyNFTstatus (nftId) = (("nft_" + nftId) + "_status")
4747
4848
4949 func keyTransferNFT (nftId,txid) = ((("transfer_" + nftId) + "_") + txid)
5050
5151
5252 let keyFeeNonMinted = "cost_non_minted"
5353
5454 let keyFeeMinted = "cost_minted"
5555
5656 func getStringByKey (key) = valueOrElse(getString(this, key), "")
5757
5858
5959 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
6060
6161
6262 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
6363
6464
6565 let admin = value(addressFromString(getStringByKey(CONF_AMIN_K)))
6666
6767 let artworksDapp = value(addressFromString(getStringByKey(CONF_ARTWORK_DAPP_K)))
6868
6969 let usersDapp = value(addressFromString(getStringByKey(CONF_USERS_DAPP_K)))
7070
7171 let oracleAddr = value(addressFromString(getStringByKey(CONF_ORACLE_K)))
7272
7373 let feeAcceptedAsset = getStringByKey(CONF_FEE_ASSET_K)
7474
7575 let feeAcceptedAmountForSign = getIntegerByKey(CONF_FEE_AMOUNT_K)
7676
7777 func getStringFromUsersByKey (key) = valueOrElse(getString(usersDapp, key), "")
7878
7979
8080 func getStringFromArtworksByKey (key) = valueOrElse(getString(artworksDapp, key), "")
8181
8282
8383 func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleAddr, key), "Integer undefine or 0 in oracle")
8484
8585
8686 func assetIsValid (assetDetails) = if (if (if ((assetDetails.quantity == 1))
8787 then (assetDetails.decimals == 0)
8888 else false)
8989 then (assetDetails.reissuable == false)
9090 else false)
9191 then (assetDetails.issuer == artworksDapp)
9292 else false
9393
9494
9595 func isSignArtNFT (id) = {
9696 let assetDetails = value(assetInfo(id))
9797 assetIsValid(assetDetails)
9898 }
9999
100100
101101 func isPayment (i) = if ((size(i.payments) == 0))
102102 then throw("No payment attached")
103103 else {
104104 let nft_payment = value(i.payments[0])
105105 let nft_amount = value(nft_payment.amount)
106106 let gateway_payment = value(i.payments[1])
107107 let gateway_amount = value(gateway_payment.amount)
108108 $Tuple4(nft_payment, nft_amount, gateway_payment, gateway_amount)
109109 }
110110
111111
112112 let isInit = valueOrElse(getBooleanByKey(CONF_INIT_K), false)
113113
114114 func ownerOnly (i) = {
115115 let caller = toString(i.caller)
116116 let id = toBase58String(i.transactionId)
117117 let allowedArr = if (isInit)
118118 then [toString(admin), toString(this)]
119119 else [toString(this)]
120120 if (containsElement(allowedArr, caller))
121121 then true
122122 else false
123123 }
124124
125125
126126 func idCallerDate (i) = if (!(dappRunning))
127127 then throw(maintenanceMSG)
128128 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
129129
130130
131131 func getCreatorFromNFTid (nftid) = {
132132 let nftData = getStringFromArtworksByKey(("nft_" + nftid))
133133 let creator = split(nftData, "_")[6]
134134 let artId = split(nftData, "_")[5]
135135 $Tuple2(creator, artId)
136136 }
137137
138138
139139 func getCreatorERC20Addr (addr) = {
140140 let erc20Addr = getStringFromUsersByKey(("user_ERC20_" + addr))
141141 erc20Addr
142142 }
143143
144144
145145 func getCreatorStatus (addr) = {
146146 let status = getStringFromUsersByKey(("user_status_" + addr))
147147 status
148148 }
149149
150150
151151 func getArtStatus (artId,addr) = {
152152 let status = getStringFromArtworksByKey(((("art_status_" + artId) + "_") + addr))
153- if (true)
154- then throw(("status = " + status))
155- else status
153+ status
156154 }
157155
158156
159157 func isValidCreator (status) = if ((status == creatorRegistered))
160158 then true
161159 else (status == creatorVerified)
162160
163161
164162 func isValidArt (status) = if (true)
165163 then throw(("status = " + status))
166164 else if (if ((status != artFlagged))
167- then true
168- else (status != artIllegal))
169- then true
170- else (status != artPending)
165+ then (status != artIllegal)
166+ else false)
167+ then (status != artPending)
168+ else false
171169
172170
173171 @Callable(i)
174172 func init (adminAddr,oracleAddr,artworksDapp,usersDapp) = if (ownerOnly(i))
175173 then [StringEntry(CONF_AMIN_K, adminAddr), StringEntry(CONF_ORACLE_K, oracleAddr), StringEntry(CONF_ARTWORK_DAPP_K, artworksDapp), StringEntry(CONF_USERS_DAPP_K, usersDapp), BooleanEntry(CONF_INIT_K, true)]
176174 else throw("Not allowed")
177175
178176
179177
180178 @Callable(i)
181179 func setFee (feeAsset,feeAmount) = {
182180 let assetDetails = assetInfo(fromBase58String(feeAsset))
183181 let decimal = value(assetDetails).decimals
184182 let base10FeeAmount = pow(feeAmount, 0, 10, 1, decimal, HALFUP)
185183 if (ownerOnly(i))
186184 then [StringEntry(CONF_FEE_ASSET_K, feeAsset), IntegerEntry(CONF_FEE_AMOUNT_K, base10FeeAmount)]
187185 else throw("Not allowed")
188186 }
189187
190188
191189
192190 @Callable(i)
193191 func lock (recipient,network) = if (!(isInit))
194192 then throw("dApp not ready")
195193 else if (!(containsElement(NETWORKS, network)))
196194 then throw("Network not supported")
197195 else {
198- let $t052665305 = idCallerDate(i)
199- let id = $t052665305._1
200- let caller = $t052665305._2
201- let date = $t052665305._3
202- let $t053085385 = isPayment(i)
203- let nft_payment = $t053085385._1
204- let nft_amount = $t053085385._2
205- let gateway_payment = $t053085385._3
206- let gateway_amount = $t053085385._4
196+ let $t052155254 = idCallerDate(i)
197+ let id = $t052155254._1
198+ let caller = $t052155254._2
199+ let date = $t052155254._3
200+ let $t052575334 = isPayment(i)
201+ let nft_payment = $t052575334._1
202+ let nft_amount = $t052575334._2
203+ let gateway_payment = $t052575334._3
204+ let gateway_amount = $t052575334._4
207205 if ((nft_amount != 1))
208206 then throw("No NFT attached")
209207 else {
210208 let nftId = if (if (isDefined(nft_payment.assetId))
211209 then isSignArtNFT(value(nft_payment.assetId))
212210 else false)
213211 then toBase58String(value(nft_payment.assetId))
214212 else throw("Only SIGN Art NFT accepted.")
215- let $t056945775 = getCreatorFromNFTid(nftId)
216- let creator = $t056945775._1
217- let artId = $t056945775._2
213+ let $t056435724 = getCreatorFromNFTid(nftId)
214+ let creator = $t056435724._1
215+ let artId = $t056435724._2
218216 if (!(isValidCreator(getCreatorStatus(creator))))
219217 then throw(("Creator status is :" + getCreatorStatus(creator)))
220218 else if (true)
221219 then throw(toString(isValidArt(getArtStatus(artId, creator))))
222220 else if (!(isValidArt(getArtStatus(artId, creator))))
223221 then throw(("Artwork status is :" + getArtStatus(artId, creator)))
224222 else {
225223 let erc20Addr = getCreatorERC20Addr(creator)
226224 if ((size(erc20Addr) == 0))
227225 then throw("This artist didn't allow crosschain transfer")
228226 else {
229227 let nftStatus = getStringByKey(keyNFTstatus(nftId))
230228 if (if ((nftStatus == status_LOCKED))
231229 then true
232230 else (nftStatus == status_PENDING))
233231 then throw("NFT already locked")
234232 else {
235233 let gasFeeNonMinted = getIntegerByKeyFromOracle(keyFeeNonMinted)
236234 let gasFeeMinted = getIntegerByKeyFromOracle(keyFeeMinted)
237235 let isMinted = if ((nftStatus == status_UNLOCKED))
238236 then true
239237 else false
240238 if (if (!(isDefined(gateway_payment.assetId)))
241239 then true
242240 else (toBase58String(value(gateway_payment.assetId)) != feeAcceptedAsset))
243241 then throw("Wrong payment asset")
244242 else if (if (isMinted)
245243 then (gateway_amount > (gasFeeMinted + feeAcceptedAmountForSign))
246244 else false)
247245 then throw("Wrong payment amount to unlock")
248246 else if (if (!(isMinted))
249247 then (gateway_amount > (gasFeeNonMinted + feeAcceptedAmountForSign))
250248 else false)
251249 then throw("Wrong payment amount to mint and unlock")
252250 else [StringEntry(keyNFTstatus(nftId), status_PENDING), StringEntry(((keyTransferNFT(nftId, id) + "_") + status_PENDING), ((((((((((((recipient + "_") + network) + "_") + caller) + "_") + id) + "_") + value(assetInfo(value(nft_payment.assetId))).name) + "_") + toString(date)) + "_") + toString(height)))]
253251 }
254252 }
255253 }
256254 }
257255 }
258256
259257
260258
261259 @Callable(i)
262260 func confirmLock (nftId,transferId) = if (!(isInit))
263261 then throw("dApp not ready")
264262 else if (ownerOnly(i))
265263 then {
266264 let nftStatus = getStringByKey(keyNFTstatus(nftId))
267265 if ((nftStatus != status_PENDING))
268266 then throw("NFT not pending")
269267 else {
270268 let val = getStringByKey(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING))
271269 let newKey = ((keyTransferNFT(nftId, transferId) + "_") + status_CLOSED)
272270 [DeleteEntry(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING)), StringEntry(newKey, val), StringEntry(keyNFTstatus(nftId), status_LOCKED)]
273271 }
274272 }
275273 else throw("Not allowed")
276274
277275
278276
279277 @Callable(i)
280278 func unlock (recipient,nftId) = if (!(isInit))
281279 then throw("dApp not ready")
282280 else if (ownerOnly(i))
283281 then {
284282 let nftStatus = getStringByKey(keyNFTstatus(nftId))
285283 if ((nftStatus != status_LOCKED))
286284 then throw("NFT not locked, finalize first if pending")
287285 else [StringEntry(keyNFTstatus(nftId), status_UNLOCKED), ScriptTransfer(Address(fromBase58String(recipient)), 1, fromBase58String(nftId))]
288286 }
289287 else throw("Not allowed")
290288
291289
292290
293291 @Callable(i)
294292 func appRunning (isLive,message) = if (!(isInit))
295293 then throw("dApp not ready")
296294 else if (ownerOnly(i))
297295 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
298296 else throw("You are not allowed to change this")
299297
300298
301299
302300 @Callable(i)
303301 func deleteEntry (entry) = if (ownerOnly(i))
304302 then [DeleteEntry(entry)]
305303 else throw("no")
306304
307305

github/deemru/w8io/026f985 
43.27 ms