tx · a7ZiuokMsqt4fkEypEM66ff7HoLfBXpczvTQSvtiuSv

3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib:  -0.00900000 Waves

2022.08.10 08:02 [2177906] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves

{ "type": 13, "id": "a7ZiuokMsqt4fkEypEM66ff7HoLfBXpczvTQSvtiuSv", "fee": 900000, "feeAssetId": null, "timestamp": 1660107777135, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "2AcWoZRc8BdtaTGHz6LZCQBMiGApynA5UU2eFp4miMAS7sYjiS6GaouETJaVBiKED5b2wJzsN38yMT8HSZ2KqGrJ" ], "script": "base64:AAIFAAAAAAAAAC0IAhIGCgQICAgIEgQKAggBEgQKAggIEgQKAggIEgQKAggIEgQKAgQIEgMKAQgAAAAoAAAAAAtDT05GX0lOSVRfSwIAAAALY29uZmlnX2luaXQAAAAAC0NPTkZfQU1JTl9LAgAAAAxjb25maWdfYWRtaW4AAAAADUNPTkZfT1JBQ0xFX0sCAAAADWNvbmZpZ19vcmFjbGUAAAAAE0NPTkZfQVJUV09SS19EQVBQX0sCAAAAE2NvbmZpZ19hcnR3b3JrX2RhcHAAAAAAEUNPTkZfVVNFUlNfREFQUF9LAgAAABFjb25maWdfdXNlcnNfZGFwcAAAAAAQQ09ORl9GRUVfQVNTRVRfSwIAAAAQY29uZmlnX2ZlZV9hc3NldAAAAAARQ09ORl9GRUVfQU1PVU5UX0sCAAAAEWNvbmZpZ19mZWVfYW1vdW50AAAAAA5kYXBwUnVubmluZ0tleQIAAAAUY29uZl9kYXBwX2lzX3J1bm5pbmcAAAAAEW1haW50ZW5hbmNlTVNHS2V5AgAAABRjb25mX21haW50ZW5hbmNlX21zZwAAAAALZGFwcFJ1bm5pbmcJAQAAAAt2Y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xldGVFbnRyeQAAAAEAAAAFZW50cnkDCQEAAAAJb3duZXJPbmx5AAAAAQUAAAABaQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAACSGdIQ=", "height": 2177906, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DxzYKeVJmXCkQCbafk4NMGdp9zYF4FMnUrNBFZ3GQXHQ Next: 3aGqYGUhmHpimanQ8Ujifh6M5ZbNtPSxe7PPzSZJsfm2 Diff:
OldNewDifferences
6161 let oracleAddr = value(addressFromString(getStringByKey(CONF_ORACLE_K)))
6262
6363 let feeAcceptedAsset = getStringByKey(CONF_FEE_ASSET_K)
64+
65+let feeAcceptedAmountForSign = getIntegerByKey(CONF_FEE_AMOUNT_K)
6466
6567 func getStringFromUsersByKey (key) = valueOrElse(getString(usersDapp, key), "")
6668
154156 else if (!(containsElement(NETWORKS, network)))
155157 then throw("Network not supported")
156158 else {
157- let $t043604399 = idCallerDate(i)
158- let id = $t043604399._1
159- let caller = $t043604399._2
160- let date = $t043604399._3
161- let $t044024479 = isPayment(i)
162- let nft_payment = $t044024479._1
163- let nft_amount = $t044024479._2
164- let gateway_payment = $t044024479._3
165- let gateway_amount = $t044024479._4
159+ let $t044264465 = idCallerDate(i)
160+ let id = $t044264465._1
161+ let caller = $t044264465._2
162+ let date = $t044264465._3
163+ let $t044684545 = isPayment(i)
164+ let nft_payment = $t044684545._1
165+ let nft_amount = $t044684545._2
166+ let gateway_payment = $t044684545._3
167+ let gateway_amount = $t044684545._4
166168 if ((nft_amount != 1))
167169 then throw("No NFT attached")
168170 else {
192194 else (toBase58String(value(gateway_payment.assetId)) != feeAcceptedAsset))
193195 then throw("Wrong payment asset")
194196 else if (if (isMinted)
195- then (gateway_amount > gasFeeMinted)
197+ then ((gateway_amount + feeAcceptedAmountForSign) > gasFeeMinted)
196198 else false)
197199 then throw("Wrong payment amount to unlock")
198200 else if (if (!(isMinted))
199- then (gateway_amount > gasFeeNonMinted)
201+ then ((gateway_amount + feeAcceptedAmountForSign) > gasFeeNonMinted)
200202 else false)
201203 then throw("Wrong payment amount to mint and unlock")
202204 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)))]
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 NETWORKS = ["ETH", "POLYGON"]
3535
3636 func keyNFTstatus (nftId) = (("nft_" + nftId) + "_status")
3737
3838
3939 func keyTransferNFT (nftId,txid) = ((("transfer_" + nftId) + "_") + txid)
4040
4141
4242 let keyFeeNonMinted = "cost_non_minted"
4343
4444 let keyFeeMinted = "cost_minted"
4545
4646 func getStringByKey (key) = valueOrElse(getString(this, key), "")
4747
4848
4949 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
5050
5151
5252 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
5353
5454
5555 let admin = value(addressFromString(getStringByKey(CONF_AMIN_K)))
5656
5757 let artworksDapp = value(addressFromString(getStringByKey(CONF_ARTWORK_DAPP_K)))
5858
5959 let usersDapp = value(addressFromString(getStringByKey(CONF_USERS_DAPP_K)))
6060
6161 let oracleAddr = value(addressFromString(getStringByKey(CONF_ORACLE_K)))
6262
6363 let feeAcceptedAsset = getStringByKey(CONF_FEE_ASSET_K)
64+
65+let feeAcceptedAmountForSign = getIntegerByKey(CONF_FEE_AMOUNT_K)
6466
6567 func getStringFromUsersByKey (key) = valueOrElse(getString(usersDapp, key), "")
6668
6769
6870 func getStringFromArtworksByKey (key) = valueOrElse(getString(artworksDapp, key), "")
6971
7072
7173 func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleAddr, key), "Integer undefine or 0 in oracle")
7274
7375
7476 func assetIsValid (assetDetails) = if (if (if ((assetDetails.quantity == 1))
7577 then (assetDetails.decimals == 0)
7678 else false)
7779 then (assetDetails.reissuable == false)
7880 else false)
7981 then (assetDetails.issuer == artworksDapp)
8082 else false
8183
8284
8385 func isSignArtNFT (id) = {
8486 let assetDetails = value(assetInfo(id))
8587 assetIsValid(assetDetails)
8688 }
8789
8890
8991 func isPayment (i) = if ((size(i.payments) == 0))
9092 then throw("No payment attached")
9193 else {
9294 let nft_payment = value(i.payments[0])
9395 let nft_amount = value(nft_payment.amount)
9496 let gateway_payment = value(i.payments[1])
9597 let gateway_amount = value(gateway_payment.amount)
9698 $Tuple4(nft_payment, nft_amount, gateway_payment, gateway_amount)
9799 }
98100
99101
100102 let isInit = valueOrElse(getBooleanByKey(CONF_INIT_K), false)
101103
102104 func ownerOnly (i) = {
103105 let caller = toString(i.caller)
104106 let id = toBase58String(i.transactionId)
105107 let allowedArr = if (isInit)
106108 then [toString(admin), toString(this)]
107109 else [toString(this)]
108110 if (containsElement(allowedArr, caller))
109111 then true
110112 else false
111113 }
112114
113115
114116 func idCallerDate (i) = if (!(dappRunning))
115117 then throw(maintenanceMSG)
116118 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
117119
118120
119121 func getCreatorFromNFTid (nftid) = {
120122 let nftData = getStringFromArtworksByKey(("nft_" + nftid))
121123 let creator = split(nftData, "_")[6]
122124 creator
123125 }
124126
125127
126128 func getCreatorERC20Addr (addr) = {
127129 let erc20Addr = getStringFromUsersByKey(("user_ERC20_" + addr))
128130 erc20Addr
129131 }
130132
131133
132134 @Callable(i)
133135 func init (adminAddr,oracleAddr,artworksDapp,usersDapp) = if (ownerOnly(i))
134136 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)]
135137 else throw("Not allowed")
136138
137139
138140
139141 @Callable(i)
140142 func setFee (feeAsset,feeAmount) = {
141143 let assetDetails = assetInfo(fromBase58String(feeAsset))
142144 let decimal = value(assetDetails).decimals
143145 let base10FeeAmount = pow(feeAmount, 0, 10, 1, decimal, HALFUP)
144146 if (ownerOnly(i))
145147 then [StringEntry(CONF_FEE_ASSET_K, feeAsset), IntegerEntry(CONF_FEE_AMOUNT_K, base10FeeAmount)]
146148 else throw("Not allowed")
147149 }
148150
149151
150152
151153 @Callable(i)
152154 func lock (recipient,network) = if (!(isInit))
153155 then throw("dApp not ready")
154156 else if (!(containsElement(NETWORKS, network)))
155157 then throw("Network not supported")
156158 else {
157- let $t043604399 = idCallerDate(i)
158- let id = $t043604399._1
159- let caller = $t043604399._2
160- let date = $t043604399._3
161- let $t044024479 = isPayment(i)
162- let nft_payment = $t044024479._1
163- let nft_amount = $t044024479._2
164- let gateway_payment = $t044024479._3
165- let gateway_amount = $t044024479._4
159+ let $t044264465 = idCallerDate(i)
160+ let id = $t044264465._1
161+ let caller = $t044264465._2
162+ let date = $t044264465._3
163+ let $t044684545 = isPayment(i)
164+ let nft_payment = $t044684545._1
165+ let nft_amount = $t044684545._2
166+ let gateway_payment = $t044684545._3
167+ let gateway_amount = $t044684545._4
166168 if ((nft_amount != 1))
167169 then throw("No NFT attached")
168170 else {
169171 let nftId = if (if (isDefined(nft_payment.assetId))
170172 then isSignArtNFT(value(nft_payment.assetId))
171173 else false)
172174 then toBase58String(value(nft_payment.assetId))
173175 else throw("Only SIGN Art NFT accepted.")
174176 let creatorFromNFTId = getCreatorFromNFTid(nftId)
175177 let erc20Addr = getCreatorERC20Addr(creatorFromNFTId)
176178 if ((size(erc20Addr) == 0))
177179 then throw("This artist didn't allow crosschain transfer")
178180 else {
179181 let nftStatus = getStringByKey(keyNFTstatus(nftId))
180182 if (if ((nftStatus == status_LOCKED))
181183 then true
182184 else (nftStatus == status_PENDING))
183185 then throw("NFT already locked")
184186 else {
185187 let gasFeeNonMinted = getIntegerByKeyFromOracle(keyFeeNonMinted)
186188 let gasFeeMinted = getIntegerByKeyFromOracle(keyFeeMinted)
187189 let isMinted = if ((nftStatus == status_UNLOCKED))
188190 then true
189191 else false
190192 if (if (!(isDefined(gateway_payment.assetId)))
191193 then true
192194 else (toBase58String(value(gateway_payment.assetId)) != feeAcceptedAsset))
193195 then throw("Wrong payment asset")
194196 else if (if (isMinted)
195- then (gateway_amount > gasFeeMinted)
197+ then ((gateway_amount + feeAcceptedAmountForSign) > gasFeeMinted)
196198 else false)
197199 then throw("Wrong payment amount to unlock")
198200 else if (if (!(isMinted))
199- then (gateway_amount > gasFeeNonMinted)
201+ then ((gateway_amount + feeAcceptedAmountForSign) > gasFeeNonMinted)
200202 else false)
201203 then throw("Wrong payment amount to mint and unlock")
202204 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)))]
203205 }
204206 }
205207 }
206208 }
207209
208210
209211
210212 @Callable(i)
211213 func confirmLock (nftId,transferId) = if (!(isInit))
212214 then throw("dApp not ready")
213215 else if (ownerOnly(i))
214216 then {
215217 let nftStatus = getStringByKey(keyNFTstatus(nftId))
216218 if ((nftStatus != status_PENDING))
217219 then throw("NFT not pending")
218220 else {
219221 let val = getStringByKey(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING))
220222 let newKey = ((keyTransferNFT(nftId, transferId) + "_") + status_CLOSED)
221223 [DeleteEntry(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING)), StringEntry(newKey, val), StringEntry(keyNFTstatus(nftId), status_LOCKED)]
222224 }
223225 }
224226 else throw("Not allowed")
225227
226228
227229
228230 @Callable(i)
229231 func unlock (recipient,nftId) = if (!(isInit))
230232 then throw("dApp not ready")
231233 else if (ownerOnly(i))
232234 then {
233235 let nftStatus = getStringByKey(keyNFTstatus(nftId))
234236 if ((nftStatus != status_LOCKED))
235237 then throw("NFT not locked, finalize first if pending")
236238 else [StringEntry(keyNFTstatus(nftId), status_UNLOCKED), ScriptTransfer(Address(fromBase58String(recipient)), 1, fromBase58String(nftId))]
237239 }
238240 else throw("Not allowed")
239241
240242
241243
242244 @Callable(i)
243245 func appRunning (isLive,message) = if (!(isInit))
244246 then throw("dApp not ready")
245247 else if (ownerOnly(i))
246248 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
247249 else throw("You are not allowed to change this")
248250
249251
250252
251253 @Callable(i)
252254 func deleteEntry (entry) = if (ownerOnly(i))
253255 then [DeleteEntry(entry)]
254256 else throw("no")
255257
256258

github/deemru/w8io/026f985 
38.11 ms