tx · CzeQdqxeCqL9fh64rYqXf8kP9uSew4pfnAefF145x52
3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ: -0.01000000 Waves
2023.05.31 00:37 [2601260] smart account 3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "CzeQdqxeCqL9fh64rYqXf8kP9uSew4pfnAefF145x52",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685482652825,
"version": 2,
"chainId": 84,
"sender": "3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ",
"senderPublicKey": "y5twTW93XMmi75S5bati2cok9QLLFivsrwJedxJeUkX",
"proofs": [
"36unGJ5VSb7nCTuMPMZqnpyTH73BFWjW17tQpqCMr4BkKCzrSFb3EHgdjBgVZSwgwvrHuvXNQbqg3MYiig1cVoSV"
],
"script": "base64:BgIECAISAAMBD2dldFJhbmRvbU51bWJlcgAED3JhbmRvbVNlZWRCbG9jawkBBXZhbHVlAQkA7QcBCQBlAgUGaGVpZ2h0AAEECnJhbmRvbUhhc2gJANQWAQkBBXZhbHVlAQgFD3JhbmRvbVNlZWRCbG9jawN2cmYEA3N0cgkA2AQBBQpyYW5kb21IYXNoBAhsYXN0Q2hhcgkAsgICBQNzdHIAAgUIbGFzdENoYXIBEGdldFJhbmRvbU51bWJlcjIABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQkAZQIFBmhlaWdodAABBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQCyAgIJAKQDAQkAsQkBBQpyYW5kb21IYXNoAAEBEGdldFJhbmRvbU51bWJlcjMABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQkAZQIFBmhlaWdodAABBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQCkAwEJALEJAQUKcmFuZG9tSGFzaAEBaQEFdGVzdDcABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEAXIJAQ9nZXRSYW5kb21OdW1iZXIABAJyMgkBEGdldFJhbmRvbU51bWJlcjIACQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIDWFhYBQFyCQDMCAIJAQtTdHJpbmdFbnRyeQICBFhYWDIFAnIyBQNuaWwAAQCefPgk",
"height": 2601260,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9iyUtxZsqFLEJr6q4MR3taxD2AFnxMCYPXssR3FuvZC5
Next: 13oCjiTfUYR3nDXPGe4qEhz5NF9HqsxwtqW92u8CUgG6
Diff:
Old | New | | Differences |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | | - | @Callable(g) |
---|
| 20 | + | func g () = { |
---|
| 21 | + | let b = value(blockInfoByHeight((height - 1))) |
---|
| 22 | + | let c = sha256_16Kb(value(b.vrf)) |
---|
| 23 | + | toString(toInt(c)) |
---|
| 24 | + | } |
---|
| 25 | + | |
---|
| 26 | + | |
---|
| 27 | + | @Callable(h) |
---|
21 | 28 | | func test7 () = { |
---|
22 | | - | let h = toBase58String(g.caller.bytes) |
---|
23 | | - | let i = a() |
---|
24 | | - | let j = f() |
---|
25 | | - | $Tuple2([StringEntry("XXX", i), StringEntry("XXX2", j)], 1) |
---|
| 29 | + | let i = toBase58String(h.caller.bytes) |
---|
| 30 | + | let j = a() |
---|
| 31 | + | let k = f() |
---|
| 32 | + | $Tuple2([StringEntry("XXX", j), StringEntry("XXX2", k)], 1) |
---|
26 | 33 | | } |
---|
27 | 34 | | |
---|
28 | 35 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a () = { |
---|
5 | 5 | | let b = value(blockInfoByHeight((height - 1))) |
---|
6 | 6 | | let c = sha256_16Kb(value(b.vrf)) |
---|
7 | 7 | | let d = toBase58String(c) |
---|
8 | 8 | | let e = takeRight(d, 2) |
---|
9 | 9 | | e |
---|
10 | 10 | | } |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | func f () = { |
---|
14 | 14 | | let b = value(blockInfoByHeight((height - 1))) |
---|
15 | 15 | | let c = sha256_16Kb(value(b.vrf)) |
---|
16 | 16 | | takeRight(toString(toInt(c)), 1) |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | | - | @Callable(g) |
---|
| 20 | + | func g () = { |
---|
| 21 | + | let b = value(blockInfoByHeight((height - 1))) |
---|
| 22 | + | let c = sha256_16Kb(value(b.vrf)) |
---|
| 23 | + | toString(toInt(c)) |
---|
| 24 | + | } |
---|
| 25 | + | |
---|
| 26 | + | |
---|
| 27 | + | @Callable(h) |
---|
21 | 28 | | func test7 () = { |
---|
22 | | - | let h = toBase58String(g.caller.bytes) |
---|
23 | | - | let i = a() |
---|
24 | | - | let j = f() |
---|
25 | | - | $Tuple2([StringEntry("XXX", i), StringEntry("XXX2", j)], 1) |
---|
| 29 | + | let i = toBase58String(h.caller.bytes) |
---|
| 30 | + | let j = a() |
---|
| 31 | + | let k = f() |
---|
| 32 | + | $Tuple2([StringEntry("XXX", j), StringEntry("XXX2", k)], 1) |
---|
26 | 33 | | } |
---|
27 | 34 | | |
---|
28 | 35 | | |
---|