tx · GML8gPBr8TpEuqmHWC4sz7MHKz1MbNEhkUVSmRqzrN2S
3N3Bsb6cBEFXxxXYK3P18A6boegYcJtzV6c: -0.01400000 Waves
2019.03.07 11:59 [525285] smart account 3N3Bsb6cBEFXxxXYK3P18A6boegYcJtzV6c > SELF 0.00000000 Waves
{
"type": 13,
"id": "GML8gPBr8TpEuqmHWC4sz7MHKz1MbNEhkUVSmRqzrN2S",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1551948903334,
"version": 1,
"sender": "3N3Bsb6cBEFXxxXYK3P18A6boegYcJtzV6c",
"senderPublicKey": "AqBHTsCtnV1LE6gdpnR8sqvQvdTkpUdmprUYvjYnXjek",
"proofs": [
"3LHU6Vkqg3dQTpRfRhNfe1ZWfg27TC56R3Ru9YycAHBKHZQ7QdoFjU9oFrP5rUmHkesVwHrGCGTbfetqLo8h9bK7"
],
"script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwAwkAAAAAAAACCAUAAAACdHgAAAAHYXNzZXRJZAUAAAAEdW5pdAkAAAIAAAABAgAAAAVXQVZFUwkAAAIAAAABCQACWAAAAAEJAQAAAAdleHRyYWN0AAAAAQgFAAAAAnR4AAAAB2Fzc2V0SWQJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V593FgHg==",
"chainId": 84,
"height": 525285,
"spentComplexity": 0
}
View: original | compacted
Prev: C5CzLQCBvaEU3LMC9RdRjRFV5T9VQN4qsadSL8zxWiyc
Next: BEHXrLyjC6EugLc7ArmnXzchQLMoGHhSJ5VpgwLjkPNE
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let sender = tx.sender |
---|
4 | | - | let asset = base58'GDFeXJjyasFBgxQJsLrkEBjZoB1x4rkpJN12fG7NE8RV' |
---|
5 | | - | let difficulty = extract(getInteger(sender, "difficulty")) |
---|
6 | | - | let lastUpdateHeight = extract(getInteger(sender, "lastUpdateHeight")) |
---|
7 | | - | let lastUpdateBalance = extract(getInteger(sender, "lastUpdateBalance")) |
---|
8 | | - | let currentBalance = assetBalance(sender, asset) |
---|
9 | | - | let validityPeriod = 1000 |
---|
10 | 3 | | match tx { |
---|
11 | 4 | | case tx: TransferTransaction => |
---|
12 | | - | let firstBytes = toBase58String(take(tx.id, difficulty)) |
---|
13 | | - | if (if (if (if (if ((validityPeriod > (height - lastUpdateHeight))) |
---|
14 | | - | then isDefined(getBoolean(sender, firstBytes)) |
---|
15 | | - | else false) |
---|
16 | | - | then (tx.amount == 1) |
---|
17 | | - | else false) |
---|
18 | | - | then (tx.assetId == asset) |
---|
19 | | - | else false) |
---|
20 | | - | then (tx.fee == 500000) |
---|
21 | | - | else false) |
---|
22 | | - | then !(isDefined(tx.feeAssetId)) |
---|
23 | | - | else false |
---|
| 5 | + | if ((tx.assetId == unit)) |
---|
| 6 | + | then throw("WAVES") |
---|
| 7 | + | else throw(toBase58String(extract(tx.assetId))) |
---|
24 | 8 | | case _ => |
---|
25 | 9 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
26 | 10 | | } |
---|