tx · 9WRNgwZzkKoMeUf3HUoV1xn6JuNbiKdscPx7vrb7q1So

3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ:  -0.01000000 Waves

2023.05.31 01:12 [2601288] smart account 3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ > SELF 0.00000000 Waves

{ "type": 13, "id": "9WRNgwZzkKoMeUf3HUoV1xn6JuNbiKdscPx7vrb7q1So", "fee": 1000000, "feeAssetId": null, "timestamp": 1685484759374, "version": 2, "chainId": 84, "sender": "3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ", "senderPublicKey": "y5twTW93XMmi75S5bati2cok9QLLFivsrwJedxJeUkX", "proofs": [ "3V7DyDv6XLjMoHgNboDuPnXUiTjg2hruqN9ndDFM6tbQrj5BNb9uuBskNZWLDer1scid2wkPqSmuHn4ipBotZ48W" ], "script": "base64:BgIECAISAAUBD2dldFJhbmRvbU51bWJlcgAED3JhbmRvbVNlZWRCbG9jawkBBXZhbHVlAQkA7QcBCQBlAgUGaGVpZ2h0AAEECnJhbmRvbUhhc2gJANQWAQkBBXZhbHVlAQgFD3JhbmRvbVNlZWRCbG9jawN2cmYEA3N0cgkA2AQBBQpyYW5kb21IYXNoBAhsYXN0Q2hhcgkAsgICBQNzdHIAAgUIbGFzdENoYXIBEGdldFJhbmRvbU51bWJlcjIABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQkAZQIFBmhlaWdodAABBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQCyAgIJAKQDAQkAsQkBBQpyYW5kb21IYXNoAAEBBnJhbmRvbQEBaQQPcmFuZG9tU2VlZEJsb2NrCQEFdmFsdWUBCQDtBwEJAGUCBQZoZWlnaHQAAQQKcmFuZG9tSGFzaAkA1BYBCQEFdmFsdWUBCAUPcmFuZG9tU2VlZEJsb2NrA3ZyZgQIbGFzdENoYXIJALICAgkApAMBCQCxCQEFCnJhbmRvbUhhc2gAAQQJbGFzdENoYXIyCQCyAgIJAKQDAQkAsQkBCAUBaQ10cmFuc2FjdGlvbklkAAEJAKwCAgUIbGFzdENoYXIFCWxhc3RDaGFyMgEHcmFuZG9tMgMBaQNtaW4DbWF4BAVvZnNldAkBDXBhcnNlSW50VmFsdWUBCQCyAgIJAKQDAQkAsQkBCAUBaQ10cmFuc2FjdGlvbklkAAEED3JhbmRvbVNlZWRCbG9jawkBBXZhbHVlAQkA7QcBCQBlAgUGaGVpZ2h0BQVvZnNldAQKcmFuZG9tSGFzaAkA1BYBCQEFdmFsdWUBCAUPcmFuZG9tU2VlZEJsb2NrA3ZyZgQIbGFzdENoYXIJALICAgkApAMBCQCxCQEFCnJhbmRvbUhhc2gABQQMcmFuZG9tTnVtYmVyCQBkAgkAagIJAQ1wYXJzZUludFZhbHVlAQUIbGFzdENoYXIJAGQCCQBlAgUDbWF4BQNtaW4AAQUDbWluBQxyYW5kb21OdW1iZXIBEGdldFJhbmRvbU51bWJlcjQBAWkED3JhbmRvbVNlZWRCbG9jawkBBXZhbHVlAQkA7QcBCQBlAgUGaGVpZ2h0AAEECnJhbmRvbUhhc2gJANQWAQkBBXZhbHVlAQgFD3JhbmRvbVNlZWRCbG9jawN2cmYJAKQDAQkAsQkBBQpyYW5kb21IYXNoAQFpAQV0ZXN0NwAEB2FkZHJlc3MJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQCcjMJAQdyYW5kb20yAwUBaQABAAwJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgIGcmFuZG9tBQJyMwUDbmlsAAEA3VbaDw==", "height": 2601288, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7ZsHnM4gnvET5E79xx5VhA58Uk7LhyGoZTSDeVBEhbUP Next: 95BMFVXcZb3kZdYkULqydLoqLnwQGZYx1TqXWrreWBm8 Diff:
OldNewDifferences
4646 @Callable(h)
4747 func test7 () = {
4848 let p = toBase58String(h.caller.bytes)
49- let q = j(h, 1, 120)
49+ let q = j(h, 1, 12)
5050 $Tuple2([IntegerEntry("random", q)], 1)
5151 }
5252
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a () = {
55 let b = value(blockInfoByHeight((height - 1)))
66 let c = sha256_16Kb(value(b.vrf))
77 let d = toBase58String(c)
88 let e = takeRight(d, 2)
99 e
1010 }
1111
1212
1313 func f () = {
1414 let b = value(blockInfoByHeight((height - 1)))
1515 let c = sha256_16Kb(value(b.vrf))
1616 takeRight(toString(toInt(c)), 1)
1717 }
1818
1919
2020 func g (h) = {
2121 let b = value(blockInfoByHeight((height - 1)))
2222 let c = sha256_16Kb(value(b.vrf))
2323 let e = takeRight(toString(toInt(c)), 1)
2424 let i = takeRight(toString(toInt(h.transactionId)), 1)
2525 (e + i)
2626 }
2727
2828
2929 func j (h,k,l) = {
3030 let m = parseIntValue(takeRight(toString(toInt(h.transactionId)), 1))
3131 let b = value(blockInfoByHeight((height - m)))
3232 let c = sha256_16Kb(value(b.vrf))
3333 let e = takeRight(toString(toInt(c)), 5)
3434 let n = ((parseIntValue(e) % ((l - k) + 1)) + k)
3535 n
3636 }
3737
3838
3939 func o (h) = {
4040 let b = value(blockInfoByHeight((height - 1)))
4141 let c = sha256_16Kb(value(b.vrf))
4242 toString(toInt(c))
4343 }
4444
4545
4646 @Callable(h)
4747 func test7 () = {
4848 let p = toBase58String(h.caller.bytes)
49- let q = j(h, 1, 120)
49+ let q = j(h, 1, 12)
5050 $Tuple2([IntegerEntry("random", q)], 1)
5151 }
5252
5353

github/deemru/w8io/169f3d6 
30.30 ms