tx · 6obG1ckkwQc5Cr6ipz3Katbvk7aJCeDCLVzwyWtmgV6p
3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz: -1.00000000 Waves
2019.09.11 00:45 [670580] smart asset 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz > SELF 0.00000000 DualA
{
"type": 15,
"id": "6obG1ckkwQc5Cr6ipz3Katbvk7aJCeDCLVzwyWtmgV6p",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1568152047590,
"version": 1,
"sender": "3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz",
"senderPublicKey": "8xbFEr8yZ5HF64v8tiadoqScjuYSatXx8ceugsivh1zn",
"proofs": [
"4N7GYiJ3SotStuFQ8Zty6wYsbR4gy3rikgJCCugFUuMhEMVMMh5SnV61QYCLb5jdyDro9x6m3X9ia2tiLhQHrfCg"
],
"assetId": "HVRv6zPUYH7FKeRPAtDtQVAUdrJZdd3C4Qouz5ra55zs",
"script": "base64:AgQAAAAFQmR1YWwBAAAAIA4w9bJLywoxfeXMUuEAY70K/uOYq+f5nZswxuoTVG5mBAAAAAVBZHVhbAEAAAAg9QNs9GvWrc67pxSr4BUJbIJG7uAMgeEktp4NxADgEHwEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAADYnV5CQAB9AAAAAMICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAnR4AAAACGJ1eU9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQMJAABnAAAAAgkAA+sAAAACCAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIFAAAABUJkdWFsCQAAaAAAAAIJAABpAAAAAgkAA+sAAAACCAgFAAAA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WqLB8Pju6T2p9Ts5HqLmCZ39TDun7TtaBkedZ
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 2 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let Bdual = base58'xQ1Tz4qgbFNaPuhrBbzL3ZxaDCTuoFuAJwxYsK52FSV' |
---|
| 4 | + | let Adual = base58'HVRv6zPUYH7FKeRPAtDtQVAUdrJZdd3C4Qouz5ra55zs' |
---|
| 5 | + | match tx { |
---|
| 6 | + | case tx: ExchangeTransaction => |
---|
| 7 | + | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) |
---|
| 8 | + | if ((assetBalance(tx.sellOrder.sender, Bdual) >= ((assetBalance(tx.sellOrder.sender, Adual) / 100) * 70))) |
---|
| 9 | + | then true |
---|
| 10 | + | else if (buy) |
---|
| 11 | + | then true |
---|
| 12 | + | else false |
---|
| 13 | + | case mass: SetAssetScriptTransaction|MassTransferTransaction|ReissueTransaction|TransferTransaction => |
---|
| 14 | + | let transaction = transactionById(extract(mass.assetId)) |
---|
| 15 | + | match transaction { |
---|
| 16 | + | case issueTx: SetAssetScriptTransaction|MassTransferTransaction|ReissueTransaction|TransferTransaction|IssueTransaction => |
---|
| 17 | + | (mass.senderPublicKey == issueTx.senderPublicKey) |
---|
| 18 | + | case _ => |
---|
| 19 | + | throw("You cannot transfer this token") |
---|
| 20 | + | } |
---|
| 21 | + | case _ => |
---|
| 22 | + | true |
---|
| 23 | + | } |
---|