tx · XF9PTmL3d3WziSjuf2814ydo15mFHKKFGB8GvXzrnqS 3N4Z7j4oSNfJVUtP4kmMKbhZD5n4xPFpPAu: -0.01400000 Waves 2019.01.29 22:30 [471966] smart account 3N4Z7j4oSNfJVUtP4kmMKbhZD5n4xPFpPAu > SELF 0.00000000 Waves
{ "type": 13, "id": "XF9PTmL3d3WziSjuf2814ydo15mFHKKFGB8GvXzrnqS", "fee": 1400000, "feeAssetId": null, "timestamp": 1548790232203, "version": 1, "sender": "3N4Z7j4oSNfJVUtP4kmMKbhZD5n4xPFpPAu", "senderPublicKey": "F3DbYSfYZz6arcD6Mst8HdWScxTeWvTvatC7jp4DGryX", "proofs": [ "2Sr49LSFXsoeZpeADmKXUqQfeeJnaHNP7wf8yMaeryyUPHbg9vrkwTrPRHyUjqeDXkQrTUieCqeUaUbrw8ChxWhq" ], "script": "base64:AQQAAAACbWUIBQAAAAJ0eAAAAAZzZW5kZXIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAAANrZXkJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQQAAAAEdHlwZQkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBAAAAAN2YWwJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAwQAAAAFa2V5NTgJAAJYAAAAAQUAAAADa2V5BAAAAAp2YWxDb21wbGV4CQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAgUAAAACbWUFAAAABWtleTU4BAAAAAVrb2VmZgMJAAAAAAAAAgUAAAAEdHlwZQkAAZoAAAABAAAAAAAAAAAAAAAAAAAAAAAkAwkAAAAAAAACBQAAAAR0eXBlCQABmgAAAAEAAAAAAAAAAAEAAAAAAAAAAAEDCQAAAAAAAAIFAAAABHR5cGUJAAGaAAAAAQAAAAAAAAAAAgAAAAAAAAAAAQMJAAAAAAAAAgUAAAAEdHlwZQkAAZoAAAABAAAAAAAAAAADAAAAAAAAAAABAAAAAAAAAAAABAAAAAd2YWxSZWFsAwkAAAAAAAACBQAAAAR0eXBlCQABmgAAAAEAAAAAAAAAAAAJAADKAAAAAgkAAMkAAAACBQAAAAp2YWxDb21wbGV4AAAAAAAAAAACAAAAAAAAAAABAwkAAAAAAAACBQAAAAR0eXBlCQABmgAAAAEAAAAAAAAAAAEJAADKAAAAAgkAAMkAAAACBQAAAAp2YWxDb21wbGV4AAAAAAAAAAADAAAAAAAAAAACAwkAAAAAAAACBQAAAAR0eXBlCQABmgAAAAEAAAAAAAAAAAIJAADKAAAAAgkAAMkAAAACBQAAAAp2YWxDb21wbGV4AAAAAAAAAAAEAAAAAAAAAAADAwkAAAAAAAACBQAAAAR0eXBlCQABmgAAAAEAAAAAAAAAAAMJAADKAAAAAgkAAMkAAAACBQAAAAp2YWxDb21wbGV4AAAAAAAAAAAFAAAAAAAAAAAECQABmgAAAAEAAAAAAAAAACYDCQAAAAAAAAIFAAAAA3ZhbAUAAAAHdmFsUmVhbAkBAAAAAiE9AAAAAgUAAAADdmFsCQABmgAAAAEAAAAAAAAAACYHBi1Q3jo=", "chainId": 84, "height": 471966, "spentComplexity": 0 } View: original | compacted Prev: 45S57b1BUHcc5LxSqRthEFYdSawSU41gCexEi2bMxHFa Next: HohVCBgQkfXTDCGXvSij7Zc7UxSawDcwf6uqycFAbyfc Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | else if ((type == toBytes(3))) | |
18 | 18 | then 1 | |
19 | 19 | else 0 | |
20 | - | let ver = take(valComplex, 1) | |
21 | - | let valNumber = drop(take(valComplex, 2), 1) | |
22 | - | let valRedBlack = drop(take(valComplex, 3), 2) | |
23 | - | let valEvenOdd = drop(take(valComplex, 4), 3) | |
24 | - | (val == valRedBlack) | |
20 | + | let valReal = if ((type == toBytes(0))) | |
21 | + | then drop(take(valComplex, 2), 1) | |
22 | + | else if ((type == toBytes(1))) | |
23 | + | then drop(take(valComplex, 3), 2) | |
24 | + | else if ((type == toBytes(2))) | |
25 | + | then drop(take(valComplex, 4), 3) | |
26 | + | else if ((type == toBytes(3))) | |
27 | + | then drop(take(valComplex, 5), 4) | |
28 | + | else toBytes(38) | |
29 | + | if ((val == valReal)) | |
30 | + | then (val != toBytes(38)) | |
31 | + | else false | |
25 | 32 | case _ => | |
26 | 33 | true | |
27 | 34 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let me = tx.sender | |
4 | 4 | match tx { | |
5 | 5 | case t: TransferTransaction => | |
6 | 6 | let key = tx.proofs[1] | |
7 | 7 | let type = tx.proofs[2] | |
8 | 8 | let val = tx.proofs[3] | |
9 | 9 | let key58 = toBase58String(key) | |
10 | 10 | let valComplex = extract(getBinary(me, key58)) | |
11 | 11 | let koeff = if ((type == toBytes(0))) | |
12 | 12 | then 36 | |
13 | 13 | else if ((type == toBytes(1))) | |
14 | 14 | then 1 | |
15 | 15 | else if ((type == toBytes(2))) | |
16 | 16 | then 1 | |
17 | 17 | else if ((type == toBytes(3))) | |
18 | 18 | then 1 | |
19 | 19 | else 0 | |
20 | - | let ver = take(valComplex, 1) | |
21 | - | let valNumber = drop(take(valComplex, 2), 1) | |
22 | - | let valRedBlack = drop(take(valComplex, 3), 2) | |
23 | - | let valEvenOdd = drop(take(valComplex, 4), 3) | |
24 | - | (val == valRedBlack) | |
20 | + | let valReal = if ((type == toBytes(0))) | |
21 | + | then drop(take(valComplex, 2), 1) | |
22 | + | else if ((type == toBytes(1))) | |
23 | + | then drop(take(valComplex, 3), 2) | |
24 | + | else if ((type == toBytes(2))) | |
25 | + | then drop(take(valComplex, 4), 3) | |
26 | + | else if ((type == toBytes(3))) | |
27 | + | then drop(take(valComplex, 5), 4) | |
28 | + | else toBytes(38) | |
29 | + | if ((val == valReal)) | |
30 | + | then (val != toBytes(38)) | |
31 | + | else false | |
25 | 32 | case _ => | |
26 | 33 | true | |
27 | 34 | } |
github/deemru/w8io/169f3d6 39.52 ms ◑