tx · CMmZnfSN7WZR9jTMvPqxca6fFegkm6KoREW4GM6KnEAM
3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL: -0.01400000 Waves
2019.07.29 00:01 [606431] smart account 3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL > SELF 0.00000000 Waves
{
"type": 13,
"id": "CMmZnfSN7WZR9jTMvPqxca6fFegkm6KoREW4GM6KnEAM",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1564347677416,
"version": 1,
"sender": "3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL",
"senderPublicKey": "BRFZFVsnc2b87hEHPEVNzWUtayFELMnWmDiPuVUFkfZ3",
"proofs": [
"w3ZnG7Vo98BBRQR9sFhyoCsdgdCTyedKWzzxpHYt1H6nPxR1ZdoMv9qezgHtVfbZ3kfSLEeBCcnUScSA9ccNB2D"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAABQAAAAFpAQAAAAR0ZXN0AAAAAAQAAAAGcmVzdWx0AwMJAAH0AAAAAwEAAAAGWauGw2OmAQAAAAMCmnkBAAAAAwJ1hgYJAAH0AAAAAwEAAAAHFFDciESTnAEAAAADApp5AQAAAAMCdYYGCQAB9AAAAAMBAAAACASaUfbfiXFYAQAAAAMCmnkBAAAAAwJ1hgkAAAIAAAABCQABpQAAAAEFAAAABnJlc3VsdAAAAAFpAQAAAAh0b0Jhc2U1OAAAAAEAAAADbXNnBAAAAAZyZXN1bHQJAAJYAAAAAQkAAZsAAAABBQAAAANtc2cJAAACAAAAAQUAAAAGcmVzdWx0AAAAAWkBAAAACmZyb21CYXNlNTgAAAABAAAAA21zZwQAAAAGcmVzdWx0CQAEsAAAAAEJAAJZAAAAAQUAAAADbXNnCQAAAgAAAAEFAAAABnJlc3VsdAAAAAFpAQAAAApzaGEyNTZIYXNoAAAAAQAAAANtc2cEAAAABnJlc3VsdAkAAlwAAAABCQAB9wAAAAEJAAGbAAAAAQUAAAADbXNnCQAAAgAAAAEFAAAABnJlc3VsdAAAAAFpAQAAAA1sYXN0QmxvY2tJbmZvAAAAAAQAAAAGcmVzdWx0CQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAIAAAACLCAJAAQlAAAAAQgFAAAACWxhc3RCbG9jawAAAAlnZW5lcmF0b3ICAAAAAiwgCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAKYmFzZVRhcmdldAIAAAACLCAJAAJYAAAAAQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlAgAAAAIsIAkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAkAAAIAAAABBQAAAAZyZXN1bHQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABpeGXuI=",
"chainId": 84,
"height": 606431,
"spentComplexity": 0
}
View: original | compacted
Prev: G7LjXP3LqBckg9vQ5fVYJUXZ3byKEA2v6eA8DwF9umXG
Next: GAdbm5Ffpk3qVG8wskPvFyQYL3LxpshzXdpF2DiCFapw
Diff:
Old | New | | Differences |
---|
41 | 41 | | |
---|
42 | 42 | | @Callable(i) |
---|
43 | 43 | | func lastBlockInfo () = { |
---|
44 | | - | let result = ((toString(lastBlock.height) + ", ") + toString(lastBlock.generator)) |
---|
| 44 | + | let result = ((((((((toString(lastBlock.height) + ", ") + toString(lastBlock.generator)) + ", ") + toString(lastBlock.baseTarget)) + ", ") + toBase58String(lastBlock.generationSignature)) + ", ") + toString(lastBlock.timestamp)) |
---|
45 | 45 | | throw(result) |
---|
46 | 46 | | } |
---|
47 | 47 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func test () = { |
---|
8 | 8 | | let result = if (if (sigVerify(base58'message1', base58'sig', base58'pub')) |
---|
9 | 9 | | then true |
---|
10 | 10 | | else sigVerify(base58'message11', base58'sig', base58'pub')) |
---|
11 | 11 | | then true |
---|
12 | 12 | | else sigVerify(base58'message111', base58'sig', base58'pub') |
---|
13 | 13 | | throw(toString(result)) |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Callable(i) |
---|
19 | 19 | | func toBase58 (msg) = { |
---|
20 | 20 | | let result = toBase58String(toBytes(msg)) |
---|
21 | 21 | | throw(result) |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @Callable(i) |
---|
27 | 27 | | func fromBase58 (msg) = { |
---|
28 | 28 | | let result = toUtf8String(fromBase58String(msg)) |
---|
29 | 29 | | throw(result) |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | @Callable(i) |
---|
35 | 35 | | func sha256Hash (msg) = { |
---|
36 | 36 | | let result = toBase16String(sha256(toBytes(msg))) |
---|
37 | 37 | | throw(result) |
---|
38 | 38 | | } |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | 41 | | |
---|
42 | 42 | | @Callable(i) |
---|
43 | 43 | | func lastBlockInfo () = { |
---|
44 | | - | let result = ((toString(lastBlock.height) + ", ") + toString(lastBlock.generator)) |
---|
| 44 | + | let result = ((((((((toString(lastBlock.height) + ", ") + toString(lastBlock.generator)) + ", ") + toString(lastBlock.baseTarget)) + ", ") + toBase58String(lastBlock.generationSignature)) + ", ") + toString(lastBlock.timestamp)) |
---|
45 | 45 | | throw(result) |
---|
46 | 46 | | } |
---|
47 | 47 | | |
---|
48 | 48 | | |
---|
49 | 49 | | @Verifier(tx) |
---|
50 | 50 | | func verify () = true |
---|
51 | 51 | | |
---|