tx · CJn5khfJLxxh7qYCpVLEw1a1hxVan2BatSoJeCZGmHDv

3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib:  -0.01000000 Waves

2022.08.10 09:02 [2177960] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves

{ "type": 13, "id": "CJn5khfJLxxh7qYCpVLEw1a1hxVan2BatSoJeCZGmHDv", "fee": 1000000, "feeAssetId": null, "timestamp": 1660111371245, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "2BALRLmriLgz5gkLhyetaqhXGpBgkzQqxiqP2bip6dHfZzi2B44vDYPxVgGVCGYCSRWw1gfDqQupByeSuhtL65aZ" ], "script": "base64:AAIFAAAAAAAAAC0IAhIGCgQICAgIEgQKAggBEgQKAggIEgQKAggIEgQKAggIEgQKAgQIEgMKAQgAAAAxAAAAAAtDT05GX0lOSVRfSwIAAAALY29uZmlnX2luaXQAAAAAC0NPTkZfQU1JTl9LAgAAAAxjb25maWdfYWRtaW4AAAAADUNPTkZfT1JBQ0xFX0sCAAAADWNvbmZpZ19vcmFjbGUAAAAAE0NPTkZfQVJUV09SS19EQVBQX0sCAAAAE2NvbmZpZ19hcnR3b3JrX2RhcHAAAAAAEUNPTkZfVVNFUlNfREFQUF9LAgAAABFjb25maWdfdXNlcnNfZGFwcAAAAAAQQ09ORl9GRUVfQVNTRVRfSwIAAAAQY29uZmlnX2ZlZV9hc3NldAAAAAARQ09ORl9GRUVfQU1PVU5UX0sCAAAAEWNvbmZpZ19mZWVfYW1vdW50AAAAAA5kYXBwUnVubmluZ0tleQIAAAAUY29uZl9kYXBwX2lzX3J1bm5pbmcAAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAABRjb25mX21haW50ZW5hbmNlX21zZwAAAAALZGFwcFJ1bm5pbmcJAQAAAAt2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aXplIGZpcnN0IGlmIHBlbmRpbmcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADGtleU5GVHN0YXR1cwAAAAEFAAAABW5mdElkBQAAAA9zdGF0dXNfVU5MT0NLRUQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAACXJlY2lwaWVudAAAAAAAAAAAAQkAAlkAAAABBQAAAAVuZnRJZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAAWkBAAAACmFwcFJ1bm5pbmcAAAACAAAABmlzTGl2ZQAAAAdtZXNzYWdlAwkBAAAAASEAAAABBQAAAAZpc0luaXQJAAACAAAAAQIAAAAOZEFwcCBub3QgcmVhZHkDCQEAAAAJb3duZXJPbmx5AAAAAQUAAAABaQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAOZGFwcFJ1bm5pbmdLZXkFAAAABmlzTGl2ZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAABFtYWludGVuYW5jZU1TR0tleQUAAAAHbWVzc2FnZQUAAAADbmlsCQAAAgAAAAECAAAAIllvdSBhcmUgbm90IGFsbG93ZWQgdG8gY2hhbmdlIHRoaXMAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5AwkBAAAACW93bmVyT25seQAAAAEFAAAAAWkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAAC629Vq", "height": 2177960, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HUBaP9j7LKGXumYwYWef4hL15zdUMKZ8v2LVcqmnxTZn Next: DBprtJswhpzuF2F6XhPXjReUK2E2YDMGgUCfkwqvCXym Diff:
OldNewDifferences
151151 func getArtStatus (artId,addr) = {
152152 let status = getStringFromArtworksByKey(((("art_status_" + artId) + "_") + addr))
153153 if (true)
154- then throw(status)
154+ then throw(("status = " + status))
155155 else status
156156 }
157157
161161 else (status == creatorVerified)
162162
163163
164-func isValidArt (artId) = if (if ((artId != artFlagged))
165- then true
166- else (artId != artIllegal))
167- then true
168- else (artId != artPending)
164+func isValidArt (status) = if (true)
165+ then throw(("status = " + status))
166+ else if (if ((status != artFlagged))
167+ then true
168+ else (status != artIllegal))
169+ then true
170+ else (status != artPending)
169171
170172
171173 @Callable(i)
193195 else if (!(containsElement(NETWORKS, network)))
194196 then throw("Network not supported")
195197 else {
196- let $t051975236 = idCallerDate(i)
197- let id = $t051975236._1
198- let caller = $t051975236._2
199- let date = $t051975236._3
200- let $t052395316 = isPayment(i)
201- let nft_payment = $t052395316._1
202- let nft_amount = $t052395316._2
203- let gateway_payment = $t052395316._3
204- let gateway_amount = $t052395316._4
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
205207 if ((nft_amount != 1))
206208 then throw("No NFT attached")
207209 else {
210212 else false)
211213 then toBase58String(value(nft_payment.assetId))
212214 else throw("Only SIGN Art NFT accepted.")
213- let $t056255706 = getCreatorFromNFTid(nftId)
214- let creator = $t056255706._1
215- let artId = $t056255706._2
215+ let $t056945775 = getCreatorFromNFTid(nftId)
216+ let creator = $t056945775._1
217+ let artId = $t056945775._2
216218 if (!(isValidCreator(getCreatorStatus(creator))))
217219 then throw(("Creator status is :" + getCreatorStatus(creator)))
218220 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))
153153 if (true)
154- then throw(status)
154+ then throw(("status = " + status))
155155 else status
156156 }
157157
158158
159159 func isValidCreator (status) = if ((status == creatorRegistered))
160160 then true
161161 else (status == creatorVerified)
162162
163163
164-func isValidArt (artId) = if (if ((artId != artFlagged))
165- then true
166- else (artId != artIllegal))
167- then true
168- else (artId != artPending)
164+func isValidArt (status) = if (true)
165+ then throw(("status = " + status))
166+ else if (if ((status != artFlagged))
167+ then true
168+ else (status != artIllegal))
169+ then true
170+ else (status != artPending)
169171
170172
171173 @Callable(i)
172174 func init (adminAddr,oracleAddr,artworksDapp,usersDapp) = if (ownerOnly(i))
173175 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)]
174176 else throw("Not allowed")
175177
176178
177179
178180 @Callable(i)
179181 func setFee (feeAsset,feeAmount) = {
180182 let assetDetails = assetInfo(fromBase58String(feeAsset))
181183 let decimal = value(assetDetails).decimals
182184 let base10FeeAmount = pow(feeAmount, 0, 10, 1, decimal, HALFUP)
183185 if (ownerOnly(i))
184186 then [StringEntry(CONF_FEE_ASSET_K, feeAsset), IntegerEntry(CONF_FEE_AMOUNT_K, base10FeeAmount)]
185187 else throw("Not allowed")
186188 }
187189
188190
189191
190192 @Callable(i)
191193 func lock (recipient,network) = if (!(isInit))
192194 then throw("dApp not ready")
193195 else if (!(containsElement(NETWORKS, network)))
194196 then throw("Network not supported")
195197 else {
196- let $t051975236 = idCallerDate(i)
197- let id = $t051975236._1
198- let caller = $t051975236._2
199- let date = $t051975236._3
200- let $t052395316 = isPayment(i)
201- let nft_payment = $t052395316._1
202- let nft_amount = $t052395316._2
203- let gateway_payment = $t052395316._3
204- let gateway_amount = $t052395316._4
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
205207 if ((nft_amount != 1))
206208 then throw("No NFT attached")
207209 else {
208210 let nftId = if (if (isDefined(nft_payment.assetId))
209211 then isSignArtNFT(value(nft_payment.assetId))
210212 else false)
211213 then toBase58String(value(nft_payment.assetId))
212214 else throw("Only SIGN Art NFT accepted.")
213- let $t056255706 = getCreatorFromNFTid(nftId)
214- let creator = $t056255706._1
215- let artId = $t056255706._2
215+ let $t056945775 = getCreatorFromNFTid(nftId)
216+ let creator = $t056945775._1
217+ let artId = $t056945775._2
216218 if (!(isValidCreator(getCreatorStatus(creator))))
217219 then throw(("Creator status is :" + getCreatorStatus(creator)))
218220 else if (true)
219221 then throw(toString(isValidArt(getArtStatus(artId, creator))))
220222 else if (!(isValidArt(getArtStatus(artId, creator))))
221223 then throw(("Artwork status is :" + getArtStatus(artId, creator)))
222224 else {
223225 let erc20Addr = getCreatorERC20Addr(creator)
224226 if ((size(erc20Addr) == 0))
225227 then throw("This artist didn't allow crosschain transfer")
226228 else {
227229 let nftStatus = getStringByKey(keyNFTstatus(nftId))
228230 if (if ((nftStatus == status_LOCKED))
229231 then true
230232 else (nftStatus == status_PENDING))
231233 then throw("NFT already locked")
232234 else {
233235 let gasFeeNonMinted = getIntegerByKeyFromOracle(keyFeeNonMinted)
234236 let gasFeeMinted = getIntegerByKeyFromOracle(keyFeeMinted)
235237 let isMinted = if ((nftStatus == status_UNLOCKED))
236238 then true
237239 else false
238240 if (if (!(isDefined(gateway_payment.assetId)))
239241 then true
240242 else (toBase58String(value(gateway_payment.assetId)) != feeAcceptedAsset))
241243 then throw("Wrong payment asset")
242244 else if (if (isMinted)
243245 then (gateway_amount > (gasFeeMinted + feeAcceptedAmountForSign))
244246 else false)
245247 then throw("Wrong payment amount to unlock")
246248 else if (if (!(isMinted))
247249 then (gateway_amount > (gasFeeNonMinted + feeAcceptedAmountForSign))
248250 else false)
249251 then throw("Wrong payment amount to mint and unlock")
250252 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)))]
251253 }
252254 }
253255 }
254256 }
255257 }
256258
257259
258260
259261 @Callable(i)
260262 func confirmLock (nftId,transferId) = if (!(isInit))
261263 then throw("dApp not ready")
262264 else if (ownerOnly(i))
263265 then {
264266 let nftStatus = getStringByKey(keyNFTstatus(nftId))
265267 if ((nftStatus != status_PENDING))
266268 then throw("NFT not pending")
267269 else {
268270 let val = getStringByKey(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING))
269271 let newKey = ((keyTransferNFT(nftId, transferId) + "_") + status_CLOSED)
270272 [DeleteEntry(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING)), StringEntry(newKey, val), StringEntry(keyNFTstatus(nftId), status_LOCKED)]
271273 }
272274 }
273275 else throw("Not allowed")
274276
275277
276278
277279 @Callable(i)
278280 func unlock (recipient,nftId) = if (!(isInit))
279281 then throw("dApp not ready")
280282 else if (ownerOnly(i))
281283 then {
282284 let nftStatus = getStringByKey(keyNFTstatus(nftId))
283285 if ((nftStatus != status_LOCKED))
284286 then throw("NFT not locked, finalize first if pending")
285287 else [StringEntry(keyNFTstatus(nftId), status_UNLOCKED), ScriptTransfer(Address(fromBase58String(recipient)), 1, fromBase58String(nftId))]
286288 }
287289 else throw("Not allowed")
288290
289291
290292
291293 @Callable(i)
292294 func appRunning (isLive,message) = if (!(isInit))
293295 then throw("dApp not ready")
294296 else if (ownerOnly(i))
295297 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
296298 else throw("You are not allowed to change this")
297299
298300
299301
300302 @Callable(i)
301303 func deleteEntry (entry) = if (ownerOnly(i))
302304 then [DeleteEntry(entry)]
303305 else throw("no")
304306
305307

github/deemru/w8io/026f985 
53.95 ms