tx · 415ueWWXuzHjMAHxj8oR5sR2oKVZpmW22yauVDrHiAVJ

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.09.04 15:05 [1162615] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200

{ "type": 15, "id": "415ueWWXuzHjMAHxj8oR5sR2oKVZpmW22yauVDrHiAVJ", "fee": 100000000, "feeAssetId": null, "timestamp": 1599221169010, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "2mzbHbjsMToJFHhmBGb4pHtuNcTXFiuVQs8vuS5ptULNWqJ1aaHFd4FwizY8We9M4zr3VZQSuCYc171UaMfjKCSb" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCQAAaQAAAAIIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAAAAAPoBAAAAAdzcG9uc29yAQAAACBBa8XAYqVvmo8A0b+Cee545P2vz+BaMZNc8EyMlYJWlQQAAAAJc3RhcnRUaW1lAAAAAABfTn4QBAAAAApzdGFydFByaWNlAAAAAAAAAYagBAAAAAxpbnRlcnZhbFRpbWUAAAAAAAAD9IAEAAAADWludGVydmFsUHJpY2UAAAAAAAABhqAEAAAABnBlcmlvZAkAAGkAAAACCQAAZQAAAAIFAAAAA3RpbQUAAAAJc3RhcnRUaW1lBQAAAAxpbnRlcnZhbFRpbWUEAAAACXBlcmlvZEVuZAkAAGQAAAACCQAAaAAAAAIJAABkAAAAAgUAAAAGcGVyaW9kAAAAAAAAAAABBQAAAAxpbnRlcnZhbFRpbWUFAAAACXN0YXJ0VGltZQQAAAAJcHJpY2VTZWxsCQAAZAAAAAIFAAAACnN0YXJ0UHJpY2UJAABoAAAAAgUAAAANaW50ZXJ2YWxQcmljZQUAAAAGcGVyaW9kBAAAAAtwcmljZUJ1eU1pbgkAAGUAAAACBQAAAAlwcmljZVNlbGwFAAAADWludGVydmFsUHJpY2UEAAAAC3ByaWNlQnV5TWF4CQAAZAAAAAIFAAAACXByaWNlU2VsbAUAAAANaW50ZXJ2YWxQcmljZQQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAALZEFwcEFkZHJlc3MDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkAAAAAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACW9yZGVyVHlwZQUAAAAEU2VsbAcGB7nZtqQ=", "chainId": 84, "height": 1162615, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9j11VAQqS4fe187uDjxobyb8tfmwdyL2mrNdmybpaX82 Next: Gpoy6u9rDxUQhChUM9RJYo8wT6GNNLPFaeDZcED6BGKQ Diff:
OldNewDifferences
1717 case tx: MassTransferTransaction|BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1818 (tx.sender == dAppAddress)
1919 case t: TransferTransaction =>
20- if ((t.feeAssetId != sponsor))
21- then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###")
20+ true
21+ case e: ExchangeTransaction =>
22+ if ((e.sellOrder.orderType == Sell))
23+ then false
2224 else true
23- case e: ExchangeTransaction =>
24- let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
25- if (admin)
26- then true
27- else if ((e.sellOrder.orderType == Sell))
28- then throw(" Покупка ")
29- else if ((e.buyOrder.orderType == Buy))
30- then throw(" Продажа ")
31- else throw(" Something bad happened ")
3225 case _ =>
3326 false
3427 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let tim = (lastBlock.timestamp / 1000)
66 let sponsor = base58'5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC'
77 let startTime = 1598979600
88 let startPrice = 100000
99 let intervalTime = 259200
1010 let intervalPrice = 100000
1111 let period = ((tim - startTime) / intervalTime)
1212 let periodEnd = (((period + 1) * intervalTime) + startTime)
1313 let priceSell = (startPrice + (intervalPrice * period))
1414 let priceBuyMin = (priceSell - intervalPrice)
1515 let priceBuyMax = (priceSell + intervalPrice)
1616 match tx {
1717 case tx: MassTransferTransaction|BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1818 (tx.sender == dAppAddress)
1919 case t: TransferTransaction =>
20- if ((t.feeAssetId != sponsor))
21- then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###")
20+ true
21+ case e: ExchangeTransaction =>
22+ if ((e.sellOrder.orderType == Sell))
23+ then false
2224 else true
23- case e: ExchangeTransaction =>
24- let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
25- if (admin)
26- then true
27- else if ((e.sellOrder.orderType == Sell))
28- then throw(" Покупка ")
29- else if ((e.buyOrder.orderType == Buy))
30- then throw(" Продажа ")
31- else throw(" Something bad happened ")
3225 case _ =>
3326 false
3427 }

github/deemru/w8io/169f3d6 
52.73 ms