tx · 7Ubm6m6XqZG9cxJ8gkpMpfx6bAB6L3kU1JFc6qN4A2RK
3N15DGgcLXSctAzxz8fvXSoW3W6up4VmnPA: -1.00400000 Waves
2020.05.29 04:32 [1019009] smart asset 3N15DGgcLXSctAzxz8fvXSoW3W6up4VmnPA > SELF 0 ofDES
{
"type": 15,
"id": "7Ubm6m6XqZG9cxJ8gkpMpfx6bAB6L3kU1JFc6qN4A2RK",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1590715976892,
"version": 1,
"sender": "3N15DGgcLXSctAzxz8fvXSoW3W6up4VmnPA",
"senderPublicKey": "7phy1Un2TLCqTJNLhqu43csHW3ZSs6aAUJaYMJgLrJPy",
"proofs": [
"5RCrQ1tgzNyEkj6JG2tTPugftHmXkKgBK9fKJhQpmJ2LeKde55tdAYBGwhbKMVR97TtCsVTgqkeq9Yn7Zbpdet59"
],
"assetId": "7aKR2fHbWvP8K4YCp2WJ3JEQmgZGy6Jm82Rhux8878Kf",
"script": "base64:AgQAAAADZXNnAAAAAAAAAAAfBAAAAAVwcmljZQAAAAAkFrhOAAQAAAAFU0NSSWQBAAAAIP8wX2m0eBL2pYmFVtptckmaEVicGOuRsJUBdkqAtnUvBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEcGFpcggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACWFzc2V0UGFpcgQAAAAOdHJhZGVkRm9yU3VjcmUDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAAthbW91bnRBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAARwYWlyAAAACnByaWNlQXNzZXQDBQAAAA50cmFkZWRGb3JTdWNyZQkAAAAAAAACCAUAAAABZQAAAAVwcmljZQkAAGgAAAACBQAAAAVwcmljZQUAAAADZXNnBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABYQUAAAAHJG1hdGNoMAkAAAAAAAACCAgIBQAAAAFhAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAFU0NSSWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABYgUAAAAHJG1hdGNoMAcDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYHvZf71Q==",
"chainId": 84,
"height": 1019009,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 2 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let esg = 31 |
---|
| 4 | + | let price = 155000000000 |
---|
| 5 | + | let SCRId = base58'JB9k9oaBGtpnTWTey6HU6d4uipiDPpGNGokQHKYFMULv' |
---|
| 6 | + | match tx { |
---|
| 7 | + | case e: ExchangeTransaction => |
---|
| 8 | + | let pair = e.buyOrder.assetPair |
---|
| 9 | + | let tradedForSucre = if (!(isDefined(pair.amountAsset))) |
---|
| 10 | + | then true |
---|
| 11 | + | else !(isDefined(pair.priceAsset)) |
---|
| 12 | + | if (tradedForSucre) |
---|
| 13 | + | then (e.price == (price * esg)) |
---|
| 14 | + | else false |
---|
| 15 | + | case a: ExchangeTransaction => |
---|
| 16 | + | (a.sellOrder.assetPair.priceAsset == SCRId) |
---|
| 17 | + | case b: BurnTransaction => |
---|
| 18 | + | false |
---|
| 19 | + | case _: MassTransferTransaction|TransferTransaction => |
---|
| 20 | + | true |
---|
| 21 | + | case _ => |
---|
| 22 | + | false |
---|
| 23 | + | } |
---|