tx · AiqdF8WtJDPS4C73t1zbELnoEfrQ3me4S6n1Aj8S9ir7
3N4QdQY4gYb5PmRdvfueVmye49RCmn5GAEy: -1.00000000 Waves
2019.02.17 15:03 [499042] smart asset 3N4QdQY4gYb5PmRdvfueVmye49RCmn5GAEy > SELF 0.00000000 Newwave1
{
"type": 15,
"id": "AiqdF8WtJDPS4C73t1zbELnoEfrQ3me4S6n1Aj8S9ir7",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550405024808,
"version": 1,
"sender": "3N4QdQY4gYb5PmRdvfueVmye49RCmn5GAEy",
"senderPublicKey": "siVpxLTmbQMPohN8n2LEQwuA49kNBW4D5NoiUgyg5o1",
"proofs": [
"4BrtKwfDuu5jncEAfkiPv3NiBzKu55cBPeg14ZjyRHLMvSPJx2MNwWatnMd6RtzrqXhH7PdFAA9HKFbisXooMQqp"
],
"assetId": "DRVHgZq1m1mKdRZtpC6FyhJpgDEea5aMpYnbFtvLeCBD",
"script": "base64:AQQAAAATbWluaW11bVdhdmVzQmFsYW5jZQAAAAAAO5rKAAQAAAAQbW92ZVRpbWVJbkJsb2NrcwAAAAAAAAATiAQAAAAQbWluaW1hbEZlZVRvTW92ZQAAAAAAAJiWgAQAAAAQbWluaW1hbEZlZVRvQnVybgAAAAAAAvrwgAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAARidXJuBQAAAAckbWF0Y2gwAwkAAGYAAAACBQAAABBtaW5pbWFsRmVlVG9CdXJuCAUAAAAEYnVybgAAAANmZWUJAAACAAAAAQIAAAAMcGF5IDUgdG9rZW5zBgMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAARtYXNzBQAAAAckbWF0Y2gwBAAAAAt0cmFuc2FjdGlvbgkAA+gAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAARtYXNzAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDEFAAAAC3RyYW5zYWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAdpc3N1ZVR4BQAAAAckbWF0Y2gxCQAAAAAAAAIIBQAAAARtYXNzAAAAD3NlbmRlclB1YmxpY0tleQgFAAAAB2lzc3VlVHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAEUJhZCBpc3N1ZSB0eCB0eXBlCQAAAgAAAAECAAAAIFlvdSBvbmx5IGNhbiB0cmFuc2ZlciB0aGlzIHRva2Vu1MnMug==",
"chainId": 84,
"height": 499042,
"spentComplexity": 0
}
View: original | compacted
Prev: GB64b4sPJhu9nZq31JcruAY81jhraqWKume1VheBBjGn
Next: HNgp5CAsGux755t4pLSHQKVaF9UxcZwyGPNSCut8PMkq
Diff:
Old | New | | Differences |
---|
5 | 5 | | let minimalFeeToMove = 10000000 |
---|
6 | 6 | | let minimalFeeToBurn = 50000000 |
---|
7 | 7 | | match tx { |
---|
8 | | - | case burn: ExchangeTransaction => |
---|
| 8 | + | case t: ExchangeTransaction => |
---|
| 9 | + | true |
---|
| 10 | + | case burn: TransferTransaction => |
---|
9 | 11 | | if ((minimalFeeToBurn > burn.fee)) |
---|
10 | 12 | | then throw("pay 5 tokens") |
---|
11 | 13 | | else true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let minimumWavesBalance = 1000000000 |
---|
4 | 4 | | let moveTimeInBlocks = 5000 |
---|
5 | 5 | | let minimalFeeToMove = 10000000 |
---|
6 | 6 | | let minimalFeeToBurn = 50000000 |
---|
7 | 7 | | match tx { |
---|
8 | | - | case burn: ExchangeTransaction => |
---|
| 8 | + | case t: ExchangeTransaction => |
---|
| 9 | + | true |
---|
| 10 | + | case burn: TransferTransaction => |
---|
9 | 11 | | if ((minimalFeeToBurn > burn.fee)) |
---|
10 | 12 | | then throw("pay 5 tokens") |
---|
11 | 13 | | else true |
---|
12 | 14 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
13 | 15 | | let transaction = transactionById(extract(mass.assetId)) |
---|
14 | 16 | | match transaction { |
---|
15 | 17 | | case issueTx: IssueTransaction => |
---|
16 | 18 | | (mass.senderPublicKey == issueTx.senderPublicKey) |
---|
17 | 19 | | case _ => |
---|
18 | 20 | | throw("Bad issue tx type") |
---|
19 | 21 | | } |
---|
20 | 22 | | case _ => |
---|
21 | 23 | | throw("You only can transfer this token") |
---|
22 | 24 | | } |
---|