tx · 2Q5L5jPrEDttr7LbLLmUHHZtVG9wSPqbkwyeQz8NB1Yp 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx: -1.00000000 Waves 2019.02.20 13:56 [503397] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG
{ "type": 15, "id": "2Q5L5jPrEDttr7LbLLmUHHZtVG9wSPqbkwyeQz8NB1Yp", "fee": 100000000, "feeAssetId": null, "timestamp": 1550660213662, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "2MDEQbMoZkaXmADskwLNjoC423MFoSj9pTpjw6iXcKu75Khp1SHhAVh8GHyjSF69WmRhitSDAi3VF1DKivqT8VMS" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAATbWluaW11bVdhdmVzQmFsYW5jZQAAAAAAO5rKAAQAAAAQbW92ZVRpbWVJbkJsb2NrcwAAAAAAAAATiAQAAAAQbWluaW1hbEZlZVRvTW92ZQAAAAAAAJiWgAQAAAAQbWluaW1hbEZlZVRvQnVybgAAAAAAAvrwgAQAAAAFcHJpY2UAAAAAAACYloAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAARwYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAEdW5pdAEAAAAgzYx4W9Jed07esV0az1/a+QmnX6Nj+tfM2SX5aJD6CmcEAAAADnRyYWRlZEZvcldhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAALYW1vdW50QXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAApwcmljZUFzc2V0AwUAAAAOdHJhZGVkRm9yV2F2ZXMJAABnAAAAAggFAAAAAWUAAAAFcHJpY2UFAAAABXByaWNlBwMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAARtYXNzBQAAAAckbWF0Y2gwBAAAAAt0cmFuc2FjdGlvbgkAA+gAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAARtYXNzAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDEFAAAAC3RyYW5zYWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAdpc3N1ZVR4BQAAAAckbWF0Y2gxCQAAAAAAAAIIBQAAAARtYXNzAAAAD3NlbmRlclB1YmxpY0tleQgFAAAAB2lzc3VlVHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAEUJhZCBpc3N1ZSB0eCB0eXBlCQAAAgAAAAECAAAAIFlvdSBvbmx5IGNhbiB0cmFuc2ZlciB0aGlzIHRva2VuBtMB+A==", "chainId": 84, "height": 503397, "spentComplexity": 0 } View: original | compacted Prev: none Next: HDkD5HjPmUWK7aEkjnvuESYi6gvFUTQTiDXXYeobQgdE Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 1 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let minimumWavesBalance = 1000000000 | |
4 | + | let moveTimeInBlocks = 5000 | |
5 | + | let minimalFeeToMove = 10000000 | |
6 | + | let minimalFeeToBurn = 50000000 | |
7 | + | let price = 10000000 | |
8 | + | match tx { | |
9 | + | case e: ExchangeTransaction => | |
10 | + | let pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg') | |
11 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) | |
12 | + | then true | |
13 | + | else !(isDefined(pair.priceAsset)) | |
14 | + | if (tradedForWaves) | |
15 | + | then (e.price >= price) | |
16 | + | else false | |
17 | + | case mass: SetAssetScriptTransaction|MassTransferTransaction => | |
18 | + | let transaction = transactionById(extract(mass.assetId)) | |
19 | + | match transaction { | |
20 | + | case issueTx: IssueTransaction => | |
21 | + | (mass.senderPublicKey == issueTx.senderPublicKey) | |
22 | + | case _ => | |
23 | + | throw("Bad issue tx type") | |
24 | + | } | |
25 | + | case _ => | |
26 | + | throw("You only can transfer this token") | |
27 | + | } |
github/deemru/w8io/169f3d6 35.70 ms ◑