tx · HgjCP7Dp7dH5Wd6a8AVHzMdsVFqPfgUMtoYQjWgAWQPx

3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib:  -0.00800000 Waves

2022.08.04 14:49 [2169707] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves

{ "type": 13, "id": "HgjCP7Dp7dH5Wd6a8AVHzMdsVFqPfgUMtoYQjWgAWQPx", "fee": 800000, "feeAssetId": null, "timestamp": 1659613764508, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "3qHnr3c7eNMWA4eadwgfM7aN3BCsLDJyFmQhqAPVRxoypDVF2iddhHePqahiGfeUcK7QDdtevJYemhKBGwNSZdZ5" ], "script": "base64:AAIFAAAAAAAAACgIAhIHCgUICAgICBIECgIICBIECgIICBIECgIICBIECgIECBIDCgEIAAAAJgAAAAALQ09ORl9JTklUX0sCAAAAC2NvbmZpZ19pbml0AAAAAAtDT05GX0FNSU5fSwIAAAAMY29uZmlnX2FkbWluAAAAAA1DT05GX09SQUNMRV9LAgAAAA1jb25maWdfb3JhY2xlAAAAABNDT05GX0FSVFdPUktfREFQUF9LAgAAABNjb25maWdfYXJ0d29ya19kYXBwAAAAABFDT05GX1VTRVJTX0RBUFBfSwIAAAARY29uZmlnX3VzZXJzX2RhcHAAAAAAEENPTkZfRkVFX0FTU0VUX0sCAAAAEGNvbmZpZ19mZWVfYXNzZXQAAAAADmRhcHBSdW5uaW5nS2V5AgAAABRjb25mX2RhcHBfaXNfcnVubmluZwAAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAFGNvbmZfbWFpbnRlbmFuY2VfbXNnAAAAAAtkYXBwUnVubmluZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAR0aGlzBQAAAA5kYXBwUnVubmluZ0tleQYAA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xCb29sZWFuRW50cnkAAAACBQAAAA5kYXBwUnVubmluZ0tleQUAAAAGaXNMaXZlCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAEW1haW50ZW5hbmNlTVNHS2V5BQAAAAdtZXNzYWdlBQAAAANuaWwJAAACAAAAAQIAAAAiWW91IGFyZSBub3QgYWxsb3dlZCB0byBjaGFuZ2UgdGhpcwAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkDCQEAAAAJb3duZXJPbmx5AAAAAQUAAAABaQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAOyVSKQ=", "height": 2169707, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AZQHVKJyenZnuxRGZ4FgLYddpod7S1kqqEZV6uZh9Eiy Next: 3GYqYRMKLCo5SY748DcX2z9xzB4MJzqTgfKk3ZNKDGwC Diff:
OldNewDifferences
1010 let CONF_ARTWORK_DAPP_K = "config_artwork_dapp"
1111
1212 let CONF_USERS_DAPP_K = "config_users_dapp"
13+
14+let CONF_FEE_ASSET_K = "config_fee_asset"
1315
1416 let dappRunningKey = "conf_dapp_is_running"
1517
3537 func keyTransferNFT (nftId,txid) = ((("transfer_" + nftId) + "_") + txid)
3638
3739
40+let keyFeeNonMinted = "cost_non_minted"
41+
42+let keyFeeMinted = "cost_minted"
43+
3844 func getStringByKey (key) = valueOrElse(getString(this, key), "")
3945
4046
5157 let usersDapp = value(addressFromString(getStringByKey(CONF_USERS_DAPP_K)))
5258
5359 let oracleAddr = value(addressFromString(getStringByKey(CONF_ORACLE_K)))
60+
61+let feeAcceptedAsset = getStringByKey(CONF_FEE_ASSET_K)
5462
5563 func getStringFromUsersByKey (key) = valueOrElse(getString(usersDapp, key), "")
5664
120128
121129
122130 @Callable(i)
123-func init (adminAddr,oracleAddr,artworksDapp,usersDapp) = if (ownerOnly(i))
124- 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)]
131+func init (adminAddr,oracleAddr,artworksDapp,usersDapp,feeAsset) = if (ownerOnly(i))
132+ then [StringEntry(CONF_AMIN_K, adminAddr), StringEntry(CONF_ORACLE_K, oracleAddr), StringEntry(CONF_ARTWORK_DAPP_K, artworksDapp), StringEntry(CONF_USERS_DAPP_K, usersDapp), StringEntry(CONF_FEE_ASSET_K, feeAsset), BooleanEntry(CONF_INIT_K, true)]
125133 else throw("Not allowed")
126134
127135
132140 else if (!(containsElement(NETWORKS, network)))
133141 then throw("Network not supported")
134142 else {
135- let $t037403779 = idCallerDate(i)
136- let id = $t037403779._1
137- let caller = $t037403779._2
138- let date = $t037403779._3
139- let $t037823859 = isPayment(i)
140- let nft_payment = $t037823859._1
141- let nft_amount = $t037823859._2
142- let gateway_payment = $t037823859._3
143- let gateway_amount = $t037823859._4
143+ let $t039784017 = idCallerDate(i)
144+ let id = $t039784017._1
145+ let caller = $t039784017._2
146+ let date = $t039784017._3
147+ let $t040204097 = isPayment(i)
148+ let nft_payment = $t040204097._1
149+ let nft_amount = $t040204097._2
150+ let gateway_payment = $t040204097._3
151+ let gateway_amount = $t040204097._4
144152 if ((nft_amount != 1))
145153 then throw("No NFT attached")
146154 else {
159167 then true
160168 else (nftStatus == status_PENDING))
161169 then throw("NFT already locked")
162- 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)))]
170+ else {
171+ let gasFeeNonMinted = getIntegerByKeyFromOracle(keyFeeNonMinted)
172+ let gasFeeMinted = getIntegerByKeyFromOracle(keyFeeMinted)
173+ let isMinted = if ((nftStatus == status_UNLOCKED))
174+ then true
175+ else false
176+ if ((toBase58String(value(gateway_payment.assetId)) != feeAcceptedAsset))
177+ then throw("Wrong payment asset")
178+ else if (if (isMinted)
179+ then (gateway_amount > gasFeeMinted)
180+ else false)
181+ then throw("Wrong payment amount to unlock")
182+ else if (if (!(isMinted))
183+ then (gateway_amount > gasFeeNonMinted)
184+ else false)
185+ then throw("Wrong payment amount to mint and unlock")
186+ 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)))]
187+ }
163188 }
164189 }
165190 }
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"
13+
14+let CONF_FEE_ASSET_K = "config_fee_asset"
1315
1416 let dappRunningKey = "conf_dapp_is_running"
1517
1618 let maintenanceMSGKey = "conf_maintenance_msg"
1719
1820 let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true)
1921
2022 let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "")
2123
2224 let status_LOCKED = "LOCKED"
2325
2426 let status_UNLOCKED = "UNLOCKED"
2527
2628 let status_PENDING = "PENDING"
2729
2830 let status_CLOSED = "CLOSED"
2931
3032 let NETWORKS = ["ETH", "POLYGON"]
3133
3234 func keyNFTstatus (nftId) = (("nft_" + nftId) + "_status")
3335
3436
3537 func keyTransferNFT (nftId,txid) = ((("transfer_" + nftId) + "_") + txid)
3638
3739
40+let keyFeeNonMinted = "cost_non_minted"
41+
42+let keyFeeMinted = "cost_minted"
43+
3844 func getStringByKey (key) = valueOrElse(getString(this, key), "")
3945
4046
4147 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
4248
4349
4450 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
4551
4652
4753 let admin = value(addressFromString(getStringByKey(CONF_AMIN_K)))
4854
4955 let artworksDapp = value(addressFromString(getStringByKey(CONF_ARTWORK_DAPP_K)))
5056
5157 let usersDapp = value(addressFromString(getStringByKey(CONF_USERS_DAPP_K)))
5258
5359 let oracleAddr = value(addressFromString(getStringByKey(CONF_ORACLE_K)))
60+
61+let feeAcceptedAsset = getStringByKey(CONF_FEE_ASSET_K)
5462
5563 func getStringFromUsersByKey (key) = valueOrElse(getString(usersDapp, key), "")
5664
5765
5866 func getStringFromArtworksByKey (key) = valueOrElse(getString(artworksDapp, key), "")
5967
6068
6169 func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleAddr, key), "Integer undefine or 0 in oracle")
6270
6371
6472 func assetIsValid (assetDetails) = if (if (if ((assetDetails.quantity == 1))
6573 then (assetDetails.decimals == 0)
6674 else false)
6775 then (assetDetails.reissuable == false)
6876 else false)
6977 then (assetDetails.issuer == artworksDapp)
7078 else false
7179
7280
7381 func isSignArtNFT (id) = {
7482 let assetDetails = value(assetInfo(id))
7583 assetIsValid(assetDetails)
7684 }
7785
7886
7987 func isPayment (i) = if ((size(i.payments) == 0))
8088 then throw("No payment attached")
8189 else {
8290 let nft_payment = value(i.payments[0])
8391 let nft_amount = value(nft_payment.amount)
8492 let gateway_payment = value(i.payments[1])
8593 let gateway_amount = value(gateway_payment.amount)
8694 $Tuple4(nft_payment, nft_amount, gateway_payment, gateway_amount)
8795 }
8896
8997
9098 let isInit = valueOrElse(getBooleanByKey(CONF_INIT_K), false)
9199
92100 func ownerOnly (i) = {
93101 let caller = toString(i.caller)
94102 let id = toBase58String(i.transactionId)
95103 let allowedArr = if (isInit)
96104 then [toString(admin), toString(this)]
97105 else [toString(this)]
98106 if (containsElement(allowedArr, caller))
99107 then true
100108 else false
101109 }
102110
103111
104112 func idCallerDate (i) = if (!(dappRunning))
105113 then throw(maintenanceMSG)
106114 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
107115
108116
109117 func getCreatorFromNFTid (nftid) = {
110118 let nftData = getStringFromArtworksByKey(("nft_" + nftid))
111119 let creator = split(nftData, "_")[6]
112120 creator
113121 }
114122
115123
116124 func getCreatorERC20Addr (addr) = {
117125 let erc20Addr = getStringFromUsersByKey(("user_ERC20_" + addr))
118126 erc20Addr
119127 }
120128
121129
122130 @Callable(i)
123-func init (adminAddr,oracleAddr,artworksDapp,usersDapp) = if (ownerOnly(i))
124- 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)]
131+func init (adminAddr,oracleAddr,artworksDapp,usersDapp,feeAsset) = if (ownerOnly(i))
132+ then [StringEntry(CONF_AMIN_K, adminAddr), StringEntry(CONF_ORACLE_K, oracleAddr), StringEntry(CONF_ARTWORK_DAPP_K, artworksDapp), StringEntry(CONF_USERS_DAPP_K, usersDapp), StringEntry(CONF_FEE_ASSET_K, feeAsset), BooleanEntry(CONF_INIT_K, true)]
125133 else throw("Not allowed")
126134
127135
128136
129137 @Callable(i)
130138 func lock (recipient,network) = if (!(isInit))
131139 then throw("dApp not ready")
132140 else if (!(containsElement(NETWORKS, network)))
133141 then throw("Network not supported")
134142 else {
135- let $t037403779 = idCallerDate(i)
136- let id = $t037403779._1
137- let caller = $t037403779._2
138- let date = $t037403779._3
139- let $t037823859 = isPayment(i)
140- let nft_payment = $t037823859._1
141- let nft_amount = $t037823859._2
142- let gateway_payment = $t037823859._3
143- let gateway_amount = $t037823859._4
143+ let $t039784017 = idCallerDate(i)
144+ let id = $t039784017._1
145+ let caller = $t039784017._2
146+ let date = $t039784017._3
147+ let $t040204097 = isPayment(i)
148+ let nft_payment = $t040204097._1
149+ let nft_amount = $t040204097._2
150+ let gateway_payment = $t040204097._3
151+ let gateway_amount = $t040204097._4
144152 if ((nft_amount != 1))
145153 then throw("No NFT attached")
146154 else {
147155 let nftId = if (if (isDefined(nft_payment.assetId))
148156 then isSignArtNFT(value(nft_payment.assetId))
149157 else false)
150158 then toBase58String(value(nft_payment.assetId))
151159 else throw("Only SIGN Art NFT accepted.")
152160 let creatorFromNFTId = getCreatorFromNFTid(nftId)
153161 let erc20Addr = getCreatorERC20Addr(creatorFromNFTId)
154162 if ((size(erc20Addr) == 0))
155163 then throw("This artist didn't allow crosschain transfer")
156164 else {
157165 let nftStatus = getStringByKey(keyNFTstatus(nftId))
158166 if (if ((nftStatus == status_LOCKED))
159167 then true
160168 else (nftStatus == status_PENDING))
161169 then throw("NFT already locked")
162- 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)))]
170+ else {
171+ let gasFeeNonMinted = getIntegerByKeyFromOracle(keyFeeNonMinted)
172+ let gasFeeMinted = getIntegerByKeyFromOracle(keyFeeMinted)
173+ let isMinted = if ((nftStatus == status_UNLOCKED))
174+ then true
175+ else false
176+ if ((toBase58String(value(gateway_payment.assetId)) != feeAcceptedAsset))
177+ then throw("Wrong payment asset")
178+ else if (if (isMinted)
179+ then (gateway_amount > gasFeeMinted)
180+ else false)
181+ then throw("Wrong payment amount to unlock")
182+ else if (if (!(isMinted))
183+ then (gateway_amount > gasFeeNonMinted)
184+ else false)
185+ then throw("Wrong payment amount to mint and unlock")
186+ 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)))]
187+ }
163188 }
164189 }
165190 }
166191
167192
168193
169194 @Callable(i)
170195 func confirmLock (nftId,transferId) = if (!(isInit))
171196 then throw("dApp not ready")
172197 else if (ownerOnly(i))
173198 then {
174199 let nftStatus = getStringByKey(keyNFTstatus(nftId))
175200 if ((nftStatus != status_PENDING))
176201 then throw("NFT not pending")
177202 else {
178203 let val = getStringByKey(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING))
179204 let newKey = ((keyTransferNFT(nftId, transferId) + "_") + status_CLOSED)
180205 [DeleteEntry(((keyTransferNFT(nftId, transferId) + "_") + status_PENDING)), StringEntry(newKey, val), StringEntry(keyNFTstatus(nftId), status_LOCKED)]
181206 }
182207 }
183208 else throw("Not allowed")
184209
185210
186211
187212 @Callable(i)
188213 func unlock (recipient,nftId) = if (!(isInit))
189214 then throw("dApp not ready")
190215 else if (ownerOnly(i))
191216 then {
192217 let nftStatus = getStringByKey(keyNFTstatus(nftId))
193218 if ((nftStatus != status_LOCKED))
194219 then throw("NFT not locked, finalize first if pending")
195220 else [StringEntry(keyNFTstatus(nftId), status_UNLOCKED), ScriptTransfer(Address(fromBase58String(recipient)), 1, fromBase58String(nftId))]
196221 }
197222 else throw("Not allowed")
198223
199224
200225
201226 @Callable(i)
202227 func appRunning (isLive,message) = if (!(isInit))
203228 then throw("dApp not ready")
204229 else if (ownerOnly(i))
205230 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
206231 else throw("You are not allowed to change this")
207232
208233
209234
210235 @Callable(i)
211236 func deleteEntry (entry) = if (ownerOnly(i))
212237 then [DeleteEntry(entry)]
213238 else throw("no")
214239
215240

github/deemru/w8io/026f985 
38.08 ms