tx · BVyU3JTeGZxa5xrNAitDEYAyfTdKPuNqvgFW9AvPTMSd
3N2hBea4tJ4vmGdTnr7iGEfeCwsDkLyCbWK: -1.00400000 Waves
2018.12.20 14:32 [413119] smart asset 3N2hBea4tJ4vmGdTnr7iGEfeCwsDkLyCbWK > SELF 0 GoldAsset
{
"type": 15,
"id": "BVyU3JTeGZxa5xrNAitDEYAyfTdKPuNqvgFW9AvPTMSd",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1545305569207,
"version": 1,
"sender": "3N2hBea4tJ4vmGdTnr7iGEfeCwsDkLyCbWK",
"senderPublicKey": "9vCFiiQT1mT2SMoSSoShakxyfJND9mzVDfjiaiVdh7y5",
"proofs": [
"2GZP9BjU3qyJgmhuVcP9XKydLt939M2ZVFn1Z5XqKMXfPYLQ9FeQ1ZzxbW132TK8F11nzjmrXTgR2yQPF2XFCAaj"
],
"assetId": "CZk46R9XmGhrtCHFRB1qJqZbQAM9yK2ys7c5xsakBjJ4",
"script": "base64:AQQAAAAKUG9XQWNjb3VudAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVIwpIWWFI6KCX+npm1pgOfaDuZVcZYmIRAQAAAAIUG9XQXNzZXQBAAAAIKvT0piRB/+BHOKZK7/3j9di5yuB004uM7V9ej3+14ClBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAAAU4JAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAApQb1dBY2NvdW50AgAAAAFOBAAAAApmaXJzdEJ5dGVzCQACWAAAAAEJAADJAAAAAggFAAAAAnR4AAAAAmlkBQAAAAFOBAAAAAdiYWxhbmNlCQAD6wAAAAIFAAAAClBvV0FjY291bnQFAAAACFBvV0Fzc2V0BAAAAAtkZW5vbWluYXRvcgAAAAAAAAAAZAMDCQEAAAACIT0AAAACCAUAAAACdHgAAAAGc2VuZGVyBQAAAApQb1dBY2NvdW50BgkBAAAACWlzRGVmaW5lZAAAAAEJAAQbAAAAAgUAAAAKUG9XQWNjb3VudAUAAAAKZmlyc3RCeXRlcwkAAAAAAAACCAUAAAACdHgAAAAGYW1vdW50CQAAZAAAAAIJAABpAAAAAgUAAAAHYmFsYW5jZQUAAAALZGVub21pbmF0b3IAAAAAAAAAAAEHBmWwh68=",
"chainId": 84,
"height": 413119,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 1 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let PoWAccount = Address(base58'3N2hBea4tJ4vmGdTnr7iGEfeCwsDkLyCbWK') |
---|
| 4 | + | let PoWAsset = base58'CZk46R9XmGhrtCHFRB1qJqZbQAM9yK2ys7c5xsakBjJ4' |
---|
| 5 | + | match tx { |
---|
| 6 | + | case tx: TransferTransaction => |
---|
| 7 | + | let N = extract(getInteger(PoWAccount, "N")) |
---|
| 8 | + | let firstBytes = toBase58String(take(tx.id, N)) |
---|
| 9 | + | let balance = assetBalance(PoWAccount, PoWAsset) |
---|
| 10 | + | let denominator = 100 |
---|
| 11 | + | if (if ((tx.sender != PoWAccount)) |
---|
| 12 | + | then true |
---|
| 13 | + | else isDefined(getBoolean(PoWAccount, firstBytes))) |
---|
| 14 | + | then (tx.amount == ((balance / denominator) + 1)) |
---|
| 15 | + | else false |
---|
| 16 | + | case _ => |
---|
| 17 | + | true |
---|
| 18 | + | } |
---|