tx · HTyAVeRb9gAA9JM2JJy5gMy24LBW69zzgQruYqZUnacv
3MsQt334vrC8FeNLzusm8XXky1Y6odcNBS9: -1.00000000 Waves
2019.03.18 10:45 [541398] smart asset 3MsQt334vrC8FeNLzusm8XXky1Y6odcNBS9 > SELF 0.000 Asset2
{
"type": 15,
"id": "HTyAVeRb9gAA9JM2JJy5gMy24LBW69zzgQruYqZUnacv",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552895141764,
"version": 1,
"sender": "3MsQt334vrC8FeNLzusm8XXky1Y6odcNBS9",
"senderPublicKey": "3xEmrEg13dR6thnyGsjUiawYNSpv7Zv2iFi4KYxA8ngf",
"proofs": [
"Tqi1S3AmwSFMGUobxMV8HLByezdvcvaBrFeDDGTk7VqqmL72earRSZ2MaUd1UECxfqq9pWPcazZVxHACwXGBWYi"
],
"assetId": "45HNfeJAbioJpmBt6aFvQCf78KPvvhnW6gKXrSh38gd3",
"script": "base64:AgQAAAAERGF0YQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVCZapAUIhSRM8CoTJe+vvUwnwafg3oXtEgQAAAAKRW5hYmxlQnVybgkBAAAAB2V4dHJhY3QAAAABCQAEGwAAAAIFAAAABERhdGECAAAACkVuYWJsZUJ1cm4EAAAACW1pbkFtb3VudAkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABERhdGECAAAABXZhbHVlBAAAAA9leHBpcmF0aW9uU3RhcnQJAAQaAAAAAgUAAAAERGF0YQIAAAAFdmFsdWUEAAAADWV4cGlyYXRpb25FbmQJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAREYXRhAgAAAAV2YWx1ZQMFAAAACkVuYWJsZUJ1cm4EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAhleGNoYW5nZQUAAAAHJG1hdGNoMAQAAAAEc2VsbAkAAfQAAAADCAgFAAAACGV4Y2hhbmdlAAAACXNlbGxPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAhleGNoYW5nZQAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAACGV4Y2hhbmdlAAAACXNlbGxPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkDBQAAAARzZWxsBwYGBAAAAAckbWF0Y2gwBQAAAAJ0eAfm6B2s",
"chainId": 84,
"height": 541398,
"spentComplexity": 0
}
View: original | compacted
Prev: EVzeoLKXSe1VFr3pVZYxtXbgRHLQLqhyPxY88KokepYF
Next: 5PzjWL4bE865x1a2M4tL1WuDeFex2Uz9VJcCDsQXpfUX
Diff:
Old | New | | Differences |
---|
3 | 3 | | let Data = Address(base58'3MsQt334vrC8FeNLzusm8XXky1Y6odcNBS9') |
---|
4 | 4 | | let EnableBurn = extract(getBoolean(Data, "EnableBurn")) |
---|
5 | 5 | | let minAmount = extract(getInteger(Data, "value")) |
---|
6 | | - | let expirationStart = extract(getInteger(Data, "value")) |
---|
| 6 | + | let expirationStart = getInteger(Data, "value") |
---|
7 | 7 | | let expirationEnd = extract(getInteger(Data, "value")) |
---|
8 | 8 | | if (EnableBurn) |
---|
9 | 9 | | then match tx { |
---|
10 | | - | case e: ExchangeTransaction => |
---|
11 | | - | let string = toBase58String(e.sellOrder.id) |
---|
12 | | - | if ((string == "45HNfeJAbioJpmBt6aFvQCf78KPvvhnW6gKXrSh38gd3")) |
---|
| 10 | + | case exchange: ExchangeTransaction => |
---|
| 11 | + | let sell = sigVerify(exchange.sellOrder.bodyBytes, exchange.sellOrder.proofs[0], exchange.sellOrder.senderPublicKey) |
---|
| 12 | + | if (sell) |
---|
13 | 13 | | then false |
---|
14 | 14 | | else true |
---|
15 | 15 | | case _ => |
---|
|
17 | 17 | | } |
---|
18 | 18 | | else match tx { |
---|
19 | 19 | | case _ => |
---|
20 | | - | true |
---|
| 20 | + | false |
---|
21 | 21 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let Data = Address(base58'3MsQt334vrC8FeNLzusm8XXky1Y6odcNBS9') |
---|
4 | 4 | | let EnableBurn = extract(getBoolean(Data, "EnableBurn")) |
---|
5 | 5 | | let minAmount = extract(getInteger(Data, "value")) |
---|
6 | | - | let expirationStart = extract(getInteger(Data, "value")) |
---|
| 6 | + | let expirationStart = getInteger(Data, "value") |
---|
7 | 7 | | let expirationEnd = extract(getInteger(Data, "value")) |
---|
8 | 8 | | if (EnableBurn) |
---|
9 | 9 | | then match tx { |
---|
10 | | - | case e: ExchangeTransaction => |
---|
11 | | - | let string = toBase58String(e.sellOrder.id) |
---|
12 | | - | if ((string == "45HNfeJAbioJpmBt6aFvQCf78KPvvhnW6gKXrSh38gd3")) |
---|
| 10 | + | case exchange: ExchangeTransaction => |
---|
| 11 | + | let sell = sigVerify(exchange.sellOrder.bodyBytes, exchange.sellOrder.proofs[0], exchange.sellOrder.senderPublicKey) |
---|
| 12 | + | if (sell) |
---|
13 | 13 | | then false |
---|
14 | 14 | | else true |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | true |
---|
17 | 17 | | } |
---|
18 | 18 | | else match tx { |
---|
19 | 19 | | case _ => |
---|
20 | | - | true |
---|
| 20 | + | false |
---|
21 | 21 | | } |
---|