tx · EPyRHwFwckk4gMBCMT9otm1WedmPmNrqo1rSgRVtCMbq
3N35bE2KnSXLqCm7R8DbESdfGthWSWYdwWE: -0.01400000 Waves
2019.12.10 10:29 [802381] smart account 3N35bE2KnSXLqCm7R8DbESdfGthWSWYdwWE > SELF 0.00000000 Waves
{
"type": 13,
"id": "EPyRHwFwckk4gMBCMT9otm1WedmPmNrqo1rSgRVtCMbq",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1575962928926,
"version": 1,
"sender": "3N35bE2KnSXLqCm7R8DbESdfGthWSWYdwWE",
"senderPublicKey": "GtXeMqkP3JUjRf7EDptgqdEu5wkrkG4d2sbfUi5hYQVi",
"proofs": [
"5X4LyBC3h5XGSGeNjWNkucQoJ7XanhFaroHJiCwfw2zcFux937qskxfanmXVV2YLHmE3n78vLRLhTVnSVMXtBLQf"
],
"script": "base64:AwQAAAAKZXhwaXJhdGlvbgAAAAAAAAjTYAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACYnIFAAAAByRtYXRjaDAEAAAACHN1cHBsaWVyCQEAAAAHZXh0cmFjdAAAAAEJAAPsAAAAAQgFAAAAAmJyAAAAB2Fzc2V0SWQJAAAAAAAAAggFAAAACHN1cHBsaWVyAAAAD2lzc3VlclB1YmxpY0tleQgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAJd2l0aFdhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQDCQAAZwAAAAIFAAAACmV4cGlyYXRpb24FAAAABmhlaWdodAUAAAAJd2l0aFdhdmVzBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHIFAAAAByRtYXRjaDAJAABnAAAAAgUAAAAKZXhwaXJhdGlvbgUAAAAGaGVpZ2h0B2B08I8=",
"chainId": 84,
"height": 802381,
"spentComplexity": 0
}
View: original | compacted
Prev: Hu2qh2XtJd3iRmmLN2G37eKP8cjyLgU3Gvbzb1TC3gH2
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 2 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let master = addressFromString("3masterAddress") |
---|
| 3 | + | let expiration = 578400 |
---|
4 | 4 | | match tx { |
---|
5 | | - | case t: TransferTransaction => |
---|
6 | | - | if ((t.sender == master)) |
---|
| 5 | + | case br: ReissueTransaction|BurnTransaction => |
---|
| 6 | + | let supplier = extract(assetInfo(br.assetId)) |
---|
| 7 | + | (supplier.issuerPublicKey == tx.senderPublicKey) |
---|
| 8 | + | case e: ExchangeTransaction => |
---|
| 9 | + | let withWaves = if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
7 | 10 | | then true |
---|
8 | | - | else (t.recipient == master) |
---|
9 | | - | case mt: MassTransferTransaction => |
---|
10 | | - | (mt.sender == master) |
---|
11 | | - | case ex: ExchangeTransaction => |
---|
| 11 | + | else !(isDefined(e.sellOrder.assetPair.amountAsset)) |
---|
| 12 | + | if ((expiration >= height)) |
---|
| 13 | + | then withWaves |
---|
| 14 | + | else false |
---|
| 15 | + | case tr: TransferTransaction => |
---|
| 16 | + | (expiration >= height) |
---|
| 17 | + | case _ => |
---|
12 | 18 | | false |
---|
13 | | - | case _ => |
---|
14 | | - | true |
---|
15 | 19 | | } |
---|