tx · HAhBNbjKC8kMyZkoGtN86pYQpWhvLQaKem4cwdkgXVz1

3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib:  -0.01000000 Waves

2022.08.10 08:55 [2177953] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves

{ "type": 13, "id": "HAhBNbjKC8kMyZkoGtN86pYQpWhvLQaKem4cwdkgXVz1", "fee": 1000000, "feeAssetId": null, "timestamp": 1660110947197, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "EvQMnF2kCerX7uWpKxB3cAPMpaanBJ32ndicTP3pz2pPNf8zMx7sDRQWZRpk5DBTamQKunPJRFUNBt4pHDzUSMt" ], "script": "base64:AAIFAAAAAAAAAC0IAhIGCgQICAgIEgQKAggBEgQKAggIEgQKAggIEgQKAggIEgQKAgQIEgMKAQgAAAAxAAAAAAtDT05GX0lOSVRfSwIAAAALY29uZmlnX2luaXQAAAAAC0NPTkZfQU1JTl9LAgAAAAxjb25maWdfYWRtaW4AAAAADUNPTkZfT1JBQ0xFX0sCAAAADWNvbmZpZ19vcmFjbGUAAAAAE0NPTkZfQVJUV09SS19EQVBQX0sCAAAAE2NvbmZpZ19hcnR3b3JrX2RhcHAAAAAAEUNPTkZfVVNFUlNfREFQUF9LAgAAABFjb25maWdfdXNlcnNfZGFwcAAAAAAQQ09ORl9GRUVfQVNTRVRfSwIAAAAQY29uZmlnX2ZlZV9hc3NldAAAAAARQ09ORl9GRUVfQU1PVU5UX0sCAAAAEWNvbmZpZ19mZWVfYW1vdW50AAAAAA5kYXBwUnVubmluZ0tleQIAAAAUY29uZl9kYXBwX2lzX3J1bm5pbmcAAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAABRjb25mX21haW50ZW5hbmNlX21zZwAAAAALZGFwcFJ1bm5pbmcJAQAAA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FwcFJ1bm5pbmcAAAACAAAABmlzTGl2ZQAAAAdtZXNzYWdlAwkBAAAAASEAAAABBQAAAAZpc0luaXQJAAACAAAAAQIAAAAOZEFwcCBub3QgcmVhZHkDCQEAAAAJb3duZXJPbmx5AAAAAQUAAAABaQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAOZGFwcFJ1bm5pbmdLZXkFAAAABmlzTGl2ZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAABFtYWludGVuYW5jZU1TR0tleQUAAAAHbWVzc2FnZQUAAAADbmlsCQAAAgAAAAECAAAAIllvdSBhcmUgbm90IGFsbG93ZWQgdG8gY2hhbmdlIHRoaXMAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5AwkBAAAACW93bmVyT25seQAAAAEFAAAAAWkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAACdykWm", "height": 2177953, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 216QeYiktwm5XZ7GBUrG1YeV5eWG8sHq7ut6uxYjSvme Next: AnuAwBZvRchaA5YGQ9ZnYGAtUHBnY6ELhmtbLdngRQLt Diff:
OldNewDifferences
236236 else (toBase58String(value(gateway_payment.assetId)) != feeAcceptedAsset))
237237 then throw("Wrong payment asset")
238238 else if (if (isMinted)
239- then ((gateway_amount + feeAcceptedAmountForSign) > gasFeeMinted)
239+ then (gateway_amount > (gasFeeMinted + feeAcceptedAmountForSign))
240240 else false)
241241 then throw("Wrong payment amount to unlock")
242242 else if (if (!(isMinted))
243- then ((gateway_amount + feeAcceptedAmountForSign) > gasFeeNonMinted)
243+ then (gateway_amount > (gasFeeNonMinted + feeAcceptedAmountForSign))
244244 else false)
245- then throw(((((("Wrong payment amount to mint and unlock " + toString(gateway_amount)) + " ") + toString(feeAcceptedAmountForSign)) + " ") + toString(gasFeeNonMinted)))
245+ then throw("Wrong payment amount to mint and unlock")
246246 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)))]
247247 }
248248 }
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) = {
152152 let status = getStringFromArtworksByKey(("user_status_" + artId))
153153 status
154154 }
155155
156156
157157 func isValidCreator (status) = if ((status == creatorRegistered))
158158 then true
159159 else (status == creatorVerified)
160160
161161
162162 func isValidArt (artId) = if (if ((artId != artFlagged))
163163 then true
164164 else (artId != artIllegal))
165165 then true
166166 else (artId != artPending)
167167
168168
169169 @Callable(i)
170170 func init (adminAddr,oracleAddr,artworksDapp,usersDapp) = if (ownerOnly(i))
171171 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)]
172172 else throw("Not allowed")
173173
174174
175175
176176 @Callable(i)
177177 func setFee (feeAsset,feeAmount) = {
178178 let assetDetails = assetInfo(fromBase58String(feeAsset))
179179 let decimal = value(assetDetails).decimals
180180 let base10FeeAmount = pow(feeAmount, 0, 10, 1, decimal, HALFUP)
181181 if (ownerOnly(i))
182182 then [StringEntry(CONF_FEE_ASSET_K, feeAsset), IntegerEntry(CONF_FEE_AMOUNT_K, base10FeeAmount)]
183183 else throw("Not allowed")
184184 }
185185
186186
187187
188188 @Callable(i)
189189 func lock (recipient,network) = if (!(isInit))
190190 then throw("dApp not ready")
191191 else if (!(containsElement(NETWORKS, network)))
192192 then throw("Network not supported")
193193 else {
194194 let $t051385177 = idCallerDate(i)
195195 let id = $t051385177._1
196196 let caller = $t051385177._2
197197 let date = $t051385177._3
198198 let $t051805257 = isPayment(i)
199199 let nft_payment = $t051805257._1
200200 let nft_amount = $t051805257._2
201201 let gateway_payment = $t051805257._3
202202 let gateway_amount = $t051805257._4
203203 if ((nft_amount != 1))
204204 then throw("No NFT attached")
205205 else {
206206 let nftId = if (if (isDefined(nft_payment.assetId))
207207 then isSignArtNFT(value(nft_payment.assetId))
208208 else false)
209209 then toBase58String(value(nft_payment.assetId))
210210 else throw("Only SIGN Art NFT accepted.")
211211 let $t055665647 = getCreatorFromNFTid(nftId)
212212 let creator = $t055665647._1
213213 let artId = $t055665647._2
214214 if (!(isValidCreator(getCreatorStatus(creator))))
215215 then throw(("Creator status is :" + getCreatorStatus(creator)))
216216 else if (!(isValidArt(getArtStatus(artId))))
217217 then throw(("Artwork status is :" + getArtStatus(artId)))
218218 else {
219219 let erc20Addr = getCreatorERC20Addr(creator)
220220 if ((size(erc20Addr) == 0))
221221 then throw("This artist didn't allow crosschain transfer")
222222 else {
223223 let nftStatus = getStringByKey(keyNFTstatus(nftId))
224224 if (if ((nftStatus == status_LOCKED))
225225 then true
226226 else (nftStatus == status_PENDING))
227227 then throw("NFT already locked")
228228 else {
229229 let gasFeeNonMinted = getIntegerByKeyFromOracle(keyFeeNonMinted)
230230 let gasFeeMinted = getIntegerByKeyFromOracle(keyFeeMinted)
231231 let isMinted = if ((nftStatus == status_UNLOCKED))
232232 then true
233233 else false
234234 if (if (!(isDefined(gateway_payment.assetId)))
235235 then true
236236 else (toBase58String(value(gateway_payment.assetId)) != feeAcceptedAsset))
237237 then throw("Wrong payment asset")
238238 else if (if (isMinted)
239- then ((gateway_amount + feeAcceptedAmountForSign) > gasFeeMinted)
239+ then (gateway_amount > (gasFeeMinted + feeAcceptedAmountForSign))
240240 else false)
241241 then throw("Wrong payment amount to unlock")
242242 else if (if (!(isMinted))
243- then ((gateway_amount + feeAcceptedAmountForSign) > gasFeeNonMinted)
243+ then (gateway_amount > (gasFeeNonMinted + feeAcceptedAmountForSign))
244244 else false)
245- then throw(((((("Wrong payment amount to mint and unlock " + toString(gateway_amount)) + " ") + toString(feeAcceptedAmountForSign)) + " ") + toString(gasFeeNonMinted)))
245+ then throw("Wrong payment amount to mint and unlock")
246246 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)))]
247247 }
248248 }
249249 }
250250 }
251251 }
252252
253253
254254
255255 @Callable(i)
256256 func confirmLock (nftId,transferId) = if (!(isInit))
257257 then throw("dApp not ready")
258258 else if (ownerOnly(i))
259259 then {
260260 let nftStatus = getStringByKey(keyNFTstatus(nftId))
261261 if ((nftStatus != status_PENDING))
262262 then throw("NFT not pending")
263263 else {
264264 let val = getStringByKey(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING))
265265 let newKey = ((keyTransferNFT(nftId, transferId) + "_") + status_CLOSED)
266266 [DeleteEntry(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING)), StringEntry(newKey, val), StringEntry(keyNFTstatus(nftId), status_LOCKED)]
267267 }
268268 }
269269 else throw("Not allowed")
270270
271271
272272
273273 @Callable(i)
274274 func unlock (recipient,nftId) = if (!(isInit))
275275 then throw("dApp not ready")
276276 else if (ownerOnly(i))
277277 then {
278278 let nftStatus = getStringByKey(keyNFTstatus(nftId))
279279 if ((nftStatus != status_LOCKED))
280280 then throw("NFT not locked, finalize first if pending")
281281 else [StringEntry(keyNFTstatus(nftId), status_UNLOCKED), ScriptTransfer(Address(fromBase58String(recipient)), 1, fromBase58String(nftId))]
282282 }
283283 else throw("Not allowed")
284284
285285
286286
287287 @Callable(i)
288288 func appRunning (isLive,message) = if (!(isInit))
289289 then throw("dApp not ready")
290290 else if (ownerOnly(i))
291291 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
292292 else throw("You are not allowed to change this")
293293
294294
295295
296296 @Callable(i)
297297 func deleteEntry (entry) = if (ownerOnly(i))
298298 then [DeleteEntry(entry)]
299299 else throw("no")
300300
301301

github/deemru/w8io/026f985 
77.55 ms