tx · 5F3R3xJbF2ppjFAHPNKT66mK4ratLMndQXkW9QWQBA2B

3N7a7sTSKaE621QewSqQcL1mUbknJjnLkZc:  -0.01000000 Waves

2021.10.21 23:58 [1756564] smart account 3N7a7sTSKaE621QewSqQcL1mUbknJjnLkZc > SELF 0.00000000 Waves

{ "type": 13, "id": "5F3R3xJbF2ppjFAHPNKT66mK4ratLMndQXkW9QWQBA2B", "fee": 1000000, "feeAssetId": null, "timestamp": 1634849975726, "version": 2, "chainId": 84, "sender": "3N7a7sTSKaE621QewSqQcL1mUbknJjnLkZc", "senderPublicKey": "6LrPmGtwuADhwHYcxBouLzwfSTGgucbwYG5Pja7LUrcd", "proofs": [ "2Nar1znCxGZBoWgnj3eDc1zQk7DjoVrLcJQWttSF2TfSxPXYTLGjn9riwVn7cmf3wHVPX1de2YS168Cu39pEBCUW" ], "script": "base64:AAIFAAAAAAAAABcIAhIECgIIGRIDCgEBEgMKAQESAwoBAQAAABEAAAAACm9mZmVySWRLZXkCAAAADSRPRkZFUl9OVU1CRVIAAAAAB3Rlc3RLZXkCAAAABSRURVNUAAAAAA9vZmZlck9wZW5TdGF0dXMAAAAAAAAAAAEAAAAAE29mZmVyQ2FuY2VsZWRTdGF0dXMAAAAAAAAAAAIAAAAAE29mZmVyQWNjZXB0ZWRTdGF0dXMAAAAAAAAAAAMAAAAAE29mZmVyUmVqZWN0ZWRTdGF0dXMAAAAAAAAAAAQAAAAAFndhdmVzU3RhbmRJbkJ5dGVWZWN0b3IJAAGbAAAAAQIAAAAFV0FWRVMBAAAAEWdldE9mZmVyU3RhdHVzS2V5AAAAAQAAAAdvZmZlcklkCQABLAAAAAIJAAGkAAAAAQUAAAAHb2ZmZXJJZAIAAAAHX3N0YXR1cwEAAAAWZ2V0T2ZmZXJBZGRyZXNzRnJvbUtleQAAAAEAAAAHb2ZmZXJJZAkAASwAAAACCQABpAAAAAEFAAAAB29mZmVySWQCAAAABV9mcm9tAQAAABRnZXRPZmZlckFkZHJlc3NUb0tle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wMJAQAAAAIhPQAAAAIFAAAACWFkZHJlc3NUbwUAAAAJY2FsbGVyU3RyCQAAAgAAAAECAAAAHG9mZmVyIG11c3QgYmUgbWFkZSB0byBjYWxsZXIJAQAAAAlkcm9wT2ZmZXIAAAACBQAAAAdvZmZlcklkBQAAABNvZmZlclJlamVjdGVkU3RhdHVzAAAAAEL+UAI=", "height": 1756564, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HdUYUQk91q5EuiGywKBw8iE6a8HNjMSa5dnr6R8o2iHq Next: CAR2m5ja2HCzeMUZAmpv77SL8vSFGqZuM9MdAF16ZAmY Diff:
OldNewDifferences
5555 }
5656
5757
58+func dropOffer (offerId,dropStatus) = {
59+ let addressFrom = Address(fromBase58String(getStringValue(this, getOfferAddressFromKey(offerId))))
60+ let assetId = tryGetAssetId(offerId, 0)
61+ let assetAmount = tryGetInteger(getOfferOfferedAmountKey(offerId, 0))
62+[IntegerEntry(getOfferStatusKey(offerId), dropStatus), ScriptTransfer(addressFrom, assetAmount, assetId)]
63+ }
64+
65+
5866 @Callable(i)
59-func createOffer (toAddress,asset) = {
67+func createOffer (toAddress,asset0) = {
6068 let offerId = (tryGetInteger(offerIdKey) + 1)
6169 let firstPayment = value(i.payments[0])
6270 if (!(isDefined(firstPayment)))
6371 then throw("no payment")
64- else [IntegerEntry(offerIdKey, offerId), IntegerEntry(getOfferStatusKey(offerId), offerOpenStatus), StringEntry(getOfferAddressFromKey(offerId), toBase58String(i.caller.bytes)), StringEntry(getOfferAddressToKey(offerId), toAddress), StringEntry(getOfferOfferedAssetKey(offerId, 0), toBase64String(valueOrElse(firstPayment.assetId, wavesStandInByteVector))), IntegerEntry(getOfferOfferedAmountKey(offerId, 0), firstPayment.amount)]
72+ else [IntegerEntry(offerIdKey, offerId), IntegerEntry(getOfferStatusKey(offerId), offerOpenStatus), StringEntry(getOfferAddressFromKey(offerId), toBase58String(i.caller.bytes)), StringEntry(getOfferAddressToKey(offerId), toAddress), StringEntry(getOfferOfferedAssetKey(offerId, 0), toBase64String(valueOrElse(firstPayment.assetId, wavesStandInByteVector))), IntegerEntry(getOfferOfferedAmountKey(offerId, 0), firstPayment.amount), StringEntry(getOfferOfferedAssetKey(offerId, 0), toBase64String(valueOrElse(firstPayment.assetId, wavesStandInByteVector))), IntegerEntry(getOfferOfferedAmountKey(offerId, 0), firstPayment.amount)]
6573 }
6674
6775
7684 let callerStr = toBase58String(i.caller.bytes)
7785 if ((addressFrom != callerStr))
7886 then throw("offer must be made by caller")
79- else {
80- let assetId = tryGetAssetId(offerId, 0)
81- let assetAmount = tryGetInteger(getOfferOfferedAmountKey(offerId, 0))
82-[IntegerEntry(getOfferStatusKey(offerId), offerCanceledStatus), ScriptTransfer(i.caller, assetAmount, assetId)]
83- }
87+ else dropOffer(offerId, offerCanceledStatus)
8488 }
8589 }
8690
112116 let callerStr = toBase58String(i.caller.bytes)
113117 if ((addressTo != callerStr))
114118 then throw("offer must be made to caller")
115- else [IntegerEntry(getOfferStatusKey(offerId), offerRejectedStatus)]
119+ else dropOffer(offerId, offerRejectedStatus)
116120 }
117121 }
118122
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let offerIdKey = "$OFFER_NUMBER"
55
66 let testKey = "$TEST"
77
88 let offerOpenStatus = 1
99
1010 let offerCanceledStatus = 2
1111
1212 let offerAcceptedStatus = 3
1313
1414 let offerRejectedStatus = 4
1515
1616 let wavesStandInByteVector = toBytes("WAVES")
1717
1818 func getOfferStatusKey (offerId) = (toString(offerId) + "_status")
1919
2020
2121 func getOfferAddressFromKey (offerId) = (toString(offerId) + "_from")
2222
2323
2424 func getOfferAddressToKey (offerId) = (toString(offerId) + "_to")
2525
2626
2727 func getOfferOfferedAssetKey (offerId,itemNumber) = (((toString(offerId) + "_") + toString(itemNumber)) + "_offered_asset_id")
2828
2929
3030 func getOfferOfferedAmountKey (offerId,itemNumber) = (((toString(offerId) + "_") + toString(itemNumber)) + "_offered_asset_amount")
3131
3232
3333 func getOfferAskedAssetKey (offerId,itemNumber) = (((toString(offerId) + "_") + toString(itemNumber)) + "_asked_asset_id")
3434
3535
3636 func getOfferAskedAmountKey (offerId,itemNumber) = (((toString(offerId) + "_") + toString(itemNumber)) + "_asked_asset_amount")
3737
3838
3939 func tryGetInteger (key) = {
4040 let val = match getInteger(this, key) {
4141 case b: Int =>
4242 b
4343 case _ =>
4444 0
4545 }
4646 val
4747 }
4848
4949
5050 func tryGetAssetId (offerId,itemNumber) = {
5151 let val = fromBase64String(getStringValue(this, getOfferOfferedAssetKey(offerId, itemNumber)))
5252 if ((val == wavesStandInByteVector))
5353 then unit
5454 else val
5555 }
5656
5757
58+func dropOffer (offerId,dropStatus) = {
59+ let addressFrom = Address(fromBase58String(getStringValue(this, getOfferAddressFromKey(offerId))))
60+ let assetId = tryGetAssetId(offerId, 0)
61+ let assetAmount = tryGetInteger(getOfferOfferedAmountKey(offerId, 0))
62+[IntegerEntry(getOfferStatusKey(offerId), dropStatus), ScriptTransfer(addressFrom, assetAmount, assetId)]
63+ }
64+
65+
5866 @Callable(i)
59-func createOffer (toAddress,asset) = {
67+func createOffer (toAddress,asset0) = {
6068 let offerId = (tryGetInteger(offerIdKey) + 1)
6169 let firstPayment = value(i.payments[0])
6270 if (!(isDefined(firstPayment)))
6371 then throw("no payment")
64- else [IntegerEntry(offerIdKey, offerId), IntegerEntry(getOfferStatusKey(offerId), offerOpenStatus), StringEntry(getOfferAddressFromKey(offerId), toBase58String(i.caller.bytes)), StringEntry(getOfferAddressToKey(offerId), toAddress), StringEntry(getOfferOfferedAssetKey(offerId, 0), toBase64String(valueOrElse(firstPayment.assetId, wavesStandInByteVector))), IntegerEntry(getOfferOfferedAmountKey(offerId, 0), firstPayment.amount)]
72+ else [IntegerEntry(offerIdKey, offerId), IntegerEntry(getOfferStatusKey(offerId), offerOpenStatus), StringEntry(getOfferAddressFromKey(offerId), toBase58String(i.caller.bytes)), StringEntry(getOfferAddressToKey(offerId), toAddress), StringEntry(getOfferOfferedAssetKey(offerId, 0), toBase64String(valueOrElse(firstPayment.assetId, wavesStandInByteVector))), IntegerEntry(getOfferOfferedAmountKey(offerId, 0), firstPayment.amount), StringEntry(getOfferOfferedAssetKey(offerId, 0), toBase64String(valueOrElse(firstPayment.assetId, wavesStandInByteVector))), IntegerEntry(getOfferOfferedAmountKey(offerId, 0), firstPayment.amount)]
6573 }
6674
6775
6876
6977 @Callable(i)
7078 func cancelOffer (offerId) = {
7179 let offerStatus = tryGetInteger(getOfferStatusKey(offerId))
7280 if ((offerStatus != offerOpenStatus))
7381 then throw("offer status must be open")
7482 else {
7583 let addressFrom = getStringValue(this, getOfferAddressFromKey(offerId))
7684 let callerStr = toBase58String(i.caller.bytes)
7785 if ((addressFrom != callerStr))
7886 then throw("offer must be made by caller")
79- else {
80- let assetId = tryGetAssetId(offerId, 0)
81- let assetAmount = tryGetInteger(getOfferOfferedAmountKey(offerId, 0))
82-[IntegerEntry(getOfferStatusKey(offerId), offerCanceledStatus), ScriptTransfer(i.caller, assetAmount, assetId)]
83- }
87+ else dropOffer(offerId, offerCanceledStatus)
8488 }
8589 }
8690
8791
8892
8993 @Callable(i)
9094 func acceptOffer (offerId) = {
9195 let offerStatus = tryGetInteger(getOfferStatusKey(offerId))
9296 if ((offerStatus != offerOpenStatus))
9397 then throw("offer status must be open")
9498 else {
9599 let addressTo = getStringValue(this, getOfferAddressToKey(offerId))
96100 let callerStr = toBase58String(i.caller.bytes)
97101 if ((addressTo != callerStr))
98102 then throw("offer must be made to caller")
99103 else [IntegerEntry(getOfferStatusKey(offerId), offerAcceptedStatus)]
100104 }
101105 }
102106
103107
104108
105109 @Callable(i)
106110 func rejectOffer (offerId) = {
107111 let offerStatus = tryGetInteger(getOfferStatusKey(offerId))
108112 if ((offerStatus != offerOpenStatus))
109113 then throw("offer status must be open")
110114 else {
111115 let addressTo = getStringValue(this, getOfferAddressToKey(offerId))
112116 let callerStr = toBase58String(i.caller.bytes)
113117 if ((addressTo != callerStr))
114118 then throw("offer must be made to caller")
115- else [IntegerEntry(getOfferStatusKey(offerId), offerRejectedStatus)]
119+ else dropOffer(offerId, offerRejectedStatus)
116120 }
117121 }
118122
119123

github/deemru/w8io/026f985 
41.46 ms