tx · BYYZ3PpLe56naSv9wPApgZbgEzMG44UuQGXrQzogmEij

3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id:  -0.01000000 Waves

2022.01.09 01:52 [1870550] smart account 3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id > SELF 0.00000000 Waves

{ "type": 13, "id": "BYYZ3PpLe56naSv9wPApgZbgEzMG44UuQGXrQzogmEij", "fee": 1000000, "feeAssetId": null, "timestamp": 1641682317080, "version": 2, "chainId": 84, "sender": "3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id", "senderPublicKey": "8agr5kfwDL7NLuMetvciXCcd9TcDKZhRwYZPPTAShaCC", "proofs": [ "28QTVQR13pq28feTLk3EZ8eJXgHirjiBnZ8DaBi4Z18LLBs81h3kyC2yX4uMmLdKcWperGCA4zoM3t5akArqDvFf" ], "script": "base64:AAIFAAAAAAAAACcIAhIFCgMICAgSBQoDCAgIEgUKAwgICBIAEgASABIAEgYKBAgICAgAAAAOAAAAAANTRVACAAAAAl9fAAAAAAljdXJyZW50VHMIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAA5rZXlCdXlVTFVTUmF0ZQIAAAANYnV5X1VMVVNfcmF0ZQAAAAAca2V5QnV5VUxVU1JhdGVTY2FsZURlbGltaXRlcgIAAAAdYnV5X1VMVVNfcmF0ZV9zY2FsZV9kZWxpbWl0ZXIAAAAAD2tleVNlbGxVTFVTUmF0ZQIAAAAOc2VsbF9VTFVTX3JhdGUAAAAAHWtleVNlbGxVTFVTUmF0ZVNjYWxlRGVsaW1pdGVyAgAAAB5zZWxsX1VMVVNfcmF0ZV9zY2FsZV9kZWxpbWl0ZXIAAAAADWtleU1ha2VORlRGZWUCAAAAEGtleV9tYWtlX05GVF9mZWUAAAAADWtleUNvbW1pc3Npb24CAAAACmNvbW1pc3Npb24AAAAAG2tleUNvbW1pc3Npb25TY2FsZURlbGltaXRlcgIAAAAaY29tbWlzc2lvbl9zY2FsZV9kZWxpbWl0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G10QXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABFjb21taXNzaW9uQWRkcmVzcwUAAAAQYW1vdW50Q29tbWlzc2lvbgUAAAAKcG10QXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADmFtb3VudENhc2hiYWNrBQAAAARVTFVTBQAAAANuaWwAAAAA9AO6Gg==", "height": 1870550, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: s2Yjy5Deen9WnVckp5DPmwF2uesS3sDz8czhb219dKt Next: G8qwy2y7vzbAaWo5iMunFZpqFCntGArhV8Hrx9JgRrEE Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
5+
6+let currentTs = lastBlock.timestamp
57
68 let keyBuyULUSRate = "buy_ULUS_rate"
79
2527
2628 let commissionAddress = Address(base58'3N1yGG2mA3gTLxReAh84njeRvCBzvUbCccg')
2729
30+let backendPubKey = base58'5fJ73uaebbc12bwCegVoRZgNKfn4BqpH8NB8Rs2NpBmg'
31+
2832 @Callable(i)
2933 func makeNFT (name,description,productId) = {
30- let $t011931268 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
31- let pmtAmount = $t011931268._1
32- let pmtAssetId = $t011931268._2
34+ let $t013001375 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
35+ let pmtAmount = $t013001375._1
36+ let pmtAssetId = $t013001375._2
3337 let makeNFTfee = getIntegerValue(this, keyMakeNFTFee)
3438 if ((pmtAssetId != assetId))
3539 then throw("Asset must be USDN only")
4145 let newAsset = Issue(name, makeString([description, productId, toString(i.caller)], SEP), 1, 0, false, unit, 0)
4246 let newAssetId = calculateAssetId(newAsset)
4347 [newAsset, StringEntry(productId, toBase58String(newAssetId)), ScriptTransfer(commissionAddress, pmtAmount, pmtAssetId)]
48+ }
49+ }
50+
51+
52+
53+@Callable(i)
54+func getNFT (productId,backendSignature,backendTimestamp) = {
55+ let backendProof = (makeString([toString(this), backendTimestamp], ";") + ";")
56+ if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
57+ then throw("Invalid signature from backend.")
58+ else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
59+ then throw("The signature is expired. Repeat the operation again.")
60+ else if (!(isDefined(getString(this, productId))))
61+ then throw("Invalid productId.")
62+ else {
63+ let NFTassetId = fromBase58String(getStringValue(this, productId))
64+ let NFTbalance = assetBalance(this, NFTassetId)
65+ if ((NFTbalance == 0))
66+ then throw("NFTasset doesn't exist.")
67+ else [ScriptTransfer(i.caller, 1, NFTassetId)]
68+ }
69+ }
70+
71+
72+
73+@Callable(i)
74+func putNFT (productId,backendSignature,backendTimestamp) = {
75+ let backendProof = (makeString([toString(this), backendTimestamp], ";") + ";")
76+ let $t032953370 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
77+ let pmtAmount = $t032953370._1
78+ let pmtAssetId = $t032953370._2
79+ if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
80+ then throw("Invalid signature from backend.")
81+ else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
82+ then throw("The signature is expired. Repeat the operation again.")
83+ else if (!(isDefined(getString(this, productId))))
84+ then throw("Invalid productId.")
85+ else {
86+ let NFTassetId = fromBase58String(getStringValue(this, productId))
87+ if (if ((NFTassetId != pmtAssetId))
88+ then true
89+ else (pmtAmount != 1))
90+ then throw("Wrong NFTasset.")
91+ else nil
4492 }
4593 }
4694
68116
69117 @Callable(i)
70118 func buyULUS () = {
71- let $t033113386 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
72- let pmtAmount = $t033113386._1
73- let pmtAssetId = $t033113386._2
119+ let $t055895664 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
120+ let pmtAmount = $t055895664._1
121+ let pmtAssetId = $t055895664._2
74122 if ((pmtAssetId != assetId))
75123 then throw("Asset must be USDN only")
76124 else {
86134
87135 @Callable(i)
88136 func sellULUS () = {
89- let $t040404115 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
90- let pmtAmount = $t040404115._1
91- let pmtAssetId = $t040404115._2
137+ let $t063186393 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
138+ let pmtAmount = $t063186393._1
139+ let pmtAssetId = $t063186393._2
92140 if ((pmtAssetId != ULUS))
93141 then throw("Asset must be ULUS only")
94142 else {
104152
105153 @Callable(i)
106154 func makePayment (recipient,productId,backendSignature,backendTimestamp) = {
107- let currentTs = lastBlock.timestamp
108155 let recipientAddress = addressFromStringValue(recipient)
109- let $t049595034 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
110- let pmtAmount = $t049595034._1
111- let pmtAssetId = $t049595034._2
112- let backendPubKey = base58'5fJ73uaebbc12bwCegVoRZgNKfn4BqpH8NB8Rs2NpBmg'
156+ let $t071997274 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
157+ let pmtAmount = $t071997274._1
158+ let pmtAssetId = $t071997274._2
113159 let backendProof = (makeString([toString(this), backendTimestamp, toString(pmtAmount)], ";") + ";")
114160 if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
115- then throw("Invalid proof from backend.")
161+ then throw("Invalid signature from backend.")
116162 else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
117163 then throw("The signature is expired. Repeat the operation again.")
118164 else if (if ((pmtAssetId != USDN))
133179 let NFTassetId = fromBase58String(getStringValue(this, productId))
134180 let NFTbalance = assetBalance(this, NFTassetId)
135181 if ((NFTbalance == 0))
136- then throw("NFTAsset doesn't exist.")
182+ then throw("NFTasset doesn't exist.")
137183 else {
138184 let NFTIssuer = split(value(assetInfo(NFTassetId)).description, SEP)[2]
139185 let NFTIssuerAddress = addressFromStringValue(NFTIssuer)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
5+
6+let currentTs = lastBlock.timestamp
57
68 let keyBuyULUSRate = "buy_ULUS_rate"
79
810 let keyBuyULUSRateScaleDelimiter = "buy_ULUS_rate_scale_delimiter"
911
1012 let keySellULUSRate = "sell_ULUS_rate"
1113
1214 let keySellULUSRateScaleDelimiter = "sell_ULUS_rate_scale_delimiter"
1315
1416 let keyMakeNFTFee = "key_make_NFT_fee"
1517
1618 let keyCommission = "commission"
1719
1820 let keyCommissionScaleDelimiter = "commission_scale_delimiter"
1921
2022 let USDN = base58'GPi1Q6QVgUmuomtThbim81hBYBEUWyf5BVmE4Tnd3sNg'
2123
2224 let ULUS = base58'J74E8AHdZobVSkA3YboiRrxFUs4odMVxK8tGMg6QXA1n'
2325
2426 let assetId = USDN
2527
2628 let commissionAddress = Address(base58'3N1yGG2mA3gTLxReAh84njeRvCBzvUbCccg')
2729
30+let backendPubKey = base58'5fJ73uaebbc12bwCegVoRZgNKfn4BqpH8NB8Rs2NpBmg'
31+
2832 @Callable(i)
2933 func makeNFT (name,description,productId) = {
30- let $t011931268 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
31- let pmtAmount = $t011931268._1
32- let pmtAssetId = $t011931268._2
34+ let $t013001375 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
35+ let pmtAmount = $t013001375._1
36+ let pmtAssetId = $t013001375._2
3337 let makeNFTfee = getIntegerValue(this, keyMakeNFTFee)
3438 if ((pmtAssetId != assetId))
3539 then throw("Asset must be USDN only")
3640 else if ((makeNFTfee > pmtAmount))
3741 then throw(("Fee for make NFT token is " + toString(makeNFTfee)))
3842 else if (isDefined(getString(this, productId)))
3943 then throw("NFT for this productId is already issued.")
4044 else {
4145 let newAsset = Issue(name, makeString([description, productId, toString(i.caller)], SEP), 1, 0, false, unit, 0)
4246 let newAssetId = calculateAssetId(newAsset)
4347 [newAsset, StringEntry(productId, toBase58String(newAssetId)), ScriptTransfer(commissionAddress, pmtAmount, pmtAssetId)]
48+ }
49+ }
50+
51+
52+
53+@Callable(i)
54+func getNFT (productId,backendSignature,backendTimestamp) = {
55+ let backendProof = (makeString([toString(this), backendTimestamp], ";") + ";")
56+ if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
57+ then throw("Invalid signature from backend.")
58+ else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
59+ then throw("The signature is expired. Repeat the operation again.")
60+ else if (!(isDefined(getString(this, productId))))
61+ then throw("Invalid productId.")
62+ else {
63+ let NFTassetId = fromBase58String(getStringValue(this, productId))
64+ let NFTbalance = assetBalance(this, NFTassetId)
65+ if ((NFTbalance == 0))
66+ then throw("NFTasset doesn't exist.")
67+ else [ScriptTransfer(i.caller, 1, NFTassetId)]
68+ }
69+ }
70+
71+
72+
73+@Callable(i)
74+func putNFT (productId,backendSignature,backendTimestamp) = {
75+ let backendProof = (makeString([toString(this), backendTimestamp], ";") + ";")
76+ let $t032953370 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
77+ let pmtAmount = $t032953370._1
78+ let pmtAssetId = $t032953370._2
79+ if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
80+ then throw("Invalid signature from backend.")
81+ else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
82+ then throw("The signature is expired. Repeat the operation again.")
83+ else if (!(isDefined(getString(this, productId))))
84+ then throw("Invalid productId.")
85+ else {
86+ let NFTassetId = fromBase58String(getStringValue(this, productId))
87+ if (if ((NFTassetId != pmtAssetId))
88+ then true
89+ else (pmtAmount != 1))
90+ then throw("Wrong NFTasset.")
91+ else nil
4492 }
4593 }
4694
4795
4896
4997 @Callable(i)
5098 func setParams () = if ((i.caller != this))
5199 then throw("Only the DApp itself can call this function")
52100 else [IntegerEntry(keyBuyULUSRate, 150000), IntegerEntry(keyBuyULUSRateScaleDelimiter, 1000), IntegerEntry(keySellULUSRate, 100000), IntegerEntry(keySellULUSRateScaleDelimiter, 1000), IntegerEntry(keyCommission, 30000), IntegerEntry(keyCommissionScaleDelimiter, 1000000), IntegerEntry(keyMakeNFTFee, 1000000)]
53101
54102
55103
56104 @Callable(i)
57105 func clearOldParams () = if ((i.caller != this))
58106 then throw("Only the DApp itself can call this function")
59107 else {
60108 let keyBuyUWORLDRate = "buy_UWORLD_rate"
61109 let keyBuyUWORLDRateScaleDelimiter = "buy_UWORLD_rate_scale_delimiter"
62110 let keySellUWORLDRate = "sell_UWORLD_rate"
63111 let keySellUWORLDRateScaleDelimiter = "sell_UWORLD_rate_scale_delimiter"
64112 [DeleteEntry(keyBuyUWORLDRate), DeleteEntry(keyBuyUWORLDRateScaleDelimiter), DeleteEntry(keySellUWORLDRate), DeleteEntry(keySellUWORLDRateScaleDelimiter)]
65113 }
66114
67115
68116
69117 @Callable(i)
70118 func buyULUS () = {
71- let $t033113386 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
72- let pmtAmount = $t033113386._1
73- let pmtAssetId = $t033113386._2
119+ let $t055895664 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
120+ let pmtAmount = $t055895664._1
121+ let pmtAssetId = $t055895664._2
74122 if ((pmtAssetId != assetId))
75123 then throw("Asset must be USDN only")
76124 else {
77125 let exchangeRate = getIntegerValue(this, keyBuyULUSRate)
78126 let exchangeRateScaleDelimiter = getIntegerValue(this, keyBuyULUSRateScaleDelimiter)
79127 let amountToPay = fraction(pmtAmount, exchangeRateScaleDelimiter, exchangeRate)
80128 let amountWithoutCommission = amountToPay
81129 [ScriptTransfer(i.caller, amountWithoutCommission, ULUS)]
82130 }
83131 }
84132
85133
86134
87135 @Callable(i)
88136 func sellULUS () = {
89- let $t040404115 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
90- let pmtAmount = $t040404115._1
91- let pmtAssetId = $t040404115._2
137+ let $t063186393 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
138+ let pmtAmount = $t063186393._1
139+ let pmtAssetId = $t063186393._2
92140 if ((pmtAssetId != ULUS))
93141 then throw("Asset must be ULUS only")
94142 else {
95143 let exchangeRate = getIntegerValue(this, keySellULUSRate)
96144 let exchangeRateScaleDelimiter = getIntegerValue(this, keySellULUSRateScaleDelimiter)
97145 let amountToPay = fraction(pmtAmount, exchangeRate, exchangeRateScaleDelimiter)
98146 let amountWithoutCommission = amountToPay
99147 [ScriptTransfer(i.caller, amountWithoutCommission, USDN)]
100148 }
101149 }
102150
103151
104152
105153 @Callable(i)
106154 func makePayment (recipient,productId,backendSignature,backendTimestamp) = {
107- let currentTs = lastBlock.timestamp
108155 let recipientAddress = addressFromStringValue(recipient)
109- let $t049595034 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
110- let pmtAmount = $t049595034._1
111- let pmtAssetId = $t049595034._2
112- let backendPubKey = base58'5fJ73uaebbc12bwCegVoRZgNKfn4BqpH8NB8Rs2NpBmg'
156+ let $t071997274 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
157+ let pmtAmount = $t071997274._1
158+ let pmtAssetId = $t071997274._2
113159 let backendProof = (makeString([toString(this), backendTimestamp, toString(pmtAmount)], ";") + ";")
114160 if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
115- then throw("Invalid proof from backend.")
161+ then throw("Invalid signature from backend.")
116162 else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
117163 then throw("The signature is expired. Repeat the operation again.")
118164 else if (if ((pmtAssetId != USDN))
119165 then (pmtAssetId != ULUS)
120166 else false)
121167 then throw("Asset must be only USDN or ULUS")
122168 else {
123169 let commission = getIntegerValue(this, keyCommission)
124170 let commissionScaleDelimiter = getIntegerValue(this, keyCommissionScaleDelimiter)
125171 let amountCommission = fraction(pmtAmount, commission, commissionScaleDelimiter)
126172 let amountWithoutCommission = (pmtAmount - amountCommission)
127173 let assetDivider = if ((pmtAssetId == USDN))
128174 then 1000000
129175 else 1000
130176 let amountCashback = fraction(pmtAmount, 100, assetDivider)
131177 if (isDefined(getString(this, productId)))
132178 then {
133179 let NFTassetId = fromBase58String(getStringValue(this, productId))
134180 let NFTbalance = assetBalance(this, NFTassetId)
135181 if ((NFTbalance == 0))
136- then throw("NFTAsset doesn't exist.")
182+ then throw("NFTasset doesn't exist.")
137183 else {
138184 let NFTIssuer = split(value(assetInfo(NFTassetId)).description, SEP)[2]
139185 let NFTIssuerAddress = addressFromStringValue(NFTIssuer)
140186 let amountIssuerCommission = fraction(pmtAmount, 100000, 1000000)
141187 let amountWithoutCommissions = ((pmtAmount - amountCommission) - amountIssuerCommission)
142188 [ScriptTransfer(recipientAddress, amountWithoutCommissions, pmtAssetId), ScriptTransfer(commissionAddress, amountCommission, pmtAssetId), ScriptTransfer(NFTIssuerAddress, amountIssuerCommission, pmtAssetId), ScriptTransfer(i.caller, amountCashback, ULUS), ScriptTransfer(i.caller, 1, NFTassetId)]
143189 }
144190 }
145191 else [ScriptTransfer(recipientAddress, amountWithoutCommission, pmtAssetId), ScriptTransfer(commissionAddress, amountCommission, pmtAssetId), ScriptTransfer(i.caller, amountCashback, ULUS)]
146192 }
147193 }
148194
149195

github/deemru/w8io/026f985 
55.64 ms