tx · BrnyQcgcjoyG8vMurrW6h7ZdPBBiKzvWAYTbwznuShFx
3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL: -0.01400000 Waves
2019.07.28 23:58 [606429] smart account 3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL > SELF 0.00000000 Waves
{
"type": 13,
"id": "BrnyQcgcjoyG8vMurrW6h7ZdPBBiKzvWAYTbwznuShFx",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1564347531709,
"version": 1,
"sender": "3N4RCuByb1n8ikP3jYtYUYVQvT1vDkR6hfL",
"senderPublicKey": "BRFZFVsnc2b87hEHPEVNzWUtayFELMnWmDiPuVUFkfZ3",
"proofs": [
"3FcDkHupPWJHV3Nrq6BH6xUNptS8wYBuRPqpNzWgi9kJmaZCTxowfbL54PDWhsPCL4sgrFrxnUjyyagxf4h9hbdJ"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAABQAAAAFpAQAAAAR0ZXN0AAAAAAQAAAAGcmVzdWx0AwMJAAH0AAAAAwEAAAAGWauGw2OmAQAAAAMCmnkBAAAAAwJ1hgYJAAH0AAAAAwEAAAAHFFDciESTnAEAAAADApp5AQAAAAMCdYYGCQAB9AAAAAMBAAAACASaUfbfiXFYAQAAAAMCmnkBAAAAAwJ1hgkAAAIAAAABCQABpQAAAAEFAAAABnJlc3VsdAAAAAFpAQAAAAh0b0Jhc2U1OAAAAAEAAAADbXNnBAAAAAZyZXN1bHQJAAJYAAAAAQkAAZsAAAABBQAAAANtc2cJAAACAAAAAQUAAAAGcmVzdWx0AAAAAWkBAAAACmZyb21CYXNlNTgAAAABAAAAA21zZwQAAAAGcmVzdWx0CQAEsAAAAAEJAAJZAAAAAQUAAAADbXNnCQAAAgAAAAEFAAAABnJlc3VsdAAAAAFpAQAAAApzaGEyNTZIYXNoAAAAAQAAAANtc2cEAAAABnJlc3VsdAkAAlwAAAABCQAB9wAAAAEJAAGbAAAAAQUAAAADbXNnCQAAAgAAAAEFAAAABnJlc3VsdAAAAAFpAQAAAA1sYXN0QmxvY2tJbmZvAAAAAQAAAANtc2cEAAAABnJlc3VsdAkAASwAAAACCQABLAAAAAIJAAGkAAAAAQgFAAAACWxhc3RCbG9jawAAAAZoZWlnaHQCAAAAAiwgCQAEJQAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJZ2VuZXJhdG9yCQAAAgAAAAEFAAAABnJlc3VsdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAGAlktLg==",
"chainId": 84,
"height": 606429,
"spentComplexity": 0
}
View: original | compacted
Prev: 75why7mE2A2Bs2ssYL3WVrAUQ3c9numwfzBT9BhowEyi
Next: G7LjXP3LqBckg9vQ5fVYJUXZ3byKEA2v6eA8DwF9umXG
Diff:
Old | New | | Differences |
---|
38 | 38 | | } |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
| 41 | + | |
---|
| 42 | + | @Callable(i) |
---|
| 43 | + | func lastBlockInfo (msg) = { |
---|
| 44 | + | let result = ((toString(lastBlock.height) + ", ") + toString(lastBlock.generator)) |
---|
| 45 | + | throw(result) |
---|
| 46 | + | } |
---|
| 47 | + | |
---|
| 48 | + | |
---|
41 | 49 | | @Verifier(tx) |
---|
42 | 50 | | func verify () = true |
---|
43 | 51 | | |
---|
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 | + | |
---|
| 42 | + | @Callable(i) |
---|
| 43 | + | func lastBlockInfo (msg) = { |
---|
| 44 | + | let result = ((toString(lastBlock.height) + ", ") + toString(lastBlock.generator)) |
---|
| 45 | + | throw(result) |
---|
| 46 | + | } |
---|
| 47 | + | |
---|
| 48 | + | |
---|
41 | 49 | | @Verifier(tx) |
---|
42 | 50 | | func verify () = true |
---|
43 | 51 | | |
---|