tx · 6ej3sC33WwQoPR4jaeqQuHufFKjCUXDUyBqJEmEzZaXu 3N6SCyR13XotwN2hqizWvqxz8mrHLc53pfZ: -0.14000000 Waves 2018.12.07 18:06 [394391] smart account 3N6SCyR13XotwN2hqizWvqxz8mrHLc53pfZ > SELF 0.00000000 Waves
{ "type": 13, "id": "6ej3sC33WwQoPR4jaeqQuHufFKjCUXDUyBqJEmEzZaXu", "fee": 14000000, "feeAssetId": null, "timestamp": 1544195181089, "version": 1, "sender": "3N6SCyR13XotwN2hqizWvqxz8mrHLc53pfZ", "senderPublicKey": "7vRLZahSi6vPoFqv7sHCnPwWdLMibPshpbiazZ7Mr2Xq", "proofs": [ "3G51mRLxhtuZtfiTQhrFsoBhaYeDYzgEu6F4JHgG7B9kxyftPtWRSfLDHYRQ2mu9rAUPera8YcChgfNVcdnjfR7Y" ], "script": "base64:AQQAAAAQdG9rZW5vbWljYVB1YktleQEAAAAgYpAmzv+FLxGfCGhBfrQzBG7Yfptn+PzbORlDFmI8hywEAAAABHRoaXMJAQAAAAdleHRyYWN0AAAAAQgFAAAAAnR4AAAABnNlbmRlcgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAFzAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABcwAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAEHRva2Vub21pY2FQdWJLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABWxpbWl0CQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAEdGhpcwkAAlgAAAABCAgFAAAAAXQAAAAGc2VuZGVyAAAABWJ5dGVzAwkAAGcAAAACBQAAAAVsaW1pdAgFAAAAAXQAAAAGYW1vdW50CQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAXQAAAAHYXNzZXRJZAcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAFtBQAAAAckbWF0Y2gwBAAAAAVsaW1pdAkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABHRoaXMJAAJYAAAAAQgIBQAAAAFtAAAABnNlbmRlcgAAAAVieXRlcwMJAABnAAAAAgUAAAAFbGltaXQIBQAAAAFtAAAAC3RvdGFsQW1vdW50CQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAW0AAAAHYXNzZXRJZAcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAABWxpbWl0CQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAEdGhpcwkAAlgAAAABCAgFAAAAAWUAAAAGc2VuZGVyAAAABWJ5dGVzAwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAkAAGcAAAACBQAAAAVsaW1pdAgIBQAAAAFlAAAACGJ1eU9yZGVyAAAABmFtb3VudAcGAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQJAABnAAAAAgUAAAAFbGltaXQICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGYW1vdW50Bwdx9zMD", "chainId": 84, "height": 394391, "spentComplexity": 0 } View: original | compacted Prev: none Next: DDTwhWK32fGWsUSuTUA4iBqHQZCDAjmuZpWBeU6nmpnd Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 1 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let tokenomicaPubKey = base58'7dkSgXFv9EpYi3C3JK76wJTkciBsVPZ1xE5fVAMB6AD9' | |
4 | + | let this = extract(tx.sender) | |
5 | + | match tx { | |
6 | + | case s: SetScriptTransaction => | |
7 | + | sigVerify(s.bodyBytes, s.proofs[0], tokenomicaPubKey) | |
8 | + | case t: TransferTransaction => | |
9 | + | let limit = extract(getInteger(this, toBase58String(t.sender.bytes))) | |
10 | + | if ((limit >= t.amount)) | |
11 | + | then isDefined(t.assetId) | |
12 | + | else false | |
13 | + | case m: MassTransferTransaction => | |
14 | + | let limit = extract(getInteger(this, toBase58String(m.sender.bytes))) | |
15 | + | if ((limit >= m.totalAmount)) | |
16 | + | then isDefined(m.assetId) | |
17 | + | else false | |
18 | + | case e: ExchangeTransaction => | |
19 | + | let limit = extract(getInteger(this, toBase58String(e.sender.bytes))) | |
20 | + | if (if (!(isDefined(e.sellOrder.assetPair.amountAsset))) | |
21 | + | then (limit >= e.buyOrder.amount) | |
22 | + | else false) | |
23 | + | then true | |
24 | + | else if (!(isDefined(e.sellOrder.assetPair.priceAsset))) | |
25 | + | then (limit >= e.sellOrder.amount) | |
26 | + | else false | |
27 | + | case _ => | |
28 | + | false | |
29 | + | } |
github/deemru/w8io/169f3d6 21.06 ms ◑