tx · 7nhjoTAHAorMMYANCQgFb9hjYDthnxr6GSuvARNyjZQw
3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx: -1.00000000 Waves
2019.02.20 21:28 [503916] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG
{
"type": 15,
"id": "7nhjoTAHAorMMYANCQgFb9hjYDthnxr6GSuvARNyjZQw",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550687316142,
"version": 1,
"sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx",
"senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg",
"proofs": [
"3bNUFTngsp8unytYQQC9TV9HjKtpbVCno2RR8PV9sVgKgBdhqof2sLhQ1EU7Sv3xf5ShQTH8AeSnxD5kC8t4EBKp"
],
"assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg",
"script": "base64:AQQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAL68IBBAAAAARQYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAEdW5pdAEAAAAgzYx4W9Jed07esV0az1/a+QmnX6Nj+tfM2SX5aJD6CmcEAAAABUJUQ0lkAQAAACDNjHhb0l53Tt6xXRrPX9r5Cadfo2P618zZJflokPoKZwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAC25hbWlBZGRyZXNzCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTXYxTmo4M3o0WlFqcmFWcHBQQnVYR0w5Y3NCTTREUnFReAQAAAAMbmFtaUFkZHJzZXNzCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTXNpY29RcXZZTHFjbmo0SERreG4zZDRNTnVnQ2RBVTRCNQQAAAAHJG1hdGNoMQUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDEDCQAAAAAAAAIICAUAAAABdAAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyBQAAAAtuYW1pQWRkcmVzcwYJAAAAAAAAAggIBQAAAAF0AAAACGJ1eU9yZGVyAAAABnNlbmRlcgUAAAAMbmFtaUFkZHJzZXNzBwMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAARtYXNzBQAAAAckbWF0Y2gwBAAAAAt0cmFuc2FjdGlvbgkAA+gAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAARtYXNzAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDEFAAAAC3RyYW5zYWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAdpc3N1ZVR4BQAAAAckbWF0Y2gxCQAAAAAAAAIIBQAAAARtYXNzAAAAD3NlbmRlclB1YmxpY0tleQgFAAAAB2lzc3VlVHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAEUJhZCBpc3N1ZSB0eCB0eXBlCQAAAgAAAAECAAAAIFlvdSBvbmx5IGNhbiB0cmFuc2ZlciB0aGlzIHRva2VuNoy1WQ==",
"chainId": 84,
"height": 503916,
"spentComplexity": 0
}
View: original | compacted
Prev: A1Moc15UqMdg3Af11cAaRvBDN7hnrerPxyK8t7roSdyQ
Next: Hs8ASaa4qUMHxHZwVLv2sF7nn2Cq78KmT1GvuQV4QkQK
Diff:
Old | New | | Differences |
---|
6 | 6 | | let BTCId = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg' |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case e: ExchangeTransaction => |
---|
9 | | - | if ((e.sellOrder.assetPair.amountAsset == BTCId)) |
---|
10 | | - | then true |
---|
11 | | - | else if ((e.buyOrder.assetPair.amountAsset == BTCId)) |
---|
12 | | - | then false |
---|
13 | | - | else false |
---|
| 9 | + | let namiAddress = addressFromString("3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx") |
---|
| 10 | + | let namiAddrsess = addressFromString("3MsicoQqvYLqcnj4HDkxn3d4MNugCdAU4B5") |
---|
| 11 | + | match tx { |
---|
| 12 | + | case t: ExchangeTransaction => |
---|
| 13 | + | if ((t.sellOrder.sender == namiAddress)) |
---|
| 14 | + | then true |
---|
| 15 | + | else (t.buyOrder.sender == namiAddrsess) |
---|
| 16 | + | case _ => |
---|
| 17 | + | false |
---|
| 18 | + | } |
---|
14 | 19 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
15 | 20 | | let transaction = transactionById(extract(mass.assetId)) |
---|
16 | 21 | | match transaction { |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let price = 100000001 |
---|
4 | 4 | | let pricemin = 200000001 |
---|
5 | 5 | | let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg') |
---|
6 | 6 | | let BTCId = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg' |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case e: ExchangeTransaction => |
---|
9 | | - | if ((e.sellOrder.assetPair.amountAsset == BTCId)) |
---|
10 | | - | then true |
---|
11 | | - | else if ((e.buyOrder.assetPair.amountAsset == BTCId)) |
---|
12 | | - | then false |
---|
13 | | - | else false |
---|
| 9 | + | let namiAddress = addressFromString("3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx") |
---|
| 10 | + | let namiAddrsess = addressFromString("3MsicoQqvYLqcnj4HDkxn3d4MNugCdAU4B5") |
---|
| 11 | + | match tx { |
---|
| 12 | + | case t: ExchangeTransaction => |
---|
| 13 | + | if ((t.sellOrder.sender == namiAddress)) |
---|
| 14 | + | then true |
---|
| 15 | + | else (t.buyOrder.sender == namiAddrsess) |
---|
| 16 | + | case _ => |
---|
| 17 | + | false |
---|
| 18 | + | } |
---|
14 | 19 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
15 | 20 | | let transaction = transactionById(extract(mass.assetId)) |
---|
16 | 21 | | match transaction { |
---|
17 | 22 | | case issueTx: IssueTransaction => |
---|
18 | 23 | | (mass.senderPublicKey == issueTx.senderPublicKey) |
---|
19 | 24 | | case _ => |
---|
20 | 25 | | throw("Bad issue tx type") |
---|
21 | 26 | | } |
---|
22 | 27 | | case _ => |
---|
23 | 28 | | throw("You only can transfer this token") |
---|
24 | 29 | | } |
---|